Work around autoconf and shell issues.
[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 # Check whether --enable-shared was given.
5298 if test "${enable_shared+set}" = set; then :
5299   enableval=$enable_shared; p=${PACKAGE-default}
5300     case $enableval in
5301     yes) enable_shared=yes ;;
5302     no) enable_shared=no ;;
5303     *)
5304       enable_shared=no
5305       # Look at the argument we got.  We use all the common list separators.
5306       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5307       for pkg in $enableval; do
5308         IFS="$lt_save_ifs"
5309         if test "X$pkg" = "X$p"; then
5310           enable_shared=yes
5311         fi
5312       done
5313       IFS="$lt_save_ifs"
5314       ;;
5315     esac
5316 else
5317   enable_shared=yes
5318 fi
5319
5320
5321 # Check whether --enable-static was given.
5322 if test "${enable_static+set}" = set; then :
5323   enableval=$enable_static; p=${PACKAGE-default}
5324     case $enableval in
5325     yes) enable_static=yes ;;
5326     no) enable_static=no ;;
5327     *)
5328      enable_static=no
5329       # Look at the argument we got.  We use all the common list separators.
5330       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5331       for pkg in $enableval; do
5332         IFS="$lt_save_ifs"
5333         if test "X$pkg" = "X$p"; then
5334           enable_static=yes
5335         fi
5336       done
5337       IFS="$lt_save_ifs"
5338       ;;
5339     esac
5340 else
5341   enable_static=yes
5342 fi
5343
5344
5345 # Check whether --enable-fast-install was given.
5346 if test "${enable_fast_install+set}" = set; then :
5347   enableval=$enable_fast_install; p=${PACKAGE-default}
5348     case $enableval in
5349     yes) enable_fast_install=yes ;;
5350     no) enable_fast_install=no ;;
5351     *)
5352       enable_fast_install=no
5353       # Look at the argument we got.  We use all the common list separators.
5354       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5355       for pkg in $enableval; do
5356         IFS="$lt_save_ifs"
5357         if test "X$pkg" = "X$p"; then
5358           enable_fast_install=yes
5359         fi
5360       done
5361       IFS="$lt_save_ifs"
5362       ;;
5363     esac
5364 else
5365   enable_fast_install=yes
5366 fi
5367
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5370 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5371 if ${lt_cv_path_SED+:} false; then :
5372   $as_echo_n "(cached) " >&6
5373 else
5374   # Loop through the user's path and test for sed and gsed.
5375 # Then use that list of sed's as ones to test for truncation.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381   for lt_ac_prog in sed gsed; do
5382     for ac_exec_ext in '' $ac_executable_extensions; do
5383       if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5384         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5385       fi
5386     done
5387   done
5388 done
5389 IFS=$as_save_IFS
5390 lt_ac_max=0
5391 lt_ac_count=0
5392 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5393 # along with /bin/sed that truncates output.
5394 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5395   test ! -f $lt_ac_sed && continue
5396   cat /dev/null > conftest.in
5397   lt_ac_count=0
5398   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5399   # Check for GNU sed and select it if it is found.
5400   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5401     lt_cv_path_SED=$lt_ac_sed
5402     break
5403   fi
5404   while true; do
5405     cat conftest.in conftest.in >conftest.tmp
5406     mv conftest.tmp conftest.in
5407     cp conftest.in conftest.nl
5408     echo >>conftest.nl
5409     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5410     cmp -s conftest.out conftest.nl || break
5411     # 10000 chars as input seems more than enough
5412     test $lt_ac_count -gt 10 && break
5413     lt_ac_count=`expr $lt_ac_count + 1`
5414     if test $lt_ac_count -gt $lt_ac_max; then
5415       lt_ac_max=$lt_ac_count
5416       lt_cv_path_SED=$lt_ac_sed
5417     fi
5418   done
5419 done
5420
5421 fi
5422
5423 SED=$lt_cv_path_SED
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5426 $as_echo "$SED" >&6; }
5427
5428
5429 # Check whether --with-gnu-ld was given.
5430 if test "${with_gnu_ld+set}" = set; then :
5431   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5432 else
5433   with_gnu_ld=no
5434 fi
5435
5436 ac_prog=ld
5437 if test "$GCC" = yes; then
5438   # Check if gcc -print-prog-name=ld gives a path.
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5440 $as_echo_n "checking for ld used by $CC... " >&6; }
5441   case $host in
5442   *-*-mingw*)
5443     # gcc leaves a trailing carriage return which upsets mingw
5444     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5445   *)
5446     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5447   esac
5448   case $ac_prog in
5449     # Accept absolute paths.
5450     [\\/]* | ?:[\\/]*)
5451       re_direlt='/[^/][^/]*/\.\./'
5452       # Canonicalize the pathname of ld
5453       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5454       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5455         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5456       done
5457       test -z "$LD" && LD="$ac_prog"
5458       ;;
5459   "")
5460     # If it fails, then pretend we aren't using GCC.
5461     ac_prog=ld
5462     ;;
5463   *)
5464     # If it is relative, then search for the first ld in PATH.
5465     with_gnu_ld=unknown
5466     ;;
5467   esac
5468 elif test "$with_gnu_ld" = yes; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5470 $as_echo_n "checking for GNU ld... " >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5473 $as_echo_n "checking for non-GNU ld... " >&6; }
5474 fi
5475 if ${lt_cv_path_LD+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   if test -z "$LD"; then
5479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5480   for ac_dir in $PATH; do
5481     IFS="$lt_save_ifs"
5482     test -z "$ac_dir" && ac_dir=.
5483     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5484       lt_cv_path_LD="$ac_dir/$ac_prog"
5485       # Check to see if the program is GNU ld.  I'd rather use --version,
5486       # but apparently some variants of GNU ld only accept -v.
5487       # Break only if it was the GNU/non-GNU ld that we prefer.
5488       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5489       *GNU* | *'with BFD'*)
5490         test "$with_gnu_ld" != no && break
5491         ;;
5492       *)
5493         test "$with_gnu_ld" != yes && break
5494         ;;
5495       esac
5496     fi
5497   done
5498   IFS="$lt_save_ifs"
5499 else
5500   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5501 fi
5502 fi
5503
5504 LD="$lt_cv_path_LD"
5505 if test -n "$LD"; then
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5507 $as_echo "$LD" >&6; }
5508 else
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5511 fi
5512 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5515 if ${lt_cv_prog_gnu_ld+:} false; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5519 case `$LD -v 2>&1 </dev/null` in
5520 *GNU* | *'with BFD'*)
5521   lt_cv_prog_gnu_ld=yes
5522   ;;
5523 *)
5524   lt_cv_prog_gnu_ld=no
5525   ;;
5526 esac
5527 fi
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5530 with_gnu_ld=$lt_cv_prog_gnu_ld
5531
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5534 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5535 if ${lt_cv_ld_reload_flag+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   lt_cv_ld_reload_flag='-r'
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5541 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5542 reload_flag=$lt_cv_ld_reload_flag
5543 case $reload_flag in
5544 "" | " "*) ;;
5545 *) reload_flag=" $reload_flag" ;;
5546 esac
5547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548 case $host_os in
5549   darwin*)
5550     if test "$GCC" = yes; then
5551       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5552     else
5553       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554     fi
5555     ;;
5556 esac
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5559 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5560 if ${lt_cv_path_NM+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$NM"; then
5564   # Let the user override the test.
5565   lt_cv_path_NM="$NM"
5566 else
5567   lt_nm_to_check="${ac_tool_prefix}nm"
5568   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5569     lt_nm_to_check="$lt_nm_to_check nm"
5570   fi
5571   for lt_tmp_nm in $lt_nm_to_check; do
5572     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5573     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5574       IFS="$lt_save_ifs"
5575       test -z "$ac_dir" && ac_dir=.
5576       tmp_nm="$ac_dir/$lt_tmp_nm"
5577       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5578         # Check to see if the nm accepts a BSD-compat flag.
5579         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5580         #   nm: unknown option "B" ignored
5581         # Tru64's nm complains that /dev/null is an invalid object file
5582         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5583         */dev/null* | *'Invalid file or object type'*)
5584           lt_cv_path_NM="$tmp_nm -B"
5585           break
5586           ;;
5587         *)
5588           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5589           */dev/null*)
5590             lt_cv_path_NM="$tmp_nm -p"
5591             break
5592             ;;
5593           *)
5594             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5595             continue # so that we can try to find one that supports BSD flags
5596             ;;
5597           esac
5598           ;;
5599         esac
5600       fi
5601     done
5602     IFS="$lt_save_ifs"
5603   done
5604   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5605 fi
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5608 $as_echo "$lt_cv_path_NM" >&6; }
5609 NM="$lt_cv_path_NM"
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5612 $as_echo_n "checking whether ln -s works... " >&6; }
5613 LN_S=$as_ln_s
5614 if test "$LN_S" = "ln -s"; then
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5616 $as_echo "yes" >&6; }
5617 else
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5619 $as_echo "no, using $LN_S" >&6; }
5620 fi
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5623 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5624 if ${lt_cv_deplibs_check_method+:} false; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   lt_cv_file_magic_cmd='$MAGIC_CMD'
5628 lt_cv_file_magic_test_file=
5629 lt_cv_deplibs_check_method='unknown'
5630 # Need to set the preceding variable on all platforms that support
5631 # interlibrary dependencies.
5632 # 'none' -- dependencies not supported.
5633 # `unknown' -- same as none, but documents that we really don't know.
5634 # 'pass_all' -- all dependencies passed with no checks.
5635 # 'test_compile' -- check by making test program.
5636 # 'file_magic [[regex]]' -- check by looking for files in library path
5637 # which responds to the $file_magic_cmd with a given extended regex.
5638 # If you have `file' or equivalent on your system and you're not sure
5639 # whether `pass_all' will *always* work, you probably want this one.
5640
5641 case $host_os in
5642 aix[4-9]*)
5643   lt_cv_deplibs_check_method=pass_all
5644   ;;
5645
5646 beos*)
5647   lt_cv_deplibs_check_method=pass_all
5648   ;;
5649
5650 bsdi[45]*)
5651   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5652   lt_cv_file_magic_cmd='/usr/bin/file -L'
5653   lt_cv_file_magic_test_file=/shlib/libc.so
5654   ;;
5655
5656 cygwin*)
5657   # func_win32_libid is a shell function defined in ltmain.sh
5658   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5659   lt_cv_file_magic_cmd='func_win32_libid'
5660   ;;
5661
5662 mingw* | pw32*)
5663   # Base MSYS/MinGW do not provide the 'file' command needed by
5664   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5665   # unless we find 'file', for example because we are cross-compiling.
5666   if ( file / ) >/dev/null 2>&1; then
5667     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5668     lt_cv_file_magic_cmd='func_win32_libid'
5669   else
5670     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5671     lt_cv_file_magic_cmd='$OBJDUMP -f'
5672   fi
5673   ;;
5674
5675 darwin* | rhapsody*)
5676   lt_cv_deplibs_check_method=pass_all
5677   ;;
5678
5679 freebsd* | dragonfly*)
5680   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5681     case $host_cpu in
5682     i*86 )
5683       # Not sure whether the presence of OpenBSD here was a mistake.
5684       # Let's accept both of them until this is cleared up.
5685       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5686       lt_cv_file_magic_cmd=/usr/bin/file
5687       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5688       ;;
5689     esac
5690   else
5691     lt_cv_deplibs_check_method=pass_all
5692   fi
5693   ;;
5694
5695 gnu*)
5696   lt_cv_deplibs_check_method=pass_all
5697   ;;
5698
5699 hpux10.20* | hpux11*)
5700   lt_cv_file_magic_cmd=/usr/bin/file
5701   case $host_cpu in
5702   ia64*)
5703     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5704     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5705     ;;
5706   hppa*64*)
5707     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]'
5708     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5709     ;;
5710   *)
5711     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5712     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5713     ;;
5714   esac
5715   ;;
5716
5717 interix[3-9]*)
5718   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5719   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5720   ;;
5721
5722 irix5* | irix6* | nonstopux*)
5723   case $LD in
5724   *-32|*"-32 ") libmagic=32-bit;;
5725   *-n32|*"-n32 ") libmagic=N32;;
5726   *-64|*"-64 ") libmagic=64-bit;;
5727   *) libmagic=never-match;;
5728   esac
5729   lt_cv_deplibs_check_method=pass_all
5730   ;;
5731
5732 # This must be Linux ELF.
5733 linux* | k*bsd*-gnu)
5734   lt_cv_deplibs_check_method=pass_all
5735   ;;
5736
5737 netbsd* | netbsdelf*-gnu)
5738   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5739     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5740   else
5741     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5742   fi
5743   ;;
5744
5745 newos6*)
5746   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5747   lt_cv_file_magic_cmd=/usr/bin/file
5748   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5749   ;;
5750
5751 nto-qnx*)
5752   lt_cv_deplibs_check_method=unknown
5753   ;;
5754
5755 openbsd*)
5756   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5757     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5758   else
5759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5760   fi
5761   ;;
5762
5763 osf3* | osf4* | osf5*)
5764   lt_cv_deplibs_check_method=pass_all
5765   ;;
5766
5767 rdos*)
5768   lt_cv_deplibs_check_method=pass_all
5769   ;;
5770
5771 solaris*)
5772   lt_cv_deplibs_check_method=pass_all
5773   ;;
5774
5775 sysv4 | sysv4.3*)
5776   case $host_vendor in
5777   motorola)
5778     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]'
5779     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5780     ;;
5781   ncr)
5782     lt_cv_deplibs_check_method=pass_all
5783     ;;
5784   sequent)
5785     lt_cv_file_magic_cmd='/bin/file'
5786     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5787     ;;
5788   sni)
5789     lt_cv_file_magic_cmd='/bin/file'
5790     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5791     lt_cv_file_magic_test_file=/lib/libc.so
5792     ;;
5793   siemens)
5794     lt_cv_deplibs_check_method=pass_all
5795     ;;
5796   pc)
5797     lt_cv_deplibs_check_method=pass_all
5798     ;;
5799   esac
5800   ;;
5801
5802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5803   lt_cv_deplibs_check_method=pass_all
5804   ;;
5805 esac
5806
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5809 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5810 file_magic_cmd=$lt_cv_file_magic_cmd
5811 deplibs_check_method=$lt_cv_deplibs_check_method
5812 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5813
5814
5815
5816
5817 # If no C compiler was specified, use CC.
5818 LTCC=${LTCC-"$CC"}
5819
5820 # If no C compiler flags were specified, use CFLAGS.
5821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5822
5823 # Allow CC to be a program name with arguments.
5824 compiler=$CC
5825
5826 # Check whether --enable-libtool-lock was given.
5827 if test "${enable_libtool_lock+set}" = set; then :
5828   enableval=$enable_libtool_lock;
5829 fi
5830
5831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5832
5833 # Some flags need to be propagated to the compiler or linker for good
5834 # libtool support.
5835 case $host in
5836 ia64-*-hpux*)
5837   # Find out which ABI we are using.
5838   echo 'int i;' > conftest.$ac_ext
5839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5840   (eval $ac_compile) 2>&5
5841   ac_status=$?
5842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843   test $ac_status = 0; }; then
5844     case `/usr/bin/file conftest.$ac_objext` in
5845     *ELF-32*)
5846       HPUX_IA64_MODE="32"
5847       ;;
5848     *ELF-64*)
5849       HPUX_IA64_MODE="64"
5850       ;;
5851     esac
5852   fi
5853   rm -rf conftest*
5854   ;;
5855 *-*-irix6*)
5856   # Find out which ABI we are using.
5857   echo '#line 5857 "configure"' > conftest.$ac_ext
5858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5859   (eval $ac_compile) 2>&5
5860   ac_status=$?
5861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862   test $ac_status = 0; }; then
5863    if test "$lt_cv_prog_gnu_ld" = yes; then
5864     case `/usr/bin/file conftest.$ac_objext` in
5865     *32-bit*)
5866       LD="${LD-ld} -melf32bsmip"
5867       ;;
5868     *N32*)
5869       LD="${LD-ld} -melf32bmipn32"
5870       ;;
5871     *64-bit*)
5872       LD="${LD-ld} -melf64bmip"
5873       ;;
5874     esac
5875    else
5876     case `/usr/bin/file conftest.$ac_objext` in
5877     *32-bit*)
5878       LD="${LD-ld} -32"
5879       ;;
5880     *N32*)
5881       LD="${LD-ld} -n32"
5882       ;;
5883     *64-bit*)
5884       LD="${LD-ld} -64"
5885       ;;
5886     esac
5887    fi
5888   fi
5889   rm -rf conftest*
5890   ;;
5891
5892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5893 s390*-*linux*|sparc*-*linux*)
5894   # Find out which ABI we are using.
5895   echo 'int i;' > conftest.$ac_ext
5896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5897   (eval $ac_compile) 2>&5
5898   ac_status=$?
5899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900   test $ac_status = 0; }; then
5901     case `/usr/bin/file conftest.o` in
5902     *32-bit*)
5903       case $host in
5904         x86_64-*kfreebsd*-gnu)
5905           LD="${LD-ld} -m elf_i386_fbsd"
5906           ;;
5907         x86_64-*linux*)
5908           LD="${LD-ld} -m elf_i386"
5909           ;;
5910         ppc64-*linux*|powerpc64-*linux*)
5911           LD="${LD-ld} -m elf32ppclinux"
5912           ;;
5913         s390x-*linux*)
5914           LD="${LD-ld} -m elf_s390"
5915           ;;
5916         sparc64-*linux*)
5917           LD="${LD-ld} -m elf32_sparc"
5918           ;;
5919       esac
5920       ;;
5921     *64-bit*)
5922       case $host in
5923         x86_64-*kfreebsd*-gnu)
5924           LD="${LD-ld} -m elf_x86_64_fbsd"
5925           ;;
5926         x86_64-*linux*)
5927           LD="${LD-ld} -m elf_x86_64"
5928           ;;
5929         ppc*-*linux*|powerpc*-*linux*)
5930           LD="${LD-ld} -m elf64ppc"
5931           ;;
5932         s390*-*linux*)
5933           LD="${LD-ld} -m elf64_s390"
5934           ;;
5935         sparc*-*linux*)
5936           LD="${LD-ld} -m elf64_sparc"
5937           ;;
5938       esac
5939       ;;
5940     esac
5941   fi
5942   rm -rf conftest*
5943   ;;
5944
5945 *-*-sco3.2v5*)
5946   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5947   SAVE_CFLAGS="$CFLAGS"
5948   CFLAGS="$CFLAGS -belf"
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5951 if ${lt_cv_cc_needs_belf+:} false; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   ac_ext=c
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
5960      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h.  */
5962
5963 int
5964 main ()
5965 {
5966
5967   ;
5968   return 0;
5969 }
5970 _ACEOF
5971 if ac_fn_c_try_link "$LINENO"; then :
5972   lt_cv_cc_needs_belf=yes
5973 else
5974   lt_cv_cc_needs_belf=no
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext \
5977     conftest$ac_exeext conftest.$ac_ext
5978      ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5987   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5988     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5989     CFLAGS="$SAVE_CFLAGS"
5990   fi
5991   ;;
5992 sparc*-*solaris*)
5993   # Find out which ABI we are using.
5994   echo 'int i;' > conftest.$ac_ext
5995   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996   (eval $ac_compile) 2>&5
5997   ac_status=$?
5998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999   test $ac_status = 0; }; then
6000     case `/usr/bin/file conftest.o` in
6001     *64-bit*)
6002       case $lt_cv_prog_gnu_ld in
6003       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6004       *)
6005         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6006           LD="${LD-ld} -64"
6007         fi
6008         ;;
6009       esac
6010       ;;
6011     esac
6012   fi
6013   rm -rf conftest*
6014   ;;
6015
6016
6017 esac
6018
6019 need_locks="$enable_libtool_lock"
6020
6021
6022 for ac_header in dlfcn.h
6023 do :
6024   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6025 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6026   cat >>confdefs.h <<_ACEOF
6027 #define HAVE_DLFCN_H 1
6028 _ACEOF
6029
6030 fi
6031
6032 done
6033
6034
6035
6036 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6037     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6038     (test "X$CXX" != "Xg++"))) ; then
6039   ac_ext=cpp
6040 ac_cpp='$CXXCPP $CPPFLAGS'
6041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6045 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6046 if test -z "$CXXCPP"; then
6047   if ${ac_cv_prog_CXXCPP+:} false; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050       # Double quotes because CXXCPP needs to be expanded
6051     for CXXCPP in "$CXX -E" "/lib/cpp"
6052     do
6053       ac_preproc_ok=false
6054 for ac_cxx_preproc_warn_flag in '' yes
6055 do
6056   # Use a header file that comes with gcc, so configuring glibc
6057   # with a fresh cross-compiler works.
6058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6059   # <limits.h> exists even on freestanding compilers.
6060   # On the NeXT, cc -E runs the code through the compiler's parser,
6061   # not just through cpp. "Syntax error" is here to catch this case.
6062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h.  */
6064 #ifdef __STDC__
6065 # include <limits.h>
6066 #else
6067 # include <assert.h>
6068 #endif
6069                      Syntax error
6070 _ACEOF
6071 if ac_fn_cxx_try_cpp "$LINENO"; then :
6072
6073 else
6074   # Broken: fails on valid input.
6075 continue
6076 fi
6077 rm -f conftest.err conftest.i conftest.$ac_ext
6078
6079   # OK, works on sane cases.  Now check whether nonexistent headers
6080   # can be detected and how.
6081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h.  */
6083 #include <ac_nonexistent.h>
6084 _ACEOF
6085 if ac_fn_cxx_try_cpp "$LINENO"; then :
6086   # Broken: success on invalid input.
6087 continue
6088 else
6089   # Passes both tests.
6090 ac_preproc_ok=:
6091 break
6092 fi
6093 rm -f conftest.err conftest.i conftest.$ac_ext
6094
6095 done
6096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6097 rm -f conftest.i conftest.err conftest.$ac_ext
6098 if $ac_preproc_ok; then :
6099   break
6100 fi
6101
6102     done
6103     ac_cv_prog_CXXCPP=$CXXCPP
6104
6105 fi
6106   CXXCPP=$ac_cv_prog_CXXCPP
6107 else
6108   ac_cv_prog_CXXCPP=$CXXCPP
6109 fi
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6111 $as_echo "$CXXCPP" >&6; }
6112 ac_preproc_ok=false
6113 for ac_cxx_preproc_warn_flag in '' yes
6114 do
6115   # Use a header file that comes with gcc, so configuring glibc
6116   # with a fresh cross-compiler works.
6117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118   # <limits.h> exists even on freestanding compilers.
6119   # On the NeXT, cc -E runs the code through the compiler's parser,
6120   # not just through cpp. "Syntax error" is here to catch this case.
6121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h.  */
6123 #ifdef __STDC__
6124 # include <limits.h>
6125 #else
6126 # include <assert.h>
6127 #endif
6128                      Syntax error
6129 _ACEOF
6130 if ac_fn_cxx_try_cpp "$LINENO"; then :
6131
6132 else
6133   # Broken: fails on valid input.
6134 continue
6135 fi
6136 rm -f conftest.err conftest.i conftest.$ac_ext
6137
6138   # OK, works on sane cases.  Now check whether nonexistent headers
6139   # can be detected and how.
6140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h.  */
6142 #include <ac_nonexistent.h>
6143 _ACEOF
6144 if ac_fn_cxx_try_cpp "$LINENO"; then :
6145   # Broken: success on invalid input.
6146 continue
6147 else
6148   # Passes both tests.
6149 ac_preproc_ok=:
6150 break
6151 fi
6152 rm -f conftest.err conftest.i conftest.$ac_ext
6153
6154 done
6155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6156 rm -f conftest.i conftest.err conftest.$ac_ext
6157 if $ac_preproc_ok; then :
6158
6159 else
6160   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6162 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6163 See \`config.log' for more details" "$LINENO" 5; }
6164 fi
6165
6166 ac_ext=cpp
6167 ac_cpp='$CXXCPP $CPPFLAGS'
6168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6171
6172 fi
6173
6174
6175 ac_ext=f
6176 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6177 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6179 if test -n "$ac_tool_prefix"; then
6180   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
6181   do
6182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_F77+:} false; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189   if test -n "$F77"; then
6190   ac_cv_prog_F77="$F77" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197     for ac_exec_ext in '' $ac_executable_extensions; do
6198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6199     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204   done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 F77=$ac_cv_prog_F77
6210 if test -n "$F77"; then
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6212 $as_echo "$F77" >&6; }
6213 else
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219     test -n "$F77" && break
6220   done
6221 fi
6222 if test -z "$F77"; then
6223   ac_ct_F77=$F77
6224   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
6225 do
6226   # Extract the first word of "$ac_prog", so it can be a program name with args.
6227 set dummy $ac_prog; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   if test -n "$ac_ct_F77"; then
6234   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_exec_ext in '' $ac_executable_extensions; do
6242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243     ac_cv_prog_ac_ct_F77="$ac_prog"
6244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248   done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6254 if test -n "$ac_ct_F77"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6256 $as_echo "$ac_ct_F77" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262
6263   test -n "$ac_ct_F77" && break
6264 done
6265
6266   if test "x$ac_ct_F77" = x; then
6267     F77=""
6268   else
6269     case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275     F77=$ac_ct_F77
6276   fi
6277 fi
6278
6279
6280 # Provide some information about the compiler.
6281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6282 set X $ac_compile
6283 ac_compiler=$2
6284 for ac_option in --version -v -V -qversion; do
6285   { { ac_try="$ac_compiler $ac_option >&5"
6286 case "(($ac_try" in
6287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288   *) ac_try_echo=$ac_try;;
6289 esac
6290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6291 $as_echo "$ac_try_echo"; } >&5
6292   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6293   ac_status=$?
6294   if test -s conftest.err; then
6295     sed '10a\
6296 ... rest of stderr output deleted ...
6297          10q' conftest.err >conftest.er1
6298     cat conftest.er1 >&5
6299   fi
6300   rm -f conftest.er1 conftest.err
6301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302   test $ac_status = 0; }
6303 done
6304 rm -f a.out
6305
6306 # If we don't use `.F' as extension, the preprocessor is not run on the
6307 # input file.  (Note that this only needs to work for GNU compilers.)
6308 ac_save_ext=$ac_ext
6309 ac_ext=F
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6311 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6312 if ${ac_cv_f77_compiler_gnu+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   cat > conftest.$ac_ext <<_ACEOF
6316       program main
6317 #ifndef __GNUC__
6318        choke me
6319 #endif
6320
6321       end
6322 _ACEOF
6323 if ac_fn_f77_try_compile "$LINENO"; then :
6324   ac_compiler_gnu=yes
6325 else
6326   ac_compiler_gnu=no
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6330
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6333 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6334 ac_ext=$ac_save_ext
6335 ac_test_FFLAGS=${FFLAGS+set}
6336 ac_save_FFLAGS=$FFLAGS
6337 FFLAGS=
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6339 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6340 if ${ac_cv_prog_f77_g+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   FFLAGS=-g
6344 cat > conftest.$ac_ext <<_ACEOF
6345       program main
6346
6347       end
6348 _ACEOF
6349 if ac_fn_f77_try_compile "$LINENO"; then :
6350   ac_cv_prog_f77_g=yes
6351 else
6352   ac_cv_prog_f77_g=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6358 $as_echo "$ac_cv_prog_f77_g" >&6; }
6359 if test "$ac_test_FFLAGS" = set; then
6360   FFLAGS=$ac_save_FFLAGS
6361 elif test $ac_cv_prog_f77_g = yes; then
6362   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6363     FFLAGS="-g -O2"
6364   else
6365     FFLAGS="-g"
6366   fi
6367 else
6368   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6369     FFLAGS="-O2"
6370   else
6371     FFLAGS=
6372   fi
6373 fi
6374
6375 if test $ac_compiler_gnu = yes; then
6376   G77=yes
6377 else
6378   G77=
6379 fi
6380 ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385
6386
6387
6388 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6389 # find the maximum length of command line arguments
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6391 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6392 if ${lt_cv_sys_max_cmd_len+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395     i=0
6396   teststring="ABCD"
6397
6398   case $build_os in
6399   msdosdjgpp*)
6400     # On DJGPP, this test can blow up pretty badly due to problems in libc
6401     # (any single argument exceeding 2000 bytes causes a buffer overrun
6402     # during glob expansion).  Even if it were fixed, the result of this
6403     # check would be larger than it should be.
6404     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6405     ;;
6406
6407   gnu*)
6408     # Under GNU Hurd, this test is not required because there is
6409     # no limit to the length of command line arguments.
6410     # Libtool will interpret -1 as no limit whatsoever
6411     lt_cv_sys_max_cmd_len=-1;
6412     ;;
6413
6414   cygwin* | mingw*)
6415     # On Win9x/ME, this test blows up -- it succeeds, but takes
6416     # about 5 minutes as the teststring grows exponentially.
6417     # Worse, since 9x/ME are not pre-emptively multitasking,
6418     # you end up with a "frozen" computer, even though with patience
6419     # the test eventually succeeds (with a max line length of 256k).
6420     # Instead, let's just punt: use the minimum linelength reported by
6421     # all of the supported platforms: 8192 (on NT/2K/XP).
6422     lt_cv_sys_max_cmd_len=8192;
6423     ;;
6424
6425   amigaos*)
6426     # On AmigaOS with pdksh, this test takes hours, literally.
6427     # So we just punt and use a minimum line length of 8192.
6428     lt_cv_sys_max_cmd_len=8192;
6429     ;;
6430
6431   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6432     # This has been around since 386BSD, at least.  Likely further.
6433     if test -x /sbin/sysctl; then
6434       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6435     elif test -x /usr/sbin/sysctl; then
6436       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6437     else
6438       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6439     fi
6440     # And add a safety zone
6441     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6442     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6443     ;;
6444
6445   interix*)
6446     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6447     lt_cv_sys_max_cmd_len=196608
6448     ;;
6449
6450   osf*)
6451     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6452     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6453     # nice to cause kernel panics so lets avoid the loop below.
6454     # First set a reasonable default.
6455     lt_cv_sys_max_cmd_len=16384
6456     #
6457     if test -x /sbin/sysconfig; then
6458       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6459         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6460       esac
6461     fi
6462     ;;
6463   sco3.2v5*)
6464     lt_cv_sys_max_cmd_len=102400
6465     ;;
6466   sysv5* | sco5v6* | sysv4.2uw2*)
6467     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6468     if test -n "$kargmax"; then
6469       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6470     else
6471       lt_cv_sys_max_cmd_len=32768
6472     fi
6473     ;;
6474   *)
6475     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6476     if test -n "$lt_cv_sys_max_cmd_len"; then
6477       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6478       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6479     else
6480       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6481       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6482                = "XX$teststring") >/dev/null 2>&1 &&
6483               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6484               lt_cv_sys_max_cmd_len=$new_result &&
6485               test $i != 17 # 1/2 MB should be enough
6486       do
6487         i=`expr $i + 1`
6488         teststring=$teststring$teststring
6489       done
6490       teststring=
6491       # Add a significant safety factor because C++ compilers can tack on massive
6492       # amounts of additional arguments before passing them to the linker.
6493       # It appears as though 1/2 is a usable value.
6494       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6495     fi
6496     ;;
6497   esac
6498
6499 fi
6500
6501 if test -n $lt_cv_sys_max_cmd_len ; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6503 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6506 $as_echo "none" >&6; }
6507 fi
6508
6509
6510
6511
6512
6513 # Check for command to grab the raw symbol name followed by C symbol from nm.
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6515 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6516 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519
6520 # These are sane defaults that work on at least a few old systems.
6521 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6522
6523 # Character class describing NM global symbol codes.
6524 symcode='[BCDEGRST]'
6525
6526 # Regexp to match symbols that can be accessed directly from C.
6527 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6528
6529 # Transform an extracted symbol line into a proper C declaration
6530 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6531
6532 # Transform an extracted symbol line into symbol name and symbol address
6533 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'"
6534
6535 # Define system-specific variables.
6536 case $host_os in
6537 aix*)
6538   symcode='[BCDT]'
6539   ;;
6540 cygwin* | mingw* | pw32*)
6541   symcode='[ABCDGISTW]'
6542   ;;
6543 hpux*) # Its linker distinguishes data from code symbols
6544   if test "$host_cpu" = ia64; then
6545     symcode='[ABCDEGRST]'
6546   fi
6547   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6548   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'"
6549   ;;
6550 linux* | k*bsd*-gnu)
6551   if test "$host_cpu" = ia64; then
6552     symcode='[ABCDGIRSTW]'
6553     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6554     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'"
6555   fi
6556   ;;
6557 irix* | nonstopux*)
6558   symcode='[BCDEGRST]'
6559   ;;
6560 osf*)
6561   symcode='[BCDEGQRST]'
6562   ;;
6563 solaris*)
6564   symcode='[BDRT]'
6565   ;;
6566 sco3.2v5*)
6567   symcode='[DT]'
6568   ;;
6569 sysv4.2uw2*)
6570   symcode='[DT]'
6571   ;;
6572 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6573   symcode='[ABDT]'
6574   ;;
6575 sysv4)
6576   symcode='[DFNSTU]'
6577   ;;
6578 esac
6579
6580 # Handle CRLF in mingw tool chain
6581 opt_cr=
6582 case $build_os in
6583 mingw*)
6584   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6585   ;;
6586 esac
6587
6588 # If we're using GNU nm, then use its standard symbol codes.
6589 case `$NM -V 2>&1` in
6590 *GNU* | *'with BFD'*)
6591   symcode='[ABCDGIRSTW]' ;;
6592 esac
6593
6594 # Try without a prefix undercore, then with it.
6595 for ac_symprfx in "" "_"; do
6596
6597   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6598   symxfrm="\\1 $ac_symprfx\\2 \\2"
6599
6600   # Write the raw and C identifiers.
6601   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6602
6603   # Check to see that the pipe works correctly.
6604   pipe_works=no
6605
6606   rm -f conftest*
6607   cat > conftest.$ac_ext <<EOF
6608 #ifdef __cplusplus
6609 extern "C" {
6610 #endif
6611 char nm_test_var;
6612 void nm_test_func(){}
6613 #ifdef __cplusplus
6614 }
6615 #endif
6616 int main(){nm_test_var='a';nm_test_func();return(0);}
6617 EOF
6618
6619   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6620   (eval $ac_compile) 2>&5
6621   ac_status=$?
6622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623   test $ac_status = 0; }; then
6624     # Now try to grab the symbols.
6625     nlist=conftest.nm
6626     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6627   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6628   ac_status=$?
6629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630   test $ac_status = 0; } && test -s "$nlist"; then
6631       # Try sorting and uniquifying the output.
6632       if sort "$nlist" | uniq > "$nlist"T; then
6633         mv -f "$nlist"T "$nlist"
6634       else
6635         rm -f "$nlist"T
6636       fi
6637
6638       # Make sure that we snagged all the symbols we need.
6639       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6640         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6641           cat <<EOF > conftest.$ac_ext
6642 #ifdef __cplusplus
6643 extern "C" {
6644 #endif
6645
6646 EOF
6647           # Now generate the symbol file.
6648           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6649
6650           cat <<EOF >> conftest.$ac_ext
6651 #if defined (__STDC__) && __STDC__
6652 # define lt_ptr_t void *
6653 #else
6654 # define lt_ptr_t char *
6655 # define const
6656 #endif
6657
6658 /* The mapping between symbol names and symbols. */
6659 const struct {
6660   const char *name;
6661   lt_ptr_t address;
6662 }
6663 lt_preloaded_symbols[] =
6664 {
6665 EOF
6666           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6667           cat <<\EOF >> conftest.$ac_ext
6668   {0, (lt_ptr_t) 0}
6669 };
6670
6671 #ifdef __cplusplus
6672 }
6673 #endif
6674 EOF
6675           # Now try linking the two files.
6676           mv conftest.$ac_objext conftstm.$ac_objext
6677           lt_save_LIBS="$LIBS"
6678           lt_save_CFLAGS="$CFLAGS"
6679           LIBS="conftstm.$ac_objext"
6680           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6681           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6682   (eval $ac_link) 2>&5
6683   ac_status=$?
6684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6686             pipe_works=yes
6687           fi
6688           LIBS="$lt_save_LIBS"
6689           CFLAGS="$lt_save_CFLAGS"
6690         else
6691           echo "cannot find nm_test_func in $nlist" >&5
6692         fi
6693       else
6694         echo "cannot find nm_test_var in $nlist" >&5
6695       fi
6696     else
6697       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6698     fi
6699   else
6700     echo "$progname: failed program was:" >&5
6701     cat conftest.$ac_ext >&5
6702   fi
6703   rm -rf conftest* conftst*
6704
6705   # Do not use the global_symbol_pipe unless it works.
6706   if test "$pipe_works" = yes; then
6707     break
6708   else
6709     lt_cv_sys_global_symbol_pipe=
6710   fi
6711 done
6712
6713 fi
6714
6715 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6716   lt_cv_sys_global_symbol_to_cdecl=
6717 fi
6718 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6720 $as_echo "failed" >&6; }
6721 else
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6723 $as_echo "ok" >&6; }
6724 fi
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6727 $as_echo_n "checking for objdir... " >&6; }
6728 if ${lt_cv_objdir+:} false; then :
6729   $as_echo_n "(cached) " >&6
6730 else
6731   rm -f .libs 2>/dev/null
6732 mkdir .libs 2>/dev/null
6733 if test -d .libs; then
6734   lt_cv_objdir=.libs
6735 else
6736   # MS-DOS does not allow filenames that begin with a dot.
6737   lt_cv_objdir=_libs
6738 fi
6739 rmdir .libs 2>/dev/null
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6742 $as_echo "$lt_cv_objdir" >&6; }
6743 objdir=$lt_cv_objdir
6744
6745
6746
6747
6748
6749 case $host_os in
6750 aix3*)
6751   # AIX sometimes has problems with the GCC collect2 program.  For some
6752   # reason, if we set the COLLECT_NAMES environment variable, the problems
6753   # vanish in a puff of smoke.
6754   if test "X${COLLECT_NAMES+set}" != Xset; then
6755     COLLECT_NAMES=
6756     export COLLECT_NAMES
6757   fi
6758   ;;
6759 esac
6760
6761 # Sed substitution that helps us do robust quoting.  It backslashifies
6762 # metacharacters that are still active within double-quoted strings.
6763 Xsed='sed -e 1s/^X//'
6764 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6765
6766 # Same as above, but do not quote variable references.
6767 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6768
6769 # Sed substitution to delay expansion of an escaped shell variable in a
6770 # double_quote_subst'ed string.
6771 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6772
6773 # Sed substitution to avoid accidental globbing in evaled expressions
6774 no_glob_subst='s/\*/\\\*/g'
6775
6776 # Constants:
6777 rm="rm -f"
6778
6779 # Global variables:
6780 default_ofile=libtool
6781 can_build_shared=yes
6782
6783 # All known linkers require a `.a' archive for static linking (except MSVC,
6784 # which needs '.lib').
6785 libext=a
6786 ltmain="$ac_aux_dir/ltmain.sh"
6787 ofile="$default_ofile"
6788 with_gnu_ld="$lt_cv_prog_gnu_ld"
6789
6790 if test -n "$ac_tool_prefix"; then
6791   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ar; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_AR+:} false; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   if test -n "$AR"; then
6799   ac_cv_prog_AR="$AR" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806     for ac_exec_ext in '' $ac_executable_extensions; do
6807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808     ac_cv_prog_AR="${ac_tool_prefix}ar"
6809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813   done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 AR=$ac_cv_prog_AR
6819 if test -n "$AR"; then
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6821 $as_echo "$AR" >&6; }
6822 else
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_AR"; then
6830   ac_ct_AR=$AR
6831   # Extract the first word of "ar", so it can be a program name with args.
6832 set dummy ar; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   if test -n "$ac_ct_AR"; then
6839   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846     for ac_exec_ext in '' $ac_executable_extensions; do
6847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848     ac_cv_prog_ac_ct_AR="ar"
6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853   done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6859 if test -n "$ac_ct_AR"; then
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6861 $as_echo "$ac_ct_AR" >&6; }
6862 else
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867   if test "x$ac_ct_AR" = x; then
6868     AR="false"
6869   else
6870     case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876     AR=$ac_ct_AR
6877   fi
6878 else
6879   AR="$ac_cv_prog_AR"
6880 fi
6881
6882 if test -n "$ac_tool_prefix"; then
6883   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_RANLIB+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   if test -n "$RANLIB"; then
6891   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 RANLIB=$ac_cv_prog_RANLIB
6911 if test -n "$RANLIB"; then
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6913 $as_echo "$RANLIB" >&6; }
6914 else
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_RANLIB"; then
6922   ac_ct_RANLIB=$RANLIB
6923   # Extract the first word of "ranlib", so it can be a program name with args.
6924 set dummy ranlib; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$ac_ct_RANLIB"; then
6931   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940     ac_cv_prog_ac_ct_RANLIB="ranlib"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953 $as_echo "$ac_ct_RANLIB" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959   if test "x$ac_ct_RANLIB" = x; then
6960     RANLIB=":"
6961   else
6962     case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968     RANLIB=$ac_ct_RANLIB
6969   fi
6970 else
6971   RANLIB="$ac_cv_prog_RANLIB"
6972 fi
6973
6974 if test -n "$ac_tool_prefix"; then
6975   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}strip; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_STRIP+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   if test -n "$STRIP"; then
6983   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988   IFS=$as_save_IFS
6989   test -z "$as_dir" && as_dir=.
6990     for ac_exec_ext in '' $ac_executable_extensions; do
6991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994     break 2
6995   fi
6996 done
6997   done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 STRIP=$ac_cv_prog_STRIP
7003 if test -n "$STRIP"; then
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7005 $as_echo "$STRIP" >&6; }
7006 else
7007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011
7012 fi
7013 if test -z "$ac_cv_prog_STRIP"; then
7014   ac_ct_STRIP=$STRIP
7015   # Extract the first word of "strip", so it can be a program name with args.
7016 set dummy strip; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   if test -n "$ac_ct_STRIP"; then
7023   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   test -z "$as_dir" && as_dir=.
7030     for ac_exec_ext in '' $ac_executable_extensions; do
7031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032     ac_cv_prog_ac_ct_STRIP="strip"
7033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034     break 2
7035   fi
7036 done
7037   done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7043 if test -n "$ac_ct_STRIP"; then
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7045 $as_echo "$ac_ct_STRIP" >&6; }
7046 else
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051   if test "x$ac_ct_STRIP" = x; then
7052     STRIP=":"
7053   else
7054     case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060     STRIP=$ac_ct_STRIP
7061   fi
7062 else
7063   STRIP="$ac_cv_prog_STRIP"
7064 fi
7065
7066
7067 old_CC="$CC"
7068 old_CFLAGS="$CFLAGS"
7069
7070 # Set sane defaults for various variables
7071 test -z "$AR" && AR=ar
7072 test -z "$AR_FLAGS" && AR_FLAGS=cru
7073 test -z "$AS" && AS=as
7074 test -z "$CC" && CC=cc
7075 test -z "$LTCC" && LTCC=$CC
7076 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7077 test -z "$DLLTOOL" && DLLTOOL=dlltool
7078 test -z "$LD" && LD=ld
7079 test -z "$LN_S" && LN_S="ln -s"
7080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7081 test -z "$NM" && NM=nm
7082 test -z "$SED" && SED=sed
7083 test -z "$OBJDUMP" && OBJDUMP=objdump
7084 test -z "$RANLIB" && RANLIB=:
7085 test -z "$STRIP" && STRIP=:
7086 test -z "$ac_objext" && ac_objext=o
7087
7088 # Determine commands to create old-style static archives.
7089 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7090 old_postinstall_cmds='chmod 644 $oldlib'
7091 old_postuninstall_cmds=
7092
7093 if test -n "$RANLIB"; then
7094   case $host_os in
7095   openbsd*)
7096     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7097     ;;
7098   *)
7099     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7100     ;;
7101   esac
7102   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7103 fi
7104
7105 for cc_temp in $compiler""; do
7106   case $cc_temp in
7107     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7108     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7109     \-*) ;;
7110     *) break;;
7111   esac
7112 done
7113 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7114
7115
7116 # Only perform the check for file, if the check method requires it
7117 case $deplibs_check_method in
7118 file_magic*)
7119   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7121 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7122 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125   case $MAGIC_CMD in
7126 [\\/*] |  ?:[\\/]*)
7127   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7128   ;;
7129 *)
7130   lt_save_MAGIC_CMD="$MAGIC_CMD"
7131   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7132   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7133   for ac_dir in $ac_dummy; do
7134     IFS="$lt_save_ifs"
7135     test -z "$ac_dir" && ac_dir=.
7136     if test -f $ac_dir/${ac_tool_prefix}file; then
7137       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7138       if test -n "$file_magic_test_file"; then
7139         case $deplibs_check_method in
7140         "file_magic "*)
7141           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7142           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7144             $EGREP "$file_magic_regex" > /dev/null; then
7145             :
7146           else
7147             cat <<EOF 1>&2
7148
7149 *** Warning: the command libtool uses to detect shared libraries,
7150 *** $file_magic_cmd, produces output that libtool cannot recognize.
7151 *** The result is that libtool may fail to recognize shared libraries
7152 *** as such.  This will affect the creation of libtool libraries that
7153 *** depend on shared libraries, but programs linked with such libtool
7154 *** libraries will work regardless of this problem.  Nevertheless, you
7155 *** may want to report the problem to your system manager and/or to
7156 *** bug-libtool@gnu.org
7157
7158 EOF
7159           fi ;;
7160         esac
7161       fi
7162       break
7163     fi
7164   done
7165   IFS="$lt_save_ifs"
7166   MAGIC_CMD="$lt_save_MAGIC_CMD"
7167   ;;
7168 esac
7169 fi
7170
7171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7172 if test -n "$MAGIC_CMD"; then
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7174 $as_echo "$MAGIC_CMD" >&6; }
7175 else
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179
7180 if test -z "$lt_cv_path_MAGIC_CMD"; then
7181   if test -n "$ac_tool_prefix"; then
7182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7183 $as_echo_n "checking for file... " >&6; }
7184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   case $MAGIC_CMD in
7188 [\\/*] |  ?:[\\/]*)
7189   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7190   ;;
7191 *)
7192   lt_save_MAGIC_CMD="$MAGIC_CMD"
7193   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7194   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7195   for ac_dir in $ac_dummy; do
7196     IFS="$lt_save_ifs"
7197     test -z "$ac_dir" && ac_dir=.
7198     if test -f $ac_dir/file; then
7199       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7200       if test -n "$file_magic_test_file"; then
7201         case $deplibs_check_method in
7202         "file_magic "*)
7203           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7204           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7206             $EGREP "$file_magic_regex" > /dev/null; then
7207             :
7208           else
7209             cat <<EOF 1>&2
7210
7211 *** Warning: the command libtool uses to detect shared libraries,
7212 *** $file_magic_cmd, produces output that libtool cannot recognize.
7213 *** The result is that libtool may fail to recognize shared libraries
7214 *** as such.  This will affect the creation of libtool libraries that
7215 *** depend on shared libraries, but programs linked with such libtool
7216 *** libraries will work regardless of this problem.  Nevertheless, you
7217 *** may want to report the problem to your system manager and/or to
7218 *** bug-libtool@gnu.org
7219
7220 EOF
7221           fi ;;
7222         esac
7223       fi
7224       break
7225     fi
7226   done
7227   IFS="$lt_save_ifs"
7228   MAGIC_CMD="$lt_save_MAGIC_CMD"
7229   ;;
7230 esac
7231 fi
7232
7233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7234 if test -n "$MAGIC_CMD"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7236 $as_echo "$MAGIC_CMD" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242   else
7243     MAGIC_CMD=:
7244   fi
7245 fi
7246
7247   fi
7248   ;;
7249 esac
7250
7251
7252   case $host_os in
7253     rhapsody* | darwin*)
7254     if test -n "$ac_tool_prefix"; then
7255   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   if test -n "$DSYMUTIL"; then
7263   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270     for ac_exec_ext in '' $ac_executable_extensions; do
7271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277   done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7283 if test -n "$DSYMUTIL"; then
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7285 $as_echo "$DSYMUTIL" >&6; }
7286 else
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290
7291
7292 fi
7293 if test -z "$ac_cv_prog_DSYMUTIL"; then
7294   ac_ct_DSYMUTIL=$DSYMUTIL
7295   # Extract the first word of "dsymutil", so it can be a program name with args.
7296 set dummy dsymutil; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test -n "$ac_ct_DSYMUTIL"; then
7303   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310     for ac_exec_ext in '' $ac_executable_extensions; do
7311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317   done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7323 if test -n "$ac_ct_DSYMUTIL"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7325 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330
7331   if test "x$ac_ct_DSYMUTIL" = x; then
7332     DSYMUTIL=":"
7333   else
7334     case $cross_compiling:$ac_tool_warned in
7335 yes:)
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7339 esac
7340     DSYMUTIL=$ac_ct_DSYMUTIL
7341   fi
7342 else
7343   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7344 fi
7345
7346     if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_NMEDIT+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$NMEDIT"; then
7355   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 NMEDIT=$ac_cv_prog_NMEDIT
7375 if test -n "$NMEDIT"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7377 $as_echo "$NMEDIT" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_NMEDIT"; then
7386   ac_ct_NMEDIT=$NMEDIT
7387   # Extract the first word of "nmedit", so it can be a program name with args.
7388 set dummy nmedit; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$ac_ct_NMEDIT"; then
7395   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415 if test -n "$ac_ct_NMEDIT"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7417 $as_echo "$ac_ct_NMEDIT" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423   if test "x$ac_ct_NMEDIT" = x; then
7424     NMEDIT=":"
7425   else
7426     case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     NMEDIT=$ac_ct_NMEDIT
7433   fi
7434 else
7435   NMEDIT="$ac_cv_prog_NMEDIT"
7436 fi
7437
7438
7439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7440 $as_echo_n "checking for -single_module linker flag... " >&6; }
7441 if ${lt_cv_apple_cc_single_mod+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   lt_cv_apple_cc_single_mod=no
7445       if test -z "${LT_MULTI_MODULE}"; then
7446    # By default we will add the -single_module flag. You can override
7447    # by either setting the environment variable LT_MULTI_MODULE
7448    # non-empty at configure time, or by adding -multi_module to the
7449    # link flags.
7450    echo "int foo(void){return 1;}" > conftest.c
7451    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7452      -dynamiclib ${wl}-single_module conftest.c
7453    if test -f libconftest.dylib; then
7454      lt_cv_apple_cc_single_mod=yes
7455      rm -rf libconftest.dylib*
7456    fi
7457    rm conftest.c
7458       fi
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7461 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7463 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7464 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   lt_cv_ld_exported_symbols_list=no
7468       save_LDFLAGS=$LDFLAGS
7469       echo "_main" > conftest.sym
7470       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7471       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h.  */
7473
7474 int
7475 main ()
7476 {
7477
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483   lt_cv_ld_exported_symbols_list=yes
7484 else
7485   lt_cv_ld_exported_symbols_list=no
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext \
7488     conftest$ac_exeext conftest.$ac_ext
7489    LDFLAGS="$save_LDFLAGS"
7490
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7493 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7494     case $host_os in
7495     rhapsody* | darwin1.[0123])
7496       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7497     darwin1.*)
7498      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7499     darwin*)
7500       # if running on 10.5 or later, the deployment target defaults
7501       # to the OS version, if on x86, and 10.4, the deployment
7502       # target defaults to 10.4. Don't you love it?
7503       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7504    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7505      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7506    10.[012]*)
7507      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508    10.*)
7509      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7510       esac
7511     ;;
7512   esac
7513     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7514       _lt_dar_single_mod='$single_module'
7515     fi
7516     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7517       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7518     else
7519       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7520     fi
7521     if test "$DSYMUTIL" != ":"; then
7522       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7523     else
7524       _lt_dsymutil=
7525     fi
7526     ;;
7527   esac
7528
7529
7530 enable_dlopen=yes
7531 enable_win32_dll=no
7532
7533 # Check whether --enable-libtool-lock was given.
7534 if test "${enable_libtool_lock+set}" = set; then :
7535   enableval=$enable_libtool_lock;
7536 fi
7537
7538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7539
7540
7541 # Check whether --with-pic was given.
7542 if test "${with_pic+set}" = set; then :
7543   withval=$with_pic; pic_mode="$withval"
7544 else
7545   pic_mode=default
7546 fi
7547
7548 test -z "$pic_mode" && pic_mode=default
7549
7550 # Use C for the default configuration in the libtool script
7551 tagname=
7552 lt_save_CC="$CC"
7553 ac_ext=c
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559
7560 # Source file extension for C test sources.
7561 ac_ext=c
7562
7563 # Object file extension for compiled C test sources.
7564 objext=o
7565 objext=$objext
7566
7567 # Code to be used in simple compile tests
7568 lt_simple_compile_test_code="int some_variable = 0;"
7569
7570 # Code to be used in simple link tests
7571 lt_simple_link_test_code='int main(){return(0);}'
7572
7573
7574 # If no C compiler was specified, use CC.
7575 LTCC=${LTCC-"$CC"}
7576
7577 # If no C compiler flags were specified, use CFLAGS.
7578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7579
7580 # Allow CC to be a program name with arguments.
7581 compiler=$CC
7582
7583
7584 # save warnings/boilerplate of simple test code
7585 ac_outfile=conftest.$ac_objext
7586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588 _lt_compiler_boilerplate=`cat conftest.err`
7589 $rm conftest*
7590
7591 ac_outfile=conftest.$ac_objext
7592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7594 _lt_linker_boilerplate=`cat conftest.err`
7595 $rm -r conftest*
7596
7597
7598
7599 lt_prog_compiler_no_builtin_flag=
7600
7601 if test "$GCC" = yes; then
7602   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7603
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7606 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7607 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610   lt_cv_prog_compiler_rtti_exceptions=no
7611   ac_outfile=conftest.$ac_objext
7612    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7613    lt_compiler_flag="-fno-rtti -fno-exceptions"
7614    # Insert the option either (1) after the last *FLAGS variable, or
7615    # (2) before a word containing "conftest.", or (3) at the end.
7616    # Note that $ac_compile itself does not contain backslashes and begins
7617    # with a dollar sign (not a hyphen), so the echo should work correctly.
7618    # The option is referenced via a variable to avoid confusing sed.
7619    lt_compile=`echo "$ac_compile" | $SED \
7620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622    -e 's:$: $lt_compiler_flag:'`
7623    (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624    (eval "$lt_compile" 2>conftest.err)
7625    ac_status=$?
7626    cat conftest.err >&5
7627    echo "$as_me:7627: \$? = $ac_status" >&5
7628    if (exit $ac_status) && test -s "$ac_outfile"; then
7629      # The compiler can only warn and ignore the option if not recognized
7630      # So say no if there are warnings other than the usual output.
7631      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7632      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634        lt_cv_prog_compiler_rtti_exceptions=yes
7635      fi
7636    fi
7637    $rm conftest*
7638
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7641 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7642
7643 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7644     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7645 else
7646     :
7647 fi
7648
7649 fi
7650
7651 lt_prog_compiler_wl=
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_static=
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7657
7658   if test "$GCC" = yes; then
7659     lt_prog_compiler_wl='-Wl,'
7660     lt_prog_compiler_static='-static'
7661
7662     case $host_os in
7663       aix*)
7664       # All AIX code is PIC.
7665       if test "$host_cpu" = ia64; then
7666         # AIX 5 now supports IA64 processor
7667         lt_prog_compiler_static='-Bstatic'
7668       fi
7669       ;;
7670
7671     amigaos*)
7672       # FIXME: we need at least 68020 code to build shared libraries, but
7673       # adding the `-m68020' flag to GCC prevents building anything better,
7674       # like `-m68040'.
7675       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7676       ;;
7677
7678     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7679       # PIC is the default for these OSes.
7680       ;;
7681
7682     mingw* | cygwin* | pw32* | os2*)
7683       # This hack is so that the source file can tell whether it is being
7684       # built for inclusion in a dll (and should export symbols for example).
7685       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7686       # (--disable-auto-import) libraries
7687       lt_prog_compiler_pic='-DDLL_EXPORT'
7688       ;;
7689
7690     darwin* | rhapsody*)
7691       # PIC is the default on this platform
7692       # Common symbols not allowed in MH_DYLIB files
7693       lt_prog_compiler_pic='-fno-common'
7694       ;;
7695
7696     interix[3-9]*)
7697       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7698       # Instead, we relocate shared libraries at runtime.
7699       ;;
7700
7701     msdosdjgpp*)
7702       # Just because we use GCC doesn't mean we suddenly get shared libraries
7703       # on systems that don't support them.
7704       lt_prog_compiler_can_build_shared=no
7705       enable_shared=no
7706       ;;
7707
7708     sysv4*MP*)
7709       if test -d /usr/nec; then
7710         lt_prog_compiler_pic=-Kconform_pic
7711       fi
7712       ;;
7713
7714     hpux*)
7715       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7716       # not for PA HP-UX.
7717       case $host_cpu in
7718       hppa*64*|ia64*)
7719         # +Z the default
7720         ;;
7721       *)
7722         lt_prog_compiler_pic='-fPIC'
7723         ;;
7724       esac
7725       ;;
7726
7727     *)
7728       lt_prog_compiler_pic='-fPIC'
7729       ;;
7730     esac
7731   else
7732     # PORTME Check for flag to pass linker flags through the system compiler.
7733     case $host_os in
7734     aix*)
7735       lt_prog_compiler_wl='-Wl,'
7736       if test "$host_cpu" = ia64; then
7737         # AIX 5 now supports IA64 processor
7738         lt_prog_compiler_static='-Bstatic'
7739       else
7740         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7741       fi
7742       ;;
7743       darwin*)
7744         # PIC is the default on this platform
7745         # Common symbols not allowed in MH_DYLIB files
7746        case $cc_basename in
7747          xlc*)
7748          lt_prog_compiler_pic='-qnocommon'
7749          lt_prog_compiler_wl='-Wl,'
7750          ;;
7751        esac
7752        ;;
7753
7754     mingw* | cygwin* | pw32* | os2*)
7755       # This hack is so that the source file can tell whether it is being
7756       # built for inclusion in a dll (and should export symbols for example).
7757       lt_prog_compiler_pic='-DDLL_EXPORT'
7758       ;;
7759
7760     hpux9* | hpux10* | hpux11*)
7761       lt_prog_compiler_wl='-Wl,'
7762       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7763       # not for PA HP-UX.
7764       case $host_cpu in
7765       hppa*64*|ia64*)
7766         # +Z the default
7767         ;;
7768       *)
7769         lt_prog_compiler_pic='+Z'
7770         ;;
7771       esac
7772       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7773       lt_prog_compiler_static='${wl}-a ${wl}archive'
7774       ;;
7775
7776     irix5* | irix6* | nonstopux*)
7777       lt_prog_compiler_wl='-Wl,'
7778       # PIC (with -KPIC) is the default.
7779       lt_prog_compiler_static='-non_shared'
7780       ;;
7781
7782     newsos6)
7783       lt_prog_compiler_pic='-KPIC'
7784       lt_prog_compiler_static='-Bstatic'
7785       ;;
7786
7787     linux* | k*bsd*-gnu)
7788       case $cc_basename in
7789       icc* | ecc*)
7790         lt_prog_compiler_wl='-Wl,'
7791         lt_prog_compiler_pic='-KPIC'
7792         lt_prog_compiler_static='-static'
7793         ;;
7794       pgcc* | pgf77* | pgf90* | pgf95*)
7795         # Portland Group compilers (*not* the Pentium gcc compiler,
7796         # which looks to be a dead project)
7797         lt_prog_compiler_wl='-Wl,'
7798         lt_prog_compiler_pic='-fpic'
7799         lt_prog_compiler_static='-Bstatic'
7800         ;;
7801       ccc*)
7802         lt_prog_compiler_wl='-Wl,'
7803         # All Alpha code is PIC.
7804         lt_prog_compiler_static='-non_shared'
7805         ;;
7806       *)
7807         case `$CC -V 2>&1 | sed 5q` in
7808         *Sun\ C*)
7809           # Sun C 5.9
7810           lt_prog_compiler_pic='-KPIC'
7811           lt_prog_compiler_static='-Bstatic'
7812           lt_prog_compiler_wl='-Wl,'
7813           ;;
7814         *Sun\ F*)
7815           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7816           lt_prog_compiler_pic='-KPIC'
7817           lt_prog_compiler_static='-Bstatic'
7818           lt_prog_compiler_wl=''
7819           ;;
7820         esac
7821         ;;
7822       esac
7823       ;;
7824
7825     osf3* | osf4* | osf5*)
7826       lt_prog_compiler_wl='-Wl,'
7827       # All OSF/1 code is PIC.
7828       lt_prog_compiler_static='-non_shared'
7829       ;;
7830
7831     rdos*)
7832       lt_prog_compiler_static='-non_shared'
7833       ;;
7834
7835     solaris*)
7836       lt_prog_compiler_pic='-KPIC'
7837       lt_prog_compiler_static='-Bstatic'
7838       case $cc_basename in
7839       f77* | f90* | f95*)
7840         lt_prog_compiler_wl='-Qoption ld ';;
7841       *)
7842         lt_prog_compiler_wl='-Wl,';;
7843       esac
7844       ;;
7845
7846     sunos4*)
7847       lt_prog_compiler_wl='-Qoption ld '
7848       lt_prog_compiler_pic='-PIC'
7849       lt_prog_compiler_static='-Bstatic'
7850       ;;
7851
7852     sysv4 | sysv4.2uw2* | sysv4.3*)
7853       lt_prog_compiler_wl='-Wl,'
7854       lt_prog_compiler_pic='-KPIC'
7855       lt_prog_compiler_static='-Bstatic'
7856       ;;
7857
7858     sysv4*MP*)
7859       if test -d /usr/nec ;then
7860         lt_prog_compiler_pic='-Kconform_pic'
7861         lt_prog_compiler_static='-Bstatic'
7862       fi
7863       ;;
7864
7865     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7866       lt_prog_compiler_wl='-Wl,'
7867       lt_prog_compiler_pic='-KPIC'
7868       lt_prog_compiler_static='-Bstatic'
7869       ;;
7870
7871     unicos*)
7872       lt_prog_compiler_wl='-Wl,'
7873       lt_prog_compiler_can_build_shared=no
7874       ;;
7875
7876     uts4*)
7877       lt_prog_compiler_pic='-pic'
7878       lt_prog_compiler_static='-Bstatic'
7879       ;;
7880
7881     *)
7882       lt_prog_compiler_can_build_shared=no
7883       ;;
7884     esac
7885   fi
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7888 $as_echo "$lt_prog_compiler_pic" >&6; }
7889
7890 #
7891 # Check to make sure the PIC flag actually works.
7892 #
7893 if test -n "$lt_prog_compiler_pic"; then
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7896 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7897 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   lt_cv_prog_compiler_pic_works=no
7901   ac_outfile=conftest.$ac_objext
7902    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7903    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7904    # Insert the option either (1) after the last *FLAGS variable, or
7905    # (2) before a word containing "conftest.", or (3) at the end.
7906    # Note that $ac_compile itself does not contain backslashes and begins
7907    # with a dollar sign (not a hyphen), so the echo should work correctly.
7908    # The option is referenced via a variable to avoid confusing sed.
7909    lt_compile=`echo "$ac_compile" | $SED \
7910    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7912    -e 's:$: $lt_compiler_flag:'`
7913    (eval echo "\"\$as_me:7913: $lt_compile\"" >&5)
7914    (eval "$lt_compile" 2>conftest.err)
7915    ac_status=$?
7916    cat conftest.err >&5
7917    echo "$as_me:7917: \$? = $ac_status" >&5
7918    if (exit $ac_status) && test -s "$ac_outfile"; then
7919      # The compiler can only warn and ignore the option if not recognized
7920      # So say no if there are warnings other than the usual output.
7921      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7922      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7923      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7924        lt_cv_prog_compiler_pic_works=yes
7925      fi
7926    fi
7927    $rm conftest*
7928
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7931 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7932
7933 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7934     case $lt_prog_compiler_pic in
7935      "" | " "*) ;;
7936      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7937      esac
7938 else
7939     lt_prog_compiler_pic=
7940      lt_prog_compiler_can_build_shared=no
7941 fi
7942
7943 fi
7944 case $host_os in
7945   # For platforms which do not support PIC, -DPIC is meaningless:
7946   *djgpp*)
7947     lt_prog_compiler_pic=
7948     ;;
7949   *)
7950     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7951     ;;
7952 esac
7953
7954 #
7955 # Check to make sure the static flag actually works.
7956 #
7957 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7959 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7960 if ${lt_cv_prog_compiler_static_works+:} false; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   lt_cv_prog_compiler_static_works=no
7964    save_LDFLAGS="$LDFLAGS"
7965    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7966    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7967    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7968      # The linker can only warn and ignore the option if not recognized
7969      # So say no if there are warnings
7970      if test -s conftest.err; then
7971        # Append any errors to the config.log.
7972        cat conftest.err 1>&5
7973        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7974        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7975        if diff conftest.exp conftest.er2 >/dev/null; then
7976          lt_cv_prog_compiler_static_works=yes
7977        fi
7978      else
7979        lt_cv_prog_compiler_static_works=yes
7980      fi
7981    fi
7982    $rm -r conftest*
7983    LDFLAGS="$save_LDFLAGS"
7984
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7987 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7988
7989 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7990     :
7991 else
7992     lt_prog_compiler_static=
7993 fi
7994
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7998 if ${lt_cv_prog_compiler_c_o+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   lt_cv_prog_compiler_c_o=no
8002    $rm -r conftest 2>/dev/null
8003    mkdir conftest
8004    cd conftest
8005    mkdir out
8006    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8007
8008    lt_compiler_flag="-o out/conftest2.$ac_objext"
8009    # Insert the option either (1) after the last *FLAGS variable, or
8010    # (2) before a word containing "conftest.", or (3) at the end.
8011    # Note that $ac_compile itself does not contain backslashes and begins
8012    # with a dollar sign (not a hyphen), so the echo should work correctly.
8013    lt_compile=`echo "$ac_compile" | $SED \
8014    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8015    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8016    -e 's:$: $lt_compiler_flag:'`
8017    (eval echo "\"\$as_me:8017: $lt_compile\"" >&5)
8018    (eval "$lt_compile" 2>out/conftest.err)
8019    ac_status=$?
8020    cat out/conftest.err >&5
8021    echo "$as_me:8021: \$? = $ac_status" >&5
8022    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8023    then
8024      # The compiler can only warn and ignore the option if not recognized
8025      # So say no if there are warnings
8026      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8027      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8028      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8029        lt_cv_prog_compiler_c_o=yes
8030      fi
8031    fi
8032    chmod u+w . 2>&5
8033    $rm conftest*
8034    # SGI C++ compiler will create directory out/ii_files/ for
8035    # template instantiation
8036    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8037    $rm out/* && rmdir out
8038    cd ..
8039    rmdir conftest
8040    $rm conftest*
8041
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8045
8046
8047 hard_links="nottested"
8048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8049   # do not overwrite the value of need_locks provided by the user
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8051 $as_echo_n "checking if we can lock with hard links... " >&6; }
8052   hard_links=yes
8053   $rm conftest*
8054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8055   touch conftest.a
8056   ln conftest.a conftest.b 2>&5 || hard_links=no
8057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8059 $as_echo "$hard_links" >&6; }
8060   if test "$hard_links" = no; then
8061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8063     need_locks=warn
8064   fi
8065 else
8066   need_locks=no
8067 fi
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8071
8072   runpath_var=
8073   allow_undefined_flag=
8074   enable_shared_with_static_runtimes=no
8075   archive_cmds=
8076   archive_expsym_cmds=
8077   old_archive_From_new_cmds=
8078   old_archive_from_expsyms_cmds=
8079   export_dynamic_flag_spec=
8080   whole_archive_flag_spec=
8081   thread_safe_flag_spec=
8082   hardcode_libdir_flag_spec=
8083   hardcode_libdir_flag_spec_ld=
8084   hardcode_libdir_separator=
8085   hardcode_direct=no
8086   hardcode_minus_L=no
8087   hardcode_shlibpath_var=unsupported
8088   link_all_deplibs=unknown
8089   hardcode_automatic=no
8090   module_cmds=
8091   module_expsym_cmds=
8092   always_export_symbols=no
8093   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8094   # include_expsyms should be a list of space-separated symbols to be *always*
8095   # included in the symbol list
8096   include_expsyms=
8097   # exclude_expsyms can be an extended regexp of symbols to exclude
8098   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8099   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8100   # as well as any symbol that contains `d'.
8101   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8102   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8103   # platforms (ab)use it in PIC code, but their linkers get confused if
8104   # the symbol is explicitly referenced.  Since portable code cannot
8105   # rely on this symbol name, it's probably fine to never include it in
8106   # preloaded symbol tables.
8107   # Exclude shared library initialization/finalization symbols.
8108   extract_expsyms_cmds=
8109   # Just being paranoid about ensuring that cc_basename is set.
8110   for cc_temp in $compiler""; do
8111   case $cc_temp in
8112     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8113     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8114     \-*) ;;
8115     *) break;;
8116   esac
8117 done
8118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8119
8120   case $host_os in
8121   cygwin* | mingw* | pw32*)
8122     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8123     # When not using gcc, we currently assume that we are using
8124     # Microsoft Visual C++.
8125     if test "$GCC" != yes; then
8126       with_gnu_ld=no
8127     fi
8128     ;;
8129   interix*)
8130     # we just hope/assume this is gcc and not c89 (= MSVC++)
8131     with_gnu_ld=yes
8132     ;;
8133   openbsd*)
8134     with_gnu_ld=no
8135     ;;
8136   esac
8137
8138   ld_shlibs=yes
8139   if test "$with_gnu_ld" = yes; then
8140     # If archive_cmds runs LD, not CC, wlarc should be empty
8141     wlarc='${wl}'
8142
8143     # Set some defaults for GNU ld with shared library support. These
8144     # are reset later if shared libraries are not supported. Putting them
8145     # here allows them to be overridden if necessary.
8146     runpath_var=LD_RUN_PATH
8147     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8148     export_dynamic_flag_spec='${wl}--export-dynamic'
8149     # ancient GNU ld didn't support --whole-archive et. al.
8150     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8151         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8152       else
8153         whole_archive_flag_spec=
8154     fi
8155     supports_anon_versioning=no
8156     case `$LD -v 2>/dev/null` in
8157       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8158       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8159       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8160       *\ 2.11.*) ;; # other 2.11 versions
8161       *) supports_anon_versioning=yes ;;
8162     esac
8163
8164     # See if GNU ld supports shared libraries.
8165     case $host_os in
8166     aix[3-9]*)
8167       # On AIX/PPC, the GNU linker is very broken
8168       if test "$host_cpu" != ia64; then
8169         ld_shlibs=no
8170         cat <<EOF 1>&2
8171
8172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8173 *** to be unable to reliably create shared libraries on AIX.
8174 *** Therefore, libtool is disabling shared libraries support.  If you
8175 *** really care for shared libraries, you may want to modify your PATH
8176 *** so that a non-GNU linker is found, and then restart.
8177
8178 EOF
8179       fi
8180       ;;
8181
8182     amigaos*)
8183       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)'
8184       hardcode_libdir_flag_spec='-L$libdir'
8185       hardcode_minus_L=yes
8186
8187       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8188       # that the semantics of dynamic libraries on AmigaOS, at least up
8189       # to version 4, is to share data among multiple programs linked
8190       # with the same dynamic library.  Since this doesn't match the
8191       # behavior of shared libraries on other platforms, we can't use
8192       # them.
8193       ld_shlibs=no
8194       ;;
8195
8196     beos*)
8197       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8198         allow_undefined_flag=unsupported
8199         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8200         # support --undefined.  This deserves some investigation.  FIXME
8201         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8202       else
8203         ld_shlibs=no
8204       fi
8205       ;;
8206
8207     cygwin* | mingw* | pw32*)
8208       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8209       # as there is no search path for DLLs.
8210       hardcode_libdir_flag_spec='-L$libdir'
8211       allow_undefined_flag=unsupported
8212       always_export_symbols=no
8213       enable_shared_with_static_runtimes=yes
8214       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8215
8216       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8218         # If the export-symbols file already is a .def file (1st line
8219         # is EXPORTS), use it as is; otherwise, prepend...
8220         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8221           cp $export_symbols $output_objdir/$soname.def;
8222         else
8223           echo EXPORTS > $output_objdir/$soname.def;
8224           cat $export_symbols >> $output_objdir/$soname.def;
8225         fi~
8226         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8227       else
8228         ld_shlibs=no
8229       fi
8230       ;;
8231
8232     interix[3-9]*)
8233       hardcode_direct=no
8234       hardcode_shlibpath_var=no
8235       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8236       export_dynamic_flag_spec='${wl}-E'
8237       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8238       # Instead, shared libraries are loaded at an image base (0x10000000 by
8239       # default) and relocated if they conflict, which is a slow very memory
8240       # consuming and fragmenting process.  To avoid this, we pick a random,
8241       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8242       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8243       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8244       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'
8245       ;;
8246
8247     gnu* | linux* | k*bsd*-gnu)
8248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8249         tmp_addflag=
8250         case $cc_basename,$host_cpu in
8251         pgcc*)                          # Portland Group C compiler
8252           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'
8253           tmp_addflag=' $pic_flag'
8254           ;;
8255         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8256           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'
8257           tmp_addflag=' $pic_flag -Mnomain' ;;
8258         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8259           tmp_addflag=' -i_dynamic' ;;
8260         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8261           tmp_addflag=' -i_dynamic -nofor_main' ;;
8262         ifc* | ifort*)                  # Intel Fortran compiler
8263           tmp_addflag=' -nofor_main' ;;
8264         esac
8265         case `$CC -V 2>&1 | sed 5q` in
8266         *Sun\ C*)                       # Sun C 5.9
8267           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'
8268           tmp_sharedflag='-G' ;;
8269         *Sun\ F*)                       # Sun Fortran 8.3
8270           tmp_sharedflag='-G' ;;
8271         *)
8272           tmp_sharedflag='-shared' ;;
8273         esac
8274         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275
8276         if test $supports_anon_versioning = yes; then
8277           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279   $echo "local: *; };" >> $output_objdir/$libname.ver~
8280           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8281         fi
8282         link_all_deplibs=no
8283       else
8284         ld_shlibs=no
8285       fi
8286       ;;
8287
8288     netbsd* | netbsdelf*-gnu)
8289       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8290         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8291         wlarc=
8292       else
8293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295       fi
8296       ;;
8297
8298     solaris*)
8299       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8300         ld_shlibs=no
8301         cat <<EOF 1>&2
8302
8303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304 *** create shared libraries on Solaris systems.  Therefore, libtool
8305 *** is disabling shared libraries support.  We urge you to upgrade GNU
8306 *** binutils to release 2.9.1 or newer.  Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8309
8310 EOF
8311       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8314       else
8315         ld_shlibs=no
8316       fi
8317       ;;
8318
8319     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8320       case `$LD -v 2>&1` in
8321         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8322         ld_shlibs=no
8323         cat <<_LT_EOF 1>&2
8324
8325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8326 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8327 *** is disabling shared libraries support.  We urge you to upgrade GNU
8328 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8329 *** your PATH or compiler configuration so that the native linker is
8330 *** used, and then restart.
8331
8332 _LT_EOF
8333         ;;
8334         *)
8335           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8336             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8337             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8338             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8339           else
8340             ld_shlibs=no
8341           fi
8342         ;;
8343       esac
8344       ;;
8345
8346     sunos4*)
8347       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8348       wlarc=
8349       hardcode_direct=yes
8350       hardcode_shlibpath_var=no
8351       ;;
8352
8353     *)
8354       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357       else
8358         ld_shlibs=no
8359       fi
8360       ;;
8361     esac
8362
8363     if test "$ld_shlibs" = no; then
8364       runpath_var=
8365       hardcode_libdir_flag_spec=
8366       export_dynamic_flag_spec=
8367       whole_archive_flag_spec=
8368     fi
8369   else
8370     # PORTME fill in a description of your system's linker (not GNU ld)
8371     case $host_os in
8372     aix3*)
8373       allow_undefined_flag=unsupported
8374       always_export_symbols=yes
8375       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'
8376       # Note: this linker hardcodes the directories in LIBPATH if there
8377       # are no directories specified by -L.
8378       hardcode_minus_L=yes
8379       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8380         # Neither direct hardcoding nor static linking is supported with a
8381         # broken collect2.
8382         hardcode_direct=unsupported
8383       fi
8384       ;;
8385
8386     aix[4-9]*)
8387       if test "$host_cpu" = ia64; then
8388         # On IA64, the linker does run time linking by default, so we don't
8389         # have to do anything special.
8390         aix_use_runtimelinking=no
8391         exp_sym_flag='-Bexport'
8392         no_entry_flag=""
8393       else
8394         # If we're using GNU nm, then we don't want the "-C" option.
8395         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8396         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8397           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'
8398         else
8399           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'
8400         fi
8401         aix_use_runtimelinking=no
8402
8403         # Test if we are trying to use run time linking or normal
8404         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8405         # need to do runtime linking.
8406         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8407           for ld_flag in $LDFLAGS; do
8408           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8409             aix_use_runtimelinking=yes
8410             break
8411           fi
8412           done
8413           ;;
8414         esac
8415
8416         exp_sym_flag='-bexport'
8417         no_entry_flag='-bnoentry'
8418       fi
8419
8420       # When large executables or shared objects are built, AIX ld can
8421       # have problems creating the table of contents.  If linking a library
8422       # or program results in "error TOC overflow" add -mminimal-toc to
8423       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8424       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8425
8426       archive_cmds=''
8427       hardcode_direct=yes
8428       hardcode_libdir_separator=':'
8429       link_all_deplibs=yes
8430
8431       if test "$GCC" = yes; then
8432         case $host_os in aix4.[012]|aix4.[012].*)
8433         # We only want to do this on AIX 4.2 and lower, the check
8434         # below for broken collect2 doesn't work under 4.3+
8435           collect2name=`${CC} -print-prog-name=collect2`
8436           if test -f "$collect2name" && \
8437            strings "$collect2name" | grep resolve_lib_name >/dev/null
8438           then
8439           # We have reworked collect2
8440           :
8441           else
8442           # We have old collect2
8443           hardcode_direct=unsupported
8444           # It fails to find uninstalled libraries when the uninstalled
8445           # path is not listed in the libpath.  Setting hardcode_minus_L
8446           # to unsupported forces relinking
8447           hardcode_minus_L=yes
8448           hardcode_libdir_flag_spec='-L$libdir'
8449           hardcode_libdir_separator=
8450           fi
8451           ;;
8452         esac
8453         shared_flag='-shared'
8454         if test "$aix_use_runtimelinking" = yes; then
8455           shared_flag="$shared_flag "'${wl}-G'
8456         fi
8457       else
8458         # not using gcc
8459         if test "$host_cpu" = ia64; then
8460         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8461         # chokes on -Wl,-G. The following line is correct:
8462           shared_flag='-G'
8463         else
8464           if test "$aix_use_runtimelinking" = yes; then
8465             shared_flag='${wl}-G'
8466           else
8467             shared_flag='${wl}-bM:SRE'
8468           fi
8469         fi
8470       fi
8471
8472       # It seems that -bexpall does not export symbols beginning with
8473       # underscore (_), so it is better to generate a list of symbols to export.
8474       always_export_symbols=yes
8475       if test "$aix_use_runtimelinking" = yes; then
8476         # Warning - without using the other runtime loading flags (-brtl),
8477         # -berok will link without error, but may produce a broken library.
8478         allow_undefined_flag='-berok'
8479        # Determine the default libpath from the value encoded in an empty executable.
8480        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h.  */
8482
8483 int
8484 main ()
8485 {
8486
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_link "$LINENO"; then :
8492
8493 lt_aix_libpath_sed='
8494     /Import File Strings/,/^$/ {
8495         /^0/ {
8496             s/^0  *\(.*\)$/\1/
8497             p
8498         }
8499     }'
8500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8501 # Check for a 64-bit object if we didn't find anything.
8502 if test -z "$aix_libpath"; then
8503   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8504 fi
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext \
8507     conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8509
8510        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511         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"
8512        else
8513         if test "$host_cpu" = ia64; then
8514           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8515           allow_undefined_flag="-z nodefs"
8516           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"
8517         else
8518          # Determine the default libpath from the value encoded in an empty executable.
8519          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h.  */
8521
8522 int
8523 main ()
8524 {
8525
8526   ;
8527   return 0;
8528 }
8529 _ACEOF
8530 if ac_fn_c_try_link "$LINENO"; then :
8531
8532 lt_aix_libpath_sed='
8533     /Import File Strings/,/^$/ {
8534         /^0/ {
8535             s/^0  *\(.*\)$/\1/
8536             p
8537         }
8538     }'
8539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8540 # Check for a 64-bit object if we didn't find anything.
8541 if test -z "$aix_libpath"; then
8542   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543 fi
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546     conftest$ac_exeext conftest.$ac_ext
8547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8548
8549          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8550           # Warning - without using the other run time loading flags,
8551           # -berok will link without error, but may produce a broken library.
8552           no_undefined_flag=' ${wl}-bernotok'
8553           allow_undefined_flag=' ${wl}-berok'
8554           # Exported symbols can be pulled into shared objects from archives
8555           whole_archive_flag_spec='$convenience'
8556           archive_cmds_need_lc=yes
8557           # This is similar to how AIX traditionally builds its shared libraries.
8558           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'
8559         fi
8560       fi
8561       ;;
8562
8563     amigaos*)
8564       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)'
8565       hardcode_libdir_flag_spec='-L$libdir'
8566       hardcode_minus_L=yes
8567       # see comment about different semantics on the GNU ld section
8568       ld_shlibs=no
8569       ;;
8570
8571     bsdi[45]*)
8572       export_dynamic_flag_spec=-rdynamic
8573       ;;
8574
8575     cygwin* | mingw* | pw32*)
8576       # When not using gcc, we currently assume that we are using
8577       # Microsoft Visual C++.
8578       # hardcode_libdir_flag_spec is actually meaningless, as there is
8579       # no search path for DLLs.
8580       hardcode_libdir_flag_spec=' '
8581       allow_undefined_flag=unsupported
8582       # Tell ltmain to make .lib files, not .a files.
8583       libext=lib
8584       # Tell ltmain to make .dll files, not .so files.
8585       shrext_cmds=".dll"
8586       # FIXME: Setting linknames here is a bad hack.
8587       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8588       # The linker will automatically build a .lib file if we build a DLL.
8589       old_archive_From_new_cmds='true'
8590       # FIXME: Should let the user specify the lib program.
8591       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8592       fix_srcfile_path='`cygpath -w "$srcfile"`'
8593       enable_shared_with_static_runtimes=yes
8594       ;;
8595
8596     darwin* | rhapsody*)
8597       case $host_os in
8598         rhapsody* | darwin1.[012])
8599          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8600          ;;
8601        *) # Darwin 1.3 on
8602          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8603            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8604          else
8605            case ${MACOSX_DEPLOYMENT_TARGET} in
8606              10.[012])
8607                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8608                ;;
8609              10.*)
8610                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8611                ;;
8612            esac
8613          fi
8614          ;;
8615       esac
8616       archive_cmds_need_lc=no
8617       hardcode_direct=no
8618       hardcode_automatic=yes
8619       hardcode_shlibpath_var=unsupported
8620       whole_archive_flag_spec=''
8621       link_all_deplibs=yes
8622     if test "$GCC" = yes ; then
8623         output_verbose_link_cmd='echo'
8624         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8625         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8626         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}"
8627         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}"
8628     else
8629       case $cc_basename in
8630         xlc*)
8631          output_verbose_link_cmd='echo'
8632          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8633          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8634           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8635          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}'
8636           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}'
8637           ;;
8638        *)
8639          ld_shlibs=no
8640           ;;
8641       esac
8642     fi
8643       ;;
8644
8645     dgux*)
8646       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647       hardcode_libdir_flag_spec='-L$libdir'
8648       hardcode_shlibpath_var=no
8649       ;;
8650
8651     freebsd1*)
8652       ld_shlibs=no
8653       ;;
8654
8655     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8656     # support.  Future versions do this automatically, but an explicit c++rt0.o
8657     # does not break anything, and helps significantly (at the cost of a little
8658     # extra space).
8659     freebsd2.2*)
8660       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8661       hardcode_libdir_flag_spec='-R$libdir'
8662       hardcode_direct=yes
8663       hardcode_shlibpath_var=no
8664       ;;
8665
8666     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8667     freebsd2*)
8668       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8669       hardcode_direct=yes
8670       hardcode_minus_L=yes
8671       hardcode_shlibpath_var=no
8672       ;;
8673
8674     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8675     freebsd* | dragonfly*)
8676       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8677       hardcode_libdir_flag_spec='-R$libdir'
8678       hardcode_direct=yes
8679       hardcode_shlibpath_var=no
8680       ;;
8681
8682     hpux9*)
8683       if test "$GCC" = yes; then
8684         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'
8685       else
8686         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'
8687       fi
8688       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8689       hardcode_libdir_separator=:
8690       hardcode_direct=yes
8691
8692       # hardcode_minus_L: Not really in the search PATH,
8693       # but as the default location of the library.
8694       hardcode_minus_L=yes
8695       export_dynamic_flag_spec='${wl}-E'
8696       ;;
8697
8698     hpux10*)
8699       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8700         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8701       else
8702         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8703       fi
8704       if test "$with_gnu_ld" = no; then
8705         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706         hardcode_libdir_separator=:
8707
8708         hardcode_direct=yes
8709         export_dynamic_flag_spec='${wl}-E'
8710
8711         # hardcode_minus_L: Not really in the search PATH,
8712         # but as the default location of the library.
8713         hardcode_minus_L=yes
8714       fi
8715       ;;
8716
8717     hpux11*)
8718       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8719         case $host_cpu in
8720         hppa*64*)
8721           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722           ;;
8723         ia64*)
8724           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8725           ;;
8726         *)
8727           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728           ;;
8729         esac
8730       else
8731         case $host_cpu in
8732         hppa*64*)
8733           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734           ;;
8735         ia64*)
8736           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8737           ;;
8738         *)
8739           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8740           ;;
8741         esac
8742       fi
8743       if test "$with_gnu_ld" = no; then
8744         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745         hardcode_libdir_separator=:
8746
8747         case $host_cpu in
8748         hppa*64*|ia64*)
8749           hardcode_libdir_flag_spec_ld='+b $libdir'
8750           hardcode_direct=no
8751           hardcode_shlibpath_var=no
8752           ;;
8753         *)
8754           hardcode_direct=yes
8755           export_dynamic_flag_spec='${wl}-E'
8756
8757           # hardcode_minus_L: Not really in the search PATH,
8758           # but as the default location of the library.
8759           hardcode_minus_L=yes
8760           ;;
8761         esac
8762       fi
8763       ;;
8764
8765     irix5* | irix6* | nonstopux*)
8766       if test "$GCC" = yes; then
8767         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'
8768       else
8769         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'
8770         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8771       fi
8772       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773       hardcode_libdir_separator=:
8774       link_all_deplibs=yes
8775       ;;
8776
8777     netbsd* | netbsdelf*-gnu)
8778       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8779         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8780       else
8781         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8782       fi
8783       hardcode_libdir_flag_spec='-R$libdir'
8784       hardcode_direct=yes
8785       hardcode_shlibpath_var=no
8786       ;;
8787
8788     newsos6)
8789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790       hardcode_direct=yes
8791       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792       hardcode_libdir_separator=:
8793       hardcode_shlibpath_var=no
8794       ;;
8795
8796     openbsd*)
8797       if test -f /usr/libexec/ld.so; then
8798         hardcode_direct=yes
8799         hardcode_shlibpath_var=no
8800         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8801           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8803           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8804           export_dynamic_flag_spec='${wl}-E'
8805         else
8806           case $host_os in
8807            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8808              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8809              hardcode_libdir_flag_spec='-R$libdir'
8810              ;;
8811            *)
8812              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8813              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8814              ;;
8815           esac
8816         fi
8817       else
8818         ld_shlibs=no
8819       fi
8820       ;;
8821
8822     os2*)
8823       hardcode_libdir_flag_spec='-L$libdir'
8824       hardcode_minus_L=yes
8825       allow_undefined_flag=unsupported
8826       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'
8827       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8828       ;;
8829
8830     osf3*)
8831       if test "$GCC" = yes; then
8832         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833         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'
8834       else
8835         allow_undefined_flag=' -expect_unresolved \*'
8836         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'
8837       fi
8838       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839       hardcode_libdir_separator=:
8840       ;;
8841
8842     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8843       if test "$GCC" = yes; then
8844         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8845         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'
8846         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847       else
8848         allow_undefined_flag=' -expect_unresolved \*'
8849         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'
8850         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8851         $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'
8852
8853         # Both c and cxx compiler support -rpath directly
8854         hardcode_libdir_flag_spec='-rpath $libdir'
8855       fi
8856       hardcode_libdir_separator=:
8857       ;;
8858
8859     solaris*)
8860       no_undefined_flag=' -z text'
8861       if test "$GCC" = yes; then
8862         wlarc='${wl}'
8863         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8864         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8865           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8866       else
8867         wlarc=''
8868         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8869         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8870         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8871       fi
8872       hardcode_libdir_flag_spec='-R$libdir'
8873       hardcode_shlibpath_var=no
8874       case $host_os in
8875       solaris2.[0-5] | solaris2.[0-5].*) ;;
8876       *)
8877         # The compiler driver will combine and reorder linker options,
8878         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8879         # but is careful enough not to reorder.
8880         # Supported since Solaris 2.6 (maybe 2.5.1?)
8881         if test "$GCC" = yes; then
8882           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8883         else
8884           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8885         fi
8886         ;;
8887       esac
8888       link_all_deplibs=yes
8889       ;;
8890
8891     sunos4*)
8892       if test "x$host_vendor" = xsequent; then
8893         # Use $CC to link under sequent, because it throws in some extra .o
8894         # files that make .init and .fini sections work.
8895         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8896       else
8897         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8898       fi
8899       hardcode_libdir_flag_spec='-L$libdir'
8900       hardcode_direct=yes
8901       hardcode_minus_L=yes
8902       hardcode_shlibpath_var=no
8903       ;;
8904
8905     sysv4)
8906       case $host_vendor in
8907         sni)
8908           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909           hardcode_direct=yes # is this really true???
8910         ;;
8911         siemens)
8912           ## LD is ld it makes a PLAMLIB
8913           ## CC just makes a GrossModule.
8914           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8915           reload_cmds='$CC -r -o $output$reload_objs'
8916           hardcode_direct=no
8917         ;;
8918         motorola)
8919           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8921         ;;
8922       esac
8923       runpath_var='LD_RUN_PATH'
8924       hardcode_shlibpath_var=no
8925       ;;
8926
8927     sysv4.3*)
8928       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8929       hardcode_shlibpath_var=no
8930       export_dynamic_flag_spec='-Bexport'
8931       ;;
8932
8933     sysv4*MP*)
8934       if test -d /usr/nec; then
8935         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936         hardcode_shlibpath_var=no
8937         runpath_var=LD_RUN_PATH
8938         hardcode_runpath_var=yes
8939         ld_shlibs=yes
8940       fi
8941       ;;
8942
8943     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8944       no_undefined_flag='${wl}-z,text'
8945       archive_cmds_need_lc=no
8946       hardcode_shlibpath_var=no
8947       runpath_var='LD_RUN_PATH'
8948
8949       if test "$GCC" = yes; then
8950         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8952       else
8953         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955       fi
8956       ;;
8957
8958     sysv5* | sco3.2v5* | sco5v6*)
8959       # Note: We can NOT use -z defs as we might desire, because we do not
8960       # link with -lc, and that would cause any symbols used from libc to
8961       # always be unresolved, which means just about no library would
8962       # ever link correctly.  If we're not using GNU ld we use -z text
8963       # though, which does catch some bad symbols but isn't as heavy-handed
8964       # as -z defs.
8965       no_undefined_flag='${wl}-z,text'
8966       allow_undefined_flag='${wl}-z,nodefs'
8967       archive_cmds_need_lc=no
8968       hardcode_shlibpath_var=no
8969       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8970       hardcode_libdir_separator=':'
8971       link_all_deplibs=yes
8972       export_dynamic_flag_spec='${wl}-Bexport'
8973       runpath_var='LD_RUN_PATH'
8974
8975       if test "$GCC" = yes; then
8976         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978       else
8979         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8981       fi
8982       ;;
8983
8984     uts4*)
8985       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986       hardcode_libdir_flag_spec='-L$libdir'
8987       hardcode_shlibpath_var=no
8988       ;;
8989
8990     *)
8991       ld_shlibs=no
8992       ;;
8993     esac
8994   fi
8995
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8997 $as_echo "$ld_shlibs" >&6; }
8998 test "$ld_shlibs" = no && can_build_shared=no
8999
9000 #
9001 # Do we need to explicitly link libc?
9002 #
9003 case "x$archive_cmds_need_lc" in
9004 x|xyes)
9005   # Assume -lc should be added
9006   archive_cmds_need_lc=yes
9007
9008   if test "$enable_shared" = yes && test "$GCC" = yes; then
9009     case $archive_cmds in
9010     *'~'*)
9011       # FIXME: we may have to deal with multi-command sequences.
9012       ;;
9013     '$CC '*)
9014       # Test whether the compiler implicitly links with -lc since on some
9015       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9016       # to ld, don't add -lc before -lgcc.
9017       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9018 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9019       $rm conftest*
9020       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021
9022       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9023   (eval $ac_compile) 2>&5
9024   ac_status=$?
9025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9026   test $ac_status = 0; } 2>conftest.err; then
9027         soname=conftest
9028         lib=conftest
9029         libobjs=conftest.$ac_objext
9030         deplibs=
9031         wl=$lt_prog_compiler_wl
9032         pic_flag=$lt_prog_compiler_pic
9033         compiler_flags=-v
9034         linker_flags=-v
9035         verstring=
9036         output_objdir=.
9037         libname=conftest
9038         lt_save_allow_undefined_flag=$allow_undefined_flag
9039         allow_undefined_flag=
9040         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9041   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9042   ac_status=$?
9043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044   test $ac_status = 0; }
9045         then
9046           archive_cmds_need_lc=no
9047         else
9048           archive_cmds_need_lc=yes
9049         fi
9050         allow_undefined_flag=$lt_save_allow_undefined_flag
9051       else
9052         cat conftest.err 1>&5
9053       fi
9054       $rm conftest*
9055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9056 $as_echo "$archive_cmds_need_lc" >&6; }
9057       ;;
9058     esac
9059   fi
9060   ;;
9061 esac
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9064 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9065 library_names_spec=
9066 libname_spec='lib$name'
9067 soname_spec=
9068 shrext_cmds=".so"
9069 postinstall_cmds=
9070 postuninstall_cmds=
9071 finish_cmds=
9072 finish_eval=
9073 shlibpath_var=
9074 shlibpath_overrides_runpath=unknown
9075 version_type=none
9076 dynamic_linker="$host_os ld.so"
9077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9078
9079 if test "$GCC" = yes; then
9080   case $host_os in
9081     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9082     *) lt_awk_arg="/^libraries:/" ;;
9083   esac
9084   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9085   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9086     # if the path contains ";" then we assume it to be the separator
9087     # otherwise default to the standard path separator (i.e. ":") - it is
9088     # assumed that no part of a normal pathname contains ";" but that should
9089     # okay in the real world where ";" in dirpaths is itself problematic.
9090     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9091   else
9092     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9093   fi
9094   # Ok, now we have the path, separated by spaces, we can step through it
9095   # and add multilib dir if necessary.
9096   lt_tmp_lt_search_path_spec=
9097   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9098   for lt_sys_path in $lt_search_path_spec; do
9099     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9100       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9101     else
9102       test -d "$lt_sys_path" && \
9103         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9104     fi
9105   done
9106   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9107 BEGIN {RS=" "; FS="/|\n";} {
9108   lt_foo="";
9109   lt_count=0;
9110   for (lt_i = NF; lt_i > 0; lt_i--) {
9111     if ($lt_i != "" && $lt_i != ".") {
9112       if ($lt_i == "..") {
9113         lt_count++;
9114       } else {
9115         if (lt_count == 0) {
9116           lt_foo="/" $lt_i lt_foo;
9117         } else {
9118           lt_count--;
9119         }
9120       }
9121     }
9122   }
9123   if (lt_foo != "") { lt_freq[lt_foo]++; }
9124   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9125 }'`
9126   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9127 else
9128   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9129 fi
9130 need_lib_prefix=unknown
9131 hardcode_into_libs=no
9132
9133 # when you set need_version to no, make sure it does not cause -set_version
9134 # flags to be left without arguments
9135 need_version=unknown
9136
9137 case $host_os in
9138 aix3*)
9139   version_type=linux
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9141   shlibpath_var=LIBPATH
9142
9143   # AIX 3 has no versioning support, so we append a major version to the name.
9144   soname_spec='${libname}${release}${shared_ext}$major'
9145   ;;
9146
9147 aix[4-9]*)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   hardcode_into_libs=yes
9152   if test "$host_cpu" = ia64; then
9153     # AIX 5 supports IA64
9154     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9155     shlibpath_var=LD_LIBRARY_PATH
9156   else
9157     # With GCC up to 2.95.x, collect2 would create an import file
9158     # for dependence libraries.  The import file would start with
9159     # the line `#! .'.  This would cause the generated library to
9160     # depend on `.', always an invalid library.  This was fixed in
9161     # development snapshots of GCC prior to 3.0.
9162     case $host_os in
9163       aix4 | aix4.[01] | aix4.[01].*)
9164       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9165            echo ' yes '
9166            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9167         :
9168       else
9169         can_build_shared=no
9170       fi
9171       ;;
9172     esac
9173     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9174     # soname into executable. Probably we can add versioning support to
9175     # collect2, so additional links can be useful in future.
9176     if test "$aix_use_runtimelinking" = yes; then
9177       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9178       # instead of lib<name>.a to let people know that these are not
9179       # typical AIX shared libraries.
9180       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181     else
9182       # We preserve .a as extension for shared libraries through AIX4.2
9183       # and later when we are not doing run time linking.
9184       library_names_spec='${libname}${release}.a $libname.a'
9185       soname_spec='${libname}${release}${shared_ext}$major'
9186     fi
9187     shlibpath_var=LIBPATH
9188   fi
9189   ;;
9190
9191 amigaos*)
9192   library_names_spec='$libname.ixlibrary $libname.a'
9193   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9194   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'
9195   ;;
9196
9197 beos*)
9198   library_names_spec='${libname}${shared_ext}'
9199   dynamic_linker="$host_os ld.so"
9200   shlibpath_var=LIBRARY_PATH
9201   ;;
9202
9203 bsdi[45]*)
9204   version_type=linux
9205   need_version=no
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   soname_spec='${libname}${release}${shared_ext}$major'
9208   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9209   shlibpath_var=LD_LIBRARY_PATH
9210   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9211   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9212   # the default ld.so.conf also contains /usr/contrib/lib and
9213   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9214   # libtool to hard-code these into programs
9215   ;;
9216
9217 cygwin* | mingw* | pw32*)
9218   version_type=windows
9219   shrext_cmds=".dll"
9220   need_version=no
9221   need_lib_prefix=no
9222
9223   case $GCC,$host_os in
9224   yes,cygwin* | yes,mingw* | yes,pw32*)
9225     library_names_spec='$libname.dll.a'
9226     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9227     postinstall_cmds='base_file=`basename \${file}`~
9228       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9229       dldir=$destdir/`dirname \$dlpath`~
9230       test -d \$dldir || mkdir -p \$dldir~
9231       $install_prog $dir/$dlname \$dldir/$dlname~
9232       chmod a+x \$dldir/$dlname'
9233     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9234       dlpath=$dir/\$dldll~
9235        $rm \$dlpath'
9236     shlibpath_overrides_runpath=yes
9237
9238     case $host_os in
9239     cygwin*)
9240       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9241       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9242       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9243       ;;
9244     mingw*)
9245       # MinGW DLLs use traditional 'lib' prefix
9246       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9247       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9248       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9249         # It is most probably a Windows format PATH printed by
9250         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9251         # path with ; separators, and with drive letters. We can handle the
9252         # drive letters (cygwin fileutils understands them), so leave them,
9253         # especially as we might pass files found there to a mingw objdump,
9254         # which wouldn't understand a cygwinified path. Ahh.
9255         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9256       else
9257         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9258       fi
9259       ;;
9260     pw32*)
9261       # pw32 DLLs use 'pw' prefix rather than 'lib'
9262       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263       ;;
9264     esac
9265     ;;
9266
9267   *)
9268     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9269     ;;
9270   esac
9271   dynamic_linker='Win32 ld.exe'
9272   # FIXME: first we should search . and the directory the executable is in
9273   shlibpath_var=PATH
9274   ;;
9275
9276 darwin* | rhapsody*)
9277   dynamic_linker="$host_os dyld"
9278   version_type=darwin
9279   need_lib_prefix=no
9280   need_version=no
9281   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9282   soname_spec='${libname}${release}${major}$shared_ext'
9283   shlibpath_overrides_runpath=yes
9284   shlibpath_var=DYLD_LIBRARY_PATH
9285   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9286
9287   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9288   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9289   ;;
9290
9291 dgux*)
9292   version_type=linux
9293   need_lib_prefix=no
9294   need_version=no
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9296   soname_spec='${libname}${release}${shared_ext}$major'
9297   shlibpath_var=LD_LIBRARY_PATH
9298   ;;
9299
9300 freebsd1*)
9301   dynamic_linker=no
9302   ;;
9303
9304 freebsd* | dragonfly*)
9305   # DragonFly does not have aout.  When/if they implement a new
9306   # versioning mechanism, adjust this.
9307   if test -x /usr/bin/objformat; then
9308     objformat=`/usr/bin/objformat`
9309   else
9310     case $host_os in
9311     freebsd[123]*) objformat=aout ;;
9312     *) objformat=elf ;;
9313     esac
9314   fi
9315   version_type=freebsd-$objformat
9316   case $version_type in
9317     freebsd-elf*)
9318       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9319       need_version=no
9320       need_lib_prefix=no
9321       ;;
9322     freebsd-*)
9323       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9324       need_version=yes
9325       ;;
9326   esac
9327   shlibpath_var=LD_LIBRARY_PATH
9328   case $host_os in
9329   freebsd2*)
9330     shlibpath_overrides_runpath=yes
9331     ;;
9332   freebsd3.[01]* | freebsdelf3.[01]*)
9333     shlibpath_overrides_runpath=yes
9334     hardcode_into_libs=yes
9335     ;;
9336   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9337   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9338     shlibpath_overrides_runpath=no
9339     hardcode_into_libs=yes
9340     ;;
9341   *) # from 4.6 on, and DragonFly
9342     shlibpath_overrides_runpath=yes
9343     hardcode_into_libs=yes
9344     ;;
9345   esac
9346   ;;
9347
9348 gnu*)
9349   version_type=linux
9350   need_lib_prefix=no
9351   need_version=no
9352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9353   soname_spec='${libname}${release}${shared_ext}$major'
9354   shlibpath_var=LD_LIBRARY_PATH
9355   hardcode_into_libs=yes
9356   ;;
9357
9358 hpux9* | hpux10* | hpux11*)
9359   # Give a soname corresponding to the major version so that dld.sl refuses to
9360   # link against other versions.
9361   version_type=sunos
9362   need_lib_prefix=no
9363   need_version=no
9364   case $host_cpu in
9365   ia64*)
9366     shrext_cmds='.so'
9367     hardcode_into_libs=yes
9368     dynamic_linker="$host_os dld.so"
9369     shlibpath_var=LD_LIBRARY_PATH
9370     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372     soname_spec='${libname}${release}${shared_ext}$major'
9373     if test "X$HPUX_IA64_MODE" = X32; then
9374       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9375     else
9376       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9377     fi
9378     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9379     ;;
9380    hppa*64*)
9381      shrext_cmds='.sl'
9382      hardcode_into_libs=yes
9383      dynamic_linker="$host_os dld.sl"
9384      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9385      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9386      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387      soname_spec='${libname}${release}${shared_ext}$major'
9388      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9389      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9390      ;;
9391    *)
9392     shrext_cmds='.sl'
9393     dynamic_linker="$host_os dld.sl"
9394     shlibpath_var=SHLIB_PATH
9395     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397     soname_spec='${libname}${release}${shared_ext}$major'
9398     ;;
9399   esac
9400   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9401   postinstall_cmds='chmod 555 $lib'
9402   ;;
9403
9404 interix[3-9]*)
9405   version_type=linux
9406   need_lib_prefix=no
9407   need_version=no
9408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9409   soname_spec='${libname}${release}${shared_ext}$major'
9410   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9411   shlibpath_var=LD_LIBRARY_PATH
9412   shlibpath_overrides_runpath=no
9413   hardcode_into_libs=yes
9414   ;;
9415
9416 irix5* | irix6* | nonstopux*)
9417   case $host_os in
9418     nonstopux*) version_type=nonstopux ;;
9419     *)
9420         if test "$lt_cv_prog_gnu_ld" = yes; then
9421                 version_type=linux
9422         else
9423                 version_type=irix
9424         fi ;;
9425   esac
9426   need_lib_prefix=no
9427   need_version=no
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9430   case $host_os in
9431   irix5* | nonstopux*)
9432     libsuff= shlibsuff=
9433     ;;
9434   *)
9435     case $LD in # libtool.m4 will add one of these switches to LD
9436     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9437       libsuff= shlibsuff= libmagic=32-bit;;
9438     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9439       libsuff=32 shlibsuff=N32 libmagic=N32;;
9440     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9441       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9442     *) libsuff= shlibsuff= libmagic=never-match;;
9443     esac
9444     ;;
9445   esac
9446   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9447   shlibpath_overrides_runpath=no
9448   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9449   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9450   hardcode_into_libs=yes
9451   ;;
9452
9453 # No shared lib support for Linux oldld, aout, or coff.
9454 linux*oldld* | linux*aout* | linux*coff*)
9455   dynamic_linker=no
9456   ;;
9457
9458 # This must be Linux ELF.
9459 linux* | k*bsd*-gnu)
9460   version_type=linux
9461   need_lib_prefix=no
9462   need_version=no
9463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464   soname_spec='${libname}${release}${shared_ext}$major'
9465   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9466   shlibpath_var=LD_LIBRARY_PATH
9467   shlibpath_overrides_runpath=no
9468   # This implies no fast_install, which is unacceptable.
9469   # Some rework will be needed to allow for fast_install
9470   # before this can be enabled.
9471   hardcode_into_libs=yes
9472
9473   # Append ld.so.conf contents to the search path
9474   if test -f /etc/ld.so.conf; then
9475     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' ' '`
9476     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9477   fi
9478
9479   # We used to test for /lib/ld.so.1 and disable shared libraries on
9480   # powerpc, because MkLinux only supported shared libraries with the
9481   # GNU dynamic linker.  Since this was broken with cross compilers,
9482   # most powerpc-linux boxes support dynamic linking these days and
9483   # people can always --disable-shared, the test was removed, and we
9484   # assume the GNU/Linux dynamic linker is in use.
9485   dynamic_linker='GNU/Linux ld.so'
9486   ;;
9487
9488 netbsdelf*-gnu)
9489   version_type=linux
9490   need_lib_prefix=no
9491   need_version=no
9492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   shlibpath_overrides_runpath=no
9496   hardcode_into_libs=yes
9497   dynamic_linker='NetBSD ld.elf_so'
9498   ;;
9499
9500 netbsd*)
9501   version_type=sunos
9502   need_lib_prefix=no
9503   need_version=no
9504   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9506     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9507     dynamic_linker='NetBSD (a.out) ld.so'
9508   else
9509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9510     soname_spec='${libname}${release}${shared_ext}$major'
9511     dynamic_linker='NetBSD ld.elf_so'
9512   fi
9513   shlibpath_var=LD_LIBRARY_PATH
9514   shlibpath_overrides_runpath=yes
9515   hardcode_into_libs=yes
9516   ;;
9517
9518 newsos6)
9519   version_type=linux
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521   shlibpath_var=LD_LIBRARY_PATH
9522   shlibpath_overrides_runpath=yes
9523   ;;
9524
9525 nto-qnx*)
9526   version_type=linux
9527   need_lib_prefix=no
9528   need_version=no
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530   soname_spec='${libname}${release}${shared_ext}$major'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   shlibpath_overrides_runpath=yes
9533   ;;
9534
9535 openbsd*)
9536   version_type=sunos
9537   sys_lib_dlsearch_path_spec="/usr/lib"
9538   need_lib_prefix=no
9539   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9540   case $host_os in
9541     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9542     *)                         need_version=no  ;;
9543   esac
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9545   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9546   shlibpath_var=LD_LIBRARY_PATH
9547   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9548     case $host_os in
9549       openbsd2.[89] | openbsd2.[89].*)
9550         shlibpath_overrides_runpath=no
9551         ;;
9552       *)
9553         shlibpath_overrides_runpath=yes
9554         ;;
9555       esac
9556   else
9557     shlibpath_overrides_runpath=yes
9558   fi
9559   ;;
9560
9561 os2*)
9562   libname_spec='$name'
9563   shrext_cmds=".dll"
9564   need_lib_prefix=no
9565   library_names_spec='$libname${shared_ext} $libname.a'
9566   dynamic_linker='OS/2 ld.exe'
9567   shlibpath_var=LIBPATH
9568   ;;
9569
9570 osf3* | osf4* | osf5*)
9571   version_type=osf
9572   need_lib_prefix=no
9573   need_version=no
9574   soname_spec='${libname}${release}${shared_ext}$major'
9575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576   shlibpath_var=LD_LIBRARY_PATH
9577   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9578   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9579   ;;
9580
9581 rdos*)
9582   dynamic_linker=no
9583   ;;
9584
9585 solaris*)
9586   version_type=linux
9587   need_lib_prefix=no
9588   need_version=no
9589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590   soname_spec='${libname}${release}${shared_ext}$major'
9591   shlibpath_var=LD_LIBRARY_PATH
9592   shlibpath_overrides_runpath=yes
9593   hardcode_into_libs=yes
9594   # ldd complains unless libraries are executable
9595   postinstall_cmds='chmod +x $lib'
9596   ;;
9597
9598 sunos4*)
9599   version_type=sunos
9600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9601   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9602   shlibpath_var=LD_LIBRARY_PATH
9603   shlibpath_overrides_runpath=yes
9604   if test "$with_gnu_ld" = yes; then
9605     need_lib_prefix=no
9606   fi
9607   need_version=yes
9608   ;;
9609
9610 sysv4 | sysv4.3*)
9611   version_type=linux
9612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613   soname_spec='${libname}${release}${shared_ext}$major'
9614   shlibpath_var=LD_LIBRARY_PATH
9615   case $host_vendor in
9616     sni)
9617       shlibpath_overrides_runpath=no
9618       need_lib_prefix=no
9619       export_dynamic_flag_spec='${wl}-Blargedynsym'
9620       runpath_var=LD_RUN_PATH
9621       ;;
9622     siemens)
9623       need_lib_prefix=no
9624       ;;
9625     motorola)
9626       need_lib_prefix=no
9627       need_version=no
9628       shlibpath_overrides_runpath=no
9629       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9630       ;;
9631   esac
9632   ;;
9633
9634 sysv4*MP*)
9635   if test -d /usr/nec ;then
9636     version_type=linux
9637     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9638     soname_spec='$libname${shared_ext}.$major'
9639     shlibpath_var=LD_LIBRARY_PATH
9640   fi
9641   ;;
9642
9643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9644   version_type=freebsd-elf
9645   need_lib_prefix=no
9646   need_version=no
9647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9648   soname_spec='${libname}${release}${shared_ext}$major'
9649   shlibpath_var=LD_LIBRARY_PATH
9650   hardcode_into_libs=yes
9651   if test "$with_gnu_ld" = yes; then
9652     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9653     shlibpath_overrides_runpath=no
9654   else
9655     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9656     shlibpath_overrides_runpath=yes
9657     case $host_os in
9658       sco3.2v5*)
9659         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9660         ;;
9661     esac
9662   fi
9663   sys_lib_dlsearch_path_spec='/usr/lib'
9664   ;;
9665
9666 uts4*)
9667   version_type=linux
9668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669   soname_spec='${libname}${release}${shared_ext}$major'
9670   shlibpath_var=LD_LIBRARY_PATH
9671   ;;
9672
9673 *)
9674   dynamic_linker=no
9675   ;;
9676 esac
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9678 $as_echo "$dynamic_linker" >&6; }
9679 test "$dynamic_linker" = no && can_build_shared=no
9680
9681 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9685 fi
9686
9687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9688 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9689   $as_echo_n "(cached) " >&6
9690 else
9691   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9692 fi
9693
9694 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9695
9696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9697 if test "$GCC" = yes; then
9698   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9699 fi
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9702 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9703 hardcode_action=
9704 if test -n "$hardcode_libdir_flag_spec" || \
9705    test -n "$runpath_var" || \
9706    test "X$hardcode_automatic" = "Xyes" ; then
9707
9708   # We can hardcode non-existant directories.
9709   if test "$hardcode_direct" != no &&
9710      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9711      # have to relink, otherwise we might link with an installed library
9712      # when we should be linking with a yet-to-be-installed one
9713      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9714      test "$hardcode_minus_L" != no; then
9715     # Linking always hardcodes the temporary library directory.
9716     hardcode_action=relink
9717   else
9718     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9719     hardcode_action=immediate
9720   fi
9721 else
9722   # We cannot hardcode anything, or else we can only hardcode existing
9723   # directories.
9724   hardcode_action=unsupported
9725 fi
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9727 $as_echo "$hardcode_action" >&6; }
9728
9729 if test "$hardcode_action" = relink; then
9730   # Fast installation is not supported
9731   enable_fast_install=no
9732 elif test "$shlibpath_overrides_runpath" = yes ||
9733      test "$enable_shared" = no; then
9734   # Fast installation is not necessary
9735   enable_fast_install=needless
9736 fi
9737
9738 striplib=
9739 old_striplib=
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9741 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9743   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9744   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9746 $as_echo "yes" >&6; }
9747 else
9748 # FIXME - insert some real tests, host_os isn't really good enough
9749   case $host_os in
9750    darwin*)
9751        if test -n "$STRIP" ; then
9752          striplib="$STRIP -x"
9753          old_striplib="$STRIP -S"
9754          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9755 $as_echo "yes" >&6; }
9756        else
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 $as_echo "no" >&6; }
9759 fi
9760        ;;
9761    *)
9762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9764     ;;
9765   esac
9766 fi
9767
9768 if test "x$enable_dlopen" != xyes; then
9769   enable_dlopen=unknown
9770   enable_dlopen_self=unknown
9771   enable_dlopen_self_static=unknown
9772 else
9773   lt_cv_dlopen=no
9774   lt_cv_dlopen_libs=
9775
9776   case $host_os in
9777   beos*)
9778     lt_cv_dlopen="load_add_on"
9779     lt_cv_dlopen_libs=
9780     lt_cv_dlopen_self=yes
9781     ;;
9782
9783   mingw* | pw32*)
9784     lt_cv_dlopen="LoadLibrary"
9785     lt_cv_dlopen_libs=
9786    ;;
9787
9788   cygwin*)
9789     lt_cv_dlopen="dlopen"
9790     lt_cv_dlopen_libs=
9791    ;;
9792
9793   darwin*)
9794   # if libdl is installed we need to link against it
9795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9796 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9797 if ${ac_cv_lib_dl_dlopen+:} false; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   ac_check_lib_save_LIBS=$LIBS
9801 LIBS="-ldl  $LIBS"
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804
9805 /* Override any GCC internal prototype to avoid an error.
9806    Use char because int might match the return type of a GCC
9807    builtin and then its argument prototype would still apply.  */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char dlopen ();
9812 int
9813 main ()
9814 {
9815 return dlopen ();
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
9821   ac_cv_lib_dl_dlopen=yes
9822 else
9823   ac_cv_lib_dl_dlopen=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext \
9826     conftest$ac_exeext conftest.$ac_ext
9827 LIBS=$ac_check_lib_save_LIBS
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9830 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9831 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9832   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9833 else
9834
9835     lt_cv_dlopen="dyld"
9836     lt_cv_dlopen_libs=
9837     lt_cv_dlopen_self=yes
9838
9839 fi
9840
9841    ;;
9842
9843   *)
9844     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9845 if test "x$ac_cv_func_shl_load" = xyes; then :
9846   lt_cv_dlopen="shl_load"
9847 else
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9849 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9850 if ${ac_cv_lib_dld_shl_load+:} false; then :
9851   $as_echo_n "(cached) " >&6
9852 else
9853   ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-ldld  $LIBS"
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h.  */
9857
9858 /* Override any GCC internal prototype to avoid an error.
9859    Use char because int might match the return type of a GCC
9860    builtin and then its argument prototype would still apply.  */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char shl_load ();
9865 int
9866 main ()
9867 {
9868 return shl_load ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874   ac_cv_lib_dld_shl_load=yes
9875 else
9876   ac_cv_lib_dld_shl_load=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext \
9879     conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9883 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9884 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9885   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9886 else
9887   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9888 if test "x$ac_cv_func_dlopen" = xyes; then :
9889   lt_cv_dlopen="dlopen"
9890 else
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9893 if ${ac_cv_lib_dl_dlopen+:} false; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   ac_check_lib_save_LIBS=$LIBS
9897 LIBS="-ldl  $LIBS"
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h.  */
9900
9901 /* Override any GCC internal prototype to avoid an error.
9902    Use char because int might match the return type of a GCC
9903    builtin and then its argument prototype would still apply.  */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 char dlopen ();
9908 int
9909 main ()
9910 {
9911 return dlopen ();
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9917   ac_cv_lib_dl_dlopen=yes
9918 else
9919   ac_cv_lib_dl_dlopen=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext \
9922     conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9927 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9928   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9929 else
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9931 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9932 if ${ac_cv_lib_svld_dlopen+:} false; then :
9933   $as_echo_n "(cached) " >&6
9934 else
9935   ac_check_lib_save_LIBS=$LIBS
9936 LIBS="-lsvld  $LIBS"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h.  */
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941    Use char because int might match the return type of a GCC
9942    builtin and then its argument prototype would still apply.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char dlopen ();
9947 int
9948 main ()
9949 {
9950 return dlopen ();
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_link "$LINENO"; then :
9956   ac_cv_lib_svld_dlopen=yes
9957 else
9958   ac_cv_lib_svld_dlopen=no
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext \
9961     conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9965 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9966 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9967   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9968 else
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9970 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9971 if ${ac_cv_lib_dld_dld_link+:} false; then :
9972   $as_echo_n "(cached) " >&6
9973 else
9974   ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-ldld  $LIBS"
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h.  */
9978
9979 /* Override any GCC internal prototype to avoid an error.
9980    Use char because int might match the return type of a GCC
9981    builtin and then its argument prototype would still apply.  */
9982 #ifdef __cplusplus
9983 extern "C"
9984 #endif
9985 char dld_link ();
9986 int
9987 main ()
9988 {
9989 return dld_link ();
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 if ac_fn_c_try_link "$LINENO"; then :
9995   ac_cv_lib_dld_dld_link=yes
9996 else
9997   ac_cv_lib_dld_dld_link=no
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext \
10000     conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10004 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10005 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10006   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10007 fi
10008
10009
10010 fi
10011
10012
10013 fi
10014
10015
10016 fi
10017
10018
10019 fi
10020
10021
10022 fi
10023
10024     ;;
10025   esac
10026
10027   if test "x$lt_cv_dlopen" != xno; then
10028     enable_dlopen=yes
10029   else
10030     enable_dlopen=no
10031   fi
10032
10033   case $lt_cv_dlopen in
10034   dlopen)
10035     save_CPPFLAGS="$CPPFLAGS"
10036     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10037
10038     save_LDFLAGS="$LDFLAGS"
10039     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10040
10041     save_LIBS="$LIBS"
10042     LIBS="$lt_cv_dlopen_libs $LIBS"
10043
10044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10045 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10046 if ${lt_cv_dlopen_self+:} false; then :
10047   $as_echo_n "(cached) " >&6
10048 else
10049           if test "$cross_compiling" = yes; then :
10050   lt_cv_dlopen_self=cross
10051 else
10052   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10053   lt_status=$lt_dlunknown
10054   cat > conftest.$ac_ext <<EOF
10055 #line 10055 "configure"
10056 #include "confdefs.h"
10057
10058 #if HAVE_DLFCN_H
10059 #include <dlfcn.h>
10060 #endif
10061
10062 #include <stdio.h>
10063
10064 #ifdef RTLD_GLOBAL
10065 #  define LT_DLGLOBAL           RTLD_GLOBAL
10066 #else
10067 #  ifdef DL_GLOBAL
10068 #    define LT_DLGLOBAL         DL_GLOBAL
10069 #  else
10070 #    define LT_DLGLOBAL         0
10071 #  endif
10072 #endif
10073
10074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10075    find out it does not work in some platform. */
10076 #ifndef LT_DLLAZY_OR_NOW
10077 #  ifdef RTLD_LAZY
10078 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10079 #  else
10080 #    ifdef DL_LAZY
10081 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10082 #    else
10083 #      ifdef RTLD_NOW
10084 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10085 #      else
10086 #        ifdef DL_NOW
10087 #          define LT_DLLAZY_OR_NOW      DL_NOW
10088 #        else
10089 #          define LT_DLLAZY_OR_NOW      0
10090 #        endif
10091 #      endif
10092 #    endif
10093 #  endif
10094 #endif
10095
10096 #ifdef __cplusplus
10097 extern "C" void exit (int);
10098 #endif
10099
10100 void fnord() { int i=42;}
10101 int main ()
10102 {
10103   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10104   int status = $lt_dlunknown;
10105
10106   if (self)
10107     {
10108       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10109       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10110       /* dlclose (self); */
10111     }
10112   else
10113     puts (dlerror ());
10114
10115     exit (status);
10116 }
10117 EOF
10118   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10119   (eval $ac_link) 2>&5
10120   ac_status=$?
10121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10123     (./conftest; exit; ) >&5 2>/dev/null
10124     lt_status=$?
10125     case x$lt_status in
10126       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10127       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10128       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10129     esac
10130   else :
10131     # compilation failed
10132     lt_cv_dlopen_self=no
10133   fi
10134 fi
10135 rm -fr conftest*
10136
10137
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10140 $as_echo "$lt_cv_dlopen_self" >&6; }
10141
10142     if test "x$lt_cv_dlopen_self" = xyes; then
10143       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10145 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10146 if ${lt_cv_dlopen_self_static+:} false; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149           if test "$cross_compiling" = yes; then :
10150   lt_cv_dlopen_self_static=cross
10151 else
10152   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10153   lt_status=$lt_dlunknown
10154   cat > conftest.$ac_ext <<EOF
10155 #line 10155 "configure"
10156 #include "confdefs.h"
10157
10158 #if HAVE_DLFCN_H
10159 #include <dlfcn.h>
10160 #endif
10161
10162 #include <stdio.h>
10163
10164 #ifdef RTLD_GLOBAL
10165 #  define LT_DLGLOBAL           RTLD_GLOBAL
10166 #else
10167 #  ifdef DL_GLOBAL
10168 #    define LT_DLGLOBAL         DL_GLOBAL
10169 #  else
10170 #    define LT_DLGLOBAL         0
10171 #  endif
10172 #endif
10173
10174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10175    find out it does not work in some platform. */
10176 #ifndef LT_DLLAZY_OR_NOW
10177 #  ifdef RTLD_LAZY
10178 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10179 #  else
10180 #    ifdef DL_LAZY
10181 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10182 #    else
10183 #      ifdef RTLD_NOW
10184 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10185 #      else
10186 #        ifdef DL_NOW
10187 #          define LT_DLLAZY_OR_NOW      DL_NOW
10188 #        else
10189 #          define LT_DLLAZY_OR_NOW      0
10190 #        endif
10191 #      endif
10192 #    endif
10193 #  endif
10194 #endif
10195
10196 #ifdef __cplusplus
10197 extern "C" void exit (int);
10198 #endif
10199
10200 void fnord() { int i=42;}
10201 int main ()
10202 {
10203   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10204   int status = $lt_dlunknown;
10205
10206   if (self)
10207     {
10208       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10209       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10210       /* dlclose (self); */
10211     }
10212   else
10213     puts (dlerror ());
10214
10215     exit (status);
10216 }
10217 EOF
10218   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10219   (eval $ac_link) 2>&5
10220   ac_status=$?
10221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10222   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10223     (./conftest; exit; ) >&5 2>/dev/null
10224     lt_status=$?
10225     case x$lt_status in
10226       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10227       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10228       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10229     esac
10230   else :
10231     # compilation failed
10232     lt_cv_dlopen_self_static=no
10233   fi
10234 fi
10235 rm -fr conftest*
10236
10237
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10240 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10241     fi
10242
10243     CPPFLAGS="$save_CPPFLAGS"
10244     LDFLAGS="$save_LDFLAGS"
10245     LIBS="$save_LIBS"
10246     ;;
10247   esac
10248
10249   case $lt_cv_dlopen_self in
10250   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10251   *) enable_dlopen_self=unknown ;;
10252   esac
10253
10254   case $lt_cv_dlopen_self_static in
10255   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10256   *) enable_dlopen_self_static=unknown ;;
10257   esac
10258 fi
10259
10260
10261 # Report which library types will actually be built
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10263 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10265 $as_echo "$can_build_shared" >&6; }
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10268 $as_echo_n "checking whether to build shared libraries... " >&6; }
10269 test "$can_build_shared" = "no" && enable_shared=no
10270
10271 # On AIX, shared libraries and static libraries use the same namespace, and
10272 # are all built from PIC.
10273 case $host_os in
10274 aix3*)
10275   test "$enable_shared" = yes && enable_static=no
10276   if test -n "$RANLIB"; then
10277     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10278     postinstall_cmds='$RANLIB $lib'
10279   fi
10280   ;;
10281
10282 aix[4-9]*)
10283   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10284     test "$enable_shared" = yes && enable_static=no
10285   fi
10286     ;;
10287 esac
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10289 $as_echo "$enable_shared" >&6; }
10290
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10292 $as_echo_n "checking whether to build static libraries... " >&6; }
10293 # Make sure either enable_shared or enable_static is yes.
10294 test "$enable_shared" = yes || enable_static=yes
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10296 $as_echo "$enable_static" >&6; }
10297
10298 # The else clause should only fire when bootstrapping the
10299 # libtool distribution, otherwise you forgot to ship ltmain.sh
10300 # with your package, and you will get complaints that there are
10301 # no rules to generate ltmain.sh.
10302 if test -f "$ltmain"; then
10303   # See if we are running on zsh, and set the options which allow our commands through
10304   # without removal of \ escapes.
10305   if test -n "${ZSH_VERSION+set}" ; then
10306     setopt NO_GLOB_SUBST
10307   fi
10308   # Now quote all the things that may contain metacharacters while being
10309   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10310   # variables and quote the copies for generation of the libtool script.
10311   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10312     SED SHELL STRIP \
10313     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10314     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10315     deplibs_check_method reload_flag reload_cmds need_locks \
10316     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10317     lt_cv_sys_global_symbol_to_c_name_address \
10318     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10319     old_postinstall_cmds old_postuninstall_cmds \
10320     compiler \
10321     CC \
10322     LD \
10323     lt_prog_compiler_wl \
10324     lt_prog_compiler_pic \
10325     lt_prog_compiler_static \
10326     lt_prog_compiler_no_builtin_flag \
10327     export_dynamic_flag_spec \
10328     thread_safe_flag_spec \
10329     whole_archive_flag_spec \
10330     enable_shared_with_static_runtimes \
10331     old_archive_cmds \
10332     old_archive_from_new_cmds \
10333     predep_objects \
10334     postdep_objects \
10335     predeps \
10336     postdeps \
10337     compiler_lib_search_path \
10338     compiler_lib_search_dirs \
10339     archive_cmds \
10340     archive_expsym_cmds \
10341     postinstall_cmds \
10342     postuninstall_cmds \
10343     old_archive_from_expsyms_cmds \
10344     allow_undefined_flag \
10345     no_undefined_flag \
10346     export_symbols_cmds \
10347     hardcode_libdir_flag_spec \
10348     hardcode_libdir_flag_spec_ld \
10349     hardcode_libdir_separator \
10350     hardcode_automatic \
10351     module_cmds \
10352     module_expsym_cmds \
10353     lt_cv_prog_compiler_c_o \
10354     fix_srcfile_path \
10355     exclude_expsyms \
10356     include_expsyms; do
10357
10358     case $var in
10359     old_archive_cmds | \
10360     old_archive_from_new_cmds | \
10361     archive_cmds | \
10362     archive_expsym_cmds | \
10363     module_cmds | \
10364     module_expsym_cmds | \
10365     old_archive_from_expsyms_cmds | \
10366     export_symbols_cmds | \
10367     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10368     postinstall_cmds | postuninstall_cmds | \
10369     old_postinstall_cmds | old_postuninstall_cmds | \
10370     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10371       # Double-quote double-evaled strings.
10372       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10373       ;;
10374     *)
10375       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10376       ;;
10377     esac
10378   done
10379
10380   case $lt_echo in
10381   *'\$0 --fallback-echo"')
10382     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10383     ;;
10384   esac
10385
10386 cfgfile="${ofile}T"
10387   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10388   $rm -f "$cfgfile"
10389   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10390 $as_echo "$as_me: creating $ofile" >&6;}
10391
10392   cat <<__EOF__ >> "$cfgfile"
10393 #! $SHELL
10394
10395 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10396 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10397 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10398 #
10399 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10400 # Free Software Foundation, Inc.
10401 #
10402 # This file is part of GNU Libtool:
10403 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10404 #
10405 # This program is free software; you can redistribute it and/or modify
10406 # it under the terms of the GNU General Public License as published by
10407 # the Free Software Foundation; either version 2 of the License, or
10408 # (at your option) any later version.
10409 #
10410 # This program is distributed in the hope that it will be useful, but
10411 # WITHOUT ANY WARRANTY; without even the implied warranty of
10412 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10413 # General Public License for more details.
10414 #
10415 # You should have received a copy of the GNU General Public License
10416 # along with this program; if not, write to the Free Software
10417 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10418 #
10419 # As a special exception to the GNU General Public License, if you
10420 # distribute this file as part of a program that contains a
10421 # configuration script generated by Autoconf, you may include it under
10422 # the same distribution terms that you use for the rest of that program.
10423
10424 # A sed program that does not truncate output.
10425 SED=$lt_SED
10426
10427 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10428 Xsed="$SED -e 1s/^X//"
10429
10430 # The HP-UX ksh and POSIX shell print the target directory to stdout
10431 # if CDPATH is set.
10432 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10433
10434 # The names of the tagged configurations supported by this script.
10435 available_tags=
10436
10437 # ### BEGIN LIBTOOL CONFIG
10438
10439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10440
10441 # Shell to use when invoking shell scripts.
10442 SHELL=$lt_SHELL
10443
10444 # Whether or not to build shared libraries.
10445 build_libtool_libs=$enable_shared
10446
10447 # Whether or not to build static libraries.
10448 build_old_libs=$enable_static
10449
10450 # Whether or not to add -lc for building shared libraries.
10451 build_libtool_need_lc=$archive_cmds_need_lc
10452
10453 # Whether or not to disallow shared libs when runtime libs are static
10454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10455
10456 # Whether or not to optimize for fast installation.
10457 fast_install=$enable_fast_install
10458
10459 # The host system.
10460 host_alias=$host_alias
10461 host=$host
10462 host_os=$host_os
10463
10464 # The build system.
10465 build_alias=$build_alias
10466 build=$build
10467 build_os=$build_os
10468
10469 # An echo program that does not interpret backslashes.
10470 echo=$lt_echo
10471
10472 # The archiver.
10473 AR=$lt_AR
10474 AR_FLAGS=$lt_AR_FLAGS
10475
10476 # A C compiler.
10477 LTCC=$lt_LTCC
10478
10479 # LTCC compiler flags.
10480 LTCFLAGS=$lt_LTCFLAGS
10481
10482 # A language-specific compiler.
10483 CC=$lt_compiler
10484
10485 # Is the compiler the GNU C compiler?
10486 with_gcc=$GCC
10487
10488 # An ERE matcher.
10489 EGREP=$lt_EGREP
10490
10491 # The linker used to build libraries.
10492 LD=$lt_LD
10493
10494 # Whether we need hard or soft links.
10495 LN_S=$lt_LN_S
10496
10497 # A BSD-compatible nm program.
10498 NM=$lt_NM
10499
10500 # A symbol stripping program
10501 STRIP=$lt_STRIP
10502
10503 # Used to examine libraries when file_magic_cmd begins "file"
10504 MAGIC_CMD=$MAGIC_CMD
10505
10506 # Used on cygwin: DLL creation program.
10507 DLLTOOL="$DLLTOOL"
10508
10509 # Used on cygwin: object dumper.
10510 OBJDUMP="$OBJDUMP"
10511
10512 # Used on cygwin: assembler.
10513 AS="$AS"
10514
10515 # The name of the directory that contains temporary libtool files.
10516 objdir=$objdir
10517
10518 # How to create reloadable object files.
10519 reload_flag=$lt_reload_flag
10520 reload_cmds=$lt_reload_cmds
10521
10522 # How to pass a linker flag through the compiler.
10523 wl=$lt_lt_prog_compiler_wl
10524
10525 # Object file suffix (normally "o").
10526 objext="$ac_objext"
10527
10528 # Old archive suffix (normally "a").
10529 libext="$libext"
10530
10531 # Shared library suffix (normally ".so").
10532 shrext_cmds='$shrext_cmds'
10533
10534 # Executable file suffix (normally "").
10535 exeext="$exeext"
10536
10537 # Additional compiler flags for building library objects.
10538 pic_flag=$lt_lt_prog_compiler_pic
10539 pic_mode=$pic_mode
10540
10541 # What is the maximum length of a command?
10542 max_cmd_len=$lt_cv_sys_max_cmd_len
10543
10544 # Does compiler simultaneously support -c and -o options?
10545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10546
10547 # Must we lock files when doing compilation?
10548 need_locks=$lt_need_locks
10549
10550 # Do we need the lib prefix for modules?
10551 need_lib_prefix=$need_lib_prefix
10552
10553 # Do we need a version for libraries?
10554 need_version=$need_version
10555
10556 # Whether dlopen is supported.
10557 dlopen_support=$enable_dlopen
10558
10559 # Whether dlopen of programs is supported.
10560 dlopen_self=$enable_dlopen_self
10561
10562 # Whether dlopen of statically linked programs is supported.
10563 dlopen_self_static=$enable_dlopen_self_static
10564
10565 # Compiler flag to prevent dynamic linking.
10566 link_static_flag=$lt_lt_prog_compiler_static
10567
10568 # Compiler flag to turn off builtin functions.
10569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10570
10571 # Compiler flag to allow reflexive dlopens.
10572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10573
10574 # Compiler flag to generate shared objects directly from archives.
10575 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10576
10577 # Compiler flag to generate thread-safe objects.
10578 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10579
10580 # Library versioning type.
10581 version_type=$version_type
10582
10583 # Format of library name prefix.
10584 libname_spec=$lt_libname_spec
10585
10586 # List of archive names.  First name is the real one, the rest are links.
10587 # The last name is the one that the linker finds with -lNAME.
10588 library_names_spec=$lt_library_names_spec
10589
10590 # The coded name of the library, if different from the real name.
10591 soname_spec=$lt_soname_spec
10592
10593 # Commands used to build and install an old-style archive.
10594 RANLIB=$lt_RANLIB
10595 old_archive_cmds=$lt_old_archive_cmds
10596 old_postinstall_cmds=$lt_old_postinstall_cmds
10597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10598
10599 # Create an old-style archive from a shared archive.
10600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10601
10602 # Create a temporary old-style archive to link instead of a shared archive.
10603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10604
10605 # Commands used to build and install a shared archive.
10606 archive_cmds=$lt_archive_cmds
10607 archive_expsym_cmds=$lt_archive_expsym_cmds
10608 postinstall_cmds=$lt_postinstall_cmds
10609 postuninstall_cmds=$lt_postuninstall_cmds
10610
10611 # Commands used to build a loadable module (assumed same as above if empty)
10612 module_cmds=$lt_module_cmds
10613 module_expsym_cmds=$lt_module_expsym_cmds
10614
10615 # Commands to strip libraries.
10616 old_striplib=$lt_old_striplib
10617 striplib=$lt_striplib
10618
10619 # Dependencies to place before the objects being linked to create a
10620 # shared library.
10621 predep_objects=$lt_predep_objects
10622
10623 # Dependencies to place after the objects being linked to create a
10624 # shared library.
10625 postdep_objects=$lt_postdep_objects
10626
10627 # Dependencies to place before the objects being linked to create a
10628 # shared library.
10629 predeps=$lt_predeps
10630
10631 # Dependencies to place after the objects being linked to create a
10632 # shared library.
10633 postdeps=$lt_postdeps
10634
10635 # The directories searched by this compiler when creating a shared
10636 # library
10637 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10638
10639 # The library search path used internally by the compiler when linking
10640 # a shared library.
10641 compiler_lib_search_path=$lt_compiler_lib_search_path
10642
10643 # Method to check whether dependent libraries are shared objects.
10644 deplibs_check_method=$lt_deplibs_check_method
10645
10646 # Command to use when deplibs_check_method == file_magic.
10647 file_magic_cmd=$lt_file_magic_cmd
10648
10649 # Flag that allows shared libraries with undefined symbols to be built.
10650 allow_undefined_flag=$lt_allow_undefined_flag
10651
10652 # Flag that forces no undefined symbols.
10653 no_undefined_flag=$lt_no_undefined_flag
10654
10655 # Commands used to finish a libtool library installation in a directory.
10656 finish_cmds=$lt_finish_cmds
10657
10658 # Same as above, but a single script fragment to be evaled but not shown.
10659 finish_eval=$lt_finish_eval
10660
10661 # Take the output of nm and produce a listing of raw symbols and C names.
10662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10663
10664 # Transform the output of nm in a proper C declaration
10665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10666
10667 # Transform the output of nm in a C name address pair
10668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10669
10670 # This is the shared library runtime path variable.
10671 runpath_var=$runpath_var
10672
10673 # This is the shared library path variable.
10674 shlibpath_var=$shlibpath_var
10675
10676 # Is shlibpath searched before the hard-coded library search path?
10677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10678
10679 # How to hardcode a shared library path into an executable.
10680 hardcode_action=$hardcode_action
10681
10682 # Whether we should hardcode library paths into libraries.
10683 hardcode_into_libs=$hardcode_into_libs
10684
10685 # Flag to hardcode \$libdir into a binary during linking.
10686 # This must work even if \$libdir does not exist.
10687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10688
10689 # If ld is used when linking, flag to hardcode \$libdir into
10690 # a binary during linking. This must work even if \$libdir does
10691 # not exist.
10692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10693
10694 # Whether we need a single -rpath flag with a separated argument.
10695 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10696
10697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10698 # resulting binary.
10699 hardcode_direct=$hardcode_direct
10700
10701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10702 # resulting binary.
10703 hardcode_minus_L=$hardcode_minus_L
10704
10705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10706 # the resulting binary.
10707 hardcode_shlibpath_var=$hardcode_shlibpath_var
10708
10709 # Set to yes if building a shared library automatically hardcodes DIR into the library
10710 # and all subsequent libraries and executables linked against it.
10711 hardcode_automatic=$hardcode_automatic
10712
10713 # Variables whose values should be saved in libtool wrapper scripts and
10714 # restored at relink time.
10715 variables_saved_for_relink="$variables_saved_for_relink"
10716
10717 # Whether libtool must link a program against all its dependency libraries.
10718 link_all_deplibs=$link_all_deplibs
10719
10720 # Compile-time system search path for libraries
10721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10722
10723 # Run-time system search path for libraries
10724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10725
10726 # Fix the shell variable \$srcfile for the compiler.
10727 fix_srcfile_path=$lt_fix_srcfile_path
10728
10729 # Set to yes if exported symbols are required.
10730 always_export_symbols=$always_export_symbols
10731
10732 # The commands to list exported symbols.
10733 export_symbols_cmds=$lt_export_symbols_cmds
10734
10735 # The commands to extract the exported symbol list from a shared archive.
10736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10737
10738 # Symbols that should not be listed in the preloaded symbols.
10739 exclude_expsyms=$lt_exclude_expsyms
10740
10741 # Symbols that must always be exported.
10742 include_expsyms=$lt_include_expsyms
10743
10744 # ### END LIBTOOL CONFIG
10745
10746 __EOF__
10747
10748
10749   case $host_os in
10750   aix3*)
10751     cat <<\EOF >> "$cfgfile"
10752
10753 # AIX sometimes has problems with the GCC collect2 program.  For some
10754 # reason, if we set the COLLECT_NAMES environment variable, the problems
10755 # vanish in a puff of smoke.
10756 if test "X${COLLECT_NAMES+set}" != Xset; then
10757   COLLECT_NAMES=
10758   export COLLECT_NAMES
10759 fi
10760 EOF
10761     ;;
10762   esac
10763
10764   # We use sed instead of cat because bash on DJGPP gets confused if
10765   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10766   # text mode, it properly converts lines to CR/LF.  This bash problem
10767   # is reportedly fixed, but why not run on old versions too?
10768   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10769
10770   mv -f "$cfgfile" "$ofile" || \
10771     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10772   chmod +x "$ofile"
10773
10774 else
10775   # If there is no Makefile yet, we rely on a make rule to execute
10776   # `config.status --recheck' to rerun these tests and create the
10777   # libtool script then.
10778   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10779   if test -f "$ltmain_in"; then
10780     test -f Makefile && make "$ltmain"
10781   fi
10782 fi
10783
10784
10785 ac_ext=c
10786 ac_cpp='$CPP $CPPFLAGS'
10787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10790
10791 CC="$lt_save_CC"
10792
10793
10794 # Check whether --with-tags was given.
10795 if test "${with_tags+set}" = set; then :
10796   withval=$with_tags; tagnames="$withval"
10797 fi
10798
10799
10800 if test -f "$ltmain" && test -n "$tagnames"; then
10801   if test ! -f "${ofile}"; then
10802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10803 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10804   fi
10805
10806   if test -z "$LTCC"; then
10807     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10808     if test -z "$LTCC"; then
10809       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10810 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10811     else
10812       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10813 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10814     fi
10815   fi
10816   if test -z "$LTCFLAGS"; then
10817     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10818   fi
10819
10820   # Extract list of available tagged configurations in $ofile.
10821   # Note that this assumes the entire list is on one line.
10822   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10823
10824   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10825   for tagname in $tagnames; do
10826     IFS="$lt_save_ifs"
10827     # Check whether tagname contains only valid characters
10828     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10829     "") ;;
10830     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10831         ;;
10832     esac
10833
10834     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10835     then
10836       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10837     fi
10838
10839     # Update the list of available tags.
10840     if test -n "$tagname"; then
10841       echo appending configuration tag \"$tagname\" to $ofile
10842
10843       case $tagname in
10844       CXX)
10845         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10846             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10847             (test "X$CXX" != "Xg++"))) ; then
10848           ac_ext=cpp
10849 ac_cpp='$CXXCPP $CPPFLAGS'
10850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10853
10854
10855
10856
10857 archive_cmds_need_lc_CXX=no
10858 allow_undefined_flag_CXX=
10859 always_export_symbols_CXX=no
10860 archive_expsym_cmds_CXX=
10861 export_dynamic_flag_spec_CXX=
10862 hardcode_direct_CXX=no
10863 hardcode_libdir_flag_spec_CXX=
10864 hardcode_libdir_flag_spec_ld_CXX=
10865 hardcode_libdir_separator_CXX=
10866 hardcode_minus_L_CXX=no
10867 hardcode_shlibpath_var_CXX=unsupported
10868 hardcode_automatic_CXX=no
10869 module_cmds_CXX=
10870 module_expsym_cmds_CXX=
10871 link_all_deplibs_CXX=unknown
10872 old_archive_cmds_CXX=$old_archive_cmds
10873 no_undefined_flag_CXX=
10874 whole_archive_flag_spec_CXX=
10875 enable_shared_with_static_runtimes_CXX=no
10876
10877 # Dependencies to place before and after the object being linked:
10878 predep_objects_CXX=
10879 postdep_objects_CXX=
10880 predeps_CXX=
10881 postdeps_CXX=
10882 compiler_lib_search_path_CXX=
10883 compiler_lib_search_dirs_CXX=
10884
10885 # Source file extension for C++ test sources.
10886 ac_ext=cpp
10887
10888 # Object file extension for compiled C++ test sources.
10889 objext=o
10890 objext_CXX=$objext
10891
10892 # Code to be used in simple compile tests
10893 lt_simple_compile_test_code="int some_variable = 0;"
10894
10895 # Code to be used in simple link tests
10896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10897
10898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10899
10900 # If no C compiler was specified, use CC.
10901 LTCC=${LTCC-"$CC"}
10902
10903 # If no C compiler flags were specified, use CFLAGS.
10904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10905
10906 # Allow CC to be a program name with arguments.
10907 compiler=$CC
10908
10909
10910 # save warnings/boilerplate of simple test code
10911 ac_outfile=conftest.$ac_objext
10912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10914 _lt_compiler_boilerplate=`cat conftest.err`
10915 $rm conftest*
10916
10917 ac_outfile=conftest.$ac_objext
10918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10920 _lt_linker_boilerplate=`cat conftest.err`
10921 $rm -r conftest*
10922
10923
10924 # Allow CC to be a program name with arguments.
10925 lt_save_CC=$CC
10926 lt_save_LD=$LD
10927 lt_save_GCC=$GCC
10928 GCC=$GXX
10929 lt_save_with_gnu_ld=$with_gnu_ld
10930 lt_save_path_LD=$lt_cv_path_LD
10931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10932   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10933 else
10934   $as_unset lt_cv_prog_gnu_ld
10935 fi
10936 if test -n "${lt_cv_path_LDCXX+set}"; then
10937   lt_cv_path_LD=$lt_cv_path_LDCXX
10938 else
10939   $as_unset lt_cv_path_LD
10940 fi
10941 test -z "${LDCXX+set}" || LD=$LDCXX
10942 CC=${CXX-"c++"}
10943 compiler=$CC
10944 compiler_CXX=$CC
10945 for cc_temp in $compiler""; do
10946   case $cc_temp in
10947     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10948     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10949     \-*) ;;
10950     *) break;;
10951   esac
10952 done
10953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10954
10955
10956 # We don't want -fno-exception wen compiling C++ code, so set the
10957 # no_builtin_flag separately
10958 if test "$GXX" = yes; then
10959   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10960 else
10961   lt_prog_compiler_no_builtin_flag_CXX=
10962 fi
10963
10964 if test "$GXX" = yes; then
10965   # Set up default GNU C++ configuration
10966
10967
10968 # Check whether --with-gnu-ld was given.
10969 if test "${with_gnu_ld+set}" = set; then :
10970   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10971 else
10972   with_gnu_ld=no
10973 fi
10974
10975 ac_prog=ld
10976 if test "$GCC" = yes; then
10977   # Check if gcc -print-prog-name=ld gives a path.
10978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10979 $as_echo_n "checking for ld used by $CC... " >&6; }
10980   case $host in
10981   *-*-mingw*)
10982     # gcc leaves a trailing carriage return which upsets mingw
10983     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10984   *)
10985     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10986   esac
10987   case $ac_prog in
10988     # Accept absolute paths.
10989     [\\/]* | ?:[\\/]*)
10990       re_direlt='/[^/][^/]*/\.\./'
10991       # Canonicalize the pathname of ld
10992       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10993       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10994         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10995       done
10996       test -z "$LD" && LD="$ac_prog"
10997       ;;
10998   "")
10999     # If it fails, then pretend we aren't using GCC.
11000     ac_prog=ld
11001     ;;
11002   *)
11003     # If it is relative, then search for the first ld in PATH.
11004     with_gnu_ld=unknown
11005     ;;
11006   esac
11007 elif test "$with_gnu_ld" = yes; then
11008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11009 $as_echo_n "checking for GNU ld... " >&6; }
11010 else
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11012 $as_echo_n "checking for non-GNU ld... " >&6; }
11013 fi
11014 if ${lt_cv_path_LD+:} false; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   if test -z "$LD"; then
11018   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11019   for ac_dir in $PATH; do
11020     IFS="$lt_save_ifs"
11021     test -z "$ac_dir" && ac_dir=.
11022     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11023       lt_cv_path_LD="$ac_dir/$ac_prog"
11024       # Check to see if the program is GNU ld.  I'd rather use --version,
11025       # but apparently some variants of GNU ld only accept -v.
11026       # Break only if it was the GNU/non-GNU ld that we prefer.
11027       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11028       *GNU* | *'with BFD'*)
11029         test "$with_gnu_ld" != no && break
11030         ;;
11031       *)
11032         test "$with_gnu_ld" != yes && break
11033         ;;
11034       esac
11035     fi
11036   done
11037   IFS="$lt_save_ifs"
11038 else
11039   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11040 fi
11041 fi
11042
11043 LD="$lt_cv_path_LD"
11044 if test -n "$LD"; then
11045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11046 $as_echo "$LD" >&6; }
11047 else
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11050 fi
11051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11054 if ${lt_cv_prog_gnu_ld+:} false; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11058 case `$LD -v 2>&1 </dev/null` in
11059 *GNU* | *'with BFD'*)
11060   lt_cv_prog_gnu_ld=yes
11061   ;;
11062 *)
11063   lt_cv_prog_gnu_ld=no
11064   ;;
11065 esac
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11069 with_gnu_ld=$lt_cv_prog_gnu_ld
11070
11071
11072
11073   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11074   # archiving commands below assume that GNU ld is being used.
11075   if test "$with_gnu_ld" = yes; then
11076     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11077     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'
11078
11079     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11080     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11081
11082     # If archive_cmds runs LD, not CC, wlarc should be empty
11083     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11084     #     investigate it a little bit more. (MM)
11085     wlarc='${wl}'
11086
11087     # ancient GNU ld didn't support --whole-archive et. al.
11088     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11089         grep 'no-whole-archive' > /dev/null; then
11090       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11091     else
11092       whole_archive_flag_spec_CXX=
11093     fi
11094   else
11095     with_gnu_ld=no
11096     wlarc=
11097
11098     # A generic and very simple default shared library creation
11099     # command for GNU C++ for the case where it uses the native
11100     # linker, instead of GNU ld.  If possible, this setting should
11101     # overridden to take advantage of the native linker features on
11102     # the platform it is being used on.
11103     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11104   fi
11105
11106   # Commands to make compiler produce verbose output that lists
11107   # what "hidden" libraries, object files and flags are used when
11108   # linking a shared library.
11109   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11110
11111 else
11112   GXX=no
11113   with_gnu_ld=no
11114   wlarc=
11115 fi
11116
11117 # PORTME: fill in a description of your system's C++ link characteristics
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11119 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11120 ld_shlibs_CXX=yes
11121 case $host_os in
11122   aix3*)
11123     # FIXME: insert proper C++ library support
11124     ld_shlibs_CXX=no
11125     ;;
11126   aix[4-9]*)
11127     if test "$host_cpu" = ia64; then
11128       # On IA64, the linker does run time linking by default, so we don't
11129       # have to do anything special.
11130       aix_use_runtimelinking=no
11131       exp_sym_flag='-Bexport'
11132       no_entry_flag=""
11133     else
11134       aix_use_runtimelinking=no
11135
11136       # Test if we are trying to use run time linking or normal
11137       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11138       # need to do runtime linking.
11139       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11140         for ld_flag in $LDFLAGS; do
11141           case $ld_flag in
11142           *-brtl*)
11143             aix_use_runtimelinking=yes
11144             break
11145             ;;
11146           esac
11147         done
11148         ;;
11149       esac
11150
11151       exp_sym_flag='-bexport'
11152       no_entry_flag='-bnoentry'
11153     fi
11154
11155     # When large executables or shared objects are built, AIX ld can
11156     # have problems creating the table of contents.  If linking a library
11157     # or program results in "error TOC overflow" add -mminimal-toc to
11158     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11159     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11160
11161     archive_cmds_CXX=''
11162     hardcode_direct_CXX=yes
11163     hardcode_libdir_separator_CXX=':'
11164     link_all_deplibs_CXX=yes
11165
11166     if test "$GXX" = yes; then
11167       case $host_os in aix4.[012]|aix4.[012].*)
11168       # We only want to do this on AIX 4.2 and lower, the check
11169       # below for broken collect2 doesn't work under 4.3+
11170         collect2name=`${CC} -print-prog-name=collect2`
11171         if test -f "$collect2name" && \
11172            strings "$collect2name" | grep resolve_lib_name >/dev/null
11173         then
11174           # We have reworked collect2
11175           :
11176         else
11177           # We have old collect2
11178           hardcode_direct_CXX=unsupported
11179           # It fails to find uninstalled libraries when the uninstalled
11180           # path is not listed in the libpath.  Setting hardcode_minus_L
11181           # to unsupported forces relinking
11182           hardcode_minus_L_CXX=yes
11183           hardcode_libdir_flag_spec_CXX='-L$libdir'
11184           hardcode_libdir_separator_CXX=
11185         fi
11186         ;;
11187       esac
11188       shared_flag='-shared'
11189       if test "$aix_use_runtimelinking" = yes; then
11190         shared_flag="$shared_flag "'${wl}-G'
11191       fi
11192     else
11193       # not using gcc
11194       if test "$host_cpu" = ia64; then
11195         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11196         # chokes on -Wl,-G. The following line is correct:
11197         shared_flag='-G'
11198       else
11199         if test "$aix_use_runtimelinking" = yes; then
11200           shared_flag='${wl}-G'
11201         else
11202           shared_flag='${wl}-bM:SRE'
11203         fi
11204       fi
11205     fi
11206
11207     # It seems that -bexpall does not export symbols beginning with
11208     # underscore (_), so it is better to generate a list of symbols to export.
11209     always_export_symbols_CXX=yes
11210     if test "$aix_use_runtimelinking" = yes; then
11211       # Warning - without using the other runtime loading flags (-brtl),
11212       # -berok will link without error, but may produce a broken library.
11213       allow_undefined_flag_CXX='-berok'
11214       # Determine the default libpath from the value encoded in an empty executable.
11215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h.  */
11217
11218 int
11219 main ()
11220 {
11221
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_cxx_try_link "$LINENO"; then :
11227
11228 lt_aix_libpath_sed='
11229     /Import File Strings/,/^$/ {
11230         /^0/ {
11231             s/^0  *\(.*\)$/\1/
11232             p
11233         }
11234     }'
11235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11236 # Check for a 64-bit object if we didn't find anything.
11237 if test -z "$aix_libpath"; then
11238   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11239 fi
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext \
11242     conftest$ac_exeext conftest.$ac_ext
11243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11244
11245       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11246
11247       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"
11248      else
11249       if test "$host_cpu" = ia64; then
11250         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11251         allow_undefined_flag_CXX="-z nodefs"
11252         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"
11253       else
11254         # Determine the default libpath from the value encoded in an empty executable.
11255         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h.  */
11257
11258 int
11259 main ()
11260 {
11261
11262   ;
11263   return 0;
11264 }
11265 _ACEOF
11266 if ac_fn_cxx_try_link "$LINENO"; then :
11267
11268 lt_aix_libpath_sed='
11269     /Import File Strings/,/^$/ {
11270         /^0/ {
11271             s/^0  *\(.*\)$/\1/
11272             p
11273         }
11274     }'
11275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11276 # Check for a 64-bit object if we didn't find anything.
11277 if test -z "$aix_libpath"; then
11278   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11279 fi
11280 fi
11281 rm -f core conftest.err conftest.$ac_objext \
11282     conftest$ac_exeext conftest.$ac_ext
11283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11284
11285         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11286         # Warning - without using the other run time loading flags,
11287         # -berok will link without error, but may produce a broken library.
11288         no_undefined_flag_CXX=' ${wl}-bernotok'
11289         allow_undefined_flag_CXX=' ${wl}-berok'
11290         # Exported symbols can be pulled into shared objects from archives
11291         whole_archive_flag_spec_CXX='$convenience'
11292         archive_cmds_need_lc_CXX=yes
11293         # This is similar to how AIX traditionally builds its shared libraries.
11294         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'
11295       fi
11296     fi
11297     ;;
11298
11299   beos*)
11300     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11301       allow_undefined_flag_CXX=unsupported
11302       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11303       # support --undefined.  This deserves some investigation.  FIXME
11304       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11305     else
11306       ld_shlibs_CXX=no
11307     fi
11308     ;;
11309
11310   chorus*)
11311     case $cc_basename in
11312       *)
11313         # FIXME: insert proper C++ library support
11314         ld_shlibs_CXX=no
11315         ;;
11316     esac
11317     ;;
11318
11319   cygwin* | mingw* | pw32*)
11320     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11321     # as there is no search path for DLLs.
11322     hardcode_libdir_flag_spec_CXX='-L$libdir'
11323     allow_undefined_flag_CXX=unsupported
11324     always_export_symbols_CXX=no
11325     enable_shared_with_static_runtimes_CXX=yes
11326
11327     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11328       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'
11329       # If the export-symbols file already is a .def file (1st line
11330       # is EXPORTS), use it as is; otherwise, prepend...
11331       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11332         cp $export_symbols $output_objdir/$soname.def;
11333       else
11334         echo EXPORTS > $output_objdir/$soname.def;
11335         cat $export_symbols >> $output_objdir/$soname.def;
11336       fi~
11337       $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'
11338     else
11339       ld_shlibs_CXX=no
11340     fi
11341   ;;
11342       darwin* | rhapsody*)
11343       archive_cmds_need_lc_CXX=no
11344       hardcode_direct_CXX=no
11345       hardcode_automatic_CXX=yes
11346       hardcode_shlibpath_var_CXX=unsupported
11347       whole_archive_flag_spec_CXX=''
11348       link_all_deplibs_CXX=yes
11349       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11350       if test "$GXX" = yes ; then
11351       output_verbose_link_cmd='echo'
11352       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}"
11353       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11354       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}"
11355       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}"
11356       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11357         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}"
11358         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}"
11359       fi
11360       else
11361       case $cc_basename in
11362         xlc*)
11363          output_verbose_link_cmd='echo'
11364           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'
11365           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11366           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11367           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}'
11368           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}'
11369           ;;
11370        *)
11371          ld_shlibs_CXX=no
11372           ;;
11373       esac
11374       fi
11375         ;;
11376
11377   dgux*)
11378     case $cc_basename in
11379       ec++*)
11380         # FIXME: insert proper C++ library support
11381         ld_shlibs_CXX=no
11382         ;;
11383       ghcx*)
11384         # Green Hills C++ Compiler
11385         # FIXME: insert proper C++ library support
11386         ld_shlibs_CXX=no
11387         ;;
11388       *)
11389         # FIXME: insert proper C++ library support
11390         ld_shlibs_CXX=no
11391         ;;
11392     esac
11393     ;;
11394   freebsd[12]*)
11395     # C++ shared libraries reported to be fairly broken before switch to ELF
11396     ld_shlibs_CXX=no
11397     ;;
11398   freebsd-elf*)
11399     archive_cmds_need_lc_CXX=no
11400     ;;
11401   freebsd* | dragonfly*)
11402     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11403     # conventions
11404     ld_shlibs_CXX=yes
11405     ;;
11406   gnu*)
11407     ;;
11408   hpux9*)
11409     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11410     hardcode_libdir_separator_CXX=:
11411     export_dynamic_flag_spec_CXX='${wl}-E'
11412     hardcode_direct_CXX=yes
11413     hardcode_minus_L_CXX=yes # Not in the search PATH,
11414                                 # but as the default
11415                                 # location of the library.
11416
11417     case $cc_basename in
11418     CC*)
11419       # FIXME: insert proper C++ library support
11420       ld_shlibs_CXX=no
11421       ;;
11422     aCC*)
11423       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'
11424       # Commands to make compiler produce verbose output that lists
11425       # what "hidden" libraries, object files and flags are used when
11426       # linking a shared library.
11427       #
11428       # There doesn't appear to be a way to prevent this compiler from
11429       # explicitly linking system object files so we need to strip them
11430       # from the output so that they don't get included in the library
11431       # dependencies.
11432       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'
11433       ;;
11434     *)
11435       if test "$GXX" = yes; then
11436         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'
11437       else
11438         # FIXME: insert proper C++ library support
11439         ld_shlibs_CXX=no
11440       fi
11441       ;;
11442     esac
11443     ;;
11444   hpux10*|hpux11*)
11445     if test $with_gnu_ld = no; then
11446       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11447       hardcode_libdir_separator_CXX=:
11448
11449       case $host_cpu in
11450       hppa*64*|ia64*) ;;
11451       *)
11452         export_dynamic_flag_spec_CXX='${wl}-E'
11453         ;;
11454       esac
11455     fi
11456     case $host_cpu in
11457     hppa*64*|ia64*)
11458       hardcode_direct_CXX=no
11459       hardcode_shlibpath_var_CXX=no
11460       ;;
11461     *)
11462       hardcode_direct_CXX=yes
11463       hardcode_minus_L_CXX=yes # Not in the search PATH,
11464                                               # but as the default
11465                                               # location of the library.
11466       ;;
11467     esac
11468
11469     case $cc_basename in
11470       CC*)
11471         # FIXME: insert proper C++ library support
11472         ld_shlibs_CXX=no
11473         ;;
11474       aCC*)
11475         case $host_cpu in
11476         hppa*64*)
11477           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11478           ;;
11479         ia64*)
11480           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11481           ;;
11482         *)
11483           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11484           ;;
11485         esac
11486         # Commands to make compiler produce verbose output that lists
11487         # what "hidden" libraries, object files and flags are used when
11488         # linking a shared library.
11489         #
11490         # There doesn't appear to be a way to prevent this compiler from
11491         # explicitly linking system object files so we need to strip them
11492         # from the output so that they don't get included in the library
11493         # dependencies.
11494         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'
11495         ;;
11496       *)
11497         if test "$GXX" = yes; then
11498           if test $with_gnu_ld = no; then
11499             case $host_cpu in
11500             hppa*64*)
11501               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11502               ;;
11503             ia64*)
11504               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11505               ;;
11506             *)
11507               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'
11508               ;;
11509             esac
11510           fi
11511         else
11512           # FIXME: insert proper C++ library support
11513           ld_shlibs_CXX=no
11514         fi
11515         ;;
11516     esac
11517     ;;
11518   interix[3-9]*)
11519     hardcode_direct_CXX=no
11520     hardcode_shlibpath_var_CXX=no
11521     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11522     export_dynamic_flag_spec_CXX='${wl}-E'
11523     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11524     # Instead, shared libraries are loaded at an image base (0x10000000 by
11525     # default) and relocated if they conflict, which is a slow very memory
11526     # consuming and fragmenting process.  To avoid this, we pick a random,
11527     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11528     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11529     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'
11530     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'
11531     ;;
11532   irix5* | irix6*)
11533     case $cc_basename in
11534       CC*)
11535         # SGI C++
11536         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'
11537
11538         # Archives containing C++ object files must be created using
11539         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11540         # necessary to make sure instantiated templates are included
11541         # in the archive.
11542         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11543         ;;
11544       *)
11545         if test "$GXX" = yes; then
11546           if test "$with_gnu_ld" = no; then
11547             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'
11548           else
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` -o $lib'
11550           fi
11551         fi
11552         link_all_deplibs_CXX=yes
11553         ;;
11554     esac
11555     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556     hardcode_libdir_separator_CXX=:
11557     ;;
11558   linux* | k*bsd*-gnu)
11559     case $cc_basename in
11560       KCC*)
11561         # Kuck and Associates, Inc. (KAI) C++ Compiler
11562
11563         # KCC will only create a shared library if the output file
11564         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11565         # to its proper name (with version) after linking.
11566         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'
11567         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'
11568         # Commands to make compiler produce verbose output that lists
11569         # what "hidden" libraries, object files and flags are used when
11570         # linking a shared library.
11571         #
11572         # There doesn't appear to be a way to prevent this compiler from
11573         # explicitly linking system object files so we need to strip them
11574         # from the output so that they don't get included in the library
11575         # dependencies.
11576         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'
11577
11578         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11579         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11580
11581         # Archives containing C++ object files must be created using
11582         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11583         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11584         ;;
11585       icpc*)
11586         # Intel C++
11587         with_gnu_ld=yes
11588         # version 8.0 and above of icpc choke on multiply defined symbols
11589         # if we add $predep_objects and $postdep_objects, however 7.1 and
11590         # earlier do not add the objects themselves.
11591         case `$CC -V 2>&1` in
11592         *"Version 7."*)
11593           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11594           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'
11595           ;;
11596         *)  # Version 8.0 or newer
11597           tmp_idyn=
11598           case $host_cpu in
11599             ia64*) tmp_idyn=' -i_dynamic';;
11600           esac
11601           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11602           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'
11603           ;;
11604         esac
11605         archive_cmds_need_lc_CXX=no
11606         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11607         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11608         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11609         ;;
11610       pgCC* | pgcpp*)
11611         # Portland Group C++ compiler
11612         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11613         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'
11614
11615         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11616         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11617         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'
11618         ;;
11619       cxx*)
11620         # Compaq C++
11621         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622         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'
11623
11624         runpath_var=LD_RUN_PATH
11625         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11626         hardcode_libdir_separator_CXX=:
11627
11628         # Commands to make compiler produce verbose output that lists
11629         # what "hidden" libraries, object files and flags are used when
11630         # linking a shared library.
11631         #
11632         # There doesn't appear to be a way to prevent this compiler from
11633         # explicitly linking system object files so we need to strip them
11634         # from the output so that they don't get included in the library
11635         # dependencies.
11636         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'
11637         ;;
11638       *)
11639         case `$CC -V 2>&1 | sed 5q` in
11640         *Sun\ C*)
11641           # Sun C++ 5.9
11642           no_undefined_flag_CXX=' -zdefs'
11643           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11644           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'
11645           hardcode_libdir_flag_spec_CXX='-R$libdir'
11646           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'
11647
11648           # Not sure whether something based on
11649           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11650           # would be better.
11651           output_verbose_link_cmd='echo'
11652
11653           # Archives containing C++ object files must be created using
11654           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11655           # necessary to make sure instantiated templates are included
11656           # in the archive.
11657           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11658           ;;
11659         esac
11660         ;;
11661     esac
11662     ;;
11663   lynxos*)
11664     # FIXME: insert proper C++ library support
11665     ld_shlibs_CXX=no
11666     ;;
11667   m88k*)
11668     # FIXME: insert proper C++ library support
11669     ld_shlibs_CXX=no
11670     ;;
11671   mvs*)
11672     case $cc_basename in
11673       cxx*)
11674         # FIXME: insert proper C++ library support
11675         ld_shlibs_CXX=no
11676         ;;
11677       *)
11678         # FIXME: insert proper C++ library support
11679         ld_shlibs_CXX=no
11680         ;;
11681     esac
11682     ;;
11683   netbsd* | netbsdelf*-gnu)
11684     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11685       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11686       wlarc=
11687       hardcode_libdir_flag_spec_CXX='-R$libdir'
11688       hardcode_direct_CXX=yes
11689       hardcode_shlibpath_var_CXX=no
11690     fi
11691     # Workaround some broken pre-1.5 toolchains
11692     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11693     ;;
11694   openbsd2*)
11695     # C++ shared libraries are fairly broken
11696     ld_shlibs_CXX=no
11697     ;;
11698   openbsd*)
11699     if test -f /usr/libexec/ld.so; then
11700       hardcode_direct_CXX=yes
11701       hardcode_shlibpath_var_CXX=no
11702       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11703       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11705         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11706         export_dynamic_flag_spec_CXX='${wl}-E'
11707         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11708       fi
11709       output_verbose_link_cmd='echo'
11710     else
11711       ld_shlibs_CXX=no
11712     fi
11713     ;;
11714   osf3*)
11715     case $cc_basename in
11716       KCC*)
11717         # Kuck and Associates, Inc. (KAI) C++ Compiler
11718
11719         # KCC will only create a shared library if the output file
11720         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11721         # to its proper name (with version) after linking.
11722         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'
11723
11724         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11725         hardcode_libdir_separator_CXX=:
11726
11727         # Archives containing C++ object files must be created using
11728         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11729         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11730
11731         ;;
11732       RCC*)
11733         # Rational C++ 2.4.1
11734         # FIXME: insert proper C++ library support
11735         ld_shlibs_CXX=no
11736         ;;
11737       cxx*)
11738         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11739         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'
11740
11741         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742         hardcode_libdir_separator_CXX=:
11743
11744         # Commands to make compiler produce verbose output that lists
11745         # what "hidden" libraries, object files and flags are used when
11746         # linking a shared library.
11747         #
11748         # There doesn't appear to be a way to prevent this compiler from
11749         # explicitly linking system object files so we need to strip them
11750         # from the output so that they don't get included in the library
11751         # dependencies.
11752         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'
11753         ;;
11754       *)
11755         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11756           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11757           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'
11758
11759           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11760           hardcode_libdir_separator_CXX=:
11761
11762           # Commands to make compiler produce verbose output that lists
11763           # what "hidden" libraries, object files and flags are used when
11764           # linking a shared library.
11765           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11766
11767         else
11768           # FIXME: insert proper C++ library support
11769           ld_shlibs_CXX=no
11770         fi
11771         ;;
11772     esac
11773     ;;
11774   osf4* | osf5*)
11775     case $cc_basename in
11776       KCC*)
11777         # Kuck and Associates, Inc. (KAI) C++ Compiler
11778
11779         # KCC will only create a shared library if the output file
11780         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11781         # to its proper name (with version) after linking.
11782         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'
11783
11784         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11785         hardcode_libdir_separator_CXX=:
11786
11787         # Archives containing C++ object files must be created using
11788         # the KAI C++ compiler.
11789         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11790         ;;
11791       RCC*)
11792         # Rational C++ 2.4.1
11793         # FIXME: insert proper C++ library support
11794         ld_shlibs_CXX=no
11795         ;;
11796       cxx*)
11797         allow_undefined_flag_CXX=' -expect_unresolved \*'
11798         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'
11799         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11800           echo "-hidden">> $lib.exp~
11801           $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~
11802           $rm $lib.exp'
11803
11804         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11805         hardcode_libdir_separator_CXX=:
11806
11807         # Commands to make compiler produce verbose output that lists
11808         # what "hidden" libraries, object files and flags are used when
11809         # linking a shared library.
11810         #
11811         # There doesn't appear to be a way to prevent this compiler from
11812         # explicitly linking system object files so we need to strip them
11813         # from the output so that they don't get included in the library
11814         # dependencies.
11815         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'
11816         ;;
11817       *)
11818         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11819           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11820          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'
11821
11822           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823           hardcode_libdir_separator_CXX=:
11824
11825           # Commands to make compiler produce verbose output that lists
11826           # what "hidden" libraries, object files and flags are used when
11827           # linking a shared library.
11828           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11829
11830         else
11831           # FIXME: insert proper C++ library support
11832           ld_shlibs_CXX=no
11833         fi
11834         ;;
11835     esac
11836     ;;
11837   psos*)
11838     # FIXME: insert proper C++ library support
11839     ld_shlibs_CXX=no
11840     ;;
11841   sunos4*)
11842     case $cc_basename in
11843       CC*)
11844         # Sun C++ 4.x
11845         # FIXME: insert proper C++ library support
11846         ld_shlibs_CXX=no
11847         ;;
11848       lcc*)
11849         # Lucid
11850         # FIXME: insert proper C++ library support
11851         ld_shlibs_CXX=no
11852         ;;
11853       *)
11854         # FIXME: insert proper C++ library support
11855         ld_shlibs_CXX=no
11856         ;;
11857     esac
11858     ;;
11859   solaris*)
11860     case $cc_basename in
11861       CC*)
11862         # Sun C++ 4.2, 5.x and Centerline C++
11863         archive_cmds_need_lc_CXX=yes
11864         no_undefined_flag_CXX=' -zdefs'
11865         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11866         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867         $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'
11868
11869         hardcode_libdir_flag_spec_CXX='-R$libdir'
11870         hardcode_shlibpath_var_CXX=no
11871         case $host_os in
11872           solaris2.[0-5] | solaris2.[0-5].*) ;;
11873           *)
11874             # The compiler driver will combine and reorder linker options,
11875             # but understands `-z linker_flag'.
11876             # Supported since Solaris 2.6 (maybe 2.5.1?)
11877             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11878             ;;
11879         esac
11880         link_all_deplibs_CXX=yes
11881
11882         output_verbose_link_cmd='echo'
11883
11884         # Archives containing C++ object files must be created using
11885         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11886         # necessary to make sure instantiated templates are included
11887         # in the archive.
11888         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11889         ;;
11890       gcx*)
11891         # Green Hills C++ Compiler
11892         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11893
11894         # The C++ compiler must be used to create the archive.
11895         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11896         ;;
11897       *)
11898         # GNU C++ compiler with Solaris linker
11899         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901           if $CC --version | grep -v '^2\.7' > /dev/null; then
11902             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11905
11906             # Commands to make compiler produce verbose output that lists
11907             # what "hidden" libraries, object files and flags are used when
11908             # linking a shared library.
11909             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11910           else
11911             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11912             # platform.
11913             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11916
11917             # Commands to make compiler produce verbose output that lists
11918             # what "hidden" libraries, object files and flags are used when
11919             # linking a shared library.
11920             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11921           fi
11922
11923           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11924           case $host_os in
11925           solaris2.[0-5] | solaris2.[0-5].*) ;;
11926           *)
11927             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11928             ;;
11929           esac
11930         fi
11931         ;;
11932     esac
11933     ;;
11934   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11935     no_undefined_flag_CXX='${wl}-z,text'
11936     archive_cmds_need_lc_CXX=no
11937     hardcode_shlibpath_var_CXX=no
11938     runpath_var='LD_RUN_PATH'
11939
11940     case $cc_basename in
11941       CC*)
11942         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944         ;;
11945       *)
11946         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948         ;;
11949     esac
11950     ;;
11951   sysv5* | sco3.2v5* | sco5v6*)
11952     # Note: We can NOT use -z defs as we might desire, because we do not
11953     # link with -lc, and that would cause any symbols used from libc to
11954     # always be unresolved, which means just about no library would
11955     # ever link correctly.  If we're not using GNU ld we use -z text
11956     # though, which does catch some bad symbols but isn't as heavy-handed
11957     # as -z defs.
11958     # For security reasons, it is highly recommended that you always
11959     # use absolute paths for naming shared libraries, and exclude the
11960     # DT_RUNPATH tag from executables and libraries.  But doing so
11961     # requires that you compile everything twice, which is a pain.
11962     # So that behaviour is only enabled if SCOABSPATH is set to a
11963     # non-empty value in the environment.  Most likely only useful for
11964     # creating official distributions of packages.
11965     # This is a hack until libtool officially supports absolute path
11966     # names for shared libraries.
11967     no_undefined_flag_CXX='${wl}-z,text'
11968     allow_undefined_flag_CXX='${wl}-z,nodefs'
11969     archive_cmds_need_lc_CXX=no
11970     hardcode_shlibpath_var_CXX=no
11971     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11972     hardcode_libdir_separator_CXX=':'
11973     link_all_deplibs_CXX=yes
11974     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11975     runpath_var='LD_RUN_PATH'
11976
11977     case $cc_basename in
11978       CC*)
11979         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11980         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11981         ;;
11982       *)
11983         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11984         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11985         ;;
11986     esac
11987     ;;
11988   tandem*)
11989     case $cc_basename in
11990       NCC*)
11991         # NonStop-UX NCC 3.20
11992         # FIXME: insert proper C++ library support
11993         ld_shlibs_CXX=no
11994         ;;
11995       *)
11996         # FIXME: insert proper C++ library support
11997         ld_shlibs_CXX=no
11998         ;;
11999     esac
12000     ;;
12001   vxworks*)
12002     # FIXME: insert proper C++ library support
12003     ld_shlibs_CXX=no
12004     ;;
12005   *)
12006     # FIXME: insert proper C++ library support
12007     ld_shlibs_CXX=no
12008     ;;
12009 esac
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12011 $as_echo "$ld_shlibs_CXX" >&6; }
12012 test "$ld_shlibs_CXX" = no && can_build_shared=no
12013
12014 GCC_CXX="$GXX"
12015 LD_CXX="$LD"
12016
12017 cat > conftest.$ac_ext <<EOF
12018 class Foo
12019 {
12020 public:
12021   Foo (void) { a = 0; }
12022 private:
12023   int a;
12024 };
12025 EOF
12026
12027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12028   (eval $ac_compile) 2>&5
12029   ac_status=$?
12030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12031   test $ac_status = 0; }; then
12032   # Parse the compiler output and extract the necessary
12033   # objects, libraries and library flags.
12034
12035   # Sentinel used to keep track of whether or not we are before
12036   # the conftest object file.
12037   pre_test_object_deps_done=no
12038
12039   # The `*' in the case matches for architectures that use `case' in
12040   # $output_verbose_cmd can trigger glob expansion during the loop
12041   # eval without this substitution.
12042   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12043
12044   for p in `eval $output_verbose_link_cmd`; do
12045     case $p in
12046
12047     -L* | -R* | -l*)
12048        # Some compilers place space between "-{L,R}" and the path.
12049        # Remove the space.
12050        if test $p = "-L" \
12051           || test $p = "-R"; then
12052          prev=$p
12053          continue
12054        else
12055          prev=
12056        fi
12057
12058        if test "$pre_test_object_deps_done" = no; then
12059          case $p in
12060          -L* | -R*)
12061            # Internal compiler library paths should come after those
12062            # provided the user.  The postdeps already come after the
12063            # user supplied libs so there is no need to process them.
12064            if test -z "$compiler_lib_search_path_CXX"; then
12065              compiler_lib_search_path_CXX="${prev}${p}"
12066            else
12067              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12068            fi
12069            ;;
12070          # The "-l" case would never come before the object being
12071          # linked, so don't bother handling this case.
12072          esac
12073        else
12074          if test -z "$postdeps_CXX"; then
12075            postdeps_CXX="${prev}${p}"
12076          else
12077            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12078          fi
12079        fi
12080        ;;
12081
12082     *.$objext)
12083        # This assumes that the test object file only shows up
12084        # once in the compiler output.
12085        if test "$p" = "conftest.$objext"; then
12086          pre_test_object_deps_done=yes
12087          continue
12088        fi
12089
12090        if test "$pre_test_object_deps_done" = no; then
12091          if test -z "$predep_objects_CXX"; then
12092            predep_objects_CXX="$p"
12093          else
12094            predep_objects_CXX="$predep_objects_CXX $p"
12095          fi
12096        else
12097          if test -z "$postdep_objects_CXX"; then
12098            postdep_objects_CXX="$p"
12099          else
12100            postdep_objects_CXX="$postdep_objects_CXX $p"
12101          fi
12102        fi
12103        ;;
12104
12105     *) ;; # Ignore the rest.
12106
12107     esac
12108   done
12109
12110   # Clean up.
12111   rm -f a.out a.exe
12112 else
12113   echo "libtool.m4: error: problem compiling CXX test program"
12114 fi
12115
12116 $rm -f confest.$objext
12117
12118 compiler_lib_search_dirs_CXX=
12119 if test -n "$compiler_lib_search_path_CXX"; then
12120   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12121 fi
12122
12123 # PORTME: override above test on systems where it is broken
12124 case $host_os in
12125 interix[3-9]*)
12126   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12127   # hack all around it, let's just trust "g++" to DTRT.
12128   predep_objects_CXX=
12129   postdep_objects_CXX=
12130   postdeps_CXX=
12131   ;;
12132
12133 linux*)
12134   case `$CC -V 2>&1 | sed 5q` in
12135   *Sun\ C*)
12136     # Sun C++ 5.9
12137     #
12138     # The more standards-conforming stlport4 library is
12139     # incompatible with the Cstd library. Avoid specifying
12140     # it if it's in CXXFLAGS. Ignore libCrun as
12141     # -library=stlport4 depends on it.
12142     case " $CXX $CXXFLAGS " in
12143     *" -library=stlport4 "*)
12144       solaris_use_stlport4=yes
12145       ;;
12146     esac
12147     if test "$solaris_use_stlport4" != yes; then
12148       postdeps_CXX='-library=Cstd -library=Crun'
12149     fi
12150     ;;
12151   esac
12152   ;;
12153
12154 solaris*)
12155   case $cc_basename in
12156   CC*)
12157     # The more standards-conforming stlport4 library is
12158     # incompatible with the Cstd library. Avoid specifying
12159     # it if it's in CXXFLAGS. Ignore libCrun as
12160     # -library=stlport4 depends on it.
12161     case " $CXX $CXXFLAGS " in
12162     *" -library=stlport4 "*)
12163       solaris_use_stlport4=yes
12164       ;;
12165     esac
12166
12167     # Adding this requires a known-good setup of shared libraries for
12168     # Sun compiler versions before 5.6, else PIC objects from an old
12169     # archive will be linked into the output, leading to subtle bugs.
12170     if test "$solaris_use_stlport4" != yes; then
12171       postdeps_CXX='-library=Cstd -library=Crun'
12172     fi
12173     ;;
12174   esac
12175   ;;
12176 esac
12177
12178 case " $postdeps_CXX " in
12179 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12180 esac
12181
12182 lt_prog_compiler_wl_CXX=
12183 lt_prog_compiler_pic_CXX=
12184 lt_prog_compiler_static_CXX=
12185
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12187 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12188
12189   # C++ specific cases for pic, static, wl, etc.
12190   if test "$GXX" = yes; then
12191     lt_prog_compiler_wl_CXX='-Wl,'
12192     lt_prog_compiler_static_CXX='-static'
12193
12194     case $host_os in
12195     aix*)
12196       # All AIX code is PIC.
12197       if test "$host_cpu" = ia64; then
12198         # AIX 5 now supports IA64 processor
12199         lt_prog_compiler_static_CXX='-Bstatic'
12200       fi
12201       ;;
12202     amigaos*)
12203       # FIXME: we need at least 68020 code to build shared libraries, but
12204       # adding the `-m68020' flag to GCC prevents building anything better,
12205       # like `-m68040'.
12206       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12207       ;;
12208     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12209       # PIC is the default for these OSes.
12210       ;;
12211     mingw* | cygwin* | os2* | pw32*)
12212       # This hack is so that the source file can tell whether it is being
12213       # built for inclusion in a dll (and should export symbols for example).
12214       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12215       # (--disable-auto-import) libraries
12216       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12217       ;;
12218     darwin* | rhapsody*)
12219       # PIC is the default on this platform
12220       # Common symbols not allowed in MH_DYLIB files
12221       lt_prog_compiler_pic_CXX='-fno-common'
12222       ;;
12223     *djgpp*)
12224       # DJGPP does not support shared libraries at all
12225       lt_prog_compiler_pic_CXX=
12226       ;;
12227     interix[3-9]*)
12228       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12229       # Instead, we relocate shared libraries at runtime.
12230       ;;
12231     sysv4*MP*)
12232       if test -d /usr/nec; then
12233         lt_prog_compiler_pic_CXX=-Kconform_pic
12234       fi
12235       ;;
12236     hpux*)
12237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12238       # not for PA HP-UX.
12239       case $host_cpu in
12240       hppa*64*|ia64*)
12241         ;;
12242       *)
12243         lt_prog_compiler_pic_CXX='-fPIC'
12244         ;;
12245       esac
12246       ;;
12247     *)
12248       lt_prog_compiler_pic_CXX='-fPIC'
12249       ;;
12250     esac
12251   else
12252     case $host_os in
12253       aix[4-9]*)
12254         # All AIX code is PIC.
12255         if test "$host_cpu" = ia64; then
12256           # AIX 5 now supports IA64 processor
12257           lt_prog_compiler_static_CXX='-Bstatic'
12258         else
12259           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12260         fi
12261         ;;
12262       chorus*)
12263         case $cc_basename in
12264         cxch68*)
12265           # Green Hills C++ Compiler
12266           # _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"
12267           ;;
12268         esac
12269         ;;
12270        darwin*)
12271          # PIC is the default on this platform
12272          # Common symbols not allowed in MH_DYLIB files
12273          case $cc_basename in
12274            xlc*)
12275            lt_prog_compiler_pic_CXX='-qnocommon'
12276            lt_prog_compiler_wl_CXX='-Wl,'
12277            ;;
12278          esac
12279        ;;
12280       dgux*)
12281         case $cc_basename in
12282           ec++*)
12283             lt_prog_compiler_pic_CXX='-KPIC'
12284             ;;
12285           ghcx*)
12286             # Green Hills C++ Compiler
12287             lt_prog_compiler_pic_CXX='-pic'
12288             ;;
12289           *)
12290             ;;
12291         esac
12292         ;;
12293       freebsd* | dragonfly*)
12294         # FreeBSD uses GNU C++
12295         ;;
12296       hpux9* | hpux10* | hpux11*)
12297         case $cc_basename in
12298           CC*)
12299             lt_prog_compiler_wl_CXX='-Wl,'
12300             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12301             if test "$host_cpu" != ia64; then
12302               lt_prog_compiler_pic_CXX='+Z'
12303             fi
12304             ;;
12305           aCC*)
12306             lt_prog_compiler_wl_CXX='-Wl,'
12307             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12308             case $host_cpu in
12309             hppa*64*|ia64*)
12310               # +Z the default
12311               ;;
12312             *)
12313               lt_prog_compiler_pic_CXX='+Z'
12314               ;;
12315             esac
12316             ;;
12317           *)
12318             ;;
12319         esac
12320         ;;
12321       interix*)
12322         # This is c89, which is MS Visual C++ (no shared libs)
12323         # Anyone wants to do a port?
12324         ;;
12325       irix5* | irix6* | nonstopux*)
12326         case $cc_basename in
12327           CC*)
12328             lt_prog_compiler_wl_CXX='-Wl,'
12329             lt_prog_compiler_static_CXX='-non_shared'
12330             # CC pic flag -KPIC is the default.
12331             ;;
12332           *)
12333             ;;
12334         esac
12335         ;;
12336       linux* | k*bsd*-gnu)
12337         case $cc_basename in
12338           KCC*)
12339             # KAI C++ Compiler
12340             lt_prog_compiler_wl_CXX='--backend -Wl,'
12341             lt_prog_compiler_pic_CXX='-fPIC'
12342             ;;
12343           icpc* | ecpc*)
12344             # Intel C++
12345             lt_prog_compiler_wl_CXX='-Wl,'
12346             lt_prog_compiler_pic_CXX='-KPIC'
12347             lt_prog_compiler_static_CXX='-static'
12348             ;;
12349           pgCC* | pgcpp*)
12350             # Portland Group C++ compiler.
12351             lt_prog_compiler_wl_CXX='-Wl,'
12352             lt_prog_compiler_pic_CXX='-fpic'
12353             lt_prog_compiler_static_CXX='-Bstatic'
12354             ;;
12355           cxx*)
12356             # Compaq C++
12357             # Make sure the PIC flag is empty.  It appears that all Alpha
12358             # Linux and Compaq Tru64 Unix objects are PIC.
12359             lt_prog_compiler_pic_CXX=
12360             lt_prog_compiler_static_CXX='-non_shared'
12361             ;;
12362           *)
12363             case `$CC -V 2>&1 | sed 5q` in
12364             *Sun\ C*)
12365               # Sun C++ 5.9
12366               lt_prog_compiler_pic_CXX='-KPIC'
12367               lt_prog_compiler_static_CXX='-Bstatic'
12368               lt_prog_compiler_wl_CXX='-Qoption ld '
12369               ;;
12370             esac
12371             ;;
12372         esac
12373         ;;
12374       lynxos*)
12375         ;;
12376       m88k*)
12377         ;;
12378       mvs*)
12379         case $cc_basename in
12380           cxx*)
12381             lt_prog_compiler_pic_CXX='-W c,exportall'
12382             ;;
12383           *)
12384             ;;
12385         esac
12386         ;;
12387       netbsd* | netbsdelf*-gnu)
12388         ;;
12389       osf3* | osf4* | osf5*)
12390         case $cc_basename in
12391           KCC*)
12392             lt_prog_compiler_wl_CXX='--backend -Wl,'
12393             ;;
12394           RCC*)
12395             # Rational C++ 2.4.1
12396             lt_prog_compiler_pic_CXX='-pic'
12397             ;;
12398           cxx*)
12399             # Digital/Compaq C++
12400             lt_prog_compiler_wl_CXX='-Wl,'
12401             # Make sure the PIC flag is empty.  It appears that all Alpha
12402             # Linux and Compaq Tru64 Unix objects are PIC.
12403             lt_prog_compiler_pic_CXX=
12404             lt_prog_compiler_static_CXX='-non_shared'
12405             ;;
12406           *)
12407             ;;
12408         esac
12409         ;;
12410       psos*)
12411         ;;
12412       solaris*)
12413         case $cc_basename in
12414           CC*)
12415             # Sun C++ 4.2, 5.x and Centerline C++
12416             lt_prog_compiler_pic_CXX='-KPIC'
12417             lt_prog_compiler_static_CXX='-Bstatic'
12418             lt_prog_compiler_wl_CXX='-Qoption ld '
12419             ;;
12420           gcx*)
12421             # Green Hills C++ Compiler
12422             lt_prog_compiler_pic_CXX='-PIC'
12423             ;;
12424           *)
12425             ;;
12426         esac
12427         ;;
12428       sunos4*)
12429         case $cc_basename in
12430           CC*)
12431             # Sun C++ 4.x
12432             lt_prog_compiler_pic_CXX='-pic'
12433             lt_prog_compiler_static_CXX='-Bstatic'
12434             ;;
12435           lcc*)
12436             # Lucid
12437             lt_prog_compiler_pic_CXX='-pic'
12438             ;;
12439           *)
12440             ;;
12441         esac
12442         ;;
12443       tandem*)
12444         case $cc_basename in
12445           NCC*)
12446             # NonStop-UX NCC 3.20
12447             lt_prog_compiler_pic_CXX='-KPIC'
12448             ;;
12449           *)
12450             ;;
12451         esac
12452         ;;
12453       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12454         case $cc_basename in
12455           CC*)
12456             lt_prog_compiler_wl_CXX='-Wl,'
12457             lt_prog_compiler_pic_CXX='-KPIC'
12458             lt_prog_compiler_static_CXX='-Bstatic'
12459             ;;
12460         esac
12461         ;;
12462       vxworks*)
12463         ;;
12464       *)
12465         lt_prog_compiler_can_build_shared_CXX=no
12466         ;;
12467     esac
12468   fi
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12471 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12472
12473 #
12474 # Check to make sure the PIC flag actually works.
12475 #
12476 if test -n "$lt_prog_compiler_pic_CXX"; then
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12479 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12480 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483   lt_cv_prog_compiler_pic_works_CXX=no
12484   ac_outfile=conftest.$ac_objext
12485    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12486    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12487    # Insert the option either (1) after the last *FLAGS variable, or
12488    # (2) before a word containing "conftest.", or (3) at the end.
12489    # Note that $ac_compile itself does not contain backslashes and begins
12490    # with a dollar sign (not a hyphen), so the echo should work correctly.
12491    # The option is referenced via a variable to avoid confusing sed.
12492    lt_compile=`echo "$ac_compile" | $SED \
12493    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12495    -e 's:$: $lt_compiler_flag:'`
12496    (eval echo "\"\$as_me:12496: $lt_compile\"" >&5)
12497    (eval "$lt_compile" 2>conftest.err)
12498    ac_status=$?
12499    cat conftest.err >&5
12500    echo "$as_me:12500: \$? = $ac_status" >&5
12501    if (exit $ac_status) && test -s "$ac_outfile"; then
12502      # The compiler can only warn and ignore the option if not recognized
12503      # So say no if there are warnings other than the usual output.
12504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12505      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12506      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12507        lt_cv_prog_compiler_pic_works_CXX=yes
12508      fi
12509    fi
12510    $rm conftest*
12511
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12514 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12515
12516 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12517     case $lt_prog_compiler_pic_CXX in
12518      "" | " "*) ;;
12519      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12520      esac
12521 else
12522     lt_prog_compiler_pic_CXX=
12523      lt_prog_compiler_can_build_shared_CXX=no
12524 fi
12525
12526 fi
12527 case $host_os in
12528   # For platforms which do not support PIC, -DPIC is meaningless:
12529   *djgpp*)
12530     lt_prog_compiler_pic_CXX=
12531     ;;
12532   *)
12533     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12534     ;;
12535 esac
12536
12537 #
12538 # Check to make sure the static flag actually works.
12539 #
12540 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12542 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12543 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   lt_cv_prog_compiler_static_works_CXX=no
12547    save_LDFLAGS="$LDFLAGS"
12548    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12549    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12550    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12551      # The linker can only warn and ignore the option if not recognized
12552      # So say no if there are warnings
12553      if test -s conftest.err; then
12554        # Append any errors to the config.log.
12555        cat conftest.err 1>&5
12556        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12557        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12558        if diff conftest.exp conftest.er2 >/dev/null; then
12559          lt_cv_prog_compiler_static_works_CXX=yes
12560        fi
12561      else
12562        lt_cv_prog_compiler_static_works_CXX=yes
12563      fi
12564    fi
12565    $rm -r conftest*
12566    LDFLAGS="$save_LDFLAGS"
12567
12568 fi
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12570 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12571
12572 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12573     :
12574 else
12575     lt_prog_compiler_static_CXX=
12576 fi
12577
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12581 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   lt_cv_prog_compiler_c_o_CXX=no
12585    $rm -r conftest 2>/dev/null
12586    mkdir conftest
12587    cd conftest
12588    mkdir out
12589    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12590
12591    lt_compiler_flag="-o out/conftest2.$ac_objext"
12592    # Insert the option either (1) after the last *FLAGS variable, or
12593    # (2) before a word containing "conftest.", or (3) at the end.
12594    # Note that $ac_compile itself does not contain backslashes and begins
12595    # with a dollar sign (not a hyphen), so the echo should work correctly.
12596    lt_compile=`echo "$ac_compile" | $SED \
12597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599    -e 's:$: $lt_compiler_flag:'`
12600    (eval echo "\"\$as_me:12600: $lt_compile\"" >&5)
12601    (eval "$lt_compile" 2>out/conftest.err)
12602    ac_status=$?
12603    cat out/conftest.err >&5
12604    echo "$as_me:12604: \$? = $ac_status" >&5
12605    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12606    then
12607      # The compiler can only warn and ignore the option if not recognized
12608      # So say no if there are warnings
12609      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12610      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12611      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12612        lt_cv_prog_compiler_c_o_CXX=yes
12613      fi
12614    fi
12615    chmod u+w . 2>&5
12616    $rm conftest*
12617    # SGI C++ compiler will create directory out/ii_files/ for
12618    # template instantiation
12619    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12620    $rm out/* && rmdir out
12621    cd ..
12622    rmdir conftest
12623    $rm conftest*
12624
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12627 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12628
12629
12630 hard_links="nottested"
12631 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12632   # do not overwrite the value of need_locks provided by the user
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12634 $as_echo_n "checking if we can lock with hard links... " >&6; }
12635   hard_links=yes
12636   $rm conftest*
12637   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12638   touch conftest.a
12639   ln conftest.a conftest.b 2>&5 || hard_links=no
12640   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12642 $as_echo "$hard_links" >&6; }
12643   if test "$hard_links" = no; then
12644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12645 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12646     need_locks=warn
12647   fi
12648 else
12649   need_locks=no
12650 fi
12651
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12653 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12654
12655   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12656   case $host_os in
12657   aix[4-9]*)
12658     # If we're using GNU nm, then we don't want the "-C" option.
12659     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12660     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12661       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'
12662     else
12663       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'
12664     fi
12665     ;;
12666   pw32*)
12667     export_symbols_cmds_CXX="$ltdll_cmds"
12668   ;;
12669   cygwin* | mingw*)
12670     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'
12671   ;;
12672   linux* | k*bsd*-gnu)
12673     link_all_deplibs_CXX=no
12674   ;;
12675   *)
12676     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12677   ;;
12678   esac
12679   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12680
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12682 $as_echo "$ld_shlibs_CXX" >&6; }
12683 test "$ld_shlibs_CXX" = no && can_build_shared=no
12684
12685 #
12686 # Do we need to explicitly link libc?
12687 #
12688 case "x$archive_cmds_need_lc_CXX" in
12689 x|xyes)
12690   # Assume -lc should be added
12691   archive_cmds_need_lc_CXX=yes
12692
12693   if test "$enable_shared" = yes && test "$GCC" = yes; then
12694     case $archive_cmds_CXX in
12695     *'~'*)
12696       # FIXME: we may have to deal with multi-command sequences.
12697       ;;
12698     '$CC '*)
12699       # Test whether the compiler implicitly links with -lc since on some
12700       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12701       # to ld, don't add -lc before -lgcc.
12702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12703 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12704       $rm conftest*
12705       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12706
12707       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12708   (eval $ac_compile) 2>&5
12709   ac_status=$?
12710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711   test $ac_status = 0; } 2>conftest.err; then
12712         soname=conftest
12713         lib=conftest
12714         libobjs=conftest.$ac_objext
12715         deplibs=
12716         wl=$lt_prog_compiler_wl_CXX
12717         pic_flag=$lt_prog_compiler_pic_CXX
12718         compiler_flags=-v
12719         linker_flags=-v
12720         verstring=
12721         output_objdir=.
12722         libname=conftest
12723         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12724         allow_undefined_flag_CXX=
12725         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12726   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12727   ac_status=$?
12728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12729   test $ac_status = 0; }
12730         then
12731           archive_cmds_need_lc_CXX=no
12732         else
12733           archive_cmds_need_lc_CXX=yes
12734         fi
12735         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12736       else
12737         cat conftest.err 1>&5
12738       fi
12739       $rm conftest*
12740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12741 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12742       ;;
12743     esac
12744   fi
12745   ;;
12746 esac
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12750 library_names_spec=
12751 libname_spec='lib$name'
12752 soname_spec=
12753 shrext_cmds=".so"
12754 postinstall_cmds=
12755 postuninstall_cmds=
12756 finish_cmds=
12757 finish_eval=
12758 shlibpath_var=
12759 shlibpath_overrides_runpath=unknown
12760 version_type=none
12761 dynamic_linker="$host_os ld.so"
12762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12763
12764 need_lib_prefix=unknown
12765 hardcode_into_libs=no
12766
12767 # when you set need_version to no, make sure it does not cause -set_version
12768 # flags to be left without arguments
12769 need_version=unknown
12770
12771 case $host_os in
12772 aix3*)
12773   version_type=linux
12774   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12775   shlibpath_var=LIBPATH
12776
12777   # AIX 3 has no versioning support, so we append a major version to the name.
12778   soname_spec='${libname}${release}${shared_ext}$major'
12779   ;;
12780
12781 aix[4-9]*)
12782   version_type=linux
12783   need_lib_prefix=no
12784   need_version=no
12785   hardcode_into_libs=yes
12786   if test "$host_cpu" = ia64; then
12787     # AIX 5 supports IA64
12788     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12789     shlibpath_var=LD_LIBRARY_PATH
12790   else
12791     # With GCC up to 2.95.x, collect2 would create an import file
12792     # for dependence libraries.  The import file would start with
12793     # the line `#! .'.  This would cause the generated library to
12794     # depend on `.', always an invalid library.  This was fixed in
12795     # development snapshots of GCC prior to 3.0.
12796     case $host_os in
12797       aix4 | aix4.[01] | aix4.[01].*)
12798       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12799            echo ' yes '
12800            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12801         :
12802       else
12803         can_build_shared=no
12804       fi
12805       ;;
12806     esac
12807     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12808     # soname into executable. Probably we can add versioning support to
12809     # collect2, so additional links can be useful in future.
12810     if test "$aix_use_runtimelinking" = yes; then
12811       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12812       # instead of lib<name>.a to let people know that these are not
12813       # typical AIX shared libraries.
12814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815     else
12816       # We preserve .a as extension for shared libraries through AIX4.2
12817       # and later when we are not doing run time linking.
12818       library_names_spec='${libname}${release}.a $libname.a'
12819       soname_spec='${libname}${release}${shared_ext}$major'
12820     fi
12821     shlibpath_var=LIBPATH
12822   fi
12823   ;;
12824
12825 amigaos*)
12826   library_names_spec='$libname.ixlibrary $libname.a'
12827   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12828   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'
12829   ;;
12830
12831 beos*)
12832   library_names_spec='${libname}${shared_ext}'
12833   dynamic_linker="$host_os ld.so"
12834   shlibpath_var=LIBRARY_PATH
12835   ;;
12836
12837 bsdi[45]*)
12838   version_type=linux
12839   need_version=no
12840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841   soname_spec='${libname}${release}${shared_ext}$major'
12842   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12843   shlibpath_var=LD_LIBRARY_PATH
12844   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12845   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12846   # the default ld.so.conf also contains /usr/contrib/lib and
12847   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12848   # libtool to hard-code these into programs
12849   ;;
12850
12851 cygwin* | mingw* | pw32*)
12852   version_type=windows
12853   shrext_cmds=".dll"
12854   need_version=no
12855   need_lib_prefix=no
12856
12857   case $GCC,$host_os in
12858   yes,cygwin* | yes,mingw* | yes,pw32*)
12859     library_names_spec='$libname.dll.a'
12860     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12861     postinstall_cmds='base_file=`basename \${file}`~
12862       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12863       dldir=$destdir/`dirname \$dlpath`~
12864       test -d \$dldir || mkdir -p \$dldir~
12865       $install_prog $dir/$dlname \$dldir/$dlname~
12866       chmod a+x \$dldir/$dlname'
12867     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12868       dlpath=$dir/\$dldll~
12869        $rm \$dlpath'
12870     shlibpath_overrides_runpath=yes
12871
12872     case $host_os in
12873     cygwin*)
12874       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12875       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12876       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12877       ;;
12878     mingw*)
12879       # MinGW DLLs use traditional 'lib' prefix
12880       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12881       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12882       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12883         # It is most probably a Windows format PATH printed by
12884         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12885         # path with ; separators, and with drive letters. We can handle the
12886         # drive letters (cygwin fileutils understands them), so leave them,
12887         # especially as we might pass files found there to a mingw objdump,
12888         # which wouldn't understand a cygwinified path. Ahh.
12889         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12890       else
12891         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12892       fi
12893       ;;
12894     pw32*)
12895       # pw32 DLLs use 'pw' prefix rather than 'lib'
12896       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12897       ;;
12898     esac
12899     ;;
12900
12901   *)
12902     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12903     ;;
12904   esac
12905   dynamic_linker='Win32 ld.exe'
12906   # FIXME: first we should search . and the directory the executable is in
12907   shlibpath_var=PATH
12908   ;;
12909
12910 darwin* | rhapsody*)
12911   dynamic_linker="$host_os dyld"
12912   version_type=darwin
12913   need_lib_prefix=no
12914   need_version=no
12915   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12916   soname_spec='${libname}${release}${major}$shared_ext'
12917   shlibpath_overrides_runpath=yes
12918   shlibpath_var=DYLD_LIBRARY_PATH
12919   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12920
12921   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12922   ;;
12923
12924 dgux*)
12925   version_type=linux
12926   need_lib_prefix=no
12927   need_version=no
12928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12929   soname_spec='${libname}${release}${shared_ext}$major'
12930   shlibpath_var=LD_LIBRARY_PATH
12931   ;;
12932
12933 freebsd1*)
12934   dynamic_linker=no
12935   ;;
12936
12937 freebsd* | dragonfly*)
12938   # DragonFly does not have aout.  When/if they implement a new
12939   # versioning mechanism, adjust this.
12940   if test -x /usr/bin/objformat; then
12941     objformat=`/usr/bin/objformat`
12942   else
12943     case $host_os in
12944     freebsd[123]*) objformat=aout ;;
12945     *) objformat=elf ;;
12946     esac
12947   fi
12948   version_type=freebsd-$objformat
12949   case $version_type in
12950     freebsd-elf*)
12951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12952       need_version=no
12953       need_lib_prefix=no
12954       ;;
12955     freebsd-*)
12956       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12957       need_version=yes
12958       ;;
12959   esac
12960   shlibpath_var=LD_LIBRARY_PATH
12961   case $host_os in
12962   freebsd2*)
12963     shlibpath_overrides_runpath=yes
12964     ;;
12965   freebsd3.[01]* | freebsdelf3.[01]*)
12966     shlibpath_overrides_runpath=yes
12967     hardcode_into_libs=yes
12968     ;;
12969   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12970   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12971     shlibpath_overrides_runpath=no
12972     hardcode_into_libs=yes
12973     ;;
12974   *) # from 4.6 on, and DragonFly
12975     shlibpath_overrides_runpath=yes
12976     hardcode_into_libs=yes
12977     ;;
12978   esac
12979   ;;
12980
12981 gnu*)
12982   version_type=linux
12983   need_lib_prefix=no
12984   need_version=no
12985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12986   soname_spec='${libname}${release}${shared_ext}$major'
12987   shlibpath_var=LD_LIBRARY_PATH
12988   hardcode_into_libs=yes
12989   ;;
12990
12991 hpux9* | hpux10* | hpux11*)
12992   # Give a soname corresponding to the major version so that dld.sl refuses to
12993   # link against other versions.
12994   version_type=sunos
12995   need_lib_prefix=no
12996   need_version=no
12997   case $host_cpu in
12998   ia64*)
12999     shrext_cmds='.so'
13000     hardcode_into_libs=yes
13001     dynamic_linker="$host_os dld.so"
13002     shlibpath_var=LD_LIBRARY_PATH
13003     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005     soname_spec='${libname}${release}${shared_ext}$major'
13006     if test "X$HPUX_IA64_MODE" = X32; then
13007       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13008     else
13009       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13010     fi
13011     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13012     ;;
13013    hppa*64*)
13014      shrext_cmds='.sl'
13015      hardcode_into_libs=yes
13016      dynamic_linker="$host_os dld.sl"
13017      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13018      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13019      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020      soname_spec='${libname}${release}${shared_ext}$major'
13021      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13022      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13023      ;;
13024    *)
13025     shrext_cmds='.sl'
13026     dynamic_linker="$host_os dld.sl"
13027     shlibpath_var=SHLIB_PATH
13028     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030     soname_spec='${libname}${release}${shared_ext}$major'
13031     ;;
13032   esac
13033   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13034   postinstall_cmds='chmod 555 $lib'
13035   ;;
13036
13037 interix[3-9]*)
13038   version_type=linux
13039   need_lib_prefix=no
13040   need_version=no
13041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13042   soname_spec='${libname}${release}${shared_ext}$major'
13043   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13044   shlibpath_var=LD_LIBRARY_PATH
13045   shlibpath_overrides_runpath=no
13046   hardcode_into_libs=yes
13047   ;;
13048
13049 irix5* | irix6* | nonstopux*)
13050   case $host_os in
13051     nonstopux*) version_type=nonstopux ;;
13052     *)
13053         if test "$lt_cv_prog_gnu_ld" = yes; then
13054                 version_type=linux
13055         else
13056                 version_type=irix
13057         fi ;;
13058   esac
13059   need_lib_prefix=no
13060   need_version=no
13061   soname_spec='${libname}${release}${shared_ext}$major'
13062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13063   case $host_os in
13064   irix5* | nonstopux*)
13065     libsuff= shlibsuff=
13066     ;;
13067   *)
13068     case $LD in # libtool.m4 will add one of these switches to LD
13069     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13070       libsuff= shlibsuff= libmagic=32-bit;;
13071     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13072       libsuff=32 shlibsuff=N32 libmagic=N32;;
13073     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13074       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13075     *) libsuff= shlibsuff= libmagic=never-match;;
13076     esac
13077     ;;
13078   esac
13079   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13080   shlibpath_overrides_runpath=no
13081   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13082   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13083   hardcode_into_libs=yes
13084   ;;
13085
13086 # No shared lib support for Linux oldld, aout, or coff.
13087 linux*oldld* | linux*aout* | linux*coff*)
13088   dynamic_linker=no
13089   ;;
13090
13091 # This must be Linux ELF.
13092 linux* | k*bsd*-gnu)
13093   version_type=linux
13094   need_lib_prefix=no
13095   need_version=no
13096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097   soname_spec='${libname}${release}${shared_ext}$major'
13098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13099   shlibpath_var=LD_LIBRARY_PATH
13100   shlibpath_overrides_runpath=no
13101   # This implies no fast_install, which is unacceptable.
13102   # Some rework will be needed to allow for fast_install
13103   # before this can be enabled.
13104   hardcode_into_libs=yes
13105
13106   # Append ld.so.conf contents to the search path
13107   if test -f /etc/ld.so.conf; then
13108     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' ' '`
13109     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13110   fi
13111
13112   # We used to test for /lib/ld.so.1 and disable shared libraries on
13113   # powerpc, because MkLinux only supported shared libraries with the
13114   # GNU dynamic linker.  Since this was broken with cross compilers,
13115   # most powerpc-linux boxes support dynamic linking these days and
13116   # people can always --disable-shared, the test was removed, and we
13117   # assume the GNU/Linux dynamic linker is in use.
13118   dynamic_linker='GNU/Linux ld.so'
13119   ;;
13120
13121 netbsdelf*-gnu)
13122   version_type=linux
13123   need_lib_prefix=no
13124   need_version=no
13125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13126   soname_spec='${libname}${release}${shared_ext}$major'
13127   shlibpath_var=LD_LIBRARY_PATH
13128   shlibpath_overrides_runpath=no
13129   hardcode_into_libs=yes
13130   dynamic_linker='NetBSD ld.elf_so'
13131   ;;
13132
13133 netbsd*)
13134   version_type=sunos
13135   need_lib_prefix=no
13136   need_version=no
13137   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13139     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13140     dynamic_linker='NetBSD (a.out) ld.so'
13141   else
13142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13143     soname_spec='${libname}${release}${shared_ext}$major'
13144     dynamic_linker='NetBSD ld.elf_so'
13145   fi
13146   shlibpath_var=LD_LIBRARY_PATH
13147   shlibpath_overrides_runpath=yes
13148   hardcode_into_libs=yes
13149   ;;
13150
13151 newsos6)
13152   version_type=linux
13153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154   shlibpath_var=LD_LIBRARY_PATH
13155   shlibpath_overrides_runpath=yes
13156   ;;
13157
13158 nto-qnx*)
13159   version_type=linux
13160   need_lib_prefix=no
13161   need_version=no
13162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13163   soname_spec='${libname}${release}${shared_ext}$major'
13164   shlibpath_var=LD_LIBRARY_PATH
13165   shlibpath_overrides_runpath=yes
13166   ;;
13167
13168 openbsd*)
13169   version_type=sunos
13170   sys_lib_dlsearch_path_spec="/usr/lib"
13171   need_lib_prefix=no
13172   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13173   case $host_os in
13174     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13175     *)                         need_version=no  ;;
13176   esac
13177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13178   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13179   shlibpath_var=LD_LIBRARY_PATH
13180   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13181     case $host_os in
13182       openbsd2.[89] | openbsd2.[89].*)
13183         shlibpath_overrides_runpath=no
13184         ;;
13185       *)
13186         shlibpath_overrides_runpath=yes
13187         ;;
13188       esac
13189   else
13190     shlibpath_overrides_runpath=yes
13191   fi
13192   ;;
13193
13194 os2*)
13195   libname_spec='$name'
13196   shrext_cmds=".dll"
13197   need_lib_prefix=no
13198   library_names_spec='$libname${shared_ext} $libname.a'
13199   dynamic_linker='OS/2 ld.exe'
13200   shlibpath_var=LIBPATH
13201   ;;
13202
13203 osf3* | osf4* | osf5*)
13204   version_type=osf
13205   need_lib_prefix=no
13206   need_version=no
13207   soname_spec='${libname}${release}${shared_ext}$major'
13208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209   shlibpath_var=LD_LIBRARY_PATH
13210   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13211   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13212   ;;
13213
13214 rdos*)
13215   dynamic_linker=no
13216   ;;
13217
13218 solaris*)
13219   version_type=linux
13220   need_lib_prefix=no
13221   need_version=no
13222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223   soname_spec='${libname}${release}${shared_ext}$major'
13224   shlibpath_var=LD_LIBRARY_PATH
13225   shlibpath_overrides_runpath=yes
13226   hardcode_into_libs=yes
13227   # ldd complains unless libraries are executable
13228   postinstall_cmds='chmod +x $lib'
13229   ;;
13230
13231 sunos4*)
13232   version_type=sunos
13233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13234   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13235   shlibpath_var=LD_LIBRARY_PATH
13236   shlibpath_overrides_runpath=yes
13237   if test "$with_gnu_ld" = yes; then
13238     need_lib_prefix=no
13239   fi
13240   need_version=yes
13241   ;;
13242
13243 sysv4 | sysv4.3*)
13244   version_type=linux
13245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13246   soname_spec='${libname}${release}${shared_ext}$major'
13247   shlibpath_var=LD_LIBRARY_PATH
13248   case $host_vendor in
13249     sni)
13250       shlibpath_overrides_runpath=no
13251       need_lib_prefix=no
13252       export_dynamic_flag_spec='${wl}-Blargedynsym'
13253       runpath_var=LD_RUN_PATH
13254       ;;
13255     siemens)
13256       need_lib_prefix=no
13257       ;;
13258     motorola)
13259       need_lib_prefix=no
13260       need_version=no
13261       shlibpath_overrides_runpath=no
13262       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13263       ;;
13264   esac
13265   ;;
13266
13267 sysv4*MP*)
13268   if test -d /usr/nec ;then
13269     version_type=linux
13270     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13271     soname_spec='$libname${shared_ext}.$major'
13272     shlibpath_var=LD_LIBRARY_PATH
13273   fi
13274   ;;
13275
13276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13277   version_type=freebsd-elf
13278   need_lib_prefix=no
13279   need_version=no
13280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13281   soname_spec='${libname}${release}${shared_ext}$major'
13282   shlibpath_var=LD_LIBRARY_PATH
13283   hardcode_into_libs=yes
13284   if test "$with_gnu_ld" = yes; then
13285     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13286     shlibpath_overrides_runpath=no
13287   else
13288     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13289     shlibpath_overrides_runpath=yes
13290     case $host_os in
13291       sco3.2v5*)
13292         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13293         ;;
13294     esac
13295   fi
13296   sys_lib_dlsearch_path_spec='/usr/lib'
13297   ;;
13298
13299 uts4*)
13300   version_type=linux
13301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302   soname_spec='${libname}${release}${shared_ext}$major'
13303   shlibpath_var=LD_LIBRARY_PATH
13304   ;;
13305
13306 *)
13307   dynamic_linker=no
13308   ;;
13309 esac
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13311 $as_echo "$dynamic_linker" >&6; }
13312 test "$dynamic_linker" = no && can_build_shared=no
13313
13314 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13318 fi
13319
13320 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13321 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13325 fi
13326
13327 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13328
13329 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13330 if test "$GCC" = yes; then
13331   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13332 fi
13333
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13335 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13336 hardcode_action_CXX=
13337 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13338    test -n "$runpath_var_CXX" || \
13339    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13340
13341   # We can hardcode non-existant directories.
13342   if test "$hardcode_direct_CXX" != no &&
13343      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13344      # have to relink, otherwise we might link with an installed library
13345      # when we should be linking with a yet-to-be-installed one
13346      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13347      test "$hardcode_minus_L_CXX" != no; then
13348     # Linking always hardcodes the temporary library directory.
13349     hardcode_action_CXX=relink
13350   else
13351     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13352     hardcode_action_CXX=immediate
13353   fi
13354 else
13355   # We cannot hardcode anything, or else we can only hardcode existing
13356   # directories.
13357   hardcode_action_CXX=unsupported
13358 fi
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13360 $as_echo "$hardcode_action_CXX" >&6; }
13361
13362 if test "$hardcode_action_CXX" = relink; then
13363   # Fast installation is not supported
13364   enable_fast_install=no
13365 elif test "$shlibpath_overrides_runpath" = yes ||
13366      test "$enable_shared" = no; then
13367   # Fast installation is not necessary
13368   enable_fast_install=needless
13369 fi
13370
13371
13372 # The else clause should only fire when bootstrapping the
13373 # libtool distribution, otherwise you forgot to ship ltmain.sh
13374 # with your package, and you will get complaints that there are
13375 # no rules to generate ltmain.sh.
13376 if test -f "$ltmain"; then
13377   # See if we are running on zsh, and set the options which allow our commands through
13378   # without removal of \ escapes.
13379   if test -n "${ZSH_VERSION+set}" ; then
13380     setopt NO_GLOB_SUBST
13381   fi
13382   # Now quote all the things that may contain metacharacters while being
13383   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13384   # variables and quote the copies for generation of the libtool script.
13385   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13386     SED SHELL STRIP \
13387     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13388     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13389     deplibs_check_method reload_flag reload_cmds need_locks \
13390     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13391     lt_cv_sys_global_symbol_to_c_name_address \
13392     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13393     old_postinstall_cmds old_postuninstall_cmds \
13394     compiler_CXX \
13395     CC_CXX \
13396     LD_CXX \
13397     lt_prog_compiler_wl_CXX \
13398     lt_prog_compiler_pic_CXX \
13399     lt_prog_compiler_static_CXX \
13400     lt_prog_compiler_no_builtin_flag_CXX \
13401     export_dynamic_flag_spec_CXX \
13402     thread_safe_flag_spec_CXX \
13403     whole_archive_flag_spec_CXX \
13404     enable_shared_with_static_runtimes_CXX \
13405     old_archive_cmds_CXX \
13406     old_archive_from_new_cmds_CXX \
13407     predep_objects_CXX \
13408     postdep_objects_CXX \
13409     predeps_CXX \
13410     postdeps_CXX \
13411     compiler_lib_search_path_CXX \
13412     compiler_lib_search_dirs_CXX \
13413     archive_cmds_CXX \
13414     archive_expsym_cmds_CXX \
13415     postinstall_cmds_CXX \
13416     postuninstall_cmds_CXX \
13417     old_archive_from_expsyms_cmds_CXX \
13418     allow_undefined_flag_CXX \
13419     no_undefined_flag_CXX \
13420     export_symbols_cmds_CXX \
13421     hardcode_libdir_flag_spec_CXX \
13422     hardcode_libdir_flag_spec_ld_CXX \
13423     hardcode_libdir_separator_CXX \
13424     hardcode_automatic_CXX \
13425     module_cmds_CXX \
13426     module_expsym_cmds_CXX \
13427     lt_cv_prog_compiler_c_o_CXX \
13428     fix_srcfile_path_CXX \
13429     exclude_expsyms_CXX \
13430     include_expsyms_CXX; do
13431
13432     case $var in
13433     old_archive_cmds_CXX | \
13434     old_archive_from_new_cmds_CXX | \
13435     archive_cmds_CXX | \
13436     archive_expsym_cmds_CXX | \
13437     module_cmds_CXX | \
13438     module_expsym_cmds_CXX | \
13439     old_archive_from_expsyms_cmds_CXX | \
13440     export_symbols_cmds_CXX | \
13441     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13442     postinstall_cmds | postuninstall_cmds | \
13443     old_postinstall_cmds | old_postuninstall_cmds | \
13444     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13445       # Double-quote double-evaled strings.
13446       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13447       ;;
13448     *)
13449       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13450       ;;
13451     esac
13452   done
13453
13454   case $lt_echo in
13455   *'\$0 --fallback-echo"')
13456     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13457     ;;
13458   esac
13459
13460 cfgfile="$ofile"
13461
13462   cat <<__EOF__ >> "$cfgfile"
13463 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13464
13465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13466
13467 # Shell to use when invoking shell scripts.
13468 SHELL=$lt_SHELL
13469
13470 # Whether or not to build shared libraries.
13471 build_libtool_libs=$enable_shared
13472
13473 # Whether or not to build static libraries.
13474 build_old_libs=$enable_static
13475
13476 # Whether or not to add -lc for building shared libraries.
13477 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13478
13479 # Whether or not to disallow shared libs when runtime libs are static
13480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13481
13482 # Whether or not to optimize for fast installation.
13483 fast_install=$enable_fast_install
13484
13485 # The host system.
13486 host_alias=$host_alias
13487 host=$host
13488 host_os=$host_os
13489
13490 # The build system.
13491 build_alias=$build_alias
13492 build=$build
13493 build_os=$build_os
13494
13495 # An echo program that does not interpret backslashes.
13496 echo=$lt_echo
13497
13498 # The archiver.
13499 AR=$lt_AR
13500 AR_FLAGS=$lt_AR_FLAGS
13501
13502 # A C compiler.
13503 LTCC=$lt_LTCC
13504
13505 # LTCC compiler flags.
13506 LTCFLAGS=$lt_LTCFLAGS
13507
13508 # A language-specific compiler.
13509 CC=$lt_compiler_CXX
13510
13511 # Is the compiler the GNU C compiler?
13512 with_gcc=$GCC_CXX
13513
13514 # An ERE matcher.
13515 EGREP=$lt_EGREP
13516
13517 # The linker used to build libraries.
13518 LD=$lt_LD_CXX
13519
13520 # Whether we need hard or soft links.
13521 LN_S=$lt_LN_S
13522
13523 # A BSD-compatible nm program.
13524 NM=$lt_NM
13525
13526 # A symbol stripping program
13527 STRIP=$lt_STRIP
13528
13529 # Used to examine libraries when file_magic_cmd begins "file"
13530 MAGIC_CMD=$MAGIC_CMD
13531
13532 # Used on cygwin: DLL creation program.
13533 DLLTOOL="$DLLTOOL"
13534
13535 # Used on cygwin: object dumper.
13536 OBJDUMP="$OBJDUMP"
13537
13538 # Used on cygwin: assembler.
13539 AS="$AS"
13540
13541 # The name of the directory that contains temporary libtool files.
13542 objdir=$objdir
13543
13544 # How to create reloadable object files.
13545 reload_flag=$lt_reload_flag
13546 reload_cmds=$lt_reload_cmds
13547
13548 # How to pass a linker flag through the compiler.
13549 wl=$lt_lt_prog_compiler_wl_CXX
13550
13551 # Object file suffix (normally "o").
13552 objext="$ac_objext"
13553
13554 # Old archive suffix (normally "a").
13555 libext="$libext"
13556
13557 # Shared library suffix (normally ".so").
13558 shrext_cmds='$shrext_cmds'
13559
13560 # Executable file suffix (normally "").
13561 exeext="$exeext"
13562
13563 # Additional compiler flags for building library objects.
13564 pic_flag=$lt_lt_prog_compiler_pic_CXX
13565 pic_mode=$pic_mode
13566
13567 # What is the maximum length of a command?
13568 max_cmd_len=$lt_cv_sys_max_cmd_len
13569
13570 # Does compiler simultaneously support -c and -o options?
13571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13572
13573 # Must we lock files when doing compilation?
13574 need_locks=$lt_need_locks
13575
13576 # Do we need the lib prefix for modules?
13577 need_lib_prefix=$need_lib_prefix
13578
13579 # Do we need a version for libraries?
13580 need_version=$need_version
13581
13582 # Whether dlopen is supported.
13583 dlopen_support=$enable_dlopen
13584
13585 # Whether dlopen of programs is supported.
13586 dlopen_self=$enable_dlopen_self
13587
13588 # Whether dlopen of statically linked programs is supported.
13589 dlopen_self_static=$enable_dlopen_self_static
13590
13591 # Compiler flag to prevent dynamic linking.
13592 link_static_flag=$lt_lt_prog_compiler_static_CXX
13593
13594 # Compiler flag to turn off builtin functions.
13595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13596
13597 # Compiler flag to allow reflexive dlopens.
13598 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13599
13600 # Compiler flag to generate shared objects directly from archives.
13601 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13602
13603 # Compiler flag to generate thread-safe objects.
13604 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13605
13606 # Library versioning type.
13607 version_type=$version_type
13608
13609 # Format of library name prefix.
13610 libname_spec=$lt_libname_spec
13611
13612 # List of archive names.  First name is the real one, the rest are links.
13613 # The last name is the one that the linker finds with -lNAME.
13614 library_names_spec=$lt_library_names_spec
13615
13616 # The coded name of the library, if different from the real name.
13617 soname_spec=$lt_soname_spec
13618
13619 # Commands used to build and install an old-style archive.
13620 RANLIB=$lt_RANLIB
13621 old_archive_cmds=$lt_old_archive_cmds_CXX
13622 old_postinstall_cmds=$lt_old_postinstall_cmds
13623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13624
13625 # Create an old-style archive from a shared archive.
13626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13627
13628 # Create a temporary old-style archive to link instead of a shared archive.
13629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13630
13631 # Commands used to build and install a shared archive.
13632 archive_cmds=$lt_archive_cmds_CXX
13633 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13634 postinstall_cmds=$lt_postinstall_cmds
13635 postuninstall_cmds=$lt_postuninstall_cmds
13636
13637 # Commands used to build a loadable module (assumed same as above if empty)
13638 module_cmds=$lt_module_cmds_CXX
13639 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13640
13641 # Commands to strip libraries.
13642 old_striplib=$lt_old_striplib
13643 striplib=$lt_striplib
13644
13645 # Dependencies to place before the objects being linked to create a
13646 # shared library.
13647 predep_objects=$lt_predep_objects_CXX
13648
13649 # Dependencies to place after the objects being linked to create a
13650 # shared library.
13651 postdep_objects=$lt_postdep_objects_CXX
13652
13653 # Dependencies to place before the objects being linked to create a
13654 # shared library.
13655 predeps=$lt_predeps_CXX
13656
13657 # Dependencies to place after the objects being linked to create a
13658 # shared library.
13659 postdeps=$lt_postdeps_CXX
13660
13661 # The directories searched by this compiler when creating a shared
13662 # library
13663 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13664
13665 # The library search path used internally by the compiler when linking
13666 # a shared library.
13667 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13668
13669 # Method to check whether dependent libraries are shared objects.
13670 deplibs_check_method=$lt_deplibs_check_method
13671
13672 # Command to use when deplibs_check_method == file_magic.
13673 file_magic_cmd=$lt_file_magic_cmd
13674
13675 # Flag that allows shared libraries with undefined symbols to be built.
13676 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13677
13678 # Flag that forces no undefined symbols.
13679 no_undefined_flag=$lt_no_undefined_flag_CXX
13680
13681 # Commands used to finish a libtool library installation in a directory.
13682 finish_cmds=$lt_finish_cmds
13683
13684 # Same as above, but a single script fragment to be evaled but not shown.
13685 finish_eval=$lt_finish_eval
13686
13687 # Take the output of nm and produce a listing of raw symbols and C names.
13688 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13689
13690 # Transform the output of nm in a proper C declaration
13691 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13692
13693 # Transform the output of nm in a C name address pair
13694 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13695
13696 # This is the shared library runtime path variable.
13697 runpath_var=$runpath_var
13698
13699 # This is the shared library path variable.
13700 shlibpath_var=$shlibpath_var
13701
13702 # Is shlibpath searched before the hard-coded library search path?
13703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13704
13705 # How to hardcode a shared library path into an executable.
13706 hardcode_action=$hardcode_action_CXX
13707
13708 # Whether we should hardcode library paths into libraries.
13709 hardcode_into_libs=$hardcode_into_libs
13710
13711 # Flag to hardcode \$libdir into a binary during linking.
13712 # This must work even if \$libdir does not exist.
13713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13714
13715 # If ld is used when linking, flag to hardcode \$libdir into
13716 # a binary during linking. This must work even if \$libdir does
13717 # not exist.
13718 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13719
13720 # Whether we need a single -rpath flag with a separated argument.
13721 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13722
13723 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13724 # resulting binary.
13725 hardcode_direct=$hardcode_direct_CXX
13726
13727 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13728 # resulting binary.
13729 hardcode_minus_L=$hardcode_minus_L_CXX
13730
13731 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13732 # the resulting binary.
13733 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13734
13735 # Set to yes if building a shared library automatically hardcodes DIR into the library
13736 # and all subsequent libraries and executables linked against it.
13737 hardcode_automatic=$hardcode_automatic_CXX
13738
13739 # Variables whose values should be saved in libtool wrapper scripts and
13740 # restored at relink time.
13741 variables_saved_for_relink="$variables_saved_for_relink"
13742
13743 # Whether libtool must link a program against all its dependency libraries.
13744 link_all_deplibs=$link_all_deplibs_CXX
13745
13746 # Compile-time system search path for libraries
13747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13748
13749 # Run-time system search path for libraries
13750 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13751
13752 # Fix the shell variable \$srcfile for the compiler.
13753 fix_srcfile_path=$lt_fix_srcfile_path
13754
13755 # Set to yes if exported symbols are required.
13756 always_export_symbols=$always_export_symbols_CXX
13757
13758 # The commands to list exported symbols.
13759 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13760
13761 # The commands to extract the exported symbol list from a shared archive.
13762 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13763
13764 # Symbols that should not be listed in the preloaded symbols.
13765 exclude_expsyms=$lt_exclude_expsyms_CXX
13766
13767 # Symbols that must always be exported.
13768 include_expsyms=$lt_include_expsyms_CXX
13769
13770 # ### END LIBTOOL TAG CONFIG: $tagname
13771
13772 __EOF__
13773
13774
13775 else
13776   # If there is no Makefile yet, we rely on a make rule to execute
13777   # `config.status --recheck' to rerun these tests and create the
13778   # libtool script then.
13779   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13780   if test -f "$ltmain_in"; then
13781     test -f Makefile && make "$ltmain"
13782   fi
13783 fi
13784
13785
13786 ac_ext=c
13787 ac_cpp='$CPP $CPPFLAGS'
13788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13791
13792 CC=$lt_save_CC
13793 LDCXX=$LD
13794 LD=$lt_save_LD
13795 GCC=$lt_save_GCC
13796 with_gnu_ldcxx=$with_gnu_ld
13797 with_gnu_ld=$lt_save_with_gnu_ld
13798 lt_cv_path_LDCXX=$lt_cv_path_LD
13799 lt_cv_path_LD=$lt_save_path_LD
13800 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13801 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13802
13803         else
13804           tagname=""
13805         fi
13806         ;;
13807
13808       F77)
13809         if test -n "$F77" && test "X$F77" != "Xno"; then
13810
13811 ac_ext=f
13812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13815
13816
13817 archive_cmds_need_lc_F77=no
13818 allow_undefined_flag_F77=
13819 always_export_symbols_F77=no
13820 archive_expsym_cmds_F77=
13821 export_dynamic_flag_spec_F77=
13822 hardcode_direct_F77=no
13823 hardcode_libdir_flag_spec_F77=
13824 hardcode_libdir_flag_spec_ld_F77=
13825 hardcode_libdir_separator_F77=
13826 hardcode_minus_L_F77=no
13827 hardcode_automatic_F77=no
13828 module_cmds_F77=
13829 module_expsym_cmds_F77=
13830 link_all_deplibs_F77=unknown
13831 old_archive_cmds_F77=$old_archive_cmds
13832 no_undefined_flag_F77=
13833 whole_archive_flag_spec_F77=
13834 enable_shared_with_static_runtimes_F77=no
13835
13836 # Source file extension for f77 test sources.
13837 ac_ext=f
13838
13839 # Object file extension for compiled f77 test sources.
13840 objext=o
13841 objext_F77=$objext
13842
13843 # Code to be used in simple compile tests
13844 lt_simple_compile_test_code="\
13845       subroutine t
13846       return
13847       end
13848 "
13849
13850 # Code to be used in simple link tests
13851 lt_simple_link_test_code="\
13852       program t
13853       end
13854 "
13855
13856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13857
13858 # If no C compiler was specified, use CC.
13859 LTCC=${LTCC-"$CC"}
13860
13861 # If no C compiler flags were specified, use CFLAGS.
13862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13863
13864 # Allow CC to be a program name with arguments.
13865 compiler=$CC
13866
13867
13868 # save warnings/boilerplate of simple test code
13869 ac_outfile=conftest.$ac_objext
13870 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13872 _lt_compiler_boilerplate=`cat conftest.err`
13873 $rm conftest*
13874
13875 ac_outfile=conftest.$ac_objext
13876 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13878 _lt_linker_boilerplate=`cat conftest.err`
13879 $rm -r conftest*
13880
13881
13882 # Allow CC to be a program name with arguments.
13883 lt_save_CC="$CC"
13884 CC=${F77-"f77"}
13885 compiler=$CC
13886 compiler_F77=$CC
13887 for cc_temp in $compiler""; do
13888   case $cc_temp in
13889     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13890     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13891     \-*) ;;
13892     *) break;;
13893   esac
13894 done
13895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13896
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13899 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13901 $as_echo "$can_build_shared" >&6; }
13902
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13904 $as_echo_n "checking whether to build shared libraries... " >&6; }
13905 test "$can_build_shared" = "no" && enable_shared=no
13906
13907 # On AIX, shared libraries and static libraries use the same namespace, and
13908 # are all built from PIC.
13909 case $host_os in
13910 aix3*)
13911   test "$enable_shared" = yes && enable_static=no
13912   if test -n "$RANLIB"; then
13913     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13914     postinstall_cmds='$RANLIB $lib'
13915   fi
13916   ;;
13917 aix[4-9]*)
13918   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13919     test "$enable_shared" = yes && enable_static=no
13920   fi
13921   ;;
13922 esac
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13924 $as_echo "$enable_shared" >&6; }
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13927 $as_echo_n "checking whether to build static libraries... " >&6; }
13928 # Make sure either enable_shared or enable_static is yes.
13929 test "$enable_shared" = yes || enable_static=yes
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13931 $as_echo "$enable_static" >&6; }
13932
13933 GCC_F77="$G77"
13934 LD_F77="$LD"
13935
13936 lt_prog_compiler_wl_F77=
13937 lt_prog_compiler_pic_F77=
13938 lt_prog_compiler_static_F77=
13939
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13942
13943   if test "$GCC" = yes; then
13944     lt_prog_compiler_wl_F77='-Wl,'
13945     lt_prog_compiler_static_F77='-static'
13946
13947     case $host_os in
13948       aix*)
13949       # All AIX code is PIC.
13950       if test "$host_cpu" = ia64; then
13951         # AIX 5 now supports IA64 processor
13952         lt_prog_compiler_static_F77='-Bstatic'
13953       fi
13954       ;;
13955
13956     amigaos*)
13957       # FIXME: we need at least 68020 code to build shared libraries, but
13958       # adding the `-m68020' flag to GCC prevents building anything better,
13959       # like `-m68040'.
13960       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13961       ;;
13962
13963     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13964       # PIC is the default for these OSes.
13965       ;;
13966
13967     mingw* | cygwin* | pw32* | os2*)
13968       # This hack is so that the source file can tell whether it is being
13969       # built for inclusion in a dll (and should export symbols for example).
13970       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13971       # (--disable-auto-import) libraries
13972       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13973       ;;
13974
13975     darwin* | rhapsody*)
13976       # PIC is the default on this platform
13977       # Common symbols not allowed in MH_DYLIB files
13978       lt_prog_compiler_pic_F77='-fno-common'
13979       ;;
13980
13981     interix[3-9]*)
13982       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13983       # Instead, we relocate shared libraries at runtime.
13984       ;;
13985
13986     msdosdjgpp*)
13987       # Just because we use GCC doesn't mean we suddenly get shared libraries
13988       # on systems that don't support them.
13989       lt_prog_compiler_can_build_shared_F77=no
13990       enable_shared=no
13991       ;;
13992
13993     sysv4*MP*)
13994       if test -d /usr/nec; then
13995         lt_prog_compiler_pic_F77=-Kconform_pic
13996       fi
13997       ;;
13998
13999     hpux*)
14000       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14001       # not for PA HP-UX.
14002       case $host_cpu in
14003       hppa*64*|ia64*)
14004         # +Z the default
14005         ;;
14006       *)
14007         lt_prog_compiler_pic_F77='-fPIC'
14008         ;;
14009       esac
14010       ;;
14011
14012     *)
14013       lt_prog_compiler_pic_F77='-fPIC'
14014       ;;
14015     esac
14016   else
14017     # PORTME Check for flag to pass linker flags through the system compiler.
14018     case $host_os in
14019     aix*)
14020       lt_prog_compiler_wl_F77='-Wl,'
14021       if test "$host_cpu" = ia64; then
14022         # AIX 5 now supports IA64 processor
14023         lt_prog_compiler_static_F77='-Bstatic'
14024       else
14025         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14026       fi
14027       ;;
14028       darwin*)
14029         # PIC is the default on this platform
14030         # Common symbols not allowed in MH_DYLIB files
14031        case $cc_basename in
14032          xlc*)
14033          lt_prog_compiler_pic_F77='-qnocommon'
14034          lt_prog_compiler_wl_F77='-Wl,'
14035          ;;
14036        esac
14037        ;;
14038
14039     mingw* | cygwin* | pw32* | os2*)
14040       # This hack is so that the source file can tell whether it is being
14041       # built for inclusion in a dll (and should export symbols for example).
14042       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14043       ;;
14044
14045     hpux9* | hpux10* | hpux11*)
14046       lt_prog_compiler_wl_F77='-Wl,'
14047       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14048       # not for PA HP-UX.
14049       case $host_cpu in
14050       hppa*64*|ia64*)
14051         # +Z the default
14052         ;;
14053       *)
14054         lt_prog_compiler_pic_F77='+Z'
14055         ;;
14056       esac
14057       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14058       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14059       ;;
14060
14061     irix5* | irix6* | nonstopux*)
14062       lt_prog_compiler_wl_F77='-Wl,'
14063       # PIC (with -KPIC) is the default.
14064       lt_prog_compiler_static_F77='-non_shared'
14065       ;;
14066
14067     newsos6)
14068       lt_prog_compiler_pic_F77='-KPIC'
14069       lt_prog_compiler_static_F77='-Bstatic'
14070       ;;
14071
14072     linux* | k*bsd*-gnu)
14073       case $cc_basename in
14074       icc* | ecc*)
14075         lt_prog_compiler_wl_F77='-Wl,'
14076         lt_prog_compiler_pic_F77='-KPIC'
14077         lt_prog_compiler_static_F77='-static'
14078         ;;
14079       pgcc* | pgf77* | pgf90* | pgf95*)
14080         # Portland Group compilers (*not* the Pentium gcc compiler,
14081         # which looks to be a dead project)
14082         lt_prog_compiler_wl_F77='-Wl,'
14083         lt_prog_compiler_pic_F77='-fpic'
14084         lt_prog_compiler_static_F77='-Bstatic'
14085         ;;
14086       ccc*)
14087         lt_prog_compiler_wl_F77='-Wl,'
14088         # All Alpha code is PIC.
14089         lt_prog_compiler_static_F77='-non_shared'
14090         ;;
14091       *)
14092         case `$CC -V 2>&1 | sed 5q` in
14093         *Sun\ C*)
14094           # Sun C 5.9
14095           lt_prog_compiler_pic_F77='-KPIC'
14096           lt_prog_compiler_static_F77='-Bstatic'
14097           lt_prog_compiler_wl_F77='-Wl,'
14098           ;;
14099         *Sun\ F*)
14100           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14101           lt_prog_compiler_pic_F77='-KPIC'
14102           lt_prog_compiler_static_F77='-Bstatic'
14103           lt_prog_compiler_wl_F77=''
14104           ;;
14105         esac
14106         ;;
14107       esac
14108       ;;
14109
14110     osf3* | osf4* | osf5*)
14111       lt_prog_compiler_wl_F77='-Wl,'
14112       # All OSF/1 code is PIC.
14113       lt_prog_compiler_static_F77='-non_shared'
14114       ;;
14115
14116     rdos*)
14117       lt_prog_compiler_static_F77='-non_shared'
14118       ;;
14119
14120     solaris*)
14121       lt_prog_compiler_pic_F77='-KPIC'
14122       lt_prog_compiler_static_F77='-Bstatic'
14123       case $cc_basename in
14124       f77* | f90* | f95*)
14125         lt_prog_compiler_wl_F77='-Qoption ld ';;
14126       *)
14127         lt_prog_compiler_wl_F77='-Wl,';;
14128       esac
14129       ;;
14130
14131     sunos4*)
14132       lt_prog_compiler_wl_F77='-Qoption ld '
14133       lt_prog_compiler_pic_F77='-PIC'
14134       lt_prog_compiler_static_F77='-Bstatic'
14135       ;;
14136
14137     sysv4 | sysv4.2uw2* | sysv4.3*)
14138       lt_prog_compiler_wl_F77='-Wl,'
14139       lt_prog_compiler_pic_F77='-KPIC'
14140       lt_prog_compiler_static_F77='-Bstatic'
14141       ;;
14142
14143     sysv4*MP*)
14144       if test -d /usr/nec ;then
14145         lt_prog_compiler_pic_F77='-Kconform_pic'
14146         lt_prog_compiler_static_F77='-Bstatic'
14147       fi
14148       ;;
14149
14150     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14151       lt_prog_compiler_wl_F77='-Wl,'
14152       lt_prog_compiler_pic_F77='-KPIC'
14153       lt_prog_compiler_static_F77='-Bstatic'
14154       ;;
14155
14156     unicos*)
14157       lt_prog_compiler_wl_F77='-Wl,'
14158       lt_prog_compiler_can_build_shared_F77=no
14159       ;;
14160
14161     uts4*)
14162       lt_prog_compiler_pic_F77='-pic'
14163       lt_prog_compiler_static_F77='-Bstatic'
14164       ;;
14165
14166     *)
14167       lt_prog_compiler_can_build_shared_F77=no
14168       ;;
14169     esac
14170   fi
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14173 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14174
14175 #
14176 # Check to make sure the PIC flag actually works.
14177 #
14178 if test -n "$lt_prog_compiler_pic_F77"; then
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14181 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14182 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14183   $as_echo_n "(cached) " >&6
14184 else
14185   lt_cv_prog_compiler_pic_works_F77=no
14186   ac_outfile=conftest.$ac_objext
14187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14189    # Insert the option either (1) after the last *FLAGS variable, or
14190    # (2) before a word containing "conftest.", or (3) at the end.
14191    # Note that $ac_compile itself does not contain backslashes and begins
14192    # with a dollar sign (not a hyphen), so the echo should work correctly.
14193    # The option is referenced via a variable to avoid confusing sed.
14194    lt_compile=`echo "$ac_compile" | $SED \
14195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197    -e 's:$: $lt_compiler_flag:'`
14198    (eval echo "\"\$as_me:14198: $lt_compile\"" >&5)
14199    (eval "$lt_compile" 2>conftest.err)
14200    ac_status=$?
14201    cat conftest.err >&5
14202    echo "$as_me:14202: \$? = $ac_status" >&5
14203    if (exit $ac_status) && test -s "$ac_outfile"; then
14204      # The compiler can only warn and ignore the option if not recognized
14205      # So say no if there are warnings other than the usual output.
14206      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14207      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14208      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14209        lt_cv_prog_compiler_pic_works_F77=yes
14210      fi
14211    fi
14212    $rm conftest*
14213
14214 fi
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14216 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14217
14218 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14219     case $lt_prog_compiler_pic_F77 in
14220      "" | " "*) ;;
14221      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14222      esac
14223 else
14224     lt_prog_compiler_pic_F77=
14225      lt_prog_compiler_can_build_shared_F77=no
14226 fi
14227
14228 fi
14229 case $host_os in
14230   # For platforms which do not support PIC, -DPIC is meaningless:
14231   *djgpp*)
14232     lt_prog_compiler_pic_F77=
14233     ;;
14234   *)
14235     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14236     ;;
14237 esac
14238
14239 #
14240 # Check to make sure the static flag actually works.
14241 #
14242 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14244 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14245 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14246   $as_echo_n "(cached) " >&6
14247 else
14248   lt_cv_prog_compiler_static_works_F77=no
14249    save_LDFLAGS="$LDFLAGS"
14250    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14251    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14252    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14253      # The linker can only warn and ignore the option if not recognized
14254      # So say no if there are warnings
14255      if test -s conftest.err; then
14256        # Append any errors to the config.log.
14257        cat conftest.err 1>&5
14258        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14259        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14260        if diff conftest.exp conftest.er2 >/dev/null; then
14261          lt_cv_prog_compiler_static_works_F77=yes
14262        fi
14263      else
14264        lt_cv_prog_compiler_static_works_F77=yes
14265      fi
14266    fi
14267    $rm -r conftest*
14268    LDFLAGS="$save_LDFLAGS"
14269
14270 fi
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14272 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14273
14274 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14275     :
14276 else
14277     lt_prog_compiler_static_F77=
14278 fi
14279
14280
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14283 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14284   $as_echo_n "(cached) " >&6
14285 else
14286   lt_cv_prog_compiler_c_o_F77=no
14287    $rm -r conftest 2>/dev/null
14288    mkdir conftest
14289    cd conftest
14290    mkdir out
14291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292
14293    lt_compiler_flag="-o out/conftest2.$ac_objext"
14294    # Insert the option either (1) after the last *FLAGS variable, or
14295    # (2) before a word containing "conftest.", or (3) at the end.
14296    # Note that $ac_compile itself does not contain backslashes and begins
14297    # with a dollar sign (not a hyphen), so the echo should work correctly.
14298    lt_compile=`echo "$ac_compile" | $SED \
14299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301    -e 's:$: $lt_compiler_flag:'`
14302    (eval echo "\"\$as_me:14302: $lt_compile\"" >&5)
14303    (eval "$lt_compile" 2>out/conftest.err)
14304    ac_status=$?
14305    cat out/conftest.err >&5
14306    echo "$as_me:14306: \$? = $ac_status" >&5
14307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14308    then
14309      # The compiler can only warn and ignore the option if not recognized
14310      # So say no if there are warnings
14311      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14312      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14313      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14314        lt_cv_prog_compiler_c_o_F77=yes
14315      fi
14316    fi
14317    chmod u+w . 2>&5
14318    $rm conftest*
14319    # SGI C++ compiler will create directory out/ii_files/ for
14320    # template instantiation
14321    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14322    $rm out/* && rmdir out
14323    cd ..
14324    rmdir conftest
14325    $rm conftest*
14326
14327 fi
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14329 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14330
14331
14332 hard_links="nottested"
14333 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14334   # do not overwrite the value of need_locks provided by the user
14335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14336 $as_echo_n "checking if we can lock with hard links... " >&6; }
14337   hard_links=yes
14338   $rm conftest*
14339   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14340   touch conftest.a
14341   ln conftest.a conftest.b 2>&5 || hard_links=no
14342   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14344 $as_echo "$hard_links" >&6; }
14345   if test "$hard_links" = no; then
14346     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14347 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14348     need_locks=warn
14349   fi
14350 else
14351   need_locks=no
14352 fi
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14355 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14356
14357   runpath_var=
14358   allow_undefined_flag_F77=
14359   enable_shared_with_static_runtimes_F77=no
14360   archive_cmds_F77=
14361   archive_expsym_cmds_F77=
14362   old_archive_From_new_cmds_F77=
14363   old_archive_from_expsyms_cmds_F77=
14364   export_dynamic_flag_spec_F77=
14365   whole_archive_flag_spec_F77=
14366   thread_safe_flag_spec_F77=
14367   hardcode_libdir_flag_spec_F77=
14368   hardcode_libdir_flag_spec_ld_F77=
14369   hardcode_libdir_separator_F77=
14370   hardcode_direct_F77=no
14371   hardcode_minus_L_F77=no
14372   hardcode_shlibpath_var_F77=unsupported
14373   link_all_deplibs_F77=unknown
14374   hardcode_automatic_F77=no
14375   module_cmds_F77=
14376   module_expsym_cmds_F77=
14377   always_export_symbols_F77=no
14378   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14379   # include_expsyms should be a list of space-separated symbols to be *always*
14380   # included in the symbol list
14381   include_expsyms_F77=
14382   # exclude_expsyms can be an extended regexp of symbols to exclude
14383   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14384   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14385   # as well as any symbol that contains `d'.
14386   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14387   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14388   # platforms (ab)use it in PIC code, but their linkers get confused if
14389   # the symbol is explicitly referenced.  Since portable code cannot
14390   # rely on this symbol name, it's probably fine to never include it in
14391   # preloaded symbol tables.
14392   # Exclude shared library initialization/finalization symbols.
14393   extract_expsyms_cmds=
14394   # Just being paranoid about ensuring that cc_basename is set.
14395   for cc_temp in $compiler""; do
14396   case $cc_temp in
14397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14399     \-*) ;;
14400     *) break;;
14401   esac
14402 done
14403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14404
14405   case $host_os in
14406   cygwin* | mingw* | pw32*)
14407     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14408     # When not using gcc, we currently assume that we are using
14409     # Microsoft Visual C++.
14410     if test "$GCC" != yes; then
14411       with_gnu_ld=no
14412     fi
14413     ;;
14414   interix*)
14415     # we just hope/assume this is gcc and not c89 (= MSVC++)
14416     with_gnu_ld=yes
14417     ;;
14418   openbsd*)
14419     with_gnu_ld=no
14420     ;;
14421   esac
14422
14423   ld_shlibs_F77=yes
14424   if test "$with_gnu_ld" = yes; then
14425     # If archive_cmds runs LD, not CC, wlarc should be empty
14426     wlarc='${wl}'
14427
14428     # Set some defaults for GNU ld with shared library support. These
14429     # are reset later if shared libraries are not supported. Putting them
14430     # here allows them to be overridden if necessary.
14431     runpath_var=LD_RUN_PATH
14432     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14433     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14434     # ancient GNU ld didn't support --whole-archive et. al.
14435     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14436         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14437       else
14438         whole_archive_flag_spec_F77=
14439     fi
14440     supports_anon_versioning=no
14441     case `$LD -v 2>/dev/null` in
14442       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14443       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14444       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14445       *\ 2.11.*) ;; # other 2.11 versions
14446       *) supports_anon_versioning=yes ;;
14447     esac
14448
14449     # See if GNU ld supports shared libraries.
14450     case $host_os in
14451     aix[3-9]*)
14452       # On AIX/PPC, the GNU linker is very broken
14453       if test "$host_cpu" != ia64; then
14454         ld_shlibs_F77=no
14455         cat <<EOF 1>&2
14456
14457 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14458 *** to be unable to reliably create shared libraries on AIX.
14459 *** Therefore, libtool is disabling shared libraries support.  If you
14460 *** really care for shared libraries, you may want to modify your PATH
14461 *** so that a non-GNU linker is found, and then restart.
14462
14463 EOF
14464       fi
14465       ;;
14466
14467     amigaos*)
14468       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)'
14469       hardcode_libdir_flag_spec_F77='-L$libdir'
14470       hardcode_minus_L_F77=yes
14471
14472       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14473       # that the semantics of dynamic libraries on AmigaOS, at least up
14474       # to version 4, is to share data among multiple programs linked
14475       # with the same dynamic library.  Since this doesn't match the
14476       # behavior of shared libraries on other platforms, we can't use
14477       # them.
14478       ld_shlibs_F77=no
14479       ;;
14480
14481     beos*)
14482       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14483         allow_undefined_flag_F77=unsupported
14484         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14485         # support --undefined.  This deserves some investigation.  FIXME
14486         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14487       else
14488         ld_shlibs_F77=no
14489       fi
14490       ;;
14491
14492     cygwin* | mingw* | pw32*)
14493       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14494       # as there is no search path for DLLs.
14495       hardcode_libdir_flag_spec_F77='-L$libdir'
14496       allow_undefined_flag_F77=unsupported
14497       always_export_symbols_F77=no
14498       enable_shared_with_static_runtimes_F77=yes
14499       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14500
14501       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14502         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14503         # If the export-symbols file already is a .def file (1st line
14504         # is EXPORTS), use it as is; otherwise, prepend...
14505         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14506           cp $export_symbols $output_objdir/$soname.def;
14507         else
14508           echo EXPORTS > $output_objdir/$soname.def;
14509           cat $export_symbols >> $output_objdir/$soname.def;
14510         fi~
14511         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14512       else
14513         ld_shlibs_F77=no
14514       fi
14515       ;;
14516
14517     interix[3-9]*)
14518       hardcode_direct_F77=no
14519       hardcode_shlibpath_var_F77=no
14520       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14521       export_dynamic_flag_spec_F77='${wl}-E'
14522       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523       # Instead, shared libraries are loaded at an image base (0x10000000 by
14524       # default) and relocated if they conflict, which is a slow very memory
14525       # consuming and fragmenting process.  To avoid this, we pick a random,
14526       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14528       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'
14529       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'
14530       ;;
14531
14532     gnu* | linux* | k*bsd*-gnu)
14533       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534         tmp_addflag=
14535         case $cc_basename,$host_cpu in
14536         pgcc*)                          # Portland Group C compiler
14537           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'
14538           tmp_addflag=' $pic_flag'
14539           ;;
14540         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14541           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'
14542           tmp_addflag=' $pic_flag -Mnomain' ;;
14543         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14544           tmp_addflag=' -i_dynamic' ;;
14545         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14546           tmp_addflag=' -i_dynamic -nofor_main' ;;
14547         ifc* | ifort*)                  # Intel Fortran compiler
14548           tmp_addflag=' -nofor_main' ;;
14549         esac
14550         case `$CC -V 2>&1 | sed 5q` in
14551         *Sun\ C*)                       # Sun C 5.9
14552           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'
14553           tmp_sharedflag='-G' ;;
14554         *Sun\ F*)                       # Sun Fortran 8.3
14555           tmp_sharedflag='-G' ;;
14556         *)
14557           tmp_sharedflag='-shared' ;;
14558         esac
14559         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14560
14561         if test $supports_anon_versioning = yes; then
14562           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14563   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14564   $echo "local: *; };" >> $output_objdir/$libname.ver~
14565           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14566         fi
14567         link_all_deplibs_F77=no
14568       else
14569         ld_shlibs_F77=no
14570       fi
14571       ;;
14572
14573     netbsd* | netbsdelf*-gnu)
14574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14575         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14576         wlarc=
14577       else
14578         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14579         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14580       fi
14581       ;;
14582
14583     solaris*)
14584       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14585         ld_shlibs_F77=no
14586         cat <<EOF 1>&2
14587
14588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14589 *** create shared libraries on Solaris systems.  Therefore, libtool
14590 *** is disabling shared libraries support.  We urge you to upgrade GNU
14591 *** binutils to release 2.9.1 or newer.  Another option is to modify
14592 *** your PATH or compiler configuration so that the native linker is
14593 *** used, and then restart.
14594
14595 EOF
14596       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14597         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14598         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14599       else
14600         ld_shlibs_F77=no
14601       fi
14602       ;;
14603
14604     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14605       case `$LD -v 2>&1` in
14606         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14607         ld_shlibs_F77=no
14608         cat <<_LT_EOF 1>&2
14609
14610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14611 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14612 *** is disabling shared libraries support.  We urge you to upgrade GNU
14613 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14614 *** your PATH or compiler configuration so that the native linker is
14615 *** used, and then restart.
14616
14617 _LT_EOF
14618         ;;
14619         *)
14620           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14621             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14622             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14623             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14624           else
14625             ld_shlibs_F77=no
14626           fi
14627         ;;
14628       esac
14629       ;;
14630
14631     sunos4*)
14632       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14633       wlarc=
14634       hardcode_direct_F77=yes
14635       hardcode_shlibpath_var_F77=no
14636       ;;
14637
14638     *)
14639       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14640         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14641         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14642       else
14643         ld_shlibs_F77=no
14644       fi
14645       ;;
14646     esac
14647
14648     if test "$ld_shlibs_F77" = no; then
14649       runpath_var=
14650       hardcode_libdir_flag_spec_F77=
14651       export_dynamic_flag_spec_F77=
14652       whole_archive_flag_spec_F77=
14653     fi
14654   else
14655     # PORTME fill in a description of your system's linker (not GNU ld)
14656     case $host_os in
14657     aix3*)
14658       allow_undefined_flag_F77=unsupported
14659       always_export_symbols_F77=yes
14660       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'
14661       # Note: this linker hardcodes the directories in LIBPATH if there
14662       # are no directories specified by -L.
14663       hardcode_minus_L_F77=yes
14664       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14665         # Neither direct hardcoding nor static linking is supported with a
14666         # broken collect2.
14667         hardcode_direct_F77=unsupported
14668       fi
14669       ;;
14670
14671     aix[4-9]*)
14672       if test "$host_cpu" = ia64; then
14673         # On IA64, the linker does run time linking by default, so we don't
14674         # have to do anything special.
14675         aix_use_runtimelinking=no
14676         exp_sym_flag='-Bexport'
14677         no_entry_flag=""
14678       else
14679         # If we're using GNU nm, then we don't want the "-C" option.
14680         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14681         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14682           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'
14683         else
14684           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'
14685         fi
14686         aix_use_runtimelinking=no
14687
14688         # Test if we are trying to use run time linking or normal
14689         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14690         # need to do runtime linking.
14691         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14692           for ld_flag in $LDFLAGS; do
14693           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14694             aix_use_runtimelinking=yes
14695             break
14696           fi
14697           done
14698           ;;
14699         esac
14700
14701         exp_sym_flag='-bexport'
14702         no_entry_flag='-bnoentry'
14703       fi
14704
14705       # When large executables or shared objects are built, AIX ld can
14706       # have problems creating the table of contents.  If linking a library
14707       # or program results in "error TOC overflow" add -mminimal-toc to
14708       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14709       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14710
14711       archive_cmds_F77=''
14712       hardcode_direct_F77=yes
14713       hardcode_libdir_separator_F77=':'
14714       link_all_deplibs_F77=yes
14715
14716       if test "$GCC" = yes; then
14717         case $host_os in aix4.[012]|aix4.[012].*)
14718         # We only want to do this on AIX 4.2 and lower, the check
14719         # below for broken collect2 doesn't work under 4.3+
14720           collect2name=`${CC} -print-prog-name=collect2`
14721           if test -f "$collect2name" && \
14722            strings "$collect2name" | grep resolve_lib_name >/dev/null
14723           then
14724           # We have reworked collect2
14725           :
14726           else
14727           # We have old collect2
14728           hardcode_direct_F77=unsupported
14729           # It fails to find uninstalled libraries when the uninstalled
14730           # path is not listed in the libpath.  Setting hardcode_minus_L
14731           # to unsupported forces relinking
14732           hardcode_minus_L_F77=yes
14733           hardcode_libdir_flag_spec_F77='-L$libdir'
14734           hardcode_libdir_separator_F77=
14735           fi
14736           ;;
14737         esac
14738         shared_flag='-shared'
14739         if test "$aix_use_runtimelinking" = yes; then
14740           shared_flag="$shared_flag "'${wl}-G'
14741         fi
14742       else
14743         # not using gcc
14744         if test "$host_cpu" = ia64; then
14745         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14746         # chokes on -Wl,-G. The following line is correct:
14747           shared_flag='-G'
14748         else
14749           if test "$aix_use_runtimelinking" = yes; then
14750             shared_flag='${wl}-G'
14751           else
14752             shared_flag='${wl}-bM:SRE'
14753           fi
14754         fi
14755       fi
14756
14757       # It seems that -bexpall does not export symbols beginning with
14758       # underscore (_), so it is better to generate a list of symbols to export.
14759       always_export_symbols_F77=yes
14760       if test "$aix_use_runtimelinking" = yes; then
14761         # Warning - without using the other runtime loading flags (-brtl),
14762         # -berok will link without error, but may produce a broken library.
14763         allow_undefined_flag_F77='-berok'
14764        # Determine the default libpath from the value encoded in an empty executable.
14765        cat > conftest.$ac_ext <<_ACEOF
14766       program main
14767
14768       end
14769 _ACEOF
14770 if ac_fn_f77_try_link "$LINENO"; then :
14771
14772 lt_aix_libpath_sed='
14773     /Import File Strings/,/^$/ {
14774         /^0/ {
14775             s/^0  *\(.*\)$/\1/
14776             p
14777         }
14778     }'
14779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14780 # Check for a 64-bit object if we didn't find anything.
14781 if test -z "$aix_libpath"; then
14782   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14783 fi
14784 fi
14785 rm -f core conftest.err conftest.$ac_objext \
14786     conftest$ac_exeext conftest.$ac_ext
14787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14788
14789        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14790         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"
14791        else
14792         if test "$host_cpu" = ia64; then
14793           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14794           allow_undefined_flag_F77="-z nodefs"
14795           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"
14796         else
14797          # Determine the default libpath from the value encoded in an empty executable.
14798          cat > conftest.$ac_ext <<_ACEOF
14799       program main
14800
14801       end
14802 _ACEOF
14803 if ac_fn_f77_try_link "$LINENO"; then :
14804
14805 lt_aix_libpath_sed='
14806     /Import File Strings/,/^$/ {
14807         /^0/ {
14808             s/^0  *\(.*\)$/\1/
14809             p
14810         }
14811     }'
14812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14813 # Check for a 64-bit object if we didn't find anything.
14814 if test -z "$aix_libpath"; then
14815   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14816 fi
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819     conftest$ac_exeext conftest.$ac_ext
14820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14821
14822          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14823           # Warning - without using the other run time loading flags,
14824           # -berok will link without error, but may produce a broken library.
14825           no_undefined_flag_F77=' ${wl}-bernotok'
14826           allow_undefined_flag_F77=' ${wl}-berok'
14827           # Exported symbols can be pulled into shared objects from archives
14828           whole_archive_flag_spec_F77='$convenience'
14829           archive_cmds_need_lc_F77=yes
14830           # This is similar to how AIX traditionally builds its shared libraries.
14831           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'
14832         fi
14833       fi
14834       ;;
14835
14836     amigaos*)
14837       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)'
14838       hardcode_libdir_flag_spec_F77='-L$libdir'
14839       hardcode_minus_L_F77=yes
14840       # see comment about different semantics on the GNU ld section
14841       ld_shlibs_F77=no
14842       ;;
14843
14844     bsdi[45]*)
14845       export_dynamic_flag_spec_F77=-rdynamic
14846       ;;
14847
14848     cygwin* | mingw* | pw32*)
14849       # When not using gcc, we currently assume that we are using
14850       # Microsoft Visual C++.
14851       # hardcode_libdir_flag_spec is actually meaningless, as there is
14852       # no search path for DLLs.
14853       hardcode_libdir_flag_spec_F77=' '
14854       allow_undefined_flag_F77=unsupported
14855       # Tell ltmain to make .lib files, not .a files.
14856       libext=lib
14857       # Tell ltmain to make .dll files, not .so files.
14858       shrext_cmds=".dll"
14859       # FIXME: Setting linknames here is a bad hack.
14860       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14861       # The linker will automatically build a .lib file if we build a DLL.
14862       old_archive_From_new_cmds_F77='true'
14863       # FIXME: Should let the user specify the lib program.
14864       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14865       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14866       enable_shared_with_static_runtimes_F77=yes
14867       ;;
14868
14869     darwin* | rhapsody*)
14870       case $host_os in
14871         rhapsody* | darwin1.[012])
14872          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14873          ;;
14874        *) # Darwin 1.3 on
14875          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14876            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14877          else
14878            case ${MACOSX_DEPLOYMENT_TARGET} in
14879              10.[012])
14880                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14881                ;;
14882              10.*)
14883                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14884                ;;
14885            esac
14886          fi
14887          ;;
14888       esac
14889       archive_cmds_need_lc_F77=no
14890       hardcode_direct_F77=no
14891       hardcode_automatic_F77=yes
14892       hardcode_shlibpath_var_F77=unsupported
14893       whole_archive_flag_spec_F77=''
14894       link_all_deplibs_F77=yes
14895     if test "$GCC" = yes ; then
14896         output_verbose_link_cmd='echo'
14897         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}"
14898         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14899         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}"
14900         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}"
14901     else
14902       case $cc_basename in
14903         xlc*)
14904          output_verbose_link_cmd='echo'
14905          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14906          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14908          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}'
14909           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}'
14910           ;;
14911        *)
14912          ld_shlibs_F77=no
14913           ;;
14914       esac
14915     fi
14916       ;;
14917
14918     dgux*)
14919       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920       hardcode_libdir_flag_spec_F77='-L$libdir'
14921       hardcode_shlibpath_var_F77=no
14922       ;;
14923
14924     freebsd1*)
14925       ld_shlibs_F77=no
14926       ;;
14927
14928     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14929     # support.  Future versions do this automatically, but an explicit c++rt0.o
14930     # does not break anything, and helps significantly (at the cost of a little
14931     # extra space).
14932     freebsd2.2*)
14933       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14934       hardcode_libdir_flag_spec_F77='-R$libdir'
14935       hardcode_direct_F77=yes
14936       hardcode_shlibpath_var_F77=no
14937       ;;
14938
14939     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14940     freebsd2*)
14941       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942       hardcode_direct_F77=yes
14943       hardcode_minus_L_F77=yes
14944       hardcode_shlibpath_var_F77=no
14945       ;;
14946
14947     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14948     freebsd* | dragonfly*)
14949       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14950       hardcode_libdir_flag_spec_F77='-R$libdir'
14951       hardcode_direct_F77=yes
14952       hardcode_shlibpath_var_F77=no
14953       ;;
14954
14955     hpux9*)
14956       if test "$GCC" = yes; then
14957         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'
14958       else
14959         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'
14960       fi
14961       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14962       hardcode_libdir_separator_F77=:
14963       hardcode_direct_F77=yes
14964
14965       # hardcode_minus_L: Not really in the search PATH,
14966       # but as the default location of the library.
14967       hardcode_minus_L_F77=yes
14968       export_dynamic_flag_spec_F77='${wl}-E'
14969       ;;
14970
14971     hpux10*)
14972       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14973         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14974       else
14975         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14976       fi
14977       if test "$with_gnu_ld" = no; then
14978         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14979         hardcode_libdir_separator_F77=:
14980
14981         hardcode_direct_F77=yes
14982         export_dynamic_flag_spec_F77='${wl}-E'
14983
14984         # hardcode_minus_L: Not really in the search PATH,
14985         # but as the default location of the library.
14986         hardcode_minus_L_F77=yes
14987       fi
14988       ;;
14989
14990     hpux11*)
14991       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14992         case $host_cpu in
14993         hppa*64*)
14994           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14995           ;;
14996         ia64*)
14997           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14998           ;;
14999         *)
15000           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15001           ;;
15002         esac
15003       else
15004         case $host_cpu in
15005         hppa*64*)
15006           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007           ;;
15008         ia64*)
15009           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15010           ;;
15011         *)
15012           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15013           ;;
15014         esac
15015       fi
15016       if test "$with_gnu_ld" = no; then
15017         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15018         hardcode_libdir_separator_F77=:
15019
15020         case $host_cpu in
15021         hppa*64*|ia64*)
15022           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15023           hardcode_direct_F77=no
15024           hardcode_shlibpath_var_F77=no
15025           ;;
15026         *)
15027           hardcode_direct_F77=yes
15028           export_dynamic_flag_spec_F77='${wl}-E'
15029
15030           # hardcode_minus_L: Not really in the search PATH,
15031           # but as the default location of the library.
15032           hardcode_minus_L_F77=yes
15033           ;;
15034         esac
15035       fi
15036       ;;
15037
15038     irix5* | irix6* | nonstopux*)
15039       if test "$GCC" = yes; then
15040         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'
15041       else
15042         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'
15043         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15044       fi
15045       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046       hardcode_libdir_separator_F77=:
15047       link_all_deplibs_F77=yes
15048       ;;
15049
15050     netbsd* | netbsdelf*-gnu)
15051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15053       else
15054         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15055       fi
15056       hardcode_libdir_flag_spec_F77='-R$libdir'
15057       hardcode_direct_F77=yes
15058       hardcode_shlibpath_var_F77=no
15059       ;;
15060
15061     newsos6)
15062       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063       hardcode_direct_F77=yes
15064       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15065       hardcode_libdir_separator_F77=:
15066       hardcode_shlibpath_var_F77=no
15067       ;;
15068
15069     openbsd*)
15070       if test -f /usr/libexec/ld.so; then
15071         hardcode_direct_F77=yes
15072         hardcode_shlibpath_var_F77=no
15073         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15074           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15075           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15076           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15077           export_dynamic_flag_spec_F77='${wl}-E'
15078         else
15079           case $host_os in
15080            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15081              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15082              hardcode_libdir_flag_spec_F77='-R$libdir'
15083              ;;
15084            *)
15085              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15086              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15087              ;;
15088           esac
15089         fi
15090       else
15091         ld_shlibs_F77=no
15092       fi
15093       ;;
15094
15095     os2*)
15096       hardcode_libdir_flag_spec_F77='-L$libdir'
15097       hardcode_minus_L_F77=yes
15098       allow_undefined_flag_F77=unsupported
15099       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'
15100       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15101       ;;
15102
15103     osf3*)
15104       if test "$GCC" = yes; then
15105         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15106         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'
15107       else
15108         allow_undefined_flag_F77=' -expect_unresolved \*'
15109         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'
15110       fi
15111       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15112       hardcode_libdir_separator_F77=:
15113       ;;
15114
15115     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15116       if test "$GCC" = yes; then
15117         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15118         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'
15119         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15120       else
15121         allow_undefined_flag_F77=' -expect_unresolved \*'
15122         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'
15123         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~
15124         $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'
15125
15126         # Both c and cxx compiler support -rpath directly
15127         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15128       fi
15129       hardcode_libdir_separator_F77=:
15130       ;;
15131
15132     solaris*)
15133       no_undefined_flag_F77=' -z text'
15134       if test "$GCC" = yes; then
15135         wlarc='${wl}'
15136         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15137         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15138           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15139       else
15140         wlarc=''
15141         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15142         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15143         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15144       fi
15145       hardcode_libdir_flag_spec_F77='-R$libdir'
15146       hardcode_shlibpath_var_F77=no
15147       case $host_os in
15148       solaris2.[0-5] | solaris2.[0-5].*) ;;
15149       *)
15150         # The compiler driver will combine and reorder linker options,
15151         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15152         # but is careful enough not to reorder.
15153         # Supported since Solaris 2.6 (maybe 2.5.1?)
15154         if test "$GCC" = yes; then
15155           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15156         else
15157           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15158         fi
15159         ;;
15160       esac
15161       link_all_deplibs_F77=yes
15162       ;;
15163
15164     sunos4*)
15165       if test "x$host_vendor" = xsequent; then
15166         # Use $CC to link under sequent, because it throws in some extra .o
15167         # files that make .init and .fini sections work.
15168         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15169       else
15170         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15171       fi
15172       hardcode_libdir_flag_spec_F77='-L$libdir'
15173       hardcode_direct_F77=yes
15174       hardcode_minus_L_F77=yes
15175       hardcode_shlibpath_var_F77=no
15176       ;;
15177
15178     sysv4)
15179       case $host_vendor in
15180         sni)
15181           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15182           hardcode_direct_F77=yes # is this really true???
15183         ;;
15184         siemens)
15185           ## LD is ld it makes a PLAMLIB
15186           ## CC just makes a GrossModule.
15187           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15188           reload_cmds_F77='$CC -r -o $output$reload_objs'
15189           hardcode_direct_F77=no
15190         ;;
15191         motorola)
15192           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15194         ;;
15195       esac
15196       runpath_var='LD_RUN_PATH'
15197       hardcode_shlibpath_var_F77=no
15198       ;;
15199
15200     sysv4.3*)
15201       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202       hardcode_shlibpath_var_F77=no
15203       export_dynamic_flag_spec_F77='-Bexport'
15204       ;;
15205
15206     sysv4*MP*)
15207       if test -d /usr/nec; then
15208         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209         hardcode_shlibpath_var_F77=no
15210         runpath_var=LD_RUN_PATH
15211         hardcode_runpath_var=yes
15212         ld_shlibs_F77=yes
15213       fi
15214       ;;
15215
15216     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15217       no_undefined_flag_F77='${wl}-z,text'
15218       archive_cmds_need_lc_F77=no
15219       hardcode_shlibpath_var_F77=no
15220       runpath_var='LD_RUN_PATH'
15221
15222       if test "$GCC" = yes; then
15223         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15224         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15225       else
15226         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15227         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15228       fi
15229       ;;
15230
15231     sysv5* | sco3.2v5* | sco5v6*)
15232       # Note: We can NOT use -z defs as we might desire, because we do not
15233       # link with -lc, and that would cause any symbols used from libc to
15234       # always be unresolved, which means just about no library would
15235       # ever link correctly.  If we're not using GNU ld we use -z text
15236       # though, which does catch some bad symbols but isn't as heavy-handed
15237       # as -z defs.
15238       no_undefined_flag_F77='${wl}-z,text'
15239       allow_undefined_flag_F77='${wl}-z,nodefs'
15240       archive_cmds_need_lc_F77=no
15241       hardcode_shlibpath_var_F77=no
15242       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15243       hardcode_libdir_separator_F77=':'
15244       link_all_deplibs_F77=yes
15245       export_dynamic_flag_spec_F77='${wl}-Bexport'
15246       runpath_var='LD_RUN_PATH'
15247
15248       if test "$GCC" = yes; then
15249         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15251       else
15252         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15253         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15254       fi
15255       ;;
15256
15257     uts4*)
15258       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15259       hardcode_libdir_flag_spec_F77='-L$libdir'
15260       hardcode_shlibpath_var_F77=no
15261       ;;
15262
15263     *)
15264       ld_shlibs_F77=no
15265       ;;
15266     esac
15267   fi
15268
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15270 $as_echo "$ld_shlibs_F77" >&6; }
15271 test "$ld_shlibs_F77" = no && can_build_shared=no
15272
15273 #
15274 # Do we need to explicitly link libc?
15275 #
15276 case "x$archive_cmds_need_lc_F77" in
15277 x|xyes)
15278   # Assume -lc should be added
15279   archive_cmds_need_lc_F77=yes
15280
15281   if test "$enable_shared" = yes && test "$GCC" = yes; then
15282     case $archive_cmds_F77 in
15283     *'~'*)
15284       # FIXME: we may have to deal with multi-command sequences.
15285       ;;
15286     '$CC '*)
15287       # Test whether the compiler implicitly links with -lc since on some
15288       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15289       # to ld, don't add -lc before -lgcc.
15290       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15291 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15292       $rm conftest*
15293       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15294
15295       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15296   (eval $ac_compile) 2>&5
15297   ac_status=$?
15298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299   test $ac_status = 0; } 2>conftest.err; then
15300         soname=conftest
15301         lib=conftest
15302         libobjs=conftest.$ac_objext
15303         deplibs=
15304         wl=$lt_prog_compiler_wl_F77
15305         pic_flag=$lt_prog_compiler_pic_F77
15306         compiler_flags=-v
15307         linker_flags=-v
15308         verstring=
15309         output_objdir=.
15310         libname=conftest
15311         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15312         allow_undefined_flag_F77=
15313         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15314   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15315   ac_status=$?
15316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15317   test $ac_status = 0; }
15318         then
15319           archive_cmds_need_lc_F77=no
15320         else
15321           archive_cmds_need_lc_F77=yes
15322         fi
15323         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15324       else
15325         cat conftest.err 1>&5
15326       fi
15327       $rm conftest*
15328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15329 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15330       ;;
15331     esac
15332   fi
15333   ;;
15334 esac
15335
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15338 library_names_spec=
15339 libname_spec='lib$name'
15340 soname_spec=
15341 shrext_cmds=".so"
15342 postinstall_cmds=
15343 postuninstall_cmds=
15344 finish_cmds=
15345 finish_eval=
15346 shlibpath_var=
15347 shlibpath_overrides_runpath=unknown
15348 version_type=none
15349 dynamic_linker="$host_os ld.so"
15350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15351
15352 need_lib_prefix=unknown
15353 hardcode_into_libs=no
15354
15355 # when you set need_version to no, make sure it does not cause -set_version
15356 # flags to be left without arguments
15357 need_version=unknown
15358
15359 case $host_os in
15360 aix3*)
15361   version_type=linux
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15363   shlibpath_var=LIBPATH
15364
15365   # AIX 3 has no versioning support, so we append a major version to the name.
15366   soname_spec='${libname}${release}${shared_ext}$major'
15367   ;;
15368
15369 aix[4-9]*)
15370   version_type=linux
15371   need_lib_prefix=no
15372   need_version=no
15373   hardcode_into_libs=yes
15374   if test "$host_cpu" = ia64; then
15375     # AIX 5 supports IA64
15376     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15377     shlibpath_var=LD_LIBRARY_PATH
15378   else
15379     # With GCC up to 2.95.x, collect2 would create an import file
15380     # for dependence libraries.  The import file would start with
15381     # the line `#! .'.  This would cause the generated library to
15382     # depend on `.', always an invalid library.  This was fixed in
15383     # development snapshots of GCC prior to 3.0.
15384     case $host_os in
15385       aix4 | aix4.[01] | aix4.[01].*)
15386       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15387            echo ' yes '
15388            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15389         :
15390       else
15391         can_build_shared=no
15392       fi
15393       ;;
15394     esac
15395     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15396     # soname into executable. Probably we can add versioning support to
15397     # collect2, so additional links can be useful in future.
15398     if test "$aix_use_runtimelinking" = yes; then
15399       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15400       # instead of lib<name>.a to let people know that these are not
15401       # typical AIX shared libraries.
15402       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403     else
15404       # We preserve .a as extension for shared libraries through AIX4.2
15405       # and later when we are not doing run time linking.
15406       library_names_spec='${libname}${release}.a $libname.a'
15407       soname_spec='${libname}${release}${shared_ext}$major'
15408     fi
15409     shlibpath_var=LIBPATH
15410   fi
15411   ;;
15412
15413 amigaos*)
15414   library_names_spec='$libname.ixlibrary $libname.a'
15415   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15416   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'
15417   ;;
15418
15419 beos*)
15420   library_names_spec='${libname}${shared_ext}'
15421   dynamic_linker="$host_os ld.so"
15422   shlibpath_var=LIBRARY_PATH
15423   ;;
15424
15425 bsdi[45]*)
15426   version_type=linux
15427   need_version=no
15428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429   soname_spec='${libname}${release}${shared_ext}$major'
15430   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15431   shlibpath_var=LD_LIBRARY_PATH
15432   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15433   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15434   # the default ld.so.conf also contains /usr/contrib/lib and
15435   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15436   # libtool to hard-code these into programs
15437   ;;
15438
15439 cygwin* | mingw* | pw32*)
15440   version_type=windows
15441   shrext_cmds=".dll"
15442   need_version=no
15443   need_lib_prefix=no
15444
15445   case $GCC,$host_os in
15446   yes,cygwin* | yes,mingw* | yes,pw32*)
15447     library_names_spec='$libname.dll.a'
15448     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15449     postinstall_cmds='base_file=`basename \${file}`~
15450       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15451       dldir=$destdir/`dirname \$dlpath`~
15452       test -d \$dldir || mkdir -p \$dldir~
15453       $install_prog $dir/$dlname \$dldir/$dlname~
15454       chmod a+x \$dldir/$dlname'
15455     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15456       dlpath=$dir/\$dldll~
15457        $rm \$dlpath'
15458     shlibpath_overrides_runpath=yes
15459
15460     case $host_os in
15461     cygwin*)
15462       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15463       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15464       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15465       ;;
15466     mingw*)
15467       # MinGW DLLs use traditional 'lib' prefix
15468       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15469       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15470       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15471         # It is most probably a Windows format PATH printed by
15472         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15473         # path with ; separators, and with drive letters. We can handle the
15474         # drive letters (cygwin fileutils understands them), so leave them,
15475         # especially as we might pass files found there to a mingw objdump,
15476         # which wouldn't understand a cygwinified path. Ahh.
15477         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15478       else
15479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15480       fi
15481       ;;
15482     pw32*)
15483       # pw32 DLLs use 'pw' prefix rather than 'lib'
15484       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15485       ;;
15486     esac
15487     ;;
15488
15489   *)
15490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15491     ;;
15492   esac
15493   dynamic_linker='Win32 ld.exe'
15494   # FIXME: first we should search . and the directory the executable is in
15495   shlibpath_var=PATH
15496   ;;
15497
15498 darwin* | rhapsody*)
15499   dynamic_linker="$host_os dyld"
15500   version_type=darwin
15501   need_lib_prefix=no
15502   need_version=no
15503   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15504   soname_spec='${libname}${release}${major}$shared_ext'
15505   shlibpath_overrides_runpath=yes
15506   shlibpath_var=DYLD_LIBRARY_PATH
15507   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15508
15509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15510   ;;
15511
15512 dgux*)
15513   version_type=linux
15514   need_lib_prefix=no
15515   need_version=no
15516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15517   soname_spec='${libname}${release}${shared_ext}$major'
15518   shlibpath_var=LD_LIBRARY_PATH
15519   ;;
15520
15521 freebsd1*)
15522   dynamic_linker=no
15523   ;;
15524
15525 freebsd* | dragonfly*)
15526   # DragonFly does not have aout.  When/if they implement a new
15527   # versioning mechanism, adjust this.
15528   if test -x /usr/bin/objformat; then
15529     objformat=`/usr/bin/objformat`
15530   else
15531     case $host_os in
15532     freebsd[123]*) objformat=aout ;;
15533     *) objformat=elf ;;
15534     esac
15535   fi
15536   version_type=freebsd-$objformat
15537   case $version_type in
15538     freebsd-elf*)
15539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15540       need_version=no
15541       need_lib_prefix=no
15542       ;;
15543     freebsd-*)
15544       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15545       need_version=yes
15546       ;;
15547   esac
15548   shlibpath_var=LD_LIBRARY_PATH
15549   case $host_os in
15550   freebsd2*)
15551     shlibpath_overrides_runpath=yes
15552     ;;
15553   freebsd3.[01]* | freebsdelf3.[01]*)
15554     shlibpath_overrides_runpath=yes
15555     hardcode_into_libs=yes
15556     ;;
15557   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15558   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15559     shlibpath_overrides_runpath=no
15560     hardcode_into_libs=yes
15561     ;;
15562   *) # from 4.6 on, and DragonFly
15563     shlibpath_overrides_runpath=yes
15564     hardcode_into_libs=yes
15565     ;;
15566   esac
15567   ;;
15568
15569 gnu*)
15570   version_type=linux
15571   need_lib_prefix=no
15572   need_version=no
15573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15574   soname_spec='${libname}${release}${shared_ext}$major'
15575   shlibpath_var=LD_LIBRARY_PATH
15576   hardcode_into_libs=yes
15577   ;;
15578
15579 hpux9* | hpux10* | hpux11*)
15580   # Give a soname corresponding to the major version so that dld.sl refuses to
15581   # link against other versions.
15582   version_type=sunos
15583   need_lib_prefix=no
15584   need_version=no
15585   case $host_cpu in
15586   ia64*)
15587     shrext_cmds='.so'
15588     hardcode_into_libs=yes
15589     dynamic_linker="$host_os dld.so"
15590     shlibpath_var=LD_LIBRARY_PATH
15591     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593     soname_spec='${libname}${release}${shared_ext}$major'
15594     if test "X$HPUX_IA64_MODE" = X32; then
15595       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15596     else
15597       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15598     fi
15599     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15600     ;;
15601    hppa*64*)
15602      shrext_cmds='.sl'
15603      hardcode_into_libs=yes
15604      dynamic_linker="$host_os dld.sl"
15605      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15606      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15607      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608      soname_spec='${libname}${release}${shared_ext}$major'
15609      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15610      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15611      ;;
15612    *)
15613     shrext_cmds='.sl'
15614     dynamic_linker="$host_os dld.sl"
15615     shlibpath_var=SHLIB_PATH
15616     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618     soname_spec='${libname}${release}${shared_ext}$major'
15619     ;;
15620   esac
15621   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15622   postinstall_cmds='chmod 555 $lib'
15623   ;;
15624
15625 interix[3-9]*)
15626   version_type=linux
15627   need_lib_prefix=no
15628   need_version=no
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15630   soname_spec='${libname}${release}${shared_ext}$major'
15631   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15632   shlibpath_var=LD_LIBRARY_PATH
15633   shlibpath_overrides_runpath=no
15634   hardcode_into_libs=yes
15635   ;;
15636
15637 irix5* | irix6* | nonstopux*)
15638   case $host_os in
15639     nonstopux*) version_type=nonstopux ;;
15640     *)
15641         if test "$lt_cv_prog_gnu_ld" = yes; then
15642                 version_type=linux
15643         else
15644                 version_type=irix
15645         fi ;;
15646   esac
15647   need_lib_prefix=no
15648   need_version=no
15649   soname_spec='${libname}${release}${shared_ext}$major'
15650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15651   case $host_os in
15652   irix5* | nonstopux*)
15653     libsuff= shlibsuff=
15654     ;;
15655   *)
15656     case $LD in # libtool.m4 will add one of these switches to LD
15657     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15658       libsuff= shlibsuff= libmagic=32-bit;;
15659     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15660       libsuff=32 shlibsuff=N32 libmagic=N32;;
15661     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15662       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15663     *) libsuff= shlibsuff= libmagic=never-match;;
15664     esac
15665     ;;
15666   esac
15667   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15668   shlibpath_overrides_runpath=no
15669   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15670   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15671   hardcode_into_libs=yes
15672   ;;
15673
15674 # No shared lib support for Linux oldld, aout, or coff.
15675 linux*oldld* | linux*aout* | linux*coff*)
15676   dynamic_linker=no
15677   ;;
15678
15679 # This must be Linux ELF.
15680 linux* | k*bsd*-gnu)
15681   version_type=linux
15682   need_lib_prefix=no
15683   need_version=no
15684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   shlibpath_overrides_runpath=no
15689   # This implies no fast_install, which is unacceptable.
15690   # Some rework will be needed to allow for fast_install
15691   # before this can be enabled.
15692   hardcode_into_libs=yes
15693
15694   # Append ld.so.conf contents to the search path
15695   if test -f /etc/ld.so.conf; then
15696     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' ' '`
15697     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15698   fi
15699
15700   # We used to test for /lib/ld.so.1 and disable shared libraries on
15701   # powerpc, because MkLinux only supported shared libraries with the
15702   # GNU dynamic linker.  Since this was broken with cross compilers,
15703   # most powerpc-linux boxes support dynamic linking these days and
15704   # people can always --disable-shared, the test was removed, and we
15705   # assume the GNU/Linux dynamic linker is in use.
15706   dynamic_linker='GNU/Linux ld.so'
15707   ;;
15708
15709 netbsdelf*-gnu)
15710   version_type=linux
15711   need_lib_prefix=no
15712   need_version=no
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15714   soname_spec='${libname}${release}${shared_ext}$major'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   shlibpath_overrides_runpath=no
15717   hardcode_into_libs=yes
15718   dynamic_linker='NetBSD ld.elf_so'
15719   ;;
15720
15721 netbsd*)
15722   version_type=sunos
15723   need_lib_prefix=no
15724   need_version=no
15725   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15726     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15728     dynamic_linker='NetBSD (a.out) ld.so'
15729   else
15730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15731     soname_spec='${libname}${release}${shared_ext}$major'
15732     dynamic_linker='NetBSD ld.elf_so'
15733   fi
15734   shlibpath_var=LD_LIBRARY_PATH
15735   shlibpath_overrides_runpath=yes
15736   hardcode_into_libs=yes
15737   ;;
15738
15739 newsos6)
15740   version_type=linux
15741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742   shlibpath_var=LD_LIBRARY_PATH
15743   shlibpath_overrides_runpath=yes
15744   ;;
15745
15746 nto-qnx*)
15747   version_type=linux
15748   need_lib_prefix=no
15749   need_version=no
15750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751   soname_spec='${libname}${release}${shared_ext}$major'
15752   shlibpath_var=LD_LIBRARY_PATH
15753   shlibpath_overrides_runpath=yes
15754   ;;
15755
15756 openbsd*)
15757   version_type=sunos
15758   sys_lib_dlsearch_path_spec="/usr/lib"
15759   need_lib_prefix=no
15760   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15761   case $host_os in
15762     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15763     *)                         need_version=no  ;;
15764   esac
15765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15766   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15767   shlibpath_var=LD_LIBRARY_PATH
15768   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15769     case $host_os in
15770       openbsd2.[89] | openbsd2.[89].*)
15771         shlibpath_overrides_runpath=no
15772         ;;
15773       *)
15774         shlibpath_overrides_runpath=yes
15775         ;;
15776       esac
15777   else
15778     shlibpath_overrides_runpath=yes
15779   fi
15780   ;;
15781
15782 os2*)
15783   libname_spec='$name'
15784   shrext_cmds=".dll"
15785   need_lib_prefix=no
15786   library_names_spec='$libname${shared_ext} $libname.a'
15787   dynamic_linker='OS/2 ld.exe'
15788   shlibpath_var=LIBPATH
15789   ;;
15790
15791 osf3* | osf4* | osf5*)
15792   version_type=osf
15793   need_lib_prefix=no
15794   need_version=no
15795   soname_spec='${libname}${release}${shared_ext}$major'
15796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797   shlibpath_var=LD_LIBRARY_PATH
15798   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15799   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15800   ;;
15801
15802 rdos*)
15803   dynamic_linker=no
15804   ;;
15805
15806 solaris*)
15807   version_type=linux
15808   need_lib_prefix=no
15809   need_version=no
15810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811   soname_spec='${libname}${release}${shared_ext}$major'
15812   shlibpath_var=LD_LIBRARY_PATH
15813   shlibpath_overrides_runpath=yes
15814   hardcode_into_libs=yes
15815   # ldd complains unless libraries are executable
15816   postinstall_cmds='chmod +x $lib'
15817   ;;
15818
15819 sunos4*)
15820   version_type=sunos
15821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15822   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15823   shlibpath_var=LD_LIBRARY_PATH
15824   shlibpath_overrides_runpath=yes
15825   if test "$with_gnu_ld" = yes; then
15826     need_lib_prefix=no
15827   fi
15828   need_version=yes
15829   ;;
15830
15831 sysv4 | sysv4.3*)
15832   version_type=linux
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   shlibpath_var=LD_LIBRARY_PATH
15836   case $host_vendor in
15837     sni)
15838       shlibpath_overrides_runpath=no
15839       need_lib_prefix=no
15840       export_dynamic_flag_spec='${wl}-Blargedynsym'
15841       runpath_var=LD_RUN_PATH
15842       ;;
15843     siemens)
15844       need_lib_prefix=no
15845       ;;
15846     motorola)
15847       need_lib_prefix=no
15848       need_version=no
15849       shlibpath_overrides_runpath=no
15850       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15851       ;;
15852   esac
15853   ;;
15854
15855 sysv4*MP*)
15856   if test -d /usr/nec ;then
15857     version_type=linux
15858     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15859     soname_spec='$libname${shared_ext}.$major'
15860     shlibpath_var=LD_LIBRARY_PATH
15861   fi
15862   ;;
15863
15864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15865   version_type=freebsd-elf
15866   need_lib_prefix=no
15867   need_version=no
15868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15869   soname_spec='${libname}${release}${shared_ext}$major'
15870   shlibpath_var=LD_LIBRARY_PATH
15871   hardcode_into_libs=yes
15872   if test "$with_gnu_ld" = yes; then
15873     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15874     shlibpath_overrides_runpath=no
15875   else
15876     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15877     shlibpath_overrides_runpath=yes
15878     case $host_os in
15879       sco3.2v5*)
15880         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15881         ;;
15882     esac
15883   fi
15884   sys_lib_dlsearch_path_spec='/usr/lib'
15885   ;;
15886
15887 uts4*)
15888   version_type=linux
15889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890   soname_spec='${libname}${release}${shared_ext}$major'
15891   shlibpath_var=LD_LIBRARY_PATH
15892   ;;
15893
15894 *)
15895   dynamic_linker=no
15896   ;;
15897 esac
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15899 $as_echo "$dynamic_linker" >&6; }
15900 test "$dynamic_linker" = no && can_build_shared=no
15901
15902 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15903   $as_echo_n "(cached) " >&6
15904 else
15905   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15906 fi
15907
15908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15909 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15910   $as_echo_n "(cached) " >&6
15911 else
15912   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15913 fi
15914
15915 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15916
15917 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15918 if test "$GCC" = yes; then
15919   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15920 fi
15921
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15923 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15924 hardcode_action_F77=
15925 if test -n "$hardcode_libdir_flag_spec_F77" || \
15926    test -n "$runpath_var_F77" || \
15927    test "X$hardcode_automatic_F77" = "Xyes" ; then
15928
15929   # We can hardcode non-existant directories.
15930   if test "$hardcode_direct_F77" != no &&
15931      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15932      # have to relink, otherwise we might link with an installed library
15933      # when we should be linking with a yet-to-be-installed one
15934      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15935      test "$hardcode_minus_L_F77" != no; then
15936     # Linking always hardcodes the temporary library directory.
15937     hardcode_action_F77=relink
15938   else
15939     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15940     hardcode_action_F77=immediate
15941   fi
15942 else
15943   # We cannot hardcode anything, or else we can only hardcode existing
15944   # directories.
15945   hardcode_action_F77=unsupported
15946 fi
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15948 $as_echo "$hardcode_action_F77" >&6; }
15949
15950 if test "$hardcode_action_F77" = relink; then
15951   # Fast installation is not supported
15952   enable_fast_install=no
15953 elif test "$shlibpath_overrides_runpath" = yes ||
15954      test "$enable_shared" = no; then
15955   # Fast installation is not necessary
15956   enable_fast_install=needless
15957 fi
15958
15959
15960 # The else clause should only fire when bootstrapping the
15961 # libtool distribution, otherwise you forgot to ship ltmain.sh
15962 # with your package, and you will get complaints that there are
15963 # no rules to generate ltmain.sh.
15964 if test -f "$ltmain"; then
15965   # See if we are running on zsh, and set the options which allow our commands through
15966   # without removal of \ escapes.
15967   if test -n "${ZSH_VERSION+set}" ; then
15968     setopt NO_GLOB_SUBST
15969   fi
15970   # Now quote all the things that may contain metacharacters while being
15971   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15972   # variables and quote the copies for generation of the libtool script.
15973   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15974     SED SHELL STRIP \
15975     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15976     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15977     deplibs_check_method reload_flag reload_cmds need_locks \
15978     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15979     lt_cv_sys_global_symbol_to_c_name_address \
15980     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15981     old_postinstall_cmds old_postuninstall_cmds \
15982     compiler_F77 \
15983     CC_F77 \
15984     LD_F77 \
15985     lt_prog_compiler_wl_F77 \
15986     lt_prog_compiler_pic_F77 \
15987     lt_prog_compiler_static_F77 \
15988     lt_prog_compiler_no_builtin_flag_F77 \
15989     export_dynamic_flag_spec_F77 \
15990     thread_safe_flag_spec_F77 \
15991     whole_archive_flag_spec_F77 \
15992     enable_shared_with_static_runtimes_F77 \
15993     old_archive_cmds_F77 \
15994     old_archive_from_new_cmds_F77 \
15995     predep_objects_F77 \
15996     postdep_objects_F77 \
15997     predeps_F77 \
15998     postdeps_F77 \
15999     compiler_lib_search_path_F77 \
16000     compiler_lib_search_dirs_F77 \
16001     archive_cmds_F77 \
16002     archive_expsym_cmds_F77 \
16003     postinstall_cmds_F77 \
16004     postuninstall_cmds_F77 \
16005     old_archive_from_expsyms_cmds_F77 \
16006     allow_undefined_flag_F77 \
16007     no_undefined_flag_F77 \
16008     export_symbols_cmds_F77 \
16009     hardcode_libdir_flag_spec_F77 \
16010     hardcode_libdir_flag_spec_ld_F77 \
16011     hardcode_libdir_separator_F77 \
16012     hardcode_automatic_F77 \
16013     module_cmds_F77 \
16014     module_expsym_cmds_F77 \
16015     lt_cv_prog_compiler_c_o_F77 \
16016     fix_srcfile_path_F77 \
16017     exclude_expsyms_F77 \
16018     include_expsyms_F77; do
16019
16020     case $var in
16021     old_archive_cmds_F77 | \
16022     old_archive_from_new_cmds_F77 | \
16023     archive_cmds_F77 | \
16024     archive_expsym_cmds_F77 | \
16025     module_cmds_F77 | \
16026     module_expsym_cmds_F77 | \
16027     old_archive_from_expsyms_cmds_F77 | \
16028     export_symbols_cmds_F77 | \
16029     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16030     postinstall_cmds | postuninstall_cmds | \
16031     old_postinstall_cmds | old_postuninstall_cmds | \
16032     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16033       # Double-quote double-evaled strings.
16034       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16035       ;;
16036     *)
16037       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16038       ;;
16039     esac
16040   done
16041
16042   case $lt_echo in
16043   *'\$0 --fallback-echo"')
16044     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16045     ;;
16046   esac
16047
16048 cfgfile="$ofile"
16049
16050   cat <<__EOF__ >> "$cfgfile"
16051 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16052
16053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16054
16055 # Shell to use when invoking shell scripts.
16056 SHELL=$lt_SHELL
16057
16058 # Whether or not to build shared libraries.
16059 build_libtool_libs=$enable_shared
16060
16061 # Whether or not to build static libraries.
16062 build_old_libs=$enable_static
16063
16064 # Whether or not to add -lc for building shared libraries.
16065 build_libtool_need_lc=$archive_cmds_need_lc_F77
16066
16067 # Whether or not to disallow shared libs when runtime libs are static
16068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16069
16070 # Whether or not to optimize for fast installation.
16071 fast_install=$enable_fast_install
16072
16073 # The host system.
16074 host_alias=$host_alias
16075 host=$host
16076 host_os=$host_os
16077
16078 # The build system.
16079 build_alias=$build_alias
16080 build=$build
16081 build_os=$build_os
16082
16083 # An echo program that does not interpret backslashes.
16084 echo=$lt_echo
16085
16086 # The archiver.
16087 AR=$lt_AR
16088 AR_FLAGS=$lt_AR_FLAGS
16089
16090 # A C compiler.
16091 LTCC=$lt_LTCC
16092
16093 # LTCC compiler flags.
16094 LTCFLAGS=$lt_LTCFLAGS
16095
16096 # A language-specific compiler.
16097 CC=$lt_compiler_F77
16098
16099 # Is the compiler the GNU C compiler?
16100 with_gcc=$GCC_F77
16101
16102 # An ERE matcher.
16103 EGREP=$lt_EGREP
16104
16105 # The linker used to build libraries.
16106 LD=$lt_LD_F77
16107
16108 # Whether we need hard or soft links.
16109 LN_S=$lt_LN_S
16110
16111 # A BSD-compatible nm program.
16112 NM=$lt_NM
16113
16114 # A symbol stripping program
16115 STRIP=$lt_STRIP
16116
16117 # Used to examine libraries when file_magic_cmd begins "file"
16118 MAGIC_CMD=$MAGIC_CMD
16119
16120 # Used on cygwin: DLL creation program.
16121 DLLTOOL="$DLLTOOL"
16122
16123 # Used on cygwin: object dumper.
16124 OBJDUMP="$OBJDUMP"
16125
16126 # Used on cygwin: assembler.
16127 AS="$AS"
16128
16129 # The name of the directory that contains temporary libtool files.
16130 objdir=$objdir
16131
16132 # How to create reloadable object files.
16133 reload_flag=$lt_reload_flag
16134 reload_cmds=$lt_reload_cmds
16135
16136 # How to pass a linker flag through the compiler.
16137 wl=$lt_lt_prog_compiler_wl_F77
16138
16139 # Object file suffix (normally "o").
16140 objext="$ac_objext"
16141
16142 # Old archive suffix (normally "a").
16143 libext="$libext"
16144
16145 # Shared library suffix (normally ".so").
16146 shrext_cmds='$shrext_cmds'
16147
16148 # Executable file suffix (normally "").
16149 exeext="$exeext"
16150
16151 # Additional compiler flags for building library objects.
16152 pic_flag=$lt_lt_prog_compiler_pic_F77
16153 pic_mode=$pic_mode
16154
16155 # What is the maximum length of a command?
16156 max_cmd_len=$lt_cv_sys_max_cmd_len
16157
16158 # Does compiler simultaneously support -c and -o options?
16159 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16160
16161 # Must we lock files when doing compilation?
16162 need_locks=$lt_need_locks
16163
16164 # Do we need the lib prefix for modules?
16165 need_lib_prefix=$need_lib_prefix
16166
16167 # Do we need a version for libraries?
16168 need_version=$need_version
16169
16170 # Whether dlopen is supported.
16171 dlopen_support=$enable_dlopen
16172
16173 # Whether dlopen of programs is supported.
16174 dlopen_self=$enable_dlopen_self
16175
16176 # Whether dlopen of statically linked programs is supported.
16177 dlopen_self_static=$enable_dlopen_self_static
16178
16179 # Compiler flag to prevent dynamic linking.
16180 link_static_flag=$lt_lt_prog_compiler_static_F77
16181
16182 # Compiler flag to turn off builtin functions.
16183 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16184
16185 # Compiler flag to allow reflexive dlopens.
16186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16187
16188 # Compiler flag to generate shared objects directly from archives.
16189 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16190
16191 # Compiler flag to generate thread-safe objects.
16192 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16193
16194 # Library versioning type.
16195 version_type=$version_type
16196
16197 # Format of library name prefix.
16198 libname_spec=$lt_libname_spec
16199
16200 # List of archive names.  First name is the real one, the rest are links.
16201 # The last name is the one that the linker finds with -lNAME.
16202 library_names_spec=$lt_library_names_spec
16203
16204 # The coded name of the library, if different from the real name.
16205 soname_spec=$lt_soname_spec
16206
16207 # Commands used to build and install an old-style archive.
16208 RANLIB=$lt_RANLIB
16209 old_archive_cmds=$lt_old_archive_cmds_F77
16210 old_postinstall_cmds=$lt_old_postinstall_cmds
16211 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16212
16213 # Create an old-style archive from a shared archive.
16214 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16215
16216 # Create a temporary old-style archive to link instead of a shared archive.
16217 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16218
16219 # Commands used to build and install a shared archive.
16220 archive_cmds=$lt_archive_cmds_F77
16221 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16222 postinstall_cmds=$lt_postinstall_cmds
16223 postuninstall_cmds=$lt_postuninstall_cmds
16224
16225 # Commands used to build a loadable module (assumed same as above if empty)
16226 module_cmds=$lt_module_cmds_F77
16227 module_expsym_cmds=$lt_module_expsym_cmds_F77
16228
16229 # Commands to strip libraries.
16230 old_striplib=$lt_old_striplib
16231 striplib=$lt_striplib
16232
16233 # Dependencies to place before the objects being linked to create a
16234 # shared library.
16235 predep_objects=$lt_predep_objects_F77
16236
16237 # Dependencies to place after the objects being linked to create a
16238 # shared library.
16239 postdep_objects=$lt_postdep_objects_F77
16240
16241 # Dependencies to place before the objects being linked to create a
16242 # shared library.
16243 predeps=$lt_predeps_F77
16244
16245 # Dependencies to place after the objects being linked to create a
16246 # shared library.
16247 postdeps=$lt_postdeps_F77
16248
16249 # The directories searched by this compiler when creating a shared
16250 # library
16251 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16252
16253 # The library search path used internally by the compiler when linking
16254 # a shared library.
16255 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16256
16257 # Method to check whether dependent libraries are shared objects.
16258 deplibs_check_method=$lt_deplibs_check_method
16259
16260 # Command to use when deplibs_check_method == file_magic.
16261 file_magic_cmd=$lt_file_magic_cmd
16262
16263 # Flag that allows shared libraries with undefined symbols to be built.
16264 allow_undefined_flag=$lt_allow_undefined_flag_F77
16265
16266 # Flag that forces no undefined symbols.
16267 no_undefined_flag=$lt_no_undefined_flag_F77
16268
16269 # Commands used to finish a libtool library installation in a directory.
16270 finish_cmds=$lt_finish_cmds
16271
16272 # Same as above, but a single script fragment to be evaled but not shown.
16273 finish_eval=$lt_finish_eval
16274
16275 # Take the output of nm and produce a listing of raw symbols and C names.
16276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16277
16278 # Transform the output of nm in a proper C declaration
16279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16280
16281 # Transform the output of nm in a C name address pair
16282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16283
16284 # This is the shared library runtime path variable.
16285 runpath_var=$runpath_var
16286
16287 # This is the shared library path variable.
16288 shlibpath_var=$shlibpath_var
16289
16290 # Is shlibpath searched before the hard-coded library search path?
16291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16292
16293 # How to hardcode a shared library path into an executable.
16294 hardcode_action=$hardcode_action_F77
16295
16296 # Whether we should hardcode library paths into libraries.
16297 hardcode_into_libs=$hardcode_into_libs
16298
16299 # Flag to hardcode \$libdir into a binary during linking.
16300 # This must work even if \$libdir does not exist.
16301 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16302
16303 # If ld is used when linking, flag to hardcode \$libdir into
16304 # a binary during linking. This must work even if \$libdir does
16305 # not exist.
16306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16307
16308 # Whether we need a single -rpath flag with a separated argument.
16309 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16310
16311 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16312 # resulting binary.
16313 hardcode_direct=$hardcode_direct_F77
16314
16315 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16316 # resulting binary.
16317 hardcode_minus_L=$hardcode_minus_L_F77
16318
16319 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16320 # the resulting binary.
16321 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16322
16323 # Set to yes if building a shared library automatically hardcodes DIR into the library
16324 # and all subsequent libraries and executables linked against it.
16325 hardcode_automatic=$hardcode_automatic_F77
16326
16327 # Variables whose values should be saved in libtool wrapper scripts and
16328 # restored at relink time.
16329 variables_saved_for_relink="$variables_saved_for_relink"
16330
16331 # Whether libtool must link a program against all its dependency libraries.
16332 link_all_deplibs=$link_all_deplibs_F77
16333
16334 # Compile-time system search path for libraries
16335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16336
16337 # Run-time system search path for libraries
16338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16339
16340 # Fix the shell variable \$srcfile for the compiler.
16341 fix_srcfile_path=$lt_fix_srcfile_path
16342
16343 # Set to yes if exported symbols are required.
16344 always_export_symbols=$always_export_symbols_F77
16345
16346 # The commands to list exported symbols.
16347 export_symbols_cmds=$lt_export_symbols_cmds_F77
16348
16349 # The commands to extract the exported symbol list from a shared archive.
16350 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16351
16352 # Symbols that should not be listed in the preloaded symbols.
16353 exclude_expsyms=$lt_exclude_expsyms_F77
16354
16355 # Symbols that must always be exported.
16356 include_expsyms=$lt_include_expsyms_F77
16357
16358 # ### END LIBTOOL TAG CONFIG: $tagname
16359
16360 __EOF__
16361
16362
16363 else
16364   # If there is no Makefile yet, we rely on a make rule to execute
16365   # `config.status --recheck' to rerun these tests and create the
16366   # libtool script then.
16367   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16368   if test -f "$ltmain_in"; then
16369     test -f Makefile && make "$ltmain"
16370   fi
16371 fi
16372
16373
16374 ac_ext=c
16375 ac_cpp='$CPP $CPPFLAGS'
16376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16379
16380 CC="$lt_save_CC"
16381
16382         else
16383           tagname=""
16384         fi
16385         ;;
16386
16387       GCJ)
16388         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16389
16390
16391 # Source file extension for Java test sources.
16392 ac_ext=java
16393
16394 # Object file extension for compiled Java test sources.
16395 objext=o
16396 objext_GCJ=$objext
16397
16398 # Code to be used in simple compile tests
16399 lt_simple_compile_test_code="class foo {}"
16400
16401 # Code to be used in simple link tests
16402 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16403
16404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16405
16406 # If no C compiler was specified, use CC.
16407 LTCC=${LTCC-"$CC"}
16408
16409 # If no C compiler flags were specified, use CFLAGS.
16410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16411
16412 # Allow CC to be a program name with arguments.
16413 compiler=$CC
16414
16415
16416 # save warnings/boilerplate of simple test code
16417 ac_outfile=conftest.$ac_objext
16418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16420 _lt_compiler_boilerplate=`cat conftest.err`
16421 $rm conftest*
16422
16423 ac_outfile=conftest.$ac_objext
16424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16426 _lt_linker_boilerplate=`cat conftest.err`
16427 $rm -r conftest*
16428
16429
16430 # Allow CC to be a program name with arguments.
16431 lt_save_CC="$CC"
16432 CC=${GCJ-"gcj"}
16433 compiler=$CC
16434 compiler_GCJ=$CC
16435 for cc_temp in $compiler""; do
16436   case $cc_temp in
16437     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16438     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16439     \-*) ;;
16440     *) break;;
16441   esac
16442 done
16443 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16444
16445
16446 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16447 archive_cmds_need_lc_GCJ=no
16448
16449 old_archive_cmds_GCJ=$old_archive_cmds
16450
16451
16452 lt_prog_compiler_no_builtin_flag_GCJ=
16453
16454 if test "$GCC" = yes; then
16455   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16456
16457
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16459 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16460 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16461   $as_echo_n "(cached) " >&6
16462 else
16463   lt_cv_prog_compiler_rtti_exceptions=no
16464   ac_outfile=conftest.$ac_objext
16465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16466    lt_compiler_flag="-fno-rtti -fno-exceptions"
16467    # Insert the option either (1) after the last *FLAGS variable, or
16468    # (2) before a word containing "conftest.", or (3) at the end.
16469    # Note that $ac_compile itself does not contain backslashes and begins
16470    # with a dollar sign (not a hyphen), so the echo should work correctly.
16471    # The option is referenced via a variable to avoid confusing sed.
16472    lt_compile=`echo "$ac_compile" | $SED \
16473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16475    -e 's:$: $lt_compiler_flag:'`
16476    (eval echo "\"\$as_me:16476: $lt_compile\"" >&5)
16477    (eval "$lt_compile" 2>conftest.err)
16478    ac_status=$?
16479    cat conftest.err >&5
16480    echo "$as_me:16480: \$? = $ac_status" >&5
16481    if (exit $ac_status) && test -s "$ac_outfile"; then
16482      # The compiler can only warn and ignore the option if not recognized
16483      # So say no if there are warnings other than the usual output.
16484      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16485      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16486      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16487        lt_cv_prog_compiler_rtti_exceptions=yes
16488      fi
16489    fi
16490    $rm conftest*
16491
16492 fi
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16494 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16495
16496 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16497     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16498 else
16499     :
16500 fi
16501
16502 fi
16503
16504 lt_prog_compiler_wl_GCJ=
16505 lt_prog_compiler_pic_GCJ=
16506 lt_prog_compiler_static_GCJ=
16507
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16509 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16510
16511   if test "$GCC" = yes; then
16512     lt_prog_compiler_wl_GCJ='-Wl,'
16513     lt_prog_compiler_static_GCJ='-static'
16514
16515     case $host_os in
16516       aix*)
16517       # All AIX code is PIC.
16518       if test "$host_cpu" = ia64; then
16519         # AIX 5 now supports IA64 processor
16520         lt_prog_compiler_static_GCJ='-Bstatic'
16521       fi
16522       ;;
16523
16524     amigaos*)
16525       # FIXME: we need at least 68020 code to build shared libraries, but
16526       # adding the `-m68020' flag to GCC prevents building anything better,
16527       # like `-m68040'.
16528       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16529       ;;
16530
16531     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16532       # PIC is the default for these OSes.
16533       ;;
16534
16535     mingw* | cygwin* | pw32* | os2*)
16536       # This hack is so that the source file can tell whether it is being
16537       # built for inclusion in a dll (and should export symbols for example).
16538       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16539       # (--disable-auto-import) libraries
16540
16541       ;;
16542
16543     darwin* | rhapsody*)
16544       # PIC is the default on this platform
16545       # Common symbols not allowed in MH_DYLIB files
16546       lt_prog_compiler_pic_GCJ='-fno-common'
16547       ;;
16548
16549     interix[3-9]*)
16550       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16551       # Instead, we relocate shared libraries at runtime.
16552       ;;
16553
16554     msdosdjgpp*)
16555       # Just because we use GCC doesn't mean we suddenly get shared libraries
16556       # on systems that don't support them.
16557       lt_prog_compiler_can_build_shared_GCJ=no
16558       enable_shared=no
16559       ;;
16560
16561     sysv4*MP*)
16562       if test -d /usr/nec; then
16563         lt_prog_compiler_pic_GCJ=-Kconform_pic
16564       fi
16565       ;;
16566
16567     hpux*)
16568       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16569       # not for PA HP-UX.
16570       case $host_cpu in
16571       hppa*64*|ia64*)
16572         # +Z the default
16573         ;;
16574       *)
16575         lt_prog_compiler_pic_GCJ='-fPIC'
16576         ;;
16577       esac
16578       ;;
16579
16580     *)
16581       lt_prog_compiler_pic_GCJ='-fPIC'
16582       ;;
16583     esac
16584   else
16585     # PORTME Check for flag to pass linker flags through the system compiler.
16586     case $host_os in
16587     aix*)
16588       lt_prog_compiler_wl_GCJ='-Wl,'
16589       if test "$host_cpu" = ia64; then
16590         # AIX 5 now supports IA64 processor
16591         lt_prog_compiler_static_GCJ='-Bstatic'
16592       else
16593         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16594       fi
16595       ;;
16596       darwin*)
16597         # PIC is the default on this platform
16598         # Common symbols not allowed in MH_DYLIB files
16599        case $cc_basename in
16600          xlc*)
16601          lt_prog_compiler_pic_GCJ='-qnocommon'
16602          lt_prog_compiler_wl_GCJ='-Wl,'
16603          ;;
16604        esac
16605        ;;
16606
16607     mingw* | cygwin* | pw32* | os2*)
16608       # This hack is so that the source file can tell whether it is being
16609       # built for inclusion in a dll (and should export symbols for example).
16610
16611       ;;
16612
16613     hpux9* | hpux10* | hpux11*)
16614       lt_prog_compiler_wl_GCJ='-Wl,'
16615       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16616       # not for PA HP-UX.
16617       case $host_cpu in
16618       hppa*64*|ia64*)
16619         # +Z the default
16620         ;;
16621       *)
16622         lt_prog_compiler_pic_GCJ='+Z'
16623         ;;
16624       esac
16625       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16626       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16627       ;;
16628
16629     irix5* | irix6* | nonstopux*)
16630       lt_prog_compiler_wl_GCJ='-Wl,'
16631       # PIC (with -KPIC) is the default.
16632       lt_prog_compiler_static_GCJ='-non_shared'
16633       ;;
16634
16635     newsos6)
16636       lt_prog_compiler_pic_GCJ='-KPIC'
16637       lt_prog_compiler_static_GCJ='-Bstatic'
16638       ;;
16639
16640     linux* | k*bsd*-gnu)
16641       case $cc_basename in
16642       icc* | ecc*)
16643         lt_prog_compiler_wl_GCJ='-Wl,'
16644         lt_prog_compiler_pic_GCJ='-KPIC'
16645         lt_prog_compiler_static_GCJ='-static'
16646         ;;
16647       pgcc* | pgf77* | pgf90* | pgf95*)
16648         # Portland Group compilers (*not* the Pentium gcc compiler,
16649         # which looks to be a dead project)
16650         lt_prog_compiler_wl_GCJ='-Wl,'
16651         lt_prog_compiler_pic_GCJ='-fpic'
16652         lt_prog_compiler_static_GCJ='-Bstatic'
16653         ;;
16654       ccc*)
16655         lt_prog_compiler_wl_GCJ='-Wl,'
16656         # All Alpha code is PIC.
16657         lt_prog_compiler_static_GCJ='-non_shared'
16658         ;;
16659       *)
16660         case `$CC -V 2>&1 | sed 5q` in
16661         *Sun\ C*)
16662           # Sun C 5.9
16663           lt_prog_compiler_pic_GCJ='-KPIC'
16664           lt_prog_compiler_static_GCJ='-Bstatic'
16665           lt_prog_compiler_wl_GCJ='-Wl,'
16666           ;;
16667         *Sun\ F*)
16668           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16669           lt_prog_compiler_pic_GCJ='-KPIC'
16670           lt_prog_compiler_static_GCJ='-Bstatic'
16671           lt_prog_compiler_wl_GCJ=''
16672           ;;
16673         esac
16674         ;;
16675       esac
16676       ;;
16677
16678     osf3* | osf4* | osf5*)
16679       lt_prog_compiler_wl_GCJ='-Wl,'
16680       # All OSF/1 code is PIC.
16681       lt_prog_compiler_static_GCJ='-non_shared'
16682       ;;
16683
16684     rdos*)
16685       lt_prog_compiler_static_GCJ='-non_shared'
16686       ;;
16687
16688     solaris*)
16689       lt_prog_compiler_pic_GCJ='-KPIC'
16690       lt_prog_compiler_static_GCJ='-Bstatic'
16691       case $cc_basename in
16692       f77* | f90* | f95*)
16693         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16694       *)
16695         lt_prog_compiler_wl_GCJ='-Wl,';;
16696       esac
16697       ;;
16698
16699     sunos4*)
16700       lt_prog_compiler_wl_GCJ='-Qoption ld '
16701       lt_prog_compiler_pic_GCJ='-PIC'
16702       lt_prog_compiler_static_GCJ='-Bstatic'
16703       ;;
16704
16705     sysv4 | sysv4.2uw2* | sysv4.3*)
16706       lt_prog_compiler_wl_GCJ='-Wl,'
16707       lt_prog_compiler_pic_GCJ='-KPIC'
16708       lt_prog_compiler_static_GCJ='-Bstatic'
16709       ;;
16710
16711     sysv4*MP*)
16712       if test -d /usr/nec ;then
16713         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16714         lt_prog_compiler_static_GCJ='-Bstatic'
16715       fi
16716       ;;
16717
16718     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16719       lt_prog_compiler_wl_GCJ='-Wl,'
16720       lt_prog_compiler_pic_GCJ='-KPIC'
16721       lt_prog_compiler_static_GCJ='-Bstatic'
16722       ;;
16723
16724     unicos*)
16725       lt_prog_compiler_wl_GCJ='-Wl,'
16726       lt_prog_compiler_can_build_shared_GCJ=no
16727       ;;
16728
16729     uts4*)
16730       lt_prog_compiler_pic_GCJ='-pic'
16731       lt_prog_compiler_static_GCJ='-Bstatic'
16732       ;;
16733
16734     *)
16735       lt_prog_compiler_can_build_shared_GCJ=no
16736       ;;
16737     esac
16738   fi
16739
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16741 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16742
16743 #
16744 # Check to make sure the PIC flag actually works.
16745 #
16746 if test -n "$lt_prog_compiler_pic_GCJ"; then
16747
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16749 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16750 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16751   $as_echo_n "(cached) " >&6
16752 else
16753   lt_cv_prog_compiler_pic_works_GCJ=no
16754   ac_outfile=conftest.$ac_objext
16755    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16756    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16757    # Insert the option either (1) after the last *FLAGS variable, or
16758    # (2) before a word containing "conftest.", or (3) at the end.
16759    # Note that $ac_compile itself does not contain backslashes and begins
16760    # with a dollar sign (not a hyphen), so the echo should work correctly.
16761    # The option is referenced via a variable to avoid confusing sed.
16762    lt_compile=`echo "$ac_compile" | $SED \
16763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16765    -e 's:$: $lt_compiler_flag:'`
16766    (eval echo "\"\$as_me:16766: $lt_compile\"" >&5)
16767    (eval "$lt_compile" 2>conftest.err)
16768    ac_status=$?
16769    cat conftest.err >&5
16770    echo "$as_me:16770: \$? = $ac_status" >&5
16771    if (exit $ac_status) && test -s "$ac_outfile"; then
16772      # The compiler can only warn and ignore the option if not recognized
16773      # So say no if there are warnings other than the usual output.
16774      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16775      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16776      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16777        lt_cv_prog_compiler_pic_works_GCJ=yes
16778      fi
16779    fi
16780    $rm conftest*
16781
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16784 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16785
16786 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16787     case $lt_prog_compiler_pic_GCJ in
16788      "" | " "*) ;;
16789      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16790      esac
16791 else
16792     lt_prog_compiler_pic_GCJ=
16793      lt_prog_compiler_can_build_shared_GCJ=no
16794 fi
16795
16796 fi
16797 case $host_os in
16798   # For platforms which do not support PIC, -DPIC is meaningless:
16799   *djgpp*)
16800     lt_prog_compiler_pic_GCJ=
16801     ;;
16802   *)
16803     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16804     ;;
16805 esac
16806
16807 #
16808 # Check to make sure the static flag actually works.
16809 #
16810 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16812 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16813 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16814   $as_echo_n "(cached) " >&6
16815 else
16816   lt_cv_prog_compiler_static_works_GCJ=no
16817    save_LDFLAGS="$LDFLAGS"
16818    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16819    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16820    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16821      # The linker can only warn and ignore the option if not recognized
16822      # So say no if there are warnings
16823      if test -s conftest.err; then
16824        # Append any errors to the config.log.
16825        cat conftest.err 1>&5
16826        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16827        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16828        if diff conftest.exp conftest.er2 >/dev/null; then
16829          lt_cv_prog_compiler_static_works_GCJ=yes
16830        fi
16831      else
16832        lt_cv_prog_compiler_static_works_GCJ=yes
16833      fi
16834    fi
16835    $rm -r conftest*
16836    LDFLAGS="$save_LDFLAGS"
16837
16838 fi
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16840 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16841
16842 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16843     :
16844 else
16845     lt_prog_compiler_static_GCJ=
16846 fi
16847
16848
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16851 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16852   $as_echo_n "(cached) " >&6
16853 else
16854   lt_cv_prog_compiler_c_o_GCJ=no
16855    $rm -r conftest 2>/dev/null
16856    mkdir conftest
16857    cd conftest
16858    mkdir out
16859    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16860
16861    lt_compiler_flag="-o out/conftest2.$ac_objext"
16862    # Insert the option either (1) after the last *FLAGS variable, or
16863    # (2) before a word containing "conftest.", or (3) at the end.
16864    # Note that $ac_compile itself does not contain backslashes and begins
16865    # with a dollar sign (not a hyphen), so the echo should work correctly.
16866    lt_compile=`echo "$ac_compile" | $SED \
16867    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16869    -e 's:$: $lt_compiler_flag:'`
16870    (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
16871    (eval "$lt_compile" 2>out/conftest.err)
16872    ac_status=$?
16873    cat out/conftest.err >&5
16874    echo "$as_me:16874: \$? = $ac_status" >&5
16875    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16876    then
16877      # The compiler can only warn and ignore the option if not recognized
16878      # So say no if there are warnings
16879      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16880      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16881      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16882        lt_cv_prog_compiler_c_o_GCJ=yes
16883      fi
16884    fi
16885    chmod u+w . 2>&5
16886    $rm conftest*
16887    # SGI C++ compiler will create directory out/ii_files/ for
16888    # template instantiation
16889    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16890    $rm out/* && rmdir out
16891    cd ..
16892    rmdir conftest
16893    $rm conftest*
16894
16895 fi
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16897 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16898
16899
16900 hard_links="nottested"
16901 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16902   # do not overwrite the value of need_locks provided by the user
16903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16904 $as_echo_n "checking if we can lock with hard links... " >&6; }
16905   hard_links=yes
16906   $rm conftest*
16907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16908   touch conftest.a
16909   ln conftest.a conftest.b 2>&5 || hard_links=no
16910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16912 $as_echo "$hard_links" >&6; }
16913   if test "$hard_links" = no; then
16914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16916     need_locks=warn
16917   fi
16918 else
16919   need_locks=no
16920 fi
16921
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16923 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16924
16925   runpath_var=
16926   allow_undefined_flag_GCJ=
16927   enable_shared_with_static_runtimes_GCJ=no
16928   archive_cmds_GCJ=
16929   archive_expsym_cmds_GCJ=
16930   old_archive_From_new_cmds_GCJ=
16931   old_archive_from_expsyms_cmds_GCJ=
16932   export_dynamic_flag_spec_GCJ=
16933   whole_archive_flag_spec_GCJ=
16934   thread_safe_flag_spec_GCJ=
16935   hardcode_libdir_flag_spec_GCJ=
16936   hardcode_libdir_flag_spec_ld_GCJ=
16937   hardcode_libdir_separator_GCJ=
16938   hardcode_direct_GCJ=no
16939   hardcode_minus_L_GCJ=no
16940   hardcode_shlibpath_var_GCJ=unsupported
16941   link_all_deplibs_GCJ=unknown
16942   hardcode_automatic_GCJ=no
16943   module_cmds_GCJ=
16944   module_expsym_cmds_GCJ=
16945   always_export_symbols_GCJ=no
16946   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16947   # include_expsyms should be a list of space-separated symbols to be *always*
16948   # included in the symbol list
16949   include_expsyms_GCJ=
16950   # exclude_expsyms can be an extended regexp of symbols to exclude
16951   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16952   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16953   # as well as any symbol that contains `d'.
16954   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16955   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16956   # platforms (ab)use it in PIC code, but their linkers get confused if
16957   # the symbol is explicitly referenced.  Since portable code cannot
16958   # rely on this symbol name, it's probably fine to never include it in
16959   # preloaded symbol tables.
16960   # Exclude shared library initialization/finalization symbols.
16961   extract_expsyms_cmds=
16962   # Just being paranoid about ensuring that cc_basename is set.
16963   for cc_temp in $compiler""; do
16964   case $cc_temp in
16965     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16966     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16967     \-*) ;;
16968     *) break;;
16969   esac
16970 done
16971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16972
16973   case $host_os in
16974   cygwin* | mingw* | pw32*)
16975     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16976     # When not using gcc, we currently assume that we are using
16977     # Microsoft Visual C++.
16978     if test "$GCC" != yes; then
16979       with_gnu_ld=no
16980     fi
16981     ;;
16982   interix*)
16983     # we just hope/assume this is gcc and not c89 (= MSVC++)
16984     with_gnu_ld=yes
16985     ;;
16986   openbsd*)
16987     with_gnu_ld=no
16988     ;;
16989   esac
16990
16991   ld_shlibs_GCJ=yes
16992   if test "$with_gnu_ld" = yes; then
16993     # If archive_cmds runs LD, not CC, wlarc should be empty
16994     wlarc='${wl}'
16995
16996     # Set some defaults for GNU ld with shared library support. These
16997     # are reset later if shared libraries are not supported. Putting them
16998     # here allows them to be overridden if necessary.
16999     runpath_var=LD_RUN_PATH
17000     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17001     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17002     # ancient GNU ld didn't support --whole-archive et. al.
17003     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17004         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17005       else
17006         whole_archive_flag_spec_GCJ=
17007     fi
17008     supports_anon_versioning=no
17009     case `$LD -v 2>/dev/null` in
17010       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17011       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17012       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17013       *\ 2.11.*) ;; # other 2.11 versions
17014       *) supports_anon_versioning=yes ;;
17015     esac
17016
17017     # See if GNU ld supports shared libraries.
17018     case $host_os in
17019     aix[3-9]*)
17020       # On AIX/PPC, the GNU linker is very broken
17021       if test "$host_cpu" != ia64; then
17022         ld_shlibs_GCJ=no
17023         cat <<EOF 1>&2
17024
17025 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17026 *** to be unable to reliably create shared libraries on AIX.
17027 *** Therefore, libtool is disabling shared libraries support.  If you
17028 *** really care for shared libraries, you may want to modify your PATH
17029 *** so that a non-GNU linker is found, and then restart.
17030
17031 EOF
17032       fi
17033       ;;
17034
17035     amigaos*)
17036       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)'
17037       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17038       hardcode_minus_L_GCJ=yes
17039
17040       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17041       # that the semantics of dynamic libraries on AmigaOS, at least up
17042       # to version 4, is to share data among multiple programs linked
17043       # with the same dynamic library.  Since this doesn't match the
17044       # behavior of shared libraries on other platforms, we can't use
17045       # them.
17046       ld_shlibs_GCJ=no
17047       ;;
17048
17049     beos*)
17050       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17051         allow_undefined_flag_GCJ=unsupported
17052         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17053         # support --undefined.  This deserves some investigation.  FIXME
17054         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17055       else
17056         ld_shlibs_GCJ=no
17057       fi
17058       ;;
17059
17060     cygwin* | mingw* | pw32*)
17061       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17062       # as there is no search path for DLLs.
17063       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17064       allow_undefined_flag_GCJ=unsupported
17065       always_export_symbols_GCJ=no
17066       enable_shared_with_static_runtimes_GCJ=yes
17067       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17068
17069       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17070         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17071         # If the export-symbols file already is a .def file (1st line
17072         # is EXPORTS), use it as is; otherwise, prepend...
17073         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17074           cp $export_symbols $output_objdir/$soname.def;
17075         else
17076           echo EXPORTS > $output_objdir/$soname.def;
17077           cat $export_symbols >> $output_objdir/$soname.def;
17078         fi~
17079         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17080       else
17081         ld_shlibs_GCJ=no
17082       fi
17083       ;;
17084
17085     interix[3-9]*)
17086       hardcode_direct_GCJ=no
17087       hardcode_shlibpath_var_GCJ=no
17088       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17089       export_dynamic_flag_spec_GCJ='${wl}-E'
17090       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17091       # Instead, shared libraries are loaded at an image base (0x10000000 by
17092       # default) and relocated if they conflict, which is a slow very memory
17093       # consuming and fragmenting process.  To avoid this, we pick a random,
17094       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17095       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17096       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'
17097       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'
17098       ;;
17099
17100     gnu* | linux* | k*bsd*-gnu)
17101       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17102         tmp_addflag=
17103         case $cc_basename,$host_cpu in
17104         pgcc*)                          # Portland Group C compiler
17105           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'
17106           tmp_addflag=' $pic_flag'
17107           ;;
17108         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17109           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'
17110           tmp_addflag=' $pic_flag -Mnomain' ;;
17111         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17112           tmp_addflag=' -i_dynamic' ;;
17113         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17114           tmp_addflag=' -i_dynamic -nofor_main' ;;
17115         ifc* | ifort*)                  # Intel Fortran compiler
17116           tmp_addflag=' -nofor_main' ;;
17117         esac
17118         case `$CC -V 2>&1 | sed 5q` in
17119         *Sun\ C*)                       # Sun C 5.9
17120           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'
17121           tmp_sharedflag='-G' ;;
17122         *Sun\ F*)                       # Sun Fortran 8.3
17123           tmp_sharedflag='-G' ;;
17124         *)
17125           tmp_sharedflag='-shared' ;;
17126         esac
17127         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17128
17129         if test $supports_anon_versioning = yes; then
17130           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17131   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17132   $echo "local: *; };" >> $output_objdir/$libname.ver~
17133           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17134         fi
17135         link_all_deplibs_GCJ=no
17136       else
17137         ld_shlibs_GCJ=no
17138       fi
17139       ;;
17140
17141     netbsd* | netbsdelf*-gnu)
17142       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17143         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17144         wlarc=
17145       else
17146         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17147         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17148       fi
17149       ;;
17150
17151     solaris*)
17152       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17153         ld_shlibs_GCJ=no
17154         cat <<EOF 1>&2
17155
17156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17157 *** create shared libraries on Solaris systems.  Therefore, libtool
17158 *** is disabling shared libraries support.  We urge you to upgrade GNU
17159 *** binutils to release 2.9.1 or newer.  Another option is to modify
17160 *** your PATH or compiler configuration so that the native linker is
17161 *** used, and then restart.
17162
17163 EOF
17164       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17165         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17167       else
17168         ld_shlibs_GCJ=no
17169       fi
17170       ;;
17171
17172     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17173       case `$LD -v 2>&1` in
17174         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17175         ld_shlibs_GCJ=no
17176         cat <<_LT_EOF 1>&2
17177
17178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17179 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17180 *** is disabling shared libraries support.  We urge you to upgrade GNU
17181 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17182 *** your PATH or compiler configuration so that the native linker is
17183 *** used, and then restart.
17184
17185 _LT_EOF
17186         ;;
17187         *)
17188           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17189             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17190             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17191             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17192           else
17193             ld_shlibs_GCJ=no
17194           fi
17195         ;;
17196       esac
17197       ;;
17198
17199     sunos4*)
17200       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17201       wlarc=
17202       hardcode_direct_GCJ=yes
17203       hardcode_shlibpath_var_GCJ=no
17204       ;;
17205
17206     *)
17207       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17208         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17209         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17210       else
17211         ld_shlibs_GCJ=no
17212       fi
17213       ;;
17214     esac
17215
17216     if test "$ld_shlibs_GCJ" = no; then
17217       runpath_var=
17218       hardcode_libdir_flag_spec_GCJ=
17219       export_dynamic_flag_spec_GCJ=
17220       whole_archive_flag_spec_GCJ=
17221     fi
17222   else
17223     # PORTME fill in a description of your system's linker (not GNU ld)
17224     case $host_os in
17225     aix3*)
17226       allow_undefined_flag_GCJ=unsupported
17227       always_export_symbols_GCJ=yes
17228       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'
17229       # Note: this linker hardcodes the directories in LIBPATH if there
17230       # are no directories specified by -L.
17231       hardcode_minus_L_GCJ=yes
17232       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17233         # Neither direct hardcoding nor static linking is supported with a
17234         # broken collect2.
17235         hardcode_direct_GCJ=unsupported
17236       fi
17237       ;;
17238
17239     aix[4-9]*)
17240       if test "$host_cpu" = ia64; then
17241         # On IA64, the linker does run time linking by default, so we don't
17242         # have to do anything special.
17243         aix_use_runtimelinking=no
17244         exp_sym_flag='-Bexport'
17245         no_entry_flag=""
17246       else
17247         # If we're using GNU nm, then we don't want the "-C" option.
17248         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17249         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17250           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'
17251         else
17252           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'
17253         fi
17254         aix_use_runtimelinking=no
17255
17256         # Test if we are trying to use run time linking or normal
17257         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17258         # need to do runtime linking.
17259         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17260           for ld_flag in $LDFLAGS; do
17261           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17262             aix_use_runtimelinking=yes
17263             break
17264           fi
17265           done
17266           ;;
17267         esac
17268
17269         exp_sym_flag='-bexport'
17270         no_entry_flag='-bnoentry'
17271       fi
17272
17273       # When large executables or shared objects are built, AIX ld can
17274       # have problems creating the table of contents.  If linking a library
17275       # or program results in "error TOC overflow" add -mminimal-toc to
17276       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17277       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17278
17279       archive_cmds_GCJ=''
17280       hardcode_direct_GCJ=yes
17281       hardcode_libdir_separator_GCJ=':'
17282       link_all_deplibs_GCJ=yes
17283
17284       if test "$GCC" = yes; then
17285         case $host_os in aix4.[012]|aix4.[012].*)
17286         # We only want to do this on AIX 4.2 and lower, the check
17287         # below for broken collect2 doesn't work under 4.3+
17288           collect2name=`${CC} -print-prog-name=collect2`
17289           if test -f "$collect2name" && \
17290            strings "$collect2name" | grep resolve_lib_name >/dev/null
17291           then
17292           # We have reworked collect2
17293           :
17294           else
17295           # We have old collect2
17296           hardcode_direct_GCJ=unsupported
17297           # It fails to find uninstalled libraries when the uninstalled
17298           # path is not listed in the libpath.  Setting hardcode_minus_L
17299           # to unsupported forces relinking
17300           hardcode_minus_L_GCJ=yes
17301           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17302           hardcode_libdir_separator_GCJ=
17303           fi
17304           ;;
17305         esac
17306         shared_flag='-shared'
17307         if test "$aix_use_runtimelinking" = yes; then
17308           shared_flag="$shared_flag "'${wl}-G'
17309         fi
17310       else
17311         # not using gcc
17312         if test "$host_cpu" = ia64; then
17313         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17314         # chokes on -Wl,-G. The following line is correct:
17315           shared_flag='-G'
17316         else
17317           if test "$aix_use_runtimelinking" = yes; then
17318             shared_flag='${wl}-G'
17319           else
17320             shared_flag='${wl}-bM:SRE'
17321           fi
17322         fi
17323       fi
17324
17325       # It seems that -bexpall does not export symbols beginning with
17326       # underscore (_), so it is better to generate a list of symbols to export.
17327       always_export_symbols_GCJ=yes
17328       if test "$aix_use_runtimelinking" = yes; then
17329         # Warning - without using the other runtime loading flags (-brtl),
17330         # -berok will link without error, but may produce a broken library.
17331         allow_undefined_flag_GCJ='-berok'
17332        # Determine the default libpath from the value encoded in an empty executable.
17333        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h.  */
17335
17336 int
17337 main ()
17338 {
17339
17340   ;
17341   return 0;
17342 }
17343 _ACEOF
17344 if ac_fn_c_try_link "$LINENO"; then :
17345
17346 lt_aix_libpath_sed='
17347     /Import File Strings/,/^$/ {
17348         /^0/ {
17349             s/^0  *\(.*\)$/\1/
17350             p
17351         }
17352     }'
17353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17354 # Check for a 64-bit object if we didn't find anything.
17355 if test -z "$aix_libpath"; then
17356   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17357 fi
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext \
17360     conftest$ac_exeext conftest.$ac_ext
17361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17362
17363        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17364         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"
17365        else
17366         if test "$host_cpu" = ia64; then
17367           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17368           allow_undefined_flag_GCJ="-z nodefs"
17369           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"
17370         else
17371          # Determine the default libpath from the value encoded in an empty executable.
17372          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h.  */
17374
17375 int
17376 main ()
17377 {
17378
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 if ac_fn_c_try_link "$LINENO"; then :
17384
17385 lt_aix_libpath_sed='
17386     /Import File Strings/,/^$/ {
17387         /^0/ {
17388             s/^0  *\(.*\)$/\1/
17389             p
17390         }
17391     }'
17392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17393 # Check for a 64-bit object if we didn't find anything.
17394 if test -z "$aix_libpath"; then
17395   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17396 fi
17397 fi
17398 rm -f core conftest.err conftest.$ac_objext \
17399     conftest$ac_exeext conftest.$ac_ext
17400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17401
17402          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17403           # Warning - without using the other run time loading flags,
17404           # -berok will link without error, but may produce a broken library.
17405           no_undefined_flag_GCJ=' ${wl}-bernotok'
17406           allow_undefined_flag_GCJ=' ${wl}-berok'
17407           # Exported symbols can be pulled into shared objects from archives
17408           whole_archive_flag_spec_GCJ='$convenience'
17409           archive_cmds_need_lc_GCJ=yes
17410           # This is similar to how AIX traditionally builds its shared libraries.
17411           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'
17412         fi
17413       fi
17414       ;;
17415
17416     amigaos*)
17417       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)'
17418       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17419       hardcode_minus_L_GCJ=yes
17420       # see comment about different semantics on the GNU ld section
17421       ld_shlibs_GCJ=no
17422       ;;
17423
17424     bsdi[45]*)
17425       export_dynamic_flag_spec_GCJ=-rdynamic
17426       ;;
17427
17428     cygwin* | mingw* | pw32*)
17429       # When not using gcc, we currently assume that we are using
17430       # Microsoft Visual C++.
17431       # hardcode_libdir_flag_spec is actually meaningless, as there is
17432       # no search path for DLLs.
17433       hardcode_libdir_flag_spec_GCJ=' '
17434       allow_undefined_flag_GCJ=unsupported
17435       # Tell ltmain to make .lib files, not .a files.
17436       libext=lib
17437       # Tell ltmain to make .dll files, not .so files.
17438       shrext_cmds=".dll"
17439       # FIXME: Setting linknames here is a bad hack.
17440       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17441       # The linker will automatically build a .lib file if we build a DLL.
17442       old_archive_From_new_cmds_GCJ='true'
17443       # FIXME: Should let the user specify the lib program.
17444       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17445       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17446       enable_shared_with_static_runtimes_GCJ=yes
17447       ;;
17448
17449     darwin* | rhapsody*)
17450       case $host_os in
17451         rhapsody* | darwin1.[012])
17452          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17453          ;;
17454        *) # Darwin 1.3 on
17455          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17456            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17457          else
17458            case ${MACOSX_DEPLOYMENT_TARGET} in
17459              10.[012])
17460                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17461                ;;
17462              10.*)
17463                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17464                ;;
17465            esac
17466          fi
17467          ;;
17468       esac
17469       archive_cmds_need_lc_GCJ=no
17470       hardcode_direct_GCJ=no
17471       hardcode_automatic_GCJ=yes
17472       hardcode_shlibpath_var_GCJ=unsupported
17473       whole_archive_flag_spec_GCJ=''
17474       link_all_deplibs_GCJ=yes
17475     if test "$GCC" = yes ; then
17476         output_verbose_link_cmd='echo'
17477         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}"
17478         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17479         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}"
17480         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}"
17481     else
17482       case $cc_basename in
17483         xlc*)
17484          output_verbose_link_cmd='echo'
17485          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17486          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17487           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17488          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}'
17489           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}'
17490           ;;
17491        *)
17492          ld_shlibs_GCJ=no
17493           ;;
17494       esac
17495     fi
17496       ;;
17497
17498     dgux*)
17499       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17501       hardcode_shlibpath_var_GCJ=no
17502       ;;
17503
17504     freebsd1*)
17505       ld_shlibs_GCJ=no
17506       ;;
17507
17508     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17509     # support.  Future versions do this automatically, but an explicit c++rt0.o
17510     # does not break anything, and helps significantly (at the cost of a little
17511     # extra space).
17512     freebsd2.2*)
17513       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17514       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17515       hardcode_direct_GCJ=yes
17516       hardcode_shlibpath_var_GCJ=no
17517       ;;
17518
17519     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17520     freebsd2*)
17521       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17522       hardcode_direct_GCJ=yes
17523       hardcode_minus_L_GCJ=yes
17524       hardcode_shlibpath_var_GCJ=no
17525       ;;
17526
17527     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17528     freebsd* | dragonfly*)
17529       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17530       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17531       hardcode_direct_GCJ=yes
17532       hardcode_shlibpath_var_GCJ=no
17533       ;;
17534
17535     hpux9*)
17536       if test "$GCC" = yes; then
17537         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'
17538       else
17539         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'
17540       fi
17541       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17542       hardcode_libdir_separator_GCJ=:
17543       hardcode_direct_GCJ=yes
17544
17545       # hardcode_minus_L: Not really in the search PATH,
17546       # but as the default location of the library.
17547       hardcode_minus_L_GCJ=yes
17548       export_dynamic_flag_spec_GCJ='${wl}-E'
17549       ;;
17550
17551     hpux10*)
17552       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17553         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17554       else
17555         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17556       fi
17557       if test "$with_gnu_ld" = no; then
17558         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17559         hardcode_libdir_separator_GCJ=:
17560
17561         hardcode_direct_GCJ=yes
17562         export_dynamic_flag_spec_GCJ='${wl}-E'
17563
17564         # hardcode_minus_L: Not really in the search PATH,
17565         # but as the default location of the library.
17566         hardcode_minus_L_GCJ=yes
17567       fi
17568       ;;
17569
17570     hpux11*)
17571       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17572         case $host_cpu in
17573         hppa*64*)
17574           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17575           ;;
17576         ia64*)
17577           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17578           ;;
17579         *)
17580           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17581           ;;
17582         esac
17583       else
17584         case $host_cpu in
17585         hppa*64*)
17586           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17587           ;;
17588         ia64*)
17589           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17590           ;;
17591         *)
17592           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17593           ;;
17594         esac
17595       fi
17596       if test "$with_gnu_ld" = no; then
17597         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17598         hardcode_libdir_separator_GCJ=:
17599
17600         case $host_cpu in
17601         hppa*64*|ia64*)
17602           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17603           hardcode_direct_GCJ=no
17604           hardcode_shlibpath_var_GCJ=no
17605           ;;
17606         *)
17607           hardcode_direct_GCJ=yes
17608           export_dynamic_flag_spec_GCJ='${wl}-E'
17609
17610           # hardcode_minus_L: Not really in the search PATH,
17611           # but as the default location of the library.
17612           hardcode_minus_L_GCJ=yes
17613           ;;
17614         esac
17615       fi
17616       ;;
17617
17618     irix5* | irix6* | nonstopux*)
17619       if test "$GCC" = yes; then
17620         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'
17621       else
17622         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'
17623         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17624       fi
17625       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17626       hardcode_libdir_separator_GCJ=:
17627       link_all_deplibs_GCJ=yes
17628       ;;
17629
17630     netbsd* | netbsdelf*-gnu)
17631       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17632         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17633       else
17634         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17635       fi
17636       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17637       hardcode_direct_GCJ=yes
17638       hardcode_shlibpath_var_GCJ=no
17639       ;;
17640
17641     newsos6)
17642       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643       hardcode_direct_GCJ=yes
17644       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17645       hardcode_libdir_separator_GCJ=:
17646       hardcode_shlibpath_var_GCJ=no
17647       ;;
17648
17649     openbsd*)
17650       if test -f /usr/libexec/ld.so; then
17651         hardcode_direct_GCJ=yes
17652         hardcode_shlibpath_var_GCJ=no
17653         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17654           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17655           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17656           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17657           export_dynamic_flag_spec_GCJ='${wl}-E'
17658         else
17659           case $host_os in
17660            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17661              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17662              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17663              ;;
17664            *)
17665              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17666              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17667              ;;
17668           esac
17669         fi
17670       else
17671         ld_shlibs_GCJ=no
17672       fi
17673       ;;
17674
17675     os2*)
17676       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677       hardcode_minus_L_GCJ=yes
17678       allow_undefined_flag_GCJ=unsupported
17679       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'
17680       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17681       ;;
17682
17683     osf3*)
17684       if test "$GCC" = yes; then
17685         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17686         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'
17687       else
17688         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17689         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'
17690       fi
17691       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17692       hardcode_libdir_separator_GCJ=:
17693       ;;
17694
17695     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17696       if test "$GCC" = yes; then
17697         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17698         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'
17699         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17700       else
17701         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17702         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'
17703         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~
17704         $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'
17705
17706         # Both c and cxx compiler support -rpath directly
17707         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17708       fi
17709       hardcode_libdir_separator_GCJ=:
17710       ;;
17711
17712     solaris*)
17713       no_undefined_flag_GCJ=' -z text'
17714       if test "$GCC" = yes; then
17715         wlarc='${wl}'
17716         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17717         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17718           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17719       else
17720         wlarc=''
17721         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17723         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17724       fi
17725       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17726       hardcode_shlibpath_var_GCJ=no
17727       case $host_os in
17728       solaris2.[0-5] | solaris2.[0-5].*) ;;
17729       *)
17730         # The compiler driver will combine and reorder linker options,
17731         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17732         # but is careful enough not to reorder.
17733         # Supported since Solaris 2.6 (maybe 2.5.1?)
17734         if test "$GCC" = yes; then
17735           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17736         else
17737           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17738         fi
17739         ;;
17740       esac
17741       link_all_deplibs_GCJ=yes
17742       ;;
17743
17744     sunos4*)
17745       if test "x$host_vendor" = xsequent; then
17746         # Use $CC to link under sequent, because it throws in some extra .o
17747         # files that make .init and .fini sections work.
17748         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17749       else
17750         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17751       fi
17752       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17753       hardcode_direct_GCJ=yes
17754       hardcode_minus_L_GCJ=yes
17755       hardcode_shlibpath_var_GCJ=no
17756       ;;
17757
17758     sysv4)
17759       case $host_vendor in
17760         sni)
17761           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17762           hardcode_direct_GCJ=yes # is this really true???
17763         ;;
17764         siemens)
17765           ## LD is ld it makes a PLAMLIB
17766           ## CC just makes a GrossModule.
17767           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17768           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17769           hardcode_direct_GCJ=no
17770         ;;
17771         motorola)
17772           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17773           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17774         ;;
17775       esac
17776       runpath_var='LD_RUN_PATH'
17777       hardcode_shlibpath_var_GCJ=no
17778       ;;
17779
17780     sysv4.3*)
17781       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17782       hardcode_shlibpath_var_GCJ=no
17783       export_dynamic_flag_spec_GCJ='-Bexport'
17784       ;;
17785
17786     sysv4*MP*)
17787       if test -d /usr/nec; then
17788         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17789         hardcode_shlibpath_var_GCJ=no
17790         runpath_var=LD_RUN_PATH
17791         hardcode_runpath_var=yes
17792         ld_shlibs_GCJ=yes
17793       fi
17794       ;;
17795
17796     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17797       no_undefined_flag_GCJ='${wl}-z,text'
17798       archive_cmds_need_lc_GCJ=no
17799       hardcode_shlibpath_var_GCJ=no
17800       runpath_var='LD_RUN_PATH'
17801
17802       if test "$GCC" = yes; then
17803         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17804         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17805       else
17806         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17807         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17808       fi
17809       ;;
17810
17811     sysv5* | sco3.2v5* | sco5v6*)
17812       # Note: We can NOT use -z defs as we might desire, because we do not
17813       # link with -lc, and that would cause any symbols used from libc to
17814       # always be unresolved, which means just about no library would
17815       # ever link correctly.  If we're not using GNU ld we use -z text
17816       # though, which does catch some bad symbols but isn't as heavy-handed
17817       # as -z defs.
17818       no_undefined_flag_GCJ='${wl}-z,text'
17819       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17820       archive_cmds_need_lc_GCJ=no
17821       hardcode_shlibpath_var_GCJ=no
17822       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17823       hardcode_libdir_separator_GCJ=':'
17824       link_all_deplibs_GCJ=yes
17825       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17826       runpath_var='LD_RUN_PATH'
17827
17828       if test "$GCC" = yes; then
17829         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17830         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17831       else
17832         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17833         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17834       fi
17835       ;;
17836
17837     uts4*)
17838       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17839       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17840       hardcode_shlibpath_var_GCJ=no
17841       ;;
17842
17843     *)
17844       ld_shlibs_GCJ=no
17845       ;;
17846     esac
17847   fi
17848
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17850 $as_echo "$ld_shlibs_GCJ" >&6; }
17851 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17852
17853 #
17854 # Do we need to explicitly link libc?
17855 #
17856 case "x$archive_cmds_need_lc_GCJ" in
17857 x|xyes)
17858   # Assume -lc should be added
17859   archive_cmds_need_lc_GCJ=yes
17860
17861   if test "$enable_shared" = yes && test "$GCC" = yes; then
17862     case $archive_cmds_GCJ in
17863     *'~'*)
17864       # FIXME: we may have to deal with multi-command sequences.
17865       ;;
17866     '$CC '*)
17867       # Test whether the compiler implicitly links with -lc since on some
17868       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17869       # to ld, don't add -lc before -lgcc.
17870       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17871 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17872       $rm conftest*
17873       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17874
17875       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17876   (eval $ac_compile) 2>&5
17877   ac_status=$?
17878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17879   test $ac_status = 0; } 2>conftest.err; then
17880         soname=conftest
17881         lib=conftest
17882         libobjs=conftest.$ac_objext
17883         deplibs=
17884         wl=$lt_prog_compiler_wl_GCJ
17885         pic_flag=$lt_prog_compiler_pic_GCJ
17886         compiler_flags=-v
17887         linker_flags=-v
17888         verstring=
17889         output_objdir=.
17890         libname=conftest
17891         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17892         allow_undefined_flag_GCJ=
17893         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17894   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17895   ac_status=$?
17896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17897   test $ac_status = 0; }
17898         then
17899           archive_cmds_need_lc_GCJ=no
17900         else
17901           archive_cmds_need_lc_GCJ=yes
17902         fi
17903         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17904       else
17905         cat conftest.err 1>&5
17906       fi
17907       $rm conftest*
17908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17909 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17910       ;;
17911     esac
17912   fi
17913   ;;
17914 esac
17915
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17917 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17918 library_names_spec=
17919 libname_spec='lib$name'
17920 soname_spec=
17921 shrext_cmds=".so"
17922 postinstall_cmds=
17923 postuninstall_cmds=
17924 finish_cmds=
17925 finish_eval=
17926 shlibpath_var=
17927 shlibpath_overrides_runpath=unknown
17928 version_type=none
17929 dynamic_linker="$host_os ld.so"
17930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17931
17932 need_lib_prefix=unknown
17933 hardcode_into_libs=no
17934
17935 # when you set need_version to no, make sure it does not cause -set_version
17936 # flags to be left without arguments
17937 need_version=unknown
17938
17939 case $host_os in
17940 aix3*)
17941   version_type=linux
17942   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17943   shlibpath_var=LIBPATH
17944
17945   # AIX 3 has no versioning support, so we append a major version to the name.
17946   soname_spec='${libname}${release}${shared_ext}$major'
17947   ;;
17948
17949 aix[4-9]*)
17950   version_type=linux
17951   need_lib_prefix=no
17952   need_version=no
17953   hardcode_into_libs=yes
17954   if test "$host_cpu" = ia64; then
17955     # AIX 5 supports IA64
17956     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17957     shlibpath_var=LD_LIBRARY_PATH
17958   else
17959     # With GCC up to 2.95.x, collect2 would create an import file
17960     # for dependence libraries.  The import file would start with
17961     # the line `#! .'.  This would cause the generated library to
17962     # depend on `.', always an invalid library.  This was fixed in
17963     # development snapshots of GCC prior to 3.0.
17964     case $host_os in
17965       aix4 | aix4.[01] | aix4.[01].*)
17966       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17967            echo ' yes '
17968            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17969         :
17970       else
17971         can_build_shared=no
17972       fi
17973       ;;
17974     esac
17975     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17976     # soname into executable. Probably we can add versioning support to
17977     # collect2, so additional links can be useful in future.
17978     if test "$aix_use_runtimelinking" = yes; then
17979       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17980       # instead of lib<name>.a to let people know that these are not
17981       # typical AIX shared libraries.
17982       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17983     else
17984       # We preserve .a as extension for shared libraries through AIX4.2
17985       # and later when we are not doing run time linking.
17986       library_names_spec='${libname}${release}.a $libname.a'
17987       soname_spec='${libname}${release}${shared_ext}$major'
17988     fi
17989     shlibpath_var=LIBPATH
17990   fi
17991   ;;
17992
17993 amigaos*)
17994   library_names_spec='$libname.ixlibrary $libname.a'
17995   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17996   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'
17997   ;;
17998
17999 beos*)
18000   library_names_spec='${libname}${shared_ext}'
18001   dynamic_linker="$host_os ld.so"
18002   shlibpath_var=LIBRARY_PATH
18003   ;;
18004
18005 bsdi[45]*)
18006   version_type=linux
18007   need_version=no
18008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18009   soname_spec='${libname}${release}${shared_ext}$major'
18010   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18011   shlibpath_var=LD_LIBRARY_PATH
18012   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18013   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18014   # the default ld.so.conf also contains /usr/contrib/lib and
18015   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18016   # libtool to hard-code these into programs
18017   ;;
18018
18019 cygwin* | mingw* | pw32*)
18020   version_type=windows
18021   shrext_cmds=".dll"
18022   need_version=no
18023   need_lib_prefix=no
18024
18025   case $GCC,$host_os in
18026   yes,cygwin* | yes,mingw* | yes,pw32*)
18027     library_names_spec='$libname.dll.a'
18028     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18029     postinstall_cmds='base_file=`basename \${file}`~
18030       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18031       dldir=$destdir/`dirname \$dlpath`~
18032       test -d \$dldir || mkdir -p \$dldir~
18033       $install_prog $dir/$dlname \$dldir/$dlname~
18034       chmod a+x \$dldir/$dlname'
18035     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18036       dlpath=$dir/\$dldll~
18037        $rm \$dlpath'
18038     shlibpath_overrides_runpath=yes
18039
18040     case $host_os in
18041     cygwin*)
18042       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18043       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18044       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18045       ;;
18046     mingw*)
18047       # MinGW DLLs use traditional 'lib' prefix
18048       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18049       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18050       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18051         # It is most probably a Windows format PATH printed by
18052         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18053         # path with ; separators, and with drive letters. We can handle the
18054         # drive letters (cygwin fileutils understands them), so leave them,
18055         # especially as we might pass files found there to a mingw objdump,
18056         # which wouldn't understand a cygwinified path. Ahh.
18057         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18058       else
18059         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18060       fi
18061       ;;
18062     pw32*)
18063       # pw32 DLLs use 'pw' prefix rather than 'lib'
18064       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18065       ;;
18066     esac
18067     ;;
18068
18069   *)
18070     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18071     ;;
18072   esac
18073   dynamic_linker='Win32 ld.exe'
18074   # FIXME: first we should search . and the directory the executable is in
18075   shlibpath_var=PATH
18076   ;;
18077
18078 darwin* | rhapsody*)
18079   dynamic_linker="$host_os dyld"
18080   version_type=darwin
18081   need_lib_prefix=no
18082   need_version=no
18083   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18084   soname_spec='${libname}${release}${major}$shared_ext'
18085   shlibpath_overrides_runpath=yes
18086   shlibpath_var=DYLD_LIBRARY_PATH
18087   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18088
18089   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18090   ;;
18091
18092 dgux*)
18093   version_type=linux
18094   need_lib_prefix=no
18095   need_version=no
18096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18097   soname_spec='${libname}${release}${shared_ext}$major'
18098   shlibpath_var=LD_LIBRARY_PATH
18099   ;;
18100
18101 freebsd1*)
18102   dynamic_linker=no
18103   ;;
18104
18105 freebsd* | dragonfly*)
18106   # DragonFly does not have aout.  When/if they implement a new
18107   # versioning mechanism, adjust this.
18108   if test -x /usr/bin/objformat; then
18109     objformat=`/usr/bin/objformat`
18110   else
18111     case $host_os in
18112     freebsd[123]*) objformat=aout ;;
18113     *) objformat=elf ;;
18114     esac
18115   fi
18116   version_type=freebsd-$objformat
18117   case $version_type in
18118     freebsd-elf*)
18119       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18120       need_version=no
18121       need_lib_prefix=no
18122       ;;
18123     freebsd-*)
18124       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18125       need_version=yes
18126       ;;
18127   esac
18128   shlibpath_var=LD_LIBRARY_PATH
18129   case $host_os in
18130   freebsd2*)
18131     shlibpath_overrides_runpath=yes
18132     ;;
18133   freebsd3.[01]* | freebsdelf3.[01]*)
18134     shlibpath_overrides_runpath=yes
18135     hardcode_into_libs=yes
18136     ;;
18137   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18138   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18139     shlibpath_overrides_runpath=no
18140     hardcode_into_libs=yes
18141     ;;
18142   *) # from 4.6 on, and DragonFly
18143     shlibpath_overrides_runpath=yes
18144     hardcode_into_libs=yes
18145     ;;
18146   esac
18147   ;;
18148
18149 gnu*)
18150   version_type=linux
18151   need_lib_prefix=no
18152   need_version=no
18153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18154   soname_spec='${libname}${release}${shared_ext}$major'
18155   shlibpath_var=LD_LIBRARY_PATH
18156   hardcode_into_libs=yes
18157   ;;
18158
18159 hpux9* | hpux10* | hpux11*)
18160   # Give a soname corresponding to the major version so that dld.sl refuses to
18161   # link against other versions.
18162   version_type=sunos
18163   need_lib_prefix=no
18164   need_version=no
18165   case $host_cpu in
18166   ia64*)
18167     shrext_cmds='.so'
18168     hardcode_into_libs=yes
18169     dynamic_linker="$host_os dld.so"
18170     shlibpath_var=LD_LIBRARY_PATH
18171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173     soname_spec='${libname}${release}${shared_ext}$major'
18174     if test "X$HPUX_IA64_MODE" = X32; then
18175       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18176     else
18177       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18178     fi
18179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18180     ;;
18181    hppa*64*)
18182      shrext_cmds='.sl'
18183      hardcode_into_libs=yes
18184      dynamic_linker="$host_os dld.sl"
18185      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18186      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188      soname_spec='${libname}${release}${shared_ext}$major'
18189      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18190      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18191      ;;
18192    *)
18193     shrext_cmds='.sl'
18194     dynamic_linker="$host_os dld.sl"
18195     shlibpath_var=SHLIB_PATH
18196     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198     soname_spec='${libname}${release}${shared_ext}$major'
18199     ;;
18200   esac
18201   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18202   postinstall_cmds='chmod 555 $lib'
18203   ;;
18204
18205 interix[3-9]*)
18206   version_type=linux
18207   need_lib_prefix=no
18208   need_version=no
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18210   soname_spec='${libname}${release}${shared_ext}$major'
18211   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18212   shlibpath_var=LD_LIBRARY_PATH
18213   shlibpath_overrides_runpath=no
18214   hardcode_into_libs=yes
18215   ;;
18216
18217 irix5* | irix6* | nonstopux*)
18218   case $host_os in
18219     nonstopux*) version_type=nonstopux ;;
18220     *)
18221         if test "$lt_cv_prog_gnu_ld" = yes; then
18222                 version_type=linux
18223         else
18224                 version_type=irix
18225         fi ;;
18226   esac
18227   need_lib_prefix=no
18228   need_version=no
18229   soname_spec='${libname}${release}${shared_ext}$major'
18230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18231   case $host_os in
18232   irix5* | nonstopux*)
18233     libsuff= shlibsuff=
18234     ;;
18235   *)
18236     case $LD in # libtool.m4 will add one of these switches to LD
18237     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18238       libsuff= shlibsuff= libmagic=32-bit;;
18239     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18240       libsuff=32 shlibsuff=N32 libmagic=N32;;
18241     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18242       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18243     *) libsuff= shlibsuff= libmagic=never-match;;
18244     esac
18245     ;;
18246   esac
18247   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18248   shlibpath_overrides_runpath=no
18249   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18250   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18251   hardcode_into_libs=yes
18252   ;;
18253
18254 # No shared lib support for Linux oldld, aout, or coff.
18255 linux*oldld* | linux*aout* | linux*coff*)
18256   dynamic_linker=no
18257   ;;
18258
18259 # This must be Linux ELF.
18260 linux* | k*bsd*-gnu)
18261   version_type=linux
18262   need_lib_prefix=no
18263   need_version=no
18264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265   soname_spec='${libname}${release}${shared_ext}$major'
18266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18267   shlibpath_var=LD_LIBRARY_PATH
18268   shlibpath_overrides_runpath=no
18269   # This implies no fast_install, which is unacceptable.
18270   # Some rework will be needed to allow for fast_install
18271   # before this can be enabled.
18272   hardcode_into_libs=yes
18273
18274   # Append ld.so.conf contents to the search path
18275   if test -f /etc/ld.so.conf; then
18276     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' ' '`
18277     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18278   fi
18279
18280   # We used to test for /lib/ld.so.1 and disable shared libraries on
18281   # powerpc, because MkLinux only supported shared libraries with the
18282   # GNU dynamic linker.  Since this was broken with cross compilers,
18283   # most powerpc-linux boxes support dynamic linking these days and
18284   # people can always --disable-shared, the test was removed, and we
18285   # assume the GNU/Linux dynamic linker is in use.
18286   dynamic_linker='GNU/Linux ld.so'
18287   ;;
18288
18289 netbsdelf*-gnu)
18290   version_type=linux
18291   need_lib_prefix=no
18292   need_version=no
18293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18294   soname_spec='${libname}${release}${shared_ext}$major'
18295   shlibpath_var=LD_LIBRARY_PATH
18296   shlibpath_overrides_runpath=no
18297   hardcode_into_libs=yes
18298   dynamic_linker='NetBSD ld.elf_so'
18299   ;;
18300
18301 netbsd*)
18302   version_type=sunos
18303   need_lib_prefix=no
18304   need_version=no
18305   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18307     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18308     dynamic_linker='NetBSD (a.out) ld.so'
18309   else
18310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18311     soname_spec='${libname}${release}${shared_ext}$major'
18312     dynamic_linker='NetBSD ld.elf_so'
18313   fi
18314   shlibpath_var=LD_LIBRARY_PATH
18315   shlibpath_overrides_runpath=yes
18316   hardcode_into_libs=yes
18317   ;;
18318
18319 newsos6)
18320   version_type=linux
18321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18322   shlibpath_var=LD_LIBRARY_PATH
18323   shlibpath_overrides_runpath=yes
18324   ;;
18325
18326 nto-qnx*)
18327   version_type=linux
18328   need_lib_prefix=no
18329   need_version=no
18330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18331   soname_spec='${libname}${release}${shared_ext}$major'
18332   shlibpath_var=LD_LIBRARY_PATH
18333   shlibpath_overrides_runpath=yes
18334   ;;
18335
18336 openbsd*)
18337   version_type=sunos
18338   sys_lib_dlsearch_path_spec="/usr/lib"
18339   need_lib_prefix=no
18340   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18341   case $host_os in
18342     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18343     *)                         need_version=no  ;;
18344   esac
18345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18346   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18347   shlibpath_var=LD_LIBRARY_PATH
18348   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18349     case $host_os in
18350       openbsd2.[89] | openbsd2.[89].*)
18351         shlibpath_overrides_runpath=no
18352         ;;
18353       *)
18354         shlibpath_overrides_runpath=yes
18355         ;;
18356       esac
18357   else
18358     shlibpath_overrides_runpath=yes
18359   fi
18360   ;;
18361
18362 os2*)
18363   libname_spec='$name'
18364   shrext_cmds=".dll"
18365   need_lib_prefix=no
18366   library_names_spec='$libname${shared_ext} $libname.a'
18367   dynamic_linker='OS/2 ld.exe'
18368   shlibpath_var=LIBPATH
18369   ;;
18370
18371 osf3* | osf4* | osf5*)
18372   version_type=osf
18373   need_lib_prefix=no
18374   need_version=no
18375   soname_spec='${libname}${release}${shared_ext}$major'
18376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377   shlibpath_var=LD_LIBRARY_PATH
18378   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18379   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18380   ;;
18381
18382 rdos*)
18383   dynamic_linker=no
18384   ;;
18385
18386 solaris*)
18387   version_type=linux
18388   need_lib_prefix=no
18389   need_version=no
18390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391   soname_spec='${libname}${release}${shared_ext}$major'
18392   shlibpath_var=LD_LIBRARY_PATH
18393   shlibpath_overrides_runpath=yes
18394   hardcode_into_libs=yes
18395   # ldd complains unless libraries are executable
18396   postinstall_cmds='chmod +x $lib'
18397   ;;
18398
18399 sunos4*)
18400   version_type=sunos
18401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18402   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18403   shlibpath_var=LD_LIBRARY_PATH
18404   shlibpath_overrides_runpath=yes
18405   if test "$with_gnu_ld" = yes; then
18406     need_lib_prefix=no
18407   fi
18408   need_version=yes
18409   ;;
18410
18411 sysv4 | sysv4.3*)
18412   version_type=linux
18413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414   soname_spec='${libname}${release}${shared_ext}$major'
18415   shlibpath_var=LD_LIBRARY_PATH
18416   case $host_vendor in
18417     sni)
18418       shlibpath_overrides_runpath=no
18419       need_lib_prefix=no
18420       export_dynamic_flag_spec='${wl}-Blargedynsym'
18421       runpath_var=LD_RUN_PATH
18422       ;;
18423     siemens)
18424       need_lib_prefix=no
18425       ;;
18426     motorola)
18427       need_lib_prefix=no
18428       need_version=no
18429       shlibpath_overrides_runpath=no
18430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18431       ;;
18432   esac
18433   ;;
18434
18435 sysv4*MP*)
18436   if test -d /usr/nec ;then
18437     version_type=linux
18438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18439     soname_spec='$libname${shared_ext}.$major'
18440     shlibpath_var=LD_LIBRARY_PATH
18441   fi
18442   ;;
18443
18444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18445   version_type=freebsd-elf
18446   need_lib_prefix=no
18447   need_version=no
18448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18449   soname_spec='${libname}${release}${shared_ext}$major'
18450   shlibpath_var=LD_LIBRARY_PATH
18451   hardcode_into_libs=yes
18452   if test "$with_gnu_ld" = yes; then
18453     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18454     shlibpath_overrides_runpath=no
18455   else
18456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18457     shlibpath_overrides_runpath=yes
18458     case $host_os in
18459       sco3.2v5*)
18460         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18461         ;;
18462     esac
18463   fi
18464   sys_lib_dlsearch_path_spec='/usr/lib'
18465   ;;
18466
18467 uts4*)
18468   version_type=linux
18469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470   soname_spec='${libname}${release}${shared_ext}$major'
18471   shlibpath_var=LD_LIBRARY_PATH
18472   ;;
18473
18474 *)
18475   dynamic_linker=no
18476   ;;
18477 esac
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18479 $as_echo "$dynamic_linker" >&6; }
18480 test "$dynamic_linker" = no && can_build_shared=no
18481
18482 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18483   $as_echo_n "(cached) " >&6
18484 else
18485   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18486 fi
18487
18488 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18489 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18490   $as_echo_n "(cached) " >&6
18491 else
18492   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18493 fi
18494
18495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18496
18497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18498 if test "$GCC" = yes; then
18499   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18500 fi
18501
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18503 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18504 hardcode_action_GCJ=
18505 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18506    test -n "$runpath_var_GCJ" || \
18507    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18508
18509   # We can hardcode non-existant directories.
18510   if test "$hardcode_direct_GCJ" != no &&
18511      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18512      # have to relink, otherwise we might link with an installed library
18513      # when we should be linking with a yet-to-be-installed one
18514      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18515      test "$hardcode_minus_L_GCJ" != no; then
18516     # Linking always hardcodes the temporary library directory.
18517     hardcode_action_GCJ=relink
18518   else
18519     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18520     hardcode_action_GCJ=immediate
18521   fi
18522 else
18523   # We cannot hardcode anything, or else we can only hardcode existing
18524   # directories.
18525   hardcode_action_GCJ=unsupported
18526 fi
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18528 $as_echo "$hardcode_action_GCJ" >&6; }
18529
18530 if test "$hardcode_action_GCJ" = relink; then
18531   # Fast installation is not supported
18532   enable_fast_install=no
18533 elif test "$shlibpath_overrides_runpath" = yes ||
18534      test "$enable_shared" = no; then
18535   # Fast installation is not necessary
18536   enable_fast_install=needless
18537 fi
18538
18539
18540 # The else clause should only fire when bootstrapping the
18541 # libtool distribution, otherwise you forgot to ship ltmain.sh
18542 # with your package, and you will get complaints that there are
18543 # no rules to generate ltmain.sh.
18544 if test -f "$ltmain"; then
18545   # See if we are running on zsh, and set the options which allow our commands through
18546   # without removal of \ escapes.
18547   if test -n "${ZSH_VERSION+set}" ; then
18548     setopt NO_GLOB_SUBST
18549   fi
18550   # Now quote all the things that may contain metacharacters while being
18551   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18552   # variables and quote the copies for generation of the libtool script.
18553   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18554     SED SHELL STRIP \
18555     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18556     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18557     deplibs_check_method reload_flag reload_cmds need_locks \
18558     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18559     lt_cv_sys_global_symbol_to_c_name_address \
18560     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18561     old_postinstall_cmds old_postuninstall_cmds \
18562     compiler_GCJ \
18563     CC_GCJ \
18564     LD_GCJ \
18565     lt_prog_compiler_wl_GCJ \
18566     lt_prog_compiler_pic_GCJ \
18567     lt_prog_compiler_static_GCJ \
18568     lt_prog_compiler_no_builtin_flag_GCJ \
18569     export_dynamic_flag_spec_GCJ \
18570     thread_safe_flag_spec_GCJ \
18571     whole_archive_flag_spec_GCJ \
18572     enable_shared_with_static_runtimes_GCJ \
18573     old_archive_cmds_GCJ \
18574     old_archive_from_new_cmds_GCJ \
18575     predep_objects_GCJ \
18576     postdep_objects_GCJ \
18577     predeps_GCJ \
18578     postdeps_GCJ \
18579     compiler_lib_search_path_GCJ \
18580     compiler_lib_search_dirs_GCJ \
18581     archive_cmds_GCJ \
18582     archive_expsym_cmds_GCJ \
18583     postinstall_cmds_GCJ \
18584     postuninstall_cmds_GCJ \
18585     old_archive_from_expsyms_cmds_GCJ \
18586     allow_undefined_flag_GCJ \
18587     no_undefined_flag_GCJ \
18588     export_symbols_cmds_GCJ \
18589     hardcode_libdir_flag_spec_GCJ \
18590     hardcode_libdir_flag_spec_ld_GCJ \
18591     hardcode_libdir_separator_GCJ \
18592     hardcode_automatic_GCJ \
18593     module_cmds_GCJ \
18594     module_expsym_cmds_GCJ \
18595     lt_cv_prog_compiler_c_o_GCJ \
18596     fix_srcfile_path_GCJ \
18597     exclude_expsyms_GCJ \
18598     include_expsyms_GCJ; do
18599
18600     case $var in
18601     old_archive_cmds_GCJ | \
18602     old_archive_from_new_cmds_GCJ | \
18603     archive_cmds_GCJ | \
18604     archive_expsym_cmds_GCJ | \
18605     module_cmds_GCJ | \
18606     module_expsym_cmds_GCJ | \
18607     old_archive_from_expsyms_cmds_GCJ | \
18608     export_symbols_cmds_GCJ | \
18609     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18610     postinstall_cmds | postuninstall_cmds | \
18611     old_postinstall_cmds | old_postuninstall_cmds | \
18612     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18613       # Double-quote double-evaled strings.
18614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18615       ;;
18616     *)
18617       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18618       ;;
18619     esac
18620   done
18621
18622   case $lt_echo in
18623   *'\$0 --fallback-echo"')
18624     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18625     ;;
18626   esac
18627
18628 cfgfile="$ofile"
18629
18630   cat <<__EOF__ >> "$cfgfile"
18631 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18632
18633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18634
18635 # Shell to use when invoking shell scripts.
18636 SHELL=$lt_SHELL
18637
18638 # Whether or not to build shared libraries.
18639 build_libtool_libs=$enable_shared
18640
18641 # Whether or not to build static libraries.
18642 build_old_libs=$enable_static
18643
18644 # Whether or not to add -lc for building shared libraries.
18645 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18646
18647 # Whether or not to disallow shared libs when runtime libs are static
18648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18649
18650 # Whether or not to optimize for fast installation.
18651 fast_install=$enable_fast_install
18652
18653 # The host system.
18654 host_alias=$host_alias
18655 host=$host
18656 host_os=$host_os
18657
18658 # The build system.
18659 build_alias=$build_alias
18660 build=$build
18661 build_os=$build_os
18662
18663 # An echo program that does not interpret backslashes.
18664 echo=$lt_echo
18665
18666 # The archiver.
18667 AR=$lt_AR
18668 AR_FLAGS=$lt_AR_FLAGS
18669
18670 # A C compiler.
18671 LTCC=$lt_LTCC
18672
18673 # LTCC compiler flags.
18674 LTCFLAGS=$lt_LTCFLAGS
18675
18676 # A language-specific compiler.
18677 CC=$lt_compiler_GCJ
18678
18679 # Is the compiler the GNU C compiler?
18680 with_gcc=$GCC_GCJ
18681
18682 # An ERE matcher.
18683 EGREP=$lt_EGREP
18684
18685 # The linker used to build libraries.
18686 LD=$lt_LD_GCJ
18687
18688 # Whether we need hard or soft links.
18689 LN_S=$lt_LN_S
18690
18691 # A BSD-compatible nm program.
18692 NM=$lt_NM
18693
18694 # A symbol stripping program
18695 STRIP=$lt_STRIP
18696
18697 # Used to examine libraries when file_magic_cmd begins "file"
18698 MAGIC_CMD=$MAGIC_CMD
18699
18700 # Used on cygwin: DLL creation program.
18701 DLLTOOL="$DLLTOOL"
18702
18703 # Used on cygwin: object dumper.
18704 OBJDUMP="$OBJDUMP"
18705
18706 # Used on cygwin: assembler.
18707 AS="$AS"
18708
18709 # The name of the directory that contains temporary libtool files.
18710 objdir=$objdir
18711
18712 # How to create reloadable object files.
18713 reload_flag=$lt_reload_flag
18714 reload_cmds=$lt_reload_cmds
18715
18716 # How to pass a linker flag through the compiler.
18717 wl=$lt_lt_prog_compiler_wl_GCJ
18718
18719 # Object file suffix (normally "o").
18720 objext="$ac_objext"
18721
18722 # Old archive suffix (normally "a").
18723 libext="$libext"
18724
18725 # Shared library suffix (normally ".so").
18726 shrext_cmds='$shrext_cmds'
18727
18728 # Executable file suffix (normally "").
18729 exeext="$exeext"
18730
18731 # Additional compiler flags for building library objects.
18732 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18733 pic_mode=$pic_mode
18734
18735 # What is the maximum length of a command?
18736 max_cmd_len=$lt_cv_sys_max_cmd_len
18737
18738 # Does compiler simultaneously support -c and -o options?
18739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18740
18741 # Must we lock files when doing compilation?
18742 need_locks=$lt_need_locks
18743
18744 # Do we need the lib prefix for modules?
18745 need_lib_prefix=$need_lib_prefix
18746
18747 # Do we need a version for libraries?
18748 need_version=$need_version
18749
18750 # Whether dlopen is supported.
18751 dlopen_support=$enable_dlopen
18752
18753 # Whether dlopen of programs is supported.
18754 dlopen_self=$enable_dlopen_self
18755
18756 # Whether dlopen of statically linked programs is supported.
18757 dlopen_self_static=$enable_dlopen_self_static
18758
18759 # Compiler flag to prevent dynamic linking.
18760 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18761
18762 # Compiler flag to turn off builtin functions.
18763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18764
18765 # Compiler flag to allow reflexive dlopens.
18766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18767
18768 # Compiler flag to generate shared objects directly from archives.
18769 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18770
18771 # Compiler flag to generate thread-safe objects.
18772 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18773
18774 # Library versioning type.
18775 version_type=$version_type
18776
18777 # Format of library name prefix.
18778 libname_spec=$lt_libname_spec
18779
18780 # List of archive names.  First name is the real one, the rest are links.
18781 # The last name is the one that the linker finds with -lNAME.
18782 library_names_spec=$lt_library_names_spec
18783
18784 # The coded name of the library, if different from the real name.
18785 soname_spec=$lt_soname_spec
18786
18787 # Commands used to build and install an old-style archive.
18788 RANLIB=$lt_RANLIB
18789 old_archive_cmds=$lt_old_archive_cmds_GCJ
18790 old_postinstall_cmds=$lt_old_postinstall_cmds
18791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18792
18793 # Create an old-style archive from a shared archive.
18794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18795
18796 # Create a temporary old-style archive to link instead of a shared archive.
18797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18798
18799 # Commands used to build and install a shared archive.
18800 archive_cmds=$lt_archive_cmds_GCJ
18801 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18802 postinstall_cmds=$lt_postinstall_cmds
18803 postuninstall_cmds=$lt_postuninstall_cmds
18804
18805 # Commands used to build a loadable module (assumed same as above if empty)
18806 module_cmds=$lt_module_cmds_GCJ
18807 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18808
18809 # Commands to strip libraries.
18810 old_striplib=$lt_old_striplib
18811 striplib=$lt_striplib
18812
18813 # Dependencies to place before the objects being linked to create a
18814 # shared library.
18815 predep_objects=$lt_predep_objects_GCJ
18816
18817 # Dependencies to place after the objects being linked to create a
18818 # shared library.
18819 postdep_objects=$lt_postdep_objects_GCJ
18820
18821 # Dependencies to place before the objects being linked to create a
18822 # shared library.
18823 predeps=$lt_predeps_GCJ
18824
18825 # Dependencies to place after the objects being linked to create a
18826 # shared library.
18827 postdeps=$lt_postdeps_GCJ
18828
18829 # The directories searched by this compiler when creating a shared
18830 # library
18831 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18832
18833 # The library search path used internally by the compiler when linking
18834 # a shared library.
18835 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18836
18837 # Method to check whether dependent libraries are shared objects.
18838 deplibs_check_method=$lt_deplibs_check_method
18839
18840 # Command to use when deplibs_check_method == file_magic.
18841 file_magic_cmd=$lt_file_magic_cmd
18842
18843 # Flag that allows shared libraries with undefined symbols to be built.
18844 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18845
18846 # Flag that forces no undefined symbols.
18847 no_undefined_flag=$lt_no_undefined_flag_GCJ
18848
18849 # Commands used to finish a libtool library installation in a directory.
18850 finish_cmds=$lt_finish_cmds
18851
18852 # Same as above, but a single script fragment to be evaled but not shown.
18853 finish_eval=$lt_finish_eval
18854
18855 # Take the output of nm and produce a listing of raw symbols and C names.
18856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18857
18858 # Transform the output of nm in a proper C declaration
18859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18860
18861 # Transform the output of nm in a C name address pair
18862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18863
18864 # This is the shared library runtime path variable.
18865 runpath_var=$runpath_var
18866
18867 # This is the shared library path variable.
18868 shlibpath_var=$shlibpath_var
18869
18870 # Is shlibpath searched before the hard-coded library search path?
18871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18872
18873 # How to hardcode a shared library path into an executable.
18874 hardcode_action=$hardcode_action_GCJ
18875
18876 # Whether we should hardcode library paths into libraries.
18877 hardcode_into_libs=$hardcode_into_libs
18878
18879 # Flag to hardcode \$libdir into a binary during linking.
18880 # This must work even if \$libdir does not exist.
18881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18882
18883 # If ld is used when linking, flag to hardcode \$libdir into
18884 # a binary during linking. This must work even if \$libdir does
18885 # not exist.
18886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18887
18888 # Whether we need a single -rpath flag with a separated argument.
18889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18890
18891 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18892 # resulting binary.
18893 hardcode_direct=$hardcode_direct_GCJ
18894
18895 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18896 # resulting binary.
18897 hardcode_minus_L=$hardcode_minus_L_GCJ
18898
18899 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18900 # the resulting binary.
18901 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18902
18903 # Set to yes if building a shared library automatically hardcodes DIR into the library
18904 # and all subsequent libraries and executables linked against it.
18905 hardcode_automatic=$hardcode_automatic_GCJ
18906
18907 # Variables whose values should be saved in libtool wrapper scripts and
18908 # restored at relink time.
18909 variables_saved_for_relink="$variables_saved_for_relink"
18910
18911 # Whether libtool must link a program against all its dependency libraries.
18912 link_all_deplibs=$link_all_deplibs_GCJ
18913
18914 # Compile-time system search path for libraries
18915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18916
18917 # Run-time system search path for libraries
18918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18919
18920 # Fix the shell variable \$srcfile for the compiler.
18921 fix_srcfile_path=$lt_fix_srcfile_path
18922
18923 # Set to yes if exported symbols are required.
18924 always_export_symbols=$always_export_symbols_GCJ
18925
18926 # The commands to list exported symbols.
18927 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18928
18929 # The commands to extract the exported symbol list from a shared archive.
18930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18931
18932 # Symbols that should not be listed in the preloaded symbols.
18933 exclude_expsyms=$lt_exclude_expsyms_GCJ
18934
18935 # Symbols that must always be exported.
18936 include_expsyms=$lt_include_expsyms_GCJ
18937
18938 # ### END LIBTOOL TAG CONFIG: $tagname
18939
18940 __EOF__
18941
18942
18943 else
18944   # If there is no Makefile yet, we rely on a make rule to execute
18945   # `config.status --recheck' to rerun these tests and create the
18946   # libtool script then.
18947   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18948   if test -f "$ltmain_in"; then
18949     test -f Makefile && make "$ltmain"
18950   fi
18951 fi
18952
18953
18954 ac_ext=c
18955 ac_cpp='$CPP $CPPFLAGS'
18956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18959
18960 CC="$lt_save_CC"
18961
18962         else
18963           tagname=""
18964         fi
18965         ;;
18966
18967       RC)
18968
18969
18970 # Source file extension for RC test sources.
18971 ac_ext=rc
18972
18973 # Object file extension for compiled RC test sources.
18974 objext=o
18975 objext_RC=$objext
18976
18977 # Code to be used in simple compile tests
18978 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18979
18980 # Code to be used in simple link tests
18981 lt_simple_link_test_code="$lt_simple_compile_test_code"
18982
18983 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18984
18985 # If no C compiler was specified, use CC.
18986 LTCC=${LTCC-"$CC"}
18987
18988 # If no C compiler flags were specified, use CFLAGS.
18989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18990
18991 # Allow CC to be a program name with arguments.
18992 compiler=$CC
18993
18994
18995 # save warnings/boilerplate of simple test code
18996 ac_outfile=conftest.$ac_objext
18997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18999 _lt_compiler_boilerplate=`cat conftest.err`
19000 $rm conftest*
19001
19002 ac_outfile=conftest.$ac_objext
19003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19005 _lt_linker_boilerplate=`cat conftest.err`
19006 $rm -r conftest*
19007
19008
19009 # Allow CC to be a program name with arguments.
19010 lt_save_CC="$CC"
19011 CC=${RC-"windres"}
19012 compiler=$CC
19013 compiler_RC=$CC
19014 for cc_temp in $compiler""; do
19015   case $cc_temp in
19016     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19017     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19018     \-*) ;;
19019     *) break;;
19020   esac
19021 done
19022 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19023
19024 lt_cv_prog_compiler_c_o_RC=yes
19025
19026 # The else clause should only fire when bootstrapping the
19027 # libtool distribution, otherwise you forgot to ship ltmain.sh
19028 # with your package, and you will get complaints that there are
19029 # no rules to generate ltmain.sh.
19030 if test -f "$ltmain"; then
19031   # See if we are running on zsh, and set the options which allow our commands through
19032   # without removal of \ escapes.
19033   if test -n "${ZSH_VERSION+set}" ; then
19034     setopt NO_GLOB_SUBST
19035   fi
19036   # Now quote all the things that may contain metacharacters while being
19037   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19038   # variables and quote the copies for generation of the libtool script.
19039   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19040     SED SHELL STRIP \
19041     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19042     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19043     deplibs_check_method reload_flag reload_cmds need_locks \
19044     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19045     lt_cv_sys_global_symbol_to_c_name_address \
19046     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19047     old_postinstall_cmds old_postuninstall_cmds \
19048     compiler_RC \
19049     CC_RC \
19050     LD_RC \
19051     lt_prog_compiler_wl_RC \
19052     lt_prog_compiler_pic_RC \
19053     lt_prog_compiler_static_RC \
19054     lt_prog_compiler_no_builtin_flag_RC \
19055     export_dynamic_flag_spec_RC \
19056     thread_safe_flag_spec_RC \
19057     whole_archive_flag_spec_RC \
19058     enable_shared_with_static_runtimes_RC \
19059     old_archive_cmds_RC \
19060     old_archive_from_new_cmds_RC \
19061     predep_objects_RC \
19062     postdep_objects_RC \
19063     predeps_RC \
19064     postdeps_RC \
19065     compiler_lib_search_path_RC \
19066     compiler_lib_search_dirs_RC \
19067     archive_cmds_RC \
19068     archive_expsym_cmds_RC \
19069     postinstall_cmds_RC \
19070     postuninstall_cmds_RC \
19071     old_archive_from_expsyms_cmds_RC \
19072     allow_undefined_flag_RC \
19073     no_undefined_flag_RC \
19074     export_symbols_cmds_RC \
19075     hardcode_libdir_flag_spec_RC \
19076     hardcode_libdir_flag_spec_ld_RC \
19077     hardcode_libdir_separator_RC \
19078     hardcode_automatic_RC \
19079     module_cmds_RC \
19080     module_expsym_cmds_RC \
19081     lt_cv_prog_compiler_c_o_RC \
19082     fix_srcfile_path_RC \
19083     exclude_expsyms_RC \
19084     include_expsyms_RC; do
19085
19086     case $var in
19087     old_archive_cmds_RC | \
19088     old_archive_from_new_cmds_RC | \
19089     archive_cmds_RC | \
19090     archive_expsym_cmds_RC | \
19091     module_cmds_RC | \
19092     module_expsym_cmds_RC | \
19093     old_archive_from_expsyms_cmds_RC | \
19094     export_symbols_cmds_RC | \
19095     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19096     postinstall_cmds | postuninstall_cmds | \
19097     old_postinstall_cmds | old_postuninstall_cmds | \
19098     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19099       # Double-quote double-evaled strings.
19100       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19101       ;;
19102     *)
19103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19104       ;;
19105     esac
19106   done
19107
19108   case $lt_echo in
19109   *'\$0 --fallback-echo"')
19110     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19111     ;;
19112   esac
19113
19114 cfgfile="$ofile"
19115
19116   cat <<__EOF__ >> "$cfgfile"
19117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19118
19119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19120
19121 # Shell to use when invoking shell scripts.
19122 SHELL=$lt_SHELL
19123
19124 # Whether or not to build shared libraries.
19125 build_libtool_libs=$enable_shared
19126
19127 # Whether or not to build static libraries.
19128 build_old_libs=$enable_static
19129
19130 # Whether or not to add -lc for building shared libraries.
19131 build_libtool_need_lc=$archive_cmds_need_lc_RC
19132
19133 # Whether or not to disallow shared libs when runtime libs are static
19134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19135
19136 # Whether or not to optimize for fast installation.
19137 fast_install=$enable_fast_install
19138
19139 # The host system.
19140 host_alias=$host_alias
19141 host=$host
19142 host_os=$host_os
19143
19144 # The build system.
19145 build_alias=$build_alias
19146 build=$build
19147 build_os=$build_os
19148
19149 # An echo program that does not interpret backslashes.
19150 echo=$lt_echo
19151
19152 # The archiver.
19153 AR=$lt_AR
19154 AR_FLAGS=$lt_AR_FLAGS
19155
19156 # A C compiler.
19157 LTCC=$lt_LTCC
19158
19159 # LTCC compiler flags.
19160 LTCFLAGS=$lt_LTCFLAGS
19161
19162 # A language-specific compiler.
19163 CC=$lt_compiler_RC
19164
19165 # Is the compiler the GNU C compiler?
19166 with_gcc=$GCC_RC
19167
19168 # An ERE matcher.
19169 EGREP=$lt_EGREP
19170
19171 # The linker used to build libraries.
19172 LD=$lt_LD_RC
19173
19174 # Whether we need hard or soft links.
19175 LN_S=$lt_LN_S
19176
19177 # A BSD-compatible nm program.
19178 NM=$lt_NM
19179
19180 # A symbol stripping program
19181 STRIP=$lt_STRIP
19182
19183 # Used to examine libraries when file_magic_cmd begins "file"
19184 MAGIC_CMD=$MAGIC_CMD
19185
19186 # Used on cygwin: DLL creation program.
19187 DLLTOOL="$DLLTOOL"
19188
19189 # Used on cygwin: object dumper.
19190 OBJDUMP="$OBJDUMP"
19191
19192 # Used on cygwin: assembler.
19193 AS="$AS"
19194
19195 # The name of the directory that contains temporary libtool files.
19196 objdir=$objdir
19197
19198 # How to create reloadable object files.
19199 reload_flag=$lt_reload_flag
19200 reload_cmds=$lt_reload_cmds
19201
19202 # How to pass a linker flag through the compiler.
19203 wl=$lt_lt_prog_compiler_wl_RC
19204
19205 # Object file suffix (normally "o").
19206 objext="$ac_objext"
19207
19208 # Old archive suffix (normally "a").
19209 libext="$libext"
19210
19211 # Shared library suffix (normally ".so").
19212 shrext_cmds='$shrext_cmds'
19213
19214 # Executable file suffix (normally "").
19215 exeext="$exeext"
19216
19217 # Additional compiler flags for building library objects.
19218 pic_flag=$lt_lt_prog_compiler_pic_RC
19219 pic_mode=$pic_mode
19220
19221 # What is the maximum length of a command?
19222 max_cmd_len=$lt_cv_sys_max_cmd_len
19223
19224 # Does compiler simultaneously support -c and -o options?
19225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19226
19227 # Must we lock files when doing compilation?
19228 need_locks=$lt_need_locks
19229
19230 # Do we need the lib prefix for modules?
19231 need_lib_prefix=$need_lib_prefix
19232
19233 # Do we need a version for libraries?
19234 need_version=$need_version
19235
19236 # Whether dlopen is supported.
19237 dlopen_support=$enable_dlopen
19238
19239 # Whether dlopen of programs is supported.
19240 dlopen_self=$enable_dlopen_self
19241
19242 # Whether dlopen of statically linked programs is supported.
19243 dlopen_self_static=$enable_dlopen_self_static
19244
19245 # Compiler flag to prevent dynamic linking.
19246 link_static_flag=$lt_lt_prog_compiler_static_RC
19247
19248 # Compiler flag to turn off builtin functions.
19249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19250
19251 # Compiler flag to allow reflexive dlopens.
19252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19253
19254 # Compiler flag to generate shared objects directly from archives.
19255 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19256
19257 # Compiler flag to generate thread-safe objects.
19258 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19259
19260 # Library versioning type.
19261 version_type=$version_type
19262
19263 # Format of library name prefix.
19264 libname_spec=$lt_libname_spec
19265
19266 # List of archive names.  First name is the real one, the rest are links.
19267 # The last name is the one that the linker finds with -lNAME.
19268 library_names_spec=$lt_library_names_spec
19269
19270 # The coded name of the library, if different from the real name.
19271 soname_spec=$lt_soname_spec
19272
19273 # Commands used to build and install an old-style archive.
19274 RANLIB=$lt_RANLIB
19275 old_archive_cmds=$lt_old_archive_cmds_RC
19276 old_postinstall_cmds=$lt_old_postinstall_cmds
19277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19278
19279 # Create an old-style archive from a shared archive.
19280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19281
19282 # Create a temporary old-style archive to link instead of a shared archive.
19283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19284
19285 # Commands used to build and install a shared archive.
19286 archive_cmds=$lt_archive_cmds_RC
19287 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19288 postinstall_cmds=$lt_postinstall_cmds
19289 postuninstall_cmds=$lt_postuninstall_cmds
19290
19291 # Commands used to build a loadable module (assumed same as above if empty)
19292 module_cmds=$lt_module_cmds_RC
19293 module_expsym_cmds=$lt_module_expsym_cmds_RC
19294
19295 # Commands to strip libraries.
19296 old_striplib=$lt_old_striplib
19297 striplib=$lt_striplib
19298
19299 # Dependencies to place before the objects being linked to create a
19300 # shared library.
19301 predep_objects=$lt_predep_objects_RC
19302
19303 # Dependencies to place after the objects being linked to create a
19304 # shared library.
19305 postdep_objects=$lt_postdep_objects_RC
19306
19307 # Dependencies to place before the objects being linked to create a
19308 # shared library.
19309 predeps=$lt_predeps_RC
19310
19311 # Dependencies to place after the objects being linked to create a
19312 # shared library.
19313 postdeps=$lt_postdeps_RC
19314
19315 # The directories searched by this compiler when creating a shared
19316 # library
19317 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19318
19319 # The library search path used internally by the compiler when linking
19320 # a shared library.
19321 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19322
19323 # Method to check whether dependent libraries are shared objects.
19324 deplibs_check_method=$lt_deplibs_check_method
19325
19326 # Command to use when deplibs_check_method == file_magic.
19327 file_magic_cmd=$lt_file_magic_cmd
19328
19329 # Flag that allows shared libraries with undefined symbols to be built.
19330 allow_undefined_flag=$lt_allow_undefined_flag_RC
19331
19332 # Flag that forces no undefined symbols.
19333 no_undefined_flag=$lt_no_undefined_flag_RC
19334
19335 # Commands used to finish a libtool library installation in a directory.
19336 finish_cmds=$lt_finish_cmds
19337
19338 # Same as above, but a single script fragment to be evaled but not shown.
19339 finish_eval=$lt_finish_eval
19340
19341 # Take the output of nm and produce a listing of raw symbols and C names.
19342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19343
19344 # Transform the output of nm in a proper C declaration
19345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19346
19347 # Transform the output of nm in a C name address pair
19348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19349
19350 # This is the shared library runtime path variable.
19351 runpath_var=$runpath_var
19352
19353 # This is the shared library path variable.
19354 shlibpath_var=$shlibpath_var
19355
19356 # Is shlibpath searched before the hard-coded library search path?
19357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19358
19359 # How to hardcode a shared library path into an executable.
19360 hardcode_action=$hardcode_action_RC
19361
19362 # Whether we should hardcode library paths into libraries.
19363 hardcode_into_libs=$hardcode_into_libs
19364
19365 # Flag to hardcode \$libdir into a binary during linking.
19366 # This must work even if \$libdir does not exist.
19367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19368
19369 # If ld is used when linking, flag to hardcode \$libdir into
19370 # a binary during linking. This must work even if \$libdir does
19371 # not exist.
19372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19373
19374 # Whether we need a single -rpath flag with a separated argument.
19375 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19376
19377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19378 # resulting binary.
19379 hardcode_direct=$hardcode_direct_RC
19380
19381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19382 # resulting binary.
19383 hardcode_minus_L=$hardcode_minus_L_RC
19384
19385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19386 # the resulting binary.
19387 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19388
19389 # Set to yes if building a shared library automatically hardcodes DIR into the library
19390 # and all subsequent libraries and executables linked against it.
19391 hardcode_automatic=$hardcode_automatic_RC
19392
19393 # Variables whose values should be saved in libtool wrapper scripts and
19394 # restored at relink time.
19395 variables_saved_for_relink="$variables_saved_for_relink"
19396
19397 # Whether libtool must link a program against all its dependency libraries.
19398 link_all_deplibs=$link_all_deplibs_RC
19399
19400 # Compile-time system search path for libraries
19401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19402
19403 # Run-time system search path for libraries
19404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19405
19406 # Fix the shell variable \$srcfile for the compiler.
19407 fix_srcfile_path=$lt_fix_srcfile_path
19408
19409 # Set to yes if exported symbols are required.
19410 always_export_symbols=$always_export_symbols_RC
19411
19412 # The commands to list exported symbols.
19413 export_symbols_cmds=$lt_export_symbols_cmds_RC
19414
19415 # The commands to extract the exported symbol list from a shared archive.
19416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19417
19418 # Symbols that should not be listed in the preloaded symbols.
19419 exclude_expsyms=$lt_exclude_expsyms_RC
19420
19421 # Symbols that must always be exported.
19422 include_expsyms=$lt_include_expsyms_RC
19423
19424 # ### END LIBTOOL TAG CONFIG: $tagname
19425
19426 __EOF__
19427
19428
19429 else
19430   # If there is no Makefile yet, we rely on a make rule to execute
19431   # `config.status --recheck' to rerun these tests and create the
19432   # libtool script then.
19433   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19434   if test -f "$ltmain_in"; then
19435     test -f Makefile && make "$ltmain"
19436   fi
19437 fi
19438
19439
19440 ac_ext=c
19441 ac_cpp='$CPP $CPPFLAGS'
19442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19445
19446 CC="$lt_save_CC"
19447
19448         ;;
19449
19450       *)
19451         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19452         ;;
19453       esac
19454
19455       # Append the new tag name to the list of available tags.
19456       if test -n "$tagname" ; then
19457       available_tags="$available_tags $tagname"
19458     fi
19459     fi
19460   done
19461   IFS="$lt_save_ifs"
19462
19463   # Now substitute the updated list of available tags.
19464   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19465     mv "${ofile}T" "$ofile"
19466     chmod +x "$ofile"
19467   else
19468     rm -f "${ofile}T"
19469     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19470   fi
19471 fi
19472
19473
19474
19475 # This can be used to rebuild libtool when needed
19476 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19477
19478 # Always use our own libtool.
19479 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19480
19481 # Prevent multiple expansion
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494 # Check whether --with-system-libtool was given.
19495 if test "${with_system_libtool+set}" = set; then :
19496   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19497 set dummy libtool; ac_word=$2
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19499 $as_echo_n "checking for $ac_word... " >&6; }
19500 if ${ac_cv_path_LIBTOOL+:} false; then :
19501   $as_echo_n "(cached) " >&6
19502 else
19503   case $LIBTOOL in
19504   [\\/]* | ?:[\\/]*)
19505   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19506   ;;
19507   *)
19508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19509 as_dummy="$PATH:/usr/local/bin"
19510 for as_dir in $as_dummy
19511 do
19512   IFS=$as_save_IFS
19513   test -z "$as_dir" && as_dir=.
19514     for ac_exec_ext in '' $ac_executable_extensions; do
19515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19516     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19518     break 2
19519   fi
19520 done
19521   done
19522 IFS=$as_save_IFS
19523
19524   ;;
19525 esac
19526 fi
19527 LIBTOOL=$ac_cv_path_LIBTOOL
19528 if test -n "$LIBTOOL"; then
19529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19530 $as_echo "$LIBTOOL" >&6; }
19531 else
19532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533 $as_echo "no" >&6; }
19534 fi
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547 else
19548
19549   LIBTOOL="`pwd`/libtool"
19550
19551
19552
19553
19554
19555
19556 fi
19557
19558
19559
19560
19561 # Check whether --enable-strict-dependencies was given.
19562 if test "${enable_strict_dependencies+set}" = set; then :
19563   enableval=$enable_strict_dependencies;
19564 fi
19565
19566
19567 docdir='${datadir}/doc/freeradius'
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19569 $as_echo_n "checking docdir... " >&6; }
19570
19571 # Check whether --with-docdir was given.
19572 if test "${with_docdir+set}" = set; then :
19573   withval=$with_docdir;  case "$withval" in
19574     no)
19575         docdir=no
19576         ;;
19577     yes)
19578         ;;
19579     [\\/$]* | ?:[\\/]* )
19580         docdir="$withval"
19581         ;;
19582     *)
19583         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19584         ;;
19585   esac
19586
19587 fi
19588
19589
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19591 $as_echo "$docdir" >&6; }
19592 if test "x$docdir" = xno; then
19593         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19594 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19595 fi
19596
19597 logdir='${localstatedir}/log/radius'
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19599 $as_echo_n "checking logdir... " >&6; }
19600
19601 # Check whether --with-logdir was given.
19602 if test "${with_logdir+set}" = set; then :
19603   withval=$with_logdir;  case "$withval" in
19604     no)
19605         as_fn_error $? "Need logdir" "$LINENO" 5
19606         ;;
19607     yes)
19608         ;;
19609     [\\/$]* | ?:[\\/]* )
19610         logdir="$withval"
19611         ;;
19612     *)
19613         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19614         ;;
19615   esac
19616
19617 fi
19618
19619
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19621 $as_echo "$logdir" >&6; }
19622
19623 radacctdir='${logdir}/radacct'
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19625 $as_echo_n "checking radacctdir... " >&6; }
19626
19627 # Check whether --with-radacctdir was given.
19628 if test "${with_radacctdir+set}" = set; then :
19629   withval=$with_radacctdir;  case "$withval" in
19630     no)
19631         as_fn_error $? "Need radacctdir" "$LINENO" 5
19632         ;;
19633     yes)
19634         ;;
19635     [\\/$]* | ?:[\\/]* )
19636         radacctdir="$withval"
19637         ;;
19638     *)
19639         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19640         ;;
19641   esac
19642
19643 fi
19644
19645
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19647 $as_echo "$radacctdir" >&6; }
19648
19649 raddbdir='${sysconfdir}/raddb'
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19651 $as_echo_n "checking raddbdir... " >&6; }
19652
19653 # Check whether --with-raddbdir was given.
19654 if test "${with_raddbdir+set}" = set; then :
19655   withval=$with_raddbdir;  case "$withval" in
19656     no)
19657         as_fn_error $? "Need raddbdir" "$LINENO" 5
19658         ;;
19659     yes)
19660         ;;
19661     [\\/$]* | ?:[\\/]* )
19662         raddbdir="$withval"
19663         ;;
19664     *)
19665         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19666         ;;
19667   esac
19668
19669 fi
19670
19671
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19673 $as_echo "$raddbdir" >&6; }
19674
19675 ASCEND_BINARY=yes
19676
19677 # Check whether --with-ascend-binary was given.
19678 if test "${with_ascend_binary+set}" = set; then :
19679   withval=$with_ascend_binary;  case "$withval" in
19680     yes)
19681         ;;
19682     *)
19683         ASCEND_BINARY=""
19684   esac
19685
19686 fi
19687
19688 if test "X$ASCEND_BINARY" = "Xyes"; then
19689
19690 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19691
19692 fi
19693
19694 WITH_THREADS=yes
19695
19696 # Check whether --with-threads was given.
19697 if test "${with_threads+set}" = set; then :
19698   withval=$with_threads;  case "$withval" in
19699     yes)
19700         ;;
19701     *)
19702         WITH_THREADS=""
19703   esac
19704
19705 fi
19706
19707
19708 WITH_VMPS=yes
19709
19710 # Check whether --with-vmps was given.
19711 if test "${with_vmps+set}" = set; then :
19712   withval=$with_vmps;  case "$withval" in
19713     yes)
19714         ;;
19715     *)
19716         WITH_VMPS=no
19717   esac
19718
19719 fi
19720
19721 if test "x$WITH_VMPS" = "xyes"; then
19722
19723 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19724
19725 fi
19726
19727 WITH_DHCP=yes
19728
19729 # Check whether --with-dhcp was given.
19730 if test "${with_dhcp+set}" = set; then :
19731   withval=$with_dhcp;  case "$withval" in
19732     yes)
19733         ;;
19734     *)
19735         WITH_DHCP=no
19736   esac
19737
19738 fi
19739
19740 if test "x$WITH_DHCP" = "xyes"; then
19741
19742 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19743
19744 fi
19745
19746
19747 WITH_POST_PROXY_AUTHORIZE=
19748
19749 # Check whether --with-post-proxy-authorize was given.
19750 if test "${with_post_proxy_authorize+set}" = set; then :
19751   withval=$with_post_proxy_authorize;  case "$withval" in
19752     yes)
19753         WITH_POST_PROXY_AUTHORIZE=""
19754         ;;
19755     *)
19756         ;;
19757   esac
19758
19759 fi
19760
19761
19762 STATIC_MODULES=
19763
19764 # Check whether --with-static_modules was given.
19765 if test "${with_static_modules+set}" = set; then :
19766   withval=$with_static_modules;
19767   for i in $withval; do
19768     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19769   done
19770
19771 fi
19772
19773
19774 MODULES=
19775
19776 # Check whether --with-modules was given.
19777 if test "${with_modules+set}" = set; then :
19778   withval=$with_modules;
19779  for i in $withval; do
19780    MODULES="$MODULES $i"
19781  done
19782
19783 fi
19784
19785
19786 # Check whether --enable-developer was given.
19787 if test "${enable_developer+set}" = set; then :
19788   enableval=$enable_developer;  case "$enableval" in
19789     no)
19790         developer=no
19791         ;;
19792     *)
19793         developer=yes
19794   esac
19795
19796 fi
19797
19798
19799 if test -d $srcdir/.git; then
19800   if test "x$developer" != "xno"; then
19801         developer="yes"
19802   fi
19803
19804     if test "x$GIT" = "xyes"; then
19805         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19806   fi
19807 fi
19808
19809 EXPERIMENTAL=
19810
19811 # Check whether --with-experimental-modules was given.
19812 if test "${with_experimental_modules+set}" = set; then :
19813   withval=$with_experimental_modules;  case "$withval" in
19814     yes)
19815         EXPERIMENTAL=yes
19816         ;;
19817     *)
19818   esac
19819
19820 fi
19821
19822
19823 WITH_OPENSSL=yes
19824
19825 # Check whether --with-openssl was given.
19826 if test "${with_openssl+set}" = set; then :
19827   withval=$with_openssl;  case "$withval" in
19828     no)
19829         WITH_OPENSSL=no
19830         ;;
19831     *)
19832         WITH_OPENSSL=yes
19833         ;;
19834   esac
19835
19836 fi
19837
19838
19839 OPENSSL_INCLUDE_DIR=
19840
19841 # Check whether --with-openssl-includes was given.
19842 if test "${with_openssl_includes+set}" = set; then :
19843   withval=$with_openssl_includes;  case "$withval" in
19844     *) OPENSSL_INCLUDE_DIR="$withval"
19845         ;;
19846   esac
19847
19848 fi
19849
19850
19851 OPENSSL_LIB_DIR=
19852
19853 # Check whether --with-openssl-libraries was given.
19854 if test "${with_openssl_libraries+set}" = set; then :
19855   withval=$with_openssl_libraries;  case "$withval" in
19856     *) OPENSSL_LIB_DIR="$withval"
19857         ;;
19858   esac
19859
19860 fi
19861
19862
19863
19864
19865 # Check whether --with-rlm-FOO-lib-dir was given.
19866 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19867   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19868     *)
19869         ;;
19870   esac
19871
19872 fi
19873
19874
19875
19876 # Check whether --with-rlm-FOO-include-dir was given.
19877 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19878   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19879     *)
19880         ;;
19881   esac
19882
19883 fi
19884
19885
19886
19887 WITH_UDPFROMTO=no
19888
19889 # Check whether --with-udpfromto was given.
19890 if test "${with_udpfromto+set}" = set; then :
19891   withval=$with_udpfromto;  case "$withval" in
19892     yes)
19893         WITH_UDPFROMTO=yes
19894         ;;
19895     *)
19896         WITH_UDPFROMTO=no
19897   esac
19898
19899 fi
19900
19901
19902 if test "x$WITH_UDPFROMTO" = "xyes"; then
19903
19904 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19905
19906 fi
19907
19908
19909 CHECKRAD=checkrad.pl
19910 # Extract the first word of "perl", so it can be a program name with args.
19911 set dummy perl; ac_word=$2
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19913 $as_echo_n "checking for $ac_word... " >&6; }
19914 if ${ac_cv_path_PERL+:} false; then :
19915   $as_echo_n "(cached) " >&6
19916 else
19917   case $PERL in
19918   [\\/]* | ?:[\\/]*)
19919   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19920   ;;
19921   *)
19922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19924 do
19925   IFS=$as_save_IFS
19926   test -z "$as_dir" && as_dir=.
19927     for ac_exec_ext in '' $ac_executable_extensions; do
19928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19929     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19931     break 2
19932   fi
19933 done
19934   done
19935 IFS=$as_save_IFS
19936
19937   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19938   ;;
19939 esac
19940 fi
19941 PERL=$ac_cv_path_PERL
19942 if test -n "$PERL"; then
19943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19944 $as_echo "$PERL" >&6; }
19945 else
19946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19947 $as_echo "no" >&6; }
19948 fi
19949
19950
19951 if test "x$ac_cv_path_PERL" = "x"; then
19952   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19953 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19954 fi
19955 # Extract the first word of "snmpget", so it can be a program name with args.
19956 set dummy snmpget; ac_word=$2
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19958 $as_echo_n "checking for $ac_word... " >&6; }
19959 if ${ac_cv_path_SNMPGET+:} false; then :
19960   $as_echo_n "(cached) " >&6
19961 else
19962   case $SNMPGET in
19963   [\\/]* | ?:[\\/]*)
19964   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19965   ;;
19966   *)
19967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19968 for as_dir in $PATH
19969 do
19970   IFS=$as_save_IFS
19971   test -z "$as_dir" && as_dir=.
19972     for ac_exec_ext in '' $ac_executable_extensions; do
19973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19974     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19976     break 2
19977   fi
19978 done
19979   done
19980 IFS=$as_save_IFS
19981
19982   ;;
19983 esac
19984 fi
19985 SNMPGET=$ac_cv_path_SNMPGET
19986 if test -n "$SNMPGET"; then
19987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19988 $as_echo "$SNMPGET" >&6; }
19989 else
19990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991 $as_echo "no" >&6; }
19992 fi
19993
19994
19995 if test "x$ac_cv_path_SNMPGET" = "x"; then
19996   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19997 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19998 fi
19999
20000 # Extract the first word of "snmpwalk", so it can be a program name with args.
20001 set dummy snmpwalk; ac_word=$2
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20003 $as_echo_n "checking for $ac_word... " >&6; }
20004 if ${ac_cv_path_SNMPWALK+:} false; then :
20005   $as_echo_n "(cached) " >&6
20006 else
20007   case $SNMPWALK in
20008   [\\/]* | ?:[\\/]*)
20009   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20010   ;;
20011   *)
20012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20013 for as_dir in $PATH
20014 do
20015   IFS=$as_save_IFS
20016   test -z "$as_dir" && as_dir=.
20017     for ac_exec_ext in '' $ac_executable_extensions; do
20018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20019     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20021     break 2
20022   fi
20023 done
20024   done
20025 IFS=$as_save_IFS
20026
20027   ;;
20028 esac
20029 fi
20030 SNMPWALK=$ac_cv_path_SNMPWALK
20031 if test -n "$SNMPWALK"; then
20032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
20033 $as_echo "$SNMPWALK" >&6; }
20034 else
20035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20036 $as_echo "no" >&6; }
20037 fi
20038
20039
20040 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20041   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20042 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20043 fi
20044
20045 # Extract the first word of "rusers", so it can be a program name with args.
20046 set dummy rusers; ac_word=$2
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20048 $as_echo_n "checking for $ac_word... " >&6; }
20049 if ${ac_cv_path_RUSERS+:} false; then :
20050   $as_echo_n "(cached) " >&6
20051 else
20052   case $RUSERS in
20053   [\\/]* | ?:[\\/]*)
20054   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20055   ;;
20056   *)
20057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20058 for as_dir in $PATH
20059 do
20060   IFS=$as_save_IFS
20061   test -z "$as_dir" && as_dir=.
20062     for ac_exec_ext in '' $ac_executable_extensions; do
20063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20064     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20066     break 2
20067   fi
20068 done
20069   done
20070 IFS=$as_save_IFS
20071
20072   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20073   ;;
20074 esac
20075 fi
20076 RUSERS=$ac_cv_path_RUSERS
20077 if test -n "$RUSERS"; then
20078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
20079 $as_echo "$RUSERS" >&6; }
20080 else
20081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082 $as_echo "no" >&6; }
20083 fi
20084
20085
20086
20087 missing_dir=`cd $ac_aux_dir && pwd`
20088 # expand $ac_aux_dir to an absolute path
20089 am_aux_dir=`cd $ac_aux_dir && pwd`
20090
20091 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20092 # Use eval to expand $SHELL
20093 if eval "$MISSING --run true"; then
20094   am_missing_run="$MISSING --run "
20095 else
20096   am_missing_run=
20097   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
20098 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20099 fi
20100
20101
20102 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20103
20104
20105 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20106
20107
20108 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20109
20110
20111 # Extract the first word of "locate", so it can be a program name with args.
20112 set dummy locate; ac_word=$2
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20114 $as_echo_n "checking for $ac_word... " >&6; }
20115 if ${ac_cv_path_LOCATE+:} false; then :
20116   $as_echo_n "(cached) " >&6
20117 else
20118   case $LOCATE in
20119   [\\/]* | ?:[\\/]*)
20120   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20121   ;;
20122   *)
20123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20124 for as_dir in $PATH
20125 do
20126   IFS=$as_save_IFS
20127   test -z "$as_dir" && as_dir=.
20128     for ac_exec_ext in '' $ac_executable_extensions; do
20129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20130     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20132     break 2
20133   fi
20134 done
20135   done
20136 IFS=$as_save_IFS
20137
20138   ;;
20139 esac
20140 fi
20141 LOCATE=$ac_cv_path_LOCATE
20142 if test -n "$LOCATE"; then
20143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20144 $as_echo "$LOCATE" >&6; }
20145 else
20146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147 $as_echo "no" >&6; }
20148 fi
20149
20150
20151 # Extract the first word of "dirname", so it can be a program name with args.
20152 set dummy dirname; ac_word=$2
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20154 $as_echo_n "checking for $ac_word... " >&6; }
20155 if ${ac_cv_path_DIRNAME+:} false; then :
20156   $as_echo_n "(cached) " >&6
20157 else
20158   case $DIRNAME in
20159   [\\/]* | ?:[\\/]*)
20160   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20161   ;;
20162   *)
20163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20164 for as_dir in $PATH
20165 do
20166   IFS=$as_save_IFS
20167   test -z "$as_dir" && as_dir=.
20168     for ac_exec_ext in '' $ac_executable_extensions; do
20169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20170     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20172     break 2
20173   fi
20174 done
20175   done
20176 IFS=$as_save_IFS
20177
20178   ;;
20179 esac
20180 fi
20181 DIRNAME=$ac_cv_path_DIRNAME
20182 if test -n "$DIRNAME"; then
20183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20184 $as_echo "$DIRNAME" >&6; }
20185 else
20186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20187 $as_echo "no" >&6; }
20188 fi
20189
20190
20191 # Extract the first word of "grep", so it can be a program name with args.
20192 set dummy grep; ac_word=$2
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20194 $as_echo_n "checking for $ac_word... " >&6; }
20195 if ${ac_cv_path_GREP+:} false; then :
20196   $as_echo_n "(cached) " >&6
20197 else
20198   case $GREP in
20199   [\\/]* | ?:[\\/]*)
20200   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20201   ;;
20202   *)
20203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20204 for as_dir in $PATH
20205 do
20206   IFS=$as_save_IFS
20207   test -z "$as_dir" && as_dir=.
20208     for ac_exec_ext in '' $ac_executable_extensions; do
20209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20210     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20212     break 2
20213   fi
20214 done
20215   done
20216 IFS=$as_save_IFS
20217
20218   ;;
20219 esac
20220 fi
20221 GREP=$ac_cv_path_GREP
20222 if test -n "$GREP"; then
20223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20224 $as_echo "$GREP" >&6; }
20225 else
20226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20227 $as_echo "no" >&6; }
20228 fi
20229
20230
20231
20232
20233 old_CFLAGS=$CFLAGS
20234 if test "x$WITH_THREADS" = "xyes"; then
20235   if test $ac_cv_prog_suncc = "yes"; then
20236     CFLAGS="$CFLAGS -mt"
20237   fi
20238
20239   for ac_header in pthread.h
20240 do :
20241   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20242 if test "x$ac_cv_header_pthread_h" = xyes; then :
20243   cat >>confdefs.h <<_ACEOF
20244 #define HAVE_PTHREAD_H 1
20245 _ACEOF
20246
20247 else
20248    WITH_THREADS="no"
20249 fi
20250
20251 done
20252
20253
20254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20255 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20256 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20257   $as_echo_n "(cached) " >&6
20258 else
20259   ac_check_lib_save_LIBS=$LIBS
20260 LIBS="-lpthread  $LIBS"
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h.  */
20263
20264 /* Override any GCC internal prototype to avoid an error.
20265    Use char because int might match the return type of a GCC
20266    builtin and then its argument prototype would still apply.  */
20267 #ifdef __cplusplus
20268 extern "C"
20269 #endif
20270 char pthread_create ();
20271 int
20272 main ()
20273 {
20274 return pthread_create ();
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 if ac_fn_c_try_link "$LINENO"; then :
20280   ac_cv_lib_pthread_pthread_create=yes
20281 else
20282   ac_cv_lib_pthread_pthread_create=no
20283 fi
20284 rm -f core conftest.err conftest.$ac_objext \
20285     conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20287 fi
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20289 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20290 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20291    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20292                   LIBS="-lpthread $LIBS"
20293 else
20294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20295 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20296 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20297   $as_echo_n "(cached) " >&6
20298 else
20299   ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-lc_r  $LIBS"
20301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h.  */
20303
20304 /* Override any GCC internal prototype to avoid an error.
20305    Use char because int might match the return type of a GCC
20306    builtin and then its argument prototype would still apply.  */
20307 #ifdef __cplusplus
20308 extern "C"
20309 #endif
20310 char pthread_create ();
20311 int
20312 main ()
20313 {
20314 return pthread_create ();
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 if ac_fn_c_try_link "$LINENO"; then :
20320   ac_cv_lib_c_r_pthread_create=yes
20321 else
20322   ac_cv_lib_c_r_pthread_create=no
20323 fi
20324 rm -f core conftest.err conftest.$ac_objext \
20325     conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20327 fi
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20329 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20330 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20331    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20332 else
20333    WITH_THREADS="no"
20334
20335 fi
20336
20337
20338 fi
20339
20340 fi
20341
20342 if test "x$WITH_THREADS" != "xyes"; then
20343   CFLAGS=$old_CFLAGS
20344   ac_cv_header_pthread_h="no"
20345   WITH_THREADS=no
20346 else
20347
20348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20349 $as_echo_n "checking for library containing sem_init... " >&6; }
20350 if ${ac_cv_search_sem_init+:} false; then :
20351   $as_echo_n "(cached) " >&6
20352 else
20353   ac_func_search_save_LIBS=$LIBS
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h.  */
20356
20357 /* Override any GCC internal prototype to avoid an error.
20358    Use char because int might match the return type of a GCC
20359    builtin and then its argument prototype would still apply.  */
20360 #ifdef __cplusplus
20361 extern "C"
20362 #endif
20363 char sem_init ();
20364 int
20365 main ()
20366 {
20367 return sem_init ();
20368   ;
20369   return 0;
20370 }
20371 _ACEOF
20372 for ac_lib in '' pthread sem posix4 rt semaphore; do
20373   if test -z "$ac_lib"; then
20374     ac_res="none required"
20375   else
20376     ac_res=-l$ac_lib
20377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20378   fi
20379   if ac_fn_c_try_link "$LINENO"; then :
20380   ac_cv_search_sem_init=$ac_res
20381 fi
20382 rm -f core conftest.err conftest.$ac_objext \
20383     conftest$ac_exeext
20384   if ${ac_cv_search_sem_init+:} false; then :
20385   break
20386 fi
20387 done
20388 if ${ac_cv_search_sem_init+:} false; then :
20389
20390 else
20391   ac_cv_search_sem_init=no
20392 fi
20393 rm conftest.$ac_ext
20394 LIBS=$ac_func_search_save_LIBS
20395 fi
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20397 $as_echo "$ac_cv_search_sem_init" >&6; }
20398 ac_res=$ac_cv_search_sem_init
20399 if test "$ac_res" != no; then :
20400   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20401
20402 else
20403   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
20404
20405 fi
20406
20407 fi
20408
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20410 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20411 if ${ac_cv_lib_socket_getsockname+:} false; then :
20412   $as_echo_n "(cached) " >&6
20413 else
20414   ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lsocket  $LIBS"
20416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20417 /* end confdefs.h.  */
20418
20419 /* Override any GCC internal prototype to avoid an error.
20420    Use char because int might match the return type of a GCC
20421    builtin and then its argument prototype would still apply.  */
20422 #ifdef __cplusplus
20423 extern "C"
20424 #endif
20425 char getsockname ();
20426 int
20427 main ()
20428 {
20429 return getsockname ();
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 if ac_fn_c_try_link "$LINENO"; then :
20435   ac_cv_lib_socket_getsockname=yes
20436 else
20437   ac_cv_lib_socket_getsockname=no
20438 fi
20439 rm -f core conftest.err conftest.$ac_objext \
20440     conftest$ac_exeext conftest.$ac_ext
20441 LIBS=$ac_check_lib_save_LIBS
20442 fi
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20444 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20445 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20446   cat >>confdefs.h <<_ACEOF
20447 #define HAVE_LIBSOCKET 1
20448 _ACEOF
20449
20450   LIBS="-lsocket $LIBS"
20451
20452 fi
20453
20454
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20456 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20457 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20458   $as_echo_n "(cached) " >&6
20459 else
20460   ac_check_lib_save_LIBS=$LIBS
20461 LIBS="-lresolv  $LIBS"
20462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20463 /* end confdefs.h.  */
20464
20465 /* Override any GCC internal prototype to avoid an error.
20466    Use char because int might match the return type of a GCC
20467    builtin and then its argument prototype would still apply.  */
20468 #ifdef __cplusplus
20469 extern "C"
20470 #endif
20471 char inet_aton ();
20472 int
20473 main ()
20474 {
20475 return inet_aton ();
20476   ;
20477   return 0;
20478 }
20479 _ACEOF
20480 if ac_fn_c_try_link "$LINENO"; then :
20481   ac_cv_lib_resolv_inet_aton=yes
20482 else
20483   ac_cv_lib_resolv_inet_aton=no
20484 fi
20485 rm -f core conftest.err conftest.$ac_objext \
20486     conftest$ac_exeext conftest.$ac_ext
20487 LIBS=$ac_check_lib_save_LIBS
20488 fi
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20490 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20491 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20492   cat >>confdefs.h <<_ACEOF
20493 #define HAVE_LIBRESOLV 1
20494 _ACEOF
20495
20496   LIBS="-lresolv $LIBS"
20497
20498 fi
20499
20500
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20502 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20503 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20504   $as_echo_n "(cached) " >&6
20505 else
20506   ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lnsl  $LIBS"
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h.  */
20510
20511 /* Override any GCC internal prototype to avoid an error.
20512    Use char because int might match the return type of a GCC
20513    builtin and then its argument prototype would still apply.  */
20514 #ifdef __cplusplus
20515 extern "C"
20516 #endif
20517 char inet_ntoa ();
20518 int
20519 main ()
20520 {
20521 return inet_ntoa ();
20522   ;
20523   return 0;
20524 }
20525 _ACEOF
20526 if ac_fn_c_try_link "$LINENO"; then :
20527   ac_cv_lib_nsl_inet_ntoa=yes
20528 else
20529   ac_cv_lib_nsl_inet_ntoa=no
20530 fi
20531 rm -f core conftest.err conftest.$ac_objext \
20532     conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20534 fi
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20536 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20537 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20538   cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBNSL 1
20540 _ACEOF
20541
20542   LIBS="-lnsl $LIBS"
20543
20544 fi
20545
20546
20547 OPENSSL_LIBS=
20548 if test "x$WITH_OPENSSL" = xyes; then
20549   old_LIBS=$LIBS
20550   old_LDFLAGS="$LDFLAGS"
20551   if test "x$OPENSSL_LIB_DIR" != "x"; then
20552     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20553   fi
20554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20555 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20556 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20557   $as_echo_n "(cached) " >&6
20558 else
20559   ac_check_lib_save_LIBS=$LIBS
20560 LIBS="-lcrypto  $LIBS"
20561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20562 /* end confdefs.h.  */
20563
20564 /* Override any GCC internal prototype to avoid an error.
20565    Use char because int might match the return type of a GCC
20566    builtin and then its argument prototype would still apply.  */
20567 #ifdef __cplusplus
20568 extern "C"
20569 #endif
20570 char DH_new ();
20571 int
20572 main ()
20573 {
20574 return DH_new ();
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_link "$LINENO"; then :
20580   ac_cv_lib_crypto_DH_new=yes
20581 else
20582   ac_cv_lib_crypto_DH_new=no
20583 fi
20584 rm -f core conftest.err conftest.$ac_objext \
20585     conftest$ac_exeext conftest.$ac_ext
20586 LIBS=$ac_check_lib_save_LIBS
20587 fi
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20589 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20590 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20591
20592         LIBS="-lcrypto $LIBS"
20593
20594 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20595
20596         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20597 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20598 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20599   $as_echo_n "(cached) " >&6
20600 else
20601   ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lssl  $LIBS"
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h.  */
20605
20606 /* Override any GCC internal prototype to avoid an error.
20607    Use char because int might match the return type of a GCC
20608    builtin and then its argument prototype would still apply.  */
20609 #ifdef __cplusplus
20610 extern "C"
20611 #endif
20612 char SSL_new ();
20613 int
20614 main ()
20615 {
20616 return SSL_new ();
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 if ac_fn_c_try_link "$LINENO"; then :
20622   ac_cv_lib_ssl_SSL_new=yes
20623 else
20624   ac_cv_lib_ssl_SSL_new=no
20625 fi
20626 rm -f core conftest.err conftest.$ac_objext \
20627     conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20629 fi
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20631 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20632 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20633
20634
20635 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20636
20637                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20638                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20639                 fi
20640                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20641
20642 fi
20643
20644
20645 fi
20646
20647   LIBS=$old_LIBS
20648   LDFLAGS="$old_LDFLAGS"
20649 fi
20650
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20652 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20653 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20654   $as_echo_n "(cached) " >&6
20655 else
20656   ac_check_lib_save_LIBS=$LIBS
20657 LIBS="-lws2_32  $LIBS"
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h.  */
20660
20661 /* Override any GCC internal prototype to avoid an error.
20662    Use char because int might match the return type of a GCC
20663    builtin and then its argument prototype would still apply.  */
20664 #ifdef __cplusplus
20665 extern "C"
20666 #endif
20667 char htonl ();
20668 int
20669 main ()
20670 {
20671 return htonl ();
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 if ac_fn_c_try_link "$LINENO"; then :
20677   ac_cv_lib_ws2_32_htonl=yes
20678 else
20679   ac_cv_lib_ws2_32_htonl=no
20680 fi
20681 rm -f core conftest.err conftest.$ac_objext \
20682     conftest$ac_exeext conftest.$ac_ext
20683 LIBS=$ac_check_lib_save_LIBS
20684 fi
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20686 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20687 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20688   cat >>confdefs.h <<_ACEOF
20689 #define HAVE_LIBWS2_32 1
20690 _ACEOF
20691
20692   LIBS="-lws2_32 $LIBS"
20693
20694 fi
20695
20696
20697 PCAP_LIBS=
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20699 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20700 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20701   $as_echo_n "(cached) " >&6
20702 else
20703   ac_check_lib_save_LIBS=$LIBS
20704 LIBS="-lpcap  $LIBS"
20705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20706 /* end confdefs.h.  */
20707
20708 /* Override any GCC internal prototype to avoid an error.
20709    Use char because int might match the return type of a GCC
20710    builtin and then its argument prototype would still apply.  */
20711 #ifdef __cplusplus
20712 extern "C"
20713 #endif
20714 char pcap_open_live ();
20715 int
20716 main ()
20717 {
20718 return pcap_open_live ();
20719   ;
20720   return 0;
20721 }
20722 _ACEOF
20723 if ac_fn_c_try_link "$LINENO"; then :
20724   ac_cv_lib_pcap_pcap_open_live=yes
20725 else
20726   ac_cv_lib_pcap_pcap_open_live=no
20727 fi
20728 rm -f core conftest.err conftest.$ac_objext \
20729     conftest$ac_exeext conftest.$ac_ext
20730 LIBS=$ac_check_lib_save_LIBS
20731 fi
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20733 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20734 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20735    PCAP_LIBS="-lpcap"
20736
20737 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20738
20739
20740 else
20741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20742 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20743 fi
20744
20745
20746
20747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20748 $as_echo_n "checking for a readline compatible library... " >&6; }
20749 if ${ac_cv_lib_readline+:} false; then :
20750   $as_echo_n "(cached) " >&6
20751 else
20752
20753     ORIG_LIBS=$LIBS
20754     for readline_lib in readline edit editline; do
20755       for termcap_lib in "" termcap curses ncurses; do
20756         if test -z "$termcap_lib"; then
20757           TRY_LIB="-l$readline_lib"
20758         else
20759           TRY_LIB="-l$readline_lib -l$termcap_lib"
20760         fi
20761         LIBS="$ORIG_LIBS $TRY_LIB"
20762         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20763 /* end confdefs.h.  */
20764
20765 /* Override any GCC internal prototype to avoid an error.
20766    Use char because int might match the return type of a GCC
20767    builtin and then its argument prototype would still apply.  */
20768 #ifdef __cplusplus
20769 extern "C"
20770 #endif
20771 char readline ();
20772 int
20773 main ()
20774 {
20775 return readline ();
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 if ac_fn_c_try_link "$LINENO"; then :
20781   ac_cv_lib_readline="$TRY_LIB"
20782 fi
20783 rm -f core conftest.err conftest.$ac_objext \
20784     conftest$ac_exeext conftest.$ac_ext
20785         if test -n "$ac_cv_lib_readline"; then
20786           break
20787         fi
20788       done
20789       if test -n "$ac_cv_lib_readline"; then
20790         break
20791       fi
20792     done
20793     if test -z "$ac_cv_lib_readline"; then
20794       ac_cv_lib_readline="no"
20795     fi
20796     LIBS=$ORIG_LIBS
20797
20798 fi
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20800 $as_echo "$ac_cv_lib_readline" >&6; }
20801
20802   if test "$ac_cv_lib_readline" != "no"; then
20803     LIBREADLINE="$ac_cv_lib_readline"
20804
20805 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20806
20807     for ac_header in readline.h readline/readline.h
20808 do :
20809   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20812   cat >>confdefs.h <<_ACEOF
20813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20814 _ACEOF
20815
20816 fi
20817
20818 done
20819
20820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20821 $as_echo_n "checking whether readline supports history... " >&6; }
20822 if ${ac_cv_lib_readline_history+:} false; then :
20823   $as_echo_n "(cached) " >&6
20824 else
20825
20826       ac_cv_lib_readline_history="no"
20827       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h.  */
20829
20830 /* Override any GCC internal prototype to avoid an error.
20831    Use char because int might match the return type of a GCC
20832    builtin and then its argument prototype would still apply.  */
20833 #ifdef __cplusplus
20834 extern "C"
20835 #endif
20836 char add_history ();
20837 int
20838 main ()
20839 {
20840 return add_history ();
20841   ;
20842   return 0;
20843 }
20844 _ACEOF
20845 if ac_fn_c_try_link "$LINENO"; then :
20846   ac_cv_lib_readline_history="yes"
20847 fi
20848 rm -f core conftest.err conftest.$ac_objext \
20849     conftest$ac_exeext conftest.$ac_ext
20850
20851 fi
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20853 $as_echo "$ac_cv_lib_readline_history" >&6; }
20854     if test "$ac_cv_lib_readline_history" = "yes"; then
20855
20856 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20857
20858       for ac_header in history.h readline/history.h
20859 do :
20860   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20863   cat >>confdefs.h <<_ACEOF
20864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20865 _ACEOF
20866
20867 fi
20868
20869 done
20870
20871     fi
20872   fi
20873
20874
20875
20876
20877 case "$host" in
20878 *-interix*)
20879         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20880         ;;
20881 *-darwin*)
20882         CFLAGS="$CFLAGS -DDARWIN"
20883         LIBS="-framework DirectoryService $LIBS"
20884         ;;
20885 esac
20886
20887 ac_header_dirent=no
20888 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20889   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20891 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20892 if eval \${$as_ac_Header+:} false; then :
20893   $as_echo_n "(cached) " >&6
20894 else
20895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20896 /* end confdefs.h.  */
20897 #include <sys/types.h>
20898 #include <$ac_hdr>
20899
20900 int
20901 main ()
20902 {
20903 if ((DIR *) 0)
20904 return 0;
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 if ac_fn_c_try_compile "$LINENO"; then :
20910   eval "$as_ac_Header=yes"
20911 else
20912   eval "$as_ac_Header=no"
20913 fi
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 fi
20916 eval ac_res=\$$as_ac_Header
20917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20918 $as_echo "$ac_res" >&6; }
20919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20920   cat >>confdefs.h <<_ACEOF
20921 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20922 _ACEOF
20923
20924 ac_header_dirent=$ac_hdr; break
20925 fi
20926
20927 done
20928 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20929 if test $ac_header_dirent = dirent.h; then
20930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20931 $as_echo_n "checking for library containing opendir... " >&6; }
20932 if ${ac_cv_search_opendir+:} false; then :
20933   $as_echo_n "(cached) " >&6
20934 else
20935   ac_func_search_save_LIBS=$LIBS
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h.  */
20938
20939 /* Override any GCC internal prototype to avoid an error.
20940    Use char because int might match the return type of a GCC
20941    builtin and then its argument prototype would still apply.  */
20942 #ifdef __cplusplus
20943 extern "C"
20944 #endif
20945 char opendir ();
20946 int
20947 main ()
20948 {
20949 return opendir ();
20950   ;
20951   return 0;
20952 }
20953 _ACEOF
20954 for ac_lib in '' dir; do
20955   if test -z "$ac_lib"; then
20956     ac_res="none required"
20957   else
20958     ac_res=-l$ac_lib
20959     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20960   fi
20961   if ac_fn_c_try_link "$LINENO"; then :
20962   ac_cv_search_opendir=$ac_res
20963 fi
20964 rm -f core conftest.err conftest.$ac_objext \
20965     conftest$ac_exeext
20966   if ${ac_cv_search_opendir+:} false; then :
20967   break
20968 fi
20969 done
20970 if ${ac_cv_search_opendir+:} false; then :
20971
20972 else
20973   ac_cv_search_opendir=no
20974 fi
20975 rm conftest.$ac_ext
20976 LIBS=$ac_func_search_save_LIBS
20977 fi
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20979 $as_echo "$ac_cv_search_opendir" >&6; }
20980 ac_res=$ac_cv_search_opendir
20981 if test "$ac_res" != no; then :
20982   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20983
20984 fi
20985
20986 else
20987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20988 $as_echo_n "checking for library containing opendir... " >&6; }
20989 if ${ac_cv_search_opendir+:} false; then :
20990   $as_echo_n "(cached) " >&6
20991 else
20992   ac_func_search_save_LIBS=$LIBS
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h.  */
20995
20996 /* Override any GCC internal prototype to avoid an error.
20997    Use char because int might match the return type of a GCC
20998    builtin and then its argument prototype would still apply.  */
20999 #ifdef __cplusplus
21000 extern "C"
21001 #endif
21002 char opendir ();
21003 int
21004 main ()
21005 {
21006 return opendir ();
21007   ;
21008   return 0;
21009 }
21010 _ACEOF
21011 for ac_lib in '' x; do
21012   if test -z "$ac_lib"; then
21013     ac_res="none required"
21014   else
21015     ac_res=-l$ac_lib
21016     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21017   fi
21018   if ac_fn_c_try_link "$LINENO"; then :
21019   ac_cv_search_opendir=$ac_res
21020 fi
21021 rm -f core conftest.err conftest.$ac_objext \
21022     conftest$ac_exeext
21023   if ${ac_cv_search_opendir+:} false; then :
21024   break
21025 fi
21026 done
21027 if ${ac_cv_search_opendir+:} false; then :
21028
21029 else
21030   ac_cv_search_opendir=no
21031 fi
21032 rm conftest.$ac_ext
21033 LIBS=$ac_func_search_save_LIBS
21034 fi
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21036 $as_echo "$ac_cv_search_opendir" >&6; }
21037 ac_res=$ac_cv_search_opendir
21038 if test "$ac_res" != no; then :
21039   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21040
21041 fi
21042
21043 fi
21044
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21046 $as_echo_n "checking for ANSI C header files... " >&6; }
21047 if ${ac_cv_header_stdc+:} false; then :
21048   $as_echo_n "(cached) " >&6
21049 else
21050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h.  */
21052 #include <stdlib.h>
21053 #include <stdarg.h>
21054 #include <string.h>
21055 #include <float.h>
21056
21057 int
21058 main ()
21059 {
21060
21061   ;
21062   return 0;
21063 }
21064 _ACEOF
21065 if ac_fn_c_try_compile "$LINENO"; then :
21066   ac_cv_header_stdc=yes
21067 else
21068   ac_cv_header_stdc=no
21069 fi
21070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071
21072 if test $ac_cv_header_stdc = yes; then
21073   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h.  */
21076 #include <string.h>
21077
21078 _ACEOF
21079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21080   $EGREP "memchr" >/dev/null 2>&1; then :
21081
21082 else
21083   ac_cv_header_stdc=no
21084 fi
21085 rm -f conftest*
21086
21087 fi
21088
21089 if test $ac_cv_header_stdc = yes; then
21090   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21092 /* end confdefs.h.  */
21093 #include <stdlib.h>
21094
21095 _ACEOF
21096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21097   $EGREP "free" >/dev/null 2>&1; then :
21098
21099 else
21100   ac_cv_header_stdc=no
21101 fi
21102 rm -f conftest*
21103
21104 fi
21105
21106 if test $ac_cv_header_stdc = yes; then
21107   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21108   if test "$cross_compiling" = yes; then :
21109   :
21110 else
21111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21112 /* end confdefs.h.  */
21113 #include <ctype.h>
21114 #include <stdlib.h>
21115 #if ((' ' & 0x0FF) == 0x020)
21116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21118 #else
21119 # define ISLOWER(c) \
21120                    (('a' <= (c) && (c) <= 'i') \
21121                      || ('j' <= (c) && (c) <= 'r') \
21122                      || ('s' <= (c) && (c) <= 'z'))
21123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21124 #endif
21125
21126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21127 int
21128 main ()
21129 {
21130   int i;
21131   for (i = 0; i < 256; i++)
21132     if (XOR (islower (i), ISLOWER (i))
21133         || toupper (i) != TOUPPER (i))
21134       return 2;
21135   return 0;
21136 }
21137 _ACEOF
21138 if ac_fn_c_try_run "$LINENO"; then :
21139
21140 else
21141   ac_cv_header_stdc=no
21142 fi
21143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21144   conftest.$ac_objext conftest.beam conftest.$ac_ext
21145 fi
21146
21147 fi
21148 fi
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21150 $as_echo "$ac_cv_header_stdc" >&6; }
21151 if test $ac_cv_header_stdc = yes; then
21152
21153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21154
21155 fi
21156
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21158 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21159 if ${ac_cv_header_time+:} false; then :
21160   $as_echo_n "(cached) " >&6
21161 else
21162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163 /* end confdefs.h.  */
21164 #include <sys/types.h>
21165 #include <sys/time.h>
21166 #include <time.h>
21167
21168 int
21169 main ()
21170 {
21171 if ((struct tm *) 0)
21172 return 0;
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 if ac_fn_c_try_compile "$LINENO"; then :
21178   ac_cv_header_time=yes
21179 else
21180   ac_cv_header_time=no
21181 fi
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21183 fi
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21185 $as_echo "$ac_cv_header_time" >&6; }
21186 if test $ac_cv_header_time = yes; then
21187
21188 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21189
21190 fi
21191
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21193 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21194 if ${ac_cv_header_sys_wait_h+:} false; then :
21195   $as_echo_n "(cached) " >&6
21196 else
21197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h.  */
21199 #include <sys/types.h>
21200 #include <sys/wait.h>
21201 #ifndef WEXITSTATUS
21202 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21203 #endif
21204 #ifndef WIFEXITED
21205 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21206 #endif
21207
21208 int
21209 main ()
21210 {
21211   int s;
21212   wait (&s);
21213   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
21218 if ac_fn_c_try_compile "$LINENO"; then :
21219   ac_cv_header_sys_wait_h=yes
21220 else
21221   ac_cv_header_sys_wait_h=no
21222 fi
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 fi
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21226 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21227 if test $ac_cv_header_sys_wait_h = yes; then
21228
21229 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21230
21231 fi
21232
21233
21234 for ac_header in \
21235         unistd.h \
21236         crypt.h \
21237         errno.h \
21238         resource.h \
21239         sys/resource.h \
21240         getopt.h \
21241         malloc.h \
21242         utmp.h \
21243         utmpx.h \
21244         signal.h \
21245         sys/select.h \
21246         syslog.h \
21247         inttypes.h \
21248         stdint.h \
21249         stdio.h \
21250         netdb.h \
21251         semaphore.h \
21252         arpa/inet.h \
21253         netinet/in.h \
21254         sys/types.h \
21255         sys/socket.h \
21256         winsock.h \
21257         sys/time.h \
21258         sys/wait.h \
21259         sys/security.h \
21260         fcntl.h \
21261         sys/fcntl.h \
21262         sys/prctl.h \
21263         sys/un.h \
21264         glob.h \
21265         prot.h \
21266         pwd.h \
21267         grp.h \
21268         stddef.h \
21269         fnmatch.h \
21270         sia.h \
21271         siad.h
21272
21273 do :
21274   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21275 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21277   cat >>confdefs.h <<_ACEOF
21278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21279 _ACEOF
21280
21281 fi
21282
21283 done
21284
21285
21286 for ac_header in net/if.h
21287 do :
21288   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21289 # include <sys/socket.h>
21290 # endif
21291
21292 "
21293 if test "x$ac_cv_header_net_if_h" = xyes; then :
21294   cat >>confdefs.h <<_ACEOF
21295 #define HAVE_NET_IF_H 1
21296 _ACEOF
21297
21298 fi
21299
21300 done
21301
21302
21303 REGEX=no
21304 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21305 if test "x$ac_cv_header_regex_h" = xyes; then :
21306
21307 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21308
21309 fi
21310
21311
21312 if test "x$ac_cv_header_regex_h" = "xyes"; then
21313   REGEX_EXTENDED=no
21314   REGEX=yes
21315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h.  */
21317 #include <regex.h>
21318      #ifdef REG_EXTENDED
21319        yes
21320      #endif
21321
21322 _ACEOF
21323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21324   $EGREP "yes" >/dev/null 2>&1; then :
21325
21326 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21327  REGEX_EXTENDED=yes
21328 fi
21329 rm -f conftest*
21330
21331 fi
21332
21333
21334
21335 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21336 then
21337
21338 $as_echo "#define OSFC2 /**/" >>confdefs.h
21339
21340 fi
21341
21342 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21343 then
21344
21345 $as_echo "#define OSFSIA /**/" >>confdefs.h
21346
21347 fi
21348
21349 OPENSSL_INCLUDE="-DNO_OPENSSL"
21350 if test "x$WITH_OPENSSL" = xyes; then
21351   if test "x$OPENSSL_LIBS" = "x"; then
21352     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21353 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21354   else
21355     old_CPPFLAGS=$CPPFLAGS
21356     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21357         CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21358     fi
21359         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21360     for ac_header in \
21361         openssl/ssl.h \
21362         openssl/crypto.h \
21363         openssl/err.h \
21364         openssl/evp.h \
21365         openssl/ocsp.h \
21366         openssl/engine.h
21367 do :
21368   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21369 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21370 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21371   cat >>confdefs.h <<_ACEOF
21372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21373 _ACEOF
21374
21375 else
21376   OPENSSL_LIBS=
21377
21378 fi
21379
21380 done
21381
21382     if test "x$OPENSSL_LIBS" != "x"; then
21383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21384 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21385         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h.  */
21387 #include <openssl/crypto.h>
21388              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21389              yes
21390              #endif
21391
21392 _ACEOF
21393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21394   $EGREP "yes" >/dev/null 2>&1; then :
21395   goodssl="yes"
21396 fi
21397 rm -f conftest*
21398
21399         if test "x$goodssl" != "xyes"; then
21400             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21401 $as_echo "no" >&6; }
21402             OPENSSL_LIBS=
21403         else
21404             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21405 $as_echo "yes" >&6; }
21406             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21407                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21408             else
21409                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21410             fi
21411         fi
21412     fi
21413     CPPFLAGS=$old_CPPFLAGS
21414   fi
21415 fi
21416
21417
21418 export OPENSSL_LIBS
21419
21420 if test "x$PCAP_LIBS" = x; then
21421     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21422 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21423 else
21424     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21425 if test "x$ac_cv_header_pcap_h" = xyes; then :
21426
21427 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21428
21429 else
21430    PCAP_LIBS=
21431         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21432 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21433
21434 fi
21435
21436
21437
21438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21439 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21440 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21441   $as_echo_n "(cached) " >&6
21442 else
21443   ac_check_lib_save_LIBS=$LIBS
21444 LIBS="-lpcap  $LIBS"
21445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h.  */
21447
21448 /* Override any GCC internal prototype to avoid an error.
21449    Use char because int might match the return type of a GCC
21450    builtin and then its argument prototype would still apply.  */
21451 #ifdef __cplusplus
21452 extern "C"
21453 #endif
21454 char pcap_fopen_offline ();
21455 int
21456 main ()
21457 {
21458 return pcap_fopen_offline ();
21459   ;
21460   return 0;
21461 }
21462 _ACEOF
21463 if ac_fn_c_try_link "$LINENO"; then :
21464   ac_cv_lib_pcap_pcap_fopen_offline=yes
21465 else
21466   ac_cv_lib_pcap_pcap_fopen_offline=no
21467 fi
21468 rm -f core conftest.err conftest.$ac_objext \
21469     conftest$ac_exeext conftest.$ac_ext
21470 LIBS=$ac_check_lib_save_LIBS
21471 fi
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21473 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21474 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21475
21476 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21477
21478
21479 fi
21480
21481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21482 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21483 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21484   $as_echo_n "(cached) " >&6
21485 else
21486   ac_check_lib_save_LIBS=$LIBS
21487 LIBS="-lpcap  $LIBS"
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h.  */
21490
21491 /* Override any GCC internal prototype to avoid an error.
21492    Use char because int might match the return type of a GCC
21493    builtin and then its argument prototype would still apply.  */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char pcap_dump_fopen ();
21498 int
21499 main ()
21500 {
21501 return pcap_dump_fopen ();
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 if ac_fn_c_try_link "$LINENO"; then :
21507   ac_cv_lib_pcap_pcap_dump_fopen=yes
21508 else
21509   ac_cv_lib_pcap_pcap_dump_fopen=no
21510 fi
21511 rm -f core conftest.err conftest.$ac_objext \
21512     conftest$ac_exeext conftest.$ac_ext
21513 LIBS=$ac_check_lib_save_LIBS
21514 fi
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21516 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21517 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21518
21519 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21520
21521
21522 fi
21523
21524 fi
21525
21526
21527
21528 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21529 if test "x$ac_cv_type_off_t" = xyes; then :
21530
21531 else
21532
21533 cat >>confdefs.h <<_ACEOF
21534 #define off_t long int
21535 _ACEOF
21536
21537 fi
21538
21539 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21540 if test "x$ac_cv_type_pid_t" = xyes; then :
21541
21542 else
21543
21544 cat >>confdefs.h <<_ACEOF
21545 #define pid_t int
21546 _ACEOF
21547
21548 fi
21549
21550 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21551 if test "x$ac_cv_type_size_t" = xyes; then :
21552
21553 else
21554
21555 cat >>confdefs.h <<_ACEOF
21556 #define size_t unsigned int
21557 _ACEOF
21558
21559 fi
21560
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21562 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21563 if ${ac_cv_type_uid_t+:} false; then :
21564   $as_echo_n "(cached) " >&6
21565 else
21566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h.  */
21568 #include <sys/types.h>
21569
21570 _ACEOF
21571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21572   $EGREP "uid_t" >/dev/null 2>&1; then :
21573   ac_cv_type_uid_t=yes
21574 else
21575   ac_cv_type_uid_t=no
21576 fi
21577 rm -f conftest*
21578
21579 fi
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21581 $as_echo "$ac_cv_type_uid_t" >&6; }
21582 if test $ac_cv_type_uid_t = no; then
21583
21584 $as_echo "#define uid_t int" >>confdefs.h
21585
21586
21587 $as_echo "#define gid_t int" >>confdefs.h
21588
21589 fi
21590
21591
21592
21593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21594 $as_echo_n "checking for socklen_t... " >&6; }
21595 if ${ac_cv_type_socklen_t+:} false; then :
21596   $as_echo_n "(cached) " >&6
21597 else
21598    ac_cv_type_socklen_t=no
21599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21600 /* end confdefs.h.  */
21601 #ifdef HAVE_SYS_TYPES_H
21602 #include <sys/types.h>
21603 #endif
21604 #ifdef HAVE_SYS_SOCKET_H
21605 #include <sys/socket.h>
21606 #endif
21607
21608 int
21609 main ()
21610 {
21611 socklen_t foo
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 if ac_fn_c_try_compile "$LINENO"; then :
21617   ac_cv_type_socklen_t=yes
21618 fi
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620
21621
21622 fi
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21624 $as_echo "$ac_cv_type_socklen_t" >&6; }
21625
21626   if test "$ac_cv_type_socklen_t" != "yes"; then
21627
21628 $as_echo "#define socklen_t int" >>confdefs.h
21629
21630   fi
21631
21632
21633
21634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21635 $as_echo_n "checking for uint8_t... " >&6; }
21636 if ${ac_cv_type_uint8_t+:} false; then :
21637   $as_echo_n "(cached) " >&6
21638 else
21639    ac_cv_type_uint8_t=no
21640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641 /* end confdefs.h.  */
21642 #ifdef HAVE_INTTYPES_H
21643 #include <inttypes.h>
21644 #endif
21645 #ifdef HAVE_STDINT_H
21646 #include <stdint.h>
21647 #endif
21648
21649 int
21650 main ()
21651 {
21652 uint8_t foo
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 if ac_fn_c_try_compile "$LINENO"; then :
21658   ac_cv_type_uint8_t=yes
21659 fi
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661
21662
21663 fi
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21665 $as_echo "$ac_cv_type_uint8_t" >&6; }
21666
21667   if test "$ac_cv_type_uint8_t" != "yes"; then
21668
21669 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21670
21671   fi
21672
21673
21674
21675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21676 $as_echo_n "checking for uint16_t... " >&6; }
21677 if ${ac_cv_type_uint16_t+:} false; then :
21678   $as_echo_n "(cached) " >&6
21679 else
21680    ac_cv_type_uint16_t=no
21681       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21682 /* end confdefs.h.  */
21683 #ifdef HAVE_INTTYPES_H
21684 #include <inttypes.h>
21685 #endif
21686 #ifdef HAVE_STDINT_H
21687 #include <stdint.h>
21688 #endif
21689
21690 int
21691 main ()
21692 {
21693 uint16_t foo
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 if ac_fn_c_try_compile "$LINENO"; then :
21699   ac_cv_type_uint16_t=yes
21700 fi
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702
21703
21704 fi
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21706 $as_echo "$ac_cv_type_uint16_t" >&6; }
21707
21708   if test "$ac_cv_type_uint16_t" != "yes"; then
21709
21710 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21711
21712   fi
21713
21714
21715
21716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21717 $as_echo_n "checking for uint32_t... " >&6; }
21718 if ${ac_cv_type_uint32_t+:} false; then :
21719   $as_echo_n "(cached) " >&6
21720 else
21721    ac_cv_type_uint32_t=no
21722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h.  */
21724 #ifdef HAVE_INTTYPES_H
21725 #include <inttypes.h>
21726 #endif
21727 #ifdef HAVE_STDINT_H
21728 #include <stdint.h>
21729 #endif
21730
21731 int
21732 main ()
21733 {
21734 uint32_t foo
21735   ;
21736   return 0;
21737 }
21738 _ACEOF
21739 if ac_fn_c_try_compile "$LINENO"; then :
21740   ac_cv_type_uint32_t=yes
21741 fi
21742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743
21744
21745 fi
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21747 $as_echo "$ac_cv_type_uint32_t" >&6; }
21748
21749   if test "$ac_cv_type_uint32_t" != "yes"; then
21750
21751 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21752
21753   fi
21754
21755
21756 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21757 #ifdef HAVE_NETINET_IN_H
21758 #include <netinet/in.h>
21759 #endif
21760
21761 "
21762 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21763
21764 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21765
21766 fi
21767
21768
21769 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21770 #ifdef HAVE_NETINET_IN_H
21771 #include <netinet/in.h>
21772 #endif
21773 #ifdef HAVE_SYS_SOCKET_H
21774 #include <sys/socket.h>
21775 #endif
21776
21777 "
21778 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21779
21780 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21781
21782 fi
21783
21784
21785 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21786 #ifdef HAVE_NETINET_IN_H
21787 #include <netinet/in.h>
21788 #endif
21789
21790 "
21791 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21792
21793 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21794
21795 fi
21796
21797
21798 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21799 #ifdef HAVE_SYS_TYPES_H
21800 #include <sys/types.h>
21801 #endif
21802 #ifdef HAVE_SYS_SOCKET_H
21803 #include <sys/socket.h>
21804 #endif
21805 #ifdef HAVE_NETDB_H
21806 #include <netdb.h>
21807 #endif
21808
21809 "
21810 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21811
21812 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21813
21814 fi
21815
21816
21817 for ac_func in \
21818         getopt_long \
21819         lockf \
21820         strsignal \
21821         sigaction \
21822         sigprocmask \
21823         pthread_sigmask \
21824         snprintf \
21825         vsnprintf \
21826         setsid \
21827         strncasecmp \
21828         strcasecmp \
21829         localtime_r \
21830         ctime_r \
21831         gmtime_r \
21832         strsep \
21833         inet_aton \
21834         inet_pton \
21835         inet_ntop \
21836         setlinebuf \
21837         setvbuf \
21838         getusershell \
21839         initgroups \
21840         getaddrinfo \
21841         getnameinfo \
21842         closefrom \
21843         gettimeofday \
21844         getpeereid \
21845         setuid \
21846         setresuid \
21847         getresuid \
21848         strlcat \
21849         strlcpy
21850
21851 do :
21852   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21854 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21855   cat >>confdefs.h <<_ACEOF
21856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21857 _ACEOF
21858
21859 fi
21860 done
21861
21862 for ac_func in \
21863         crypt \
21864         strncasecmp \
21865         strcasecmp \
21866         inet_aton \
21867         setlinebuf \
21868         getusershell \
21869         endusershell
21870
21871 do
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21873 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21874 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21875   $as_echo_n "(cached) " >&6
21876 else
21877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h.  */
21879
21880 #include <stdio.h>
21881 #include <string.h>
21882 #ifdef HAVE_UNISTD_H
21883 #include <unistd.h>
21884 #endif
21885 #ifdef HAVE_CRYPT_H
21886 #include <crypt.h>
21887 #endif
21888 #ifdef HAVE_ERRNO_H
21889 #include <errno.h>
21890 #endif
21891 #ifdef HAVE_RESOURCE_H
21892 #include <resource.h>
21893 #endif
21894 #ifdef HAVE_GETOPT_H
21895 #include <getopt.h>
21896 #endif
21897 #ifdef HAVE_MALLOC_H
21898 #include <malloc.h>
21899 #endif
21900 #ifdef HAVE_UTMP_H
21901 #include <utmp.h>
21902 #endif
21903 #ifdef HAVE_UTMPX_H
21904 #include <utmpx.h>
21905 #endif
21906 #ifdef HAVE_SYS_SELECT_H
21907 #include <sys/select.h>
21908 #endif
21909 #ifdef HAVE_DLFCN_H
21910 #include <dlfcn.h>
21911 #endif
21912 #ifdef HAVE_REGEX_H
21913 #include <regex.h>
21914 #endif
21915 #ifdef HAVE_SYSLOG_H
21916 #include <syslog.h>
21917 #endif
21918 #ifdef HAVE_INTTYPES_H
21919 #include <inttypes.h>
21920 #endif
21921 #ifdef HAVE_STDINT_H
21922 #include <stdint.h>
21923 #endif
21924 #ifdef HAVE_ARPA_INET_H
21925 #include <arpa/inet.h>
21926 #endif
21927
21928 int
21929 main ()
21930 {
21931 char *(*pfn) = (char *(*)) $ac_func
21932   ;
21933   return 0;
21934 }
21935 _ACEOF
21936 if ac_fn_c_try_compile "$LINENO"; then :
21937   eval "radius_cv_decl_needed_$ac_func=no"
21938 else
21939   eval "radius_cv_decl_needed_$ac_func=yes"
21940 fi
21941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942 fi
21943
21944 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21946 $as_echo "yes" >&6; }
21947   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21948   cat >>confdefs.h <<_ACEOF
21949 #define $radius_tr_decl 1
21950 _ACEOF
21951
21952 else
21953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954 $as_echo "no" >&6; }
21955 fi
21956
21957 done
21958
21959
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21961 $as_echo_n "checking return type of signal handlers... " >&6; }
21962 if ${ac_cv_type_signal+:} false; then :
21963   $as_echo_n "(cached) " >&6
21964 else
21965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21966 /* end confdefs.h.  */
21967 #include <sys/types.h>
21968 #include <signal.h>
21969
21970 int
21971 main ()
21972 {
21973 return *(signal (0, 0)) (0) == 1;
21974   ;
21975   return 0;
21976 }
21977 _ACEOF
21978 if ac_fn_c_try_compile "$LINENO"; then :
21979   ac_cv_type_signal=int
21980 else
21981   ac_cv_type_signal=void
21982 fi
21983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21984 fi
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21986 $as_echo "$ac_cv_type_signal" >&6; }
21987
21988 cat >>confdefs.h <<_ACEOF
21989 #define RETSIGTYPE $ac_cv_type_signal
21990 _ACEOF
21991
21992
21993
21994 if test "x$ac_cv_header_utmpx_h" = "xyes"
21995 then
21996
21997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21998 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
21999
22000
22001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22002 /* end confdefs.h.  */
22003
22004 #include <utmpx.h>
22005 #ifdef HAVE_STDDEF_H
22006 #include <stddef.h>
22007 #endif
22008 #ifndef offsetof
22009 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22010 #endif
22011
22012 int
22013 main ()
22014 {
22015  int foo = offsetof(struct utmpx, ut_xtime)
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 if ac_fn_c_try_compile "$LINENO"; then :
22021   has_element=" "
22022 else
22023   has_element=
22024 fi
22025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026
22027   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22028   if test "x$has_element" != "x"; then
22029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22030 $as_echo "yes" >&6; }
22031     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22032   else
22033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034 $as_echo "no" >&6; }
22035     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22036  fi
22037
22038  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22039  then
22040
22041 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22042
22043  fi
22044 fi
22045
22046
22047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22048 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22049
22050
22051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h.  */
22053
22054 #include <netinet/in.h>
22055 #ifdef HAVE_STDDEF_H
22056 #include <stddef.h>
22057 #endif
22058 #ifndef offsetof
22059 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22060 #endif
22061
22062 int
22063 main ()
22064 {
22065  int foo = offsetof(struct in_pktinfo, ipi_addr)
22066   ;
22067   return 0;
22068 }
22069 _ACEOF
22070 if ac_fn_c_try_compile "$LINENO"; then :
22071   has_element=" "
22072 else
22073   has_element=
22074 fi
22075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076
22077   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22078   if test "x$has_element" != "x"; then
22079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22080 $as_echo "yes" >&6; }
22081     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22082   else
22083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22084 $as_echo "no" >&6; }
22085     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22086  fi
22087
22088 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22089 then
22090
22091 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22092
22093 fi
22094
22095
22096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22097 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22098
22099
22100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22101 /* end confdefs.h.  */
22102
22103 #include <netinet/in.h>
22104 #ifdef HAVE_STDDEF_H
22105 #include <stddef.h>
22106 #endif
22107 #ifndef offsetof
22108 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22109 #endif
22110
22111 int
22112 main ()
22113 {
22114  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22115   ;
22116   return 0;
22117 }
22118 _ACEOF
22119 if ac_fn_c_try_compile "$LINENO"; then :
22120   has_element=" "
22121 else
22122   has_element=
22123 fi
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125
22126   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22127   if test "x$has_element" != "x"; then
22128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22129 $as_echo "yes" >&6; }
22130     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22131   else
22132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22133 $as_echo "no" >&6; }
22134     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22135  fi
22136
22137 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22138 then
22139
22140 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22141
22142 fi
22143
22144
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22146 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22147 if ${ac_cv_c_const+:} false; then :
22148   $as_echo_n "(cached) " >&6
22149 else
22150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h.  */
22152
22153 int
22154 main ()
22155 {
22156
22157 #ifndef __cplusplus
22158   /* Ultrix mips cc rejects this sort of thing.  */
22159   typedef int charset[2];
22160   const charset cs = { 0, 0 };
22161   /* SunOS 4.1.1 cc rejects this.  */
22162   char const *const *pcpcc;
22163   char **ppc;
22164   /* NEC SVR4.0.2 mips cc rejects this.  */
22165   struct point {int x, y;};
22166   static struct point const zero = {0,0};
22167   /* AIX XL C 1.02.0.0 rejects this.
22168      It does not let you subtract one const X* pointer from another in
22169      an arm of an if-expression whose if-part is not a constant
22170      expression */
22171   const char *g = "string";
22172   pcpcc = &g + (g ? g-g : 0);
22173   /* HPUX 7.0 cc rejects these. */
22174   ++pcpcc;
22175   ppc = (char**) pcpcc;
22176   pcpcc = (char const *const *) ppc;
22177   { /* SCO 3.2v4 cc rejects this sort of thing.  */
22178     char tx;
22179     char *t = &tx;
22180     char const *s = 0 ? (char *) 0 : (char const *) 0;
22181
22182     *t++ = 0;
22183     if (s) return 0;
22184   }
22185   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22186     int x[] = {25, 17};
22187     const int *foo = &x[0];
22188     ++foo;
22189   }
22190   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22191     typedef const int *iptr;
22192     iptr p = 0;
22193     ++p;
22194   }
22195   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22196        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22197     struct s { int j; const int *ap[3]; } bx;
22198     struct s *b = &bx; b->j = 5;
22199   }
22200   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22201     const int foo = 10;
22202     if (!foo) return 0;
22203   }
22204   return !cs[0] && !zero.x;
22205 #endif
22206
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 if ac_fn_c_try_compile "$LINENO"; then :
22212   ac_cv_c_const=yes
22213 else
22214   ac_cv_c_const=no
22215 fi
22216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217 fi
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22219 $as_echo "$ac_cv_c_const" >&6; }
22220 if test $ac_cv_c_const = no; then
22221
22222 $as_echo "#define const /**/" >>confdefs.h
22223
22224 fi
22225
22226
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22228 $as_echo_n "checking type of OS... " >&6; }
22229 OS=`uname -s`
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22231 $as_echo "$OS" >&6; }
22232 if test "$OS" = "OS/2"; then
22233         LIBPREFIX=
22234 else
22235         LIBPREFIX=lib
22236 fi
22237
22238
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22240 $as_echo_n "checking for developer gcc flags... " >&6; }
22241 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22242   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22243   CFLAGS="$CFLAGS $devflags"
22244   INSTALLSTRIP=""
22245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
22246 $as_echo "yes.  Using $devflags" >&6; }
22247 else
22248   devflags=""
22249   CFLAGS="$CFLAGS -DNDEBUG"
22250   INSTALLSTRIP=""
22251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22252 $as_echo "no." >&6; }
22253 fi
22254
22255
22256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22257 $as_echo_n "checking for TLS... " >&6; }
22258     if test "$cross_compiling" = yes; then :
22259   have_tls=no
22260 else
22261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h.  */
22263  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22264 _ACEOF
22265 if ac_fn_c_try_run "$LINENO"; then :
22266   have_tls=yes
22267 else
22268   have_tls=no
22269 fi
22270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22271   conftest.$ac_objext conftest.beam conftest.$ac_ext
22272 fi
22273
22274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22275 $as_echo "$have_tls" >&6; }
22276     if test "$have_tls" = "yes"; then
22277
22278 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22279
22280     fi
22281
22282
22283
22284 old_LIBS="$LIBS"
22285 LIBS="$LIBS $LIBLTDL"
22286 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22287 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22288
22289 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22290
22291 fi
22292
22293 LIBS="$old_LIBS"
22294
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22296 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22297 if ${ac_cv_lib_crypt_crypt+:} false; then :
22298   $as_echo_n "(cached) " >&6
22299 else
22300   ac_check_lib_save_LIBS=$LIBS
22301 LIBS="-lcrypt  $LIBS"
22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303 /* end confdefs.h.  */
22304
22305 /* Override any GCC internal prototype to avoid an error.
22306    Use char because int might match the return type of a GCC
22307    builtin and then its argument prototype would still apply.  */
22308 #ifdef __cplusplus
22309 extern "C"
22310 #endif
22311 char crypt ();
22312 int
22313 main ()
22314 {
22315 return crypt ();
22316   ;
22317   return 0;
22318 }
22319 _ACEOF
22320 if ac_fn_c_try_link "$LINENO"; then :
22321   ac_cv_lib_crypt_crypt=yes
22322 else
22323   ac_cv_lib_crypt_crypt=no
22324 fi
22325 rm -f core conftest.err conftest.$ac_objext \
22326     conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22328 fi
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22330 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22331 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22332   CRYPTLIB="-lcrypt"
22333
22334 fi
22335
22336 if test "$CRYPTLIB" != ""; then
22337
22338 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22339
22340 else
22341   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22342 if test "x$ac_cv_func_crypt" = xyes; then :
22343
22344 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22345
22346 fi
22347
22348 fi
22349
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22351 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22352 if ${ac_cv_lib_cipher_setkey+:} false; then :
22353   $as_echo_n "(cached) " >&6
22354 else
22355   ac_check_lib_save_LIBS=$LIBS
22356 LIBS="-lcipher  $LIBS"
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h.  */
22359
22360 /* Override any GCC internal prototype to avoid an error.
22361    Use char because int might match the return type of a GCC
22362    builtin and then its argument prototype would still apply.  */
22363 #ifdef __cplusplus
22364 extern "C"
22365 #endif
22366 char setkey ();
22367 int
22368 main ()
22369 {
22370 return setkey ();
22371   ;
22372   return 0;
22373 }
22374 _ACEOF
22375 if ac_fn_c_try_link "$LINENO"; then :
22376   ac_cv_lib_cipher_setkey=yes
22377 else
22378   ac_cv_lib_cipher_setkey=no
22379 fi
22380 rm -f core conftest.err conftest.$ac_objext \
22381     conftest$ac_exeext conftest.$ac_ext
22382 LIBS=$ac_check_lib_save_LIBS
22383 fi
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22385 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22386 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22387   CRYPTLIB="${CRYPTLIB} -lcipher"
22388
22389 fi
22390
22391
22392
22393
22394 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22395
22396
22397 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22398
22399
22400 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22401
22402 gethostbyaddrrstyle=""
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22404 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22405 case "$host" in
22406 *-freebsd*)
22407         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22408 #ifdef HAVE_NETDB_H
22409 #include <netdb.h>
22410 #endif
22411
22412 "
22413 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22414   ac_have_decl=1
22415 else
22416   ac_have_decl=0
22417 fi
22418
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22421 _ACEOF
22422 if test $ac_have_decl = 1; then :
22423
22424 else
22425
22426
22427 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22428
22429                 gethostbyaddrrstyle=BSD
22430                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22431 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22432
22433 fi
22434
22435         ;;
22436 esac
22437 if test "x$gethostbyaddrrstyle" = "x"; then
22438         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22439 /* end confdefs.h.  */
22440
22441 #include <stdio.h>
22442 #include <netdb.h>
22443
22444 int
22445 main ()
22446 {
22447  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 if ac_fn_c_try_link "$LINENO"; then :
22453
22454
22455 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22456
22457         gethostbyaddrrstyle=GNU
22458
22459 fi
22460 rm -f core conftest.err conftest.$ac_objext \
22461     conftest$ac_exeext conftest.$ac_ext
22462 fi
22463 if test "x$gethostbyaddrrstyle" = "x"; then
22464         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h.  */
22466
22467 #include <stdio.h>
22468 #include <netdb.h>
22469
22470 int
22471 main ()
22472 {
22473  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22474   ;
22475   return 0;
22476 }
22477 _ACEOF
22478 if ac_fn_c_try_link "$LINENO"; then :
22479
22480
22481 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22482
22483                 gethostbyaddrrstyle=SYSV
22484
22485 fi
22486 rm -f core conftest.err conftest.$ac_objext \
22487     conftest$ac_exeext conftest.$ac_ext
22488 fi
22489 if test "x$gethostbyaddrrstyle" = "x"; then
22490         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h.  */
22492
22493 #include <stdio.h>
22494 #include <netdb.h>
22495
22496 int
22497 main ()
22498 {
22499  gethostbyaddr(NULL, 0, 0)
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 if ac_fn_c_try_link "$LINENO"; then :
22505
22506
22507 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22508
22509                 gethostbyaddrrstyle=BSD
22510
22511 fi
22512 rm -f core conftest.err conftest.$ac_objext \
22513     conftest$ac_exeext conftest.$ac_ext
22514 fi
22515
22516 if test "x$gethostbyaddrrstyle" = "x"; then
22517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22518 $as_echo "none!  It must not exist, here." >&6; }
22519 else
22520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22521 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22522 fi
22523
22524 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22525         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22526 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22527 fi
22528
22529 gethostbynamerstyle=""
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22531 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533 /* end confdefs.h.  */
22534
22535 #include <stdio.h>
22536 #include <netdb.h>
22537
22538 int
22539 main ()
22540 {
22541  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22542   ;
22543   return 0;
22544 }
22545 _ACEOF
22546 if ac_fn_c_try_link "$LINENO"; then :
22547
22548
22549 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22550
22551         gethostbynamerstyle=GNU
22552
22553 fi
22554 rm -f core conftest.err conftest.$ac_objext \
22555     conftest$ac_exeext conftest.$ac_ext
22556 if test "x$gethostbynamerstyle" = "x"; then
22557         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h.  */
22559
22560 #include <stdio.h>
22561 #include <netdb.h>
22562
22563 int
22564 main ()
22565 {
22566  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22567   ;
22568   return 0;
22569 }
22570 _ACEOF
22571 if ac_fn_c_try_link "$LINENO"; then :
22572
22573
22574 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22575
22576                 gethostbynamerstyle=SYSV
22577
22578 fi
22579 rm -f core conftest.err conftest.$ac_objext \
22580     conftest$ac_exeext conftest.$ac_ext
22581 fi
22582 if test "x$gethostbynamerstyle" = "x"; then
22583         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h.  */
22585
22586 #include <stdio.h>
22587 #include <netdb.h>
22588
22589 int
22590 main ()
22591 {
22592  gethostbyname(NULL)
22593   ;
22594   return 0;
22595 }
22596 _ACEOF
22597 if ac_fn_c_try_link "$LINENO"; then :
22598
22599
22600 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22601
22602                 gethostbynamerstyle=BSD
22603
22604 fi
22605 rm -f core conftest.err conftest.$ac_objext \
22606     conftest$ac_exeext conftest.$ac_ext
22607 fi
22608
22609 if test "x$gethostbynamerstyle" = "x"; then
22610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22611 $as_echo "none!  It must not exist, here." >&6; }
22612 else
22613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22614 $as_echo "${gethostbynamerstyle}-style" >&6; }
22615 fi
22616
22617 if test "x$gethostbynamerstyle" = "xBSD"; then
22618         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22619 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22620 fi
22621
22622
22623 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22624
22625
22626 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22627
22628 ctimerstyle=""
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22630 $as_echo_n "checking ctime_r() syntax... " >&6; }
22631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22632 /* end confdefs.h.  */
22633
22634 #include <time.h>
22635
22636 int
22637 main ()
22638 {
22639  ctime_r(NULL, NULL, 0)
22640   ;
22641   return 0;
22642 }
22643 _ACEOF
22644 if ac_fn_c_try_link "$LINENO"; then :
22645
22646
22647 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22648
22649         ctimerstyle="SOLARIS"
22650
22651 fi
22652 rm -f core conftest.err conftest.$ac_objext \
22653     conftest$ac_exeext conftest.$ac_ext
22654 if test "x$ctimerstyle" = "x"; then
22655         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h.  */
22657
22658 #include <time.h>
22659
22660 int
22661 main ()
22662 {
22663  ctime_r(NULL, NULL)
22664   ;
22665   return 0;
22666 }
22667 _ACEOF
22668 if ac_fn_c_try_link "$LINENO"; then :
22669
22670
22671 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22672
22673                 ctimerstyle="POSIX"
22674
22675 fi
22676 rm -f core conftest.err conftest.$ac_objext \
22677     conftest$ac_exeext conftest.$ac_ext
22678 fi
22679
22680 if test "x$ctimerstyle" = "x"; then
22681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22682 $as_echo "none!  It must not exist, here." >&6; }
22683 else
22684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22685 $as_echo "${ctimerstyle}-style" >&6; }
22686 fi
22687
22688 HOSTINFO=$host
22689
22690
22691 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22692
22693 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22694
22695 fi
22696
22697
22698 top_builddir=`pwd`
22699 export top_builddir
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22701 $as_echo "top_builddir=$top_builddir" >&6; }
22702
22703
22704
22705
22706
22707 mysubdirs="$LIBLTDLPATH"
22708 if test "x$EXPERIMENTAL" = "xyes"; then
22709   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22710     mysubdirs=`echo $mysubdirs $bar`
22711 else
22712         for bar in `cat "${srcdir}"/src/modules/stable`; do
22713     if test -f "${srcdir}"/src/modules/$bar/configure; then
22714       mysubdirs="$mysubdirs src/modules/$bar"
22715     fi
22716   done
22717 fi
22718
22719 if test "x$EXPERIMENTAL" = "xyes"; then
22720   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22721     MODULES="$MODULES $foo"
22722   done
22723 else
22724             for foo in `cat "${srcdir}"/src/modules/stable`; do
22725     MODULES="$MODULES $foo"
22726    done
22727 fi
22728
22729
22730
22731 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22732
22733
22734
22735
22736 ac_config_commands="$ac_config_commands stamp-h"
22737
22738 ac_config_commands="$ac_config_commands build-radpaths-h"
22739
22740 ac_config_commands="$ac_config_commands main-chmod"
22741
22742 ac_config_commands="$ac_config_commands scripts-chmod"
22743
22744
22745
22746
22747
22748 USE_SHARED_LIBS=$enable_shared
22749
22750 USE_STATIC_LIBS=$enable_static
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761   unset ac_cv_env_LIBS_set
22762   unset ac_cv_env_LIBS_value
22763
22764   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"
22765
22766 cat >confcache <<\_ACEOF
22767 # This file is a shell script that caches the results of configure
22768 # tests run on this system so they can be shared between configure
22769 # scripts and configure runs, see configure's option --config-cache.
22770 # It is not useful on other systems.  If it contains results you don't
22771 # want to keep, you may remove or edit it.
22772 #
22773 # config.status only pays attention to the cache file if you give it
22774 # the --recheck option to rerun configure.
22775 #
22776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22778 # following values.
22779
22780 _ACEOF
22781
22782 # The following way of writing the cache mishandles newlines in values,
22783 # but we know of no workaround that is simple, portable, and efficient.
22784 # So, we kill variables containing newlines.
22785 # Ultrix sh set writes to stderr and can't be redirected directly,
22786 # and sets the high bit in the cache file unless we assign to the vars.
22787 (
22788   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22789     eval ac_val=\$$ac_var
22790     case $ac_val in #(
22791     *${as_nl}*)
22792       case $ac_var in #(
22793       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22795       esac
22796       case $ac_var in #(
22797       _ | IFS | as_nl) ;; #(
22798       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22799       *) { eval $ac_var=; unset $ac_var;} ;;
22800       esac ;;
22801     esac
22802   done
22803
22804   (set) 2>&1 |
22805     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22806     *${as_nl}ac_space=\ *)
22807       # `set' does not quote correctly, so add quotes: double-quote
22808       # substitution turns \\\\ into \\, and sed turns \\ into \.
22809       sed -n \
22810         "s/'/'\\\\''/g;
22811           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22812       ;; #(
22813     *)
22814       # `set' quotes correctly as required by POSIX, so do not add quotes.
22815       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22816       ;;
22817     esac |
22818     sort
22819 ) |
22820   sed '
22821      /^ac_cv_env_/b end
22822      t clear
22823      :clear
22824      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22825      t end
22826      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22827      :end' >>confcache
22828 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22829   if test -w "$cache_file"; then
22830     if test "x$cache_file" != "x/dev/null"; then
22831       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22832 $as_echo "$as_me: updating cache $cache_file" >&6;}
22833       if test ! -f "$cache_file" || test -h "$cache_file"; then
22834         cat confcache >"$cache_file"
22835       else
22836         case $cache_file in #(
22837         */* | ?:*)
22838           mv -f confcache "$cache_file"$$ &&
22839           mv -f "$cache_file"$$ "$cache_file" ;; #(
22840         *)
22841           mv -f confcache "$cache_file" ;;
22842         esac
22843       fi
22844     fi
22845   else
22846     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22847 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22848   fi
22849 fi
22850 rm -f confcache
22851
22852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22853 # Let make expand exec_prefix.
22854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22855
22856 DEFS=-DHAVE_CONFIG_H
22857
22858 ac_libobjs=
22859 ac_ltlibobjs=
22860 U=
22861 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22862   # 1. Remove the extension, and $U if already installed.
22863   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22864   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22865   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22866   #    will be set to the directory where LIBOBJS objects are built.
22867   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22868   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22869 done
22870 LIBOBJS=$ac_libobjs
22871
22872 LTLIBOBJS=$ac_ltlibobjs
22873
22874
22875
22876
22877 : "${CONFIG_STATUS=./config.status}"
22878 ac_write_fail=0
22879 ac_clean_files_save=$ac_clean_files
22880 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22882 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22883 as_write_fail=0
22884 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22885 #! $SHELL
22886 # Generated by $as_me.
22887 # Run this file to recreate the current configuration.
22888 # Compiler output produced by configure, useful for debugging
22889 # configure, is in config.log if it exists.
22890
22891 debug=false
22892 ac_cs_recheck=false
22893 ac_cs_silent=false
22894
22895 SHELL=\${CONFIG_SHELL-$SHELL}
22896 export SHELL
22897 _ASEOF
22898 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22899 ## -------------------- ##
22900 ## M4sh Initialization. ##
22901 ## -------------------- ##
22902
22903 # Be more Bourne compatible
22904 DUALCASE=1; export DUALCASE # for MKS sh
22905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22906   emulate sh
22907   NULLCMD=:
22908   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22909   # is contrary to our usage.  Disable this feature.
22910   alias -g '${1+"$@"}'='"$@"'
22911   setopt NO_GLOB_SUBST
22912 else
22913   case `(set -o) 2>/dev/null` in #(
22914   *posix*) :
22915     set -o posix ;; #(
22916   *) :
22917      ;;
22918 esac
22919 fi
22920
22921
22922 as_nl='
22923 '
22924 export as_nl
22925 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22926 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22929 # Prefer a ksh shell builtin over an external printf program on Solaris,
22930 # but without wasting forks for bash or zsh.
22931 if test -z "$BASH_VERSION$ZSH_VERSION" \
22932     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22933   as_echo='print -r --'
22934   as_echo_n='print -rn --'
22935 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22936   as_echo='printf %s\n'
22937   as_echo_n='printf %s'
22938 else
22939   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22940     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22941     as_echo_n='/usr/ucb/echo -n'
22942   else
22943     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22944     as_echo_n_body='eval
22945       arg=$1;
22946       case $arg in #(
22947       *"$as_nl"*)
22948         expr "X$arg" : "X\\(.*\\)$as_nl";
22949         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22950       esac;
22951       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22952     '
22953     export as_echo_n_body
22954     as_echo_n='sh -c $as_echo_n_body as_echo'
22955   fi
22956   export as_echo_body
22957   as_echo='sh -c $as_echo_body as_echo'
22958 fi
22959
22960 # The user is always right.
22961 if test "${PATH_SEPARATOR+set}" != set; then
22962   PATH_SEPARATOR=:
22963   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22964     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22965       PATH_SEPARATOR=';'
22966   }
22967 fi
22968
22969
22970 # IFS
22971 # We need space, tab and new line, in precisely that order.  Quoting is
22972 # there to prevent editors from complaining about space-tab.
22973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22974 # splitting by setting IFS to empty value.)
22975 IFS=" ""        $as_nl"
22976
22977 # Find who we are.  Look in the path if we contain no directory separator.
22978 as_myself=
22979 case $0 in #((
22980   *[\\/]* ) as_myself=$0 ;;
22981   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22982 for as_dir in $PATH
22983 do
22984   IFS=$as_save_IFS
22985   test -z "$as_dir" && as_dir=.
22986     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22987   done
22988 IFS=$as_save_IFS
22989
22990      ;;
22991 esac
22992 # We did not find ourselves, most probably we were run as `sh COMMAND'
22993 # in which case we are not to be found in the path.
22994 if test "x$as_myself" = x; then
22995   as_myself=$0
22996 fi
22997 if test ! -f "$as_myself"; then
22998   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22999   exit 1
23000 fi
23001
23002 # Unset variables that we do not need and which cause bugs (e.g. in
23003 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23004 # suppresses any "Segmentation fault" message there.  '((' could
23005 # trigger a bug in pdksh 5.2.14.
23006 for as_var in BASH_ENV ENV MAIL MAILPATH
23007 do eval test x\${$as_var+set} = xset \
23008   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23009 done
23010 PS1='$ '
23011 PS2='> '
23012 PS4='+ '
23013
23014 # NLS nuisances.
23015 LC_ALL=C
23016 export LC_ALL
23017 LANGUAGE=C
23018 export LANGUAGE
23019
23020 # CDPATH.
23021 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23022
23023
23024 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23025 # ----------------------------------------
23026 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23027 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23028 # script with STATUS, using 1 if that was 0.
23029 as_fn_error ()
23030 {
23031   as_status=$1; test $as_status -eq 0 && as_status=1
23032   if test "$4"; then
23033     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23034     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23035   fi
23036   $as_echo "$as_me: error: $2" >&2
23037   as_fn_exit $as_status
23038 } # as_fn_error
23039
23040
23041 # as_fn_set_status STATUS
23042 # -----------------------
23043 # Set $? to STATUS, without forking.
23044 as_fn_set_status ()
23045 {
23046   return $1
23047 } # as_fn_set_status
23048
23049 # as_fn_exit STATUS
23050 # -----------------
23051 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23052 as_fn_exit ()
23053 {
23054   set +e
23055   as_fn_set_status $1
23056   exit $1
23057 } # as_fn_exit
23058
23059 # as_fn_unset VAR
23060 # ---------------
23061 # Portably unset VAR.
23062 as_fn_unset ()
23063 {
23064   { eval $1=; unset $1;}
23065 }
23066 as_unset=as_fn_unset
23067 # as_fn_append VAR VALUE
23068 # ----------------------
23069 # Append the text in VALUE to the end of the definition contained in VAR. Take
23070 # advantage of any shell optimizations that allow amortized linear growth over
23071 # repeated appends, instead of the typical quadratic growth present in naive
23072 # implementations.
23073 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23074   eval 'as_fn_append ()
23075   {
23076     eval $1+=\$2
23077   }'
23078 else
23079   as_fn_append ()
23080   {
23081     eval $1=\$$1\$2
23082   }
23083 fi # as_fn_append
23084
23085 # as_fn_arith ARG...
23086 # ------------------
23087 # Perform arithmetic evaluation on the ARGs, and store the result in the
23088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23089 # must be portable across $(()) and expr.
23090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23091   eval 'as_fn_arith ()
23092   {
23093     as_val=$(( $* ))
23094   }'
23095 else
23096   as_fn_arith ()
23097   {
23098     as_val=`expr "$@" || test $? -eq 1`
23099   }
23100 fi # as_fn_arith
23101
23102
23103 if expr a : '\(a\)' >/dev/null 2>&1 &&
23104    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23105   as_expr=expr
23106 else
23107   as_expr=false
23108 fi
23109
23110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23111   as_basename=basename
23112 else
23113   as_basename=false
23114 fi
23115
23116 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23117   as_dirname=dirname
23118 else
23119   as_dirname=false
23120 fi
23121
23122 as_me=`$as_basename -- "$0" ||
23123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23124          X"$0" : 'X\(//\)$' \| \
23125          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23126 $as_echo X/"$0" |
23127     sed '/^.*\/\([^/][^/]*\)\/*$/{
23128             s//\1/
23129             q
23130           }
23131           /^X\/\(\/\/\)$/{
23132             s//\1/
23133             q
23134           }
23135           /^X\/\(\/\).*/{
23136             s//\1/
23137             q
23138           }
23139           s/.*/./; q'`
23140
23141 # Avoid depending upon Character Ranges.
23142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23145 as_cr_digits='0123456789'
23146 as_cr_alnum=$as_cr_Letters$as_cr_digits
23147
23148 ECHO_C= ECHO_N= ECHO_T=
23149 case `echo -n x` in #(((((
23150 -n*)
23151   case `echo 'xy\c'` in
23152   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23153   xy)  ECHO_C='\c';;
23154   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23155        ECHO_T=' ';;
23156   esac;;
23157 *)
23158   ECHO_N='-n';;
23159 esac
23160
23161 rm -f conf$$ conf$$.exe conf$$.file
23162 if test -d conf$$.dir; then
23163   rm -f conf$$.dir/conf$$.file
23164 else
23165   rm -f conf$$.dir
23166   mkdir conf$$.dir 2>/dev/null
23167 fi
23168 if (echo >conf$$.file) 2>/dev/null; then
23169   if ln -s conf$$.file conf$$ 2>/dev/null; then
23170     as_ln_s='ln -s'
23171     # ... but there are two gotchas:
23172     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23173     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23174     # In both cases, we have to default to `cp -pR'.
23175     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23176       as_ln_s='cp -pR'
23177   elif ln conf$$.file conf$$ 2>/dev/null; then
23178     as_ln_s=ln
23179   else
23180     as_ln_s='cp -pR'
23181   fi
23182 else
23183   as_ln_s='cp -pR'
23184 fi
23185 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23186 rmdir conf$$.dir 2>/dev/null
23187
23188
23189 # as_fn_mkdir_p
23190 # -------------
23191 # Create "$as_dir" as a directory, including parents if necessary.
23192 as_fn_mkdir_p ()
23193 {
23194
23195   case $as_dir in #(
23196   -*) as_dir=./$as_dir;;
23197   esac
23198   test -d "$as_dir" || eval $as_mkdir_p || {
23199     as_dirs=
23200     while :; do
23201       case $as_dir in #(
23202       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23203       *) as_qdir=$as_dir;;
23204       esac
23205       as_dirs="'$as_qdir' $as_dirs"
23206       as_dir=`$as_dirname -- "$as_dir" ||
23207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23208          X"$as_dir" : 'X\(//\)[^/]' \| \
23209          X"$as_dir" : 'X\(//\)$' \| \
23210          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23211 $as_echo X"$as_dir" |
23212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23213             s//\1/
23214             q
23215           }
23216           /^X\(\/\/\)[^/].*/{
23217             s//\1/
23218             q
23219           }
23220           /^X\(\/\/\)$/{
23221             s//\1/
23222             q
23223           }
23224           /^X\(\/\).*/{
23225             s//\1/
23226             q
23227           }
23228           s/.*/./; q'`
23229       test -d "$as_dir" && break
23230     done
23231     test -z "$as_dirs" || eval "mkdir $as_dirs"
23232   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23233
23234
23235 } # as_fn_mkdir_p
23236 if mkdir -p . 2>/dev/null; then
23237   as_mkdir_p='mkdir -p "$as_dir"'
23238 else
23239   test -d ./-p && rmdir ./-p
23240   as_mkdir_p=false
23241 fi
23242
23243
23244 # as_fn_executable_p FILE
23245 # -----------------------
23246 # Test if FILE is an executable regular file.
23247 as_fn_executable_p ()
23248 {
23249   test -f "$1" && test -x "$1"
23250 } # as_fn_executable_p
23251 as_test_x='test -x'
23252 as_executable_p=as_fn_executable_p
23253
23254 # Sed expression to map a string onto a valid CPP name.
23255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23256
23257 # Sed expression to map a string onto a valid variable name.
23258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23259
23260
23261 exec 6>&1
23262 ## ----------------------------------- ##
23263 ## Main body of $CONFIG_STATUS script. ##
23264 ## ----------------------------------- ##
23265 _ASEOF
23266 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23267
23268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23269 # Save the log message, to keep $0 and so on meaningful, and to
23270 # report actual input values of CONFIG_FILES etc. instead of their
23271 # values after options handling.
23272 ac_log="
23273 This file was extended by $as_me, which was
23274 generated by GNU Autoconf 2.69.  Invocation command line was
23275
23276   CONFIG_FILES    = $CONFIG_FILES
23277   CONFIG_HEADERS  = $CONFIG_HEADERS
23278   CONFIG_LINKS    = $CONFIG_LINKS
23279   CONFIG_COMMANDS = $CONFIG_COMMANDS
23280   $ $0 $@
23281
23282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23283 "
23284
23285 _ACEOF
23286
23287 case $ac_config_files in *"
23288 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23289 esac
23290
23291 case $ac_config_headers in *"
23292 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23293 esac
23294
23295
23296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23297 # Files that config.status was made for.
23298 config_files="$ac_config_files"
23299 config_headers="$ac_config_headers"
23300 config_commands="$ac_config_commands"
23301
23302 _ACEOF
23303
23304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23305 ac_cs_usage="\
23306 \`$as_me' instantiates files and other configuration actions
23307 from templates according to the current configuration.  Unless the files
23308 and actions are specified as TAGs, all are instantiated by default.
23309
23310 Usage: $0 [OPTION]... [TAG]...
23311
23312   -h, --help       print this help, then exit
23313   -V, --version    print version number and configuration settings, then exit
23314       --config     print configuration, then exit
23315   -q, --quiet, --silent
23316                    do not print progress messages
23317   -d, --debug      don't remove temporary files
23318       --recheck    update $as_me by reconfiguring in the same conditions
23319       --file=FILE[:TEMPLATE]
23320                    instantiate the configuration file FILE
23321       --header=FILE[:TEMPLATE]
23322                    instantiate the configuration header FILE
23323
23324 Configuration files:
23325 $config_files
23326
23327 Configuration headers:
23328 $config_headers
23329
23330 Configuration commands:
23331 $config_commands
23332
23333 Report bugs to the package provider."
23334
23335 _ACEOF
23336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23337 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23338 ac_cs_version="\\
23339 config.status
23340 configured by $0, generated by GNU Autoconf 2.69,
23341   with options \\"\$ac_cs_config\\"
23342
23343 Copyright (C) 2012 Free Software Foundation, Inc.
23344 This config.status script is free software; the Free Software Foundation
23345 gives unlimited permission to copy, distribute and modify it."
23346
23347 ac_pwd='$ac_pwd'
23348 srcdir='$srcdir'
23349 test -n "\$AWK" || AWK=awk
23350 _ACEOF
23351
23352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23353 # The default lists apply if the user does not specify any file.
23354 ac_need_defaults=:
23355 while test $# != 0
23356 do
23357   case $1 in
23358   --*=?*)
23359     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23360     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23361     ac_shift=:
23362     ;;
23363   --*=)
23364     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23365     ac_optarg=
23366     ac_shift=:
23367     ;;
23368   *)
23369     ac_option=$1
23370     ac_optarg=$2
23371     ac_shift=shift
23372     ;;
23373   esac
23374
23375   case $ac_option in
23376   # Handling of the options.
23377   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23378     ac_cs_recheck=: ;;
23379   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23380     $as_echo "$ac_cs_version"; exit ;;
23381   --config | --confi | --conf | --con | --co | --c )
23382     $as_echo "$ac_cs_config"; exit ;;
23383   --debug | --debu | --deb | --de | --d | -d )
23384     debug=: ;;
23385   --file | --fil | --fi | --f )
23386     $ac_shift
23387     case $ac_optarg in
23388     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23389     '') as_fn_error $? "missing file argument" ;;
23390     esac
23391     as_fn_append CONFIG_FILES " '$ac_optarg'"
23392     ac_need_defaults=false;;
23393   --header | --heade | --head | --hea )
23394     $ac_shift
23395     case $ac_optarg in
23396     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23397     esac
23398     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23399     ac_need_defaults=false;;
23400   --he | --h)
23401     # Conflict between --help and --header
23402     as_fn_error $? "ambiguous option: \`$1'
23403 Try \`$0 --help' for more information.";;
23404   --help | --hel | -h )
23405     $as_echo "$ac_cs_usage"; exit ;;
23406   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23407   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23408     ac_cs_silent=: ;;
23409
23410   # This is an error.
23411   -*) as_fn_error $? "unrecognized option: \`$1'
23412 Try \`$0 --help' for more information." ;;
23413
23414   *) as_fn_append ac_config_targets " $1"
23415      ac_need_defaults=false ;;
23416
23417   esac
23418   shift
23419 done
23420
23421 ac_configure_extra_args=
23422
23423 if $ac_cs_silent; then
23424   exec 6>/dev/null
23425   ac_configure_extra_args="$ac_configure_extra_args --silent"
23426 fi
23427
23428 _ACEOF
23429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23430 if \$ac_cs_recheck; then
23431   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23432   shift
23433   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23434   CONFIG_SHELL='$SHELL'
23435   export CONFIG_SHELL
23436   exec "\$@"
23437 fi
23438
23439 _ACEOF
23440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23441 exec 5>>config.log
23442 {
23443   echo
23444   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23445 ## Running $as_me. ##
23446 _ASBOX
23447   $as_echo "$ac_log"
23448 } >&5
23449
23450 _ACEOF
23451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23452 _ACEOF
23453
23454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23455
23456 # Handling of arguments.
23457 for ac_config_target in $ac_config_targets
23458 do
23459   case $ac_config_target in
23460     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23461     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23462     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23463     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23464     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23465     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23466     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23467     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23468     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23469     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23470     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23471     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23472     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23473     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23474     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23475     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23476     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23477     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23478     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23479
23480   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23481   esac
23482 done
23483
23484
23485 # If the user did not use the arguments to specify the items to instantiate,
23486 # then the envvar interface is used.  Set only those that are not.
23487 # We use the long form for the default assignment because of an extremely
23488 # bizarre bug on SunOS 4.1.3.
23489 if $ac_need_defaults; then
23490   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23491   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23492   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23493 fi
23494
23495 # Have a temporary directory for convenience.  Make it in the build tree
23496 # simply because there is no reason against having it here, and in addition,
23497 # creating and moving files from /tmp can sometimes cause problems.
23498 # Hook for its removal unless debugging.
23499 # Note that there is a small window in which the directory will not be cleaned:
23500 # after its creation but before its name has been assigned to `$tmp'.
23501 $debug ||
23502 {
23503   tmp= ac_tmp=
23504   trap 'exit_status=$?
23505   : "${ac_tmp:=$tmp}"
23506   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23507 ' 0
23508   trap 'as_fn_exit 1' 1 2 13 15
23509 }
23510 # Create a (secure) tmp directory for tmp files.
23511
23512 {
23513   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23514   test -d "$tmp"
23515 }  ||
23516 {
23517   tmp=./conf$$-$RANDOM
23518   (umask 077 && mkdir "$tmp")
23519 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23520 ac_tmp=$tmp
23521
23522 # Set up the scripts for CONFIG_FILES section.
23523 # No need to generate them if there are no CONFIG_FILES.
23524 # This happens for instance with `./config.status config.h'.
23525 if test -n "$CONFIG_FILES"; then
23526
23527
23528 ac_cr=`echo X | tr X '\015'`
23529 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23530 # But we know of no other shell where ac_cr would be empty at this
23531 # point, so we can use a bashism as a fallback.
23532 if test "x$ac_cr" = x; then
23533   eval ac_cr=\$\'\\r\'
23534 fi
23535 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23536 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23537   ac_cs_awk_cr='\\r'
23538 else
23539   ac_cs_awk_cr=$ac_cr
23540 fi
23541
23542 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23543 _ACEOF
23544
23545
23546 {
23547   echo "cat >conf$$subs.awk <<_ACEOF" &&
23548   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23549   echo "_ACEOF"
23550 } >conf$$subs.sh ||
23551   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23552 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23553 ac_delim='%!_!# '
23554 for ac_last_try in false false false false false :; do
23555   . ./conf$$subs.sh ||
23556     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23557
23558   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23559   if test $ac_delim_n = $ac_delim_num; then
23560     break
23561   elif $ac_last_try; then
23562     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23563   else
23564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23565   fi
23566 done
23567 rm -f conf$$subs.sh
23568
23569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23570 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23571 _ACEOF
23572 sed -n '
23573 h
23574 s/^/S["/; s/!.*/"]=/
23575 p
23576 g
23577 s/^[^!]*!//
23578 :repl
23579 t repl
23580 s/'"$ac_delim"'$//
23581 t delim
23582 :nl
23583 h
23584 s/\(.\{148\}\)..*/\1/
23585 t more1
23586 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23587 p
23588 n
23589 b repl
23590 :more1
23591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23592 p
23593 g
23594 s/.\{148\}//
23595 t nl
23596 :delim
23597 h
23598 s/\(.\{148\}\)..*/\1/
23599 t more2
23600 s/["\\]/\\&/g; s/^/"/; s/$/"/
23601 p
23602 b
23603 :more2
23604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23605 p
23606 g
23607 s/.\{148\}//
23608 t delim
23609 ' <conf$$subs.awk | sed '
23610 /^[^""]/{
23611   N
23612   s/\n//
23613 }
23614 ' >>$CONFIG_STATUS || ac_write_fail=1
23615 rm -f conf$$subs.awk
23616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23617 _ACAWK
23618 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23619   for (key in S) S_is_set[key] = 1
23620   FS = "\a"
23621
23622 }
23623 {
23624   line = $ 0
23625   nfields = split(line, field, "@")
23626   substed = 0
23627   len = length(field[1])
23628   for (i = 2; i < nfields; i++) {
23629     key = field[i]
23630     keylen = length(key)
23631     if (S_is_set[key]) {
23632       value = S[key]
23633       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23634       len += length(value) + length(field[++i])
23635       substed = 1
23636     } else
23637       len += 1 + keylen
23638   }
23639
23640   print line
23641 }
23642
23643 _ACAWK
23644 _ACEOF
23645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23646 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23647   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23648 else
23649   cat
23650 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23651   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23652 _ACEOF
23653
23654 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23655 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23656 # trailing colons and then remove the whole line if VPATH becomes empty
23657 # (actually we leave an empty line to preserve line numbers).
23658 if test "x$srcdir" = x.; then
23659   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23660 h
23661 s///
23662 s/^/:/
23663 s/[      ]*$/:/
23664 s/:\$(srcdir):/:/g
23665 s/:\${srcdir}:/:/g
23666 s/:@srcdir@:/:/g
23667 s/^:*//
23668 s/:*$//
23669 x
23670 s/\(=[   ]*\).*/\1/
23671 G
23672 s/\n//
23673 s/^[^=]*=[       ]*$//
23674 }'
23675 fi
23676
23677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23678 fi # test -n "$CONFIG_FILES"
23679
23680 # Set up the scripts for CONFIG_HEADERS section.
23681 # No need to generate them if there are no CONFIG_HEADERS.
23682 # This happens for instance with `./config.status Makefile'.
23683 if test -n "$CONFIG_HEADERS"; then
23684 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23685 BEGIN {
23686 _ACEOF
23687
23688 # Transform confdefs.h into an awk script `defines.awk', embedded as
23689 # here-document in config.status, that substitutes the proper values into
23690 # config.h.in to produce config.h.
23691
23692 # Create a delimiter string that does not exist in confdefs.h, to ease
23693 # handling of long lines.
23694 ac_delim='%!_!# '
23695 for ac_last_try in false false :; do
23696   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23697   if test -z "$ac_tt"; then
23698     break
23699   elif $ac_last_try; then
23700     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23701   else
23702     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23703   fi
23704 done
23705
23706 # For the awk script, D is an array of macro values keyed by name,
23707 # likewise P contains macro parameters if any.  Preserve backslash
23708 # newline sequences.
23709
23710 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23711 sed -n '
23712 s/.\{148\}/&'"$ac_delim"'/g
23713 t rset
23714 :rset
23715 s/^[     ]*#[    ]*define[       ][      ]*/ /
23716 t def
23717 d
23718 :def
23719 s/\\$//
23720 t bsnl
23721 s/["\\]/\\&/g
23722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23723 D["\1"]=" \3"/p
23724 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23725 d
23726 :bsnl
23727 s/["\\]/\\&/g
23728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23729 D["\1"]=" \3\\\\\\n"\\/p
23730 t cont
23731 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23732 t cont
23733 d
23734 :cont
23735 n
23736 s/.\{148\}/&'"$ac_delim"'/g
23737 t clear
23738 :clear
23739 s/\\$//
23740 t bsnlc
23741 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23742 d
23743 :bsnlc
23744 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23745 b cont
23746 ' <confdefs.h | sed '
23747 s/'"$ac_delim"'/"\\\
23748 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23749
23750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23751   for (key in D) D_is_set[key] = 1
23752   FS = "\a"
23753 }
23754 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23755   line = \$ 0
23756   split(line, arg, " ")
23757   if (arg[1] == "#") {
23758     defundef = arg[2]
23759     mac1 = arg[3]
23760   } else {
23761     defundef = substr(arg[1], 2)
23762     mac1 = arg[2]
23763   }
23764   split(mac1, mac2, "(") #)
23765   macro = mac2[1]
23766   prefix = substr(line, 1, index(line, defundef) - 1)
23767   if (D_is_set[macro]) {
23768     # Preserve the white space surrounding the "#".
23769     print prefix "define", macro P[macro] D[macro]
23770     next
23771   } else {
23772     # Replace #undef with comments.  This is necessary, for example,
23773     # in the case of _POSIX_SOURCE, which is predefined and required
23774     # on some systems where configure will not decide to define it.
23775     if (defundef == "undef") {
23776       print "/*", prefix defundef, macro, "*/"
23777       next
23778     }
23779   }
23780 }
23781 { print }
23782 _ACAWK
23783 _ACEOF
23784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23785   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23786 fi # test -n "$CONFIG_HEADERS"
23787
23788
23789 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23790 shift
23791 for ac_tag
23792 do
23793   case $ac_tag in
23794   :[FHLC]) ac_mode=$ac_tag; continue;;
23795   esac
23796   case $ac_mode$ac_tag in
23797   :[FHL]*:*);;
23798   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23799   :[FH]-) ac_tag=-:-;;
23800   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23801   esac
23802   ac_save_IFS=$IFS
23803   IFS=:
23804   set x $ac_tag
23805   IFS=$ac_save_IFS
23806   shift
23807   ac_file=$1
23808   shift
23809
23810   case $ac_mode in
23811   :L) ac_source=$1;;
23812   :[FH])
23813     ac_file_inputs=
23814     for ac_f
23815     do
23816       case $ac_f in
23817       -) ac_f="$ac_tmp/stdin";;
23818       *) # Look for the file first in the build tree, then in the source tree
23819          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23820          # because $ac_f cannot contain `:'.
23821          test -f "$ac_f" ||
23822            case $ac_f in
23823            [\\/$]*) false;;
23824            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23825            esac ||
23826            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23827       esac
23828       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23829       as_fn_append ac_file_inputs " '$ac_f'"
23830     done
23831
23832     # Let's still pretend it is `configure' which instantiates (i.e., don't
23833     # use $as_me), people would be surprised to read:
23834     #    /* config.h.  Generated by config.status.  */
23835     configure_input='Generated from '`
23836           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23837         `' by configure.'
23838     if test x"$ac_file" != x-; then
23839       configure_input="$ac_file.  $configure_input"
23840       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23841 $as_echo "$as_me: creating $ac_file" >&6;}
23842     fi
23843     # Neutralize special characters interpreted by sed in replacement strings.
23844     case $configure_input in #(
23845     *\&* | *\|* | *\\* )
23846        ac_sed_conf_input=`$as_echo "$configure_input" |
23847        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23848     *) ac_sed_conf_input=$configure_input;;
23849     esac
23850
23851     case $ac_tag in
23852     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23853       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23854     esac
23855     ;;
23856   esac
23857
23858   ac_dir=`$as_dirname -- "$ac_file" ||
23859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23860          X"$ac_file" : 'X\(//\)[^/]' \| \
23861          X"$ac_file" : 'X\(//\)$' \| \
23862          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23863 $as_echo X"$ac_file" |
23864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23865             s//\1/
23866             q
23867           }
23868           /^X\(\/\/\)[^/].*/{
23869             s//\1/
23870             q
23871           }
23872           /^X\(\/\/\)$/{
23873             s//\1/
23874             q
23875           }
23876           /^X\(\/\).*/{
23877             s//\1/
23878             q
23879           }
23880           s/.*/./; q'`
23881   as_dir="$ac_dir"; as_fn_mkdir_p
23882   ac_builddir=.
23883
23884 case "$ac_dir" in
23885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23886 *)
23887   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23888   # A ".." for each directory in $ac_dir_suffix.
23889   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23890   case $ac_top_builddir_sub in
23891   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23892   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23893   esac ;;
23894 esac
23895 ac_abs_top_builddir=$ac_pwd
23896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23897 # for backward compatibility:
23898 ac_top_builddir=$ac_top_build_prefix
23899
23900 case $srcdir in
23901   .)  # We are building in place.
23902     ac_srcdir=.
23903     ac_top_srcdir=$ac_top_builddir_sub
23904     ac_abs_top_srcdir=$ac_pwd ;;
23905   [\\/]* | ?:[\\/]* )  # Absolute name.
23906     ac_srcdir=$srcdir$ac_dir_suffix;
23907     ac_top_srcdir=$srcdir
23908     ac_abs_top_srcdir=$srcdir ;;
23909   *) # Relative name.
23910     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23911     ac_top_srcdir=$ac_top_build_prefix$srcdir
23912     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23913 esac
23914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23915
23916
23917   case $ac_mode in
23918   :F)
23919   #
23920   # CONFIG_FILE
23921   #
23922
23923 _ACEOF
23924
23925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23926 # If the template does not know about datarootdir, expand it.
23927 # FIXME: This hack should be removed a few years after 2.60.
23928 ac_datarootdir_hack=; ac_datarootdir_seen=
23929 ac_sed_dataroot='
23930 /datarootdir/ {
23931   p
23932   q
23933 }
23934 /@datadir@/p
23935 /@docdir@/p
23936 /@infodir@/p
23937 /@localedir@/p
23938 /@mandir@/p'
23939 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23940 *datarootdir*) ac_datarootdir_seen=yes;;
23941 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23942   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23943 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23944 _ACEOF
23945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23946   ac_datarootdir_hack='
23947   s&@datadir@&$datadir&g
23948   s&@docdir@&$docdir&g
23949   s&@infodir@&$infodir&g
23950   s&@localedir@&$localedir&g
23951   s&@mandir@&$mandir&g
23952   s&\\\${datarootdir}&$datarootdir&g' ;;
23953 esac
23954 _ACEOF
23955
23956 # Neutralize VPATH when `$srcdir' = `.'.
23957 # Shell code in configure.ac might set extrasub.
23958 # FIXME: do we really want to maintain this feature?
23959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23960 ac_sed_extra="$ac_vpsub
23961 $extrasub
23962 _ACEOF
23963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23964 :t
23965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23966 s|@configure_input@|$ac_sed_conf_input|;t t
23967 s&@top_builddir@&$ac_top_builddir_sub&;t t
23968 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23969 s&@srcdir@&$ac_srcdir&;t t
23970 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23971 s&@top_srcdir@&$ac_top_srcdir&;t t
23972 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23973 s&@builddir@&$ac_builddir&;t t
23974 s&@abs_builddir@&$ac_abs_builddir&;t t
23975 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23976 $ac_datarootdir_hack
23977 "
23978 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23979   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23980
23981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23982   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23983   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23984       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23985   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23986 which seems to be undefined.  Please make sure it is defined" >&5
23987 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23988 which seems to be undefined.  Please make sure it is defined" >&2;}
23989
23990   rm -f "$ac_tmp/stdin"
23991   case $ac_file in
23992   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23993   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23994   esac \
23995   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23996  ;;
23997   :H)
23998   #
23999   # CONFIG_HEADER
24000   #
24001   if test x"$ac_file" != x-; then
24002     {
24003       $as_echo "/* $configure_input  */" \
24004       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24005     } >"$ac_tmp/config.h" \
24006       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24007     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24008       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24009 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24010     else
24011       rm -f "$ac_file"
24012       mv "$ac_tmp/config.h" "$ac_file" \
24013         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24014     fi
24015   else
24016     $as_echo "/* $configure_input  */" \
24017       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24018       || as_fn_error $? "could not create -" "$LINENO" 5
24019   fi
24020  ;;
24021
24022   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24023 $as_echo "$as_me: executing $ac_file commands" >&6;}
24024  ;;
24025   esac
24026
24027
24028   case $ac_file$ac_mode in
24029     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24030     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24031     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
24032     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24033
24034   esac
24035 done # for ac_tag
24036
24037
24038 as_fn_exit 0
24039 _ACEOF
24040 ac_clean_files=$ac_clean_files_save
24041
24042 test $ac_write_fail = 0 ||
24043   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24044
24045
24046 # configure is writing to config.log, and then calls config.status.
24047 # config.status does its own redirection, appending to config.log.
24048 # Unfortunately, on DOS this fails, as config.log is still kept open
24049 # by configure, so config.status won't be able to write to it; its
24050 # output is simply discarded.  So we exec the FD to /dev/null,
24051 # effectively closing config.log, so it can be properly (re)opened and
24052 # appended to by config.status.  When coming back to configure, we
24053 # need to make the FD available again.
24054 if test "$no_create" != yes; then
24055   ac_cs_success=:
24056   ac_config_status_args=
24057   test "$silent" = yes &&
24058     ac_config_status_args="$ac_config_status_args --quiet"
24059   exec 5>/dev/null
24060   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24061   exec 5>>config.log
24062   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24063   # would make configure fail if this is the last instruction.
24064   $ac_cs_success || as_fn_exit 1
24065 fi
24066
24067 #
24068 # CONFIG_SUBDIRS section.
24069 #
24070 if test "$no_recursion" != yes; then
24071
24072   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24073   # so they do not pile up.
24074   ac_sub_configure_args=
24075   ac_prev=
24076   eval "set x $ac_configure_args"
24077   shift
24078   for ac_arg
24079   do
24080     if test -n "$ac_prev"; then
24081       ac_prev=
24082       continue
24083     fi
24084     case $ac_arg in
24085     -cache-file | --cache-file | --cache-fil | --cache-fi \
24086     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24087       ac_prev=cache_file ;;
24088     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24089     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24090     | --c=*)
24091       ;;
24092     --config-cache | -C)
24093       ;;
24094     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24095       ac_prev=srcdir ;;
24096     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24097       ;;
24098     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24099       ac_prev=prefix ;;
24100     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24101       ;;
24102     --disable-option-checking)
24103       ;;
24104     *)
24105       case $ac_arg in
24106       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24107       esac
24108       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24109     esac
24110   done
24111
24112   # Always prepend --prefix to ensure using the same prefix
24113   # in subdir configurations.
24114   ac_arg="--prefix=$prefix"
24115   case $ac_arg in
24116   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24117   esac
24118   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24119
24120   # Pass --silent
24121   if test "$silent" = yes; then
24122     ac_sub_configure_args="--silent $ac_sub_configure_args"
24123   fi
24124
24125   # Always prepend --disable-option-checking to silence warnings, since
24126   # different subdirs can have different --enable and --with options.
24127   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24128
24129   ac_popdir=`pwd`
24130   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24131
24132     # Do not complain, so a configure script can configure whichever
24133     # parts of a large source tree are present.
24134     test -d "$srcdir/$ac_dir" || continue
24135
24136     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24137     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24138     $as_echo "$ac_msg" >&6
24139     as_dir="$ac_dir"; as_fn_mkdir_p
24140     ac_builddir=.
24141
24142 case "$ac_dir" in
24143 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24144 *)
24145   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24146   # A ".." for each directory in $ac_dir_suffix.
24147   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24148   case $ac_top_builddir_sub in
24149   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24150   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24151   esac ;;
24152 esac
24153 ac_abs_top_builddir=$ac_pwd
24154 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24155 # for backward compatibility:
24156 ac_top_builddir=$ac_top_build_prefix
24157
24158 case $srcdir in
24159   .)  # We are building in place.
24160     ac_srcdir=.
24161     ac_top_srcdir=$ac_top_builddir_sub
24162     ac_abs_top_srcdir=$ac_pwd ;;
24163   [\\/]* | ?:[\\/]* )  # Absolute name.
24164     ac_srcdir=$srcdir$ac_dir_suffix;
24165     ac_top_srcdir=$srcdir
24166     ac_abs_top_srcdir=$srcdir ;;
24167   *) # Relative name.
24168     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24169     ac_top_srcdir=$ac_top_build_prefix$srcdir
24170     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24171 esac
24172 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24173
24174
24175     cd "$ac_dir"
24176
24177     # Check for guested configure; otherwise get Cygnus style configure.
24178     if test -f "$ac_srcdir/configure.gnu"; then
24179       ac_sub_configure=$ac_srcdir/configure.gnu
24180     elif test -f "$ac_srcdir/configure"; then
24181       ac_sub_configure=$ac_srcdir/configure
24182     elif test -f "$ac_srcdir/configure.in"; then
24183       # This should be Cygnus configure.
24184       ac_sub_configure=$ac_aux_dir/configure
24185     else
24186       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24187 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24188       ac_sub_configure=
24189     fi
24190
24191     # The recursion is here.
24192     if test -n "$ac_sub_configure"; then
24193       # Make the cache file name correct relative to the subdirectory.
24194       case $cache_file in
24195       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24196       *) # Relative name.
24197         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24198       esac
24199
24200       { $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
24201 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24202       # The eval makes quoting arguments work.
24203       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24204            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24205         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24206     fi
24207
24208     cd "$ac_popdir"
24209   done
24210 fi
24211 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24212   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24213 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24214 fi
24215
24216