Backport udpfromto IPv6 fixes from v3.0.x
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$ECHO in
562 X*--fallback-echo)
563   # Remove one level of quotation (which was required for Make).
564   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565   ;;
566 esac
567
568 echo=${ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570   # Discard the --no-reexec flag, and continue.
571   shift
572 elif test "X$1" = X--fallback-echo; then
573   # Avoid inline document here, it may be left over
574   :
575 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576   # Yippee, $echo works!
577   :
578 else
579   # Restart under the correct shell.
580   exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584   # used as fallback echo
585   shift
586   cat <<EOF
587 $*
588 EOF
589   exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602        echo_test_string=`eval $cmd` &&
603        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
604     then
605       break
606     fi
607   done
608 fi
609
610 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612    test "X$echo_testing_string" = "X$echo_test_string"; then
613   :
614 else
615   # The Solaris, AIX, and Digital Unix default echo programs unquote
616   # backslashes.  This makes it impossible to quote backslashes using
617   #   echo "$something" | sed 's/\\/\\\\/g'
618   #
619   # So, first we look for a working echo in the user's PATH.
620
621   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622   for dir in $PATH /usr/ucb; do
623     IFS="$lt_save_ifs"
624     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627        test "X$echo_testing_string" = "X$echo_test_string"; then
628       echo="$dir/echo"
629       break
630     fi
631   done
632   IFS="$lt_save_ifs"
633
634   if test "X$echo" = Xecho; then
635     # We didn't find a better echo, so look for alternatives.
636     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638        test "X$echo_testing_string" = "X$echo_test_string"; then
639       # This shell has a builtin print -r that does the trick.
640       echo='print -r'
641     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642          test "X$CONFIG_SHELL" != X/bin/ksh; then
643       # If we have ksh, try running configure again with it.
644       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645       export ORIGINAL_CONFIG_SHELL
646       CONFIG_SHELL=/bin/ksh
647       export CONFIG_SHELL
648       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649     else
650       # Try using printf.
651       echo='printf %s\n'
652       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # Cool, printf works
656         :
657       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658            test "X$echo_testing_string" = 'X\t' &&
659            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660            test "X$echo_testing_string" = "X$echo_test_string"; then
661         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662         export CONFIG_SHELL
663         SHELL="$CONFIG_SHELL"
664         export SHELL
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667            test "X$echo_testing_string" = 'X\t' &&
668            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669            test "X$echo_testing_string" = "X$echo_test_string"; then
670         echo="$CONFIG_SHELL $0 --fallback-echo"
671       else
672         # maybe with a smaller string...
673         prev=:
674
675         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
677           then
678             break
679           fi
680           prev="$cmd"
681         done
682
683         if test "$prev" != 'sed 50q "$0"'; then
684           echo_test_string=`eval $prev`
685           export echo_test_string
686           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687         else
688           # Oops.  We lost completely, so just stick with echo.
689           echo=echo
690         fi
691       fi
692     fi
693   fi
694 fi
695 fi
696
697 # Copy echo and quote the copy suitably for passing to libtool from
698 # the Makefile, instead of quoting the original, which is used later.
699 ECHO=$echo
700 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 fi
703
704
705
706
707 tagnames=${tagnames+${tagnames},}CXX
708
709 tagnames=${tagnames+${tagnames},}F77
710
711 test -n "$DJDIR" || exec 7<&0 </dev/null
712 exec 6>&1
713
714 # Name of the host.
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
719 #
720 # Initializations.
721 #
722 ac_default_prefix=/usr/local
723 ac_clean_files=
724 ac_config_libobj_dir=.
725 LIBOBJS=
726 cross_compiling=no
727 subdirs=
728 MFLAGS=
729 MAKEFLAGS=
730
731 # Identity of this package.
732 PACKAGE_NAME=
733 PACKAGE_TARNAME=
734 PACKAGE_VERSION=
735 PACKAGE_STRING=
736 PACKAGE_BUGREPORT=
737 PACKAGE_URL=
738
739 ac_unique_file="src/main/radiusd.c"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 #  include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #  include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
775
776 enable_option_checking=no
777 ac_subst_vars='LTLIBOBJS
778 LIBOBJS
779 RADIUSD_VERSION_COMMIT
780 RADIUSD_VERSION_STRING
781 RADIUSD_VERSION
782 RADIUSD_INCRM_VERSION
783 RADIUSD_MINOR_VERSION
784 RADIUSD_MAJOR_VERSION
785 STATIC_MODULES
786 USE_STATIC_LIBS
787 USE_SHARED_LIBS
788 INSTALLSTRIP
789 MODULES
790 subdirs
791 INCLTDL
792 LIBLTDL
793 HOSTINFO
794 CRYPTLIB
795 LIBPREFIX
796 PCAP_LIBS
797 OPENSSL_LIBS
798 OPENSSL_INCLUDE
799 REGEX_EXTENDED
800 REGEX
801 LIBREADLINE
802 DIRNAME
803 LOCATE
804 AUTOHEADER
805 AUTOCONF
806 ACLOCAL
807 RUSERS
808 SNMPWALK
809 SNMPGET
810 PERL
811 raddbdir
812 radacctdir
813 logdir
814 ac_ct_F77
815 FFLAGS
816 F77
817 CXXCPP
818 NMEDIT
819 DSYMUTIL
820 STRIP
821 AR
822 ECHO
823 LN_S
824 SED
825 LIBTOOL
826 LTDL_SUBDIRS
827 GIT
828 MAKE
829 GMAKE
830 RANLIB
831 EGREP
832 GREP
833 CPP
834 ac_ct_CXX
835 CXXFLAGS
836 CXX
837 OBJEXT
838 EXEEXT
839 ac_ct_CC
840 CPPFLAGS
841 LDFLAGS
842 CFLAGS
843 CC
844 target_os
845 target_vendor
846 target_cpu
847 target
848 host_os
849 host_vendor
850 host_cpu
851 host
852 build_os
853 build_vendor
854 build_cpu
855 build
856 target_alias
857 host_alias
858 build_alias
859 LIBS
860 ECHO_T
861 ECHO_N
862 ECHO_C
863 DEFS
864 mandir
865 localedir
866 libdir
867 psdir
868 pdfdir
869 dvidir
870 htmldir
871 infodir
872 docdir
873 oldincludedir
874 includedir
875 localstatedir
876 sharedstatedir
877 sysconfdir
878 datadir
879 datarootdir
880 libexecdir
881 sbindir
882 bindir
883 program_transform_name
884 prefix
885 exec_prefix
886 PACKAGE_URL
887 PACKAGE_BUGREPORT
888 PACKAGE_STRING
889 PACKAGE_VERSION
890 PACKAGE_TARNAME
891 PACKAGE_NAME
892 PATH_SEPARATOR
893 SHELL'
894 ac_subst_files=''
895 ac_user_opts='
896 enable_option_checking
897 enable_largefile
898 with_system_libltdl
899 with_system_libtool
900 enable_shared
901 enable_static
902 enable_fast_install
903 with_gnu_ld
904 enable_libtool_lock
905 with_pic
906 with_tags
907 enable_strict_dependencies
908 with_docdir
909 with_logdir
910 with_radacctdir
911 with_raddbdir
912 with_ascend_binary
913 with_threads
914 with_vmps
915 with_dhcp
916 with_post_proxy_authorize
917 with_static_modules
918 with_modules
919 enable_developer
920 with_experimental_modules
921 with_openssl
922 with_openssl_includes
923 with_openssl_libraries
924 with_rlm_FOO_lib_dir
925 with_rlm_FOO_include_dir
926 with_udpfromto
927 '
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CXX
937 CXXFLAGS
938 CCC
939 CPP
940 CXXCPP
941 F77
942 FFLAGS'
943 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997   # If the previous option needs an argument, assign it.
998   if test -n "$ac_prev"; then
999     eval $ac_prev=\$ac_option
1000     ac_prev=
1001     continue
1002   fi
1003
1004   case $ac_option in
1005   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006   *=)   ac_optarg= ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       as_fn_error $? "invalid feature name: $ac_useropt"
1053     ac_useropt_orig=$ac_useropt
1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055     case $ac_user_opts in
1056       *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060          ac_unrecognized_sep=', ';;
1061     esac
1062     eval enable_$ac_useropt=no ;;
1063
1064   -docdir | --docdir | --docdi | --doc | --do)
1065     ac_prev=docdir ;;
1066   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067     docdir=$ac_optarg ;;
1068
1069   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070     ac_prev=dvidir ;;
1071   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072     dvidir=$ac_optarg ;;
1073
1074   -enable-* | --enable-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error $? "invalid feature name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092   | --exec | --exe | --ex)
1093     ac_prev=exec_prefix ;;
1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096   | --exec=* | --exe=* | --ex=*)
1097     exec_prefix=$ac_optarg ;;
1098
1099   -gas | --gas | --ga | --g)
1100     # Obsolete; use --with-gas.
1101     with_gas=yes ;;
1102
1103   -help | --help | --hel | --he | -h)
1104     ac_init_help=long ;;
1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106     ac_init_help=recursive ;;
1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108     ac_init_help=short ;;
1109
1110   -host | --host | --hos | --ho)
1111     ac_prev=host_alias ;;
1112   -host=* | --host=* | --hos=* | --ho=*)
1113     host_alias=$ac_optarg ;;
1114
1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116     ac_prev=htmldir ;;
1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118   | --ht=*)
1119     htmldir=$ac_optarg ;;
1120
1121   -includedir | --includedir | --includedi | --included | --include \
1122   | --includ | --inclu | --incl | --inc)
1123     ac_prev=includedir ;;
1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
1126     includedir=$ac_optarg ;;
1127
1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
1129     ac_prev=infodir ;;
1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131     infodir=$ac_optarg ;;
1132
1133   -libdir | --libdir | --libdi | --libd)
1134     ac_prev=libdir ;;
1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136     libdir=$ac_optarg ;;
1137
1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139   | --libexe | --libex | --libe)
1140     ac_prev=libexecdir ;;
1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142   | --libexe=* | --libex=* | --libe=*)
1143     libexecdir=$ac_optarg ;;
1144
1145   -localedir | --localedir | --localedi | --localed | --locale)
1146     ac_prev=localedir ;;
1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148     localedir=$ac_optarg ;;
1149
1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
1151   | --localstate | --localstat | --localsta | --localst | --locals)
1152     ac_prev=localstatedir ;;
1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155     localstatedir=$ac_optarg ;;
1156
1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158     ac_prev=mandir ;;
1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160     mandir=$ac_optarg ;;
1161
1162   -nfp | --nfp | --nf)
1163     # Obsolete; use --without-fp.
1164     with_fp=no ;;
1165
1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167   | --no-cr | --no-c | -n)
1168     no_create=yes ;;
1169
1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172     no_recursion=yes ;;
1173
1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176   | --oldin | --oldi | --old | --ol | --o)
1177     ac_prev=oldincludedir ;;
1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181     oldincludedir=$ac_optarg ;;
1182
1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184     ac_prev=prefix ;;
1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186     prefix=$ac_optarg ;;
1187
1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189   | --program-pre | --program-pr | --program-p)
1190     ac_prev=program_prefix ;;
1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193     program_prefix=$ac_optarg ;;
1194
1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196   | --program-suf | --program-su | --program-s)
1197     ac_prev=program_suffix ;;
1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200     program_suffix=$ac_optarg ;;
1201
1202   -program-transform-name | --program-transform-name \
1203   | --program-transform-nam | --program-transform-na \
1204   | --program-transform-n | --program-transform- \
1205   | --program-transform | --program-transfor \
1206   | --program-transfo | --program-transf \
1207   | --program-trans | --program-tran \
1208   | --progr-tra | --program-tr | --program-t)
1209     ac_prev=program_transform_name ;;
1210   -program-transform-name=* | --program-transform-name=* \
1211   | --program-transform-nam=* | --program-transform-na=* \
1212   | --program-transform-n=* | --program-transform-=* \
1213   | --program-transform=* | --program-transfor=* \
1214   | --program-transfo=* | --program-transf=* \
1215   | --program-trans=* | --program-tran=* \
1216   | --progr-tra=* | --program-tr=* | --program-t=*)
1217     program_transform_name=$ac_optarg ;;
1218
1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220     ac_prev=pdfdir ;;
1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222     pdfdir=$ac_optarg ;;
1223
1224   -psdir | --psdir | --psdi | --psd | --ps)
1225     ac_prev=psdir ;;
1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227     psdir=$ac_optarg ;;
1228
1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230   | -silent | --silent | --silen | --sile | --sil)
1231     silent=yes ;;
1232
1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234     ac_prev=sbindir ;;
1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236   | --sbi=* | --sb=*)
1237     sbindir=$ac_optarg ;;
1238
1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241   | --sharedst | --shareds | --shared | --share | --shar \
1242   | --sha | --sh)
1243     ac_prev=sharedstatedir ;;
1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247   | --sha=* | --sh=*)
1248     sharedstatedir=$ac_optarg ;;
1249
1250   -site | --site | --sit)
1251     ac_prev=site ;;
1252   -site=* | --site=* | --sit=*)
1253     site=$ac_optarg ;;
1254
1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256     ac_prev=srcdir ;;
1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258     srcdir=$ac_optarg ;;
1259
1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261   | --syscon | --sysco | --sysc | --sys | --sy)
1262     ac_prev=sysconfdir ;;
1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265     sysconfdir=$ac_optarg ;;
1266
1267   -target | --target | --targe | --targ | --tar | --ta | --t)
1268     ac_prev=target_alias ;;
1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270     target_alias=$ac_optarg ;;
1271
1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273     verbose=yes ;;
1274
1275   -version | --version | --versio | --versi | --vers | -V)
1276     ac_init_version=: ;;
1277
1278   -with-* | --with-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error $? "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=\$ac_optarg ;;
1293
1294   -without-* | --without-*)
1295     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298       as_fn_error $? "invalid package name: $ac_useropt"
1299     ac_useropt_orig=$ac_useropt
1300     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301     case $ac_user_opts in
1302       *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306          ac_unrecognized_sep=', ';;
1307     esac
1308     eval with_$ac_useropt=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1330     ;;
1331
1332   *=*)
1333     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334     # Reject names that are not valid shell variable names.
1335     case $ac_envvar in #(
1336       '' | [0-9]* | *[!_$as_cr_alnum]* )
1337       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338     esac
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   as_fn_error $? "missing argument to $ac_option"
1356 fi
1357
1358 if test -n "$ac_unrecognized_opts"; then
1359   case $enable_option_checking in
1360     no) ;;
1361     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363   esac
1364 fi
1365
1366 # Check all directory arguments for consistency.
1367 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368                 datadir sysconfdir sharedstatedir localstatedir includedir \
1369                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370                 libdir localedir mandir
1371 do
1372   eval ac_val=\$$ac_var
1373   # Remove trailing slashes.
1374   case $ac_val in
1375     */ )
1376       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377       eval $ac_var=\$ac_val;;
1378   esac
1379   # Be sure to have absolute directory names.
1380   case $ac_val in
1381     [\\/$]* | ?:[\\/]* )  continue;;
1382     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383   esac
1384   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1386
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1393
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396   if test "x$build_alias" = x; then
1397     cross_compiling=maybe
1398   elif test "x$build_alias" != "x$host_alias"; then
1399     cross_compiling=yes
1400   fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412   as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414   as_fn_error $? "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419   ac_srcdir_defaulted=yes
1420   # Try the directory containing this script, then the parent directory.
1421   ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423          X"$as_myself" : 'X\(//\)[^/]' \| \
1424          X"$as_myself" : 'X\(//\)$' \| \
1425          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)[^/].*/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)$/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\).*/{
1440             s//\1/
1441             q
1442           }
1443           s/.*/./; q'`
1444   srcdir=$ac_confdir
1445   if test ! -r "$srcdir/$ac_unique_file"; then
1446     srcdir=..
1447   fi
1448 else
1449   ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458         pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461   srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_env_${ac_var}_value=\$${ac_var}
1472   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480   # Omit some internal or obsolete options to make the list less imposing.
1481   # This message is too long to be a string in the A/UX 3.1 sh.
1482   cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE.  See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493   -h, --help              display this help and exit
1494       --help=short        display options specific to this package
1495       --help=recursive    display the short help of all the included packages
1496   -V, --version           display version information and exit
1497   -q, --quiet, --silent   do not print \`checking ...' messages
1498       --cache-file=FILE   cache test results in FILE [disabled]
1499   -C, --config-cache      alias for \`--cache-file=config.cache'
1500   -n, --no-create         do not create output files
1501       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504   --prefix=PREFIX         install architecture-independent files in PREFIX
1505                           [$ac_default_prefix]
1506   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1507                           [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517   --bindir=DIR            user executables [EPREFIX/bin]
1518   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1519   --libexecdir=DIR        program executables [EPREFIX/libexec]
1520   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1521   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1522   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1523   --libdir=DIR            object code libraries [EPREFIX/lib]
1524   --includedir=DIR        C header files [PREFIX/include]
1525   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1526   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1527   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1528   --infodir=DIR           info documentation [DATAROOTDIR/info]
1529   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1530   --mandir=DIR            man documentation [DATAROOTDIR/man]
1531   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1532   --htmldir=DIR           html documentation [DOCDIR]
1533   --dvidir=DIR            dvi documentation [DOCDIR]
1534   --pdfdir=DIR            pdf documentation [DOCDIR]
1535   --psdir=DIR             ps documentation [DOCDIR]
1536 _ACEOF
1537
1538   cat <<\_ACEOF
1539
1540 System types:
1541   --build=BUILD     configure for building on BUILD [guessed]
1542   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1543   --target=TARGET   configure for building compilers for TARGET [HOST]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548
1549   cat <<\_ACEOF
1550
1551 Optional Features:
1552   --disable-option-checking  ignore unrecognized --enable/--with options
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --disable-largefile     omit support for large files
1556   --enable-shared[=PKGS]  build shared libraries [default=yes]
1557   --enable-static[=PKGS]  build static libraries [default=yes]
1558   --enable-fast-install[=PKGS]
1559                           optimize for fast installation [default=yes]
1560   --disable-libtool-lock  avoid locking (might break parallel builds)
1561   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1562   --enable-developer               Enables features of interest to developers.
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1568   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1569   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1570   --with-pic              try to use only PIC/non-PIC objects [default=use
1571                           both]
1572   --with-tags[=TAGS]      include additional configurations [automatic]
1573   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1574   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1575   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1576   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1577   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1578   --with-threads          Use threads, if available.  (default=yes)
1579   --with-vmps             Compile in VMPS support. (default=yes)
1580   --with-dhcp             Compile in DHCP support. (default=yes)
1581   --with-post-proxy-authorize  1.x compatibility  (default=no)
1582   --with-static-modules=QUOTED-MODULE-LIST
1583  --with-modules=QUOTED-MODULE-LIST
1584   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1585   --with-openssl                   Use OpenSSL. (default=yes)
1586   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1587   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1588   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1589   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1590   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1591
1592 Some influential environment variables:
1593   CC          C compiler command
1594   CFLAGS      C compiler flags
1595   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1596               nonstandard directory <lib dir>
1597   LIBS        libraries to pass to the linker, e.g. -l<library>
1598   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599               you have headers in a nonstandard directory <include dir>
1600   CXX         C++ compiler command
1601   CXXFLAGS    C++ compiler flags
1602   CPP         C preprocessor
1603   CXXCPP      C++ preprocessor
1604   F77         Fortran 77 compiler command
1605   FFLAGS      Fortran 77 compiler flags
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to the package provider.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616   # If there are subdirs, report their specific --help.
1617   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618     test -d "$ac_dir" ||
1619       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620       continue
1621     ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627   # A ".." for each directory in $ac_dir_suffix.
1628   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629   case $ac_top_builddir_sub in
1630   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632   esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640   .)  # We are building in place.
1641     ac_srcdir=.
1642     ac_top_srcdir=$ac_top_builddir_sub
1643     ac_abs_top_srcdir=$ac_pwd ;;
1644   [\\/]* | ?:[\\/]* )  # Absolute name.
1645     ac_srcdir=$srcdir$ac_dir_suffix;
1646     ac_top_srcdir=$srcdir
1647     ac_abs_top_srcdir=$srcdir ;;
1648   *) # Relative name.
1649     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650     ac_top_srcdir=$ac_top_build_prefix$srcdir
1651     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655     cd "$ac_dir" || { ac_status=$?; continue; }
1656     # Check for guested configure.
1657     if test -f "$ac_srcdir/configure.gnu"; then
1658       echo &&
1659       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660     elif test -f "$ac_srcdir/configure"; then
1661       echo &&
1662       $SHELL "$ac_srcdir/configure" --help=recursive
1663     else
1664       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665     fi || ac_status=$?
1666     cd "$ac_pwd" || { ac_status=$?; break; }
1667   done
1668 fi
1669
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672   cat <<\_ACEOF
1673 configure
1674 generated by GNU Autoconf 2.69
1675
1676 Copyright (C) 2012 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680   exit
1681 fi
1682
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1686
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   rm -f conftest.$ac_objext
1694   if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_compile") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } && {
1710          test -z "$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        } && test -s conftest.$ac_objext; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718         ac_retval=1
1719 fi
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_compile
1724
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   rm -f conftest.$ac_objext
1732   if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_compile") 2>conftest.err
1740   ac_status=$?
1741   if test -s conftest.err; then
1742     grep -v '^ *+' conftest.err >conftest.er1
1743     cat conftest.er1 >&5
1744     mv -f conftest.er1 conftest.err
1745   fi
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } && {
1748          test -z "$ac_cxx_werror_flag" ||
1749          test ! -s conftest.err
1750        } && test -s conftest.$ac_objext; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756         ac_retval=1
1757 fi
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_cxx_try_compile
1762
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_cpp ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } > conftest.i && {
1785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        }; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793     ac_retval=1
1794 fi
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_cpp
1799
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1804 # accordingly.
1805 ac_fn_c_check_header_mongrel ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   if eval \${$3+:} false; then :
1809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812   $as_echo_n "(cached) " >&6
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 else
1818   # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   ac_header_compiler=yes
1828 else
1829   ac_header_compiler=no
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1834
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843   ac_header_preproc=yes
1844 else
1845   ac_header_preproc=no
1846 fi
1847 rm -f conftest.err conftest.i conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1850
1851 # So?  What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853   yes:no: )
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858     ;;
1859   no:yes:* )
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870     ;;
1871 esac
1872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875   $as_echo_n "(cached) " >&6
1876 else
1877   eval "$3=\$ac_header_compiler"
1878 fi
1879 eval ac_res=\$$3
1880                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 fi
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_header_mongrel
1886
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1891 ac_fn_c_try_run ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897   *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901   (eval "$ac_link") 2>&5
1902   ac_status=$?
1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905   { { case "(($ac_try" in
1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907   *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911   (eval "$ac_try") 2>&5
1912   ac_status=$?
1913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914   test $ac_status = 0; }; }; then :
1915   ac_retval=0
1916 else
1917   $as_echo "$as_me: program exited with status $ac_status" >&5
1918        $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921        ac_retval=$ac_status
1922 fi
1923   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925   as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_run
1928
1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_c_check_header_compile ()
1934 {
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939   $as_echo_n "(cached) " >&6
1940 else
1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 $4
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947   eval "$3=yes"
1948 else
1949   eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_check_header_compile
1959
1960 # ac_fn_c_try_link LINENO
1961 # -----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_c_try_link ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   rm -f conftest.$ac_objext conftest$ac_exeext
1967   if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970   *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974   (eval "$ac_link") 2>conftest.err
1975   ac_status=$?
1976   if test -s conftest.err; then
1977     grep -v '^ *+' conftest.err >conftest.er1
1978     cat conftest.er1 >&5
1979     mv -f conftest.er1 conftest.err
1980   fi
1981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982   test $ac_status = 0; } && {
1983          test -z "$ac_c_werror_flag" ||
1984          test ! -s conftest.err
1985        } && test -s conftest$ac_exeext && {
1986          test "$cross_compiling" = yes ||
1987          test -x conftest$ac_exeext
1988        }; then :
1989   ac_retval=0
1990 else
1991   $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994         ac_retval=1
1995 fi
1996   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998   # interfere with the next link command; also delete a directory that is
1999   # left behind by Apple's compiler.  We do this before executing the actions.
2000   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002   as_fn_set_status $ac_retval
2003
2004 } # ac_fn_c_try_link
2005
2006 # ac_fn_c_check_func LINENO FUNC VAR
2007 # ----------------------------------
2008 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2009 ac_fn_c_check_func ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015   $as_echo_n "(cached) " >&6
2016 else
2017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2021 #define $2 innocuous_$2
2022
2023 /* System header to define __stub macros and hopefully few prototypes,
2024     which can conflict with char $2 (); below.
2025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2026     <limits.h> exists even on freestanding compilers.  */
2027
2028 #ifdef __STDC__
2029 # include <limits.h>
2030 #else
2031 # include <assert.h>
2032 #endif
2033
2034 #undef $2
2035
2036 /* Override any GCC internal prototype to avoid an error.
2037    Use char because int might match the return type of a GCC
2038    builtin and then its argument prototype would still apply.  */
2039 #ifdef __cplusplus
2040 extern "C"
2041 #endif
2042 char $2 ();
2043 /* The GNU C library defines this for functions which it implements
2044     to always fail with ENOSYS.  Some functions are actually named
2045     something starting with __ and the normal name is an alias.  */
2046 #if defined __stub_$2 || defined __stub___$2
2047 choke me
2048 #endif
2049
2050 int
2051 main ()
2052 {
2053 return $2 ();
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_link "$LINENO"; then :
2059   eval "$3=yes"
2060 else
2061   eval "$3=no"
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext \
2064     conftest$ac_exeext conftest.$ac_ext
2065 fi
2066 eval ac_res=\$$3
2067                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_c_check_func
2072
2073 # ac_fn_cxx_try_cpp LINENO
2074 # ------------------------
2075 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2076 ac_fn_cxx_try_cpp ()
2077 {
2078   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079   if { { ac_try="$ac_cpp conftest.$ac_ext"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2087   ac_status=$?
2088   if test -s conftest.err; then
2089     grep -v '^ *+' conftest.err >conftest.er1
2090     cat conftest.er1 >&5
2091     mv -f conftest.er1 conftest.err
2092   fi
2093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094   test $ac_status = 0; } > conftest.i && {
2095          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2096          test ! -s conftest.err
2097        }; then :
2098   ac_retval=0
2099 else
2100   $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103     ac_retval=1
2104 fi
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106   as_fn_set_status $ac_retval
2107
2108 } # ac_fn_cxx_try_cpp
2109
2110 # ac_fn_cxx_try_link LINENO
2111 # -------------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_cxx_try_link ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   rm -f conftest.$ac_objext conftest$ac_exeext
2117   if { { ac_try="$ac_link"
2118 case "(($ac_try" in
2119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120   *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124   (eval "$ac_link") 2>conftest.err
2125   ac_status=$?
2126   if test -s conftest.err; then
2127     grep -v '^ *+' conftest.err >conftest.er1
2128     cat conftest.er1 >&5
2129     mv -f conftest.er1 conftest.err
2130   fi
2131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132   test $ac_status = 0; } && {
2133          test -z "$ac_cxx_werror_flag" ||
2134          test ! -s conftest.err
2135        } && test -s conftest$ac_exeext && {
2136          test "$cross_compiling" = yes ||
2137          test -x conftest$ac_exeext
2138        }; then :
2139   ac_retval=0
2140 else
2141   $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2143
2144         ac_retval=1
2145 fi
2146   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2147   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2148   # interfere with the next link command; also delete a directory that is
2149   # left behind by Apple's compiler.  We do this before executing the actions.
2150   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2151   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152   as_fn_set_status $ac_retval
2153
2154 } # ac_fn_cxx_try_link
2155
2156 # ac_fn_f77_try_compile LINENO
2157 # ----------------------------
2158 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2159 ac_fn_f77_try_compile ()
2160 {
2161   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162   rm -f conftest.$ac_objext
2163   if { { ac_try="$ac_compile"
2164 case "(($ac_try" in
2165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166   *) ac_try_echo=$ac_try;;
2167 esac
2168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169 $as_echo "$ac_try_echo"; } >&5
2170   (eval "$ac_compile") 2>conftest.err
2171   ac_status=$?
2172   if test -s conftest.err; then
2173     grep -v '^ *+' conftest.err >conftest.er1
2174     cat conftest.er1 >&5
2175     mv -f conftest.er1 conftest.err
2176   fi
2177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178   test $ac_status = 0; } && {
2179          test -z "$ac_f77_werror_flag" ||
2180          test ! -s conftest.err
2181        } && test -s conftest.$ac_objext; then :
2182   ac_retval=0
2183 else
2184   $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187         ac_retval=1
2188 fi
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190   as_fn_set_status $ac_retval
2191
2192 } # ac_fn_f77_try_compile
2193
2194 # ac_fn_f77_try_link LINENO
2195 # -------------------------
2196 # Try to link conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_f77_try_link ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   rm -f conftest.$ac_objext conftest$ac_exeext
2201   if { { ac_try="$ac_link"
2202 case "(($ac_try" in
2203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204   *) ac_try_echo=$ac_try;;
2205 esac
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208   (eval "$ac_link") 2>conftest.err
2209   ac_status=$?
2210   if test -s conftest.err; then
2211     grep -v '^ *+' conftest.err >conftest.er1
2212     cat conftest.er1 >&5
2213     mv -f conftest.er1 conftest.err
2214   fi
2215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216   test $ac_status = 0; } && {
2217          test -z "$ac_f77_werror_flag" ||
2218          test ! -s conftest.err
2219        } && test -s conftest$ac_exeext && {
2220          test "$cross_compiling" = yes ||
2221          test -x conftest$ac_exeext
2222        }; then :
2223   ac_retval=0
2224 else
2225   $as_echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228         ac_retval=1
2229 fi
2230   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2231   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2232   # interfere with the next link command; also delete a directory that is
2233   # left behind by Apple's compiler.  We do this before executing the actions.
2234   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2235   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236   as_fn_set_status $ac_retval
2237
2238 } # ac_fn_f77_try_link
2239
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250   $as_echo_n "(cached) " >&6
2251 else
2252   eval "$3=no"
2253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h.  */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof ($2))
2260          return 0;
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof (($2)))
2273             return 0;
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279
2280 else
2281   eval "$3=yes"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 fi
2287 eval ac_res=\$$3
2288                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292 } # ac_fn_c_check_type
2293
2294 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2295 # ---------------------------------------------
2296 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2297 # accordingly.
2298 ac_fn_c_check_decl ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   as_decl_name=`echo $2|sed 's/ *(.*//'`
2302   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2304 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2305 if eval \${$3+:} false; then :
2306   $as_echo_n "(cached) " >&6
2307 else
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $4
2311 int
2312 main ()
2313 {
2314 #ifndef $as_decl_name
2315 #ifdef __cplusplus
2316   (void) $as_decl_use;
2317 #else
2318   (void) $as_decl_name;
2319 #endif
2320 #endif
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327   eval "$3=yes"
2328 else
2329   eval "$3=no"
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 eval ac_res=\$$3
2334                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337
2338 } # ac_fn_c_check_decl
2339 cat >config.log <<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2342
2343 It was created by $as_me, which was
2344 generated by GNU Autoconf 2.69.  Invocation command line was
2345
2346   $ $0 $@
2347
2348 _ACEOF
2349 exec 5>>config.log
2350 {
2351 cat <<_ASUNAME
2352 ## --------- ##
2353 ## Platform. ##
2354 ## --------- ##
2355
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2361
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2364
2365 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2366 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2369 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2370 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2371 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2372
2373 _ASUNAME
2374
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380     $as_echo "PATH: $as_dir"
2381   done
2382 IFS=$as_save_IFS
2383
2384 } >&5
2385
2386 cat >&5 <<_ACEOF
2387
2388
2389 ## ----------- ##
2390 ## Core tests. ##
2391 ## ----------- ##
2392
2393 _ACEOF
2394
2395
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_configure_args=
2402 ac_configure_args0=
2403 ac_configure_args1=
2404 ac_must_keep_next=false
2405 for ac_pass in 1 2
2406 do
2407   for ac_arg
2408   do
2409     case $ac_arg in
2410     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412     | -silent | --silent | --silen | --sile | --sil)
2413       continue ;;
2414     *\'*)
2415       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416     esac
2417     case $ac_pass in
2418     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419     2)
2420       as_fn_append ac_configure_args1 " '$ac_arg'"
2421       if test $ac_must_keep_next = true; then
2422         ac_must_keep_next=false # Got value, back to normal.
2423       else
2424         case $ac_arg in
2425           *=* | --config-cache | -C | -disable-* | --disable-* \
2426           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428           | -with-* | --with-* | -without-* | --without-* | --x)
2429             case "$ac_configure_args0 " in
2430               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431             esac
2432             ;;
2433           -* ) ac_must_keep_next=true ;;
2434         esac
2435       fi
2436       as_fn_append ac_configure_args " '$ac_arg'"
2437       ;;
2438     esac
2439   done
2440 done
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2443
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log.  We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450   # Save into config.log some information that might help in debugging.
2451   {
2452     echo
2453
2454     $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2457     echo
2458     # The following way of writing the cache mishandles newlines in values,
2459 (
2460   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461     eval ac_val=\$$ac_var
2462     case $ac_val in #(
2463     *${as_nl}*)
2464       case $ac_var in #(
2465       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2467       esac
2468       case $ac_var in #(
2469       _ | IFS | as_nl) ;; #(
2470       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471       *) { eval $ac_var=; unset $ac_var;} ;;
2472       esac ;;
2473     esac
2474   done
2475   (set) 2>&1 |
2476     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477     *${as_nl}ac_space=\ *)
2478       sed -n \
2479         "s/'\''/'\''\\\\'\'''\''/g;
2480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2481       ;; #(
2482     *)
2483       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2484       ;;
2485     esac |
2486     sort
2487 )
2488     echo
2489
2490     $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2493     echo
2494     for ac_var in $ac_subst_vars
2495     do
2496       eval ac_val=\$$ac_var
2497       case $ac_val in
2498       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499       esac
2500       $as_echo "$ac_var='\''$ac_val'\''"
2501     done | sort
2502     echo
2503
2504     if test -n "$ac_subst_files"; then
2505       $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2508       echo
2509       for ac_var in $ac_subst_files
2510       do
2511         eval ac_val=\$$ac_var
2512         case $ac_val in
2513         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514         esac
2515         $as_echo "$ac_var='\''$ac_val'\''"
2516       done | sort
2517       echo
2518     fi
2519
2520     if test -s confdefs.h; then
2521       $as_echo "## ----------- ##
2522 ## confdefs.h. ##
2523 ## ----------- ##"
2524       echo
2525       cat confdefs.h
2526       echo
2527     fi
2528     test "$ac_signal" != 0 &&
2529       $as_echo "$as_me: caught signal $ac_signal"
2530     $as_echo "$as_me: exit $exit_status"
2531   } >&5
2532   rm -f core *.core core.conftest.* &&
2533     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2534     exit $exit_status
2535 ' 0
2536 for ac_signal in 1 2 13 15; do
2537   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2538 done
2539 ac_signal=0
2540
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest* confdefs.h
2543
2544 $as_echo "/* confdefs.h */" > confdefs.h
2545
2546 # Predefined preprocessor variables.
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2570 _ACEOF
2571
2572
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2575 ac_site_file1=NONE
2576 ac_site_file2=NONE
2577 if test -n "$CONFIG_SITE"; then
2578   # We do not want a PATH search for config.site.
2579   case $CONFIG_SITE in #((
2580     -*)  ac_site_file1=./$CONFIG_SITE;;
2581     */*) ac_site_file1=$CONFIG_SITE;;
2582     *)   ac_site_file1=./$CONFIG_SITE;;
2583   esac
2584 elif test "x$prefix" != xNONE; then
2585   ac_site_file1=$prefix/share/config.site
2586   ac_site_file2=$prefix/etc/config.site
2587 else
2588   ac_site_file1=$ac_default_prefix/share/config.site
2589   ac_site_file2=$ac_default_prefix/etc/config.site
2590 fi
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 do
2593   test "x$ac_site_file" = xNONE && continue
2594   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597     sed 's/^/| /' "$ac_site_file" >&5
2598     . "$ac_site_file" \
2599       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2603   fi
2604 done
2605
2606 if test -r "$cache_file"; then
2607   # Some versions of bash will fail to source /dev/null (special files
2608   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2609   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612     case $cache_file in
2613       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614       *)                      . "./$cache_file";;
2615     esac
2616   fi
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2620   >$cache_file
2621 fi
2622
2623 # Check that the precious variables saved in the cache have kept the same
2624 # value.
2625 ac_cache_corrupted=false
2626 for ac_var in $ac_precious_vars; do
2627   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628   eval ac_new_set=\$ac_env_${ac_var}_set
2629   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630   eval ac_new_val=\$ac_env_${ac_var}_value
2631   case $ac_old_set,$ac_new_set in
2632     set,)
2633       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635       ac_cache_corrupted=: ;;
2636     ,set)
2637       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639       ac_cache_corrupted=: ;;
2640     ,);;
2641     *)
2642       if test "x$ac_old_val" != "x$ac_new_val"; then
2643         # differences in whitespace do not lead to failure.
2644         ac_old_val_w=`echo x $ac_old_val`
2645         ac_new_val_w=`echo x $ac_new_val`
2646         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649           ac_cache_corrupted=:
2650         else
2651           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653           eval $ac_var=\$ac_old_val
2654         fi
2655         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2656 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2657         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2659       fi;;
2660   esac
2661   # Pass precious variables to config.status.
2662   if test "$ac_new_set" = set; then
2663     case $ac_new_val in
2664     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665     *) ac_arg=$ac_var=$ac_new_val ;;
2666     esac
2667     case " $ac_configure_args " in
2668       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2669       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2670     esac
2671   fi
2672 done
2673 if $ac_cache_corrupted; then
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2679 fi
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2683
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689
2690
2691 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2692
2693
2694
2695 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2696 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2697 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2698
2699 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2700 -v minor="$RADIUSD_MINOR_VERSION" \
2701 -v incrm="$RADIUSD_INCRM_VERSION" \
2702 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2703
2704 RADIUSD_VERSION_STRING=`cat VERSION`
2705 PACKAGE=freeradius
2706
2707
2708 ac_aux_dir=
2709 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2710   if test -f "$ac_dir/install-sh"; then
2711     ac_aux_dir=$ac_dir
2712     ac_install_sh="$ac_aux_dir/install-sh -c"
2713     break
2714   elif test -f "$ac_dir/install.sh"; then
2715     ac_aux_dir=$ac_dir
2716     ac_install_sh="$ac_aux_dir/install.sh -c"
2717     break
2718   elif test -f "$ac_dir/shtool"; then
2719     ac_aux_dir=$ac_dir
2720     ac_install_sh="$ac_aux_dir/shtool install -c"
2721     break
2722   fi
2723 done
2724 if test -z "$ac_aux_dir"; then
2725   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2726 fi
2727
2728 # These three variables are undocumented and unsupported,
2729 # and are intended to be withdrawn in a future Autoconf release.
2730 # They can cause serious problems if a builder's source tree is in a directory
2731 # whose full name contains unusual characters.
2732 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2733 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2734 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2735
2736
2737 # Make sure we can run config.sub.
2738 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2739   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2740
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2742 $as_echo_n "checking build system type... " >&6; }
2743 if ${ac_cv_build+:} false; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   ac_build_alias=$build_alias
2747 test "x$ac_build_alias" = x &&
2748   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2749 test "x$ac_build_alias" = x &&
2750   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2751 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2752   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2753
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2756 $as_echo "$ac_cv_build" >&6; }
2757 case $ac_cv_build in
2758 *-*-*) ;;
2759 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2760 esac
2761 build=$ac_cv_build
2762 ac_save_IFS=$IFS; IFS='-'
2763 set x $ac_cv_build
2764 shift
2765 build_cpu=$1
2766 build_vendor=$2
2767 shift; shift
2768 # Remember, the first character of IFS is used to create $*,
2769 # except with old shells:
2770 build_os=$*
2771 IFS=$ac_save_IFS
2772 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2773
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2776 $as_echo_n "checking host system type... " >&6; }
2777 if ${ac_cv_host+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test "x$host_alias" = x; then
2781   ac_cv_host=$ac_cv_build
2782 else
2783   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2784     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2785 fi
2786
2787 fi
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2789 $as_echo "$ac_cv_host" >&6; }
2790 case $ac_cv_host in
2791 *-*-*) ;;
2792 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2793 esac
2794 host=$ac_cv_host
2795 ac_save_IFS=$IFS; IFS='-'
2796 set x $ac_cv_host
2797 shift
2798 host_cpu=$1
2799 host_vendor=$2
2800 shift; shift
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2803 host_os=$*
2804 IFS=$ac_save_IFS
2805 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2806
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2809 $as_echo_n "checking target system type... " >&6; }
2810 if ${ac_cv_target+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test "x$target_alias" = x; then
2814   ac_cv_target=$ac_cv_host
2815 else
2816   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2817     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2818 fi
2819
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2822 $as_echo "$ac_cv_target" >&6; }
2823 case $ac_cv_target in
2824 *-*-*) ;;
2825 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2826 esac
2827 target=$ac_cv_target
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_target
2830 shift
2831 target_cpu=$1
2832 target_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 target_os=$*
2837 IFS=$ac_save_IFS
2838 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2839
2840
2841 # The aliases save the names the user supplied, while $host etc.
2842 # will get canonicalized.
2843 test -n "$target_alias" &&
2844   test "$program_prefix$program_suffix$program_transform_name" = \
2845     NONENONEs,x,x, &&
2846   program_prefix=${target_alias}-
2847
2848
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$CC"; then
2863   ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 if test -z "$ac_cv_prog_CC"; then
2894   ac_ct_CC=$CC
2895   # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   if test -n "$ac_ct_CC"; then
2903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910     for ac_exec_ext in '' $ac_executable_extensions; do
2911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912     ac_cv_prog_ac_ct_CC="gcc"
2913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917   done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931   if test "x$ac_ct_CC" = x; then
2932     CC=""
2933   else
2934     case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940     CC=$ac_ct_CC
2941   fi
2942 else
2943   CC="$ac_cv_prog_CC"
2944 fi
2945
2946 if test -z "$CC"; then
2947           if test -n "$ac_tool_prefix"; then
2948     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   if test -n "$CC"; then
2956   ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961   IFS=$as_save_IFS
2962   test -z "$as_dir" && as_dir=.
2963     for ac_exec_ext in '' $ac_executable_extensions; do
2964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965     ac_cv_prog_CC="${ac_tool_prefix}cc"
2966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967     break 2
2968   fi
2969 done
2970   done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985   fi
2986 fi
2987 if test -z "$CC"; then
2988   # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if test -n "$CC"; then
2996   ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998   ac_prog_rejected=no
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002   IFS=$as_save_IFS
3003   test -z "$as_dir" && as_dir=.
3004     for ac_exec_ext in '' $ac_executable_extensions; do
3005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007        ac_prog_rejected=yes
3008        continue
3009      fi
3010     ac_cv_prog_CC="cc"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 if test $ac_prog_rejected = yes; then
3019   # We found a bogon in the path, so make sure we never use it.
3020   set dummy $ac_cv_prog_CC
3021   shift
3022   if test $# != 0; then
3023     # We chose a different compiler from the bogus one.
3024     # However, it has the same basename, so the bogon will be chosen
3025     # first if we set CC to just the basename; use the full file name.
3026     shift
3027     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3028   fi
3029 fi
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 fi
3043 if test -z "$CC"; then
3044   if test -n "$ac_tool_prefix"; then
3045   for ac_prog in cl.exe
3046   do
3047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$CC"; then
3055   ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084     test -n "$CC" && break
3085   done
3086 fi
3087 if test -z "$CC"; then
3088   ac_ct_CC=$CC
3089   for ac_prog in cl.exe
3090 do
3091   # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if test -n "$ac_ct_CC"; then
3099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_exec_ext in '' $ac_executable_extensions; do
3107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108     ac_cv_prog_ac_ct_CC="$ac_prog"
3109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110     break 2
3111   fi
3112 done
3113   done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128   test -n "$ac_ct_CC" && break
3129 done
3130
3131   if test "x$ac_ct_CC" = x; then
3132     CC=""
3133   else
3134     case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     CC=$ac_ct_CC
3141   fi
3142 fi
3143
3144 fi
3145
3146
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details" "$LINENO" 5; }
3151
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154 set X $ac_compile
3155 ac_compiler=$2
3156 for ac_option in --version -v -V -qversion; do
3157   { { ac_try="$ac_compiler $ac_option >&5"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165   ac_status=$?
3166   if test -s conftest.err; then
3167     sed '10a\
3168 ... rest of stderr output deleted ...
3169          10q' conftest.err >conftest.er1
3170     cat conftest.er1 >&5
3171   fi
3172   rm -f conftest.er1 conftest.err
3173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174   test $ac_status = 0; }
3175 done
3176
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3202 do
3203   case $ac_file in
3204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206   esac
3207 done
3208 rm -f $ac_rmfiles
3209
3210 if { { ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217   (eval "$ac_link_default") 2>&5
3218   ac_status=$?
3219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220   test $ac_status = 0; }; then :
3221   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3227 do
3228   test -f "$ac_file" || continue
3229   case $ac_file in
3230     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231         ;;
3232     [ab].out )
3233         # We found the default executable, but exeext='' is most
3234         # certainly right.
3235         break;;
3236     *.* )
3237         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238         then :; else
3239            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240         fi
3241         # We set ac_cv_exeext here because the later test for it is not
3242         # safe: cross compilers may not add the suffix if given an `-o'
3243         # argument, so we may need to know it at that point already.
3244         # Even if this section looks crufty: it has the advantage of
3245         # actually working.
3246         break;;
3247     * )
3248         break;;
3249   esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253 else
3254   ac_file=''
3255 fi
3256 if test -z "$ac_file"; then :
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error 77 "C compiler cannot create executables
3265 See \`config.log' for more details" "$LINENO" 5; }
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271 $as_echo_n "checking for C compiler default output file name... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273 $as_echo "$ac_file" >&6; }
3274 ac_exeext=$ac_cv_exeext
3275
3276 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { { ac_try="$ac_link"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287   (eval "$ac_link") 2>&5
3288   ac_status=$?
3289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290   test $ac_status = 0; }; then :
3291   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3294 # `rm'.
3295 for ac_file in conftest.exe conftest conftest.*; do
3296   test -f "$ac_file" || continue
3297   case $ac_file in
3298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300           break;;
3301     * ) break;;
3302   esac
3303 done
3304 else
3305   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 rm -f conftest conftest$ac_cv_exeext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3313
3314 rm -f conftest.$ac_ext
3315 EXEEXT=$ac_cv_exeext
3316 ac_exeext=$EXEEXT
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h.  */
3319 #include <stdio.h>
3320 int
3321 main ()
3322 {
3323 FILE *f = fopen ("conftest.out", "w");
3324  return ferror (f) || fclose (f) != 0;
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 ac_clean_files="$ac_clean_files conftest.out"
3331 # Check that the compiler produces executables we can run.  If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 if test "$cross_compiling" != yes; then
3336   { { ac_try="$ac_link"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343   (eval "$ac_link") 2>&5
3344   ac_status=$?
3345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346   test $ac_status = 0; }
3347   if { ac_try='./conftest$ac_cv_exeext'
3348   { { case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354   (eval "$ac_try") 2>&5
3355   ac_status=$?
3356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357   test $ac_status = 0; }; }; then
3358     cross_compiling=no
3359   else
3360     if test "$cross_compiling" = maybe; then
3361         cross_compiling=yes
3362     else
3363         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details" "$LINENO" 5; }
3368     fi
3369   fi
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372 $as_echo "$cross_compiling" >&6; }
3373
3374 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if ${ac_cv_objext+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400   (eval "$ac_compile") 2>&5
3401   ac_status=$?
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }; then :
3404   for ac_file in conftest.o conftest.obj conftest.*; do
3405   test -f "$ac_file" || continue;
3406   case $ac_file in
3407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409        break;;
3410   esac
3411 done
3412 else
3413   $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 fi
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3426 ac_objext=$OBJEXT
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if ${ac_cv_c_compiler_gnu+:} false; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438 #ifndef __GNUC__
3439        choke me
3440 #endif
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447   ac_compiler_gnu=yes
3448 else
3449   ac_compiler_gnu=no
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3458   GCC=yes
3459 else
3460   GCC=
3461 fi
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if ${ac_cv_prog_cc_g+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   ac_save_c_werror_flag=$ac_c_werror_flag
3470    ac_c_werror_flag=yes
3471    ac_cv_prog_cc_g=no
3472    CFLAGS="-g"
3473    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485   ac_cv_prog_cc_g=yes
3486 else
3487   CFLAGS=""
3488       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500
3501 else
3502   ac_c_werror_flag=$ac_save_c_werror_flag
3503          CFLAGS="-g"
3504          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516   ac_cv_prog_cc_g=yes
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523    ac_c_werror_flag=$ac_save_c_werror_flag
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528   CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530   if test "$GCC" = yes; then
3531     CFLAGS="-g -O2"
3532   else
3533     CFLAGS="-g"
3534   fi
3535 else
3536   if test "$GCC" = yes; then
3537     CFLAGS="-O2"
3538   else
3539     CFLAGS=
3540   fi
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if ${ac_cv_prog_cc_c89+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_cv_prog_cc_c89=no
3548 ac_save_CC=$CC
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551 #include <stdarg.h>
3552 #include <stdio.h>
3553 struct stat;
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3558      char **p;
3559      int i;
3560 {
3561   return p[i];
3562 }
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3564 {
3565   char *s;
3566   va_list v;
3567   va_start (v,p);
3568   s = g (p, va_arg (v,int));
3569   va_end (v);
3570   return s;
3571 }
3572
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3574    function prototypes and stuff, but not '\xHH' hex character constants.
3575    These don't provoke an error unfortunately, instead are silently treated
3576    as 'x'.  The following induces an error, until -std is added to get
3577    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3578    array size at least.  It's necessary to write '\x00'==0 to get something
3579    that's true only with -std.  */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3581
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583    inside strings and character constants.  */
3584 #define FOO(x) 'x'
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3586
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591 int argc;
3592 char **argv;
3593 int
3594 main ()
3595 {
3596 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3603 do
3604   CC="$ac_save_CC $ac_arg"
3605   if ac_fn_c_try_compile "$LINENO"; then :
3606   ac_cv_prog_cc_c89=$ac_arg
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext
3609   test "x$ac_cv_prog_cc_c89" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3613
3614 fi
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c89" in
3617   x)
3618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3620   xno)
3621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3623   *)
3624     CC="$CC $ac_cv_prog_cc_c89"
3625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3627 esac
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3629
3630 fi
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638 ac_ext=cpp
3639 ac_cpp='$CXXCPP $CPPFLAGS'
3640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3643 if test -z "$CXX"; then
3644   if test -n "$CCC"; then
3645     CXX=$CCC
3646   else
3647     if test -n "$ac_tool_prefix"; then
3648   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3649   do
3650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_CXX+:} false; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   if test -n "$CXX"; then
3658   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CXX=$ac_cv_prog_CXX
3678 if test -n "$CXX"; then
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3680 $as_echo "$CXX" >&6; }
3681 else
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CXX" && break
3688   done
3689 fi
3690 if test -z "$CXX"; then
3691   ac_ct_CXX=$CXX
3692   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$ac_ct_CXX"; then
3702   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711     ac_cv_prog_ac_ct_CXX="$ac_prog"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3722 if test -n "$ac_ct_CXX"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3724 $as_echo "$ac_ct_CXX" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   test -n "$ac_ct_CXX" && break
3732 done
3733
3734   if test "x$ac_ct_CXX" = x; then
3735     CXX="g++"
3736   else
3737     case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743     CXX=$ac_ct_CXX
3744   fi
3745 fi
3746
3747   fi
3748 fi
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3751 set X $ac_compile
3752 ac_compiler=$2
3753 for ac_option in --version -v -V -qversion; do
3754   { { ac_try="$ac_compiler $ac_option >&5"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3762   ac_status=$?
3763   if test -s conftest.err; then
3764     sed '10a\
3765 ... rest of stderr output deleted ...
3766          10q' conftest.err >conftest.er1
3767     cat conftest.er1 >&5
3768   fi
3769   rm -f conftest.er1 conftest.err
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }
3772 done
3773
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3775 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3776 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785 #ifndef __GNUC__
3786        choke me
3787 #endif
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_cxx_try_compile "$LINENO"; then :
3794   ac_compiler_gnu=yes
3795 else
3796   ac_compiler_gnu=no
3797 fi
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3800
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3803 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3804 if test $ac_compiler_gnu = yes; then
3805   GXX=yes
3806 else
3807   GXX=
3808 fi
3809 ac_test_CXXFLAGS=${CXXFLAGS+set}
3810 ac_save_CXXFLAGS=$CXXFLAGS
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3812 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3813 if ${ac_cv_prog_cxx_g+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3817    ac_cxx_werror_flag=yes
3818    ac_cv_prog_cxx_g=no
3819    CXXFLAGS="-g"
3820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822
3823 int
3824 main ()
3825 {
3826
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_cxx_try_compile "$LINENO"; then :
3832   ac_cv_prog_cxx_g=yes
3833 else
3834   CXXFLAGS=""
3835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 if ac_fn_cxx_try_compile "$LINENO"; then :
3847
3848 else
3849   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3850          CXXFLAGS="-g"
3851          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_cxx_try_compile "$LINENO"; then :
3863   ac_cv_prog_cxx_g=yes
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3871 fi
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3873 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3874 if test "$ac_test_CXXFLAGS" = set; then
3875   CXXFLAGS=$ac_save_CXXFLAGS
3876 elif test $ac_cv_prog_cxx_g = yes; then
3877   if test "$GXX" = yes; then
3878     CXXFLAGS="-g -O2"
3879   else
3880     CXXFLAGS="-g"
3881   fi
3882 else
3883   if test "$GXX" = yes; then
3884     CXXFLAGS="-O2"
3885   else
3886     CXXFLAGS=
3887   fi
3888 fi
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3904 # On Suns, sometimes $CPP names a directory.
3905 if test -n "$CPP" && test -d "$CPP"; then
3906   CPP=
3907 fi
3908 if test -z "$CPP"; then
3909   if ${ac_cv_prog_CPP+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912       # Double quotes because CPP needs to be expanded
3913     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3914     do
3915       ac_preproc_ok=false
3916 for ac_c_preproc_warn_flag in '' yes
3917 do
3918   # Use a header file that comes with gcc, so configuring glibc
3919   # with a fresh cross-compiler works.
3920   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921   # <limits.h> exists even on freestanding compilers.
3922   # On the NeXT, cc -E runs the code through the compiler's parser,
3923   # not just through cpp. "Syntax error" is here to catch this case.
3924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h.  */
3926 #ifdef __STDC__
3927 # include <limits.h>
3928 #else
3929 # include <assert.h>
3930 #endif
3931                      Syntax error
3932 _ACEOF
3933 if ac_fn_c_try_cpp "$LINENO"; then :
3934
3935 else
3936   # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.i conftest.$ac_ext
3940
3941   # OK, works on sane cases.  Now check whether nonexistent headers
3942   # can be detected and how.
3943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945 #include <ac_nonexistent.h>
3946 _ACEOF
3947 if ac_fn_c_try_cpp "$LINENO"; then :
3948   # Broken: success on invalid input.
3949 continue
3950 else
3951   # Passes both tests.
3952 ac_preproc_ok=:
3953 break
3954 fi
3955 rm -f conftest.err conftest.i conftest.$ac_ext
3956
3957 done
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.i conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then :
3961   break
3962 fi
3963
3964     done
3965     ac_cv_prog_CPP=$CPP
3966
3967 fi
3968   CPP=$ac_cv_prog_CPP
3969 else
3970   ac_cv_prog_CPP=$CPP
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3973 $as_echo "$CPP" >&6; }
3974 ac_preproc_ok=false
3975 for ac_c_preproc_warn_flag in '' yes
3976 do
3977   # Use a header file that comes with gcc, so configuring glibc
3978   # with a fresh cross-compiler works.
3979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980   # <limits.h> exists even on freestanding compilers.
3981   # On the NeXT, cc -E runs the code through the compiler's parser,
3982   # not just through cpp. "Syntax error" is here to catch this case.
3983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 #ifdef __STDC__
3986 # include <limits.h>
3987 #else
3988 # include <assert.h>
3989 #endif
3990                      Syntax error
3991 _ACEOF
3992 if ac_fn_c_try_cpp "$LINENO"; then :
3993
3994 else
3995   # Broken: fails on valid input.
3996 continue
3997 fi
3998 rm -f conftest.err conftest.i conftest.$ac_ext
3999
4000   # OK, works on sane cases.  Now check whether nonexistent headers
4001   # can be detected and how.
4002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004 #include <ac_nonexistent.h>
4005 _ACEOF
4006 if ac_fn_c_try_cpp "$LINENO"; then :
4007   # Broken: success on invalid input.
4008 continue
4009 else
4010   # Passes both tests.
4011 ac_preproc_ok=:
4012 break
4013 fi
4014 rm -f conftest.err conftest.i conftest.$ac_ext
4015
4016 done
4017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4018 rm -f conftest.i conftest.err conftest.$ac_ext
4019 if $ac_preproc_ok; then :
4020
4021 else
4022   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4025 See \`config.log' for more details" "$LINENO" 5; }
4026 fi
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4036 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4037 if ${ac_cv_path_GREP+:} false; then :
4038   $as_echo_n "(cached) " >&6
4039 else
4040   if test -z "$GREP"; then
4041   ac_path_GREP_found=false
4042   # Loop through the user's path and test for each of PROGNAME-LIST
4043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048     for ac_prog in grep ggrep; do
4049     for ac_exec_ext in '' $ac_executable_extensions; do
4050       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4051       as_fn_executable_p "$ac_path_GREP" || continue
4052 # Check for GNU ac_path_GREP and select it if it is found.
4053   # Check for GNU $ac_path_GREP
4054 case `"$ac_path_GREP" --version 2>&1` in
4055 *GNU*)
4056   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4057 *)
4058   ac_count=0
4059   $as_echo_n 0123456789 >"conftest.in"
4060   while :
4061   do
4062     cat "conftest.in" "conftest.in" >"conftest.tmp"
4063     mv "conftest.tmp" "conftest.in"
4064     cp "conftest.in" "conftest.nl"
4065     $as_echo 'GREP' >> "conftest.nl"
4066     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068     as_fn_arith $ac_count + 1 && ac_count=$as_val
4069     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4070       # Best one so far, save it but keep looking for a better one
4071       ac_cv_path_GREP="$ac_path_GREP"
4072       ac_path_GREP_max=$ac_count
4073     fi
4074     # 10*(2^10) chars as input seems more than enough
4075     test $ac_count -gt 10 && break
4076   done
4077   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078 esac
4079
4080       $ac_path_GREP_found && break 3
4081     done
4082   done
4083   done
4084 IFS=$as_save_IFS
4085   if test -z "$ac_cv_path_GREP"; then
4086     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4087   fi
4088 else
4089   ac_cv_path_GREP=$GREP
4090 fi
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4094 $as_echo "$ac_cv_path_GREP" >&6; }
4095  GREP="$ac_cv_path_GREP"
4096
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4099 $as_echo_n "checking for egrep... " >&6; }
4100 if ${ac_cv_path_EGREP+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4104    then ac_cv_path_EGREP="$GREP -E"
4105    else
4106      if test -z "$EGREP"; then
4107   ac_path_EGREP_found=false
4108   # Loop through the user's path and test for each of PROGNAME-LIST
4109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114     for ac_prog in egrep; do
4115     for ac_exec_ext in '' $ac_executable_extensions; do
4116       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4117       as_fn_executable_p "$ac_path_EGREP" || continue
4118 # Check for GNU ac_path_EGREP and select it if it is found.
4119   # Check for GNU $ac_path_EGREP
4120 case `"$ac_path_EGREP" --version 2>&1` in
4121 *GNU*)
4122   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4123 *)
4124   ac_count=0
4125   $as_echo_n 0123456789 >"conftest.in"
4126   while :
4127   do
4128     cat "conftest.in" "conftest.in" >"conftest.tmp"
4129     mv "conftest.tmp" "conftest.in"
4130     cp "conftest.in" "conftest.nl"
4131     $as_echo 'EGREP' >> "conftest.nl"
4132     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134     as_fn_arith $ac_count + 1 && ac_count=$as_val
4135     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4136       # Best one so far, save it but keep looking for a better one
4137       ac_cv_path_EGREP="$ac_path_EGREP"
4138       ac_path_EGREP_max=$ac_count
4139     fi
4140     # 10*(2^10) chars as input seems more than enough
4141     test $ac_count -gt 10 && break
4142   done
4143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144 esac
4145
4146       $ac_path_EGREP_found && break 3
4147     done
4148   done
4149   done
4150 IFS=$as_save_IFS
4151   if test -z "$ac_cv_path_EGREP"; then
4152     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4153   fi
4154 else
4155   ac_cv_path_EGREP=$EGREP
4156 fi
4157
4158    fi
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4161 $as_echo "$ac_cv_path_EGREP" >&6; }
4162  EGREP="$ac_cv_path_EGREP"
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4166 $as_echo_n "checking for ANSI C header files... " >&6; }
4167 if ${ac_cv_header_stdc+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172 #include <stdlib.h>
4173 #include <stdarg.h>
4174 #include <string.h>
4175 #include <float.h>
4176
4177 int
4178 main ()
4179 {
4180
4181   ;
4182   return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186   ac_cv_header_stdc=yes
4187 else
4188   ac_cv_header_stdc=no
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191
4192 if test $ac_cv_header_stdc = yes; then
4193   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h.  */
4196 #include <string.h>
4197
4198 _ACEOF
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200   $EGREP "memchr" >/dev/null 2>&1; then :
4201
4202 else
4203   ac_cv_header_stdc=no
4204 fi
4205 rm -f conftest*
4206
4207 fi
4208
4209 if test $ac_cv_header_stdc = yes; then
4210   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213 #include <stdlib.h>
4214
4215 _ACEOF
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217   $EGREP "free" >/dev/null 2>&1; then :
4218
4219 else
4220   ac_cv_header_stdc=no
4221 fi
4222 rm -f conftest*
4223
4224 fi
4225
4226 if test $ac_cv_header_stdc = yes; then
4227   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228   if test "$cross_compiling" = yes; then :
4229   :
4230 else
4231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h.  */
4233 #include <ctype.h>
4234 #include <stdlib.h>
4235 #if ((' ' & 0x0FF) == 0x020)
4236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238 #else
4239 # define ISLOWER(c) \
4240                    (('a' <= (c) && (c) <= 'i') \
4241                      || ('j' <= (c) && (c) <= 'r') \
4242                      || ('s' <= (c) && (c) <= 'z'))
4243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244 #endif
4245
4246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247 int
4248 main ()
4249 {
4250   int i;
4251   for (i = 0; i < 256; i++)
4252     if (XOR (islower (i), ISLOWER (i))
4253         || toupper (i) != TOUPPER (i))
4254       return 2;
4255   return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_run "$LINENO"; then :
4259
4260 else
4261   ac_cv_header_stdc=no
4262 fi
4263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4264   conftest.$ac_objext conftest.beam conftest.$ac_ext
4265 fi
4266
4267 fi
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4270 $as_echo "$ac_cv_header_stdc" >&6; }
4271 if test $ac_cv_header_stdc = yes; then
4272
4273 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4274
4275 fi
4276
4277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279                   inttypes.h stdint.h unistd.h
4280 do :
4281   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4283 "
4284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4285   cat >>confdefs.h <<_ACEOF
4286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 _ACEOF
4288
4289 fi
4290
4291 done
4292
4293
4294
4295   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4296 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4297   MINIX=yes
4298 else
4299   MINIX=
4300 fi
4301
4302
4303   if test "$MINIX" = yes; then
4304
4305 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4306
4307
4308 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4309
4310
4311 $as_echo "#define _MINIX 1" >>confdefs.h
4312
4313   fi
4314
4315
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4317 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4318 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h.  */
4323
4324 #         define __EXTENSIONS__ 1
4325           $ac_includes_default
4326 int
4327 main ()
4328 {
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335   ac_cv_safe_to_define___extensions__=yes
4336 else
4337   ac_cv_safe_to_define___extensions__=no
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4342 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4343   test $ac_cv_safe_to_define___extensions__ = yes &&
4344     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4345
4346   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4347
4348   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4349
4350   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4351
4352   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4353
4354
4355
4356
4357 if test $ac_cv_c_compiler_gnu = yes; then
4358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4359 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4360 if ${ac_cv_prog_gcc_traditional+:} false; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363     ac_pattern="Autoconf.*'x'"
4364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366 #include <sgtty.h>
4367 Autoconf TIOCGETP
4368 _ACEOF
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4371   ac_cv_prog_gcc_traditional=yes
4372 else
4373   ac_cv_prog_gcc_traditional=no
4374 fi
4375 rm -f conftest*
4376
4377
4378   if test $ac_cv_prog_gcc_traditional = no; then
4379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381 #include <termio.h>
4382 Autoconf TCGETA
4383 _ACEOF
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4386   ac_cv_prog_gcc_traditional=yes
4387 fi
4388 rm -f conftest*
4389
4390   fi
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4393 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4394   if test $ac_cv_prog_gcc_traditional = yes; then
4395     CC="$CC -traditional"
4396   fi
4397 fi
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4400 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4401 if ${ac_cv_prog_suncc+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   cat > conftest.c <<EOF
4405 #ifdef __SUNPRO_C
4406   yes;
4407 #endif
4408 EOF
4409 if { ac_try='${CC-cc} -E conftest.c'
4410   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4415   ac_cv_prog_suncc=yes
4416 else
4417   ac_cv_prog_suncc=no
4418 fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4421 $as_echo "$ac_cv_prog_suncc" >&6; }
4422 if test -n "$ac_tool_prefix"; then
4423   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if ${ac_cv_prog_RANLIB+:} false; then :
4428   $as_echo_n "(cached) " >&6
4429 else
4430   if test -n "$RANLIB"; then
4431   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438     for ac_exec_ext in '' $ac_executable_extensions; do
4439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445   done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 RANLIB=$ac_cv_prog_RANLIB
4451 if test -n "$RANLIB"; then
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4453 $as_echo "$RANLIB" >&6; }
4454 else
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459
4460 fi
4461 if test -z "$ac_cv_prog_RANLIB"; then
4462   ac_ct_RANLIB=$RANLIB
4463   # Extract the first word of "ranlib", so it can be a program name with args.
4464 set dummy ranlib; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470   if test -n "$ac_ct_RANLIB"; then
4471   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478     for ac_exec_ext in '' $ac_executable_extensions; do
4479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480     ac_cv_prog_ac_ct_RANLIB="ranlib"
4481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485   done
4486 IFS=$as_save_IFS
4487
4488 fi
4489 fi
4490 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4491 if test -n "$ac_ct_RANLIB"; then
4492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4493 $as_echo "$ac_ct_RANLIB" >&6; }
4494 else
4495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498
4499   if test "x$ac_ct_RANLIB" = x; then
4500     RANLIB=":"
4501   else
4502     case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508     RANLIB=$ac_ct_RANLIB
4509   fi
4510 else
4511   RANLIB="$ac_cv_prog_RANLIB"
4512 fi
4513
4514
4515 if test "x$GCC" = "xyes"; then
4516     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4517 fi
4518
4519 # Check whether --enable-largefile was given.
4520 if test "${enable_largefile+set}" = set; then :
4521   enableval=$enable_largefile;
4522 fi
4523
4524 if test "$enable_largefile" != no; then
4525
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4527 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4528 if ${ac_cv_sys_largefile_CC+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   ac_cv_sys_largefile_CC=no
4532      if test "$GCC" != yes; then
4533        ac_save_CC=$CC
4534        while :; do
4535          # IRIX 6.2 and later do not support large files by default,
4536          # so use the C compiler's -n32 option if that helps.
4537          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539 #include <sys/types.h>
4540  /* Check that off_t can represent 2**63 - 1 correctly.
4541     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4542     since some C++ compilers masquerading as C compilers
4543     incorrectly reject 9223372036854775807.  */
4544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4545   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4546                        && LARGE_OFF_T % 2147483647 == 1)
4547                       ? 1 : -1];
4548 int
4549 main ()
4550 {
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556          if ac_fn_c_try_compile "$LINENO"; then :
4557   break
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext
4560          CC="$CC -n32"
4561          if ac_fn_c_try_compile "$LINENO"; then :
4562   ac_cv_sys_largefile_CC=' -n32'; break
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext
4565          break
4566        done
4567        CC=$ac_save_CC
4568        rm -f conftest.$ac_ext
4569     fi
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4572 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4573   if test "$ac_cv_sys_largefile_CC" != no; then
4574     CC=$CC$ac_cv_sys_largefile_CC
4575   fi
4576
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4578 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4579 if ${ac_cv_sys_file_offset_bits+:} false; then :
4580   $as_echo_n "(cached) " >&6
4581 else
4582   while :; do
4583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h.  */
4585 #include <sys/types.h>
4586  /* Check that off_t can represent 2**63 - 1 correctly.
4587     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4588     since some C++ compilers masquerading as C compilers
4589     incorrectly reject 9223372036854775807.  */
4590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4591   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4592                        && LARGE_OFF_T % 2147483647 == 1)
4593                       ? 1 : -1];
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603   ac_cv_sys_file_offset_bits=no; break
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 #define _FILE_OFFSET_BITS 64
4609 #include <sys/types.h>
4610  /* Check that off_t can represent 2**63 - 1 correctly.
4611     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4612     since some C++ compilers masquerading as C compilers
4613     incorrectly reject 9223372036854775807.  */
4614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4615   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4616                        && LARGE_OFF_T % 2147483647 == 1)
4617                       ? 1 : -1];
4618 int
4619 main ()
4620 {
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627   ac_cv_sys_file_offset_bits=64; break
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630   ac_cv_sys_file_offset_bits=unknown
4631   break
4632 done
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4635 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4636 case $ac_cv_sys_file_offset_bits in #(
4637   no | unknown) ;;
4638   *)
4639 cat >>confdefs.h <<_ACEOF
4640 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4641 _ACEOF
4642 ;;
4643 esac
4644 rm -rf conftest*
4645   if test $ac_cv_sys_file_offset_bits = unknown; then
4646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4647 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4648 if ${ac_cv_sys_large_files+:} false; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   while :; do
4652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654 #include <sys/types.h>
4655  /* Check that off_t can represent 2**63 - 1 correctly.
4656     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4657     since some C++ compilers masquerading as C compilers
4658     incorrectly reject 9223372036854775807.  */
4659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4660   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4661                        && LARGE_OFF_T % 2147483647 == 1)
4662                       ? 1 : -1];
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672   ac_cv_sys_large_files=no; break
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677 #define _LARGE_FILES 1
4678 #include <sys/types.h>
4679  /* Check that off_t can represent 2**63 - 1 correctly.
4680     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4681     since some C++ compilers masquerading as C compilers
4682     incorrectly reject 9223372036854775807.  */
4683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4684   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4685                        && LARGE_OFF_T % 2147483647 == 1)
4686                       ? 1 : -1];
4687 int
4688 main ()
4689 {
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696   ac_cv_sys_large_files=1; break
4697 fi
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699   ac_cv_sys_large_files=unknown
4700   break
4701 done
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4704 $as_echo "$ac_cv_sys_large_files" >&6; }
4705 case $ac_cv_sys_large_files in #(
4706   no | unknown) ;;
4707   *)
4708 cat >>confdefs.h <<_ACEOF
4709 #define _LARGE_FILES $ac_cv_sys_large_files
4710 _ACEOF
4711 ;;
4712 esac
4713 rm -rf conftest*
4714   fi
4715
4716
4717 fi
4718
4719
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4722 if ${ac_cv_c_bigendian+:} false; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725   ac_cv_c_bigendian=unknown
4726     # See if we're dealing with a universal compiler.
4727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #ifndef __APPLE_CC__
4730                not a universal capable compiler
4731              #endif
4732              typedef int dummy;
4733
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736
4737         # Check for potential -arch flags.  It is not universal unless
4738         # there are at least two -arch flags with different values.
4739         ac_arch=
4740         ac_prev=
4741         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4742          if test -n "$ac_prev"; then
4743            case $ac_word in
4744              i?86 | x86_64 | ppc | ppc64)
4745                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4746                  ac_arch=$ac_word
4747                else
4748                  ac_cv_c_bigendian=universal
4749                  break
4750                fi
4751                ;;
4752            esac
4753            ac_prev=
4754          elif test "x$ac_word" = "x-arch"; then
4755            ac_prev=arch
4756          fi
4757        done
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760     if test $ac_cv_c_bigendian = unknown; then
4761       # See if sys/param.h defines the BYTE_ORDER macro.
4762       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764 #include <sys/types.h>
4765              #include <sys/param.h>
4766
4767 int
4768 main ()
4769 {
4770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4771                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4772                      && LITTLE_ENDIAN)
4773               bogus endian macros
4774              #endif
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781   # It does; now see whether it defined to BIG_ENDIAN or not.
4782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784 #include <sys/types.h>
4785                 #include <sys/param.h>
4786
4787 int
4788 main ()
4789 {
4790 #if BYTE_ORDER != BIG_ENDIAN
4791                  not big endian
4792                 #endif
4793
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799   ac_cv_c_bigendian=yes
4800 else
4801   ac_cv_c_bigendian=no
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806     fi
4807     if test $ac_cv_c_bigendian = unknown; then
4808       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4809       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h.  */
4811 #include <limits.h>
4812
4813 int
4814 main ()
4815 {
4816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4817               bogus endian macros
4818              #endif
4819
4820   ;
4821   return 0;
4822 }
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825   # It does; now see whether it defined to _BIG_ENDIAN or not.
4826          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h.  */
4828 #include <limits.h>
4829
4830 int
4831 main ()
4832 {
4833 #ifndef _BIG_ENDIAN
4834                  not big endian
4835                 #endif
4836
4837   ;
4838   return 0;
4839 }
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842   ac_cv_c_bigendian=yes
4843 else
4844   ac_cv_c_bigendian=no
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849     fi
4850     if test $ac_cv_c_bigendian = unknown; then
4851       # Compile a test program.
4852       if test "$cross_compiling" = yes; then :
4853   # Try to guess by grepping values from an object file.
4854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856 short int ascii_mm[] =
4857                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4858                 short int ascii_ii[] =
4859                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4860                 int use_ascii (int i) {
4861                   return ascii_mm[i] + ascii_ii[i];
4862                 }
4863                 short int ebcdic_ii[] =
4864                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4865                 short int ebcdic_mm[] =
4866                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4867                 int use_ebcdic (int i) {
4868                   return ebcdic_mm[i] + ebcdic_ii[i];
4869                 }
4870                 extern int foo;
4871
4872 int
4873 main ()
4874 {
4875 return use_ascii (foo) == use_ebcdic (foo);
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4882               ac_cv_c_bigendian=yes
4883             fi
4884             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4885               if test "$ac_cv_c_bigendian" = unknown; then
4886                 ac_cv_c_bigendian=no
4887               else
4888                 # finding both strings is unlikely to happen, but who knows?
4889                 ac_cv_c_bigendian=unknown
4890               fi
4891             fi
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 else
4895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h.  */
4897 $ac_includes_default
4898 int
4899 main ()
4900 {
4901
4902              /* Are we little or big endian?  From Harbison&Steele.  */
4903              union
4904              {
4905                long int l;
4906                char c[sizeof (long int)];
4907              } u;
4908              u.l = 1;
4909              return u.c[sizeof (long int) - 1] == 1;
4910
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_c_try_run "$LINENO"; then :
4916   ac_cv_c_bigendian=no
4917 else
4918   ac_cv_c_bigendian=yes
4919 fi
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4921   conftest.$ac_objext conftest.beam conftest.$ac_ext
4922 fi
4923
4924     fi
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4927 $as_echo "$ac_cv_c_bigendian" >&6; }
4928  case $ac_cv_c_bigendian in #(
4929    yes)
4930      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4931 ;; #(
4932    no)
4933       ;; #(
4934    universal)
4935
4936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4937
4938      ;; #(
4939    *)
4940      as_fn_error $? "unknown endianness
4941  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4942  esac
4943
4944
4945 # Extract the first word of "gmake", so it can be a program name with args.
4946 set dummy gmake; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_GMAKE+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$GMAKE"; then
4953   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962     ac_cv_prog_GMAKE="yes"
4963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4971 fi
4972 fi
4973 GMAKE=$ac_cv_prog_GMAKE
4974 if test -n "$GMAKE"; then
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4976 $as_echo "$GMAKE" >&6; }
4977 else
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981
4982
4983 if test $GMAKE = no; then
4984   # Extract the first word of "make", so it can be a program name with args.
4985 set dummy make; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_MAKE+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   case $MAKE in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010
5011   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5012   ;;
5013 esac
5014 fi
5015 MAKE=$ac_cv_path_MAKE
5016 if test -n "$MAKE"; then
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5018 $as_echo "$MAKE" >&6; }
5019 else
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 else
5026   # Extract the first word of "gmake", so it can be a program name with args.
5027 set dummy gmake; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_MAKE+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   case $MAKE in
5034   [\\/]* | ?:[\\/]*)
5035   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5036   ;;
5037   *)
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043     for ac_exec_ext in '' $ac_executable_extensions; do
5044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050   done
5051 IFS=$as_save_IFS
5052
5053   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5054   ;;
5055 esac
5056 fi
5057 MAKE=$ac_cv_path_MAKE
5058 if test -n "$MAKE"; then
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5060 $as_echo "$MAKE" >&6; }
5061 else
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 fi
5068 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5069 if test -z "$makever"; then
5070   as_fn_error $? "GNU Make is not installed.  Please download and install it
5071                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5072 fi
5073
5074 # Extract the first word of "git", so it can be a program name with args.
5075 set dummy git; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_GIT+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if test -n "$GIT"; then
5082   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_prog_GIT="yes"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098
5099   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5100 fi
5101 fi
5102 GIT=$ac_cv_prog_GIT
5103 if test -n "$GIT"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5105 $as_echo "$GIT" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112
5113
5114 # Check whether --with-system-libltdl was given.
5115 if test "${with_system_libltdl+set}" = set; then :
5116   withval=$with_system_libltdl;
5117 LIBLTDL="-lltdl"
5118 INCLTDL=-DWITH_SYSTEM_LTDL
5119 LTDL_SUBDIRS=
5120
5121 else
5122
5123 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5125 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5126 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5127   $as_echo_n "(cached) " >&6
5128 else
5129   ac_check_lib_save_LIBS=$LIBS
5130 LIBS="-lltdl  $LIBS"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h.  */
5133
5134 /* Override any GCC internal prototype to avoid an error.
5135    Use char because int might match the return type of a GCC
5136    builtin and then its argument prototype would still apply.  */
5137 #ifdef __cplusplus
5138 extern "C"
5139 #endif
5140 char lt_dlinit ();
5141 int
5142 main ()
5143 {
5144 return lt_dlinit ();
5145   ;
5146   return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_link "$LINENO"; then :
5150   ac_cv_lib_ltdl_lt_dlinit=yes
5151 else
5152   ac_cv_lib_ltdl_lt_dlinit=no
5153 fi
5154 rm -f core conftest.err conftest.$ac_objext \
5155     conftest$ac_exeext conftest.$ac_ext
5156 LIBS=$ac_check_lib_save_LIBS
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5159 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5160 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5161   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5162 else
5163   if test x"$enable_ltdl_install" = xno; then
5164      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5165 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5166    else
5167      enable_ltdl_install=yes
5168    fi
5169
5170 fi
5171
5172   if test x"$enable_ltdl_install" = x"yes"; then
5173     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5174     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5175     LTDLINCL='-I${top_srcdir}/''libltdl'
5176   else
5177     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5178     LIBLTDL="-lltdl"
5179     LTDLINCL=
5180   fi
5181   # For backwards non-gettext consistent compatibility...
5182   INCLTDL="$LTDLINCL"
5183
5184
5185 if test x"$enable_ltdl_install" = x"yes"; then
5186   LTDL_SUBDIRS=libltdl
5187 fi
5188
5189 fi
5190
5191
5192
5193 LTCFLAGS=" "
5194
5195 # Check whether --enable-shared was given.
5196 if test "${enable_shared+set}" = set; then :
5197   enableval=$enable_shared; p=${PACKAGE-default}
5198     case $enableval in
5199     yes) enable_shared=yes ;;
5200     no) enable_shared=no ;;
5201     *)
5202       enable_shared=no
5203       # Look at the argument we got.  We use all the common list separators.
5204       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5205       for pkg in $enableval; do
5206         IFS="$lt_save_ifs"
5207         if test "X$pkg" = "X$p"; then
5208           enable_shared=yes
5209         fi
5210       done
5211       IFS="$lt_save_ifs"
5212       ;;
5213     esac
5214 else
5215   enable_shared=yes
5216 fi
5217
5218
5219 # Check whether --enable-static was given.
5220 if test "${enable_static+set}" = set; then :
5221   enableval=$enable_static; p=${PACKAGE-default}
5222     case $enableval in
5223     yes) enable_static=yes ;;
5224     no) enable_static=no ;;
5225     *)
5226      enable_static=no
5227       # Look at the argument we got.  We use all the common list separators.
5228       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5229       for pkg in $enableval; do
5230         IFS="$lt_save_ifs"
5231         if test "X$pkg" = "X$p"; then
5232           enable_static=yes
5233         fi
5234       done
5235       IFS="$lt_save_ifs"
5236       ;;
5237     esac
5238 else
5239   enable_static=yes
5240 fi
5241
5242
5243 # Check whether --enable-fast-install was given.
5244 if test "${enable_fast_install+set}" = set; then :
5245   enableval=$enable_fast_install; p=${PACKAGE-default}
5246     case $enableval in
5247     yes) enable_fast_install=yes ;;
5248     no) enable_fast_install=no ;;
5249     *)
5250       enable_fast_install=no
5251       # Look at the argument we got.  We use all the common list separators.
5252       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5253       for pkg in $enableval; do
5254         IFS="$lt_save_ifs"
5255         if test "X$pkg" = "X$p"; then
5256           enable_fast_install=yes
5257         fi
5258       done
5259       IFS="$lt_save_ifs"
5260       ;;
5261     esac
5262 else
5263   enable_fast_install=yes
5264 fi
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5268 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5269 if ${lt_cv_path_SED+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   # Loop through the user's path and test for sed and gsed.
5273 # Then use that list of sed's as ones to test for truncation.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279   for lt_ac_prog in sed gsed; do
5280     for ac_exec_ext in '' $ac_executable_extensions; do
5281       if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5282         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5283       fi
5284     done
5285   done
5286 done
5287 IFS=$as_save_IFS
5288 lt_ac_max=0
5289 lt_ac_count=0
5290 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5291 # along with /bin/sed that truncates output.
5292 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5293   test ! -f $lt_ac_sed && continue
5294   cat /dev/null > conftest.in
5295   lt_ac_count=0
5296   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5297   # Check for GNU sed and select it if it is found.
5298   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5299     lt_cv_path_SED=$lt_ac_sed
5300     break
5301   fi
5302   while true; do
5303     cat conftest.in conftest.in >conftest.tmp
5304     mv conftest.tmp conftest.in
5305     cp conftest.in conftest.nl
5306     echo >>conftest.nl
5307     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5308     cmp -s conftest.out conftest.nl || break
5309     # 10000 chars as input seems more than enough
5310     test $lt_ac_count -gt 10 && break
5311     lt_ac_count=`expr $lt_ac_count + 1`
5312     if test $lt_ac_count -gt $lt_ac_max; then
5313       lt_ac_max=$lt_ac_count
5314       lt_cv_path_SED=$lt_ac_sed
5315     fi
5316   done
5317 done
5318
5319 fi
5320
5321 SED=$lt_cv_path_SED
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5324 $as_echo "$SED" >&6; }
5325
5326
5327 # Check whether --with-gnu-ld was given.
5328 if test "${with_gnu_ld+set}" = set; then :
5329   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5330 else
5331   with_gnu_ld=no
5332 fi
5333
5334 ac_prog=ld
5335 if test "$GCC" = yes; then
5336   # Check if gcc -print-prog-name=ld gives a path.
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5338 $as_echo_n "checking for ld used by $CC... " >&6; }
5339   case $host in
5340   *-*-mingw*)
5341     # gcc leaves a trailing carriage return which upsets mingw
5342     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5343   *)
5344     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5345   esac
5346   case $ac_prog in
5347     # Accept absolute paths.
5348     [\\/]* | ?:[\\/]*)
5349       re_direlt='/[^/][^/]*/\.\./'
5350       # Canonicalize the pathname of ld
5351       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5352       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5353         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5354       done
5355       test -z "$LD" && LD="$ac_prog"
5356       ;;
5357   "")
5358     # If it fails, then pretend we aren't using GCC.
5359     ac_prog=ld
5360     ;;
5361   *)
5362     # If it is relative, then search for the first ld in PATH.
5363     with_gnu_ld=unknown
5364     ;;
5365   esac
5366 elif test "$with_gnu_ld" = yes; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5368 $as_echo_n "checking for GNU ld... " >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5371 $as_echo_n "checking for non-GNU ld... " >&6; }
5372 fi
5373 if ${lt_cv_path_LD+:} false; then :
5374   $as_echo_n "(cached) " >&6
5375 else
5376   if test -z "$LD"; then
5377   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5378   for ac_dir in $PATH; do
5379     IFS="$lt_save_ifs"
5380     test -z "$ac_dir" && ac_dir=.
5381     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5382       lt_cv_path_LD="$ac_dir/$ac_prog"
5383       # Check to see if the program is GNU ld.  I'd rather use --version,
5384       # but apparently some variants of GNU ld only accept -v.
5385       # Break only if it was the GNU/non-GNU ld that we prefer.
5386       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5387       *GNU* | *'with BFD'*)
5388         test "$with_gnu_ld" != no && break
5389         ;;
5390       *)
5391         test "$with_gnu_ld" != yes && break
5392         ;;
5393       esac
5394     fi
5395   done
5396   IFS="$lt_save_ifs"
5397 else
5398   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5399 fi
5400 fi
5401
5402 LD="$lt_cv_path_LD"
5403 if test -n "$LD"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5405 $as_echo "$LD" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5412 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5413 if ${lt_cv_prog_gnu_ld+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5417 case `$LD -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419   lt_cv_prog_gnu_ld=yes
5420   ;;
5421 *)
5422   lt_cv_prog_gnu_ld=no
5423   ;;
5424 esac
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5427 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5428 with_gnu_ld=$lt_cv_prog_gnu_ld
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5432 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5433 if ${lt_cv_ld_reload_flag+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   lt_cv_ld_reload_flag='-r'
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5439 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5442 "" | " "*) ;;
5443 *) reload_flag=" $reload_flag" ;;
5444 esac
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446 case $host_os in
5447   darwin*)
5448     if test "$GCC" = yes; then
5449       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5450     else
5451       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5452     fi
5453     ;;
5454 esac
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5457 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5458 if ${lt_cv_path_NM+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if test -n "$NM"; then
5462   # Let the user override the test.
5463   lt_cv_path_NM="$NM"
5464 else
5465   lt_nm_to_check="${ac_tool_prefix}nm"
5466   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5467     lt_nm_to_check="$lt_nm_to_check nm"
5468   fi
5469   for lt_tmp_nm in $lt_nm_to_check; do
5470     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5471     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5472       IFS="$lt_save_ifs"
5473       test -z "$ac_dir" && ac_dir=.
5474       tmp_nm="$ac_dir/$lt_tmp_nm"
5475       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5476         # Check to see if the nm accepts a BSD-compat flag.
5477         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5478         #   nm: unknown option "B" ignored
5479         # Tru64's nm complains that /dev/null is an invalid object file
5480         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5481         */dev/null* | *'Invalid file or object type'*)
5482           lt_cv_path_NM="$tmp_nm -B"
5483           break
5484           ;;
5485         *)
5486           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5487           */dev/null*)
5488             lt_cv_path_NM="$tmp_nm -p"
5489             break
5490             ;;
5491           *)
5492             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5493             continue # so that we can try to find one that supports BSD flags
5494             ;;
5495           esac
5496           ;;
5497         esac
5498       fi
5499     done
5500     IFS="$lt_save_ifs"
5501   done
5502   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5503 fi
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5506 $as_echo "$lt_cv_path_NM" >&6; }
5507 NM="$lt_cv_path_NM"
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5510 $as_echo_n "checking whether ln -s works... " >&6; }
5511 LN_S=$as_ln_s
5512 if test "$LN_S" = "ln -s"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5517 $as_echo "no, using $LN_S" >&6; }
5518 fi
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if ${lt_cv_deplibs_check_method+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5538
5539 case $host_os in
5540 aix[4-9]*)
5541   lt_cv_deplibs_check_method=pass_all
5542   ;;
5543
5544 beos*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 bsdi[45]*)
5549   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550   lt_cv_file_magic_cmd='/usr/bin/file -L'
5551   lt_cv_file_magic_test_file=/shlib/libc.so
5552   ;;
5553
5554 cygwin*)
5555   # func_win32_libid is a shell function defined in ltmain.sh
5556   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557   lt_cv_file_magic_cmd='func_win32_libid'
5558   ;;
5559
5560 mingw* | pw32*)
5561   # Base MSYS/MinGW do not provide the 'file' command needed by
5562   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563   # unless we find 'file', for example because we are cross-compiling.
5564   if ( file / ) >/dev/null 2>&1; then
5565     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5566     lt_cv_file_magic_cmd='func_win32_libid'
5567   else
5568     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5569     lt_cv_file_magic_cmd='$OBJDUMP -f'
5570   fi
5571   ;;
5572
5573 darwin* | rhapsody*)
5574   lt_cv_deplibs_check_method=pass_all
5575   ;;
5576
5577 freebsd* | dragonfly*)
5578   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5579     case $host_cpu in
5580     i*86 )
5581       # Not sure whether the presence of OpenBSD here was a mistake.
5582       # Let's accept both of them until this is cleared up.
5583       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584       lt_cv_file_magic_cmd=/usr/bin/file
5585       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586       ;;
5587     esac
5588   else
5589     lt_cv_deplibs_check_method=pass_all
5590   fi
5591   ;;
5592
5593 gnu*)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596
5597 hpux10.20* | hpux11*)
5598   lt_cv_file_magic_cmd=/usr/bin/file
5599   case $host_cpu in
5600   ia64*)
5601     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5602     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5603     ;;
5604   hppa*64*)
5605     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]'
5606     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5607     ;;
5608   *)
5609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5610     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5611     ;;
5612   esac
5613   ;;
5614
5615 interix[3-9]*)
5616   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5617   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5618   ;;
5619
5620 irix5* | irix6* | nonstopux*)
5621   case $LD in
5622   *-32|*"-32 ") libmagic=32-bit;;
5623   *-n32|*"-n32 ") libmagic=N32;;
5624   *-64|*"-64 ") libmagic=64-bit;;
5625   *) libmagic=never-match;;
5626   esac
5627   lt_cv_deplibs_check_method=pass_all
5628   ;;
5629
5630 # This must be Linux ELF.
5631 linux* | k*bsd*-gnu)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 netbsd* | netbsdelf*-gnu)
5636   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5638   else
5639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5640   fi
5641   ;;
5642
5643 newos6*)
5644   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5645   lt_cv_file_magic_cmd=/usr/bin/file
5646   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5647   ;;
5648
5649 nto-qnx*)
5650   lt_cv_deplibs_check_method=unknown
5651   ;;
5652
5653 openbsd*)
5654   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5655     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5656   else
5657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658   fi
5659   ;;
5660
5661 osf3* | osf4* | osf5*)
5662   lt_cv_deplibs_check_method=pass_all
5663   ;;
5664
5665 rdos*)
5666   lt_cv_deplibs_check_method=pass_all
5667   ;;
5668
5669 solaris*)
5670   lt_cv_deplibs_check_method=pass_all
5671   ;;
5672
5673 sysv4 | sysv4.3*)
5674   case $host_vendor in
5675   motorola)
5676     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]'
5677     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5678     ;;
5679   ncr)
5680     lt_cv_deplibs_check_method=pass_all
5681     ;;
5682   sequent)
5683     lt_cv_file_magic_cmd='/bin/file'
5684     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5685     ;;
5686   sni)
5687     lt_cv_file_magic_cmd='/bin/file'
5688     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5689     lt_cv_file_magic_test_file=/lib/libc.so
5690     ;;
5691   siemens)
5692     lt_cv_deplibs_check_method=pass_all
5693     ;;
5694   pc)
5695     lt_cv_deplibs_check_method=pass_all
5696     ;;
5697   esac
5698   ;;
5699
5700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5701   lt_cv_deplibs_check_method=pass_all
5702   ;;
5703 esac
5704
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5707 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5708 file_magic_cmd=$lt_cv_file_magic_cmd
5709 deplibs_check_method=$lt_cv_deplibs_check_method
5710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5711
5712
5713
5714
5715 # If no C compiler was specified, use CC.
5716 LTCC=${LTCC-"$CC"}
5717
5718 # If no C compiler flags were specified, use CFLAGS.
5719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5720
5721 # Allow CC to be a program name with arguments.
5722 compiler=$CC
5723
5724 # Check whether --enable-libtool-lock was given.
5725 if test "${enable_libtool_lock+set}" = set; then :
5726   enableval=$enable_libtool_lock;
5727 fi
5728
5729 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5730
5731 # Some flags need to be propagated to the compiler or linker for good
5732 # libtool support.
5733 case $host in
5734 ia64-*-hpux*)
5735   # Find out which ABI we are using.
5736   echo 'int i;' > conftest.$ac_ext
5737   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5738   (eval $ac_compile) 2>&5
5739   ac_status=$?
5740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741   test $ac_status = 0; }; then
5742     case `/usr/bin/file conftest.$ac_objext` in
5743     *ELF-32*)
5744       HPUX_IA64_MODE="32"
5745       ;;
5746     *ELF-64*)
5747       HPUX_IA64_MODE="64"
5748       ;;
5749     esac
5750   fi
5751   rm -rf conftest*
5752   ;;
5753 *-*-irix6*)
5754   # Find out which ABI we are using.
5755   echo '#line 5755 "configure"' > conftest.$ac_ext
5756   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5757   (eval $ac_compile) 2>&5
5758   ac_status=$?
5759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5760   test $ac_status = 0; }; then
5761    if test "$lt_cv_prog_gnu_ld" = yes; then
5762     case `/usr/bin/file conftest.$ac_objext` in
5763     *32-bit*)
5764       LD="${LD-ld} -melf32bsmip"
5765       ;;
5766     *N32*)
5767       LD="${LD-ld} -melf32bmipn32"
5768       ;;
5769     *64-bit*)
5770       LD="${LD-ld} -melf64bmip"
5771       ;;
5772     esac
5773    else
5774     case `/usr/bin/file conftest.$ac_objext` in
5775     *32-bit*)
5776       LD="${LD-ld} -32"
5777       ;;
5778     *N32*)
5779       LD="${LD-ld} -n32"
5780       ;;
5781     *64-bit*)
5782       LD="${LD-ld} -64"
5783       ;;
5784     esac
5785    fi
5786   fi
5787   rm -rf conftest*
5788   ;;
5789
5790 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5791 s390*-*linux*|sparc*-*linux*)
5792   # Find out which ABI we are using.
5793   echo 'int i;' > conftest.$ac_ext
5794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5795   (eval $ac_compile) 2>&5
5796   ac_status=$?
5797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5798   test $ac_status = 0; }; then
5799     case `/usr/bin/file conftest.o` in
5800     *32-bit*)
5801       case $host in
5802         x86_64-*kfreebsd*-gnu)
5803           LD="${LD-ld} -m elf_i386_fbsd"
5804           ;;
5805         x86_64-*linux*)
5806           LD="${LD-ld} -m elf_i386"
5807           ;;
5808         ppc64-*linux*|powerpc64-*linux*)
5809           LD="${LD-ld} -m elf32ppclinux"
5810           ;;
5811         s390x-*linux*)
5812           LD="${LD-ld} -m elf_s390"
5813           ;;
5814         sparc64-*linux*)
5815           LD="${LD-ld} -m elf32_sparc"
5816           ;;
5817       esac
5818       ;;
5819     *64-bit*)
5820       case $host in
5821         x86_64-*kfreebsd*-gnu)
5822           LD="${LD-ld} -m elf_x86_64_fbsd"
5823           ;;
5824         x86_64-*linux*)
5825           LD="${LD-ld} -m elf_x86_64"
5826           ;;
5827         ppc*-*linux*|powerpc*-*linux*)
5828           LD="${LD-ld} -m elf64ppc"
5829           ;;
5830         s390*-*linux*)
5831           LD="${LD-ld} -m elf64_s390"
5832           ;;
5833         sparc*-*linux*)
5834           LD="${LD-ld} -m elf64_sparc"
5835           ;;
5836       esac
5837       ;;
5838     esac
5839   fi
5840   rm -rf conftest*
5841   ;;
5842
5843 *-*-sco3.2v5*)
5844   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5845   SAVE_CFLAGS="$CFLAGS"
5846   CFLAGS="$CFLAGS -belf"
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5848 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5849 if ${lt_cv_cc_needs_belf+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   ac_ext=c
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857
5858      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860
5861 int
5862 main ()
5863 {
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_link "$LINENO"; then :
5870   lt_cv_cc_needs_belf=yes
5871 else
5872   lt_cv_cc_needs_belf=no
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext \
5875     conftest$ac_exeext conftest.$ac_ext
5876      ac_ext=c
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5884 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5885   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5886     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5887     CFLAGS="$SAVE_CFLAGS"
5888   fi
5889   ;;
5890 sparc*-*solaris*)
5891   # Find out which ABI we are using.
5892   echo 'int i;' > conftest.$ac_ext
5893   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5894   (eval $ac_compile) 2>&5
5895   ac_status=$?
5896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897   test $ac_status = 0; }; then
5898     case `/usr/bin/file conftest.o` in
5899     *64-bit*)
5900       case $lt_cv_prog_gnu_ld in
5901       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5902       *)
5903         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5904           LD="${LD-ld} -64"
5905         fi
5906         ;;
5907       esac
5908       ;;
5909     esac
5910   fi
5911   rm -rf conftest*
5912   ;;
5913
5914
5915 esac
5916
5917 need_locks="$enable_libtool_lock"
5918
5919
5920 for ac_header in dlfcn.h
5921 do :
5922   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5923 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5924   cat >>confdefs.h <<_ACEOF
5925 #define HAVE_DLFCN_H 1
5926 _ACEOF
5927
5928 fi
5929
5930 done
5931
5932
5933
5934 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5935     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5936     (test "X$CXX" != "Xg++"))) ; then
5937   ac_ext=cpp
5938 ac_cpp='$CXXCPP $CPPFLAGS'
5939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5943 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5944 if test -z "$CXXCPP"; then
5945   if ${ac_cv_prog_CXXCPP+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948       # Double quotes because CXXCPP needs to be expanded
5949     for CXXCPP in "$CXX -E" "/lib/cpp"
5950     do
5951       ac_preproc_ok=false
5952 for ac_cxx_preproc_warn_flag in '' yes
5953 do
5954   # Use a header file that comes with gcc, so configuring glibc
5955   # with a fresh cross-compiler works.
5956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5957   # <limits.h> exists even on freestanding compilers.
5958   # On the NeXT, cc -E runs the code through the compiler's parser,
5959   # not just through cpp. "Syntax error" is here to catch this case.
5960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h.  */
5962 #ifdef __STDC__
5963 # include <limits.h>
5964 #else
5965 # include <assert.h>
5966 #endif
5967                      Syntax error
5968 _ACEOF
5969 if ac_fn_cxx_try_cpp "$LINENO"; then :
5970
5971 else
5972   # Broken: fails on valid input.
5973 continue
5974 fi
5975 rm -f conftest.err conftest.i conftest.$ac_ext
5976
5977   # OK, works on sane cases.  Now check whether nonexistent headers
5978   # can be detected and how.
5979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981 #include <ac_nonexistent.h>
5982 _ACEOF
5983 if ac_fn_cxx_try_cpp "$LINENO"; then :
5984   # Broken: success on invalid input.
5985 continue
5986 else
5987   # Passes both tests.
5988 ac_preproc_ok=:
5989 break
5990 fi
5991 rm -f conftest.err conftest.i conftest.$ac_ext
5992
5993 done
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.i conftest.err conftest.$ac_ext
5996 if $ac_preproc_ok; then :
5997   break
5998 fi
5999
6000     done
6001     ac_cv_prog_CXXCPP=$CXXCPP
6002
6003 fi
6004   CXXCPP=$ac_cv_prog_CXXCPP
6005 else
6006   ac_cv_prog_CXXCPP=$CXXCPP
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6009 $as_echo "$CXXCPP" >&6; }
6010 ac_preproc_ok=false
6011 for ac_cxx_preproc_warn_flag in '' yes
6012 do
6013   # Use a header file that comes with gcc, so configuring glibc
6014   # with a fresh cross-compiler works.
6015   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016   # <limits.h> exists even on freestanding compilers.
6017   # On the NeXT, cc -E runs the code through the compiler's parser,
6018   # not just through cpp. "Syntax error" is here to catch this case.
6019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h.  */
6021 #ifdef __STDC__
6022 # include <limits.h>
6023 #else
6024 # include <assert.h>
6025 #endif
6026                      Syntax error
6027 _ACEOF
6028 if ac_fn_cxx_try_cpp "$LINENO"; then :
6029
6030 else
6031   # Broken: fails on valid input.
6032 continue
6033 fi
6034 rm -f conftest.err conftest.i conftest.$ac_ext
6035
6036   # OK, works on sane cases.  Now check whether nonexistent headers
6037   # can be detected and how.
6038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h.  */
6040 #include <ac_nonexistent.h>
6041 _ACEOF
6042 if ac_fn_cxx_try_cpp "$LINENO"; then :
6043   # Broken: success on invalid input.
6044 continue
6045 else
6046   # Passes both tests.
6047 ac_preproc_ok=:
6048 break
6049 fi
6050 rm -f conftest.err conftest.i conftest.$ac_ext
6051
6052 done
6053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6054 rm -f conftest.i conftest.err conftest.$ac_ext
6055 if $ac_preproc_ok; then :
6056
6057 else
6058   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6060 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6061 See \`config.log' for more details" "$LINENO" 5; }
6062 fi
6063
6064 ac_ext=cpp
6065 ac_cpp='$CXXCPP $CPPFLAGS'
6066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6069
6070 fi
6071
6072
6073 ac_ext=f
6074 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6075 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6077 if test -n "$ac_tool_prefix"; then
6078   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
6079   do
6080     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if ${ac_cv_prog_F77+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   if test -n "$F77"; then
6088   ac_cv_prog_F77="$F77" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095     for ac_exec_ext in '' $ac_executable_extensions; do
6096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102   done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 F77=$ac_cv_prog_F77
6108 if test -n "$F77"; then
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6110 $as_echo "$F77" >&6; }
6111 else
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116
6117     test -n "$F77" && break
6118   done
6119 fi
6120 if test -z "$F77"; then
6121   ac_ct_F77=$F77
6122   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
6123 do
6124   # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   if test -n "$ac_ct_F77"; then
6132   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139     for ac_exec_ext in '' $ac_executable_extensions; do
6140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141     ac_cv_prog_ac_ct_F77="$ac_prog"
6142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146   done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6152 if test -n "$ac_ct_F77"; then
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6154 $as_echo "$ac_ct_F77" >&6; }
6155 else
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161   test -n "$ac_ct_F77" && break
6162 done
6163
6164   if test "x$ac_ct_F77" = x; then
6165     F77=""
6166   else
6167     case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173     F77=$ac_ct_F77
6174   fi
6175 fi
6176
6177
6178 # Provide some information about the compiler.
6179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6180 set X $ac_compile
6181 ac_compiler=$2
6182 for ac_option in --version -v -V -qversion; do
6183   { { ac_try="$ac_compiler $ac_option >&5"
6184 case "(($ac_try" in
6185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186   *) ac_try_echo=$ac_try;;
6187 esac
6188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6189 $as_echo "$ac_try_echo"; } >&5
6190   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6191   ac_status=$?
6192   if test -s conftest.err; then
6193     sed '10a\
6194 ... rest of stderr output deleted ...
6195          10q' conftest.err >conftest.er1
6196     cat conftest.er1 >&5
6197   fi
6198   rm -f conftest.er1 conftest.err
6199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200   test $ac_status = 0; }
6201 done
6202 rm -f a.out
6203
6204 # If we don't use `.F' as extension, the preprocessor is not run on the
6205 # input file.  (Note that this only needs to work for GNU compilers.)
6206 ac_save_ext=$ac_ext
6207 ac_ext=F
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6209 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6210 if ${ac_cv_f77_compiler_gnu+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   cat > conftest.$ac_ext <<_ACEOF
6214       program main
6215 #ifndef __GNUC__
6216        choke me
6217 #endif
6218
6219       end
6220 _ACEOF
6221 if ac_fn_f77_try_compile "$LINENO"; then :
6222   ac_compiler_gnu=yes
6223 else
6224   ac_compiler_gnu=no
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6228
6229 fi
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6231 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6232 ac_ext=$ac_save_ext
6233 ac_test_FFLAGS=${FFLAGS+set}
6234 ac_save_FFLAGS=$FFLAGS
6235 FFLAGS=
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6237 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6238 if ${ac_cv_prog_f77_g+:} false; then :
6239   $as_echo_n "(cached) " >&6
6240 else
6241   FFLAGS=-g
6242 cat > conftest.$ac_ext <<_ACEOF
6243       program main
6244
6245       end
6246 _ACEOF
6247 if ac_fn_f77_try_compile "$LINENO"; then :
6248   ac_cv_prog_f77_g=yes
6249 else
6250   ac_cv_prog_f77_g=no
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6256 $as_echo "$ac_cv_prog_f77_g" >&6; }
6257 if test "$ac_test_FFLAGS" = set; then
6258   FFLAGS=$ac_save_FFLAGS
6259 elif test $ac_cv_prog_f77_g = yes; then
6260   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6261     FFLAGS="-g -O2"
6262   else
6263     FFLAGS="-g"
6264   fi
6265 else
6266   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6267     FFLAGS="-O2"
6268   else
6269     FFLAGS=
6270   fi
6271 fi
6272
6273 if test $ac_compiler_gnu = yes; then
6274   G77=yes
6275 else
6276   G77=
6277 fi
6278 ac_ext=c
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283
6284
6285
6286 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6287 # find the maximum length of command line arguments
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6289 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6290 if ${lt_cv_sys_max_cmd_len+:} false; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293     i=0
6294   teststring="ABCD"
6295
6296   case $build_os in
6297   msdosdjgpp*)
6298     # On DJGPP, this test can blow up pretty badly due to problems in libc
6299     # (any single argument exceeding 2000 bytes causes a buffer overrun
6300     # during glob expansion).  Even if it were fixed, the result of this
6301     # check would be larger than it should be.
6302     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6303     ;;
6304
6305   gnu*)
6306     # Under GNU Hurd, this test is not required because there is
6307     # no limit to the length of command line arguments.
6308     # Libtool will interpret -1 as no limit whatsoever
6309     lt_cv_sys_max_cmd_len=-1;
6310     ;;
6311
6312   cygwin* | mingw*)
6313     # On Win9x/ME, this test blows up -- it succeeds, but takes
6314     # about 5 minutes as the teststring grows exponentially.
6315     # Worse, since 9x/ME are not pre-emptively multitasking,
6316     # you end up with a "frozen" computer, even though with patience
6317     # the test eventually succeeds (with a max line length of 256k).
6318     # Instead, let's just punt: use the minimum linelength reported by
6319     # all of the supported platforms: 8192 (on NT/2K/XP).
6320     lt_cv_sys_max_cmd_len=8192;
6321     ;;
6322
6323   amigaos*)
6324     # On AmigaOS with pdksh, this test takes hours, literally.
6325     # So we just punt and use a minimum line length of 8192.
6326     lt_cv_sys_max_cmd_len=8192;
6327     ;;
6328
6329   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330     # This has been around since 386BSD, at least.  Likely further.
6331     if test -x /sbin/sysctl; then
6332       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333     elif test -x /usr/sbin/sysctl; then
6334       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335     else
6336       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6337     fi
6338     # And add a safety zone
6339     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6341     ;;
6342
6343   interix*)
6344     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345     lt_cv_sys_max_cmd_len=196608
6346     ;;
6347
6348   osf*)
6349     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351     # nice to cause kernel panics so lets avoid the loop below.
6352     # First set a reasonable default.
6353     lt_cv_sys_max_cmd_len=16384
6354     #
6355     if test -x /sbin/sysconfig; then
6356       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6358       esac
6359     fi
6360     ;;
6361   sco3.2v5*)
6362     lt_cv_sys_max_cmd_len=102400
6363     ;;
6364   sysv5* | sco5v6* | sysv4.2uw2*)
6365     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366     if test -n "$kargmax"; then
6367       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6368     else
6369       lt_cv_sys_max_cmd_len=32768
6370     fi
6371     ;;
6372   *)
6373     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374     if test -n "$lt_cv_sys_max_cmd_len"; then
6375       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377     else
6378       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6379       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6380                = "XX$teststring") >/dev/null 2>&1 &&
6381               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6382               lt_cv_sys_max_cmd_len=$new_result &&
6383               test $i != 17 # 1/2 MB should be enough
6384       do
6385         i=`expr $i + 1`
6386         teststring=$teststring$teststring
6387       done
6388       teststring=
6389       # Add a significant safety factor because C++ compilers can tack on massive
6390       # amounts of additional arguments before passing them to the linker.
6391       # It appears as though 1/2 is a usable value.
6392       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6393     fi
6394     ;;
6395   esac
6396
6397 fi
6398
6399 if test -n $lt_cv_sys_max_cmd_len ; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6401 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6404 $as_echo "none" >&6; }
6405 fi
6406
6407
6408
6409
6410
6411 # Check for command to grab the raw symbol name followed by C symbol from nm.
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6413 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6414 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417
6418 # These are sane defaults that work on at least a few old systems.
6419 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6420
6421 # Character class describing NM global symbol codes.
6422 symcode='[BCDEGRST]'
6423
6424 # Regexp to match symbols that can be accessed directly from C.
6425 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6426
6427 # Transform an extracted symbol line into a proper C declaration
6428 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6429
6430 # Transform an extracted symbol line into symbol name and symbol address
6431 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'"
6432
6433 # Define system-specific variables.
6434 case $host_os in
6435 aix*)
6436   symcode='[BCDT]'
6437   ;;
6438 cygwin* | mingw* | pw32*)
6439   symcode='[ABCDGISTW]'
6440   ;;
6441 hpux*) # Its linker distinguishes data from code symbols
6442   if test "$host_cpu" = ia64; then
6443     symcode='[ABCDEGRST]'
6444   fi
6445   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6446   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'"
6447   ;;
6448 linux* | k*bsd*-gnu)
6449   if test "$host_cpu" = ia64; then
6450     symcode='[ABCDGIRSTW]'
6451     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6452     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'"
6453   fi
6454   ;;
6455 irix* | nonstopux*)
6456   symcode='[BCDEGRST]'
6457   ;;
6458 osf*)
6459   symcode='[BCDEGQRST]'
6460   ;;
6461 solaris*)
6462   symcode='[BDRT]'
6463   ;;
6464 sco3.2v5*)
6465   symcode='[DT]'
6466   ;;
6467 sysv4.2uw2*)
6468   symcode='[DT]'
6469   ;;
6470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6471   symcode='[ABDT]'
6472   ;;
6473 sysv4)
6474   symcode='[DFNSTU]'
6475   ;;
6476 esac
6477
6478 # Handle CRLF in mingw tool chain
6479 opt_cr=
6480 case $build_os in
6481 mingw*)
6482   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6483   ;;
6484 esac
6485
6486 # If we're using GNU nm, then use its standard symbol codes.
6487 case `$NM -V 2>&1` in
6488 *GNU* | *'with BFD'*)
6489   symcode='[ABCDGIRSTW]' ;;
6490 esac
6491
6492 # Try without a prefix undercore, then with it.
6493 for ac_symprfx in "" "_"; do
6494
6495   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6496   symxfrm="\\1 $ac_symprfx\\2 \\2"
6497
6498   # Write the raw and C identifiers.
6499   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6500
6501   # Check to see that the pipe works correctly.
6502   pipe_works=no
6503
6504   rm -f conftest*
6505   cat > conftest.$ac_ext <<EOF
6506 #ifdef __cplusplus
6507 extern "C" {
6508 #endif
6509 char nm_test_var;
6510 void nm_test_func(){}
6511 #ifdef __cplusplus
6512 }
6513 #endif
6514 int main(){nm_test_var='a';nm_test_func();return(0);}
6515 EOF
6516
6517   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518   (eval $ac_compile) 2>&5
6519   ac_status=$?
6520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521   test $ac_status = 0; }; then
6522     # Now try to grab the symbols.
6523     nlist=conftest.nm
6524     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6525   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6526   ac_status=$?
6527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528   test $ac_status = 0; } && test -s "$nlist"; then
6529       # Try sorting and uniquifying the output.
6530       if sort "$nlist" | uniq > "$nlist"T; then
6531         mv -f "$nlist"T "$nlist"
6532       else
6533         rm -f "$nlist"T
6534       fi
6535
6536       # Make sure that we snagged all the symbols we need.
6537       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6538         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6539           cat <<EOF > conftest.$ac_ext
6540 #ifdef __cplusplus
6541 extern "C" {
6542 #endif
6543
6544 EOF
6545           # Now generate the symbol file.
6546           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6547
6548           cat <<EOF >> conftest.$ac_ext
6549 #if defined (__STDC__) && __STDC__
6550 # define lt_ptr_t void *
6551 #else
6552 # define lt_ptr_t char *
6553 # define const
6554 #endif
6555
6556 /* The mapping between symbol names and symbols. */
6557 const struct {
6558   const char *name;
6559   lt_ptr_t address;
6560 }
6561 lt_preloaded_symbols[] =
6562 {
6563 EOF
6564           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6565           cat <<\EOF >> conftest.$ac_ext
6566   {0, (lt_ptr_t) 0}
6567 };
6568
6569 #ifdef __cplusplus
6570 }
6571 #endif
6572 EOF
6573           # Now try linking the two files.
6574           mv conftest.$ac_objext conftstm.$ac_objext
6575           lt_save_LIBS="$LIBS"
6576           lt_save_CFLAGS="$CFLAGS"
6577           LIBS="conftstm.$ac_objext"
6578           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6579           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6580   (eval $ac_link) 2>&5
6581   ac_status=$?
6582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6584             pipe_works=yes
6585           fi
6586           LIBS="$lt_save_LIBS"
6587           CFLAGS="$lt_save_CFLAGS"
6588         else
6589           echo "cannot find nm_test_func in $nlist" >&5
6590         fi
6591       else
6592         echo "cannot find nm_test_var in $nlist" >&5
6593       fi
6594     else
6595       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6596     fi
6597   else
6598     echo "$progname: failed program was:" >&5
6599     cat conftest.$ac_ext >&5
6600   fi
6601   rm -rf conftest* conftst*
6602
6603   # Do not use the global_symbol_pipe unless it works.
6604   if test "$pipe_works" = yes; then
6605     break
6606   else
6607     lt_cv_sys_global_symbol_pipe=
6608   fi
6609 done
6610
6611 fi
6612
6613 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6614   lt_cv_sys_global_symbol_to_cdecl=
6615 fi
6616 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6618 $as_echo "failed" >&6; }
6619 else
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6621 $as_echo "ok" >&6; }
6622 fi
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6625 $as_echo_n "checking for objdir... " >&6; }
6626 if ${lt_cv_objdir+:} false; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   rm -f .libs 2>/dev/null
6630 mkdir .libs 2>/dev/null
6631 if test -d .libs; then
6632   lt_cv_objdir=.libs
6633 else
6634   # MS-DOS does not allow filenames that begin with a dot.
6635   lt_cv_objdir=_libs
6636 fi
6637 rmdir .libs 2>/dev/null
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6640 $as_echo "$lt_cv_objdir" >&6; }
6641 objdir=$lt_cv_objdir
6642
6643
6644
6645
6646
6647 case $host_os in
6648 aix3*)
6649   # AIX sometimes has problems with the GCC collect2 program.  For some
6650   # reason, if we set the COLLECT_NAMES environment variable, the problems
6651   # vanish in a puff of smoke.
6652   if test "X${COLLECT_NAMES+set}" != Xset; then
6653     COLLECT_NAMES=
6654     export COLLECT_NAMES
6655   fi
6656   ;;
6657 esac
6658
6659 # Sed substitution that helps us do robust quoting.  It backslashifies
6660 # metacharacters that are still active within double-quoted strings.
6661 Xsed='sed -e 1s/^X//'
6662 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6663
6664 # Same as above, but do not quote variable references.
6665 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6666
6667 # Sed substitution to delay expansion of an escaped shell variable in a
6668 # double_quote_subst'ed string.
6669 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6670
6671 # Sed substitution to avoid accidental globbing in evaled expressions
6672 no_glob_subst='s/\*/\\\*/g'
6673
6674 # Constants:
6675 rm="rm -f"
6676
6677 # Global variables:
6678 default_ofile=libtool
6679 can_build_shared=yes
6680
6681 # All known linkers require a `.a' archive for static linking (except MSVC,
6682 # which needs '.lib').
6683 libext=a
6684 ltmain="$ac_aux_dir/ltmain.sh"
6685 ofile="$default_ofile"
6686 with_gnu_ld="$lt_cv_prog_gnu_ld"
6687
6688 if test -n "$ac_tool_prefix"; then
6689   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}ar; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_AR+:} false; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -n "$AR"; then
6697   ac_cv_prog_AR="$AR" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704     for ac_exec_ext in '' $ac_executable_extensions; do
6705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706     ac_cv_prog_AR="${ac_tool_prefix}ar"
6707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711   done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 AR=$ac_cv_prog_AR
6717 if test -n "$AR"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6719 $as_echo "$AR" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725
6726 fi
6727 if test -z "$ac_cv_prog_AR"; then
6728   ac_ct_AR=$AR
6729   # Extract the first word of "ar", so it can be a program name with args.
6730 set dummy ar; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$ac_ct_AR"; then
6737   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746     ac_cv_prog_ac_ct_AR="ar"
6747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751   done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6757 if test -n "$ac_ct_AR"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6759 $as_echo "$ac_ct_AR" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765   if test "x$ac_ct_AR" = x; then
6766     AR="false"
6767   else
6768     case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774     AR=$ac_ct_AR
6775   fi
6776 else
6777   AR="$ac_cv_prog_AR"
6778 fi
6779
6780 if test -n "$ac_tool_prefix"; then
6781   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_RANLIB+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   if test -n "$RANLIB"; then
6789   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796     for ac_exec_ext in '' $ac_executable_extensions; do
6797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803   done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 RANLIB=$ac_cv_prog_RANLIB
6809 if test -n "$RANLIB"; then
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6811 $as_echo "$RANLIB" >&6; }
6812 else
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_RANLIB"; then
6820   ac_ct_RANLIB=$RANLIB
6821   # Extract the first word of "ranlib", so it can be a program name with args.
6822 set dummy ranlib; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$ac_ct_RANLIB"; then
6829   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838     ac_cv_prog_ac_ct_RANLIB="ranlib"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6849 if test -n "$ac_ct_RANLIB"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6851 $as_echo "$ac_ct_RANLIB" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857   if test "x$ac_ct_RANLIB" = x; then
6858     RANLIB=":"
6859   else
6860     case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     RANLIB=$ac_ct_RANLIB
6867   fi
6868 else
6869   RANLIB="$ac_cv_prog_RANLIB"
6870 fi
6871
6872 if test -n "$ac_tool_prefix"; then
6873   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}strip; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_STRIP+:} false; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   if test -n "$STRIP"; then
6881   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888     for ac_exec_ext in '' $ac_executable_extensions; do
6889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895   done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6903 $as_echo "$STRIP" >&6; }
6904 else
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_STRIP"; then
6912   ac_ct_STRIP=$STRIP
6913   # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$ac_ct_STRIP"; then
6921   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930     ac_cv_prog_ac_ct_STRIP="strip"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6941 if test -n "$ac_ct_STRIP"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6943 $as_echo "$ac_ct_STRIP" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949   if test "x$ac_ct_STRIP" = x; then
6950     STRIP=":"
6951   else
6952     case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958     STRIP=$ac_ct_STRIP
6959   fi
6960 else
6961   STRIP="$ac_cv_prog_STRIP"
6962 fi
6963
6964
6965 old_CC="$CC"
6966 old_CFLAGS="$CFLAGS"
6967
6968 # Set sane defaults for various variables
6969 test -z "$AR" && AR=ar
6970 test -z "$AR_FLAGS" && AR_FLAGS=cru
6971 test -z "$AS" && AS=as
6972 test -z "$CC" && CC=cc
6973 test -z "$LTCC" && LTCC=$CC
6974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6975 test -z "$DLLTOOL" && DLLTOOL=dlltool
6976 test -z "$LD" && LD=ld
6977 test -z "$LN_S" && LN_S="ln -s"
6978 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6979 test -z "$NM" && NM=nm
6980 test -z "$SED" && SED=sed
6981 test -z "$OBJDUMP" && OBJDUMP=objdump
6982 test -z "$RANLIB" && RANLIB=:
6983 test -z "$STRIP" && STRIP=:
6984 test -z "$ac_objext" && ac_objext=o
6985
6986 # Determine commands to create old-style static archives.
6987 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6988 old_postinstall_cmds='chmod 644 $oldlib'
6989 old_postuninstall_cmds=
6990
6991 if test -n "$RANLIB"; then
6992   case $host_os in
6993   openbsd*)
6994     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6995     ;;
6996   *)
6997     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6998     ;;
6999   esac
7000   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7001 fi
7002
7003 for cc_temp in $compiler""; do
7004   case $cc_temp in
7005     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7006     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7007     \-*) ;;
7008     *) break;;
7009   esac
7010 done
7011 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7012
7013
7014 # Only perform the check for file, if the check method requires it
7015 case $deplibs_check_method in
7016 file_magic*)
7017   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7019 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7020 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7021   $as_echo_n "(cached) " >&6
7022 else
7023   case $MAGIC_CMD in
7024 [\\/*] |  ?:[\\/]*)
7025   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7026   ;;
7027 *)
7028   lt_save_MAGIC_CMD="$MAGIC_CMD"
7029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7030   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7031   for ac_dir in $ac_dummy; do
7032     IFS="$lt_save_ifs"
7033     test -z "$ac_dir" && ac_dir=.
7034     if test -f $ac_dir/${ac_tool_prefix}file; then
7035       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7036       if test -n "$file_magic_test_file"; then
7037         case $deplibs_check_method in
7038         "file_magic "*)
7039           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7040           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7041           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7042             $EGREP "$file_magic_regex" > /dev/null; then
7043             :
7044           else
7045             cat <<EOF 1>&2
7046
7047 *** Warning: the command libtool uses to detect shared libraries,
7048 *** $file_magic_cmd, produces output that libtool cannot recognize.
7049 *** The result is that libtool may fail to recognize shared libraries
7050 *** as such.  This will affect the creation of libtool libraries that
7051 *** depend on shared libraries, but programs linked with such libtool
7052 *** libraries will work regardless of this problem.  Nevertheless, you
7053 *** may want to report the problem to your system manager and/or to
7054 *** bug-libtool@gnu.org
7055
7056 EOF
7057           fi ;;
7058         esac
7059       fi
7060       break
7061     fi
7062   done
7063   IFS="$lt_save_ifs"
7064   MAGIC_CMD="$lt_save_MAGIC_CMD"
7065   ;;
7066 esac
7067 fi
7068
7069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7070 if test -n "$MAGIC_CMD"; then
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7072 $as_echo "$MAGIC_CMD" >&6; }
7073 else
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078 if test -z "$lt_cv_path_MAGIC_CMD"; then
7079   if test -n "$ac_tool_prefix"; then
7080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7081 $as_echo_n "checking for file... " >&6; }
7082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085   case $MAGIC_CMD in
7086 [\\/*] |  ?:[\\/]*)
7087   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7088   ;;
7089 *)
7090   lt_save_MAGIC_CMD="$MAGIC_CMD"
7091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7092   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7093   for ac_dir in $ac_dummy; do
7094     IFS="$lt_save_ifs"
7095     test -z "$ac_dir" && ac_dir=.
7096     if test -f $ac_dir/file; then
7097       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7098       if test -n "$file_magic_test_file"; then
7099         case $deplibs_check_method in
7100         "file_magic "*)
7101           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7102           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7103           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7104             $EGREP "$file_magic_regex" > /dev/null; then
7105             :
7106           else
7107             cat <<EOF 1>&2
7108
7109 *** Warning: the command libtool uses to detect shared libraries,
7110 *** $file_magic_cmd, produces output that libtool cannot recognize.
7111 *** The result is that libtool may fail to recognize shared libraries
7112 *** as such.  This will affect the creation of libtool libraries that
7113 *** depend on shared libraries, but programs linked with such libtool
7114 *** libraries will work regardless of this problem.  Nevertheless, you
7115 *** may want to report the problem to your system manager and/or to
7116 *** bug-libtool@gnu.org
7117
7118 EOF
7119           fi ;;
7120         esac
7121       fi
7122       break
7123     fi
7124   done
7125   IFS="$lt_save_ifs"
7126   MAGIC_CMD="$lt_save_MAGIC_CMD"
7127   ;;
7128 esac
7129 fi
7130
7131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7132 if test -n "$MAGIC_CMD"; then
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7134 $as_echo "$MAGIC_CMD" >&6; }
7135 else
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139
7140   else
7141     MAGIC_CMD=:
7142   fi
7143 fi
7144
7145   fi
7146   ;;
7147 esac
7148
7149
7150   case $host_os in
7151     rhapsody* | darwin*)
7152     if test -n "$ac_tool_prefix"; then
7153   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7154 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   if test -n "$DSYMUTIL"; then
7161   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168     for ac_exec_ext in '' $ac_executable_extensions; do
7169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175   done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7181 if test -n "$DSYMUTIL"; then
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7183 $as_echo "$DSYMUTIL" >&6; }
7184 else
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189
7190 fi
7191 if test -z "$ac_cv_prog_DSYMUTIL"; then
7192   ac_ct_DSYMUTIL=$DSYMUTIL
7193   # Extract the first word of "dsymutil", so it can be a program name with args.
7194 set dummy dsymutil; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7198   $as_echo_n "(cached) " >&6
7199 else
7200   if test -n "$ac_ct_DSYMUTIL"; then
7201   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206   IFS=$as_save_IFS
7207   test -z "$as_dir" && as_dir=.
7208     for ac_exec_ext in '' $ac_executable_extensions; do
7209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212     break 2
7213   fi
7214 done
7215   done
7216 IFS=$as_save_IFS
7217
7218 fi
7219 fi
7220 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7221 if test -n "$ac_ct_DSYMUTIL"; then
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7223 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7224 else
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228
7229   if test "x$ac_ct_DSYMUTIL" = x; then
7230     DSYMUTIL=":"
7231   else
7232     case $cross_compiling:$ac_tool_warned in
7233 yes:)
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned=yes ;;
7237 esac
7238     DSYMUTIL=$ac_ct_DSYMUTIL
7239   fi
7240 else
7241   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7242 fi
7243
7244     if test -n "$ac_tool_prefix"; then
7245   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_NMEDIT+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   if test -n "$NMEDIT"; then
7253   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260     for ac_exec_ext in '' $ac_executable_extensions; do
7261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267   done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 NMEDIT=$ac_cv_prog_NMEDIT
7273 if test -n "$NMEDIT"; then
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7275 $as_echo "$NMEDIT" >&6; }
7276 else
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_NMEDIT"; then
7284   ac_ct_NMEDIT=$NMEDIT
7285   # Extract the first word of "nmedit", so it can be a program name with args.
7286 set dummy nmedit; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   if test -n "$ac_ct_NMEDIT"; then
7293   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300     for ac_exec_ext in '' $ac_executable_extensions; do
7301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307   done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7313 if test -n "$ac_ct_NMEDIT"; then
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7315 $as_echo "$ac_ct_NMEDIT" >&6; }
7316 else
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321   if test "x$ac_ct_NMEDIT" = x; then
7322     NMEDIT=":"
7323   else
7324     case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330     NMEDIT=$ac_ct_NMEDIT
7331   fi
7332 else
7333   NMEDIT="$ac_cv_prog_NMEDIT"
7334 fi
7335
7336
7337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7338 $as_echo_n "checking for -single_module linker flag... " >&6; }
7339 if ${lt_cv_apple_cc_single_mod+:} false; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   lt_cv_apple_cc_single_mod=no
7343       if test -z "${LT_MULTI_MODULE}"; then
7344    # By default we will add the -single_module flag. You can override
7345    # by either setting the environment variable LT_MULTI_MODULE
7346    # non-empty at configure time, or by adding -multi_module to the
7347    # link flags.
7348    echo "int foo(void){return 1;}" > conftest.c
7349    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7350      -dynamiclib ${wl}-single_module conftest.c
7351    if test -f libconftest.dylib; then
7352      lt_cv_apple_cc_single_mod=yes
7353      rm -rf libconftest.dylib*
7354    fi
7355    rm conftest.c
7356       fi
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7359 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7361 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7362 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   lt_cv_ld_exported_symbols_list=no
7366       save_LDFLAGS=$LDFLAGS
7367       echo "_main" > conftest.sym
7368       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7369       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h.  */
7371
7372 int
7373 main ()
7374 {
7375
7376   ;
7377   return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_link "$LINENO"; then :
7381   lt_cv_ld_exported_symbols_list=yes
7382 else
7383   lt_cv_ld_exported_symbols_list=no
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext \
7386     conftest$ac_exeext conftest.$ac_ext
7387    LDFLAGS="$save_LDFLAGS"
7388
7389 fi
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7391 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7392     case $host_os in
7393     rhapsody* | darwin1.[0123])
7394       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7395     darwin1.*)
7396      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7397     darwin*)
7398       # if running on 10.5 or later, the deployment target defaults
7399       # to the OS version, if on x86, and 10.4, the deployment
7400       # target defaults to 10.4. Don't you love it?
7401       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7402    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7403      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7404    10.[012]*)
7405      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7406    10.*)
7407      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7408       esac
7409     ;;
7410   esac
7411     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7412       _lt_dar_single_mod='$single_module'
7413     fi
7414     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7415       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7416     else
7417       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7418     fi
7419     if test "$DSYMUTIL" != ":"; then
7420       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7421     else
7422       _lt_dsymutil=
7423     fi
7424     ;;
7425   esac
7426
7427
7428 enable_dlopen=yes
7429 enable_win32_dll=no
7430
7431 # Check whether --enable-libtool-lock was given.
7432 if test "${enable_libtool_lock+set}" = set; then :
7433   enableval=$enable_libtool_lock;
7434 fi
7435
7436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7437
7438
7439 # Check whether --with-pic was given.
7440 if test "${with_pic+set}" = set; then :
7441   withval=$with_pic; pic_mode="$withval"
7442 else
7443   pic_mode=default
7444 fi
7445
7446 test -z "$pic_mode" && pic_mode=default
7447
7448 # Use C for the default configuration in the libtool script
7449 tagname=
7450 lt_save_CC="$CC"
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457
7458 # Source file extension for C test sources.
7459 ac_ext=c
7460
7461 # Object file extension for compiled C test sources.
7462 objext=o
7463 objext=$objext
7464
7465 # Code to be used in simple compile tests
7466 lt_simple_compile_test_code="int some_variable = 0;"
7467
7468 # Code to be used in simple link tests
7469 lt_simple_link_test_code='int main(){return(0);}'
7470
7471
7472 # If no C compiler was specified, use CC.
7473 LTCC=${LTCC-"$CC"}
7474
7475 # If no C compiler flags were specified, use CFLAGS.
7476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7477
7478 # Allow CC to be a program name with arguments.
7479 compiler=$CC
7480
7481
7482 # save warnings/boilerplate of simple test code
7483 ac_outfile=conftest.$ac_objext
7484 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7486 _lt_compiler_boilerplate=`cat conftest.err`
7487 $rm conftest*
7488
7489 ac_outfile=conftest.$ac_objext
7490 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7492 _lt_linker_boilerplate=`cat conftest.err`
7493 $rm -r conftest*
7494
7495
7496
7497 lt_prog_compiler_no_builtin_flag=
7498
7499 if test "$GCC" = yes; then
7500   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7501
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7504 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7505 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   lt_cv_prog_compiler_rtti_exceptions=no
7509   ac_outfile=conftest.$ac_objext
7510    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7511    lt_compiler_flag="-fno-rtti -fno-exceptions"
7512    # Insert the option either (1) after the last *FLAGS variable, or
7513    # (2) before a word containing "conftest.", or (3) at the end.
7514    # Note that $ac_compile itself does not contain backslashes and begins
7515    # with a dollar sign (not a hyphen), so the echo should work correctly.
7516    # The option is referenced via a variable to avoid confusing sed.
7517    lt_compile=`echo "$ac_compile" | $SED \
7518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7520    -e 's:$: $lt_compiler_flag:'`
7521    (eval echo "\"\$as_me:7521: $lt_compile\"" >&5)
7522    (eval "$lt_compile" 2>conftest.err)
7523    ac_status=$?
7524    cat conftest.err >&5
7525    echo "$as_me:7525: \$? = $ac_status" >&5
7526    if (exit $ac_status) && test -s "$ac_outfile"; then
7527      # The compiler can only warn and ignore the option if not recognized
7528      # So say no if there are warnings other than the usual output.
7529      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7530      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7531      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7532        lt_cv_prog_compiler_rtti_exceptions=yes
7533      fi
7534    fi
7535    $rm conftest*
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7539 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7540
7541 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7542     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7543 else
7544     :
7545 fi
7546
7547 fi
7548
7549 lt_prog_compiler_wl=
7550 lt_prog_compiler_pic=
7551 lt_prog_compiler_static=
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7554 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7555
7556   if test "$GCC" = yes; then
7557     lt_prog_compiler_wl='-Wl,'
7558     lt_prog_compiler_static='-static'
7559
7560     case $host_os in
7561       aix*)
7562       # All AIX code is PIC.
7563       if test "$host_cpu" = ia64; then
7564         # AIX 5 now supports IA64 processor
7565         lt_prog_compiler_static='-Bstatic'
7566       fi
7567       ;;
7568
7569     amigaos*)
7570       # FIXME: we need at least 68020 code to build shared libraries, but
7571       # adding the `-m68020' flag to GCC prevents building anything better,
7572       # like `-m68040'.
7573       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7574       ;;
7575
7576     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7577       # PIC is the default for these OSes.
7578       ;;
7579
7580     mingw* | cygwin* | pw32* | os2*)
7581       # This hack is so that the source file can tell whether it is being
7582       # built for inclusion in a dll (and should export symbols for example).
7583       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7584       # (--disable-auto-import) libraries
7585       lt_prog_compiler_pic='-DDLL_EXPORT'
7586       ;;
7587
7588     darwin* | rhapsody*)
7589       # PIC is the default on this platform
7590       # Common symbols not allowed in MH_DYLIB files
7591       lt_prog_compiler_pic='-fno-common'
7592       ;;
7593
7594     interix[3-9]*)
7595       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7596       # Instead, we relocate shared libraries at runtime.
7597       ;;
7598
7599     msdosdjgpp*)
7600       # Just because we use GCC doesn't mean we suddenly get shared libraries
7601       # on systems that don't support them.
7602       lt_prog_compiler_can_build_shared=no
7603       enable_shared=no
7604       ;;
7605
7606     sysv4*MP*)
7607       if test -d /usr/nec; then
7608         lt_prog_compiler_pic=-Kconform_pic
7609       fi
7610       ;;
7611
7612     hpux*)
7613       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7614       # not for PA HP-UX.
7615       case $host_cpu in
7616       hppa*64*|ia64*)
7617         # +Z the default
7618         ;;
7619       *)
7620         lt_prog_compiler_pic='-fPIC'
7621         ;;
7622       esac
7623       ;;
7624
7625     *)
7626       lt_prog_compiler_pic='-fPIC'
7627       ;;
7628     esac
7629   else
7630     # PORTME Check for flag to pass linker flags through the system compiler.
7631     case $host_os in
7632     aix*)
7633       lt_prog_compiler_wl='-Wl,'
7634       if test "$host_cpu" = ia64; then
7635         # AIX 5 now supports IA64 processor
7636         lt_prog_compiler_static='-Bstatic'
7637       else
7638         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7639       fi
7640       ;;
7641       darwin*)
7642         # PIC is the default on this platform
7643         # Common symbols not allowed in MH_DYLIB files
7644        case $cc_basename in
7645          xlc*)
7646          lt_prog_compiler_pic='-qnocommon'
7647          lt_prog_compiler_wl='-Wl,'
7648          ;;
7649        esac
7650        ;;
7651
7652     mingw* | cygwin* | pw32* | os2*)
7653       # This hack is so that the source file can tell whether it is being
7654       # built for inclusion in a dll (and should export symbols for example).
7655       lt_prog_compiler_pic='-DDLL_EXPORT'
7656       ;;
7657
7658     hpux9* | hpux10* | hpux11*)
7659       lt_prog_compiler_wl='-Wl,'
7660       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7661       # not for PA HP-UX.
7662       case $host_cpu in
7663       hppa*64*|ia64*)
7664         # +Z the default
7665         ;;
7666       *)
7667         lt_prog_compiler_pic='+Z'
7668         ;;
7669       esac
7670       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7671       lt_prog_compiler_static='${wl}-a ${wl}archive'
7672       ;;
7673
7674     irix5* | irix6* | nonstopux*)
7675       lt_prog_compiler_wl='-Wl,'
7676       # PIC (with -KPIC) is the default.
7677       lt_prog_compiler_static='-non_shared'
7678       ;;
7679
7680     newsos6)
7681       lt_prog_compiler_pic='-KPIC'
7682       lt_prog_compiler_static='-Bstatic'
7683       ;;
7684
7685     linux* | k*bsd*-gnu)
7686       case $cc_basename in
7687       icc* | ecc*)
7688         lt_prog_compiler_wl='-Wl,'
7689         lt_prog_compiler_pic='-KPIC'
7690         lt_prog_compiler_static='-static'
7691         ;;
7692       pgcc* | pgf77* | pgf90* | pgf95*)
7693         # Portland Group compilers (*not* the Pentium gcc compiler,
7694         # which looks to be a dead project)
7695         lt_prog_compiler_wl='-Wl,'
7696         lt_prog_compiler_pic='-fpic'
7697         lt_prog_compiler_static='-Bstatic'
7698         ;;
7699       ccc*)
7700         lt_prog_compiler_wl='-Wl,'
7701         # All Alpha code is PIC.
7702         lt_prog_compiler_static='-non_shared'
7703         ;;
7704       *)
7705         case `$CC -V 2>&1 | sed 5q` in
7706         *Sun\ C*)
7707           # Sun C 5.9
7708           lt_prog_compiler_pic='-KPIC'
7709           lt_prog_compiler_static='-Bstatic'
7710           lt_prog_compiler_wl='-Wl,'
7711           ;;
7712         *Sun\ F*)
7713           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7714           lt_prog_compiler_pic='-KPIC'
7715           lt_prog_compiler_static='-Bstatic'
7716           lt_prog_compiler_wl=''
7717           ;;
7718         esac
7719         ;;
7720       esac
7721       ;;
7722
7723     osf3* | osf4* | osf5*)
7724       lt_prog_compiler_wl='-Wl,'
7725       # All OSF/1 code is PIC.
7726       lt_prog_compiler_static='-non_shared'
7727       ;;
7728
7729     rdos*)
7730       lt_prog_compiler_static='-non_shared'
7731       ;;
7732
7733     solaris*)
7734       lt_prog_compiler_pic='-KPIC'
7735       lt_prog_compiler_static='-Bstatic'
7736       case $cc_basename in
7737       f77* | f90* | f95*)
7738         lt_prog_compiler_wl='-Qoption ld ';;
7739       *)
7740         lt_prog_compiler_wl='-Wl,';;
7741       esac
7742       ;;
7743
7744     sunos4*)
7745       lt_prog_compiler_wl='-Qoption ld '
7746       lt_prog_compiler_pic='-PIC'
7747       lt_prog_compiler_static='-Bstatic'
7748       ;;
7749
7750     sysv4 | sysv4.2uw2* | sysv4.3*)
7751       lt_prog_compiler_wl='-Wl,'
7752       lt_prog_compiler_pic='-KPIC'
7753       lt_prog_compiler_static='-Bstatic'
7754       ;;
7755
7756     sysv4*MP*)
7757       if test -d /usr/nec ;then
7758         lt_prog_compiler_pic='-Kconform_pic'
7759         lt_prog_compiler_static='-Bstatic'
7760       fi
7761       ;;
7762
7763     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7764       lt_prog_compiler_wl='-Wl,'
7765       lt_prog_compiler_pic='-KPIC'
7766       lt_prog_compiler_static='-Bstatic'
7767       ;;
7768
7769     unicos*)
7770       lt_prog_compiler_wl='-Wl,'
7771       lt_prog_compiler_can_build_shared=no
7772       ;;
7773
7774     uts4*)
7775       lt_prog_compiler_pic='-pic'
7776       lt_prog_compiler_static='-Bstatic'
7777       ;;
7778
7779     *)
7780       lt_prog_compiler_can_build_shared=no
7781       ;;
7782     esac
7783   fi
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7786 $as_echo "$lt_prog_compiler_pic" >&6; }
7787
7788 #
7789 # Check to make sure the PIC flag actually works.
7790 #
7791 if test -n "$lt_prog_compiler_pic"; then
7792
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7794 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7795 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   lt_cv_prog_compiler_pic_works=no
7799   ac_outfile=conftest.$ac_objext
7800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7801    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7802    # Insert the option either (1) after the last *FLAGS variable, or
7803    # (2) before a word containing "conftest.", or (3) at the end.
7804    # Note that $ac_compile itself does not contain backslashes and begins
7805    # with a dollar sign (not a hyphen), so the echo should work correctly.
7806    # The option is referenced via a variable to avoid confusing sed.
7807    lt_compile=`echo "$ac_compile" | $SED \
7808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7810    -e 's:$: $lt_compiler_flag:'`
7811    (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7812    (eval "$lt_compile" 2>conftest.err)
7813    ac_status=$?
7814    cat conftest.err >&5
7815    echo "$as_me:7815: \$? = $ac_status" >&5
7816    if (exit $ac_status) && test -s "$ac_outfile"; then
7817      # The compiler can only warn and ignore the option if not recognized
7818      # So say no if there are warnings other than the usual output.
7819      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7820      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7821      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7822        lt_cv_prog_compiler_pic_works=yes
7823      fi
7824    fi
7825    $rm conftest*
7826
7827 fi
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7829 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7830
7831 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7832     case $lt_prog_compiler_pic in
7833      "" | " "*) ;;
7834      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7835      esac
7836 else
7837     lt_prog_compiler_pic=
7838      lt_prog_compiler_can_build_shared=no
7839 fi
7840
7841 fi
7842 case $host_os in
7843   # For platforms which do not support PIC, -DPIC is meaningless:
7844   *djgpp*)
7845     lt_prog_compiler_pic=
7846     ;;
7847   *)
7848     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7849     ;;
7850 esac
7851
7852 #
7853 # Check to make sure the static flag actually works.
7854 #
7855 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7857 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7858 if ${lt_cv_prog_compiler_static_works+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   lt_cv_prog_compiler_static_works=no
7862    save_LDFLAGS="$LDFLAGS"
7863    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7864    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7865    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7866      # The linker can only warn and ignore the option if not recognized
7867      # So say no if there are warnings
7868      if test -s conftest.err; then
7869        # Append any errors to the config.log.
7870        cat conftest.err 1>&5
7871        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7872        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7873        if diff conftest.exp conftest.er2 >/dev/null; then
7874          lt_cv_prog_compiler_static_works=yes
7875        fi
7876      else
7877        lt_cv_prog_compiler_static_works=yes
7878      fi
7879    fi
7880    $rm -r conftest*
7881    LDFLAGS="$save_LDFLAGS"
7882
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7885 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7886
7887 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7888     :
7889 else
7890     lt_prog_compiler_static=
7891 fi
7892
7893
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7896 if ${lt_cv_prog_compiler_c_o+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   lt_cv_prog_compiler_c_o=no
7900    $rm -r conftest 2>/dev/null
7901    mkdir conftest
7902    cd conftest
7903    mkdir out
7904    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7905
7906    lt_compiler_flag="-o out/conftest2.$ac_objext"
7907    # Insert the option either (1) after the last *FLAGS variable, or
7908    # (2) before a word containing "conftest.", or (3) at the end.
7909    # Note that $ac_compile itself does not contain backslashes and begins
7910    # with a dollar sign (not a hyphen), so the echo should work correctly.
7911    lt_compile=`echo "$ac_compile" | $SED \
7912    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914    -e 's:$: $lt_compiler_flag:'`
7915    (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916    (eval "$lt_compile" 2>out/conftest.err)
7917    ac_status=$?
7918    cat out/conftest.err >&5
7919    echo "$as_me:7919: \$? = $ac_status" >&5
7920    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7921    then
7922      # The compiler can only warn and ignore the option if not recognized
7923      # So say no if there are warnings
7924      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7925      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7926      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7927        lt_cv_prog_compiler_c_o=yes
7928      fi
7929    fi
7930    chmod u+w . 2>&5
7931    $rm conftest*
7932    # SGI C++ compiler will create directory out/ii_files/ for
7933    # template instantiation
7934    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7935    $rm out/* && rmdir out
7936    cd ..
7937    rmdir conftest
7938    $rm conftest*
7939
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7943
7944
7945 hard_links="nottested"
7946 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7947   # do not overwrite the value of need_locks provided by the user
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7949 $as_echo_n "checking if we can lock with hard links... " >&6; }
7950   hard_links=yes
7951   $rm conftest*
7952   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7953   touch conftest.a
7954   ln conftest.a conftest.b 2>&5 || hard_links=no
7955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7957 $as_echo "$hard_links" >&6; }
7958   if test "$hard_links" = no; then
7959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7960 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7961     need_locks=warn
7962   fi
7963 else
7964   need_locks=no
7965 fi
7966
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7969
7970   runpath_var=
7971   allow_undefined_flag=
7972   enable_shared_with_static_runtimes=no
7973   archive_cmds=
7974   archive_expsym_cmds=
7975   old_archive_From_new_cmds=
7976   old_archive_from_expsyms_cmds=
7977   export_dynamic_flag_spec=
7978   whole_archive_flag_spec=
7979   thread_safe_flag_spec=
7980   hardcode_libdir_flag_spec=
7981   hardcode_libdir_flag_spec_ld=
7982   hardcode_libdir_separator=
7983   hardcode_direct=no
7984   hardcode_minus_L=no
7985   hardcode_shlibpath_var=unsupported
7986   link_all_deplibs=unknown
7987   hardcode_automatic=no
7988   module_cmds=
7989   module_expsym_cmds=
7990   always_export_symbols=no
7991   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7992   # include_expsyms should be a list of space-separated symbols to be *always*
7993   # included in the symbol list
7994   include_expsyms=
7995   # exclude_expsyms can be an extended regexp of symbols to exclude
7996   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7997   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7998   # as well as any symbol that contains `d'.
7999   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8000   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8001   # platforms (ab)use it in PIC code, but their linkers get confused if
8002   # the symbol is explicitly referenced.  Since portable code cannot
8003   # rely on this symbol name, it's probably fine to never include it in
8004   # preloaded symbol tables.
8005   # Exclude shared library initialization/finalization symbols.
8006   extract_expsyms_cmds=
8007   # Just being paranoid about ensuring that cc_basename is set.
8008   for cc_temp in $compiler""; do
8009   case $cc_temp in
8010     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8011     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8012     \-*) ;;
8013     *) break;;
8014   esac
8015 done
8016 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8017
8018   case $host_os in
8019   cygwin* | mingw* | pw32*)
8020     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8021     # When not using gcc, we currently assume that we are using
8022     # Microsoft Visual C++.
8023     if test "$GCC" != yes; then
8024       with_gnu_ld=no
8025     fi
8026     ;;
8027   interix*)
8028     # we just hope/assume this is gcc and not c89 (= MSVC++)
8029     with_gnu_ld=yes
8030     ;;
8031   openbsd*)
8032     with_gnu_ld=no
8033     ;;
8034   esac
8035
8036   ld_shlibs=yes
8037   if test "$with_gnu_ld" = yes; then
8038     # If archive_cmds runs LD, not CC, wlarc should be empty
8039     wlarc='${wl}'
8040
8041     # Set some defaults for GNU ld with shared library support. These
8042     # are reset later if shared libraries are not supported. Putting them
8043     # here allows them to be overridden if necessary.
8044     runpath_var=LD_RUN_PATH
8045     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8046     export_dynamic_flag_spec='${wl}--export-dynamic'
8047     # ancient GNU ld didn't support --whole-archive et. al.
8048     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8049         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8050       else
8051         whole_archive_flag_spec=
8052     fi
8053     supports_anon_versioning=no
8054     case `$LD -v 2>/dev/null` in
8055       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8056       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8057       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8058       *\ 2.11.*) ;; # other 2.11 versions
8059       *) supports_anon_versioning=yes ;;
8060     esac
8061
8062     # See if GNU ld supports shared libraries.
8063     case $host_os in
8064     aix[3-9]*)
8065       # On AIX/PPC, the GNU linker is very broken
8066       if test "$host_cpu" != ia64; then
8067         ld_shlibs=no
8068         cat <<EOF 1>&2
8069
8070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8071 *** to be unable to reliably create shared libraries on AIX.
8072 *** Therefore, libtool is disabling shared libraries support.  If you
8073 *** really care for shared libraries, you may want to modify your PATH
8074 *** so that a non-GNU linker is found, and then restart.
8075
8076 EOF
8077       fi
8078       ;;
8079
8080     amigaos*)
8081       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)'
8082       hardcode_libdir_flag_spec='-L$libdir'
8083       hardcode_minus_L=yes
8084
8085       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8086       # that the semantics of dynamic libraries on AmigaOS, at least up
8087       # to version 4, is to share data among multiple programs linked
8088       # with the same dynamic library.  Since this doesn't match the
8089       # behavior of shared libraries on other platforms, we can't use
8090       # them.
8091       ld_shlibs=no
8092       ;;
8093
8094     beos*)
8095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8096         allow_undefined_flag=unsupported
8097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8098         # support --undefined.  This deserves some investigation.  FIXME
8099         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8100       else
8101         ld_shlibs=no
8102       fi
8103       ;;
8104
8105     cygwin* | mingw* | pw32*)
8106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8107       # as there is no search path for DLLs.
8108       hardcode_libdir_flag_spec='-L$libdir'
8109       allow_undefined_flag=unsupported
8110       always_export_symbols=no
8111       enable_shared_with_static_runtimes=yes
8112       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8113
8114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8115         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8116         # If the export-symbols file already is a .def file (1st line
8117         # is EXPORTS), use it as is; otherwise, prepend...
8118         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8119           cp $export_symbols $output_objdir/$soname.def;
8120         else
8121           echo EXPORTS > $output_objdir/$soname.def;
8122           cat $export_symbols >> $output_objdir/$soname.def;
8123         fi~
8124         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8125       else
8126         ld_shlibs=no
8127       fi
8128       ;;
8129
8130     interix[3-9]*)
8131       hardcode_direct=no
8132       hardcode_shlibpath_var=no
8133       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8134       export_dynamic_flag_spec='${wl}-E'
8135       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8136       # Instead, shared libraries are loaded at an image base (0x10000000 by
8137       # default) and relocated if they conflict, which is a slow very memory
8138       # consuming and fragmenting process.  To avoid this, we pick a random,
8139       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8140       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8141       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8142       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'
8143       ;;
8144
8145     gnu* | linux* | k*bsd*-gnu)
8146       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8147         tmp_addflag=
8148         case $cc_basename,$host_cpu in
8149         pgcc*)                          # Portland Group C compiler
8150           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'
8151           tmp_addflag=' $pic_flag'
8152           ;;
8153         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8154           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'
8155           tmp_addflag=' $pic_flag -Mnomain' ;;
8156         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8157           tmp_addflag=' -i_dynamic' ;;
8158         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8159           tmp_addflag=' -i_dynamic -nofor_main' ;;
8160         ifc* | ifort*)                  # Intel Fortran compiler
8161           tmp_addflag=' -nofor_main' ;;
8162         esac
8163         case `$CC -V 2>&1 | sed 5q` in
8164         *Sun\ C*)                       # Sun C 5.9
8165           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'
8166           tmp_sharedflag='-G' ;;
8167         *Sun\ F*)                       # Sun Fortran 8.3
8168           tmp_sharedflag='-G' ;;
8169         *)
8170           tmp_sharedflag='-shared' ;;
8171         esac
8172         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173
8174         if test $supports_anon_versioning = yes; then
8175           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8176   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8177   $echo "local: *; };" >> $output_objdir/$libname.ver~
8178           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8179         fi
8180         link_all_deplibs=no
8181       else
8182         ld_shlibs=no
8183       fi
8184       ;;
8185
8186     netbsd* | netbsdelf*-gnu)
8187       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8188         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8189         wlarc=
8190       else
8191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8193       fi
8194       ;;
8195
8196     solaris*)
8197       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8198         ld_shlibs=no
8199         cat <<EOF 1>&2
8200
8201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8202 *** create shared libraries on Solaris systems.  Therefore, libtool
8203 *** is disabling shared libraries support.  We urge you to upgrade GNU
8204 *** binutils to release 2.9.1 or newer.  Another option is to modify
8205 *** your PATH or compiler configuration so that the native linker is
8206 *** used, and then restart.
8207
8208 EOF
8209       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8211         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8212       else
8213         ld_shlibs=no
8214       fi
8215       ;;
8216
8217     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8218       case `$LD -v 2>&1` in
8219         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8220         ld_shlibs=no
8221         cat <<_LT_EOF 1>&2
8222
8223 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8224 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8225 *** is disabling shared libraries support.  We urge you to upgrade GNU
8226 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8227 *** your PATH or compiler configuration so that the native linker is
8228 *** used, and then restart.
8229
8230 _LT_EOF
8231         ;;
8232         *)
8233           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8235             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8236             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8237           else
8238             ld_shlibs=no
8239           fi
8240         ;;
8241       esac
8242       ;;
8243
8244     sunos4*)
8245       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246       wlarc=
8247       hardcode_direct=yes
8248       hardcode_shlibpath_var=no
8249       ;;
8250
8251     *)
8252       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8255       else
8256         ld_shlibs=no
8257       fi
8258       ;;
8259     esac
8260
8261     if test "$ld_shlibs" = no; then
8262       runpath_var=
8263       hardcode_libdir_flag_spec=
8264       export_dynamic_flag_spec=
8265       whole_archive_flag_spec=
8266     fi
8267   else
8268     # PORTME fill in a description of your system's linker (not GNU ld)
8269     case $host_os in
8270     aix3*)
8271       allow_undefined_flag=unsupported
8272       always_export_symbols=yes
8273       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'
8274       # Note: this linker hardcodes the directories in LIBPATH if there
8275       # are no directories specified by -L.
8276       hardcode_minus_L=yes
8277       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8278         # Neither direct hardcoding nor static linking is supported with a
8279         # broken collect2.
8280         hardcode_direct=unsupported
8281       fi
8282       ;;
8283
8284     aix[4-9]*)
8285       if test "$host_cpu" = ia64; then
8286         # On IA64, the linker does run time linking by default, so we don't
8287         # have to do anything special.
8288         aix_use_runtimelinking=no
8289         exp_sym_flag='-Bexport'
8290         no_entry_flag=""
8291       else
8292         # If we're using GNU nm, then we don't want the "-C" option.
8293         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8294         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8295           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'
8296         else
8297           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'
8298         fi
8299         aix_use_runtimelinking=no
8300
8301         # Test if we are trying to use run time linking or normal
8302         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8303         # need to do runtime linking.
8304         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8305           for ld_flag in $LDFLAGS; do
8306           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8307             aix_use_runtimelinking=yes
8308             break
8309           fi
8310           done
8311           ;;
8312         esac
8313
8314         exp_sym_flag='-bexport'
8315         no_entry_flag='-bnoentry'
8316       fi
8317
8318       # When large executables or shared objects are built, AIX ld can
8319       # have problems creating the table of contents.  If linking a library
8320       # or program results in "error TOC overflow" add -mminimal-toc to
8321       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8322       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8323
8324       archive_cmds=''
8325       hardcode_direct=yes
8326       hardcode_libdir_separator=':'
8327       link_all_deplibs=yes
8328
8329       if test "$GCC" = yes; then
8330         case $host_os in aix4.[012]|aix4.[012].*)
8331         # We only want to do this on AIX 4.2 and lower, the check
8332         # below for broken collect2 doesn't work under 4.3+
8333           collect2name=`${CC} -print-prog-name=collect2`
8334           if test -f "$collect2name" && \
8335            strings "$collect2name" | grep resolve_lib_name >/dev/null
8336           then
8337           # We have reworked collect2
8338           :
8339           else
8340           # We have old collect2
8341           hardcode_direct=unsupported
8342           # It fails to find uninstalled libraries when the uninstalled
8343           # path is not listed in the libpath.  Setting hardcode_minus_L
8344           # to unsupported forces relinking
8345           hardcode_minus_L=yes
8346           hardcode_libdir_flag_spec='-L$libdir'
8347           hardcode_libdir_separator=
8348           fi
8349           ;;
8350         esac
8351         shared_flag='-shared'
8352         if test "$aix_use_runtimelinking" = yes; then
8353           shared_flag="$shared_flag "'${wl}-G'
8354         fi
8355       else
8356         # not using gcc
8357         if test "$host_cpu" = ia64; then
8358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8359         # chokes on -Wl,-G. The following line is correct:
8360           shared_flag='-G'
8361         else
8362           if test "$aix_use_runtimelinking" = yes; then
8363             shared_flag='${wl}-G'
8364           else
8365             shared_flag='${wl}-bM:SRE'
8366           fi
8367         fi
8368       fi
8369
8370       # It seems that -bexpall does not export symbols beginning with
8371       # underscore (_), so it is better to generate a list of symbols to export.
8372       always_export_symbols=yes
8373       if test "$aix_use_runtimelinking" = yes; then
8374         # Warning - without using the other runtime loading flags (-brtl),
8375         # -berok will link without error, but may produce a broken library.
8376         allow_undefined_flag='-berok'
8377        # Determine the default libpath from the value encoded in an empty executable.
8378        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h.  */
8380
8381 int
8382 main ()
8383 {
8384
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 if ac_fn_c_try_link "$LINENO"; then :
8390
8391 lt_aix_libpath_sed='
8392     /Import File Strings/,/^$/ {
8393         /^0/ {
8394             s/^0  *\(.*\)$/\1/
8395             p
8396         }
8397     }'
8398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 # Check for a 64-bit object if we didn't find anything.
8400 if test -z "$aix_libpath"; then
8401   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8402 fi
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext \
8405     conftest$ac_exeext conftest.$ac_ext
8406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8407
8408        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8409         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"
8410        else
8411         if test "$host_cpu" = ia64; then
8412           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8413           allow_undefined_flag="-z nodefs"
8414           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"
8415         else
8416          # Determine the default libpath from the value encoded in an empty executable.
8417          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h.  */
8419
8420 int
8421 main ()
8422 {
8423
8424   ;
8425   return 0;
8426 }
8427 _ACEOF
8428 if ac_fn_c_try_link "$LINENO"; then :
8429
8430 lt_aix_libpath_sed='
8431     /Import File Strings/,/^$/ {
8432         /^0/ {
8433             s/^0  *\(.*\)$/\1/
8434             p
8435         }
8436     }'
8437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8438 # Check for a 64-bit object if we didn't find anything.
8439 if test -z "$aix_libpath"; then
8440   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8441 fi
8442 fi
8443 rm -f core conftest.err conftest.$ac_objext \
8444     conftest$ac_exeext conftest.$ac_ext
8445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8446
8447          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8448           # Warning - without using the other run time loading flags,
8449           # -berok will link without error, but may produce a broken library.
8450           no_undefined_flag=' ${wl}-bernotok'
8451           allow_undefined_flag=' ${wl}-berok'
8452           # Exported symbols can be pulled into shared objects from archives
8453           whole_archive_flag_spec='$convenience'
8454           archive_cmds_need_lc=yes
8455           # This is similar to how AIX traditionally builds its shared libraries.
8456           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'
8457         fi
8458       fi
8459       ;;
8460
8461     amigaos*)
8462       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)'
8463       hardcode_libdir_flag_spec='-L$libdir'
8464       hardcode_minus_L=yes
8465       # see comment about different semantics on the GNU ld section
8466       ld_shlibs=no
8467       ;;
8468
8469     bsdi[45]*)
8470       export_dynamic_flag_spec=-rdynamic
8471       ;;
8472
8473     cygwin* | mingw* | pw32*)
8474       # When not using gcc, we currently assume that we are using
8475       # Microsoft Visual C++.
8476       # hardcode_libdir_flag_spec is actually meaningless, as there is
8477       # no search path for DLLs.
8478       hardcode_libdir_flag_spec=' '
8479       allow_undefined_flag=unsupported
8480       # Tell ltmain to make .lib files, not .a files.
8481       libext=lib
8482       # Tell ltmain to make .dll files, not .so files.
8483       shrext_cmds=".dll"
8484       # FIXME: Setting linknames here is a bad hack.
8485       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8486       # The linker will automatically build a .lib file if we build a DLL.
8487       old_archive_From_new_cmds='true'
8488       # FIXME: Should let the user specify the lib program.
8489       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8490       fix_srcfile_path='`cygpath -w "$srcfile"`'
8491       enable_shared_with_static_runtimes=yes
8492       ;;
8493
8494     darwin* | rhapsody*)
8495       case $host_os in
8496         rhapsody* | darwin1.[012])
8497          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8498          ;;
8499        *) # Darwin 1.3 on
8500          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8501            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8502          else
8503            case ${MACOSX_DEPLOYMENT_TARGET} in
8504              10.[012])
8505                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8506                ;;
8507              10.*)
8508                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8509                ;;
8510            esac
8511          fi
8512          ;;
8513       esac
8514       archive_cmds_need_lc=no
8515       hardcode_direct=no
8516       hardcode_automatic=yes
8517       hardcode_shlibpath_var=unsupported
8518       whole_archive_flag_spec=''
8519       link_all_deplibs=yes
8520     if test "$GCC" = yes ; then
8521         output_verbose_link_cmd='echo'
8522         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8523         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8524         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}"
8525         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}"
8526     else
8527       case $cc_basename in
8528         xlc*)
8529          output_verbose_link_cmd='echo'
8530          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8531          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8532           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8533          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}'
8534           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}'
8535           ;;
8536        *)
8537          ld_shlibs=no
8538           ;;
8539       esac
8540     fi
8541       ;;
8542
8543     dgux*)
8544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545       hardcode_libdir_flag_spec='-L$libdir'
8546       hardcode_shlibpath_var=no
8547       ;;
8548
8549     freebsd1*)
8550       ld_shlibs=no
8551       ;;
8552
8553     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8554     # support.  Future versions do this automatically, but an explicit c++rt0.o
8555     # does not break anything, and helps significantly (at the cost of a little
8556     # extra space).
8557     freebsd2.2*)
8558       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8559       hardcode_libdir_flag_spec='-R$libdir'
8560       hardcode_direct=yes
8561       hardcode_shlibpath_var=no
8562       ;;
8563
8564     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8565     freebsd2*)
8566       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8567       hardcode_direct=yes
8568       hardcode_minus_L=yes
8569       hardcode_shlibpath_var=no
8570       ;;
8571
8572     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8573     freebsd* | dragonfly*)
8574       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8575       hardcode_libdir_flag_spec='-R$libdir'
8576       hardcode_direct=yes
8577       hardcode_shlibpath_var=no
8578       ;;
8579
8580     hpux9*)
8581       if test "$GCC" = yes; then
8582         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'
8583       else
8584         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'
8585       fi
8586       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8587       hardcode_libdir_separator=:
8588       hardcode_direct=yes
8589
8590       # hardcode_minus_L: Not really in the search PATH,
8591       # but as the default location of the library.
8592       hardcode_minus_L=yes
8593       export_dynamic_flag_spec='${wl}-E'
8594       ;;
8595
8596     hpux10*)
8597       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8598         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8599       else
8600         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8601       fi
8602       if test "$with_gnu_ld" = no; then
8603         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8604         hardcode_libdir_separator=:
8605
8606         hardcode_direct=yes
8607         export_dynamic_flag_spec='${wl}-E'
8608
8609         # hardcode_minus_L: Not really in the search PATH,
8610         # but as the default location of the library.
8611         hardcode_minus_L=yes
8612       fi
8613       ;;
8614
8615     hpux11*)
8616       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8617         case $host_cpu in
8618         hppa*64*)
8619           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620           ;;
8621         ia64*)
8622           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8623           ;;
8624         *)
8625           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8626           ;;
8627         esac
8628       else
8629         case $host_cpu in
8630         hppa*64*)
8631           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632           ;;
8633         ia64*)
8634           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8635           ;;
8636         *)
8637           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8638           ;;
8639         esac
8640       fi
8641       if test "$with_gnu_ld" = no; then
8642         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8643         hardcode_libdir_separator=:
8644
8645         case $host_cpu in
8646         hppa*64*|ia64*)
8647           hardcode_libdir_flag_spec_ld='+b $libdir'
8648           hardcode_direct=no
8649           hardcode_shlibpath_var=no
8650           ;;
8651         *)
8652           hardcode_direct=yes
8653           export_dynamic_flag_spec='${wl}-E'
8654
8655           # hardcode_minus_L: Not really in the search PATH,
8656           # but as the default location of the library.
8657           hardcode_minus_L=yes
8658           ;;
8659         esac
8660       fi
8661       ;;
8662
8663     irix5* | irix6* | nonstopux*)
8664       if test "$GCC" = yes; then
8665         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'
8666       else
8667         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'
8668         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8669       fi
8670       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8671       hardcode_libdir_separator=:
8672       link_all_deplibs=yes
8673       ;;
8674
8675     netbsd* | netbsdelf*-gnu)
8676       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8677         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8678       else
8679         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8680       fi
8681       hardcode_libdir_flag_spec='-R$libdir'
8682       hardcode_direct=yes
8683       hardcode_shlibpath_var=no
8684       ;;
8685
8686     newsos6)
8687       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688       hardcode_direct=yes
8689       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690       hardcode_libdir_separator=:
8691       hardcode_shlibpath_var=no
8692       ;;
8693
8694     openbsd*)
8695       if test -f /usr/libexec/ld.so; then
8696         hardcode_direct=yes
8697         hardcode_shlibpath_var=no
8698         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8699           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8700           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8701           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8702           export_dynamic_flag_spec='${wl}-E'
8703         else
8704           case $host_os in
8705            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8706              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8707              hardcode_libdir_flag_spec='-R$libdir'
8708              ;;
8709            *)
8710              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8711              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8712              ;;
8713           esac
8714         fi
8715       else
8716         ld_shlibs=no
8717       fi
8718       ;;
8719
8720     os2*)
8721       hardcode_libdir_flag_spec='-L$libdir'
8722       hardcode_minus_L=yes
8723       allow_undefined_flag=unsupported
8724       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'
8725       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8726       ;;
8727
8728     osf3*)
8729       if test "$GCC" = yes; then
8730         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8731         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'
8732       else
8733         allow_undefined_flag=' -expect_unresolved \*'
8734         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'
8735       fi
8736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737       hardcode_libdir_separator=:
8738       ;;
8739
8740     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8741       if test "$GCC" = yes; then
8742         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8743         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'
8744         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745       else
8746         allow_undefined_flag=' -expect_unresolved \*'
8747         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'
8748         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8749         $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'
8750
8751         # Both c and cxx compiler support -rpath directly
8752         hardcode_libdir_flag_spec='-rpath $libdir'
8753       fi
8754       hardcode_libdir_separator=:
8755       ;;
8756
8757     solaris*)
8758       no_undefined_flag=' -z text'
8759       if test "$GCC" = yes; then
8760         wlarc='${wl}'
8761         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8762         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8763           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8764       else
8765         wlarc=''
8766         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8768         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8769       fi
8770       hardcode_libdir_flag_spec='-R$libdir'
8771       hardcode_shlibpath_var=no
8772       case $host_os in
8773       solaris2.[0-5] | solaris2.[0-5].*) ;;
8774       *)
8775         # The compiler driver will combine and reorder linker options,
8776         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8777         # but is careful enough not to reorder.
8778         # Supported since Solaris 2.6 (maybe 2.5.1?)
8779         if test "$GCC" = yes; then
8780           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8781         else
8782           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8783         fi
8784         ;;
8785       esac
8786       link_all_deplibs=yes
8787       ;;
8788
8789     sunos4*)
8790       if test "x$host_vendor" = xsequent; then
8791         # Use $CC to link under sequent, because it throws in some extra .o
8792         # files that make .init and .fini sections work.
8793         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8794       else
8795         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8796       fi
8797       hardcode_libdir_flag_spec='-L$libdir'
8798       hardcode_direct=yes
8799       hardcode_minus_L=yes
8800       hardcode_shlibpath_var=no
8801       ;;
8802
8803     sysv4)
8804       case $host_vendor in
8805         sni)
8806           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807           hardcode_direct=yes # is this really true???
8808         ;;
8809         siemens)
8810           ## LD is ld it makes a PLAMLIB
8811           ## CC just makes a GrossModule.
8812           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8813           reload_cmds='$CC -r -o $output$reload_objs'
8814           hardcode_direct=no
8815         ;;
8816         motorola)
8817           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8819         ;;
8820       esac
8821       runpath_var='LD_RUN_PATH'
8822       hardcode_shlibpath_var=no
8823       ;;
8824
8825     sysv4.3*)
8826       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8827       hardcode_shlibpath_var=no
8828       export_dynamic_flag_spec='-Bexport'
8829       ;;
8830
8831     sysv4*MP*)
8832       if test -d /usr/nec; then
8833         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834         hardcode_shlibpath_var=no
8835         runpath_var=LD_RUN_PATH
8836         hardcode_runpath_var=yes
8837         ld_shlibs=yes
8838       fi
8839       ;;
8840
8841     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8842       no_undefined_flag='${wl}-z,text'
8843       archive_cmds_need_lc=no
8844       hardcode_shlibpath_var=no
8845       runpath_var='LD_RUN_PATH'
8846
8847       if test "$GCC" = yes; then
8848         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8849         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850       else
8851         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8852         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853       fi
8854       ;;
8855
8856     sysv5* | sco3.2v5* | sco5v6*)
8857       # Note: We can NOT use -z defs as we might desire, because we do not
8858       # link with -lc, and that would cause any symbols used from libc to
8859       # always be unresolved, which means just about no library would
8860       # ever link correctly.  If we're not using GNU ld we use -z text
8861       # though, which does catch some bad symbols but isn't as heavy-handed
8862       # as -z defs.
8863       no_undefined_flag='${wl}-z,text'
8864       allow_undefined_flag='${wl}-z,nodefs'
8865       archive_cmds_need_lc=no
8866       hardcode_shlibpath_var=no
8867       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8868       hardcode_libdir_separator=':'
8869       link_all_deplibs=yes
8870       export_dynamic_flag_spec='${wl}-Bexport'
8871       runpath_var='LD_RUN_PATH'
8872
8873       if test "$GCC" = yes; then
8874         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876       else
8877         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8878         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879       fi
8880       ;;
8881
8882     uts4*)
8883       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884       hardcode_libdir_flag_spec='-L$libdir'
8885       hardcode_shlibpath_var=no
8886       ;;
8887
8888     *)
8889       ld_shlibs=no
8890       ;;
8891     esac
8892   fi
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8895 $as_echo "$ld_shlibs" >&6; }
8896 test "$ld_shlibs" = no && can_build_shared=no
8897
8898 #
8899 # Do we need to explicitly link libc?
8900 #
8901 case "x$archive_cmds_need_lc" in
8902 x|xyes)
8903   # Assume -lc should be added
8904   archive_cmds_need_lc=yes
8905
8906   if test "$enable_shared" = yes && test "$GCC" = yes; then
8907     case $archive_cmds in
8908     *'~'*)
8909       # FIXME: we may have to deal with multi-command sequences.
8910       ;;
8911     '$CC '*)
8912       # Test whether the compiler implicitly links with -lc since on some
8913       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8914       # to ld, don't add -lc before -lgcc.
8915       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8916 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8917       $rm conftest*
8918       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919
8920       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8921   (eval $ac_compile) 2>&5
8922   ac_status=$?
8923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8924   test $ac_status = 0; } 2>conftest.err; then
8925         soname=conftest
8926         lib=conftest
8927         libobjs=conftest.$ac_objext
8928         deplibs=
8929         wl=$lt_prog_compiler_wl
8930         pic_flag=$lt_prog_compiler_pic
8931         compiler_flags=-v
8932         linker_flags=-v
8933         verstring=
8934         output_objdir=.
8935         libname=conftest
8936         lt_save_allow_undefined_flag=$allow_undefined_flag
8937         allow_undefined_flag=
8938         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8939   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8940   ac_status=$?
8941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8942   test $ac_status = 0; }
8943         then
8944           archive_cmds_need_lc=no
8945         else
8946           archive_cmds_need_lc=yes
8947         fi
8948         allow_undefined_flag=$lt_save_allow_undefined_flag
8949       else
8950         cat conftest.err 1>&5
8951       fi
8952       $rm conftest*
8953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8954 $as_echo "$archive_cmds_need_lc" >&6; }
8955       ;;
8956     esac
8957   fi
8958   ;;
8959 esac
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8963 library_names_spec=
8964 libname_spec='lib$name'
8965 soname_spec=
8966 shrext_cmds=".so"
8967 postinstall_cmds=
8968 postuninstall_cmds=
8969 finish_cmds=
8970 finish_eval=
8971 shlibpath_var=
8972 shlibpath_overrides_runpath=unknown
8973 version_type=none
8974 dynamic_linker="$host_os ld.so"
8975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8976
8977 if test "$GCC" = yes; then
8978   case $host_os in
8979     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8980     *) lt_awk_arg="/^libraries:/" ;;
8981   esac
8982   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8983   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8984     # if the path contains ";" then we assume it to be the separator
8985     # otherwise default to the standard path separator (i.e. ":") - it is
8986     # assumed that no part of a normal pathname contains ";" but that should
8987     # okay in the real world where ";" in dirpaths is itself problematic.
8988     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8989   else
8990     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8991   fi
8992   # Ok, now we have the path, separated by spaces, we can step through it
8993   # and add multilib dir if necessary.
8994   lt_tmp_lt_search_path_spec=
8995   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8996   for lt_sys_path in $lt_search_path_spec; do
8997     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8998       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8999     else
9000       test -d "$lt_sys_path" && \
9001         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9002     fi
9003   done
9004   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9005 BEGIN {RS=" "; FS="/|\n";} {
9006   lt_foo="";
9007   lt_count=0;
9008   for (lt_i = NF; lt_i > 0; lt_i--) {
9009     if ($lt_i != "" && $lt_i != ".") {
9010       if ($lt_i == "..") {
9011         lt_count++;
9012       } else {
9013         if (lt_count == 0) {
9014           lt_foo="/" $lt_i lt_foo;
9015         } else {
9016           lt_count--;
9017         }
9018       }
9019     }
9020   }
9021   if (lt_foo != "") { lt_freq[lt_foo]++; }
9022   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9023 }'`
9024   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9025 else
9026   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9027 fi
9028 need_lib_prefix=unknown
9029 hardcode_into_libs=no
9030
9031 # when you set need_version to no, make sure it does not cause -set_version
9032 # flags to be left without arguments
9033 need_version=unknown
9034
9035 case $host_os in
9036 aix3*)
9037   version_type=linux
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9039   shlibpath_var=LIBPATH
9040
9041   # AIX 3 has no versioning support, so we append a major version to the name.
9042   soname_spec='${libname}${release}${shared_ext}$major'
9043   ;;
9044
9045 aix[4-9]*)
9046   version_type=linux
9047   need_lib_prefix=no
9048   need_version=no
9049   hardcode_into_libs=yes
9050   if test "$host_cpu" = ia64; then
9051     # AIX 5 supports IA64
9052     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9053     shlibpath_var=LD_LIBRARY_PATH
9054   else
9055     # With GCC up to 2.95.x, collect2 would create an import file
9056     # for dependence libraries.  The import file would start with
9057     # the line `#! .'.  This would cause the generated library to
9058     # depend on `.', always an invalid library.  This was fixed in
9059     # development snapshots of GCC prior to 3.0.
9060     case $host_os in
9061       aix4 | aix4.[01] | aix4.[01].*)
9062       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9063            echo ' yes '
9064            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9065         :
9066       else
9067         can_build_shared=no
9068       fi
9069       ;;
9070     esac
9071     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9072     # soname into executable. Probably we can add versioning support to
9073     # collect2, so additional links can be useful in future.
9074     if test "$aix_use_runtimelinking" = yes; then
9075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9076       # instead of lib<name>.a to let people know that these are not
9077       # typical AIX shared libraries.
9078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079     else
9080       # We preserve .a as extension for shared libraries through AIX4.2
9081       # and later when we are not doing run time linking.
9082       library_names_spec='${libname}${release}.a $libname.a'
9083       soname_spec='${libname}${release}${shared_ext}$major'
9084     fi
9085     shlibpath_var=LIBPATH
9086   fi
9087   ;;
9088
9089 amigaos*)
9090   library_names_spec='$libname.ixlibrary $libname.a'
9091   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9092   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'
9093   ;;
9094
9095 beos*)
9096   library_names_spec='${libname}${shared_ext}'
9097   dynamic_linker="$host_os ld.so"
9098   shlibpath_var=LIBRARY_PATH
9099   ;;
9100
9101 bsdi[45]*)
9102   version_type=linux
9103   need_version=no
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9110   # the default ld.so.conf also contains /usr/contrib/lib and
9111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9112   # libtool to hard-code these into programs
9113   ;;
9114
9115 cygwin* | mingw* | pw32*)
9116   version_type=windows
9117   shrext_cmds=".dll"
9118   need_version=no
9119   need_lib_prefix=no
9120
9121   case $GCC,$host_os in
9122   yes,cygwin* | yes,mingw* | yes,pw32*)
9123     library_names_spec='$libname.dll.a'
9124     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9125     postinstall_cmds='base_file=`basename \${file}`~
9126       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9127       dldir=$destdir/`dirname \$dlpath`~
9128       test -d \$dldir || mkdir -p \$dldir~
9129       $install_prog $dir/$dlname \$dldir/$dlname~
9130       chmod a+x \$dldir/$dlname'
9131     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9132       dlpath=$dir/\$dldll~
9133        $rm \$dlpath'
9134     shlibpath_overrides_runpath=yes
9135
9136     case $host_os in
9137     cygwin*)
9138       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9139       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9140       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9141       ;;
9142     mingw*)
9143       # MinGW DLLs use traditional 'lib' prefix
9144       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9145       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9146       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9147         # It is most probably a Windows format PATH printed by
9148         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9149         # path with ; separators, and with drive letters. We can handle the
9150         # drive letters (cygwin fileutils understands them), so leave them,
9151         # especially as we might pass files found there to a mingw objdump,
9152         # which wouldn't understand a cygwinified path. Ahh.
9153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9154       else
9155         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9156       fi
9157       ;;
9158     pw32*)
9159       # pw32 DLLs use 'pw' prefix rather than 'lib'
9160       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9161       ;;
9162     esac
9163     ;;
9164
9165   *)
9166     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9167     ;;
9168   esac
9169   dynamic_linker='Win32 ld.exe'
9170   # FIXME: first we should search . and the directory the executable is in
9171   shlibpath_var=PATH
9172   ;;
9173
9174 darwin* | rhapsody*)
9175   dynamic_linker="$host_os dyld"
9176   version_type=darwin
9177   need_lib_prefix=no
9178   need_version=no
9179   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9180   soname_spec='${libname}${release}${major}$shared_ext'
9181   shlibpath_overrides_runpath=yes
9182   shlibpath_var=DYLD_LIBRARY_PATH
9183   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9184
9185   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9186   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9187   ;;
9188
9189 dgux*)
9190   version_type=linux
9191   need_lib_prefix=no
9192   need_version=no
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9194   soname_spec='${libname}${release}${shared_ext}$major'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   ;;
9197
9198 freebsd1*)
9199   dynamic_linker=no
9200   ;;
9201
9202 freebsd* | dragonfly*)
9203   # DragonFly does not have aout.  When/if they implement a new
9204   # versioning mechanism, adjust this.
9205   if test -x /usr/bin/objformat; then
9206     objformat=`/usr/bin/objformat`
9207   else
9208     case $host_os in
9209     freebsd[123]*) objformat=aout ;;
9210     *) objformat=elf ;;
9211     esac
9212   fi
9213   version_type=freebsd-$objformat
9214   case $version_type in
9215     freebsd-elf*)
9216       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9217       need_version=no
9218       need_lib_prefix=no
9219       ;;
9220     freebsd-*)
9221       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9222       need_version=yes
9223       ;;
9224   esac
9225   shlibpath_var=LD_LIBRARY_PATH
9226   case $host_os in
9227   freebsd2*)
9228     shlibpath_overrides_runpath=yes
9229     ;;
9230   freebsd3.[01]* | freebsdelf3.[01]*)
9231     shlibpath_overrides_runpath=yes
9232     hardcode_into_libs=yes
9233     ;;
9234   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9235   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9236     shlibpath_overrides_runpath=no
9237     hardcode_into_libs=yes
9238     ;;
9239   *) # from 4.6 on, and DragonFly
9240     shlibpath_overrides_runpath=yes
9241     hardcode_into_libs=yes
9242     ;;
9243   esac
9244   ;;
9245
9246 gnu*)
9247   version_type=linux
9248   need_lib_prefix=no
9249   need_version=no
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   shlibpath_var=LD_LIBRARY_PATH
9253   hardcode_into_libs=yes
9254   ;;
9255
9256 hpux9* | hpux10* | hpux11*)
9257   # Give a soname corresponding to the major version so that dld.sl refuses to
9258   # link against other versions.
9259   version_type=sunos
9260   need_lib_prefix=no
9261   need_version=no
9262   case $host_cpu in
9263   ia64*)
9264     shrext_cmds='.so'
9265     hardcode_into_libs=yes
9266     dynamic_linker="$host_os dld.so"
9267     shlibpath_var=LD_LIBRARY_PATH
9268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270     soname_spec='${libname}${release}${shared_ext}$major'
9271     if test "X$HPUX_IA64_MODE" = X32; then
9272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9273     else
9274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9275     fi
9276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9277     ;;
9278    hppa*64*)
9279      shrext_cmds='.sl'
9280      hardcode_into_libs=yes
9281      dynamic_linker="$host_os dld.sl"
9282      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9283      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285      soname_spec='${libname}${release}${shared_ext}$major'
9286      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9287      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9288      ;;
9289    *)
9290     shrext_cmds='.sl'
9291     dynamic_linker="$host_os dld.sl"
9292     shlibpath_var=SHLIB_PATH
9293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295     soname_spec='${libname}${release}${shared_ext}$major'
9296     ;;
9297   esac
9298   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9299   postinstall_cmds='chmod 555 $lib'
9300   ;;
9301
9302 interix[3-9]*)
9303   version_type=linux
9304   need_lib_prefix=no
9305   need_version=no
9306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9307   soname_spec='${libname}${release}${shared_ext}$major'
9308   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9309   shlibpath_var=LD_LIBRARY_PATH
9310   shlibpath_overrides_runpath=no
9311   hardcode_into_libs=yes
9312   ;;
9313
9314 irix5* | irix6* | nonstopux*)
9315   case $host_os in
9316     nonstopux*) version_type=nonstopux ;;
9317     *)
9318         if test "$lt_cv_prog_gnu_ld" = yes; then
9319                 version_type=linux
9320         else
9321                 version_type=irix
9322         fi ;;
9323   esac
9324   need_lib_prefix=no
9325   need_version=no
9326   soname_spec='${libname}${release}${shared_ext}$major'
9327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9328   case $host_os in
9329   irix5* | nonstopux*)
9330     libsuff= shlibsuff=
9331     ;;
9332   *)
9333     case $LD in # libtool.m4 will add one of these switches to LD
9334     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9335       libsuff= shlibsuff= libmagic=32-bit;;
9336     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9337       libsuff=32 shlibsuff=N32 libmagic=N32;;
9338     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9339       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9340     *) libsuff= shlibsuff= libmagic=never-match;;
9341     esac
9342     ;;
9343   esac
9344   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9345   shlibpath_overrides_runpath=no
9346   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9347   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9348   hardcode_into_libs=yes
9349   ;;
9350
9351 # No shared lib support for Linux oldld, aout, or coff.
9352 linux*oldld* | linux*aout* | linux*coff*)
9353   dynamic_linker=no
9354   ;;
9355
9356 # This must be Linux ELF.
9357 linux* | k*bsd*-gnu)
9358   version_type=linux
9359   need_lib_prefix=no
9360   need_version=no
9361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362   soname_spec='${libname}${release}${shared_ext}$major'
9363   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9364   shlibpath_var=LD_LIBRARY_PATH
9365   shlibpath_overrides_runpath=no
9366   # This implies no fast_install, which is unacceptable.
9367   # Some rework will be needed to allow for fast_install
9368   # before this can be enabled.
9369   hardcode_into_libs=yes
9370
9371   # Append ld.so.conf contents to the search path
9372   if test -f /etc/ld.so.conf; then
9373     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' ' '`
9374     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9375   fi
9376
9377   # We used to test for /lib/ld.so.1 and disable shared libraries on
9378   # powerpc, because MkLinux only supported shared libraries with the
9379   # GNU dynamic linker.  Since this was broken with cross compilers,
9380   # most powerpc-linux boxes support dynamic linking these days and
9381   # people can always --disable-shared, the test was removed, and we
9382   # assume the GNU/Linux dynamic linker is in use.
9383   dynamic_linker='GNU/Linux ld.so'
9384   ;;
9385
9386 netbsdelf*-gnu)
9387   version_type=linux
9388   need_lib_prefix=no
9389   need_version=no
9390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9391   soname_spec='${libname}${release}${shared_ext}$major'
9392   shlibpath_var=LD_LIBRARY_PATH
9393   shlibpath_overrides_runpath=no
9394   hardcode_into_libs=yes
9395   dynamic_linker='NetBSD ld.elf_so'
9396   ;;
9397
9398 netbsd*)
9399   version_type=sunos
9400   need_lib_prefix=no
9401   need_version=no
9402   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9404     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9405     dynamic_linker='NetBSD (a.out) ld.so'
9406   else
9407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9408     soname_spec='${libname}${release}${shared_ext}$major'
9409     dynamic_linker='NetBSD ld.elf_so'
9410   fi
9411   shlibpath_var=LD_LIBRARY_PATH
9412   shlibpath_overrides_runpath=yes
9413   hardcode_into_libs=yes
9414   ;;
9415
9416 newsos6)
9417   version_type=linux
9418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   shlibpath_overrides_runpath=yes
9421   ;;
9422
9423 nto-qnx*)
9424   version_type=linux
9425   need_lib_prefix=no
9426   need_version=no
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   shlibpath_overrides_runpath=yes
9431   ;;
9432
9433 openbsd*)
9434   version_type=sunos
9435   sys_lib_dlsearch_path_spec="/usr/lib"
9436   need_lib_prefix=no
9437   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9438   case $host_os in
9439     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9440     *)                         need_version=no  ;;
9441   esac
9442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444   shlibpath_var=LD_LIBRARY_PATH
9445   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9446     case $host_os in
9447       openbsd2.[89] | openbsd2.[89].*)
9448         shlibpath_overrides_runpath=no
9449         ;;
9450       *)
9451         shlibpath_overrides_runpath=yes
9452         ;;
9453       esac
9454   else
9455     shlibpath_overrides_runpath=yes
9456   fi
9457   ;;
9458
9459 os2*)
9460   libname_spec='$name'
9461   shrext_cmds=".dll"
9462   need_lib_prefix=no
9463   library_names_spec='$libname${shared_ext} $libname.a'
9464   dynamic_linker='OS/2 ld.exe'
9465   shlibpath_var=LIBPATH
9466   ;;
9467
9468 osf3* | osf4* | osf5*)
9469   version_type=osf
9470   need_lib_prefix=no
9471   need_version=no
9472   soname_spec='${libname}${release}${shared_ext}$major'
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9476   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9477   ;;
9478
9479 rdos*)
9480   dynamic_linker=no
9481   ;;
9482
9483 solaris*)
9484   version_type=linux
9485   need_lib_prefix=no
9486   need_version=no
9487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488   soname_spec='${libname}${release}${shared_ext}$major'
9489   shlibpath_var=LD_LIBRARY_PATH
9490   shlibpath_overrides_runpath=yes
9491   hardcode_into_libs=yes
9492   # ldd complains unless libraries are executable
9493   postinstall_cmds='chmod +x $lib'
9494   ;;
9495
9496 sunos4*)
9497   version_type=sunos
9498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9499   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=yes
9502   if test "$with_gnu_ld" = yes; then
9503     need_lib_prefix=no
9504   fi
9505   need_version=yes
9506   ;;
9507
9508 sysv4 | sysv4.3*)
9509   version_type=linux
9510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511   soname_spec='${libname}${release}${shared_ext}$major'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   case $host_vendor in
9514     sni)
9515       shlibpath_overrides_runpath=no
9516       need_lib_prefix=no
9517       export_dynamic_flag_spec='${wl}-Blargedynsym'
9518       runpath_var=LD_RUN_PATH
9519       ;;
9520     siemens)
9521       need_lib_prefix=no
9522       ;;
9523     motorola)
9524       need_lib_prefix=no
9525       need_version=no
9526       shlibpath_overrides_runpath=no
9527       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9528       ;;
9529   esac
9530   ;;
9531
9532 sysv4*MP*)
9533   if test -d /usr/nec ;then
9534     version_type=linux
9535     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9536     soname_spec='$libname${shared_ext}.$major'
9537     shlibpath_var=LD_LIBRARY_PATH
9538   fi
9539   ;;
9540
9541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9542   version_type=freebsd-elf
9543   need_lib_prefix=no
9544   need_version=no
9545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9546   soname_spec='${libname}${release}${shared_ext}$major'
9547   shlibpath_var=LD_LIBRARY_PATH
9548   hardcode_into_libs=yes
9549   if test "$with_gnu_ld" = yes; then
9550     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9551     shlibpath_overrides_runpath=no
9552   else
9553     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9554     shlibpath_overrides_runpath=yes
9555     case $host_os in
9556       sco3.2v5*)
9557         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9558         ;;
9559     esac
9560   fi
9561   sys_lib_dlsearch_path_spec='/usr/lib'
9562   ;;
9563
9564 uts4*)
9565   version_type=linux
9566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567   soname_spec='${libname}${release}${shared_ext}$major'
9568   shlibpath_var=LD_LIBRARY_PATH
9569   ;;
9570
9571 *)
9572   dynamic_linker=no
9573   ;;
9574 esac
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9576 $as_echo "$dynamic_linker" >&6; }
9577 test "$dynamic_linker" = no && can_build_shared=no
9578
9579 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9580   $as_echo_n "(cached) " >&6
9581 else
9582   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9583 fi
9584
9585 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9586 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9590 fi
9591
9592 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9593
9594 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9595 if test "$GCC" = yes; then
9596   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9597 fi
9598
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9600 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9601 hardcode_action=
9602 if test -n "$hardcode_libdir_flag_spec" || \
9603    test -n "$runpath_var" || \
9604    test "X$hardcode_automatic" = "Xyes" ; then
9605
9606   # We can hardcode non-existant directories.
9607   if test "$hardcode_direct" != no &&
9608      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9609      # have to relink, otherwise we might link with an installed library
9610      # when we should be linking with a yet-to-be-installed one
9611      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9612      test "$hardcode_minus_L" != no; then
9613     # Linking always hardcodes the temporary library directory.
9614     hardcode_action=relink
9615   else
9616     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9617     hardcode_action=immediate
9618   fi
9619 else
9620   # We cannot hardcode anything, or else we can only hardcode existing
9621   # directories.
9622   hardcode_action=unsupported
9623 fi
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9625 $as_echo "$hardcode_action" >&6; }
9626
9627 if test "$hardcode_action" = relink; then
9628   # Fast installation is not supported
9629   enable_fast_install=no
9630 elif test "$shlibpath_overrides_runpath" = yes ||
9631      test "$enable_shared" = no; then
9632   # Fast installation is not necessary
9633   enable_fast_install=needless
9634 fi
9635
9636 striplib=
9637 old_striplib=
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9639 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9640 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9641   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9642   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9644 $as_echo "yes" >&6; }
9645 else
9646 # FIXME - insert some real tests, host_os isn't really good enough
9647   case $host_os in
9648    darwin*)
9649        if test -n "$STRIP" ; then
9650          striplib="$STRIP -x"
9651          old_striplib="$STRIP -S"
9652          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9653 $as_echo "yes" >&6; }
9654        else
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9657 fi
9658        ;;
9659    *)
9660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9662     ;;
9663   esac
9664 fi
9665
9666 if test "x$enable_dlopen" != xyes; then
9667   enable_dlopen=unknown
9668   enable_dlopen_self=unknown
9669   enable_dlopen_self_static=unknown
9670 else
9671   lt_cv_dlopen=no
9672   lt_cv_dlopen_libs=
9673
9674   case $host_os in
9675   beos*)
9676     lt_cv_dlopen="load_add_on"
9677     lt_cv_dlopen_libs=
9678     lt_cv_dlopen_self=yes
9679     ;;
9680
9681   mingw* | pw32*)
9682     lt_cv_dlopen="LoadLibrary"
9683     lt_cv_dlopen_libs=
9684    ;;
9685
9686   cygwin*)
9687     lt_cv_dlopen="dlopen"
9688     lt_cv_dlopen_libs=
9689    ;;
9690
9691   darwin*)
9692   # if libdl is installed we need to link against it
9693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9695 if ${ac_cv_lib_dl_dlopen+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   ac_check_lib_save_LIBS=$LIBS
9699 LIBS="-ldl  $LIBS"
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h.  */
9702
9703 /* Override any GCC internal prototype to avoid an error.
9704    Use char because int might match the return type of a GCC
9705    builtin and then its argument prototype would still apply.  */
9706 #ifdef __cplusplus
9707 extern "C"
9708 #endif
9709 char dlopen ();
9710 int
9711 main ()
9712 {
9713 return dlopen ();
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_link "$LINENO"; then :
9719   ac_cv_lib_dl_dlopen=yes
9720 else
9721   ac_cv_lib_dl_dlopen=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext \
9724     conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9731 else
9732
9733     lt_cv_dlopen="dyld"
9734     lt_cv_dlopen_libs=
9735     lt_cv_dlopen_self=yes
9736
9737 fi
9738
9739    ;;
9740
9741   *)
9742     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9743 if test "x$ac_cv_func_shl_load" = xyes; then :
9744   lt_cv_dlopen="shl_load"
9745 else
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9747 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9748 if ${ac_cv_lib_dld_shl_load+:} false; then :
9749   $as_echo_n "(cached) " >&6
9750 else
9751   ac_check_lib_save_LIBS=$LIBS
9752 LIBS="-ldld  $LIBS"
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h.  */
9755
9756 /* Override any GCC internal prototype to avoid an error.
9757    Use char because int might match the return type of a GCC
9758    builtin and then its argument prototype would still apply.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 char shl_load ();
9763 int
9764 main ()
9765 {
9766 return shl_load ();
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772   ac_cv_lib_dld_shl_load=yes
9773 else
9774   ac_cv_lib_dld_shl_load=no
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext \
9777     conftest$ac_exeext conftest.$ac_ext
9778 LIBS=$ac_check_lib_save_LIBS
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9781 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9782 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9783   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9784 else
9785   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9786 if test "x$ac_cv_func_dlopen" = xyes; then :
9787   lt_cv_dlopen="dlopen"
9788 else
9789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9791 if ${ac_cv_lib_dl_dlopen+:} false; then :
9792   $as_echo_n "(cached) " >&6
9793 else
9794   ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-ldl  $LIBS"
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h.  */
9798
9799 /* Override any GCC internal prototype to avoid an error.
9800    Use char because int might match the return type of a GCC
9801    builtin and then its argument prototype would still apply.  */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char dlopen ();
9806 int
9807 main ()
9808 {
9809 return dlopen ();
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815   ac_cv_lib_dl_dlopen=yes
9816 else
9817   ac_cv_lib_dl_dlopen=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext \
9820     conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9824 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9825 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9826   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9827 else
9828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9829 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9830 if ${ac_cv_lib_svld_dlopen+:} false; then :
9831   $as_echo_n "(cached) " >&6
9832 else
9833   ac_check_lib_save_LIBS=$LIBS
9834 LIBS="-lsvld  $LIBS"
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h.  */
9837
9838 /* Override any GCC internal prototype to avoid an error.
9839    Use char because int might match the return type of a GCC
9840    builtin and then its argument prototype would still apply.  */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char dlopen ();
9845 int
9846 main ()
9847 {
9848 return dlopen ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854   ac_cv_lib_svld_dlopen=yes
9855 else
9856   ac_cv_lib_svld_dlopen=no
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859     conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9863 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9864 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9865   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9866 else
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9868 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9869 if ${ac_cv_lib_dld_dld_link+:} false; then :
9870   $as_echo_n "(cached) " >&6
9871 else
9872   ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-ldld  $LIBS"
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h.  */
9876
9877 /* Override any GCC internal prototype to avoid an error.
9878    Use char because int might match the return type of a GCC
9879    builtin and then its argument prototype would still apply.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char dld_link ();
9884 int
9885 main ()
9886 {
9887 return dld_link ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 if ac_fn_c_try_link "$LINENO"; then :
9893   ac_cv_lib_dld_dld_link=yes
9894 else
9895   ac_cv_lib_dld_dld_link=no
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext \
9898     conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9900 fi
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9902 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9903 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9904   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9905 fi
9906
9907
9908 fi
9909
9910
9911 fi
9912
9913
9914 fi
9915
9916
9917 fi
9918
9919
9920 fi
9921
9922     ;;
9923   esac
9924
9925   if test "x$lt_cv_dlopen" != xno; then
9926     enable_dlopen=yes
9927   else
9928     enable_dlopen=no
9929   fi
9930
9931   case $lt_cv_dlopen in
9932   dlopen)
9933     save_CPPFLAGS="$CPPFLAGS"
9934     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9935
9936     save_LDFLAGS="$LDFLAGS"
9937     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9938
9939     save_LIBS="$LIBS"
9940     LIBS="$lt_cv_dlopen_libs $LIBS"
9941
9942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9943 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9944 if ${lt_cv_dlopen_self+:} false; then :
9945   $as_echo_n "(cached) " >&6
9946 else
9947           if test "$cross_compiling" = yes; then :
9948   lt_cv_dlopen_self=cross
9949 else
9950   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9951   lt_status=$lt_dlunknown
9952   cat > conftest.$ac_ext <<EOF
9953 #line 9953 "configure"
9954 #include "confdefs.h"
9955
9956 #if HAVE_DLFCN_H
9957 #include <dlfcn.h>
9958 #endif
9959
9960 #include <stdio.h>
9961
9962 #ifdef RTLD_GLOBAL
9963 #  define LT_DLGLOBAL           RTLD_GLOBAL
9964 #else
9965 #  ifdef DL_GLOBAL
9966 #    define LT_DLGLOBAL         DL_GLOBAL
9967 #  else
9968 #    define LT_DLGLOBAL         0
9969 #  endif
9970 #endif
9971
9972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9973    find out it does not work in some platform. */
9974 #ifndef LT_DLLAZY_OR_NOW
9975 #  ifdef RTLD_LAZY
9976 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9977 #  else
9978 #    ifdef DL_LAZY
9979 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9980 #    else
9981 #      ifdef RTLD_NOW
9982 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9983 #      else
9984 #        ifdef DL_NOW
9985 #          define LT_DLLAZY_OR_NOW      DL_NOW
9986 #        else
9987 #          define LT_DLLAZY_OR_NOW      0
9988 #        endif
9989 #      endif
9990 #    endif
9991 #  endif
9992 #endif
9993
9994 #ifdef __cplusplus
9995 extern "C" void exit (int);
9996 #endif
9997
9998 void fnord() { int i=42;}
9999 int main ()
10000 {
10001   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10002   int status = $lt_dlunknown;
10003
10004   if (self)
10005     {
10006       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10007       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10008       /* dlclose (self); */
10009     }
10010   else
10011     puts (dlerror ());
10012
10013     exit (status);
10014 }
10015 EOF
10016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10017   (eval $ac_link) 2>&5
10018   ac_status=$?
10019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10021     (./conftest; exit; ) >&5 2>/dev/null
10022     lt_status=$?
10023     case x$lt_status in
10024       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10025       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10026       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10027     esac
10028   else :
10029     # compilation failed
10030     lt_cv_dlopen_self=no
10031   fi
10032 fi
10033 rm -fr conftest*
10034
10035
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10038 $as_echo "$lt_cv_dlopen_self" >&6; }
10039
10040     if test "x$lt_cv_dlopen_self" = xyes; then
10041       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10042       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10043 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10044 if ${lt_cv_dlopen_self_static+:} false; then :
10045   $as_echo_n "(cached) " >&6
10046 else
10047           if test "$cross_compiling" = yes; then :
10048   lt_cv_dlopen_self_static=cross
10049 else
10050   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10051   lt_status=$lt_dlunknown
10052   cat > conftest.$ac_ext <<EOF
10053 #line 10053 "configure"
10054 #include "confdefs.h"
10055
10056 #if HAVE_DLFCN_H
10057 #include <dlfcn.h>
10058 #endif
10059
10060 #include <stdio.h>
10061
10062 #ifdef RTLD_GLOBAL
10063 #  define LT_DLGLOBAL           RTLD_GLOBAL
10064 #else
10065 #  ifdef DL_GLOBAL
10066 #    define LT_DLGLOBAL         DL_GLOBAL
10067 #  else
10068 #    define LT_DLGLOBAL         0
10069 #  endif
10070 #endif
10071
10072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10073    find out it does not work in some platform. */
10074 #ifndef LT_DLLAZY_OR_NOW
10075 #  ifdef RTLD_LAZY
10076 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10077 #  else
10078 #    ifdef DL_LAZY
10079 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10080 #    else
10081 #      ifdef RTLD_NOW
10082 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10083 #      else
10084 #        ifdef DL_NOW
10085 #          define LT_DLLAZY_OR_NOW      DL_NOW
10086 #        else
10087 #          define LT_DLLAZY_OR_NOW      0
10088 #        endif
10089 #      endif
10090 #    endif
10091 #  endif
10092 #endif
10093
10094 #ifdef __cplusplus
10095 extern "C" void exit (int);
10096 #endif
10097
10098 void fnord() { int i=42;}
10099 int main ()
10100 {
10101   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10102   int status = $lt_dlunknown;
10103
10104   if (self)
10105     {
10106       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10107       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10108       /* dlclose (self); */
10109     }
10110   else
10111     puts (dlerror ());
10112
10113     exit (status);
10114 }
10115 EOF
10116   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10117   (eval $ac_link) 2>&5
10118   ac_status=$?
10119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10121     (./conftest; exit; ) >&5 2>/dev/null
10122     lt_status=$?
10123     case x$lt_status in
10124       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10125       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10126       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10127     esac
10128   else :
10129     # compilation failed
10130     lt_cv_dlopen_self_static=no
10131   fi
10132 fi
10133 rm -fr conftest*
10134
10135
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10138 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10139     fi
10140
10141     CPPFLAGS="$save_CPPFLAGS"
10142     LDFLAGS="$save_LDFLAGS"
10143     LIBS="$save_LIBS"
10144     ;;
10145   esac
10146
10147   case $lt_cv_dlopen_self in
10148   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10149   *) enable_dlopen_self=unknown ;;
10150   esac
10151
10152   case $lt_cv_dlopen_self_static in
10153   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10154   *) enable_dlopen_self_static=unknown ;;
10155   esac
10156 fi
10157
10158
10159 # Report which library types will actually be built
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10161 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10163 $as_echo "$can_build_shared" >&6; }
10164
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10166 $as_echo_n "checking whether to build shared libraries... " >&6; }
10167 test "$can_build_shared" = "no" && enable_shared=no
10168
10169 # On AIX, shared libraries and static libraries use the same namespace, and
10170 # are all built from PIC.
10171 case $host_os in
10172 aix3*)
10173   test "$enable_shared" = yes && enable_static=no
10174   if test -n "$RANLIB"; then
10175     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10176     postinstall_cmds='$RANLIB $lib'
10177   fi
10178   ;;
10179
10180 aix[4-9]*)
10181   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10182     test "$enable_shared" = yes && enable_static=no
10183   fi
10184     ;;
10185 esac
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10187 $as_echo "$enable_shared" >&6; }
10188
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10190 $as_echo_n "checking whether to build static libraries... " >&6; }
10191 # Make sure either enable_shared or enable_static is yes.
10192 test "$enable_shared" = yes || enable_static=yes
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10194 $as_echo "$enable_static" >&6; }
10195
10196 # The else clause should only fire when bootstrapping the
10197 # libtool distribution, otherwise you forgot to ship ltmain.sh
10198 # with your package, and you will get complaints that there are
10199 # no rules to generate ltmain.sh.
10200 if test -f "$ltmain"; then
10201   # See if we are running on zsh, and set the options which allow our commands through
10202   # without removal of \ escapes.
10203   if test -n "${ZSH_VERSION+set}" ; then
10204     setopt NO_GLOB_SUBST
10205   fi
10206   # Now quote all the things that may contain metacharacters while being
10207   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10208   # variables and quote the copies for generation of the libtool script.
10209   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10210     SED SHELL STRIP \
10211     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10212     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10213     deplibs_check_method reload_flag reload_cmds need_locks \
10214     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10215     lt_cv_sys_global_symbol_to_c_name_address \
10216     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10217     old_postinstall_cmds old_postuninstall_cmds \
10218     compiler \
10219     CC \
10220     LD \
10221     lt_prog_compiler_wl \
10222     lt_prog_compiler_pic \
10223     lt_prog_compiler_static \
10224     lt_prog_compiler_no_builtin_flag \
10225     export_dynamic_flag_spec \
10226     thread_safe_flag_spec \
10227     whole_archive_flag_spec \
10228     enable_shared_with_static_runtimes \
10229     old_archive_cmds \
10230     old_archive_from_new_cmds \
10231     predep_objects \
10232     postdep_objects \
10233     predeps \
10234     postdeps \
10235     compiler_lib_search_path \
10236     compiler_lib_search_dirs \
10237     archive_cmds \
10238     archive_expsym_cmds \
10239     postinstall_cmds \
10240     postuninstall_cmds \
10241     old_archive_from_expsyms_cmds \
10242     allow_undefined_flag \
10243     no_undefined_flag \
10244     export_symbols_cmds \
10245     hardcode_libdir_flag_spec \
10246     hardcode_libdir_flag_spec_ld \
10247     hardcode_libdir_separator \
10248     hardcode_automatic \
10249     module_cmds \
10250     module_expsym_cmds \
10251     lt_cv_prog_compiler_c_o \
10252     fix_srcfile_path \
10253     exclude_expsyms \
10254     include_expsyms; do
10255
10256     case $var in
10257     old_archive_cmds | \
10258     old_archive_from_new_cmds | \
10259     archive_cmds | \
10260     archive_expsym_cmds | \
10261     module_cmds | \
10262     module_expsym_cmds | \
10263     old_archive_from_expsyms_cmds | \
10264     export_symbols_cmds | \
10265     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10266     postinstall_cmds | postuninstall_cmds | \
10267     old_postinstall_cmds | old_postuninstall_cmds | \
10268     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10269       # Double-quote double-evaled strings.
10270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10271       ;;
10272     *)
10273       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10274       ;;
10275     esac
10276   done
10277
10278   case $lt_echo in
10279   *'\$0 --fallback-echo"')
10280     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10281     ;;
10282   esac
10283
10284 cfgfile="${ofile}T"
10285   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10286   $rm -f "$cfgfile"
10287   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10288 $as_echo "$as_me: creating $ofile" >&6;}
10289
10290   cat <<__EOF__ >> "$cfgfile"
10291 #! $SHELL
10292
10293 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10294 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10295 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10296 #
10297 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10298 # Free Software Foundation, Inc.
10299 #
10300 # This file is part of GNU Libtool:
10301 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10302 #
10303 # This program is free software; you can redistribute it and/or modify
10304 # it under the terms of the GNU General Public License as published by
10305 # the Free Software Foundation; either version 2 of the License, or
10306 # (at your option) any later version.
10307 #
10308 # This program is distributed in the hope that it will be useful, but
10309 # WITHOUT ANY WARRANTY; without even the implied warranty of
10310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10311 # General Public License for more details.
10312 #
10313 # You should have received a copy of the GNU General Public License
10314 # along with this program; if not, write to the Free Software
10315 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10316 #
10317 # As a special exception to the GNU General Public License, if you
10318 # distribute this file as part of a program that contains a
10319 # configuration script generated by Autoconf, you may include it under
10320 # the same distribution terms that you use for the rest of that program.
10321
10322 # A sed program that does not truncate output.
10323 SED=$lt_SED
10324
10325 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10326 Xsed="$SED -e 1s/^X//"
10327
10328 # The HP-UX ksh and POSIX shell print the target directory to stdout
10329 # if CDPATH is set.
10330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10331
10332 # The names of the tagged configurations supported by this script.
10333 available_tags=
10334
10335 # ### BEGIN LIBTOOL CONFIG
10336
10337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10338
10339 # Shell to use when invoking shell scripts.
10340 SHELL=$lt_SHELL
10341
10342 # Whether or not to build shared libraries.
10343 build_libtool_libs=$enable_shared
10344
10345 # Whether or not to build static libraries.
10346 build_old_libs=$enable_static
10347
10348 # Whether or not to add -lc for building shared libraries.
10349 build_libtool_need_lc=$archive_cmds_need_lc
10350
10351 # Whether or not to disallow shared libs when runtime libs are static
10352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10353
10354 # Whether or not to optimize for fast installation.
10355 fast_install=$enable_fast_install
10356
10357 # The host system.
10358 host_alias=$host_alias
10359 host=$host
10360 host_os=$host_os
10361
10362 # The build system.
10363 build_alias=$build_alias
10364 build=$build
10365 build_os=$build_os
10366
10367 # An echo program that does not interpret backslashes.
10368 echo=$lt_echo
10369
10370 # The archiver.
10371 AR=$lt_AR
10372 AR_FLAGS=$lt_AR_FLAGS
10373
10374 # A C compiler.
10375 LTCC=$lt_LTCC
10376
10377 # LTCC compiler flags.
10378 LTCFLAGS=$lt_LTCFLAGS
10379
10380 # A language-specific compiler.
10381 CC=$lt_compiler
10382
10383 # Is the compiler the GNU C compiler?
10384 with_gcc=$GCC
10385
10386 # An ERE matcher.
10387 EGREP=$lt_EGREP
10388
10389 # The linker used to build libraries.
10390 LD=$lt_LD
10391
10392 # Whether we need hard or soft links.
10393 LN_S=$lt_LN_S
10394
10395 # A BSD-compatible nm program.
10396 NM=$lt_NM
10397
10398 # A symbol stripping program
10399 STRIP=$lt_STRIP
10400
10401 # Used to examine libraries when file_magic_cmd begins "file"
10402 MAGIC_CMD=$MAGIC_CMD
10403
10404 # Used on cygwin: DLL creation program.
10405 DLLTOOL="$DLLTOOL"
10406
10407 # Used on cygwin: object dumper.
10408 OBJDUMP="$OBJDUMP"
10409
10410 # Used on cygwin: assembler.
10411 AS="$AS"
10412
10413 # The name of the directory that contains temporary libtool files.
10414 objdir=$objdir
10415
10416 # How to create reloadable object files.
10417 reload_flag=$lt_reload_flag
10418 reload_cmds=$lt_reload_cmds
10419
10420 # How to pass a linker flag through the compiler.
10421 wl=$lt_lt_prog_compiler_wl
10422
10423 # Object file suffix (normally "o").
10424 objext="$ac_objext"
10425
10426 # Old archive suffix (normally "a").
10427 libext="$libext"
10428
10429 # Shared library suffix (normally ".so").
10430 shrext_cmds='$shrext_cmds'
10431
10432 # Executable file suffix (normally "").
10433 exeext="$exeext"
10434
10435 # Additional compiler flags for building library objects.
10436 pic_flag=$lt_lt_prog_compiler_pic
10437 pic_mode=$pic_mode
10438
10439 # What is the maximum length of a command?
10440 max_cmd_len=$lt_cv_sys_max_cmd_len
10441
10442 # Does compiler simultaneously support -c and -o options?
10443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10444
10445 # Must we lock files when doing compilation?
10446 need_locks=$lt_need_locks
10447
10448 # Do we need the lib prefix for modules?
10449 need_lib_prefix=$need_lib_prefix
10450
10451 # Do we need a version for libraries?
10452 need_version=$need_version
10453
10454 # Whether dlopen is supported.
10455 dlopen_support=$enable_dlopen
10456
10457 # Whether dlopen of programs is supported.
10458 dlopen_self=$enable_dlopen_self
10459
10460 # Whether dlopen of statically linked programs is supported.
10461 dlopen_self_static=$enable_dlopen_self_static
10462
10463 # Compiler flag to prevent dynamic linking.
10464 link_static_flag=$lt_lt_prog_compiler_static
10465
10466 # Compiler flag to turn off builtin functions.
10467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10468
10469 # Compiler flag to allow reflexive dlopens.
10470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10471
10472 # Compiler flag to generate shared objects directly from archives.
10473 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10474
10475 # Compiler flag to generate thread-safe objects.
10476 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10477
10478 # Library versioning type.
10479 version_type=$version_type
10480
10481 # Format of library name prefix.
10482 libname_spec=$lt_libname_spec
10483
10484 # List of archive names.  First name is the real one, the rest are links.
10485 # The last name is the one that the linker finds with -lNAME.
10486 library_names_spec=$lt_library_names_spec
10487
10488 # The coded name of the library, if different from the real name.
10489 soname_spec=$lt_soname_spec
10490
10491 # Commands used to build and install an old-style archive.
10492 RANLIB=$lt_RANLIB
10493 old_archive_cmds=$lt_old_archive_cmds
10494 old_postinstall_cmds=$lt_old_postinstall_cmds
10495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10496
10497 # Create an old-style archive from a shared archive.
10498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10499
10500 # Create a temporary old-style archive to link instead of a shared archive.
10501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10502
10503 # Commands used to build and install a shared archive.
10504 archive_cmds=$lt_archive_cmds
10505 archive_expsym_cmds=$lt_archive_expsym_cmds
10506 postinstall_cmds=$lt_postinstall_cmds
10507 postuninstall_cmds=$lt_postuninstall_cmds
10508
10509 # Commands used to build a loadable module (assumed same as above if empty)
10510 module_cmds=$lt_module_cmds
10511 module_expsym_cmds=$lt_module_expsym_cmds
10512
10513 # Commands to strip libraries.
10514 old_striplib=$lt_old_striplib
10515 striplib=$lt_striplib
10516
10517 # Dependencies to place before the objects being linked to create a
10518 # shared library.
10519 predep_objects=$lt_predep_objects
10520
10521 # Dependencies to place after the objects being linked to create a
10522 # shared library.
10523 postdep_objects=$lt_postdep_objects
10524
10525 # Dependencies to place before the objects being linked to create a
10526 # shared library.
10527 predeps=$lt_predeps
10528
10529 # Dependencies to place after the objects being linked to create a
10530 # shared library.
10531 postdeps=$lt_postdeps
10532
10533 # The directories searched by this compiler when creating a shared
10534 # library
10535 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10536
10537 # The library search path used internally by the compiler when linking
10538 # a shared library.
10539 compiler_lib_search_path=$lt_compiler_lib_search_path
10540
10541 # Method to check whether dependent libraries are shared objects.
10542 deplibs_check_method=$lt_deplibs_check_method
10543
10544 # Command to use when deplibs_check_method == file_magic.
10545 file_magic_cmd=$lt_file_magic_cmd
10546
10547 # Flag that allows shared libraries with undefined symbols to be built.
10548 allow_undefined_flag=$lt_allow_undefined_flag
10549
10550 # Flag that forces no undefined symbols.
10551 no_undefined_flag=$lt_no_undefined_flag
10552
10553 # Commands used to finish a libtool library installation in a directory.
10554 finish_cmds=$lt_finish_cmds
10555
10556 # Same as above, but a single script fragment to be evaled but not shown.
10557 finish_eval=$lt_finish_eval
10558
10559 # Take the output of nm and produce a listing of raw symbols and C names.
10560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10561
10562 # Transform the output of nm in a proper C declaration
10563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10564
10565 # Transform the output of nm in a C name address pair
10566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10567
10568 # This is the shared library runtime path variable.
10569 runpath_var=$runpath_var
10570
10571 # This is the shared library path variable.
10572 shlibpath_var=$shlibpath_var
10573
10574 # Is shlibpath searched before the hard-coded library search path?
10575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10576
10577 # How to hardcode a shared library path into an executable.
10578 hardcode_action=$hardcode_action
10579
10580 # Whether we should hardcode library paths into libraries.
10581 hardcode_into_libs=$hardcode_into_libs
10582
10583 # Flag to hardcode \$libdir into a binary during linking.
10584 # This must work even if \$libdir does not exist.
10585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10586
10587 # If ld is used when linking, flag to hardcode \$libdir into
10588 # a binary during linking. This must work even if \$libdir does
10589 # not exist.
10590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10591
10592 # Whether we need a single -rpath flag with a separated argument.
10593 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10594
10595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10596 # resulting binary.
10597 hardcode_direct=$hardcode_direct
10598
10599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10600 # resulting binary.
10601 hardcode_minus_L=$hardcode_minus_L
10602
10603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10604 # the resulting binary.
10605 hardcode_shlibpath_var=$hardcode_shlibpath_var
10606
10607 # Set to yes if building a shared library automatically hardcodes DIR into the library
10608 # and all subsequent libraries and executables linked against it.
10609 hardcode_automatic=$hardcode_automatic
10610
10611 # Variables whose values should be saved in libtool wrapper scripts and
10612 # restored at relink time.
10613 variables_saved_for_relink="$variables_saved_for_relink"
10614
10615 # Whether libtool must link a program against all its dependency libraries.
10616 link_all_deplibs=$link_all_deplibs
10617
10618 # Compile-time system search path for libraries
10619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10620
10621 # Run-time system search path for libraries
10622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10623
10624 # Fix the shell variable \$srcfile for the compiler.
10625 fix_srcfile_path=$lt_fix_srcfile_path
10626
10627 # Set to yes if exported symbols are required.
10628 always_export_symbols=$always_export_symbols
10629
10630 # The commands to list exported symbols.
10631 export_symbols_cmds=$lt_export_symbols_cmds
10632
10633 # The commands to extract the exported symbol list from a shared archive.
10634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10635
10636 # Symbols that should not be listed in the preloaded symbols.
10637 exclude_expsyms=$lt_exclude_expsyms
10638
10639 # Symbols that must always be exported.
10640 include_expsyms=$lt_include_expsyms
10641
10642 # ### END LIBTOOL CONFIG
10643
10644 __EOF__
10645
10646
10647   case $host_os in
10648   aix3*)
10649     cat <<\EOF >> "$cfgfile"
10650
10651 # AIX sometimes has problems with the GCC collect2 program.  For some
10652 # reason, if we set the COLLECT_NAMES environment variable, the problems
10653 # vanish in a puff of smoke.
10654 if test "X${COLLECT_NAMES+set}" != Xset; then
10655   COLLECT_NAMES=
10656   export COLLECT_NAMES
10657 fi
10658 EOF
10659     ;;
10660   esac
10661
10662   # We use sed instead of cat because bash on DJGPP gets confused if
10663   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10664   # text mode, it properly converts lines to CR/LF.  This bash problem
10665   # is reportedly fixed, but why not run on old versions too?
10666   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10667
10668   mv -f "$cfgfile" "$ofile" || \
10669     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10670   chmod +x "$ofile"
10671
10672 else
10673   # If there is no Makefile yet, we rely on a make rule to execute
10674   # `config.status --recheck' to rerun these tests and create the
10675   # libtool script then.
10676   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10677   if test -f "$ltmain_in"; then
10678     test -f Makefile && make "$ltmain"
10679   fi
10680 fi
10681
10682
10683 ac_ext=c
10684 ac_cpp='$CPP $CPPFLAGS'
10685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10688
10689 CC="$lt_save_CC"
10690
10691
10692 # Check whether --with-tags was given.
10693 if test "${with_tags+set}" = set; then :
10694   withval=$with_tags; tagnames="$withval"
10695 fi
10696
10697
10698 if test -f "$ltmain" && test -n "$tagnames"; then
10699   if test ! -f "${ofile}"; then
10700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10701 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10702   fi
10703
10704   if test -z "$LTCC"; then
10705     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10706     if test -z "$LTCC"; then
10707       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10708 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10709     else
10710       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10711 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10712     fi
10713   fi
10714   if test -z "$LTCFLAGS"; then
10715     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10716   fi
10717
10718   # Extract list of available tagged configurations in $ofile.
10719   # Note that this assumes the entire list is on one line.
10720   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10721
10722   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10723   for tagname in $tagnames; do
10724     IFS="$lt_save_ifs"
10725     # Check whether tagname contains only valid characters
10726     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10727     "") ;;
10728     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10729         ;;
10730     esac
10731
10732     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10733     then
10734       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10735     fi
10736
10737     # Update the list of available tags.
10738     if test -n "$tagname"; then
10739       echo appending configuration tag \"$tagname\" to $ofile
10740
10741       case $tagname in
10742       CXX)
10743         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10744             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10745             (test "X$CXX" != "Xg++"))) ; then
10746           ac_ext=cpp
10747 ac_cpp='$CXXCPP $CPPFLAGS'
10748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10751
10752
10753
10754
10755 archive_cmds_need_lc_CXX=no
10756 allow_undefined_flag_CXX=
10757 always_export_symbols_CXX=no
10758 archive_expsym_cmds_CXX=
10759 export_dynamic_flag_spec_CXX=
10760 hardcode_direct_CXX=no
10761 hardcode_libdir_flag_spec_CXX=
10762 hardcode_libdir_flag_spec_ld_CXX=
10763 hardcode_libdir_separator_CXX=
10764 hardcode_minus_L_CXX=no
10765 hardcode_shlibpath_var_CXX=unsupported
10766 hardcode_automatic_CXX=no
10767 module_cmds_CXX=
10768 module_expsym_cmds_CXX=
10769 link_all_deplibs_CXX=unknown
10770 old_archive_cmds_CXX=$old_archive_cmds
10771 no_undefined_flag_CXX=
10772 whole_archive_flag_spec_CXX=
10773 enable_shared_with_static_runtimes_CXX=no
10774
10775 # Dependencies to place before and after the object being linked:
10776 predep_objects_CXX=
10777 postdep_objects_CXX=
10778 predeps_CXX=
10779 postdeps_CXX=
10780 compiler_lib_search_path_CXX=
10781 compiler_lib_search_dirs_CXX=
10782
10783 # Source file extension for C++ test sources.
10784 ac_ext=cpp
10785
10786 # Object file extension for compiled C++ test sources.
10787 objext=o
10788 objext_CXX=$objext
10789
10790 # Code to be used in simple compile tests
10791 lt_simple_compile_test_code="int some_variable = 0;"
10792
10793 # Code to be used in simple link tests
10794 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10795
10796 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10797
10798 # If no C compiler was specified, use CC.
10799 LTCC=${LTCC-"$CC"}
10800
10801 # If no C compiler flags were specified, use CFLAGS.
10802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10803
10804 # Allow CC to be a program name with arguments.
10805 compiler=$CC
10806
10807
10808 # save warnings/boilerplate of simple test code
10809 ac_outfile=conftest.$ac_objext
10810 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10812 _lt_compiler_boilerplate=`cat conftest.err`
10813 $rm conftest*
10814
10815 ac_outfile=conftest.$ac_objext
10816 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10818 _lt_linker_boilerplate=`cat conftest.err`
10819 $rm -r conftest*
10820
10821
10822 # Allow CC to be a program name with arguments.
10823 lt_save_CC=$CC
10824 lt_save_LD=$LD
10825 lt_save_GCC=$GCC
10826 GCC=$GXX
10827 lt_save_with_gnu_ld=$with_gnu_ld
10828 lt_save_path_LD=$lt_cv_path_LD
10829 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10830   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10831 else
10832   $as_unset lt_cv_prog_gnu_ld
10833 fi
10834 if test -n "${lt_cv_path_LDCXX+set}"; then
10835   lt_cv_path_LD=$lt_cv_path_LDCXX
10836 else
10837   $as_unset lt_cv_path_LD
10838 fi
10839 test -z "${LDCXX+set}" || LD=$LDCXX
10840 CC=${CXX-"c++"}
10841 compiler=$CC
10842 compiler_CXX=$CC
10843 for cc_temp in $compiler""; do
10844   case $cc_temp in
10845     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10846     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10847     \-*) ;;
10848     *) break;;
10849   esac
10850 done
10851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10852
10853
10854 # We don't want -fno-exception wen compiling C++ code, so set the
10855 # no_builtin_flag separately
10856 if test "$GXX" = yes; then
10857   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10858 else
10859   lt_prog_compiler_no_builtin_flag_CXX=
10860 fi
10861
10862 if test "$GXX" = yes; then
10863   # Set up default GNU C++ configuration
10864
10865
10866 # Check whether --with-gnu-ld was given.
10867 if test "${with_gnu_ld+set}" = set; then :
10868   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10869 else
10870   with_gnu_ld=no
10871 fi
10872
10873 ac_prog=ld
10874 if test "$GCC" = yes; then
10875   # Check if gcc -print-prog-name=ld gives a path.
10876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10877 $as_echo_n "checking for ld used by $CC... " >&6; }
10878   case $host in
10879   *-*-mingw*)
10880     # gcc leaves a trailing carriage return which upsets mingw
10881     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10882   *)
10883     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10884   esac
10885   case $ac_prog in
10886     # Accept absolute paths.
10887     [\\/]* | ?:[\\/]*)
10888       re_direlt='/[^/][^/]*/\.\./'
10889       # Canonicalize the pathname of ld
10890       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10891       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10892         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10893       done
10894       test -z "$LD" && LD="$ac_prog"
10895       ;;
10896   "")
10897     # If it fails, then pretend we aren't using GCC.
10898     ac_prog=ld
10899     ;;
10900   *)
10901     # If it is relative, then search for the first ld in PATH.
10902     with_gnu_ld=unknown
10903     ;;
10904   esac
10905 elif test "$with_gnu_ld" = yes; then
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10907 $as_echo_n "checking for GNU ld... " >&6; }
10908 else
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10910 $as_echo_n "checking for non-GNU ld... " >&6; }
10911 fi
10912 if ${lt_cv_path_LD+:} false; then :
10913   $as_echo_n "(cached) " >&6
10914 else
10915   if test -z "$LD"; then
10916   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10917   for ac_dir in $PATH; do
10918     IFS="$lt_save_ifs"
10919     test -z "$ac_dir" && ac_dir=.
10920     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10921       lt_cv_path_LD="$ac_dir/$ac_prog"
10922       # Check to see if the program is GNU ld.  I'd rather use --version,
10923       # but apparently some variants of GNU ld only accept -v.
10924       # Break only if it was the GNU/non-GNU ld that we prefer.
10925       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10926       *GNU* | *'with BFD'*)
10927         test "$with_gnu_ld" != no && break
10928         ;;
10929       *)
10930         test "$with_gnu_ld" != yes && break
10931         ;;
10932       esac
10933     fi
10934   done
10935   IFS="$lt_save_ifs"
10936 else
10937   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10938 fi
10939 fi
10940
10941 LD="$lt_cv_path_LD"
10942 if test -n "$LD"; then
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10944 $as_echo "$LD" >&6; }
10945 else
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 fi
10949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10952 if ${lt_cv_prog_gnu_ld+:} false; then :
10953   $as_echo_n "(cached) " >&6
10954 else
10955   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10956 case `$LD -v 2>&1 </dev/null` in
10957 *GNU* | *'with BFD'*)
10958   lt_cv_prog_gnu_ld=yes
10959   ;;
10960 *)
10961   lt_cv_prog_gnu_ld=no
10962   ;;
10963 esac
10964 fi
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10967 with_gnu_ld=$lt_cv_prog_gnu_ld
10968
10969
10970
10971   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10972   # archiving commands below assume that GNU ld is being used.
10973   if test "$with_gnu_ld" = yes; then
10974     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10975     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'
10976
10977     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10978     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10979
10980     # If archive_cmds runs LD, not CC, wlarc should be empty
10981     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10982     #     investigate it a little bit more. (MM)
10983     wlarc='${wl}'
10984
10985     # ancient GNU ld didn't support --whole-archive et. al.
10986     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10987         grep 'no-whole-archive' > /dev/null; then
10988       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10989     else
10990       whole_archive_flag_spec_CXX=
10991     fi
10992   else
10993     with_gnu_ld=no
10994     wlarc=
10995
10996     # A generic and very simple default shared library creation
10997     # command for GNU C++ for the case where it uses the native
10998     # linker, instead of GNU ld.  If possible, this setting should
10999     # overridden to take advantage of the native linker features on
11000     # the platform it is being used on.
11001     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11002   fi
11003
11004   # Commands to make compiler produce verbose output that lists
11005   # what "hidden" libraries, object files and flags are used when
11006   # linking a shared library.
11007   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11008
11009 else
11010   GXX=no
11011   with_gnu_ld=no
11012   wlarc=
11013 fi
11014
11015 # PORTME: fill in a description of your system's C++ link characteristics
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11017 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11018 ld_shlibs_CXX=yes
11019 case $host_os in
11020   aix3*)
11021     # FIXME: insert proper C++ library support
11022     ld_shlibs_CXX=no
11023     ;;
11024   aix[4-9]*)
11025     if test "$host_cpu" = ia64; then
11026       # On IA64, the linker does run time linking by default, so we don't
11027       # have to do anything special.
11028       aix_use_runtimelinking=no
11029       exp_sym_flag='-Bexport'
11030       no_entry_flag=""
11031     else
11032       aix_use_runtimelinking=no
11033
11034       # Test if we are trying to use run time linking or normal
11035       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11036       # need to do runtime linking.
11037       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11038         for ld_flag in $LDFLAGS; do
11039           case $ld_flag in
11040           *-brtl*)
11041             aix_use_runtimelinking=yes
11042             break
11043             ;;
11044           esac
11045         done
11046         ;;
11047       esac
11048
11049       exp_sym_flag='-bexport'
11050       no_entry_flag='-bnoentry'
11051     fi
11052
11053     # When large executables or shared objects are built, AIX ld can
11054     # have problems creating the table of contents.  If linking a library
11055     # or program results in "error TOC overflow" add -mminimal-toc to
11056     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11057     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11058
11059     archive_cmds_CXX=''
11060     hardcode_direct_CXX=yes
11061     hardcode_libdir_separator_CXX=':'
11062     link_all_deplibs_CXX=yes
11063
11064     if test "$GXX" = yes; then
11065       case $host_os in aix4.[012]|aix4.[012].*)
11066       # We only want to do this on AIX 4.2 and lower, the check
11067       # below for broken collect2 doesn't work under 4.3+
11068         collect2name=`${CC} -print-prog-name=collect2`
11069         if test -f "$collect2name" && \
11070            strings "$collect2name" | grep resolve_lib_name >/dev/null
11071         then
11072           # We have reworked collect2
11073           :
11074         else
11075           # We have old collect2
11076           hardcode_direct_CXX=unsupported
11077           # It fails to find uninstalled libraries when the uninstalled
11078           # path is not listed in the libpath.  Setting hardcode_minus_L
11079           # to unsupported forces relinking
11080           hardcode_minus_L_CXX=yes
11081           hardcode_libdir_flag_spec_CXX='-L$libdir'
11082           hardcode_libdir_separator_CXX=
11083         fi
11084         ;;
11085       esac
11086       shared_flag='-shared'
11087       if test "$aix_use_runtimelinking" = yes; then
11088         shared_flag="$shared_flag "'${wl}-G'
11089       fi
11090     else
11091       # not using gcc
11092       if test "$host_cpu" = ia64; then
11093         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11094         # chokes on -Wl,-G. The following line is correct:
11095         shared_flag='-G'
11096       else
11097         if test "$aix_use_runtimelinking" = yes; then
11098           shared_flag='${wl}-G'
11099         else
11100           shared_flag='${wl}-bM:SRE'
11101         fi
11102       fi
11103     fi
11104
11105     # It seems that -bexpall does not export symbols beginning with
11106     # underscore (_), so it is better to generate a list of symbols to export.
11107     always_export_symbols_CXX=yes
11108     if test "$aix_use_runtimelinking" = yes; then
11109       # Warning - without using the other runtime loading flags (-brtl),
11110       # -berok will link without error, but may produce a broken library.
11111       allow_undefined_flag_CXX='-berok'
11112       # Determine the default libpath from the value encoded in an empty executable.
11113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h.  */
11115
11116 int
11117 main ()
11118 {
11119
11120   ;
11121   return 0;
11122 }
11123 _ACEOF
11124 if ac_fn_cxx_try_link "$LINENO"; then :
11125
11126 lt_aix_libpath_sed='
11127     /Import File Strings/,/^$/ {
11128         /^0/ {
11129             s/^0  *\(.*\)$/\1/
11130             p
11131         }
11132     }'
11133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11134 # Check for a 64-bit object if we didn't find anything.
11135 if test -z "$aix_libpath"; then
11136   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11137 fi
11138 fi
11139 rm -f core conftest.err conftest.$ac_objext \
11140     conftest$ac_exeext conftest.$ac_ext
11141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11142
11143       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11144
11145       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"
11146      else
11147       if test "$host_cpu" = ia64; then
11148         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11149         allow_undefined_flag_CXX="-z nodefs"
11150         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"
11151       else
11152         # Determine the default libpath from the value encoded in an empty executable.
11153         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h.  */
11155
11156 int
11157 main ()
11158 {
11159
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_cxx_try_link "$LINENO"; then :
11165
11166 lt_aix_libpath_sed='
11167     /Import File Strings/,/^$/ {
11168         /^0/ {
11169             s/^0  *\(.*\)$/\1/
11170             p
11171         }
11172     }'
11173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11174 # Check for a 64-bit object if we didn't find anything.
11175 if test -z "$aix_libpath"; then
11176   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11177 fi
11178 fi
11179 rm -f core conftest.err conftest.$ac_objext \
11180     conftest$ac_exeext conftest.$ac_ext
11181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11182
11183         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11184         # Warning - without using the other run time loading flags,
11185         # -berok will link without error, but may produce a broken library.
11186         no_undefined_flag_CXX=' ${wl}-bernotok'
11187         allow_undefined_flag_CXX=' ${wl}-berok'
11188         # Exported symbols can be pulled into shared objects from archives
11189         whole_archive_flag_spec_CXX='$convenience'
11190         archive_cmds_need_lc_CXX=yes
11191         # This is similar to how AIX traditionally builds its shared libraries.
11192         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'
11193       fi
11194     fi
11195     ;;
11196
11197   beos*)
11198     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11199       allow_undefined_flag_CXX=unsupported
11200       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11201       # support --undefined.  This deserves some investigation.  FIXME
11202       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203     else
11204       ld_shlibs_CXX=no
11205     fi
11206     ;;
11207
11208   chorus*)
11209     case $cc_basename in
11210       *)
11211         # FIXME: insert proper C++ library support
11212         ld_shlibs_CXX=no
11213         ;;
11214     esac
11215     ;;
11216
11217   cygwin* | mingw* | pw32*)
11218     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11219     # as there is no search path for DLLs.
11220     hardcode_libdir_flag_spec_CXX='-L$libdir'
11221     allow_undefined_flag_CXX=unsupported
11222     always_export_symbols_CXX=no
11223     enable_shared_with_static_runtimes_CXX=yes
11224
11225     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11226       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'
11227       # If the export-symbols file already is a .def file (1st line
11228       # is EXPORTS), use it as is; otherwise, prepend...
11229       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11230         cp $export_symbols $output_objdir/$soname.def;
11231       else
11232         echo EXPORTS > $output_objdir/$soname.def;
11233         cat $export_symbols >> $output_objdir/$soname.def;
11234       fi~
11235       $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'
11236     else
11237       ld_shlibs_CXX=no
11238     fi
11239   ;;
11240       darwin* | rhapsody*)
11241       archive_cmds_need_lc_CXX=no
11242       hardcode_direct_CXX=no
11243       hardcode_automatic_CXX=yes
11244       hardcode_shlibpath_var_CXX=unsupported
11245       whole_archive_flag_spec_CXX=''
11246       link_all_deplibs_CXX=yes
11247       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11248       if test "$GXX" = yes ; then
11249       output_verbose_link_cmd='echo'
11250       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}"
11251       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11252       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}"
11253       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}"
11254       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11255         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}"
11256         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}"
11257       fi
11258       else
11259       case $cc_basename in
11260         xlc*)
11261          output_verbose_link_cmd='echo'
11262           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'
11263           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11264           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11265           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}'
11266           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}'
11267           ;;
11268        *)
11269          ld_shlibs_CXX=no
11270           ;;
11271       esac
11272       fi
11273         ;;
11274
11275   dgux*)
11276     case $cc_basename in
11277       ec++*)
11278         # FIXME: insert proper C++ library support
11279         ld_shlibs_CXX=no
11280         ;;
11281       ghcx*)
11282         # Green Hills C++ Compiler
11283         # FIXME: insert proper C++ library support
11284         ld_shlibs_CXX=no
11285         ;;
11286       *)
11287         # FIXME: insert proper C++ library support
11288         ld_shlibs_CXX=no
11289         ;;
11290     esac
11291     ;;
11292   freebsd[12]*)
11293     # C++ shared libraries reported to be fairly broken before switch to ELF
11294     ld_shlibs_CXX=no
11295     ;;
11296   freebsd-elf*)
11297     archive_cmds_need_lc_CXX=no
11298     ;;
11299   freebsd* | dragonfly*)
11300     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11301     # conventions
11302     ld_shlibs_CXX=yes
11303     ;;
11304   gnu*)
11305     ;;
11306   hpux9*)
11307     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11308     hardcode_libdir_separator_CXX=:
11309     export_dynamic_flag_spec_CXX='${wl}-E'
11310     hardcode_direct_CXX=yes
11311     hardcode_minus_L_CXX=yes # Not in the search PATH,
11312                                 # but as the default
11313                                 # location of the library.
11314
11315     case $cc_basename in
11316     CC*)
11317       # FIXME: insert proper C++ library support
11318       ld_shlibs_CXX=no
11319       ;;
11320     aCC*)
11321       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'
11322       # Commands to make compiler produce verbose output that lists
11323       # what "hidden" libraries, object files and flags are used when
11324       # linking a shared library.
11325       #
11326       # There doesn't appear to be a way to prevent this compiler from
11327       # explicitly linking system object files so we need to strip them
11328       # from the output so that they don't get included in the library
11329       # dependencies.
11330       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'
11331       ;;
11332     *)
11333       if test "$GXX" = yes; then
11334         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'
11335       else
11336         # FIXME: insert proper C++ library support
11337         ld_shlibs_CXX=no
11338       fi
11339       ;;
11340     esac
11341     ;;
11342   hpux10*|hpux11*)
11343     if test $with_gnu_ld = no; then
11344       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11345       hardcode_libdir_separator_CXX=:
11346
11347       case $host_cpu in
11348       hppa*64*|ia64*) ;;
11349       *)
11350         export_dynamic_flag_spec_CXX='${wl}-E'
11351         ;;
11352       esac
11353     fi
11354     case $host_cpu in
11355     hppa*64*|ia64*)
11356       hardcode_direct_CXX=no
11357       hardcode_shlibpath_var_CXX=no
11358       ;;
11359     *)
11360       hardcode_direct_CXX=yes
11361       hardcode_minus_L_CXX=yes # Not in the search PATH,
11362                                               # but as the default
11363                                               # location of the library.
11364       ;;
11365     esac
11366
11367     case $cc_basename in
11368       CC*)
11369         # FIXME: insert proper C++ library support
11370         ld_shlibs_CXX=no
11371         ;;
11372       aCC*)
11373         case $host_cpu in
11374         hppa*64*)
11375           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11376           ;;
11377         ia64*)
11378           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11379           ;;
11380         *)
11381           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11382           ;;
11383         esac
11384         # Commands to make compiler produce verbose output that lists
11385         # what "hidden" libraries, object files and flags are used when
11386         # linking a shared library.
11387         #
11388         # There doesn't appear to be a way to prevent this compiler from
11389         # explicitly linking system object files so we need to strip them
11390         # from the output so that they don't get included in the library
11391         # dependencies.
11392         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'
11393         ;;
11394       *)
11395         if test "$GXX" = yes; then
11396           if test $with_gnu_ld = no; then
11397             case $host_cpu in
11398             hppa*64*)
11399               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11400               ;;
11401             ia64*)
11402               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11403               ;;
11404             *)
11405               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'
11406               ;;
11407             esac
11408           fi
11409         else
11410           # FIXME: insert proper C++ library support
11411           ld_shlibs_CXX=no
11412         fi
11413         ;;
11414     esac
11415     ;;
11416   interix[3-9]*)
11417     hardcode_direct_CXX=no
11418     hardcode_shlibpath_var_CXX=no
11419     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11420     export_dynamic_flag_spec_CXX='${wl}-E'
11421     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11422     # Instead, shared libraries are loaded at an image base (0x10000000 by
11423     # default) and relocated if they conflict, which is a slow very memory
11424     # consuming and fragmenting process.  To avoid this, we pick a random,
11425     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11426     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11427     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'
11428     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'
11429     ;;
11430   irix5* | irix6*)
11431     case $cc_basename in
11432       CC*)
11433         # SGI C++
11434         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'
11435
11436         # Archives containing C++ object files must be created using
11437         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11438         # necessary to make sure instantiated templates are included
11439         # in the archive.
11440         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11441         ;;
11442       *)
11443         if test "$GXX" = yes; then
11444           if test "$with_gnu_ld" = no; then
11445             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11446           else
11447             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'
11448           fi
11449         fi
11450         link_all_deplibs_CXX=yes
11451         ;;
11452     esac
11453     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11454     hardcode_libdir_separator_CXX=:
11455     ;;
11456   linux* | k*bsd*-gnu)
11457     case $cc_basename in
11458       KCC*)
11459         # Kuck and Associates, Inc. (KAI) C++ Compiler
11460
11461         # KCC will only create a shared library if the output file
11462         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11463         # to its proper name (with version) after linking.
11464         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'
11465         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'
11466         # Commands to make compiler produce verbose output that lists
11467         # what "hidden" libraries, object files and flags are used when
11468         # linking a shared library.
11469         #
11470         # There doesn't appear to be a way to prevent this compiler from
11471         # explicitly linking system object files so we need to strip them
11472         # from the output so that they don't get included in the library
11473         # dependencies.
11474         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'
11475
11476         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11477         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11478
11479         # Archives containing C++ object files must be created using
11480         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11481         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11482         ;;
11483       icpc*)
11484         # Intel C++
11485         with_gnu_ld=yes
11486         # version 8.0 and above of icpc choke on multiply defined symbols
11487         # if we add $predep_objects and $postdep_objects, however 7.1 and
11488         # earlier do not add the objects themselves.
11489         case `$CC -V 2>&1` in
11490         *"Version 7."*)
11491           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11492           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'
11493           ;;
11494         *)  # Version 8.0 or newer
11495           tmp_idyn=
11496           case $host_cpu in
11497             ia64*) tmp_idyn=' -i_dynamic';;
11498           esac
11499           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500           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'
11501           ;;
11502         esac
11503         archive_cmds_need_lc_CXX=no
11504         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11505         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11506         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11507         ;;
11508       pgCC* | pgcpp*)
11509         # Portland Group C++ compiler
11510         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11511         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'
11512
11513         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11514         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11515         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'
11516         ;;
11517       cxx*)
11518         # Compaq C++
11519         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520         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'
11521
11522         runpath_var=LD_RUN_PATH
11523         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11524         hardcode_libdir_separator_CXX=:
11525
11526         # Commands to make compiler produce verbose output that lists
11527         # what "hidden" libraries, object files and flags are used when
11528         # linking a shared library.
11529         #
11530         # There doesn't appear to be a way to prevent this compiler from
11531         # explicitly linking system object files so we need to strip them
11532         # from the output so that they don't get included in the library
11533         # dependencies.
11534         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'
11535         ;;
11536       *)
11537         case `$CC -V 2>&1 | sed 5q` in
11538         *Sun\ C*)
11539           # Sun C++ 5.9
11540           no_undefined_flag_CXX=' -zdefs'
11541           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11542           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'
11543           hardcode_libdir_flag_spec_CXX='-R$libdir'
11544           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'
11545
11546           # Not sure whether something based on
11547           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11548           # would be better.
11549           output_verbose_link_cmd='echo'
11550
11551           # Archives containing C++ object files must be created using
11552           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11553           # necessary to make sure instantiated templates are included
11554           # in the archive.
11555           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11556           ;;
11557         esac
11558         ;;
11559     esac
11560     ;;
11561   lynxos*)
11562     # FIXME: insert proper C++ library support
11563     ld_shlibs_CXX=no
11564     ;;
11565   m88k*)
11566     # FIXME: insert proper C++ library support
11567     ld_shlibs_CXX=no
11568     ;;
11569   mvs*)
11570     case $cc_basename in
11571       cxx*)
11572         # FIXME: insert proper C++ library support
11573         ld_shlibs_CXX=no
11574         ;;
11575       *)
11576         # FIXME: insert proper C++ library support
11577         ld_shlibs_CXX=no
11578         ;;
11579     esac
11580     ;;
11581   netbsd* | netbsdelf*-gnu)
11582     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11583       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11584       wlarc=
11585       hardcode_libdir_flag_spec_CXX='-R$libdir'
11586       hardcode_direct_CXX=yes
11587       hardcode_shlibpath_var_CXX=no
11588     fi
11589     # Workaround some broken pre-1.5 toolchains
11590     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11591     ;;
11592   openbsd2*)
11593     # C++ shared libraries are fairly broken
11594     ld_shlibs_CXX=no
11595     ;;
11596   openbsd*)
11597     if test -f /usr/libexec/ld.so; then
11598       hardcode_direct_CXX=yes
11599       hardcode_shlibpath_var_CXX=no
11600       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11601       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11602       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11603         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11604         export_dynamic_flag_spec_CXX='${wl}-E'
11605         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11606       fi
11607       output_verbose_link_cmd='echo'
11608     else
11609       ld_shlibs_CXX=no
11610     fi
11611     ;;
11612   osf3*)
11613     case $cc_basename in
11614       KCC*)
11615         # Kuck and Associates, Inc. (KAI) C++ Compiler
11616
11617         # KCC will only create a shared library if the output file
11618         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11619         # to its proper name (with version) after linking.
11620         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'
11621
11622         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11623         hardcode_libdir_separator_CXX=:
11624
11625         # Archives containing C++ object files must be created using
11626         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11627         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11628
11629         ;;
11630       RCC*)
11631         # Rational C++ 2.4.1
11632         # FIXME: insert proper C++ library support
11633         ld_shlibs_CXX=no
11634         ;;
11635       cxx*)
11636         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11637         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'
11638
11639         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11640         hardcode_libdir_separator_CXX=:
11641
11642         # Commands to make compiler produce verbose output that lists
11643         # what "hidden" libraries, object files and flags are used when
11644         # linking a shared library.
11645         #
11646         # There doesn't appear to be a way to prevent this compiler from
11647         # explicitly linking system object files so we need to strip them
11648         # from the output so that they don't get included in the library
11649         # dependencies.
11650         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'
11651         ;;
11652       *)
11653         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11654           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11655           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'
11656
11657           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11658           hardcode_libdir_separator_CXX=:
11659
11660           # Commands to make compiler produce verbose output that lists
11661           # what "hidden" libraries, object files and flags are used when
11662           # linking a shared library.
11663           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11664
11665         else
11666           # FIXME: insert proper C++ library support
11667           ld_shlibs_CXX=no
11668         fi
11669         ;;
11670     esac
11671     ;;
11672   osf4* | osf5*)
11673     case $cc_basename in
11674       KCC*)
11675         # Kuck and Associates, Inc. (KAI) C++ Compiler
11676
11677         # KCC will only create a shared library if the output file
11678         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11679         # to its proper name (with version) after linking.
11680         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'
11681
11682         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11683         hardcode_libdir_separator_CXX=:
11684
11685         # Archives containing C++ object files must be created using
11686         # the KAI C++ compiler.
11687         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11688         ;;
11689       RCC*)
11690         # Rational C++ 2.4.1
11691         # FIXME: insert proper C++ library support
11692         ld_shlibs_CXX=no
11693         ;;
11694       cxx*)
11695         allow_undefined_flag_CXX=' -expect_unresolved \*'
11696         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'
11697         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11698           echo "-hidden">> $lib.exp~
11699           $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~
11700           $rm $lib.exp'
11701
11702         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11703         hardcode_libdir_separator_CXX=:
11704
11705         # Commands to make compiler produce verbose output that lists
11706         # what "hidden" libraries, object files and flags are used when
11707         # linking a shared library.
11708         #
11709         # There doesn't appear to be a way to prevent this compiler from
11710         # explicitly linking system object files so we need to strip them
11711         # from the output so that they don't get included in the library
11712         # dependencies.
11713         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'
11714         ;;
11715       *)
11716         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11717           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11718          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'
11719
11720           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11721           hardcode_libdir_separator_CXX=:
11722
11723           # Commands to make compiler produce verbose output that lists
11724           # what "hidden" libraries, object files and flags are used when
11725           # linking a shared library.
11726           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11727
11728         else
11729           # FIXME: insert proper C++ library support
11730           ld_shlibs_CXX=no
11731         fi
11732         ;;
11733     esac
11734     ;;
11735   psos*)
11736     # FIXME: insert proper C++ library support
11737     ld_shlibs_CXX=no
11738     ;;
11739   sunos4*)
11740     case $cc_basename in
11741       CC*)
11742         # Sun C++ 4.x
11743         # FIXME: insert proper C++ library support
11744         ld_shlibs_CXX=no
11745         ;;
11746       lcc*)
11747         # Lucid
11748         # FIXME: insert proper C++ library support
11749         ld_shlibs_CXX=no
11750         ;;
11751       *)
11752         # FIXME: insert proper C++ library support
11753         ld_shlibs_CXX=no
11754         ;;
11755     esac
11756     ;;
11757   solaris*)
11758     case $cc_basename in
11759       CC*)
11760         # Sun C++ 4.2, 5.x and Centerline C++
11761         archive_cmds_need_lc_CXX=yes
11762         no_undefined_flag_CXX=' -zdefs'
11763         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11764         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11765         $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'
11766
11767         hardcode_libdir_flag_spec_CXX='-R$libdir'
11768         hardcode_shlibpath_var_CXX=no
11769         case $host_os in
11770           solaris2.[0-5] | solaris2.[0-5].*) ;;
11771           *)
11772             # The compiler driver will combine and reorder linker options,
11773             # but understands `-z linker_flag'.
11774             # Supported since Solaris 2.6 (maybe 2.5.1?)
11775             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11776             ;;
11777         esac
11778         link_all_deplibs_CXX=yes
11779
11780         output_verbose_link_cmd='echo'
11781
11782         # Archives containing C++ object files must be created using
11783         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11784         # necessary to make sure instantiated templates are included
11785         # in the archive.
11786         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11787         ;;
11788       gcx*)
11789         # Green Hills C++ Compiler
11790         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11791
11792         # The C++ compiler must be used to create the archive.
11793         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11794         ;;
11795       *)
11796         # GNU C++ compiler with Solaris linker
11797         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11798           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11799           if $CC --version | grep -v '^2\.7' > /dev/null; then
11800             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11801             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11802                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11803
11804             # Commands to make compiler produce verbose output that lists
11805             # what "hidden" libraries, object files and flags are used when
11806             # linking a shared library.
11807             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11808           else
11809             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11810             # platform.
11811             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11812             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11813                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11814
11815             # Commands to make compiler produce verbose output that lists
11816             # what "hidden" libraries, object files and flags are used when
11817             # linking a shared library.
11818             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11819           fi
11820
11821           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11822           case $host_os in
11823           solaris2.[0-5] | solaris2.[0-5].*) ;;
11824           *)
11825             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11826             ;;
11827           esac
11828         fi
11829         ;;
11830     esac
11831     ;;
11832   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11833     no_undefined_flag_CXX='${wl}-z,text'
11834     archive_cmds_need_lc_CXX=no
11835     hardcode_shlibpath_var_CXX=no
11836     runpath_var='LD_RUN_PATH'
11837
11838     case $cc_basename in
11839       CC*)
11840         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11841         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11842         ;;
11843       *)
11844         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11846         ;;
11847     esac
11848     ;;
11849   sysv5* | sco3.2v5* | sco5v6*)
11850     # Note: We can NOT use -z defs as we might desire, because we do not
11851     # link with -lc, and that would cause any symbols used from libc to
11852     # always be unresolved, which means just about no library would
11853     # ever link correctly.  If we're not using GNU ld we use -z text
11854     # though, which does catch some bad symbols but isn't as heavy-handed
11855     # as -z defs.
11856     # For security reasons, it is highly recommended that you always
11857     # use absolute paths for naming shared libraries, and exclude the
11858     # DT_RUNPATH tag from executables and libraries.  But doing so
11859     # requires that you compile everything twice, which is a pain.
11860     # So that behaviour is only enabled if SCOABSPATH is set to a
11861     # non-empty value in the environment.  Most likely only useful for
11862     # creating official distributions of packages.
11863     # This is a hack until libtool officially supports absolute path
11864     # names for shared libraries.
11865     no_undefined_flag_CXX='${wl}-z,text'
11866     allow_undefined_flag_CXX='${wl}-z,nodefs'
11867     archive_cmds_need_lc_CXX=no
11868     hardcode_shlibpath_var_CXX=no
11869     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11870     hardcode_libdir_separator_CXX=':'
11871     link_all_deplibs_CXX=yes
11872     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11873     runpath_var='LD_RUN_PATH'
11874
11875     case $cc_basename in
11876       CC*)
11877         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11878         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11879         ;;
11880       *)
11881         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11883         ;;
11884     esac
11885     ;;
11886   tandem*)
11887     case $cc_basename in
11888       NCC*)
11889         # NonStop-UX NCC 3.20
11890         # FIXME: insert proper C++ library support
11891         ld_shlibs_CXX=no
11892         ;;
11893       *)
11894         # FIXME: insert proper C++ library support
11895         ld_shlibs_CXX=no
11896         ;;
11897     esac
11898     ;;
11899   vxworks*)
11900     # FIXME: insert proper C++ library support
11901     ld_shlibs_CXX=no
11902     ;;
11903   *)
11904     # FIXME: insert proper C++ library support
11905     ld_shlibs_CXX=no
11906     ;;
11907 esac
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11909 $as_echo "$ld_shlibs_CXX" >&6; }
11910 test "$ld_shlibs_CXX" = no && can_build_shared=no
11911
11912 GCC_CXX="$GXX"
11913 LD_CXX="$LD"
11914
11915 cat > conftest.$ac_ext <<EOF
11916 class Foo
11917 {
11918 public:
11919   Foo (void) { a = 0; }
11920 private:
11921   int a;
11922 };
11923 EOF
11924
11925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11926   (eval $ac_compile) 2>&5
11927   ac_status=$?
11928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11929   test $ac_status = 0; }; then
11930   # Parse the compiler output and extract the necessary
11931   # objects, libraries and library flags.
11932
11933   # Sentinel used to keep track of whether or not we are before
11934   # the conftest object file.
11935   pre_test_object_deps_done=no
11936
11937   # The `*' in the case matches for architectures that use `case' in
11938   # $output_verbose_cmd can trigger glob expansion during the loop
11939   # eval without this substitution.
11940   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11941
11942   for p in `eval $output_verbose_link_cmd`; do
11943     case $p in
11944
11945     -L* | -R* | -l*)
11946        # Some compilers place space between "-{L,R}" and the path.
11947        # Remove the space.
11948        if test $p = "-L" \
11949           || test $p = "-R"; then
11950          prev=$p
11951          continue
11952        else
11953          prev=
11954        fi
11955
11956        if test "$pre_test_object_deps_done" = no; then
11957          case $p in
11958          -L* | -R*)
11959            # Internal compiler library paths should come after those
11960            # provided the user.  The postdeps already come after the
11961            # user supplied libs so there is no need to process them.
11962            if test -z "$compiler_lib_search_path_CXX"; then
11963              compiler_lib_search_path_CXX="${prev}${p}"
11964            else
11965              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11966            fi
11967            ;;
11968          # The "-l" case would never come before the object being
11969          # linked, so don't bother handling this case.
11970          esac
11971        else
11972          if test -z "$postdeps_CXX"; then
11973            postdeps_CXX="${prev}${p}"
11974          else
11975            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11976          fi
11977        fi
11978        ;;
11979
11980     *.$objext)
11981        # This assumes that the test object file only shows up
11982        # once in the compiler output.
11983        if test "$p" = "conftest.$objext"; then
11984          pre_test_object_deps_done=yes
11985          continue
11986        fi
11987
11988        if test "$pre_test_object_deps_done" = no; then
11989          if test -z "$predep_objects_CXX"; then
11990            predep_objects_CXX="$p"
11991          else
11992            predep_objects_CXX="$predep_objects_CXX $p"
11993          fi
11994        else
11995          if test -z "$postdep_objects_CXX"; then
11996            postdep_objects_CXX="$p"
11997          else
11998            postdep_objects_CXX="$postdep_objects_CXX $p"
11999          fi
12000        fi
12001        ;;
12002
12003     *) ;; # Ignore the rest.
12004
12005     esac
12006   done
12007
12008   # Clean up.
12009   rm -f a.out a.exe
12010 else
12011   echo "libtool.m4: error: problem compiling CXX test program"
12012 fi
12013
12014 $rm -f confest.$objext
12015
12016 compiler_lib_search_dirs_CXX=
12017 if test -n "$compiler_lib_search_path_CXX"; then
12018   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12019 fi
12020
12021 # PORTME: override above test on systems where it is broken
12022 case $host_os in
12023 interix[3-9]*)
12024   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12025   # hack all around it, let's just trust "g++" to DTRT.
12026   predep_objects_CXX=
12027   postdep_objects_CXX=
12028   postdeps_CXX=
12029   ;;
12030
12031 linux*)
12032   case `$CC -V 2>&1 | sed 5q` in
12033   *Sun\ C*)
12034     # Sun C++ 5.9
12035     #
12036     # The more standards-conforming stlport4 library is
12037     # incompatible with the Cstd library. Avoid specifying
12038     # it if it's in CXXFLAGS. Ignore libCrun as
12039     # -library=stlport4 depends on it.
12040     case " $CXX $CXXFLAGS " in
12041     *" -library=stlport4 "*)
12042       solaris_use_stlport4=yes
12043       ;;
12044     esac
12045     if test "$solaris_use_stlport4" != yes; then
12046       postdeps_CXX='-library=Cstd -library=Crun'
12047     fi
12048     ;;
12049   esac
12050   ;;
12051
12052 solaris*)
12053   case $cc_basename in
12054   CC*)
12055     # The more standards-conforming stlport4 library is
12056     # incompatible with the Cstd library. Avoid specifying
12057     # it if it's in CXXFLAGS. Ignore libCrun as
12058     # -library=stlport4 depends on it.
12059     case " $CXX $CXXFLAGS " in
12060     *" -library=stlport4 "*)
12061       solaris_use_stlport4=yes
12062       ;;
12063     esac
12064
12065     # Adding this requires a known-good setup of shared libraries for
12066     # Sun compiler versions before 5.6, else PIC objects from an old
12067     # archive will be linked into the output, leading to subtle bugs.
12068     if test "$solaris_use_stlport4" != yes; then
12069       postdeps_CXX='-library=Cstd -library=Crun'
12070     fi
12071     ;;
12072   esac
12073   ;;
12074 esac
12075
12076 case " $postdeps_CXX " in
12077 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12078 esac
12079
12080 lt_prog_compiler_wl_CXX=
12081 lt_prog_compiler_pic_CXX=
12082 lt_prog_compiler_static_CXX=
12083
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12085 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12086
12087   # C++ specific cases for pic, static, wl, etc.
12088   if test "$GXX" = yes; then
12089     lt_prog_compiler_wl_CXX='-Wl,'
12090     lt_prog_compiler_static_CXX='-static'
12091
12092     case $host_os in
12093     aix*)
12094       # All AIX code is PIC.
12095       if test "$host_cpu" = ia64; then
12096         # AIX 5 now supports IA64 processor
12097         lt_prog_compiler_static_CXX='-Bstatic'
12098       fi
12099       ;;
12100     amigaos*)
12101       # FIXME: we need at least 68020 code to build shared libraries, but
12102       # adding the `-m68020' flag to GCC prevents building anything better,
12103       # like `-m68040'.
12104       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12105       ;;
12106     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12107       # PIC is the default for these OSes.
12108       ;;
12109     mingw* | cygwin* | os2* | pw32*)
12110       # This hack is so that the source file can tell whether it is being
12111       # built for inclusion in a dll (and should export symbols for example).
12112       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12113       # (--disable-auto-import) libraries
12114       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12115       ;;
12116     darwin* | rhapsody*)
12117       # PIC is the default on this platform
12118       # Common symbols not allowed in MH_DYLIB files
12119       lt_prog_compiler_pic_CXX='-fno-common'
12120       ;;
12121     *djgpp*)
12122       # DJGPP does not support shared libraries at all
12123       lt_prog_compiler_pic_CXX=
12124       ;;
12125     interix[3-9]*)
12126       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12127       # Instead, we relocate shared libraries at runtime.
12128       ;;
12129     sysv4*MP*)
12130       if test -d /usr/nec; then
12131         lt_prog_compiler_pic_CXX=-Kconform_pic
12132       fi
12133       ;;
12134     hpux*)
12135       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12136       # not for PA HP-UX.
12137       case $host_cpu in
12138       hppa*64*|ia64*)
12139         ;;
12140       *)
12141         lt_prog_compiler_pic_CXX='-fPIC'
12142         ;;
12143       esac
12144       ;;
12145     *)
12146       lt_prog_compiler_pic_CXX='-fPIC'
12147       ;;
12148     esac
12149   else
12150     case $host_os in
12151       aix[4-9]*)
12152         # All AIX code is PIC.
12153         if test "$host_cpu" = ia64; then
12154           # AIX 5 now supports IA64 processor
12155           lt_prog_compiler_static_CXX='-Bstatic'
12156         else
12157           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12158         fi
12159         ;;
12160       chorus*)
12161         case $cc_basename in
12162         cxch68*)
12163           # Green Hills C++ Compiler
12164           # _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"
12165           ;;
12166         esac
12167         ;;
12168        darwin*)
12169          # PIC is the default on this platform
12170          # Common symbols not allowed in MH_DYLIB files
12171          case $cc_basename in
12172            xlc*)
12173            lt_prog_compiler_pic_CXX='-qnocommon'
12174            lt_prog_compiler_wl_CXX='-Wl,'
12175            ;;
12176          esac
12177        ;;
12178       dgux*)
12179         case $cc_basename in
12180           ec++*)
12181             lt_prog_compiler_pic_CXX='-KPIC'
12182             ;;
12183           ghcx*)
12184             # Green Hills C++ Compiler
12185             lt_prog_compiler_pic_CXX='-pic'
12186             ;;
12187           *)
12188             ;;
12189         esac
12190         ;;
12191       freebsd* | dragonfly*)
12192         # FreeBSD uses GNU C++
12193         ;;
12194       hpux9* | hpux10* | hpux11*)
12195         case $cc_basename in
12196           CC*)
12197             lt_prog_compiler_wl_CXX='-Wl,'
12198             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12199             if test "$host_cpu" != ia64; then
12200               lt_prog_compiler_pic_CXX='+Z'
12201             fi
12202             ;;
12203           aCC*)
12204             lt_prog_compiler_wl_CXX='-Wl,'
12205             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12206             case $host_cpu in
12207             hppa*64*|ia64*)
12208               # +Z the default
12209               ;;
12210             *)
12211               lt_prog_compiler_pic_CXX='+Z'
12212               ;;
12213             esac
12214             ;;
12215           *)
12216             ;;
12217         esac
12218         ;;
12219       interix*)
12220         # This is c89, which is MS Visual C++ (no shared libs)
12221         # Anyone wants to do a port?
12222         ;;
12223       irix5* | irix6* | nonstopux*)
12224         case $cc_basename in
12225           CC*)
12226             lt_prog_compiler_wl_CXX='-Wl,'
12227             lt_prog_compiler_static_CXX='-non_shared'
12228             # CC pic flag -KPIC is the default.
12229             ;;
12230           *)
12231             ;;
12232         esac
12233         ;;
12234       linux* | k*bsd*-gnu)
12235         case $cc_basename in
12236           KCC*)
12237             # KAI C++ Compiler
12238             lt_prog_compiler_wl_CXX='--backend -Wl,'
12239             lt_prog_compiler_pic_CXX='-fPIC'
12240             ;;
12241           icpc* | ecpc*)
12242             # Intel C++
12243             lt_prog_compiler_wl_CXX='-Wl,'
12244             lt_prog_compiler_pic_CXX='-KPIC'
12245             lt_prog_compiler_static_CXX='-static'
12246             ;;
12247           pgCC* | pgcpp*)
12248             # Portland Group C++ compiler.
12249             lt_prog_compiler_wl_CXX='-Wl,'
12250             lt_prog_compiler_pic_CXX='-fpic'
12251             lt_prog_compiler_static_CXX='-Bstatic'
12252             ;;
12253           cxx*)
12254             # Compaq C++
12255             # Make sure the PIC flag is empty.  It appears that all Alpha
12256             # Linux and Compaq Tru64 Unix objects are PIC.
12257             lt_prog_compiler_pic_CXX=
12258             lt_prog_compiler_static_CXX='-non_shared'
12259             ;;
12260           *)
12261             case `$CC -V 2>&1 | sed 5q` in
12262             *Sun\ C*)
12263               # Sun C++ 5.9
12264               lt_prog_compiler_pic_CXX='-KPIC'
12265               lt_prog_compiler_static_CXX='-Bstatic'
12266               lt_prog_compiler_wl_CXX='-Qoption ld '
12267               ;;
12268             esac
12269             ;;
12270         esac
12271         ;;
12272       lynxos*)
12273         ;;
12274       m88k*)
12275         ;;
12276       mvs*)
12277         case $cc_basename in
12278           cxx*)
12279             lt_prog_compiler_pic_CXX='-W c,exportall'
12280             ;;
12281           *)
12282             ;;
12283         esac
12284         ;;
12285       netbsd* | netbsdelf*-gnu)
12286         ;;
12287       osf3* | osf4* | osf5*)
12288         case $cc_basename in
12289           KCC*)
12290             lt_prog_compiler_wl_CXX='--backend -Wl,'
12291             ;;
12292           RCC*)
12293             # Rational C++ 2.4.1
12294             lt_prog_compiler_pic_CXX='-pic'
12295             ;;
12296           cxx*)
12297             # Digital/Compaq C++
12298             lt_prog_compiler_wl_CXX='-Wl,'
12299             # Make sure the PIC flag is empty.  It appears that all Alpha
12300             # Linux and Compaq Tru64 Unix objects are PIC.
12301             lt_prog_compiler_pic_CXX=
12302             lt_prog_compiler_static_CXX='-non_shared'
12303             ;;
12304           *)
12305             ;;
12306         esac
12307         ;;
12308       psos*)
12309         ;;
12310       solaris*)
12311         case $cc_basename in
12312           CC*)
12313             # Sun C++ 4.2, 5.x and Centerline C++
12314             lt_prog_compiler_pic_CXX='-KPIC'
12315             lt_prog_compiler_static_CXX='-Bstatic'
12316             lt_prog_compiler_wl_CXX='-Qoption ld '
12317             ;;
12318           gcx*)
12319             # Green Hills C++ Compiler
12320             lt_prog_compiler_pic_CXX='-PIC'
12321             ;;
12322           *)
12323             ;;
12324         esac
12325         ;;
12326       sunos4*)
12327         case $cc_basename in
12328           CC*)
12329             # Sun C++ 4.x
12330             lt_prog_compiler_pic_CXX='-pic'
12331             lt_prog_compiler_static_CXX='-Bstatic'
12332             ;;
12333           lcc*)
12334             # Lucid
12335             lt_prog_compiler_pic_CXX='-pic'
12336             ;;
12337           *)
12338             ;;
12339         esac
12340         ;;
12341       tandem*)
12342         case $cc_basename in
12343           NCC*)
12344             # NonStop-UX NCC 3.20
12345             lt_prog_compiler_pic_CXX='-KPIC'
12346             ;;
12347           *)
12348             ;;
12349         esac
12350         ;;
12351       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12352         case $cc_basename in
12353           CC*)
12354             lt_prog_compiler_wl_CXX='-Wl,'
12355             lt_prog_compiler_pic_CXX='-KPIC'
12356             lt_prog_compiler_static_CXX='-Bstatic'
12357             ;;
12358         esac
12359         ;;
12360       vxworks*)
12361         ;;
12362       *)
12363         lt_prog_compiler_can_build_shared_CXX=no
12364         ;;
12365     esac
12366   fi
12367
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12369 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12370
12371 #
12372 # Check to make sure the PIC flag actually works.
12373 #
12374 if test -n "$lt_prog_compiler_pic_CXX"; then
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12378 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12379   $as_echo_n "(cached) " >&6
12380 else
12381   lt_cv_prog_compiler_pic_works_CXX=no
12382   ac_outfile=conftest.$ac_objext
12383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12384    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12385    # Insert the option either (1) after the last *FLAGS variable, or
12386    # (2) before a word containing "conftest.", or (3) at the end.
12387    # Note that $ac_compile itself does not contain backslashes and begins
12388    # with a dollar sign (not a hyphen), so the echo should work correctly.
12389    # The option is referenced via a variable to avoid confusing sed.
12390    lt_compile=`echo "$ac_compile" | $SED \
12391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12393    -e 's:$: $lt_compiler_flag:'`
12394    (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12395    (eval "$lt_compile" 2>conftest.err)
12396    ac_status=$?
12397    cat conftest.err >&5
12398    echo "$as_me:12398: \$? = $ac_status" >&5
12399    if (exit $ac_status) && test -s "$ac_outfile"; then
12400      # The compiler can only warn and ignore the option if not recognized
12401      # So say no if there are warnings other than the usual output.
12402      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12403      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12404      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12405        lt_cv_prog_compiler_pic_works_CXX=yes
12406      fi
12407    fi
12408    $rm conftest*
12409
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12413
12414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12415     case $lt_prog_compiler_pic_CXX in
12416      "" | " "*) ;;
12417      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12418      esac
12419 else
12420     lt_prog_compiler_pic_CXX=
12421      lt_prog_compiler_can_build_shared_CXX=no
12422 fi
12423
12424 fi
12425 case $host_os in
12426   # For platforms which do not support PIC, -DPIC is meaningless:
12427   *djgpp*)
12428     lt_prog_compiler_pic_CXX=
12429     ;;
12430   *)
12431     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12432     ;;
12433 esac
12434
12435 #
12436 # Check to make sure the static flag actually works.
12437 #
12438 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12440 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12441 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444   lt_cv_prog_compiler_static_works_CXX=no
12445    save_LDFLAGS="$LDFLAGS"
12446    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12447    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12448    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12449      # The linker can only warn and ignore the option if not recognized
12450      # So say no if there are warnings
12451      if test -s conftest.err; then
12452        # Append any errors to the config.log.
12453        cat conftest.err 1>&5
12454        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12455        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12456        if diff conftest.exp conftest.er2 >/dev/null; then
12457          lt_cv_prog_compiler_static_works_CXX=yes
12458        fi
12459      else
12460        lt_cv_prog_compiler_static_works_CXX=yes
12461      fi
12462    fi
12463    $rm -r conftest*
12464    LDFLAGS="$save_LDFLAGS"
12465
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12468 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12469
12470 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12471     :
12472 else
12473     lt_prog_compiler_static_CXX=
12474 fi
12475
12476
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12479 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   lt_cv_prog_compiler_c_o_CXX=no
12483    $rm -r conftest 2>/dev/null
12484    mkdir conftest
12485    cd conftest
12486    mkdir out
12487    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12488
12489    lt_compiler_flag="-o out/conftest2.$ac_objext"
12490    # Insert the option either (1) after the last *FLAGS variable, or
12491    # (2) before a word containing "conftest.", or (3) at the end.
12492    # Note that $ac_compile itself does not contain backslashes and begins
12493    # with a dollar sign (not a hyphen), so the echo should work correctly.
12494    lt_compile=`echo "$ac_compile" | $SED \
12495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12497    -e 's:$: $lt_compiler_flag:'`
12498    (eval echo "\"\$as_me:12498: $lt_compile\"" >&5)
12499    (eval "$lt_compile" 2>out/conftest.err)
12500    ac_status=$?
12501    cat out/conftest.err >&5
12502    echo "$as_me:12502: \$? = $ac_status" >&5
12503    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12504    then
12505      # The compiler can only warn and ignore the option if not recognized
12506      # So say no if there are warnings
12507      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12508      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12509      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12510        lt_cv_prog_compiler_c_o_CXX=yes
12511      fi
12512    fi
12513    chmod u+w . 2>&5
12514    $rm conftest*
12515    # SGI C++ compiler will create directory out/ii_files/ for
12516    # template instantiation
12517    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12518    $rm out/* && rmdir out
12519    cd ..
12520    rmdir conftest
12521    $rm conftest*
12522
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12525 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12526
12527
12528 hard_links="nottested"
12529 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12530   # do not overwrite the value of need_locks provided by the user
12531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12532 $as_echo_n "checking if we can lock with hard links... " >&6; }
12533   hard_links=yes
12534   $rm conftest*
12535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12536   touch conftest.a
12537   ln conftest.a conftest.b 2>&5 || hard_links=no
12538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12540 $as_echo "$hard_links" >&6; }
12541   if test "$hard_links" = no; then
12542     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12544     need_locks=warn
12545   fi
12546 else
12547   need_locks=no
12548 fi
12549
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12551 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12552
12553   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12554   case $host_os in
12555   aix[4-9]*)
12556     # If we're using GNU nm, then we don't want the "-C" option.
12557     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12558     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12559       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'
12560     else
12561       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'
12562     fi
12563     ;;
12564   pw32*)
12565     export_symbols_cmds_CXX="$ltdll_cmds"
12566   ;;
12567   cygwin* | mingw*)
12568     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'
12569   ;;
12570   linux* | k*bsd*-gnu)
12571     link_all_deplibs_CXX=no
12572   ;;
12573   *)
12574     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12575   ;;
12576   esac
12577   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12580 $as_echo "$ld_shlibs_CXX" >&6; }
12581 test "$ld_shlibs_CXX" = no && can_build_shared=no
12582
12583 #
12584 # Do we need to explicitly link libc?
12585 #
12586 case "x$archive_cmds_need_lc_CXX" in
12587 x|xyes)
12588   # Assume -lc should be added
12589   archive_cmds_need_lc_CXX=yes
12590
12591   if test "$enable_shared" = yes && test "$GCC" = yes; then
12592     case $archive_cmds_CXX in
12593     *'~'*)
12594       # FIXME: we may have to deal with multi-command sequences.
12595       ;;
12596     '$CC '*)
12597       # Test whether the compiler implicitly links with -lc since on some
12598       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12599       # to ld, don't add -lc before -lgcc.
12600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12602       $rm conftest*
12603       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12604
12605       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12606   (eval $ac_compile) 2>&5
12607   ac_status=$?
12608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12609   test $ac_status = 0; } 2>conftest.err; then
12610         soname=conftest
12611         lib=conftest
12612         libobjs=conftest.$ac_objext
12613         deplibs=
12614         wl=$lt_prog_compiler_wl_CXX
12615         pic_flag=$lt_prog_compiler_pic_CXX
12616         compiler_flags=-v
12617         linker_flags=-v
12618         verstring=
12619         output_objdir=.
12620         libname=conftest
12621         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12622         allow_undefined_flag_CXX=
12623         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12624   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12625   ac_status=$?
12626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12627   test $ac_status = 0; }
12628         then
12629           archive_cmds_need_lc_CXX=no
12630         else
12631           archive_cmds_need_lc_CXX=yes
12632         fi
12633         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12634       else
12635         cat conftest.err 1>&5
12636       fi
12637       $rm conftest*
12638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12639 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12640       ;;
12641     esac
12642   fi
12643   ;;
12644 esac
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12647 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12648 library_names_spec=
12649 libname_spec='lib$name'
12650 soname_spec=
12651 shrext_cmds=".so"
12652 postinstall_cmds=
12653 postuninstall_cmds=
12654 finish_cmds=
12655 finish_eval=
12656 shlibpath_var=
12657 shlibpath_overrides_runpath=unknown
12658 version_type=none
12659 dynamic_linker="$host_os ld.so"
12660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12661
12662 need_lib_prefix=unknown
12663 hardcode_into_libs=no
12664
12665 # when you set need_version to no, make sure it does not cause -set_version
12666 # flags to be left without arguments
12667 need_version=unknown
12668
12669 case $host_os in
12670 aix3*)
12671   version_type=linux
12672   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12673   shlibpath_var=LIBPATH
12674
12675   # AIX 3 has no versioning support, so we append a major version to the name.
12676   soname_spec='${libname}${release}${shared_ext}$major'
12677   ;;
12678
12679 aix[4-9]*)
12680   version_type=linux
12681   need_lib_prefix=no
12682   need_version=no
12683   hardcode_into_libs=yes
12684   if test "$host_cpu" = ia64; then
12685     # AIX 5 supports IA64
12686     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12687     shlibpath_var=LD_LIBRARY_PATH
12688   else
12689     # With GCC up to 2.95.x, collect2 would create an import file
12690     # for dependence libraries.  The import file would start with
12691     # the line `#! .'.  This would cause the generated library to
12692     # depend on `.', always an invalid library.  This was fixed in
12693     # development snapshots of GCC prior to 3.0.
12694     case $host_os in
12695       aix4 | aix4.[01] | aix4.[01].*)
12696       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12697            echo ' yes '
12698            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12699         :
12700       else
12701         can_build_shared=no
12702       fi
12703       ;;
12704     esac
12705     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12706     # soname into executable. Probably we can add versioning support to
12707     # collect2, so additional links can be useful in future.
12708     if test "$aix_use_runtimelinking" = yes; then
12709       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12710       # instead of lib<name>.a to let people know that these are not
12711       # typical AIX shared libraries.
12712       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713     else
12714       # We preserve .a as extension for shared libraries through AIX4.2
12715       # and later when we are not doing run time linking.
12716       library_names_spec='${libname}${release}.a $libname.a'
12717       soname_spec='${libname}${release}${shared_ext}$major'
12718     fi
12719     shlibpath_var=LIBPATH
12720   fi
12721   ;;
12722
12723 amigaos*)
12724   library_names_spec='$libname.ixlibrary $libname.a'
12725   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12726   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'
12727   ;;
12728
12729 beos*)
12730   library_names_spec='${libname}${shared_ext}'
12731   dynamic_linker="$host_os ld.so"
12732   shlibpath_var=LIBRARY_PATH
12733   ;;
12734
12735 bsdi[45]*)
12736   version_type=linux
12737   need_version=no
12738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739   soname_spec='${libname}${release}${shared_ext}$major'
12740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12741   shlibpath_var=LD_LIBRARY_PATH
12742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12744   # the default ld.so.conf also contains /usr/contrib/lib and
12745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12746   # libtool to hard-code these into programs
12747   ;;
12748
12749 cygwin* | mingw* | pw32*)
12750   version_type=windows
12751   shrext_cmds=".dll"
12752   need_version=no
12753   need_lib_prefix=no
12754
12755   case $GCC,$host_os in
12756   yes,cygwin* | yes,mingw* | yes,pw32*)
12757     library_names_spec='$libname.dll.a'
12758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12759     postinstall_cmds='base_file=`basename \${file}`~
12760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12761       dldir=$destdir/`dirname \$dlpath`~
12762       test -d \$dldir || mkdir -p \$dldir~
12763       $install_prog $dir/$dlname \$dldir/$dlname~
12764       chmod a+x \$dldir/$dlname'
12765     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12766       dlpath=$dir/\$dldll~
12767        $rm \$dlpath'
12768     shlibpath_overrides_runpath=yes
12769
12770     case $host_os in
12771     cygwin*)
12772       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12773       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12774       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12775       ;;
12776     mingw*)
12777       # MinGW DLLs use traditional 'lib' prefix
12778       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12779       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12780       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12781         # It is most probably a Windows format PATH printed by
12782         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12783         # path with ; separators, and with drive letters. We can handle the
12784         # drive letters (cygwin fileutils understands them), so leave them,
12785         # especially as we might pass files found there to a mingw objdump,
12786         # which wouldn't understand a cygwinified path. Ahh.
12787         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12788       else
12789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12790       fi
12791       ;;
12792     pw32*)
12793       # pw32 DLLs use 'pw' prefix rather than 'lib'
12794       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12795       ;;
12796     esac
12797     ;;
12798
12799   *)
12800     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12801     ;;
12802   esac
12803   dynamic_linker='Win32 ld.exe'
12804   # FIXME: first we should search . and the directory the executable is in
12805   shlibpath_var=PATH
12806   ;;
12807
12808 darwin* | rhapsody*)
12809   dynamic_linker="$host_os dyld"
12810   version_type=darwin
12811   need_lib_prefix=no
12812   need_version=no
12813   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12814   soname_spec='${libname}${release}${major}$shared_ext'
12815   shlibpath_overrides_runpath=yes
12816   shlibpath_var=DYLD_LIBRARY_PATH
12817   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12818
12819   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12820   ;;
12821
12822 dgux*)
12823   version_type=linux
12824   need_lib_prefix=no
12825   need_version=no
12826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12827   soname_spec='${libname}${release}${shared_ext}$major'
12828   shlibpath_var=LD_LIBRARY_PATH
12829   ;;
12830
12831 freebsd1*)
12832   dynamic_linker=no
12833   ;;
12834
12835 freebsd* | dragonfly*)
12836   # DragonFly does not have aout.  When/if they implement a new
12837   # versioning mechanism, adjust this.
12838   if test -x /usr/bin/objformat; then
12839     objformat=`/usr/bin/objformat`
12840   else
12841     case $host_os in
12842     freebsd[123]*) objformat=aout ;;
12843     *) objformat=elf ;;
12844     esac
12845   fi
12846   version_type=freebsd-$objformat
12847   case $version_type in
12848     freebsd-elf*)
12849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12850       need_version=no
12851       need_lib_prefix=no
12852       ;;
12853     freebsd-*)
12854       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12855       need_version=yes
12856       ;;
12857   esac
12858   shlibpath_var=LD_LIBRARY_PATH
12859   case $host_os in
12860   freebsd2*)
12861     shlibpath_overrides_runpath=yes
12862     ;;
12863   freebsd3.[01]* | freebsdelf3.[01]*)
12864     shlibpath_overrides_runpath=yes
12865     hardcode_into_libs=yes
12866     ;;
12867   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12868   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12869     shlibpath_overrides_runpath=no
12870     hardcode_into_libs=yes
12871     ;;
12872   *) # from 4.6 on, and DragonFly
12873     shlibpath_overrides_runpath=yes
12874     hardcode_into_libs=yes
12875     ;;
12876   esac
12877   ;;
12878
12879 gnu*)
12880   version_type=linux
12881   need_lib_prefix=no
12882   need_version=no
12883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12884   soname_spec='${libname}${release}${shared_ext}$major'
12885   shlibpath_var=LD_LIBRARY_PATH
12886   hardcode_into_libs=yes
12887   ;;
12888
12889 hpux9* | hpux10* | hpux11*)
12890   # Give a soname corresponding to the major version so that dld.sl refuses to
12891   # link against other versions.
12892   version_type=sunos
12893   need_lib_prefix=no
12894   need_version=no
12895   case $host_cpu in
12896   ia64*)
12897     shrext_cmds='.so'
12898     hardcode_into_libs=yes
12899     dynamic_linker="$host_os dld.so"
12900     shlibpath_var=LD_LIBRARY_PATH
12901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12903     soname_spec='${libname}${release}${shared_ext}$major'
12904     if test "X$HPUX_IA64_MODE" = X32; then
12905       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12906     else
12907       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12908     fi
12909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12910     ;;
12911    hppa*64*)
12912      shrext_cmds='.sl'
12913      hardcode_into_libs=yes
12914      dynamic_linker="$host_os dld.sl"
12915      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12916      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12917      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918      soname_spec='${libname}${release}${shared_ext}$major'
12919      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12920      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12921      ;;
12922    *)
12923     shrext_cmds='.sl'
12924     dynamic_linker="$host_os dld.sl"
12925     shlibpath_var=SHLIB_PATH
12926     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928     soname_spec='${libname}${release}${shared_ext}$major'
12929     ;;
12930   esac
12931   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12932   postinstall_cmds='chmod 555 $lib'
12933   ;;
12934
12935 interix[3-9]*)
12936   version_type=linux
12937   need_lib_prefix=no
12938   need_version=no
12939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12940   soname_spec='${libname}${release}${shared_ext}$major'
12941   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12942   shlibpath_var=LD_LIBRARY_PATH
12943   shlibpath_overrides_runpath=no
12944   hardcode_into_libs=yes
12945   ;;
12946
12947 irix5* | irix6* | nonstopux*)
12948   case $host_os in
12949     nonstopux*) version_type=nonstopux ;;
12950     *)
12951         if test "$lt_cv_prog_gnu_ld" = yes; then
12952                 version_type=linux
12953         else
12954                 version_type=irix
12955         fi ;;
12956   esac
12957   need_lib_prefix=no
12958   need_version=no
12959   soname_spec='${libname}${release}${shared_ext}$major'
12960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12961   case $host_os in
12962   irix5* | nonstopux*)
12963     libsuff= shlibsuff=
12964     ;;
12965   *)
12966     case $LD in # libtool.m4 will add one of these switches to LD
12967     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12968       libsuff= shlibsuff= libmagic=32-bit;;
12969     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12970       libsuff=32 shlibsuff=N32 libmagic=N32;;
12971     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12972       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12973     *) libsuff= shlibsuff= libmagic=never-match;;
12974     esac
12975     ;;
12976   esac
12977   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12978   shlibpath_overrides_runpath=no
12979   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12980   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12981   hardcode_into_libs=yes
12982   ;;
12983
12984 # No shared lib support for Linux oldld, aout, or coff.
12985 linux*oldld* | linux*aout* | linux*coff*)
12986   dynamic_linker=no
12987   ;;
12988
12989 # This must be Linux ELF.
12990 linux* | k*bsd*-gnu)
12991   version_type=linux
12992   need_lib_prefix=no
12993   need_version=no
12994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995   soname_spec='${libname}${release}${shared_ext}$major'
12996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12997   shlibpath_var=LD_LIBRARY_PATH
12998   shlibpath_overrides_runpath=no
12999   # This implies no fast_install, which is unacceptable.
13000   # Some rework will be needed to allow for fast_install
13001   # before this can be enabled.
13002   hardcode_into_libs=yes
13003
13004   # Append ld.so.conf contents to the search path
13005   if test -f /etc/ld.so.conf; then
13006     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' ' '`
13007     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13008   fi
13009
13010   # We used to test for /lib/ld.so.1 and disable shared libraries on
13011   # powerpc, because MkLinux only supported shared libraries with the
13012   # GNU dynamic linker.  Since this was broken with cross compilers,
13013   # most powerpc-linux boxes support dynamic linking these days and
13014   # people can always --disable-shared, the test was removed, and we
13015   # assume the GNU/Linux dynamic linker is in use.
13016   dynamic_linker='GNU/Linux ld.so'
13017   ;;
13018
13019 netbsdelf*-gnu)
13020   version_type=linux
13021   need_lib_prefix=no
13022   need_version=no
13023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13024   soname_spec='${libname}${release}${shared_ext}$major'
13025   shlibpath_var=LD_LIBRARY_PATH
13026   shlibpath_overrides_runpath=no
13027   hardcode_into_libs=yes
13028   dynamic_linker='NetBSD ld.elf_so'
13029   ;;
13030
13031 netbsd*)
13032   version_type=sunos
13033   need_lib_prefix=no
13034   need_version=no
13035   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038     dynamic_linker='NetBSD (a.out) ld.so'
13039   else
13040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13041     soname_spec='${libname}${release}${shared_ext}$major'
13042     dynamic_linker='NetBSD ld.elf_so'
13043   fi
13044   shlibpath_var=LD_LIBRARY_PATH
13045   shlibpath_overrides_runpath=yes
13046   hardcode_into_libs=yes
13047   ;;
13048
13049 newsos6)
13050   version_type=linux
13051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052   shlibpath_var=LD_LIBRARY_PATH
13053   shlibpath_overrides_runpath=yes
13054   ;;
13055
13056 nto-qnx*)
13057   version_type=linux
13058   need_lib_prefix=no
13059   need_version=no
13060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061   soname_spec='${libname}${release}${shared_ext}$major'
13062   shlibpath_var=LD_LIBRARY_PATH
13063   shlibpath_overrides_runpath=yes
13064   ;;
13065
13066 openbsd*)
13067   version_type=sunos
13068   sys_lib_dlsearch_path_spec="/usr/lib"
13069   need_lib_prefix=no
13070   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13071   case $host_os in
13072     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13073     *)                         need_version=no  ;;
13074   esac
13075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13076   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13077   shlibpath_var=LD_LIBRARY_PATH
13078   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13079     case $host_os in
13080       openbsd2.[89] | openbsd2.[89].*)
13081         shlibpath_overrides_runpath=no
13082         ;;
13083       *)
13084         shlibpath_overrides_runpath=yes
13085         ;;
13086       esac
13087   else
13088     shlibpath_overrides_runpath=yes
13089   fi
13090   ;;
13091
13092 os2*)
13093   libname_spec='$name'
13094   shrext_cmds=".dll"
13095   need_lib_prefix=no
13096   library_names_spec='$libname${shared_ext} $libname.a'
13097   dynamic_linker='OS/2 ld.exe'
13098   shlibpath_var=LIBPATH
13099   ;;
13100
13101 osf3* | osf4* | osf5*)
13102   version_type=osf
13103   need_lib_prefix=no
13104   need_version=no
13105   soname_spec='${libname}${release}${shared_ext}$major'
13106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107   shlibpath_var=LD_LIBRARY_PATH
13108   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13109   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13110   ;;
13111
13112 rdos*)
13113   dynamic_linker=no
13114   ;;
13115
13116 solaris*)
13117   version_type=linux
13118   need_lib_prefix=no
13119   need_version=no
13120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121   soname_spec='${libname}${release}${shared_ext}$major'
13122   shlibpath_var=LD_LIBRARY_PATH
13123   shlibpath_overrides_runpath=yes
13124   hardcode_into_libs=yes
13125   # ldd complains unless libraries are executable
13126   postinstall_cmds='chmod +x $lib'
13127   ;;
13128
13129 sunos4*)
13130   version_type=sunos
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13132   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13133   shlibpath_var=LD_LIBRARY_PATH
13134   shlibpath_overrides_runpath=yes
13135   if test "$with_gnu_ld" = yes; then
13136     need_lib_prefix=no
13137   fi
13138   need_version=yes
13139   ;;
13140
13141 sysv4 | sysv4.3*)
13142   version_type=linux
13143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144   soname_spec='${libname}${release}${shared_ext}$major'
13145   shlibpath_var=LD_LIBRARY_PATH
13146   case $host_vendor in
13147     sni)
13148       shlibpath_overrides_runpath=no
13149       need_lib_prefix=no
13150       export_dynamic_flag_spec='${wl}-Blargedynsym'
13151       runpath_var=LD_RUN_PATH
13152       ;;
13153     siemens)
13154       need_lib_prefix=no
13155       ;;
13156     motorola)
13157       need_lib_prefix=no
13158       need_version=no
13159       shlibpath_overrides_runpath=no
13160       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13161       ;;
13162   esac
13163   ;;
13164
13165 sysv4*MP*)
13166   if test -d /usr/nec ;then
13167     version_type=linux
13168     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13169     soname_spec='$libname${shared_ext}.$major'
13170     shlibpath_var=LD_LIBRARY_PATH
13171   fi
13172   ;;
13173
13174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13175   version_type=freebsd-elf
13176   need_lib_prefix=no
13177   need_version=no
13178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13179   soname_spec='${libname}${release}${shared_ext}$major'
13180   shlibpath_var=LD_LIBRARY_PATH
13181   hardcode_into_libs=yes
13182   if test "$with_gnu_ld" = yes; then
13183     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13184     shlibpath_overrides_runpath=no
13185   else
13186     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13187     shlibpath_overrides_runpath=yes
13188     case $host_os in
13189       sco3.2v5*)
13190         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13191         ;;
13192     esac
13193   fi
13194   sys_lib_dlsearch_path_spec='/usr/lib'
13195   ;;
13196
13197 uts4*)
13198   version_type=linux
13199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200   soname_spec='${libname}${release}${shared_ext}$major'
13201   shlibpath_var=LD_LIBRARY_PATH
13202   ;;
13203
13204 *)
13205   dynamic_linker=no
13206   ;;
13207 esac
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13209 $as_echo "$dynamic_linker" >&6; }
13210 test "$dynamic_linker" = no && can_build_shared=no
13211
13212 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13216 fi
13217
13218 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13219 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13220   $as_echo_n "(cached) " >&6
13221 else
13222   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13223 fi
13224
13225 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13226
13227 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13228 if test "$GCC" = yes; then
13229   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13230 fi
13231
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13233 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13234 hardcode_action_CXX=
13235 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13236    test -n "$runpath_var_CXX" || \
13237    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13238
13239   # We can hardcode non-existant directories.
13240   if test "$hardcode_direct_CXX" != no &&
13241      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13242      # have to relink, otherwise we might link with an installed library
13243      # when we should be linking with a yet-to-be-installed one
13244      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13245      test "$hardcode_minus_L_CXX" != no; then
13246     # Linking always hardcodes the temporary library directory.
13247     hardcode_action_CXX=relink
13248   else
13249     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13250     hardcode_action_CXX=immediate
13251   fi
13252 else
13253   # We cannot hardcode anything, or else we can only hardcode existing
13254   # directories.
13255   hardcode_action_CXX=unsupported
13256 fi
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13258 $as_echo "$hardcode_action_CXX" >&6; }
13259
13260 if test "$hardcode_action_CXX" = relink; then
13261   # Fast installation is not supported
13262   enable_fast_install=no
13263 elif test "$shlibpath_overrides_runpath" = yes ||
13264      test "$enable_shared" = no; then
13265   # Fast installation is not necessary
13266   enable_fast_install=needless
13267 fi
13268
13269
13270 # The else clause should only fire when bootstrapping the
13271 # libtool distribution, otherwise you forgot to ship ltmain.sh
13272 # with your package, and you will get complaints that there are
13273 # no rules to generate ltmain.sh.
13274 if test -f "$ltmain"; then
13275   # See if we are running on zsh, and set the options which allow our commands through
13276   # without removal of \ escapes.
13277   if test -n "${ZSH_VERSION+set}" ; then
13278     setopt NO_GLOB_SUBST
13279   fi
13280   # Now quote all the things that may contain metacharacters while being
13281   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13282   # variables and quote the copies for generation of the libtool script.
13283   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13284     SED SHELL STRIP \
13285     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13286     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13287     deplibs_check_method reload_flag reload_cmds need_locks \
13288     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13289     lt_cv_sys_global_symbol_to_c_name_address \
13290     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13291     old_postinstall_cmds old_postuninstall_cmds \
13292     compiler_CXX \
13293     CC_CXX \
13294     LD_CXX \
13295     lt_prog_compiler_wl_CXX \
13296     lt_prog_compiler_pic_CXX \
13297     lt_prog_compiler_static_CXX \
13298     lt_prog_compiler_no_builtin_flag_CXX \
13299     export_dynamic_flag_spec_CXX \
13300     thread_safe_flag_spec_CXX \
13301     whole_archive_flag_spec_CXX \
13302     enable_shared_with_static_runtimes_CXX \
13303     old_archive_cmds_CXX \
13304     old_archive_from_new_cmds_CXX \
13305     predep_objects_CXX \
13306     postdep_objects_CXX \
13307     predeps_CXX \
13308     postdeps_CXX \
13309     compiler_lib_search_path_CXX \
13310     compiler_lib_search_dirs_CXX \
13311     archive_cmds_CXX \
13312     archive_expsym_cmds_CXX \
13313     postinstall_cmds_CXX \
13314     postuninstall_cmds_CXX \
13315     old_archive_from_expsyms_cmds_CXX \
13316     allow_undefined_flag_CXX \
13317     no_undefined_flag_CXX \
13318     export_symbols_cmds_CXX \
13319     hardcode_libdir_flag_spec_CXX \
13320     hardcode_libdir_flag_spec_ld_CXX \
13321     hardcode_libdir_separator_CXX \
13322     hardcode_automatic_CXX \
13323     module_cmds_CXX \
13324     module_expsym_cmds_CXX \
13325     lt_cv_prog_compiler_c_o_CXX \
13326     fix_srcfile_path_CXX \
13327     exclude_expsyms_CXX \
13328     include_expsyms_CXX; do
13329
13330     case $var in
13331     old_archive_cmds_CXX | \
13332     old_archive_from_new_cmds_CXX | \
13333     archive_cmds_CXX | \
13334     archive_expsym_cmds_CXX | \
13335     module_cmds_CXX | \
13336     module_expsym_cmds_CXX | \
13337     old_archive_from_expsyms_cmds_CXX | \
13338     export_symbols_cmds_CXX | \
13339     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13340     postinstall_cmds | postuninstall_cmds | \
13341     old_postinstall_cmds | old_postuninstall_cmds | \
13342     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13343       # Double-quote double-evaled strings.
13344       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13345       ;;
13346     *)
13347       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13348       ;;
13349     esac
13350   done
13351
13352   case $lt_echo in
13353   *'\$0 --fallback-echo"')
13354     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13355     ;;
13356   esac
13357
13358 cfgfile="$ofile"
13359
13360   cat <<__EOF__ >> "$cfgfile"
13361 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13362
13363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13364
13365 # Shell to use when invoking shell scripts.
13366 SHELL=$lt_SHELL
13367
13368 # Whether or not to build shared libraries.
13369 build_libtool_libs=$enable_shared
13370
13371 # Whether or not to build static libraries.
13372 build_old_libs=$enable_static
13373
13374 # Whether or not to add -lc for building shared libraries.
13375 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13376
13377 # Whether or not to disallow shared libs when runtime libs are static
13378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13379
13380 # Whether or not to optimize for fast installation.
13381 fast_install=$enable_fast_install
13382
13383 # The host system.
13384 host_alias=$host_alias
13385 host=$host
13386 host_os=$host_os
13387
13388 # The build system.
13389 build_alias=$build_alias
13390 build=$build
13391 build_os=$build_os
13392
13393 # An echo program that does not interpret backslashes.
13394 echo=$lt_echo
13395
13396 # The archiver.
13397 AR=$lt_AR
13398 AR_FLAGS=$lt_AR_FLAGS
13399
13400 # A C compiler.
13401 LTCC=$lt_LTCC
13402
13403 # LTCC compiler flags.
13404 LTCFLAGS=$lt_LTCFLAGS
13405
13406 # A language-specific compiler.
13407 CC=$lt_compiler_CXX
13408
13409 # Is the compiler the GNU C compiler?
13410 with_gcc=$GCC_CXX
13411
13412 # An ERE matcher.
13413 EGREP=$lt_EGREP
13414
13415 # The linker used to build libraries.
13416 LD=$lt_LD_CXX
13417
13418 # Whether we need hard or soft links.
13419 LN_S=$lt_LN_S
13420
13421 # A BSD-compatible nm program.
13422 NM=$lt_NM
13423
13424 # A symbol stripping program
13425 STRIP=$lt_STRIP
13426
13427 # Used to examine libraries when file_magic_cmd begins "file"
13428 MAGIC_CMD=$MAGIC_CMD
13429
13430 # Used on cygwin: DLL creation program.
13431 DLLTOOL="$DLLTOOL"
13432
13433 # Used on cygwin: object dumper.
13434 OBJDUMP="$OBJDUMP"
13435
13436 # Used on cygwin: assembler.
13437 AS="$AS"
13438
13439 # The name of the directory that contains temporary libtool files.
13440 objdir=$objdir
13441
13442 # How to create reloadable object files.
13443 reload_flag=$lt_reload_flag
13444 reload_cmds=$lt_reload_cmds
13445
13446 # How to pass a linker flag through the compiler.
13447 wl=$lt_lt_prog_compiler_wl_CXX
13448
13449 # Object file suffix (normally "o").
13450 objext="$ac_objext"
13451
13452 # Old archive suffix (normally "a").
13453 libext="$libext"
13454
13455 # Shared library suffix (normally ".so").
13456 shrext_cmds='$shrext_cmds'
13457
13458 # Executable file suffix (normally "").
13459 exeext="$exeext"
13460
13461 # Additional compiler flags for building library objects.
13462 pic_flag=$lt_lt_prog_compiler_pic_CXX
13463 pic_mode=$pic_mode
13464
13465 # What is the maximum length of a command?
13466 max_cmd_len=$lt_cv_sys_max_cmd_len
13467
13468 # Does compiler simultaneously support -c and -o options?
13469 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13470
13471 # Must we lock files when doing compilation?
13472 need_locks=$lt_need_locks
13473
13474 # Do we need the lib prefix for modules?
13475 need_lib_prefix=$need_lib_prefix
13476
13477 # Do we need a version for libraries?
13478 need_version=$need_version
13479
13480 # Whether dlopen is supported.
13481 dlopen_support=$enable_dlopen
13482
13483 # Whether dlopen of programs is supported.
13484 dlopen_self=$enable_dlopen_self
13485
13486 # Whether dlopen of statically linked programs is supported.
13487 dlopen_self_static=$enable_dlopen_self_static
13488
13489 # Compiler flag to prevent dynamic linking.
13490 link_static_flag=$lt_lt_prog_compiler_static_CXX
13491
13492 # Compiler flag to turn off builtin functions.
13493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13494
13495 # Compiler flag to allow reflexive dlopens.
13496 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13497
13498 # Compiler flag to generate shared objects directly from archives.
13499 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13500
13501 # Compiler flag to generate thread-safe objects.
13502 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13503
13504 # Library versioning type.
13505 version_type=$version_type
13506
13507 # Format of library name prefix.
13508 libname_spec=$lt_libname_spec
13509
13510 # List of archive names.  First name is the real one, the rest are links.
13511 # The last name is the one that the linker finds with -lNAME.
13512 library_names_spec=$lt_library_names_spec
13513
13514 # The coded name of the library, if different from the real name.
13515 soname_spec=$lt_soname_spec
13516
13517 # Commands used to build and install an old-style archive.
13518 RANLIB=$lt_RANLIB
13519 old_archive_cmds=$lt_old_archive_cmds_CXX
13520 old_postinstall_cmds=$lt_old_postinstall_cmds
13521 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13522
13523 # Create an old-style archive from a shared archive.
13524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13525
13526 # Create a temporary old-style archive to link instead of a shared archive.
13527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13528
13529 # Commands used to build and install a shared archive.
13530 archive_cmds=$lt_archive_cmds_CXX
13531 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13532 postinstall_cmds=$lt_postinstall_cmds
13533 postuninstall_cmds=$lt_postuninstall_cmds
13534
13535 # Commands used to build a loadable module (assumed same as above if empty)
13536 module_cmds=$lt_module_cmds_CXX
13537 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13538
13539 # Commands to strip libraries.
13540 old_striplib=$lt_old_striplib
13541 striplib=$lt_striplib
13542
13543 # Dependencies to place before the objects being linked to create a
13544 # shared library.
13545 predep_objects=$lt_predep_objects_CXX
13546
13547 # Dependencies to place after the objects being linked to create a
13548 # shared library.
13549 postdep_objects=$lt_postdep_objects_CXX
13550
13551 # Dependencies to place before the objects being linked to create a
13552 # shared library.
13553 predeps=$lt_predeps_CXX
13554
13555 # Dependencies to place after the objects being linked to create a
13556 # shared library.
13557 postdeps=$lt_postdeps_CXX
13558
13559 # The directories searched by this compiler when creating a shared
13560 # library
13561 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13562
13563 # The library search path used internally by the compiler when linking
13564 # a shared library.
13565 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13566
13567 # Method to check whether dependent libraries are shared objects.
13568 deplibs_check_method=$lt_deplibs_check_method
13569
13570 # Command to use when deplibs_check_method == file_magic.
13571 file_magic_cmd=$lt_file_magic_cmd
13572
13573 # Flag that allows shared libraries with undefined symbols to be built.
13574 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13575
13576 # Flag that forces no undefined symbols.
13577 no_undefined_flag=$lt_no_undefined_flag_CXX
13578
13579 # Commands used to finish a libtool library installation in a directory.
13580 finish_cmds=$lt_finish_cmds
13581
13582 # Same as above, but a single script fragment to be evaled but not shown.
13583 finish_eval=$lt_finish_eval
13584
13585 # Take the output of nm and produce a listing of raw symbols and C names.
13586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13587
13588 # Transform the output of nm in a proper C declaration
13589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13590
13591 # Transform the output of nm in a C name address pair
13592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13593
13594 # This is the shared library runtime path variable.
13595 runpath_var=$runpath_var
13596
13597 # This is the shared library path variable.
13598 shlibpath_var=$shlibpath_var
13599
13600 # Is shlibpath searched before the hard-coded library search path?
13601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13602
13603 # How to hardcode a shared library path into an executable.
13604 hardcode_action=$hardcode_action_CXX
13605
13606 # Whether we should hardcode library paths into libraries.
13607 hardcode_into_libs=$hardcode_into_libs
13608
13609 # Flag to hardcode \$libdir into a binary during linking.
13610 # This must work even if \$libdir does not exist.
13611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13612
13613 # If ld is used when linking, flag to hardcode \$libdir into
13614 # a binary during linking. This must work even if \$libdir does
13615 # not exist.
13616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13617
13618 # Whether we need a single -rpath flag with a separated argument.
13619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13620
13621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13622 # resulting binary.
13623 hardcode_direct=$hardcode_direct_CXX
13624
13625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13626 # resulting binary.
13627 hardcode_minus_L=$hardcode_minus_L_CXX
13628
13629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13630 # the resulting binary.
13631 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13632
13633 # Set to yes if building a shared library automatically hardcodes DIR into the library
13634 # and all subsequent libraries and executables linked against it.
13635 hardcode_automatic=$hardcode_automatic_CXX
13636
13637 # Variables whose values should be saved in libtool wrapper scripts and
13638 # restored at relink time.
13639 variables_saved_for_relink="$variables_saved_for_relink"
13640
13641 # Whether libtool must link a program against all its dependency libraries.
13642 link_all_deplibs=$link_all_deplibs_CXX
13643
13644 # Compile-time system search path for libraries
13645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13646
13647 # Run-time system search path for libraries
13648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13649
13650 # Fix the shell variable \$srcfile for the compiler.
13651 fix_srcfile_path=$lt_fix_srcfile_path
13652
13653 # Set to yes if exported symbols are required.
13654 always_export_symbols=$always_export_symbols_CXX
13655
13656 # The commands to list exported symbols.
13657 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13658
13659 # The commands to extract the exported symbol list from a shared archive.
13660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13661
13662 # Symbols that should not be listed in the preloaded symbols.
13663 exclude_expsyms=$lt_exclude_expsyms_CXX
13664
13665 # Symbols that must always be exported.
13666 include_expsyms=$lt_include_expsyms_CXX
13667
13668 # ### END LIBTOOL TAG CONFIG: $tagname
13669
13670 __EOF__
13671
13672
13673 else
13674   # If there is no Makefile yet, we rely on a make rule to execute
13675   # `config.status --recheck' to rerun these tests and create the
13676   # libtool script then.
13677   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13678   if test -f "$ltmain_in"; then
13679     test -f Makefile && make "$ltmain"
13680   fi
13681 fi
13682
13683
13684 ac_ext=c
13685 ac_cpp='$CPP $CPPFLAGS'
13686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13689
13690 CC=$lt_save_CC
13691 LDCXX=$LD
13692 LD=$lt_save_LD
13693 GCC=$lt_save_GCC
13694 with_gnu_ldcxx=$with_gnu_ld
13695 with_gnu_ld=$lt_save_with_gnu_ld
13696 lt_cv_path_LDCXX=$lt_cv_path_LD
13697 lt_cv_path_LD=$lt_save_path_LD
13698 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13699 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13700
13701         else
13702           tagname=""
13703         fi
13704         ;;
13705
13706       F77)
13707         if test -n "$F77" && test "X$F77" != "Xno"; then
13708
13709 ac_ext=f
13710 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13711 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13713
13714
13715 archive_cmds_need_lc_F77=no
13716 allow_undefined_flag_F77=
13717 always_export_symbols_F77=no
13718 archive_expsym_cmds_F77=
13719 export_dynamic_flag_spec_F77=
13720 hardcode_direct_F77=no
13721 hardcode_libdir_flag_spec_F77=
13722 hardcode_libdir_flag_spec_ld_F77=
13723 hardcode_libdir_separator_F77=
13724 hardcode_minus_L_F77=no
13725 hardcode_automatic_F77=no
13726 module_cmds_F77=
13727 module_expsym_cmds_F77=
13728 link_all_deplibs_F77=unknown
13729 old_archive_cmds_F77=$old_archive_cmds
13730 no_undefined_flag_F77=
13731 whole_archive_flag_spec_F77=
13732 enable_shared_with_static_runtimes_F77=no
13733
13734 # Source file extension for f77 test sources.
13735 ac_ext=f
13736
13737 # Object file extension for compiled f77 test sources.
13738 objext=o
13739 objext_F77=$objext
13740
13741 # Code to be used in simple compile tests
13742 lt_simple_compile_test_code="\
13743       subroutine t
13744       return
13745       end
13746 "
13747
13748 # Code to be used in simple link tests
13749 lt_simple_link_test_code="\
13750       program t
13751       end
13752 "
13753
13754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13755
13756 # If no C compiler was specified, use CC.
13757 LTCC=${LTCC-"$CC"}
13758
13759 # If no C compiler flags were specified, use CFLAGS.
13760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13761
13762 # Allow CC to be a program name with arguments.
13763 compiler=$CC
13764
13765
13766 # save warnings/boilerplate of simple test code
13767 ac_outfile=conftest.$ac_objext
13768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13770 _lt_compiler_boilerplate=`cat conftest.err`
13771 $rm conftest*
13772
13773 ac_outfile=conftest.$ac_objext
13774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13776 _lt_linker_boilerplate=`cat conftest.err`
13777 $rm -r conftest*
13778
13779
13780 # Allow CC to be a program name with arguments.
13781 lt_save_CC="$CC"
13782 CC=${F77-"f77"}
13783 compiler=$CC
13784 compiler_F77=$CC
13785 for cc_temp in $compiler""; do
13786   case $cc_temp in
13787     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13788     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13789     \-*) ;;
13790     *) break;;
13791   esac
13792 done
13793 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13794
13795
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13797 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13799 $as_echo "$can_build_shared" >&6; }
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13802 $as_echo_n "checking whether to build shared libraries... " >&6; }
13803 test "$can_build_shared" = "no" && enable_shared=no
13804
13805 # On AIX, shared libraries and static libraries use the same namespace, and
13806 # are all built from PIC.
13807 case $host_os in
13808 aix3*)
13809   test "$enable_shared" = yes && enable_static=no
13810   if test -n "$RANLIB"; then
13811     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13812     postinstall_cmds='$RANLIB $lib'
13813   fi
13814   ;;
13815 aix[4-9]*)
13816   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13817     test "$enable_shared" = yes && enable_static=no
13818   fi
13819   ;;
13820 esac
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13822 $as_echo "$enable_shared" >&6; }
13823
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13825 $as_echo_n "checking whether to build static libraries... " >&6; }
13826 # Make sure either enable_shared or enable_static is yes.
13827 test "$enable_shared" = yes || enable_static=yes
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13829 $as_echo "$enable_static" >&6; }
13830
13831 GCC_F77="$G77"
13832 LD_F77="$LD"
13833
13834 lt_prog_compiler_wl_F77=
13835 lt_prog_compiler_pic_F77=
13836 lt_prog_compiler_static_F77=
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13839 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13840
13841   if test "$GCC" = yes; then
13842     lt_prog_compiler_wl_F77='-Wl,'
13843     lt_prog_compiler_static_F77='-static'
13844
13845     case $host_os in
13846       aix*)
13847       # All AIX code is PIC.
13848       if test "$host_cpu" = ia64; then
13849         # AIX 5 now supports IA64 processor
13850         lt_prog_compiler_static_F77='-Bstatic'
13851       fi
13852       ;;
13853
13854     amigaos*)
13855       # FIXME: we need at least 68020 code to build shared libraries, but
13856       # adding the `-m68020' flag to GCC prevents building anything better,
13857       # like `-m68040'.
13858       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13859       ;;
13860
13861     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13862       # PIC is the default for these OSes.
13863       ;;
13864
13865     mingw* | cygwin* | pw32* | os2*)
13866       # This hack is so that the source file can tell whether it is being
13867       # built for inclusion in a dll (and should export symbols for example).
13868       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13869       # (--disable-auto-import) libraries
13870       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13871       ;;
13872
13873     darwin* | rhapsody*)
13874       # PIC is the default on this platform
13875       # Common symbols not allowed in MH_DYLIB files
13876       lt_prog_compiler_pic_F77='-fno-common'
13877       ;;
13878
13879     interix[3-9]*)
13880       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13881       # Instead, we relocate shared libraries at runtime.
13882       ;;
13883
13884     msdosdjgpp*)
13885       # Just because we use GCC doesn't mean we suddenly get shared libraries
13886       # on systems that don't support them.
13887       lt_prog_compiler_can_build_shared_F77=no
13888       enable_shared=no
13889       ;;
13890
13891     sysv4*MP*)
13892       if test -d /usr/nec; then
13893         lt_prog_compiler_pic_F77=-Kconform_pic
13894       fi
13895       ;;
13896
13897     hpux*)
13898       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13899       # not for PA HP-UX.
13900       case $host_cpu in
13901       hppa*64*|ia64*)
13902         # +Z the default
13903         ;;
13904       *)
13905         lt_prog_compiler_pic_F77='-fPIC'
13906         ;;
13907       esac
13908       ;;
13909
13910     *)
13911       lt_prog_compiler_pic_F77='-fPIC'
13912       ;;
13913     esac
13914   else
13915     # PORTME Check for flag to pass linker flags through the system compiler.
13916     case $host_os in
13917     aix*)
13918       lt_prog_compiler_wl_F77='-Wl,'
13919       if test "$host_cpu" = ia64; then
13920         # AIX 5 now supports IA64 processor
13921         lt_prog_compiler_static_F77='-Bstatic'
13922       else
13923         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13924       fi
13925       ;;
13926       darwin*)
13927         # PIC is the default on this platform
13928         # Common symbols not allowed in MH_DYLIB files
13929        case $cc_basename in
13930          xlc*)
13931          lt_prog_compiler_pic_F77='-qnocommon'
13932          lt_prog_compiler_wl_F77='-Wl,'
13933          ;;
13934        esac
13935        ;;
13936
13937     mingw* | cygwin* | pw32* | os2*)
13938       # This hack is so that the source file can tell whether it is being
13939       # built for inclusion in a dll (and should export symbols for example).
13940       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13941       ;;
13942
13943     hpux9* | hpux10* | hpux11*)
13944       lt_prog_compiler_wl_F77='-Wl,'
13945       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946       # not for PA HP-UX.
13947       case $host_cpu in
13948       hppa*64*|ia64*)
13949         # +Z the default
13950         ;;
13951       *)
13952         lt_prog_compiler_pic_F77='+Z'
13953         ;;
13954       esac
13955       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13956       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13957       ;;
13958
13959     irix5* | irix6* | nonstopux*)
13960       lt_prog_compiler_wl_F77='-Wl,'
13961       # PIC (with -KPIC) is the default.
13962       lt_prog_compiler_static_F77='-non_shared'
13963       ;;
13964
13965     newsos6)
13966       lt_prog_compiler_pic_F77='-KPIC'
13967       lt_prog_compiler_static_F77='-Bstatic'
13968       ;;
13969
13970     linux* | k*bsd*-gnu)
13971       case $cc_basename in
13972       icc* | ecc*)
13973         lt_prog_compiler_wl_F77='-Wl,'
13974         lt_prog_compiler_pic_F77='-KPIC'
13975         lt_prog_compiler_static_F77='-static'
13976         ;;
13977       pgcc* | pgf77* | pgf90* | pgf95*)
13978         # Portland Group compilers (*not* the Pentium gcc compiler,
13979         # which looks to be a dead project)
13980         lt_prog_compiler_wl_F77='-Wl,'
13981         lt_prog_compiler_pic_F77='-fpic'
13982         lt_prog_compiler_static_F77='-Bstatic'
13983         ;;
13984       ccc*)
13985         lt_prog_compiler_wl_F77='-Wl,'
13986         # All Alpha code is PIC.
13987         lt_prog_compiler_static_F77='-non_shared'
13988         ;;
13989       *)
13990         case `$CC -V 2>&1 | sed 5q` in
13991         *Sun\ C*)
13992           # Sun C 5.9
13993           lt_prog_compiler_pic_F77='-KPIC'
13994           lt_prog_compiler_static_F77='-Bstatic'
13995           lt_prog_compiler_wl_F77='-Wl,'
13996           ;;
13997         *Sun\ F*)
13998           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13999           lt_prog_compiler_pic_F77='-KPIC'
14000           lt_prog_compiler_static_F77='-Bstatic'
14001           lt_prog_compiler_wl_F77=''
14002           ;;
14003         esac
14004         ;;
14005       esac
14006       ;;
14007
14008     osf3* | osf4* | osf5*)
14009       lt_prog_compiler_wl_F77='-Wl,'
14010       # All OSF/1 code is PIC.
14011       lt_prog_compiler_static_F77='-non_shared'
14012       ;;
14013
14014     rdos*)
14015       lt_prog_compiler_static_F77='-non_shared'
14016       ;;
14017
14018     solaris*)
14019       lt_prog_compiler_pic_F77='-KPIC'
14020       lt_prog_compiler_static_F77='-Bstatic'
14021       case $cc_basename in
14022       f77* | f90* | f95*)
14023         lt_prog_compiler_wl_F77='-Qoption ld ';;
14024       *)
14025         lt_prog_compiler_wl_F77='-Wl,';;
14026       esac
14027       ;;
14028
14029     sunos4*)
14030       lt_prog_compiler_wl_F77='-Qoption ld '
14031       lt_prog_compiler_pic_F77='-PIC'
14032       lt_prog_compiler_static_F77='-Bstatic'
14033       ;;
14034
14035     sysv4 | sysv4.2uw2* | sysv4.3*)
14036       lt_prog_compiler_wl_F77='-Wl,'
14037       lt_prog_compiler_pic_F77='-KPIC'
14038       lt_prog_compiler_static_F77='-Bstatic'
14039       ;;
14040
14041     sysv4*MP*)
14042       if test -d /usr/nec ;then
14043         lt_prog_compiler_pic_F77='-Kconform_pic'
14044         lt_prog_compiler_static_F77='-Bstatic'
14045       fi
14046       ;;
14047
14048     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14049       lt_prog_compiler_wl_F77='-Wl,'
14050       lt_prog_compiler_pic_F77='-KPIC'
14051       lt_prog_compiler_static_F77='-Bstatic'
14052       ;;
14053
14054     unicos*)
14055       lt_prog_compiler_wl_F77='-Wl,'
14056       lt_prog_compiler_can_build_shared_F77=no
14057       ;;
14058
14059     uts4*)
14060       lt_prog_compiler_pic_F77='-pic'
14061       lt_prog_compiler_static_F77='-Bstatic'
14062       ;;
14063
14064     *)
14065       lt_prog_compiler_can_build_shared_F77=no
14066       ;;
14067     esac
14068   fi
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14071 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14072
14073 #
14074 # Check to make sure the PIC flag actually works.
14075 #
14076 if test -n "$lt_prog_compiler_pic_F77"; then
14077
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14079 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14080 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14081   $as_echo_n "(cached) " >&6
14082 else
14083   lt_cv_prog_compiler_pic_works_F77=no
14084   ac_outfile=conftest.$ac_objext
14085    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14086    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14087    # Insert the option either (1) after the last *FLAGS variable, or
14088    # (2) before a word containing "conftest.", or (3) at the end.
14089    # Note that $ac_compile itself does not contain backslashes and begins
14090    # with a dollar sign (not a hyphen), so the echo should work correctly.
14091    # The option is referenced via a variable to avoid confusing sed.
14092    lt_compile=`echo "$ac_compile" | $SED \
14093    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14094    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14095    -e 's:$: $lt_compiler_flag:'`
14096    (eval echo "\"\$as_me:14096: $lt_compile\"" >&5)
14097    (eval "$lt_compile" 2>conftest.err)
14098    ac_status=$?
14099    cat conftest.err >&5
14100    echo "$as_me:14100: \$? = $ac_status" >&5
14101    if (exit $ac_status) && test -s "$ac_outfile"; then
14102      # The compiler can only warn and ignore the option if not recognized
14103      # So say no if there are warnings other than the usual output.
14104      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14105      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14106      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14107        lt_cv_prog_compiler_pic_works_F77=yes
14108      fi
14109    fi
14110    $rm conftest*
14111
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14114 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14115
14116 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14117     case $lt_prog_compiler_pic_F77 in
14118      "" | " "*) ;;
14119      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14120      esac
14121 else
14122     lt_prog_compiler_pic_F77=
14123      lt_prog_compiler_can_build_shared_F77=no
14124 fi
14125
14126 fi
14127 case $host_os in
14128   # For platforms which do not support PIC, -DPIC is meaningless:
14129   *djgpp*)
14130     lt_prog_compiler_pic_F77=
14131     ;;
14132   *)
14133     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14134     ;;
14135 esac
14136
14137 #
14138 # Check to make sure the static flag actually works.
14139 #
14140 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14142 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14143 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146   lt_cv_prog_compiler_static_works_F77=no
14147    save_LDFLAGS="$LDFLAGS"
14148    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14149    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14150    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14151      # The linker can only warn and ignore the option if not recognized
14152      # So say no if there are warnings
14153      if test -s conftest.err; then
14154        # Append any errors to the config.log.
14155        cat conftest.err 1>&5
14156        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14157        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14158        if diff conftest.exp conftest.er2 >/dev/null; then
14159          lt_cv_prog_compiler_static_works_F77=yes
14160        fi
14161      else
14162        lt_cv_prog_compiler_static_works_F77=yes
14163      fi
14164    fi
14165    $rm -r conftest*
14166    LDFLAGS="$save_LDFLAGS"
14167
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14170 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14171
14172 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14173     :
14174 else
14175     lt_prog_compiler_static_F77=
14176 fi
14177
14178
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14181 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14182   $as_echo_n "(cached) " >&6
14183 else
14184   lt_cv_prog_compiler_c_o_F77=no
14185    $rm -r conftest 2>/dev/null
14186    mkdir conftest
14187    cd conftest
14188    mkdir out
14189    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14190
14191    lt_compiler_flag="-o out/conftest2.$ac_objext"
14192    # Insert the option either (1) after the last *FLAGS variable, or
14193    # (2) before a word containing "conftest.", or (3) at the end.
14194    # Note that $ac_compile itself does not contain backslashes and begins
14195    # with a dollar sign (not a hyphen), so the echo should work correctly.
14196    lt_compile=`echo "$ac_compile" | $SED \
14197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14199    -e 's:$: $lt_compiler_flag:'`
14200    (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
14201    (eval "$lt_compile" 2>out/conftest.err)
14202    ac_status=$?
14203    cat out/conftest.err >&5
14204    echo "$as_me:14204: \$? = $ac_status" >&5
14205    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14206    then
14207      # The compiler can only warn and ignore the option if not recognized
14208      # So say no if there are warnings
14209      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14210      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14211      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14212        lt_cv_prog_compiler_c_o_F77=yes
14213      fi
14214    fi
14215    chmod u+w . 2>&5
14216    $rm conftest*
14217    # SGI C++ compiler will create directory out/ii_files/ for
14218    # template instantiation
14219    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14220    $rm out/* && rmdir out
14221    cd ..
14222    rmdir conftest
14223    $rm conftest*
14224
14225 fi
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14227 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14228
14229
14230 hard_links="nottested"
14231 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14232   # do not overwrite the value of need_locks provided by the user
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14234 $as_echo_n "checking if we can lock with hard links... " >&6; }
14235   hard_links=yes
14236   $rm conftest*
14237   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14238   touch conftest.a
14239   ln conftest.a conftest.b 2>&5 || hard_links=no
14240   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14242 $as_echo "$hard_links" >&6; }
14243   if test "$hard_links" = no; then
14244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14245 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14246     need_locks=warn
14247   fi
14248 else
14249   need_locks=no
14250 fi
14251
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14254
14255   runpath_var=
14256   allow_undefined_flag_F77=
14257   enable_shared_with_static_runtimes_F77=no
14258   archive_cmds_F77=
14259   archive_expsym_cmds_F77=
14260   old_archive_From_new_cmds_F77=
14261   old_archive_from_expsyms_cmds_F77=
14262   export_dynamic_flag_spec_F77=
14263   whole_archive_flag_spec_F77=
14264   thread_safe_flag_spec_F77=
14265   hardcode_libdir_flag_spec_F77=
14266   hardcode_libdir_flag_spec_ld_F77=
14267   hardcode_libdir_separator_F77=
14268   hardcode_direct_F77=no
14269   hardcode_minus_L_F77=no
14270   hardcode_shlibpath_var_F77=unsupported
14271   link_all_deplibs_F77=unknown
14272   hardcode_automatic_F77=no
14273   module_cmds_F77=
14274   module_expsym_cmds_F77=
14275   always_export_symbols_F77=no
14276   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14277   # include_expsyms should be a list of space-separated symbols to be *always*
14278   # included in the symbol list
14279   include_expsyms_F77=
14280   # exclude_expsyms can be an extended regexp of symbols to exclude
14281   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14282   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14283   # as well as any symbol that contains `d'.
14284   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14285   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14286   # platforms (ab)use it in PIC code, but their linkers get confused if
14287   # the symbol is explicitly referenced.  Since portable code cannot
14288   # rely on this symbol name, it's probably fine to never include it in
14289   # preloaded symbol tables.
14290   # Exclude shared library initialization/finalization symbols.
14291   extract_expsyms_cmds=
14292   # Just being paranoid about ensuring that cc_basename is set.
14293   for cc_temp in $compiler""; do
14294   case $cc_temp in
14295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14297     \-*) ;;
14298     *) break;;
14299   esac
14300 done
14301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14302
14303   case $host_os in
14304   cygwin* | mingw* | pw32*)
14305     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14306     # When not using gcc, we currently assume that we are using
14307     # Microsoft Visual C++.
14308     if test "$GCC" != yes; then
14309       with_gnu_ld=no
14310     fi
14311     ;;
14312   interix*)
14313     # we just hope/assume this is gcc and not c89 (= MSVC++)
14314     with_gnu_ld=yes
14315     ;;
14316   openbsd*)
14317     with_gnu_ld=no
14318     ;;
14319   esac
14320
14321   ld_shlibs_F77=yes
14322   if test "$with_gnu_ld" = yes; then
14323     # If archive_cmds runs LD, not CC, wlarc should be empty
14324     wlarc='${wl}'
14325
14326     # Set some defaults for GNU ld with shared library support. These
14327     # are reset later if shared libraries are not supported. Putting them
14328     # here allows them to be overridden if necessary.
14329     runpath_var=LD_RUN_PATH
14330     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14331     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14332     # ancient GNU ld didn't support --whole-archive et. al.
14333     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14334         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14335       else
14336         whole_archive_flag_spec_F77=
14337     fi
14338     supports_anon_versioning=no
14339     case `$LD -v 2>/dev/null` in
14340       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14341       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14342       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14343       *\ 2.11.*) ;; # other 2.11 versions
14344       *) supports_anon_versioning=yes ;;
14345     esac
14346
14347     # See if GNU ld supports shared libraries.
14348     case $host_os in
14349     aix[3-9]*)
14350       # On AIX/PPC, the GNU linker is very broken
14351       if test "$host_cpu" != ia64; then
14352         ld_shlibs_F77=no
14353         cat <<EOF 1>&2
14354
14355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14356 *** to be unable to reliably create shared libraries on AIX.
14357 *** Therefore, libtool is disabling shared libraries support.  If you
14358 *** really care for shared libraries, you may want to modify your PATH
14359 *** so that a non-GNU linker is found, and then restart.
14360
14361 EOF
14362       fi
14363       ;;
14364
14365     amigaos*)
14366       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)'
14367       hardcode_libdir_flag_spec_F77='-L$libdir'
14368       hardcode_minus_L_F77=yes
14369
14370       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14371       # that the semantics of dynamic libraries on AmigaOS, at least up
14372       # to version 4, is to share data among multiple programs linked
14373       # with the same dynamic library.  Since this doesn't match the
14374       # behavior of shared libraries on other platforms, we can't use
14375       # them.
14376       ld_shlibs_F77=no
14377       ;;
14378
14379     beos*)
14380       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14381         allow_undefined_flag_F77=unsupported
14382         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14383         # support --undefined.  This deserves some investigation.  FIXME
14384         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14385       else
14386         ld_shlibs_F77=no
14387       fi
14388       ;;
14389
14390     cygwin* | mingw* | pw32*)
14391       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14392       # as there is no search path for DLLs.
14393       hardcode_libdir_flag_spec_F77='-L$libdir'
14394       allow_undefined_flag_F77=unsupported
14395       always_export_symbols_F77=no
14396       enable_shared_with_static_runtimes_F77=yes
14397       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14398
14399       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14400         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14401         # If the export-symbols file already is a .def file (1st line
14402         # is EXPORTS), use it as is; otherwise, prepend...
14403         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14404           cp $export_symbols $output_objdir/$soname.def;
14405         else
14406           echo EXPORTS > $output_objdir/$soname.def;
14407           cat $export_symbols >> $output_objdir/$soname.def;
14408         fi~
14409         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14410       else
14411         ld_shlibs_F77=no
14412       fi
14413       ;;
14414
14415     interix[3-9]*)
14416       hardcode_direct_F77=no
14417       hardcode_shlibpath_var_F77=no
14418       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14419       export_dynamic_flag_spec_F77='${wl}-E'
14420       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14421       # Instead, shared libraries are loaded at an image base (0x10000000 by
14422       # default) and relocated if they conflict, which is a slow very memory
14423       # consuming and fragmenting process.  To avoid this, we pick a random,
14424       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14425       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14426       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'
14427       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'
14428       ;;
14429
14430     gnu* | linux* | k*bsd*-gnu)
14431       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14432         tmp_addflag=
14433         case $cc_basename,$host_cpu in
14434         pgcc*)                          # Portland Group C compiler
14435           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'
14436           tmp_addflag=' $pic_flag'
14437           ;;
14438         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14439           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'
14440           tmp_addflag=' $pic_flag -Mnomain' ;;
14441         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14442           tmp_addflag=' -i_dynamic' ;;
14443         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14444           tmp_addflag=' -i_dynamic -nofor_main' ;;
14445         ifc* | ifort*)                  # Intel Fortran compiler
14446           tmp_addflag=' -nofor_main' ;;
14447         esac
14448         case `$CC -V 2>&1 | sed 5q` in
14449         *Sun\ C*)                       # Sun C 5.9
14450           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'
14451           tmp_sharedflag='-G' ;;
14452         *Sun\ F*)                       # Sun Fortran 8.3
14453           tmp_sharedflag='-G' ;;
14454         *)
14455           tmp_sharedflag='-shared' ;;
14456         esac
14457         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14458
14459         if test $supports_anon_versioning = yes; then
14460           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14461   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14462   $echo "local: *; };" >> $output_objdir/$libname.ver~
14463           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14464         fi
14465         link_all_deplibs_F77=no
14466       else
14467         ld_shlibs_F77=no
14468       fi
14469       ;;
14470
14471     netbsd* | netbsdelf*-gnu)
14472       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14473         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14474         wlarc=
14475       else
14476         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14477         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14478       fi
14479       ;;
14480
14481     solaris*)
14482       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14483         ld_shlibs_F77=no
14484         cat <<EOF 1>&2
14485
14486 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14487 *** create shared libraries on Solaris systems.  Therefore, libtool
14488 *** is disabling shared libraries support.  We urge you to upgrade GNU
14489 *** binutils to release 2.9.1 or newer.  Another option is to modify
14490 *** your PATH or compiler configuration so that the native linker is
14491 *** used, and then restart.
14492
14493 EOF
14494       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14495         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14496         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14497       else
14498         ld_shlibs_F77=no
14499       fi
14500       ;;
14501
14502     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14503       case `$LD -v 2>&1` in
14504         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14505         ld_shlibs_F77=no
14506         cat <<_LT_EOF 1>&2
14507
14508 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14509 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14510 *** is disabling shared libraries support.  We urge you to upgrade GNU
14511 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14512 *** your PATH or compiler configuration so that the native linker is
14513 *** used, and then restart.
14514
14515 _LT_EOF
14516         ;;
14517         *)
14518           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14519             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14520             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14521             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14522           else
14523             ld_shlibs_F77=no
14524           fi
14525         ;;
14526       esac
14527       ;;
14528
14529     sunos4*)
14530       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14531       wlarc=
14532       hardcode_direct_F77=yes
14533       hardcode_shlibpath_var_F77=no
14534       ;;
14535
14536     *)
14537       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14538         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14539         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14540       else
14541         ld_shlibs_F77=no
14542       fi
14543       ;;
14544     esac
14545
14546     if test "$ld_shlibs_F77" = no; then
14547       runpath_var=
14548       hardcode_libdir_flag_spec_F77=
14549       export_dynamic_flag_spec_F77=
14550       whole_archive_flag_spec_F77=
14551     fi
14552   else
14553     # PORTME fill in a description of your system's linker (not GNU ld)
14554     case $host_os in
14555     aix3*)
14556       allow_undefined_flag_F77=unsupported
14557       always_export_symbols_F77=yes
14558       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'
14559       # Note: this linker hardcodes the directories in LIBPATH if there
14560       # are no directories specified by -L.
14561       hardcode_minus_L_F77=yes
14562       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14563         # Neither direct hardcoding nor static linking is supported with a
14564         # broken collect2.
14565         hardcode_direct_F77=unsupported
14566       fi
14567       ;;
14568
14569     aix[4-9]*)
14570       if test "$host_cpu" = ia64; then
14571         # On IA64, the linker does run time linking by default, so we don't
14572         # have to do anything special.
14573         aix_use_runtimelinking=no
14574         exp_sym_flag='-Bexport'
14575         no_entry_flag=""
14576       else
14577         # If we're using GNU nm, then we don't want the "-C" option.
14578         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14579         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14580           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'
14581         else
14582           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'
14583         fi
14584         aix_use_runtimelinking=no
14585
14586         # Test if we are trying to use run time linking or normal
14587         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14588         # need to do runtime linking.
14589         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14590           for ld_flag in $LDFLAGS; do
14591           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14592             aix_use_runtimelinking=yes
14593             break
14594           fi
14595           done
14596           ;;
14597         esac
14598
14599         exp_sym_flag='-bexport'
14600         no_entry_flag='-bnoentry'
14601       fi
14602
14603       # When large executables or shared objects are built, AIX ld can
14604       # have problems creating the table of contents.  If linking a library
14605       # or program results in "error TOC overflow" add -mminimal-toc to
14606       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14607       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14608
14609       archive_cmds_F77=''
14610       hardcode_direct_F77=yes
14611       hardcode_libdir_separator_F77=':'
14612       link_all_deplibs_F77=yes
14613
14614       if test "$GCC" = yes; then
14615         case $host_os in aix4.[012]|aix4.[012].*)
14616         # We only want to do this on AIX 4.2 and lower, the check
14617         # below for broken collect2 doesn't work under 4.3+
14618           collect2name=`${CC} -print-prog-name=collect2`
14619           if test -f "$collect2name" && \
14620            strings "$collect2name" | grep resolve_lib_name >/dev/null
14621           then
14622           # We have reworked collect2
14623           :
14624           else
14625           # We have old collect2
14626           hardcode_direct_F77=unsupported
14627           # It fails to find uninstalled libraries when the uninstalled
14628           # path is not listed in the libpath.  Setting hardcode_minus_L
14629           # to unsupported forces relinking
14630           hardcode_minus_L_F77=yes
14631           hardcode_libdir_flag_spec_F77='-L$libdir'
14632           hardcode_libdir_separator_F77=
14633           fi
14634           ;;
14635         esac
14636         shared_flag='-shared'
14637         if test "$aix_use_runtimelinking" = yes; then
14638           shared_flag="$shared_flag "'${wl}-G'
14639         fi
14640       else
14641         # not using gcc
14642         if test "$host_cpu" = ia64; then
14643         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14644         # chokes on -Wl,-G. The following line is correct:
14645           shared_flag='-G'
14646         else
14647           if test "$aix_use_runtimelinking" = yes; then
14648             shared_flag='${wl}-G'
14649           else
14650             shared_flag='${wl}-bM:SRE'
14651           fi
14652         fi
14653       fi
14654
14655       # It seems that -bexpall does not export symbols beginning with
14656       # underscore (_), so it is better to generate a list of symbols to export.
14657       always_export_symbols_F77=yes
14658       if test "$aix_use_runtimelinking" = yes; then
14659         # Warning - without using the other runtime loading flags (-brtl),
14660         # -berok will link without error, but may produce a broken library.
14661         allow_undefined_flag_F77='-berok'
14662        # Determine the default libpath from the value encoded in an empty executable.
14663        cat > conftest.$ac_ext <<_ACEOF
14664       program main
14665
14666       end
14667 _ACEOF
14668 if ac_fn_f77_try_link "$LINENO"; then :
14669
14670 lt_aix_libpath_sed='
14671     /Import File Strings/,/^$/ {
14672         /^0/ {
14673             s/^0  *\(.*\)$/\1/
14674             p
14675         }
14676     }'
14677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14678 # Check for a 64-bit object if we didn't find anything.
14679 if test -z "$aix_libpath"; then
14680   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14681 fi
14682 fi
14683 rm -f core conftest.err conftest.$ac_objext \
14684     conftest$ac_exeext conftest.$ac_ext
14685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14686
14687        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14688         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"
14689        else
14690         if test "$host_cpu" = ia64; then
14691           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14692           allow_undefined_flag_F77="-z nodefs"
14693           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"
14694         else
14695          # Determine the default libpath from the value encoded in an empty executable.
14696          cat > conftest.$ac_ext <<_ACEOF
14697       program main
14698
14699       end
14700 _ACEOF
14701 if ac_fn_f77_try_link "$LINENO"; then :
14702
14703 lt_aix_libpath_sed='
14704     /Import File Strings/,/^$/ {
14705         /^0/ {
14706             s/^0  *\(.*\)$/\1/
14707             p
14708         }
14709     }'
14710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14711 # Check for a 64-bit object if we didn't find anything.
14712 if test -z "$aix_libpath"; then
14713   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14714 fi
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext \
14717     conftest$ac_exeext conftest.$ac_ext
14718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14719
14720          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14721           # Warning - without using the other run time loading flags,
14722           # -berok will link without error, but may produce a broken library.
14723           no_undefined_flag_F77=' ${wl}-bernotok'
14724           allow_undefined_flag_F77=' ${wl}-berok'
14725           # Exported symbols can be pulled into shared objects from archives
14726           whole_archive_flag_spec_F77='$convenience'
14727           archive_cmds_need_lc_F77=yes
14728           # This is similar to how AIX traditionally builds its shared libraries.
14729           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'
14730         fi
14731       fi
14732       ;;
14733
14734     amigaos*)
14735       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)'
14736       hardcode_libdir_flag_spec_F77='-L$libdir'
14737       hardcode_minus_L_F77=yes
14738       # see comment about different semantics on the GNU ld section
14739       ld_shlibs_F77=no
14740       ;;
14741
14742     bsdi[45]*)
14743       export_dynamic_flag_spec_F77=-rdynamic
14744       ;;
14745
14746     cygwin* | mingw* | pw32*)
14747       # When not using gcc, we currently assume that we are using
14748       # Microsoft Visual C++.
14749       # hardcode_libdir_flag_spec is actually meaningless, as there is
14750       # no search path for DLLs.
14751       hardcode_libdir_flag_spec_F77=' '
14752       allow_undefined_flag_F77=unsupported
14753       # Tell ltmain to make .lib files, not .a files.
14754       libext=lib
14755       # Tell ltmain to make .dll files, not .so files.
14756       shrext_cmds=".dll"
14757       # FIXME: Setting linknames here is a bad hack.
14758       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14759       # The linker will automatically build a .lib file if we build a DLL.
14760       old_archive_From_new_cmds_F77='true'
14761       # FIXME: Should let the user specify the lib program.
14762       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14763       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14764       enable_shared_with_static_runtimes_F77=yes
14765       ;;
14766
14767     darwin* | rhapsody*)
14768       case $host_os in
14769         rhapsody* | darwin1.[012])
14770          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14771          ;;
14772        *) # Darwin 1.3 on
14773          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14774            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14775          else
14776            case ${MACOSX_DEPLOYMENT_TARGET} in
14777              10.[012])
14778                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14779                ;;
14780              10.*)
14781                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14782                ;;
14783            esac
14784          fi
14785          ;;
14786       esac
14787       archive_cmds_need_lc_F77=no
14788       hardcode_direct_F77=no
14789       hardcode_automatic_F77=yes
14790       hardcode_shlibpath_var_F77=unsupported
14791       whole_archive_flag_spec_F77=''
14792       link_all_deplibs_F77=yes
14793     if test "$GCC" = yes ; then
14794         output_verbose_link_cmd='echo'
14795         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}"
14796         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14797         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}"
14798         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}"
14799     else
14800       case $cc_basename in
14801         xlc*)
14802          output_verbose_link_cmd='echo'
14803          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14804          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14805           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14806          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}'
14807           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}'
14808           ;;
14809        *)
14810          ld_shlibs_F77=no
14811           ;;
14812       esac
14813     fi
14814       ;;
14815
14816     dgux*)
14817       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818       hardcode_libdir_flag_spec_F77='-L$libdir'
14819       hardcode_shlibpath_var_F77=no
14820       ;;
14821
14822     freebsd1*)
14823       ld_shlibs_F77=no
14824       ;;
14825
14826     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14827     # support.  Future versions do this automatically, but an explicit c++rt0.o
14828     # does not break anything, and helps significantly (at the cost of a little
14829     # extra space).
14830     freebsd2.2*)
14831       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14832       hardcode_libdir_flag_spec_F77='-R$libdir'
14833       hardcode_direct_F77=yes
14834       hardcode_shlibpath_var_F77=no
14835       ;;
14836
14837     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14838     freebsd2*)
14839       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14840       hardcode_direct_F77=yes
14841       hardcode_minus_L_F77=yes
14842       hardcode_shlibpath_var_F77=no
14843       ;;
14844
14845     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14846     freebsd* | dragonfly*)
14847       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14848       hardcode_libdir_flag_spec_F77='-R$libdir'
14849       hardcode_direct_F77=yes
14850       hardcode_shlibpath_var_F77=no
14851       ;;
14852
14853     hpux9*)
14854       if test "$GCC" = yes; then
14855         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'
14856       else
14857         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'
14858       fi
14859       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14860       hardcode_libdir_separator_F77=:
14861       hardcode_direct_F77=yes
14862
14863       # hardcode_minus_L: Not really in the search PATH,
14864       # but as the default location of the library.
14865       hardcode_minus_L_F77=yes
14866       export_dynamic_flag_spec_F77='${wl}-E'
14867       ;;
14868
14869     hpux10*)
14870       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14871         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14872       else
14873         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14874       fi
14875       if test "$with_gnu_ld" = no; then
14876         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14877         hardcode_libdir_separator_F77=:
14878
14879         hardcode_direct_F77=yes
14880         export_dynamic_flag_spec_F77='${wl}-E'
14881
14882         # hardcode_minus_L: Not really in the search PATH,
14883         # but as the default location of the library.
14884         hardcode_minus_L_F77=yes
14885       fi
14886       ;;
14887
14888     hpux11*)
14889       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14890         case $host_cpu in
14891         hppa*64*)
14892           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14893           ;;
14894         ia64*)
14895           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14896           ;;
14897         *)
14898           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14899           ;;
14900         esac
14901       else
14902         case $host_cpu in
14903         hppa*64*)
14904           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905           ;;
14906         ia64*)
14907           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14908           ;;
14909         *)
14910           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14911           ;;
14912         esac
14913       fi
14914       if test "$with_gnu_ld" = no; then
14915         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14916         hardcode_libdir_separator_F77=:
14917
14918         case $host_cpu in
14919         hppa*64*|ia64*)
14920           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14921           hardcode_direct_F77=no
14922           hardcode_shlibpath_var_F77=no
14923           ;;
14924         *)
14925           hardcode_direct_F77=yes
14926           export_dynamic_flag_spec_F77='${wl}-E'
14927
14928           # hardcode_minus_L: Not really in the search PATH,
14929           # but as the default location of the library.
14930           hardcode_minus_L_F77=yes
14931           ;;
14932         esac
14933       fi
14934       ;;
14935
14936     irix5* | irix6* | nonstopux*)
14937       if test "$GCC" = yes; then
14938         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'
14939       else
14940         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'
14941         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14942       fi
14943       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14944       hardcode_libdir_separator_F77=:
14945       link_all_deplibs_F77=yes
14946       ;;
14947
14948     netbsd* | netbsdelf*-gnu)
14949       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14950         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14951       else
14952         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14953       fi
14954       hardcode_libdir_flag_spec_F77='-R$libdir'
14955       hardcode_direct_F77=yes
14956       hardcode_shlibpath_var_F77=no
14957       ;;
14958
14959     newsos6)
14960       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961       hardcode_direct_F77=yes
14962       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14963       hardcode_libdir_separator_F77=:
14964       hardcode_shlibpath_var_F77=no
14965       ;;
14966
14967     openbsd*)
14968       if test -f /usr/libexec/ld.so; then
14969         hardcode_direct_F77=yes
14970         hardcode_shlibpath_var_F77=no
14971         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14972           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14973           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14974           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14975           export_dynamic_flag_spec_F77='${wl}-E'
14976         else
14977           case $host_os in
14978            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14979              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14980              hardcode_libdir_flag_spec_F77='-R$libdir'
14981              ;;
14982            *)
14983              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14984              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14985              ;;
14986           esac
14987         fi
14988       else
14989         ld_shlibs_F77=no
14990       fi
14991       ;;
14992
14993     os2*)
14994       hardcode_libdir_flag_spec_F77='-L$libdir'
14995       hardcode_minus_L_F77=yes
14996       allow_undefined_flag_F77=unsupported
14997       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'
14998       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14999       ;;
15000
15001     osf3*)
15002       if test "$GCC" = yes; then
15003         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15004         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'
15005       else
15006         allow_undefined_flag_F77=' -expect_unresolved \*'
15007         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'
15008       fi
15009       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15010       hardcode_libdir_separator_F77=:
15011       ;;
15012
15013     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15014       if test "$GCC" = yes; then
15015         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15016         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'
15017         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15018       else
15019         allow_undefined_flag_F77=' -expect_unresolved \*'
15020         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'
15021         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~
15022         $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'
15023
15024         # Both c and cxx compiler support -rpath directly
15025         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15026       fi
15027       hardcode_libdir_separator_F77=:
15028       ;;
15029
15030     solaris*)
15031       no_undefined_flag_F77=' -z text'
15032       if test "$GCC" = yes; then
15033         wlarc='${wl}'
15034         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15035         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15036           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15037       else
15038         wlarc=''
15039         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15040         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15041         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15042       fi
15043       hardcode_libdir_flag_spec_F77='-R$libdir'
15044       hardcode_shlibpath_var_F77=no
15045       case $host_os in
15046       solaris2.[0-5] | solaris2.[0-5].*) ;;
15047       *)
15048         # The compiler driver will combine and reorder linker options,
15049         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15050         # but is careful enough not to reorder.
15051         # Supported since Solaris 2.6 (maybe 2.5.1?)
15052         if test "$GCC" = yes; then
15053           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15054         else
15055           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15056         fi
15057         ;;
15058       esac
15059       link_all_deplibs_F77=yes
15060       ;;
15061
15062     sunos4*)
15063       if test "x$host_vendor" = xsequent; then
15064         # Use $CC to link under sequent, because it throws in some extra .o
15065         # files that make .init and .fini sections work.
15066         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15067       else
15068         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15069       fi
15070       hardcode_libdir_flag_spec_F77='-L$libdir'
15071       hardcode_direct_F77=yes
15072       hardcode_minus_L_F77=yes
15073       hardcode_shlibpath_var_F77=no
15074       ;;
15075
15076     sysv4)
15077       case $host_vendor in
15078         sni)
15079           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080           hardcode_direct_F77=yes # is this really true???
15081         ;;
15082         siemens)
15083           ## LD is ld it makes a PLAMLIB
15084           ## CC just makes a GrossModule.
15085           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15086           reload_cmds_F77='$CC -r -o $output$reload_objs'
15087           hardcode_direct_F77=no
15088         ;;
15089         motorola)
15090           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15091           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15092         ;;
15093       esac
15094       runpath_var='LD_RUN_PATH'
15095       hardcode_shlibpath_var_F77=no
15096       ;;
15097
15098     sysv4.3*)
15099       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15100       hardcode_shlibpath_var_F77=no
15101       export_dynamic_flag_spec_F77='-Bexport'
15102       ;;
15103
15104     sysv4*MP*)
15105       if test -d /usr/nec; then
15106         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15107         hardcode_shlibpath_var_F77=no
15108         runpath_var=LD_RUN_PATH
15109         hardcode_runpath_var=yes
15110         ld_shlibs_F77=yes
15111       fi
15112       ;;
15113
15114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15115       no_undefined_flag_F77='${wl}-z,text'
15116       archive_cmds_need_lc_F77=no
15117       hardcode_shlibpath_var_F77=no
15118       runpath_var='LD_RUN_PATH'
15119
15120       if test "$GCC" = yes; then
15121         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15122         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15123       else
15124         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15125         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126       fi
15127       ;;
15128
15129     sysv5* | sco3.2v5* | sco5v6*)
15130       # Note: We can NOT use -z defs as we might desire, because we do not
15131       # link with -lc, and that would cause any symbols used from libc to
15132       # always be unresolved, which means just about no library would
15133       # ever link correctly.  If we're not using GNU ld we use -z text
15134       # though, which does catch some bad symbols but isn't as heavy-handed
15135       # as -z defs.
15136       no_undefined_flag_F77='${wl}-z,text'
15137       allow_undefined_flag_F77='${wl}-z,nodefs'
15138       archive_cmds_need_lc_F77=no
15139       hardcode_shlibpath_var_F77=no
15140       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15141       hardcode_libdir_separator_F77=':'
15142       link_all_deplibs_F77=yes
15143       export_dynamic_flag_spec_F77='${wl}-Bexport'
15144       runpath_var='LD_RUN_PATH'
15145
15146       if test "$GCC" = yes; then
15147         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15148         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15149       else
15150         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15152       fi
15153       ;;
15154
15155     uts4*)
15156       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15157       hardcode_libdir_flag_spec_F77='-L$libdir'
15158       hardcode_shlibpath_var_F77=no
15159       ;;
15160
15161     *)
15162       ld_shlibs_F77=no
15163       ;;
15164     esac
15165   fi
15166
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15168 $as_echo "$ld_shlibs_F77" >&6; }
15169 test "$ld_shlibs_F77" = no && can_build_shared=no
15170
15171 #
15172 # Do we need to explicitly link libc?
15173 #
15174 case "x$archive_cmds_need_lc_F77" in
15175 x|xyes)
15176   # Assume -lc should be added
15177   archive_cmds_need_lc_F77=yes
15178
15179   if test "$enable_shared" = yes && test "$GCC" = yes; then
15180     case $archive_cmds_F77 in
15181     *'~'*)
15182       # FIXME: we may have to deal with multi-command sequences.
15183       ;;
15184     '$CC '*)
15185       # Test whether the compiler implicitly links with -lc since on some
15186       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15187       # to ld, don't add -lc before -lgcc.
15188       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15190       $rm conftest*
15191       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15192
15193       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15194   (eval $ac_compile) 2>&5
15195   ac_status=$?
15196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197   test $ac_status = 0; } 2>conftest.err; then
15198         soname=conftest
15199         lib=conftest
15200         libobjs=conftest.$ac_objext
15201         deplibs=
15202         wl=$lt_prog_compiler_wl_F77
15203         pic_flag=$lt_prog_compiler_pic_F77
15204         compiler_flags=-v
15205         linker_flags=-v
15206         verstring=
15207         output_objdir=.
15208         libname=conftest
15209         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15210         allow_undefined_flag_F77=
15211         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15212   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15213   ac_status=$?
15214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15215   test $ac_status = 0; }
15216         then
15217           archive_cmds_need_lc_F77=no
15218         else
15219           archive_cmds_need_lc_F77=yes
15220         fi
15221         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15222       else
15223         cat conftest.err 1>&5
15224       fi
15225       $rm conftest*
15226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15227 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15228       ;;
15229     esac
15230   fi
15231   ;;
15232 esac
15233
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15235 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15236 library_names_spec=
15237 libname_spec='lib$name'
15238 soname_spec=
15239 shrext_cmds=".so"
15240 postinstall_cmds=
15241 postuninstall_cmds=
15242 finish_cmds=
15243 finish_eval=
15244 shlibpath_var=
15245 shlibpath_overrides_runpath=unknown
15246 version_type=none
15247 dynamic_linker="$host_os ld.so"
15248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15249
15250 need_lib_prefix=unknown
15251 hardcode_into_libs=no
15252
15253 # when you set need_version to no, make sure it does not cause -set_version
15254 # flags to be left without arguments
15255 need_version=unknown
15256
15257 case $host_os in
15258 aix3*)
15259   version_type=linux
15260   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15261   shlibpath_var=LIBPATH
15262
15263   # AIX 3 has no versioning support, so we append a major version to the name.
15264   soname_spec='${libname}${release}${shared_ext}$major'
15265   ;;
15266
15267 aix[4-9]*)
15268   version_type=linux
15269   need_lib_prefix=no
15270   need_version=no
15271   hardcode_into_libs=yes
15272   if test "$host_cpu" = ia64; then
15273     # AIX 5 supports IA64
15274     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15275     shlibpath_var=LD_LIBRARY_PATH
15276   else
15277     # With GCC up to 2.95.x, collect2 would create an import file
15278     # for dependence libraries.  The import file would start with
15279     # the line `#! .'.  This would cause the generated library to
15280     # depend on `.', always an invalid library.  This was fixed in
15281     # development snapshots of GCC prior to 3.0.
15282     case $host_os in
15283       aix4 | aix4.[01] | aix4.[01].*)
15284       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15285            echo ' yes '
15286            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15287         :
15288       else
15289         can_build_shared=no
15290       fi
15291       ;;
15292     esac
15293     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15294     # soname into executable. Probably we can add versioning support to
15295     # collect2, so additional links can be useful in future.
15296     if test "$aix_use_runtimelinking" = yes; then
15297       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15298       # instead of lib<name>.a to let people know that these are not
15299       # typical AIX shared libraries.
15300       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301     else
15302       # We preserve .a as extension for shared libraries through AIX4.2
15303       # and later when we are not doing run time linking.
15304       library_names_spec='${libname}${release}.a $libname.a'
15305       soname_spec='${libname}${release}${shared_ext}$major'
15306     fi
15307     shlibpath_var=LIBPATH
15308   fi
15309   ;;
15310
15311 amigaos*)
15312   library_names_spec='$libname.ixlibrary $libname.a'
15313   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15314   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'
15315   ;;
15316
15317 beos*)
15318   library_names_spec='${libname}${shared_ext}'
15319   dynamic_linker="$host_os ld.so"
15320   shlibpath_var=LIBRARY_PATH
15321   ;;
15322
15323 bsdi[45]*)
15324   version_type=linux
15325   need_version=no
15326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327   soname_spec='${libname}${release}${shared_ext}$major'
15328   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15329   shlibpath_var=LD_LIBRARY_PATH
15330   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15331   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15332   # the default ld.so.conf also contains /usr/contrib/lib and
15333   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15334   # libtool to hard-code these into programs
15335   ;;
15336
15337 cygwin* | mingw* | pw32*)
15338   version_type=windows
15339   shrext_cmds=".dll"
15340   need_version=no
15341   need_lib_prefix=no
15342
15343   case $GCC,$host_os in
15344   yes,cygwin* | yes,mingw* | yes,pw32*)
15345     library_names_spec='$libname.dll.a'
15346     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15347     postinstall_cmds='base_file=`basename \${file}`~
15348       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15349       dldir=$destdir/`dirname \$dlpath`~
15350       test -d \$dldir || mkdir -p \$dldir~
15351       $install_prog $dir/$dlname \$dldir/$dlname~
15352       chmod a+x \$dldir/$dlname'
15353     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15354       dlpath=$dir/\$dldll~
15355        $rm \$dlpath'
15356     shlibpath_overrides_runpath=yes
15357
15358     case $host_os in
15359     cygwin*)
15360       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15361       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15362       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15363       ;;
15364     mingw*)
15365       # MinGW DLLs use traditional 'lib' prefix
15366       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15367       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15368       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15369         # It is most probably a Windows format PATH printed by
15370         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15371         # path with ; separators, and with drive letters. We can handle the
15372         # drive letters (cygwin fileutils understands them), so leave them,
15373         # especially as we might pass files found there to a mingw objdump,
15374         # which wouldn't understand a cygwinified path. Ahh.
15375         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15376       else
15377         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15378       fi
15379       ;;
15380     pw32*)
15381       # pw32 DLLs use 'pw' prefix rather than 'lib'
15382       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15383       ;;
15384     esac
15385     ;;
15386
15387   *)
15388     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15389     ;;
15390   esac
15391   dynamic_linker='Win32 ld.exe'
15392   # FIXME: first we should search . and the directory the executable is in
15393   shlibpath_var=PATH
15394   ;;
15395
15396 darwin* | rhapsody*)
15397   dynamic_linker="$host_os dyld"
15398   version_type=darwin
15399   need_lib_prefix=no
15400   need_version=no
15401   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15402   soname_spec='${libname}${release}${major}$shared_ext'
15403   shlibpath_overrides_runpath=yes
15404   shlibpath_var=DYLD_LIBRARY_PATH
15405   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15406
15407   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15408   ;;
15409
15410 dgux*)
15411   version_type=linux
15412   need_lib_prefix=no
15413   need_version=no
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   shlibpath_var=LD_LIBRARY_PATH
15417   ;;
15418
15419 freebsd1*)
15420   dynamic_linker=no
15421   ;;
15422
15423 freebsd* | dragonfly*)
15424   # DragonFly does not have aout.  When/if they implement a new
15425   # versioning mechanism, adjust this.
15426   if test -x /usr/bin/objformat; then
15427     objformat=`/usr/bin/objformat`
15428   else
15429     case $host_os in
15430     freebsd[123]*) objformat=aout ;;
15431     *) objformat=elf ;;
15432     esac
15433   fi
15434   version_type=freebsd-$objformat
15435   case $version_type in
15436     freebsd-elf*)
15437       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15438       need_version=no
15439       need_lib_prefix=no
15440       ;;
15441     freebsd-*)
15442       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15443       need_version=yes
15444       ;;
15445   esac
15446   shlibpath_var=LD_LIBRARY_PATH
15447   case $host_os in
15448   freebsd2*)
15449     shlibpath_overrides_runpath=yes
15450     ;;
15451   freebsd3.[01]* | freebsdelf3.[01]*)
15452     shlibpath_overrides_runpath=yes
15453     hardcode_into_libs=yes
15454     ;;
15455   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15456   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15457     shlibpath_overrides_runpath=no
15458     hardcode_into_libs=yes
15459     ;;
15460   *) # from 4.6 on, and DragonFly
15461     shlibpath_overrides_runpath=yes
15462     hardcode_into_libs=yes
15463     ;;
15464   esac
15465   ;;
15466
15467 gnu*)
15468   version_type=linux
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   shlibpath_var=LD_LIBRARY_PATH
15474   hardcode_into_libs=yes
15475   ;;
15476
15477 hpux9* | hpux10* | hpux11*)
15478   # Give a soname corresponding to the major version so that dld.sl refuses to
15479   # link against other versions.
15480   version_type=sunos
15481   need_lib_prefix=no
15482   need_version=no
15483   case $host_cpu in
15484   ia64*)
15485     shrext_cmds='.so'
15486     hardcode_into_libs=yes
15487     dynamic_linker="$host_os dld.so"
15488     shlibpath_var=LD_LIBRARY_PATH
15489     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491     soname_spec='${libname}${release}${shared_ext}$major'
15492     if test "X$HPUX_IA64_MODE" = X32; then
15493       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15494     else
15495       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15496     fi
15497     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15498     ;;
15499    hppa*64*)
15500      shrext_cmds='.sl'
15501      hardcode_into_libs=yes
15502      dynamic_linker="$host_os dld.sl"
15503      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15504      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15505      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506      soname_spec='${libname}${release}${shared_ext}$major'
15507      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15508      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15509      ;;
15510    *)
15511     shrext_cmds='.sl'
15512     dynamic_linker="$host_os dld.sl"
15513     shlibpath_var=SHLIB_PATH
15514     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516     soname_spec='${libname}${release}${shared_ext}$major'
15517     ;;
15518   esac
15519   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15520   postinstall_cmds='chmod 555 $lib'
15521   ;;
15522
15523 interix[3-9]*)
15524   version_type=linux
15525   need_lib_prefix=no
15526   need_version=no
15527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15528   soname_spec='${libname}${release}${shared_ext}$major'
15529   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15530   shlibpath_var=LD_LIBRARY_PATH
15531   shlibpath_overrides_runpath=no
15532   hardcode_into_libs=yes
15533   ;;
15534
15535 irix5* | irix6* | nonstopux*)
15536   case $host_os in
15537     nonstopux*) version_type=nonstopux ;;
15538     *)
15539         if test "$lt_cv_prog_gnu_ld" = yes; then
15540                 version_type=linux
15541         else
15542                 version_type=irix
15543         fi ;;
15544   esac
15545   need_lib_prefix=no
15546   need_version=no
15547   soname_spec='${libname}${release}${shared_ext}$major'
15548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15549   case $host_os in
15550   irix5* | nonstopux*)
15551     libsuff= shlibsuff=
15552     ;;
15553   *)
15554     case $LD in # libtool.m4 will add one of these switches to LD
15555     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15556       libsuff= shlibsuff= libmagic=32-bit;;
15557     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15558       libsuff=32 shlibsuff=N32 libmagic=N32;;
15559     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15560       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15561     *) libsuff= shlibsuff= libmagic=never-match;;
15562     esac
15563     ;;
15564   esac
15565   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15566   shlibpath_overrides_runpath=no
15567   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15568   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15569   hardcode_into_libs=yes
15570   ;;
15571
15572 # No shared lib support for Linux oldld, aout, or coff.
15573 linux*oldld* | linux*aout* | linux*coff*)
15574   dynamic_linker=no
15575   ;;
15576
15577 # This must be Linux ELF.
15578 linux* | k*bsd*-gnu)
15579   version_type=linux
15580   need_lib_prefix=no
15581   need_version=no
15582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583   soname_spec='${libname}${release}${shared_ext}$major'
15584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15585   shlibpath_var=LD_LIBRARY_PATH
15586   shlibpath_overrides_runpath=no
15587   # This implies no fast_install, which is unacceptable.
15588   # Some rework will be needed to allow for fast_install
15589   # before this can be enabled.
15590   hardcode_into_libs=yes
15591
15592   # Append ld.so.conf contents to the search path
15593   if test -f /etc/ld.so.conf; then
15594     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' ' '`
15595     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15596   fi
15597
15598   # We used to test for /lib/ld.so.1 and disable shared libraries on
15599   # powerpc, because MkLinux only supported shared libraries with the
15600   # GNU dynamic linker.  Since this was broken with cross compilers,
15601   # most powerpc-linux boxes support dynamic linking these days and
15602   # people can always --disable-shared, the test was removed, and we
15603   # assume the GNU/Linux dynamic linker is in use.
15604   dynamic_linker='GNU/Linux ld.so'
15605   ;;
15606
15607 netbsdelf*-gnu)
15608   version_type=linux
15609   need_lib_prefix=no
15610   need_version=no
15611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15612   soname_spec='${libname}${release}${shared_ext}$major'
15613   shlibpath_var=LD_LIBRARY_PATH
15614   shlibpath_overrides_runpath=no
15615   hardcode_into_libs=yes
15616   dynamic_linker='NetBSD ld.elf_so'
15617   ;;
15618
15619 netbsd*)
15620   version_type=sunos
15621   need_lib_prefix=no
15622   need_version=no
15623   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15625     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15626     dynamic_linker='NetBSD (a.out) ld.so'
15627   else
15628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15629     soname_spec='${libname}${release}${shared_ext}$major'
15630     dynamic_linker='NetBSD ld.elf_so'
15631   fi
15632   shlibpath_var=LD_LIBRARY_PATH
15633   shlibpath_overrides_runpath=yes
15634   hardcode_into_libs=yes
15635   ;;
15636
15637 newsos6)
15638   version_type=linux
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640   shlibpath_var=LD_LIBRARY_PATH
15641   shlibpath_overrides_runpath=yes
15642   ;;
15643
15644 nto-qnx*)
15645   version_type=linux
15646   need_lib_prefix=no
15647   need_version=no
15648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649   soname_spec='${libname}${release}${shared_ext}$major'
15650   shlibpath_var=LD_LIBRARY_PATH
15651   shlibpath_overrides_runpath=yes
15652   ;;
15653
15654 openbsd*)
15655   version_type=sunos
15656   sys_lib_dlsearch_path_spec="/usr/lib"
15657   need_lib_prefix=no
15658   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15659   case $host_os in
15660     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15661     *)                         need_version=no  ;;
15662   esac
15663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15664   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15665   shlibpath_var=LD_LIBRARY_PATH
15666   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15667     case $host_os in
15668       openbsd2.[89] | openbsd2.[89].*)
15669         shlibpath_overrides_runpath=no
15670         ;;
15671       *)
15672         shlibpath_overrides_runpath=yes
15673         ;;
15674       esac
15675   else
15676     shlibpath_overrides_runpath=yes
15677   fi
15678   ;;
15679
15680 os2*)
15681   libname_spec='$name'
15682   shrext_cmds=".dll"
15683   need_lib_prefix=no
15684   library_names_spec='$libname${shared_ext} $libname.a'
15685   dynamic_linker='OS/2 ld.exe'
15686   shlibpath_var=LIBPATH
15687   ;;
15688
15689 osf3* | osf4* | osf5*)
15690   version_type=osf
15691   need_lib_prefix=no
15692   need_version=no
15693   soname_spec='${libname}${release}${shared_ext}$major'
15694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695   shlibpath_var=LD_LIBRARY_PATH
15696   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15697   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15698   ;;
15699
15700 rdos*)
15701   dynamic_linker=no
15702   ;;
15703
15704 solaris*)
15705   version_type=linux
15706   need_lib_prefix=no
15707   need_version=no
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709   soname_spec='${libname}${release}${shared_ext}$major'
15710   shlibpath_var=LD_LIBRARY_PATH
15711   shlibpath_overrides_runpath=yes
15712   hardcode_into_libs=yes
15713   # ldd complains unless libraries are executable
15714   postinstall_cmds='chmod +x $lib'
15715   ;;
15716
15717 sunos4*)
15718   version_type=sunos
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15720   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   shlibpath_overrides_runpath=yes
15723   if test "$with_gnu_ld" = yes; then
15724     need_lib_prefix=no
15725   fi
15726   need_version=yes
15727   ;;
15728
15729 sysv4 | sysv4.3*)
15730   version_type=linux
15731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732   soname_spec='${libname}${release}${shared_ext}$major'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   case $host_vendor in
15735     sni)
15736       shlibpath_overrides_runpath=no
15737       need_lib_prefix=no
15738       export_dynamic_flag_spec='${wl}-Blargedynsym'
15739       runpath_var=LD_RUN_PATH
15740       ;;
15741     siemens)
15742       need_lib_prefix=no
15743       ;;
15744     motorola)
15745       need_lib_prefix=no
15746       need_version=no
15747       shlibpath_overrides_runpath=no
15748       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15749       ;;
15750   esac
15751   ;;
15752
15753 sysv4*MP*)
15754   if test -d /usr/nec ;then
15755     version_type=linux
15756     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15757     soname_spec='$libname${shared_ext}.$major'
15758     shlibpath_var=LD_LIBRARY_PATH
15759   fi
15760   ;;
15761
15762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15763   version_type=freebsd-elf
15764   need_lib_prefix=no
15765   need_version=no
15766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15767   soname_spec='${libname}${release}${shared_ext}$major'
15768   shlibpath_var=LD_LIBRARY_PATH
15769   hardcode_into_libs=yes
15770   if test "$with_gnu_ld" = yes; then
15771     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15772     shlibpath_overrides_runpath=no
15773   else
15774     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15775     shlibpath_overrides_runpath=yes
15776     case $host_os in
15777       sco3.2v5*)
15778         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15779         ;;
15780     esac
15781   fi
15782   sys_lib_dlsearch_path_spec='/usr/lib'
15783   ;;
15784
15785 uts4*)
15786   version_type=linux
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788   soname_spec='${libname}${release}${shared_ext}$major'
15789   shlibpath_var=LD_LIBRARY_PATH
15790   ;;
15791
15792 *)
15793   dynamic_linker=no
15794   ;;
15795 esac
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15797 $as_echo "$dynamic_linker" >&6; }
15798 test "$dynamic_linker" = no && can_build_shared=no
15799
15800 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15801   $as_echo_n "(cached) " >&6
15802 else
15803   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15804 fi
15805
15806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15807 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15808   $as_echo_n "(cached) " >&6
15809 else
15810   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15811 fi
15812
15813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15814
15815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15816 if test "$GCC" = yes; then
15817   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15818 fi
15819
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15821 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15822 hardcode_action_F77=
15823 if test -n "$hardcode_libdir_flag_spec_F77" || \
15824    test -n "$runpath_var_F77" || \
15825    test "X$hardcode_automatic_F77" = "Xyes" ; then
15826
15827   # We can hardcode non-existant directories.
15828   if test "$hardcode_direct_F77" != no &&
15829      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15830      # have to relink, otherwise we might link with an installed library
15831      # when we should be linking with a yet-to-be-installed one
15832      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15833      test "$hardcode_minus_L_F77" != no; then
15834     # Linking always hardcodes the temporary library directory.
15835     hardcode_action_F77=relink
15836   else
15837     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15838     hardcode_action_F77=immediate
15839   fi
15840 else
15841   # We cannot hardcode anything, or else we can only hardcode existing
15842   # directories.
15843   hardcode_action_F77=unsupported
15844 fi
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15846 $as_echo "$hardcode_action_F77" >&6; }
15847
15848 if test "$hardcode_action_F77" = relink; then
15849   # Fast installation is not supported
15850   enable_fast_install=no
15851 elif test "$shlibpath_overrides_runpath" = yes ||
15852      test "$enable_shared" = no; then
15853   # Fast installation is not necessary
15854   enable_fast_install=needless
15855 fi
15856
15857
15858 # The else clause should only fire when bootstrapping the
15859 # libtool distribution, otherwise you forgot to ship ltmain.sh
15860 # with your package, and you will get complaints that there are
15861 # no rules to generate ltmain.sh.
15862 if test -f "$ltmain"; then
15863   # See if we are running on zsh, and set the options which allow our commands through
15864   # without removal of \ escapes.
15865   if test -n "${ZSH_VERSION+set}" ; then
15866     setopt NO_GLOB_SUBST
15867   fi
15868   # Now quote all the things that may contain metacharacters while being
15869   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15870   # variables and quote the copies for generation of the libtool script.
15871   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15872     SED SHELL STRIP \
15873     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15874     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15875     deplibs_check_method reload_flag reload_cmds need_locks \
15876     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15877     lt_cv_sys_global_symbol_to_c_name_address \
15878     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15879     old_postinstall_cmds old_postuninstall_cmds \
15880     compiler_F77 \
15881     CC_F77 \
15882     LD_F77 \
15883     lt_prog_compiler_wl_F77 \
15884     lt_prog_compiler_pic_F77 \
15885     lt_prog_compiler_static_F77 \
15886     lt_prog_compiler_no_builtin_flag_F77 \
15887     export_dynamic_flag_spec_F77 \
15888     thread_safe_flag_spec_F77 \
15889     whole_archive_flag_spec_F77 \
15890     enable_shared_with_static_runtimes_F77 \
15891     old_archive_cmds_F77 \
15892     old_archive_from_new_cmds_F77 \
15893     predep_objects_F77 \
15894     postdep_objects_F77 \
15895     predeps_F77 \
15896     postdeps_F77 \
15897     compiler_lib_search_path_F77 \
15898     compiler_lib_search_dirs_F77 \
15899     archive_cmds_F77 \
15900     archive_expsym_cmds_F77 \
15901     postinstall_cmds_F77 \
15902     postuninstall_cmds_F77 \
15903     old_archive_from_expsyms_cmds_F77 \
15904     allow_undefined_flag_F77 \
15905     no_undefined_flag_F77 \
15906     export_symbols_cmds_F77 \
15907     hardcode_libdir_flag_spec_F77 \
15908     hardcode_libdir_flag_spec_ld_F77 \
15909     hardcode_libdir_separator_F77 \
15910     hardcode_automatic_F77 \
15911     module_cmds_F77 \
15912     module_expsym_cmds_F77 \
15913     lt_cv_prog_compiler_c_o_F77 \
15914     fix_srcfile_path_F77 \
15915     exclude_expsyms_F77 \
15916     include_expsyms_F77; do
15917
15918     case $var in
15919     old_archive_cmds_F77 | \
15920     old_archive_from_new_cmds_F77 | \
15921     archive_cmds_F77 | \
15922     archive_expsym_cmds_F77 | \
15923     module_cmds_F77 | \
15924     module_expsym_cmds_F77 | \
15925     old_archive_from_expsyms_cmds_F77 | \
15926     export_symbols_cmds_F77 | \
15927     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15928     postinstall_cmds | postuninstall_cmds | \
15929     old_postinstall_cmds | old_postuninstall_cmds | \
15930     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15931       # Double-quote double-evaled strings.
15932       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15933       ;;
15934     *)
15935       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15936       ;;
15937     esac
15938   done
15939
15940   case $lt_echo in
15941   *'\$0 --fallback-echo"')
15942     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15943     ;;
15944   esac
15945
15946 cfgfile="$ofile"
15947
15948   cat <<__EOF__ >> "$cfgfile"
15949 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15950
15951 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15952
15953 # Shell to use when invoking shell scripts.
15954 SHELL=$lt_SHELL
15955
15956 # Whether or not to build shared libraries.
15957 build_libtool_libs=$enable_shared
15958
15959 # Whether or not to build static libraries.
15960 build_old_libs=$enable_static
15961
15962 # Whether or not to add -lc for building shared libraries.
15963 build_libtool_need_lc=$archive_cmds_need_lc_F77
15964
15965 # Whether or not to disallow shared libs when runtime libs are static
15966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15967
15968 # Whether or not to optimize for fast installation.
15969 fast_install=$enable_fast_install
15970
15971 # The host system.
15972 host_alias=$host_alias
15973 host=$host
15974 host_os=$host_os
15975
15976 # The build system.
15977 build_alias=$build_alias
15978 build=$build
15979 build_os=$build_os
15980
15981 # An echo program that does not interpret backslashes.
15982 echo=$lt_echo
15983
15984 # The archiver.
15985 AR=$lt_AR
15986 AR_FLAGS=$lt_AR_FLAGS
15987
15988 # A C compiler.
15989 LTCC=$lt_LTCC
15990
15991 # LTCC compiler flags.
15992 LTCFLAGS=$lt_LTCFLAGS
15993
15994 # A language-specific compiler.
15995 CC=$lt_compiler_F77
15996
15997 # Is the compiler the GNU C compiler?
15998 with_gcc=$GCC_F77
15999
16000 # An ERE matcher.
16001 EGREP=$lt_EGREP
16002
16003 # The linker used to build libraries.
16004 LD=$lt_LD_F77
16005
16006 # Whether we need hard or soft links.
16007 LN_S=$lt_LN_S
16008
16009 # A BSD-compatible nm program.
16010 NM=$lt_NM
16011
16012 # A symbol stripping program
16013 STRIP=$lt_STRIP
16014
16015 # Used to examine libraries when file_magic_cmd begins "file"
16016 MAGIC_CMD=$MAGIC_CMD
16017
16018 # Used on cygwin: DLL creation program.
16019 DLLTOOL="$DLLTOOL"
16020
16021 # Used on cygwin: object dumper.
16022 OBJDUMP="$OBJDUMP"
16023
16024 # Used on cygwin: assembler.
16025 AS="$AS"
16026
16027 # The name of the directory that contains temporary libtool files.
16028 objdir=$objdir
16029
16030 # How to create reloadable object files.
16031 reload_flag=$lt_reload_flag
16032 reload_cmds=$lt_reload_cmds
16033
16034 # How to pass a linker flag through the compiler.
16035 wl=$lt_lt_prog_compiler_wl_F77
16036
16037 # Object file suffix (normally "o").
16038 objext="$ac_objext"
16039
16040 # Old archive suffix (normally "a").
16041 libext="$libext"
16042
16043 # Shared library suffix (normally ".so").
16044 shrext_cmds='$shrext_cmds'
16045
16046 # Executable file suffix (normally "").
16047 exeext="$exeext"
16048
16049 # Additional compiler flags for building library objects.
16050 pic_flag=$lt_lt_prog_compiler_pic_F77
16051 pic_mode=$pic_mode
16052
16053 # What is the maximum length of a command?
16054 max_cmd_len=$lt_cv_sys_max_cmd_len
16055
16056 # Does compiler simultaneously support -c and -o options?
16057 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16058
16059 # Must we lock files when doing compilation?
16060 need_locks=$lt_need_locks
16061
16062 # Do we need the lib prefix for modules?
16063 need_lib_prefix=$need_lib_prefix
16064
16065 # Do we need a version for libraries?
16066 need_version=$need_version
16067
16068 # Whether dlopen is supported.
16069 dlopen_support=$enable_dlopen
16070
16071 # Whether dlopen of programs is supported.
16072 dlopen_self=$enable_dlopen_self
16073
16074 # Whether dlopen of statically linked programs is supported.
16075 dlopen_self_static=$enable_dlopen_self_static
16076
16077 # Compiler flag to prevent dynamic linking.
16078 link_static_flag=$lt_lt_prog_compiler_static_F77
16079
16080 # Compiler flag to turn off builtin functions.
16081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16082
16083 # Compiler flag to allow reflexive dlopens.
16084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16085
16086 # Compiler flag to generate shared objects directly from archives.
16087 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16088
16089 # Compiler flag to generate thread-safe objects.
16090 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16091
16092 # Library versioning type.
16093 version_type=$version_type
16094
16095 # Format of library name prefix.
16096 libname_spec=$lt_libname_spec
16097
16098 # List of archive names.  First name is the real one, the rest are links.
16099 # The last name is the one that the linker finds with -lNAME.
16100 library_names_spec=$lt_library_names_spec
16101
16102 # The coded name of the library, if different from the real name.
16103 soname_spec=$lt_soname_spec
16104
16105 # Commands used to build and install an old-style archive.
16106 RANLIB=$lt_RANLIB
16107 old_archive_cmds=$lt_old_archive_cmds_F77
16108 old_postinstall_cmds=$lt_old_postinstall_cmds
16109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16110
16111 # Create an old-style archive from a shared archive.
16112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16113
16114 # Create a temporary old-style archive to link instead of a shared archive.
16115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16116
16117 # Commands used to build and install a shared archive.
16118 archive_cmds=$lt_archive_cmds_F77
16119 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16120 postinstall_cmds=$lt_postinstall_cmds
16121 postuninstall_cmds=$lt_postuninstall_cmds
16122
16123 # Commands used to build a loadable module (assumed same as above if empty)
16124 module_cmds=$lt_module_cmds_F77
16125 module_expsym_cmds=$lt_module_expsym_cmds_F77
16126
16127 # Commands to strip libraries.
16128 old_striplib=$lt_old_striplib
16129 striplib=$lt_striplib
16130
16131 # Dependencies to place before the objects being linked to create a
16132 # shared library.
16133 predep_objects=$lt_predep_objects_F77
16134
16135 # Dependencies to place after the objects being linked to create a
16136 # shared library.
16137 postdep_objects=$lt_postdep_objects_F77
16138
16139 # Dependencies to place before the objects being linked to create a
16140 # shared library.
16141 predeps=$lt_predeps_F77
16142
16143 # Dependencies to place after the objects being linked to create a
16144 # shared library.
16145 postdeps=$lt_postdeps_F77
16146
16147 # The directories searched by this compiler when creating a shared
16148 # library
16149 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16150
16151 # The library search path used internally by the compiler when linking
16152 # a shared library.
16153 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16154
16155 # Method to check whether dependent libraries are shared objects.
16156 deplibs_check_method=$lt_deplibs_check_method
16157
16158 # Command to use when deplibs_check_method == file_magic.
16159 file_magic_cmd=$lt_file_magic_cmd
16160
16161 # Flag that allows shared libraries with undefined symbols to be built.
16162 allow_undefined_flag=$lt_allow_undefined_flag_F77
16163
16164 # Flag that forces no undefined symbols.
16165 no_undefined_flag=$lt_no_undefined_flag_F77
16166
16167 # Commands used to finish a libtool library installation in a directory.
16168 finish_cmds=$lt_finish_cmds
16169
16170 # Same as above, but a single script fragment to be evaled but not shown.
16171 finish_eval=$lt_finish_eval
16172
16173 # Take the output of nm and produce a listing of raw symbols and C names.
16174 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16175
16176 # Transform the output of nm in a proper C declaration
16177 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16178
16179 # Transform the output of nm in a C name address pair
16180 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16181
16182 # This is the shared library runtime path variable.
16183 runpath_var=$runpath_var
16184
16185 # This is the shared library path variable.
16186 shlibpath_var=$shlibpath_var
16187
16188 # Is shlibpath searched before the hard-coded library search path?
16189 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16190
16191 # How to hardcode a shared library path into an executable.
16192 hardcode_action=$hardcode_action_F77
16193
16194 # Whether we should hardcode library paths into libraries.
16195 hardcode_into_libs=$hardcode_into_libs
16196
16197 # Flag to hardcode \$libdir into a binary during linking.
16198 # This must work even if \$libdir does not exist.
16199 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16200
16201 # If ld is used when linking, flag to hardcode \$libdir into
16202 # a binary during linking. This must work even if \$libdir does
16203 # not exist.
16204 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16205
16206 # Whether we need a single -rpath flag with a separated argument.
16207 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16208
16209 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16210 # resulting binary.
16211 hardcode_direct=$hardcode_direct_F77
16212
16213 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16214 # resulting binary.
16215 hardcode_minus_L=$hardcode_minus_L_F77
16216
16217 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16218 # the resulting binary.
16219 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16220
16221 # Set to yes if building a shared library automatically hardcodes DIR into the library
16222 # and all subsequent libraries and executables linked against it.
16223 hardcode_automatic=$hardcode_automatic_F77
16224
16225 # Variables whose values should be saved in libtool wrapper scripts and
16226 # restored at relink time.
16227 variables_saved_for_relink="$variables_saved_for_relink"
16228
16229 # Whether libtool must link a program against all its dependency libraries.
16230 link_all_deplibs=$link_all_deplibs_F77
16231
16232 # Compile-time system search path for libraries
16233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16234
16235 # Run-time system search path for libraries
16236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16237
16238 # Fix the shell variable \$srcfile for the compiler.
16239 fix_srcfile_path=$lt_fix_srcfile_path
16240
16241 # Set to yes if exported symbols are required.
16242 always_export_symbols=$always_export_symbols_F77
16243
16244 # The commands to list exported symbols.
16245 export_symbols_cmds=$lt_export_symbols_cmds_F77
16246
16247 # The commands to extract the exported symbol list from a shared archive.
16248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16249
16250 # Symbols that should not be listed in the preloaded symbols.
16251 exclude_expsyms=$lt_exclude_expsyms_F77
16252
16253 # Symbols that must always be exported.
16254 include_expsyms=$lt_include_expsyms_F77
16255
16256 # ### END LIBTOOL TAG CONFIG: $tagname
16257
16258 __EOF__
16259
16260
16261 else
16262   # If there is no Makefile yet, we rely on a make rule to execute
16263   # `config.status --recheck' to rerun these tests and create the
16264   # libtool script then.
16265   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16266   if test -f "$ltmain_in"; then
16267     test -f Makefile && make "$ltmain"
16268   fi
16269 fi
16270
16271
16272 ac_ext=c
16273 ac_cpp='$CPP $CPPFLAGS'
16274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277
16278 CC="$lt_save_CC"
16279
16280         else
16281           tagname=""
16282         fi
16283         ;;
16284
16285       GCJ)
16286         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16287
16288
16289 # Source file extension for Java test sources.
16290 ac_ext=java
16291
16292 # Object file extension for compiled Java test sources.
16293 objext=o
16294 objext_GCJ=$objext
16295
16296 # Code to be used in simple compile tests
16297 lt_simple_compile_test_code="class foo {}"
16298
16299 # Code to be used in simple link tests
16300 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16301
16302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16303
16304 # If no C compiler was specified, use CC.
16305 LTCC=${LTCC-"$CC"}
16306
16307 # If no C compiler flags were specified, use CFLAGS.
16308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16309
16310 # Allow CC to be a program name with arguments.
16311 compiler=$CC
16312
16313
16314 # save warnings/boilerplate of simple test code
16315 ac_outfile=conftest.$ac_objext
16316 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16318 _lt_compiler_boilerplate=`cat conftest.err`
16319 $rm conftest*
16320
16321 ac_outfile=conftest.$ac_objext
16322 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16324 _lt_linker_boilerplate=`cat conftest.err`
16325 $rm -r conftest*
16326
16327
16328 # Allow CC to be a program name with arguments.
16329 lt_save_CC="$CC"
16330 CC=${GCJ-"gcj"}
16331 compiler=$CC
16332 compiler_GCJ=$CC
16333 for cc_temp in $compiler""; do
16334   case $cc_temp in
16335     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16336     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16337     \-*) ;;
16338     *) break;;
16339   esac
16340 done
16341 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16342
16343
16344 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16345 archive_cmds_need_lc_GCJ=no
16346
16347 old_archive_cmds_GCJ=$old_archive_cmds
16348
16349
16350 lt_prog_compiler_no_builtin_flag_GCJ=
16351
16352 if test "$GCC" = yes; then
16353   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16354
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16357 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16358 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16359   $as_echo_n "(cached) " >&6
16360 else
16361   lt_cv_prog_compiler_rtti_exceptions=no
16362   ac_outfile=conftest.$ac_objext
16363    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16364    lt_compiler_flag="-fno-rtti -fno-exceptions"
16365    # Insert the option either (1) after the last *FLAGS variable, or
16366    # (2) before a word containing "conftest.", or (3) at the end.
16367    # Note that $ac_compile itself does not contain backslashes and begins
16368    # with a dollar sign (not a hyphen), so the echo should work correctly.
16369    # The option is referenced via a variable to avoid confusing sed.
16370    lt_compile=`echo "$ac_compile" | $SED \
16371    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16373    -e 's:$: $lt_compiler_flag:'`
16374    (eval echo "\"\$as_me:16374: $lt_compile\"" >&5)
16375    (eval "$lt_compile" 2>conftest.err)
16376    ac_status=$?
16377    cat conftest.err >&5
16378    echo "$as_me:16378: \$? = $ac_status" >&5
16379    if (exit $ac_status) && test -s "$ac_outfile"; then
16380      # The compiler can only warn and ignore the option if not recognized
16381      # So say no if there are warnings other than the usual output.
16382      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16383      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16384      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16385        lt_cv_prog_compiler_rtti_exceptions=yes
16386      fi
16387    fi
16388    $rm conftest*
16389
16390 fi
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16392 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16393
16394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16395     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16396 else
16397     :
16398 fi
16399
16400 fi
16401
16402 lt_prog_compiler_wl_GCJ=
16403 lt_prog_compiler_pic_GCJ=
16404 lt_prog_compiler_static_GCJ=
16405
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16408
16409   if test "$GCC" = yes; then
16410     lt_prog_compiler_wl_GCJ='-Wl,'
16411     lt_prog_compiler_static_GCJ='-static'
16412
16413     case $host_os in
16414       aix*)
16415       # All AIX code is PIC.
16416       if test "$host_cpu" = ia64; then
16417         # AIX 5 now supports IA64 processor
16418         lt_prog_compiler_static_GCJ='-Bstatic'
16419       fi
16420       ;;
16421
16422     amigaos*)
16423       # FIXME: we need at least 68020 code to build shared libraries, but
16424       # adding the `-m68020' flag to GCC prevents building anything better,
16425       # like `-m68040'.
16426       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16427       ;;
16428
16429     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16430       # PIC is the default for these OSes.
16431       ;;
16432
16433     mingw* | cygwin* | pw32* | os2*)
16434       # This hack is so that the source file can tell whether it is being
16435       # built for inclusion in a dll (and should export symbols for example).
16436       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16437       # (--disable-auto-import) libraries
16438
16439       ;;
16440
16441     darwin* | rhapsody*)
16442       # PIC is the default on this platform
16443       # Common symbols not allowed in MH_DYLIB files
16444       lt_prog_compiler_pic_GCJ='-fno-common'
16445       ;;
16446
16447     interix[3-9]*)
16448       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16449       # Instead, we relocate shared libraries at runtime.
16450       ;;
16451
16452     msdosdjgpp*)
16453       # Just because we use GCC doesn't mean we suddenly get shared libraries
16454       # on systems that don't support them.
16455       lt_prog_compiler_can_build_shared_GCJ=no
16456       enable_shared=no
16457       ;;
16458
16459     sysv4*MP*)
16460       if test -d /usr/nec; then
16461         lt_prog_compiler_pic_GCJ=-Kconform_pic
16462       fi
16463       ;;
16464
16465     hpux*)
16466       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16467       # not for PA HP-UX.
16468       case $host_cpu in
16469       hppa*64*|ia64*)
16470         # +Z the default
16471         ;;
16472       *)
16473         lt_prog_compiler_pic_GCJ='-fPIC'
16474         ;;
16475       esac
16476       ;;
16477
16478     *)
16479       lt_prog_compiler_pic_GCJ='-fPIC'
16480       ;;
16481     esac
16482   else
16483     # PORTME Check for flag to pass linker flags through the system compiler.
16484     case $host_os in
16485     aix*)
16486       lt_prog_compiler_wl_GCJ='-Wl,'
16487       if test "$host_cpu" = ia64; then
16488         # AIX 5 now supports IA64 processor
16489         lt_prog_compiler_static_GCJ='-Bstatic'
16490       else
16491         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16492       fi
16493       ;;
16494       darwin*)
16495         # PIC is the default on this platform
16496         # Common symbols not allowed in MH_DYLIB files
16497        case $cc_basename in
16498          xlc*)
16499          lt_prog_compiler_pic_GCJ='-qnocommon'
16500          lt_prog_compiler_wl_GCJ='-Wl,'
16501          ;;
16502        esac
16503        ;;
16504
16505     mingw* | cygwin* | pw32* | os2*)
16506       # This hack is so that the source file can tell whether it is being
16507       # built for inclusion in a dll (and should export symbols for example).
16508
16509       ;;
16510
16511     hpux9* | hpux10* | hpux11*)
16512       lt_prog_compiler_wl_GCJ='-Wl,'
16513       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16514       # not for PA HP-UX.
16515       case $host_cpu in
16516       hppa*64*|ia64*)
16517         # +Z the default
16518         ;;
16519       *)
16520         lt_prog_compiler_pic_GCJ='+Z'
16521         ;;
16522       esac
16523       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16524       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16525       ;;
16526
16527     irix5* | irix6* | nonstopux*)
16528       lt_prog_compiler_wl_GCJ='-Wl,'
16529       # PIC (with -KPIC) is the default.
16530       lt_prog_compiler_static_GCJ='-non_shared'
16531       ;;
16532
16533     newsos6)
16534       lt_prog_compiler_pic_GCJ='-KPIC'
16535       lt_prog_compiler_static_GCJ='-Bstatic'
16536       ;;
16537
16538     linux* | k*bsd*-gnu)
16539       case $cc_basename in
16540       icc* | ecc*)
16541         lt_prog_compiler_wl_GCJ='-Wl,'
16542         lt_prog_compiler_pic_GCJ='-KPIC'
16543         lt_prog_compiler_static_GCJ='-static'
16544         ;;
16545       pgcc* | pgf77* | pgf90* | pgf95*)
16546         # Portland Group compilers (*not* the Pentium gcc compiler,
16547         # which looks to be a dead project)
16548         lt_prog_compiler_wl_GCJ='-Wl,'
16549         lt_prog_compiler_pic_GCJ='-fpic'
16550         lt_prog_compiler_static_GCJ='-Bstatic'
16551         ;;
16552       ccc*)
16553         lt_prog_compiler_wl_GCJ='-Wl,'
16554         # All Alpha code is PIC.
16555         lt_prog_compiler_static_GCJ='-non_shared'
16556         ;;
16557       *)
16558         case `$CC -V 2>&1 | sed 5q` in
16559         *Sun\ C*)
16560           # Sun C 5.9
16561           lt_prog_compiler_pic_GCJ='-KPIC'
16562           lt_prog_compiler_static_GCJ='-Bstatic'
16563           lt_prog_compiler_wl_GCJ='-Wl,'
16564           ;;
16565         *Sun\ F*)
16566           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16567           lt_prog_compiler_pic_GCJ='-KPIC'
16568           lt_prog_compiler_static_GCJ='-Bstatic'
16569           lt_prog_compiler_wl_GCJ=''
16570           ;;
16571         esac
16572         ;;
16573       esac
16574       ;;
16575
16576     osf3* | osf4* | osf5*)
16577       lt_prog_compiler_wl_GCJ='-Wl,'
16578       # All OSF/1 code is PIC.
16579       lt_prog_compiler_static_GCJ='-non_shared'
16580       ;;
16581
16582     rdos*)
16583       lt_prog_compiler_static_GCJ='-non_shared'
16584       ;;
16585
16586     solaris*)
16587       lt_prog_compiler_pic_GCJ='-KPIC'
16588       lt_prog_compiler_static_GCJ='-Bstatic'
16589       case $cc_basename in
16590       f77* | f90* | f95*)
16591         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16592       *)
16593         lt_prog_compiler_wl_GCJ='-Wl,';;
16594       esac
16595       ;;
16596
16597     sunos4*)
16598       lt_prog_compiler_wl_GCJ='-Qoption ld '
16599       lt_prog_compiler_pic_GCJ='-PIC'
16600       lt_prog_compiler_static_GCJ='-Bstatic'
16601       ;;
16602
16603     sysv4 | sysv4.2uw2* | sysv4.3*)
16604       lt_prog_compiler_wl_GCJ='-Wl,'
16605       lt_prog_compiler_pic_GCJ='-KPIC'
16606       lt_prog_compiler_static_GCJ='-Bstatic'
16607       ;;
16608
16609     sysv4*MP*)
16610       if test -d /usr/nec ;then
16611         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16612         lt_prog_compiler_static_GCJ='-Bstatic'
16613       fi
16614       ;;
16615
16616     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16617       lt_prog_compiler_wl_GCJ='-Wl,'
16618       lt_prog_compiler_pic_GCJ='-KPIC'
16619       lt_prog_compiler_static_GCJ='-Bstatic'
16620       ;;
16621
16622     unicos*)
16623       lt_prog_compiler_wl_GCJ='-Wl,'
16624       lt_prog_compiler_can_build_shared_GCJ=no
16625       ;;
16626
16627     uts4*)
16628       lt_prog_compiler_pic_GCJ='-pic'
16629       lt_prog_compiler_static_GCJ='-Bstatic'
16630       ;;
16631
16632     *)
16633       lt_prog_compiler_can_build_shared_GCJ=no
16634       ;;
16635     esac
16636   fi
16637
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16639 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16640
16641 #
16642 # Check to make sure the PIC flag actually works.
16643 #
16644 if test -n "$lt_prog_compiler_pic_GCJ"; then
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16648 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16649   $as_echo_n "(cached) " >&6
16650 else
16651   lt_cv_prog_compiler_pic_works_GCJ=no
16652   ac_outfile=conftest.$ac_objext
16653    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16654    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16655    # Insert the option either (1) after the last *FLAGS variable, or
16656    # (2) before a word containing "conftest.", or (3) at the end.
16657    # Note that $ac_compile itself does not contain backslashes and begins
16658    # with a dollar sign (not a hyphen), so the echo should work correctly.
16659    # The option is referenced via a variable to avoid confusing sed.
16660    lt_compile=`echo "$ac_compile" | $SED \
16661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16663    -e 's:$: $lt_compiler_flag:'`
16664    (eval echo "\"\$as_me:16664: $lt_compile\"" >&5)
16665    (eval "$lt_compile" 2>conftest.err)
16666    ac_status=$?
16667    cat conftest.err >&5
16668    echo "$as_me:16668: \$? = $ac_status" >&5
16669    if (exit $ac_status) && test -s "$ac_outfile"; then
16670      # The compiler can only warn and ignore the option if not recognized
16671      # So say no if there are warnings other than the usual output.
16672      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16673      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16674      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16675        lt_cv_prog_compiler_pic_works_GCJ=yes
16676      fi
16677    fi
16678    $rm conftest*
16679
16680 fi
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16682 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16683
16684 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16685     case $lt_prog_compiler_pic_GCJ in
16686      "" | " "*) ;;
16687      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16688      esac
16689 else
16690     lt_prog_compiler_pic_GCJ=
16691      lt_prog_compiler_can_build_shared_GCJ=no
16692 fi
16693
16694 fi
16695 case $host_os in
16696   # For platforms which do not support PIC, -DPIC is meaningless:
16697   *djgpp*)
16698     lt_prog_compiler_pic_GCJ=
16699     ;;
16700   *)
16701     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16702     ;;
16703 esac
16704
16705 #
16706 # Check to make sure the static flag actually works.
16707 #
16708 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16710 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16711 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16712   $as_echo_n "(cached) " >&6
16713 else
16714   lt_cv_prog_compiler_static_works_GCJ=no
16715    save_LDFLAGS="$LDFLAGS"
16716    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16717    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16718    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16719      # The linker can only warn and ignore the option if not recognized
16720      # So say no if there are warnings
16721      if test -s conftest.err; then
16722        # Append any errors to the config.log.
16723        cat conftest.err 1>&5
16724        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16725        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16726        if diff conftest.exp conftest.er2 >/dev/null; then
16727          lt_cv_prog_compiler_static_works_GCJ=yes
16728        fi
16729      else
16730        lt_cv_prog_compiler_static_works_GCJ=yes
16731      fi
16732    fi
16733    $rm -r conftest*
16734    LDFLAGS="$save_LDFLAGS"
16735
16736 fi
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16738 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16739
16740 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16741     :
16742 else
16743     lt_prog_compiler_static_GCJ=
16744 fi
16745
16746
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16748 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16749 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16750   $as_echo_n "(cached) " >&6
16751 else
16752   lt_cv_prog_compiler_c_o_GCJ=no
16753    $rm -r conftest 2>/dev/null
16754    mkdir conftest
16755    cd conftest
16756    mkdir out
16757    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16758
16759    lt_compiler_flag="-o out/conftest2.$ac_objext"
16760    # Insert the option either (1) after the last *FLAGS variable, or
16761    # (2) before a word containing "conftest.", or (3) at the end.
16762    # Note that $ac_compile itself does not contain backslashes and begins
16763    # with a dollar sign (not a hyphen), so the echo should work correctly.
16764    lt_compile=`echo "$ac_compile" | $SED \
16765    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16766    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16767    -e 's:$: $lt_compiler_flag:'`
16768    (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
16769    (eval "$lt_compile" 2>out/conftest.err)
16770    ac_status=$?
16771    cat out/conftest.err >&5
16772    echo "$as_me:16772: \$? = $ac_status" >&5
16773    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16774    then
16775      # The compiler can only warn and ignore the option if not recognized
16776      # So say no if there are warnings
16777      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16778      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16779      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16780        lt_cv_prog_compiler_c_o_GCJ=yes
16781      fi
16782    fi
16783    chmod u+w . 2>&5
16784    $rm conftest*
16785    # SGI C++ compiler will create directory out/ii_files/ for
16786    # template instantiation
16787    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16788    $rm out/* && rmdir out
16789    cd ..
16790    rmdir conftest
16791    $rm conftest*
16792
16793 fi
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16795 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16796
16797
16798 hard_links="nottested"
16799 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16800   # do not overwrite the value of need_locks provided by the user
16801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16802 $as_echo_n "checking if we can lock with hard links... " >&6; }
16803   hard_links=yes
16804   $rm conftest*
16805   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16806   touch conftest.a
16807   ln conftest.a conftest.b 2>&5 || hard_links=no
16808   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16810 $as_echo "$hard_links" >&6; }
16811   if test "$hard_links" = no; then
16812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16814     need_locks=warn
16815   fi
16816 else
16817   need_locks=no
16818 fi
16819
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16821 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16822
16823   runpath_var=
16824   allow_undefined_flag_GCJ=
16825   enable_shared_with_static_runtimes_GCJ=no
16826   archive_cmds_GCJ=
16827   archive_expsym_cmds_GCJ=
16828   old_archive_From_new_cmds_GCJ=
16829   old_archive_from_expsyms_cmds_GCJ=
16830   export_dynamic_flag_spec_GCJ=
16831   whole_archive_flag_spec_GCJ=
16832   thread_safe_flag_spec_GCJ=
16833   hardcode_libdir_flag_spec_GCJ=
16834   hardcode_libdir_flag_spec_ld_GCJ=
16835   hardcode_libdir_separator_GCJ=
16836   hardcode_direct_GCJ=no
16837   hardcode_minus_L_GCJ=no
16838   hardcode_shlibpath_var_GCJ=unsupported
16839   link_all_deplibs_GCJ=unknown
16840   hardcode_automatic_GCJ=no
16841   module_cmds_GCJ=
16842   module_expsym_cmds_GCJ=
16843   always_export_symbols_GCJ=no
16844   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16845   # include_expsyms should be a list of space-separated symbols to be *always*
16846   # included in the symbol list
16847   include_expsyms_GCJ=
16848   # exclude_expsyms can be an extended regexp of symbols to exclude
16849   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16850   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16851   # as well as any symbol that contains `d'.
16852   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16853   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16854   # platforms (ab)use it in PIC code, but their linkers get confused if
16855   # the symbol is explicitly referenced.  Since portable code cannot
16856   # rely on this symbol name, it's probably fine to never include it in
16857   # preloaded symbol tables.
16858   # Exclude shared library initialization/finalization symbols.
16859   extract_expsyms_cmds=
16860   # Just being paranoid about ensuring that cc_basename is set.
16861   for cc_temp in $compiler""; do
16862   case $cc_temp in
16863     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16864     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16865     \-*) ;;
16866     *) break;;
16867   esac
16868 done
16869 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16870
16871   case $host_os in
16872   cygwin* | mingw* | pw32*)
16873     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16874     # When not using gcc, we currently assume that we are using
16875     # Microsoft Visual C++.
16876     if test "$GCC" != yes; then
16877       with_gnu_ld=no
16878     fi
16879     ;;
16880   interix*)
16881     # we just hope/assume this is gcc and not c89 (= MSVC++)
16882     with_gnu_ld=yes
16883     ;;
16884   openbsd*)
16885     with_gnu_ld=no
16886     ;;
16887   esac
16888
16889   ld_shlibs_GCJ=yes
16890   if test "$with_gnu_ld" = yes; then
16891     # If archive_cmds runs LD, not CC, wlarc should be empty
16892     wlarc='${wl}'
16893
16894     # Set some defaults for GNU ld with shared library support. These
16895     # are reset later if shared libraries are not supported. Putting them
16896     # here allows them to be overridden if necessary.
16897     runpath_var=LD_RUN_PATH
16898     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16899     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16900     # ancient GNU ld didn't support --whole-archive et. al.
16901     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16902         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16903       else
16904         whole_archive_flag_spec_GCJ=
16905     fi
16906     supports_anon_versioning=no
16907     case `$LD -v 2>/dev/null` in
16908       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16909       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16910       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16911       *\ 2.11.*) ;; # other 2.11 versions
16912       *) supports_anon_versioning=yes ;;
16913     esac
16914
16915     # See if GNU ld supports shared libraries.
16916     case $host_os in
16917     aix[3-9]*)
16918       # On AIX/PPC, the GNU linker is very broken
16919       if test "$host_cpu" != ia64; then
16920         ld_shlibs_GCJ=no
16921         cat <<EOF 1>&2
16922
16923 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16924 *** to be unable to reliably create shared libraries on AIX.
16925 *** Therefore, libtool is disabling shared libraries support.  If you
16926 *** really care for shared libraries, you may want to modify your PATH
16927 *** so that a non-GNU linker is found, and then restart.
16928
16929 EOF
16930       fi
16931       ;;
16932
16933     amigaos*)
16934       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)'
16935       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16936       hardcode_minus_L_GCJ=yes
16937
16938       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16939       # that the semantics of dynamic libraries on AmigaOS, at least up
16940       # to version 4, is to share data among multiple programs linked
16941       # with the same dynamic library.  Since this doesn't match the
16942       # behavior of shared libraries on other platforms, we can't use
16943       # them.
16944       ld_shlibs_GCJ=no
16945       ;;
16946
16947     beos*)
16948       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16949         allow_undefined_flag_GCJ=unsupported
16950         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16951         # support --undefined.  This deserves some investigation.  FIXME
16952         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16953       else
16954         ld_shlibs_GCJ=no
16955       fi
16956       ;;
16957
16958     cygwin* | mingw* | pw32*)
16959       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16960       # as there is no search path for DLLs.
16961       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16962       allow_undefined_flag_GCJ=unsupported
16963       always_export_symbols_GCJ=no
16964       enable_shared_with_static_runtimes_GCJ=yes
16965       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16966
16967       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16968         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16969         # If the export-symbols file already is a .def file (1st line
16970         # is EXPORTS), use it as is; otherwise, prepend...
16971         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16972           cp $export_symbols $output_objdir/$soname.def;
16973         else
16974           echo EXPORTS > $output_objdir/$soname.def;
16975           cat $export_symbols >> $output_objdir/$soname.def;
16976         fi~
16977         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16978       else
16979         ld_shlibs_GCJ=no
16980       fi
16981       ;;
16982
16983     interix[3-9]*)
16984       hardcode_direct_GCJ=no
16985       hardcode_shlibpath_var_GCJ=no
16986       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16987       export_dynamic_flag_spec_GCJ='${wl}-E'
16988       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16989       # Instead, shared libraries are loaded at an image base (0x10000000 by
16990       # default) and relocated if they conflict, which is a slow very memory
16991       # consuming and fragmenting process.  To avoid this, we pick a random,
16992       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16993       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16994       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'
16995       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'
16996       ;;
16997
16998     gnu* | linux* | k*bsd*-gnu)
16999       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17000         tmp_addflag=
17001         case $cc_basename,$host_cpu in
17002         pgcc*)                          # Portland Group C compiler
17003           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'
17004           tmp_addflag=' $pic_flag'
17005           ;;
17006         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17007           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'
17008           tmp_addflag=' $pic_flag -Mnomain' ;;
17009         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17010           tmp_addflag=' -i_dynamic' ;;
17011         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17012           tmp_addflag=' -i_dynamic -nofor_main' ;;
17013         ifc* | ifort*)                  # Intel Fortran compiler
17014           tmp_addflag=' -nofor_main' ;;
17015         esac
17016         case `$CC -V 2>&1 | sed 5q` in
17017         *Sun\ C*)                       # Sun C 5.9
17018           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'
17019           tmp_sharedflag='-G' ;;
17020         *Sun\ F*)                       # Sun Fortran 8.3
17021           tmp_sharedflag='-G' ;;
17022         *)
17023           tmp_sharedflag='-shared' ;;
17024         esac
17025         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17026
17027         if test $supports_anon_versioning = yes; then
17028           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17029   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17030   $echo "local: *; };" >> $output_objdir/$libname.ver~
17031           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17032         fi
17033         link_all_deplibs_GCJ=no
17034       else
17035         ld_shlibs_GCJ=no
17036       fi
17037       ;;
17038
17039     netbsd* | netbsdelf*-gnu)
17040       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17041         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17042         wlarc=
17043       else
17044         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17045         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17046       fi
17047       ;;
17048
17049     solaris*)
17050       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17051         ld_shlibs_GCJ=no
17052         cat <<EOF 1>&2
17053
17054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17055 *** create shared libraries on Solaris systems.  Therefore, libtool
17056 *** is disabling shared libraries support.  We urge you to upgrade GNU
17057 *** binutils to release 2.9.1 or newer.  Another option is to modify
17058 *** your PATH or compiler configuration so that the native linker is
17059 *** used, and then restart.
17060
17061 EOF
17062       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17063         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17065       else
17066         ld_shlibs_GCJ=no
17067       fi
17068       ;;
17069
17070     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17071       case `$LD -v 2>&1` in
17072         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17073         ld_shlibs_GCJ=no
17074         cat <<_LT_EOF 1>&2
17075
17076 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17077 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17078 *** is disabling shared libraries support.  We urge you to upgrade GNU
17079 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17080 *** your PATH or compiler configuration so that the native linker is
17081 *** used, and then restart.
17082
17083 _LT_EOF
17084         ;;
17085         *)
17086           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17087             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17088             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17089             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17090           else
17091             ld_shlibs_GCJ=no
17092           fi
17093         ;;
17094       esac
17095       ;;
17096
17097     sunos4*)
17098       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17099       wlarc=
17100       hardcode_direct_GCJ=yes
17101       hardcode_shlibpath_var_GCJ=no
17102       ;;
17103
17104     *)
17105       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17106         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17107         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17108       else
17109         ld_shlibs_GCJ=no
17110       fi
17111       ;;
17112     esac
17113
17114     if test "$ld_shlibs_GCJ" = no; then
17115       runpath_var=
17116       hardcode_libdir_flag_spec_GCJ=
17117       export_dynamic_flag_spec_GCJ=
17118       whole_archive_flag_spec_GCJ=
17119     fi
17120   else
17121     # PORTME fill in a description of your system's linker (not GNU ld)
17122     case $host_os in
17123     aix3*)
17124       allow_undefined_flag_GCJ=unsupported
17125       always_export_symbols_GCJ=yes
17126       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'
17127       # Note: this linker hardcodes the directories in LIBPATH if there
17128       # are no directories specified by -L.
17129       hardcode_minus_L_GCJ=yes
17130       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17131         # Neither direct hardcoding nor static linking is supported with a
17132         # broken collect2.
17133         hardcode_direct_GCJ=unsupported
17134       fi
17135       ;;
17136
17137     aix[4-9]*)
17138       if test "$host_cpu" = ia64; then
17139         # On IA64, the linker does run time linking by default, so we don't
17140         # have to do anything special.
17141         aix_use_runtimelinking=no
17142         exp_sym_flag='-Bexport'
17143         no_entry_flag=""
17144       else
17145         # If we're using GNU nm, then we don't want the "-C" option.
17146         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17147         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17148           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'
17149         else
17150           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'
17151         fi
17152         aix_use_runtimelinking=no
17153
17154         # Test if we are trying to use run time linking or normal
17155         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17156         # need to do runtime linking.
17157         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17158           for ld_flag in $LDFLAGS; do
17159           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17160             aix_use_runtimelinking=yes
17161             break
17162           fi
17163           done
17164           ;;
17165         esac
17166
17167         exp_sym_flag='-bexport'
17168         no_entry_flag='-bnoentry'
17169       fi
17170
17171       # When large executables or shared objects are built, AIX ld can
17172       # have problems creating the table of contents.  If linking a library
17173       # or program results in "error TOC overflow" add -mminimal-toc to
17174       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17175       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17176
17177       archive_cmds_GCJ=''
17178       hardcode_direct_GCJ=yes
17179       hardcode_libdir_separator_GCJ=':'
17180       link_all_deplibs_GCJ=yes
17181
17182       if test "$GCC" = yes; then
17183         case $host_os in aix4.[012]|aix4.[012].*)
17184         # We only want to do this on AIX 4.2 and lower, the check
17185         # below for broken collect2 doesn't work under 4.3+
17186           collect2name=`${CC} -print-prog-name=collect2`
17187           if test -f "$collect2name" && \
17188            strings "$collect2name" | grep resolve_lib_name >/dev/null
17189           then
17190           # We have reworked collect2
17191           :
17192           else
17193           # We have old collect2
17194           hardcode_direct_GCJ=unsupported
17195           # It fails to find uninstalled libraries when the uninstalled
17196           # path is not listed in the libpath.  Setting hardcode_minus_L
17197           # to unsupported forces relinking
17198           hardcode_minus_L_GCJ=yes
17199           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17200           hardcode_libdir_separator_GCJ=
17201           fi
17202           ;;
17203         esac
17204         shared_flag='-shared'
17205         if test "$aix_use_runtimelinking" = yes; then
17206           shared_flag="$shared_flag "'${wl}-G'
17207         fi
17208       else
17209         # not using gcc
17210         if test "$host_cpu" = ia64; then
17211         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17212         # chokes on -Wl,-G. The following line is correct:
17213           shared_flag='-G'
17214         else
17215           if test "$aix_use_runtimelinking" = yes; then
17216             shared_flag='${wl}-G'
17217           else
17218             shared_flag='${wl}-bM:SRE'
17219           fi
17220         fi
17221       fi
17222
17223       # It seems that -bexpall does not export symbols beginning with
17224       # underscore (_), so it is better to generate a list of symbols to export.
17225       always_export_symbols_GCJ=yes
17226       if test "$aix_use_runtimelinking" = yes; then
17227         # Warning - without using the other runtime loading flags (-brtl),
17228         # -berok will link without error, but may produce a broken library.
17229         allow_undefined_flag_GCJ='-berok'
17230        # Determine the default libpath from the value encoded in an empty executable.
17231        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h.  */
17233
17234 int
17235 main ()
17236 {
17237
17238   ;
17239   return 0;
17240 }
17241 _ACEOF
17242 if ac_fn_c_try_link "$LINENO"; then :
17243
17244 lt_aix_libpath_sed='
17245     /Import File Strings/,/^$/ {
17246         /^0/ {
17247             s/^0  *\(.*\)$/\1/
17248             p
17249         }
17250     }'
17251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17252 # Check for a 64-bit object if we didn't find anything.
17253 if test -z "$aix_libpath"; then
17254   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17255 fi
17256 fi
17257 rm -f core conftest.err conftest.$ac_objext \
17258     conftest$ac_exeext conftest.$ac_ext
17259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17260
17261        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17262         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"
17263        else
17264         if test "$host_cpu" = ia64; then
17265           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17266           allow_undefined_flag_GCJ="-z nodefs"
17267           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"
17268         else
17269          # Determine the default libpath from the value encoded in an empty executable.
17270          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h.  */
17272
17273 int
17274 main ()
17275 {
17276
17277   ;
17278   return 0;
17279 }
17280 _ACEOF
17281 if ac_fn_c_try_link "$LINENO"; then :
17282
17283 lt_aix_libpath_sed='
17284     /Import File Strings/,/^$/ {
17285         /^0/ {
17286             s/^0  *\(.*\)$/\1/
17287             p
17288         }
17289     }'
17290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17291 # Check for a 64-bit object if we didn't find anything.
17292 if test -z "$aix_libpath"; then
17293   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17294 fi
17295 fi
17296 rm -f core conftest.err conftest.$ac_objext \
17297     conftest$ac_exeext conftest.$ac_ext
17298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17299
17300          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17301           # Warning - without using the other run time loading flags,
17302           # -berok will link without error, but may produce a broken library.
17303           no_undefined_flag_GCJ=' ${wl}-bernotok'
17304           allow_undefined_flag_GCJ=' ${wl}-berok'
17305           # Exported symbols can be pulled into shared objects from archives
17306           whole_archive_flag_spec_GCJ='$convenience'
17307           archive_cmds_need_lc_GCJ=yes
17308           # This is similar to how AIX traditionally builds its shared libraries.
17309           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'
17310         fi
17311       fi
17312       ;;
17313
17314     amigaos*)
17315       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)'
17316       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17317       hardcode_minus_L_GCJ=yes
17318       # see comment about different semantics on the GNU ld section
17319       ld_shlibs_GCJ=no
17320       ;;
17321
17322     bsdi[45]*)
17323       export_dynamic_flag_spec_GCJ=-rdynamic
17324       ;;
17325
17326     cygwin* | mingw* | pw32*)
17327       # When not using gcc, we currently assume that we are using
17328       # Microsoft Visual C++.
17329       # hardcode_libdir_flag_spec is actually meaningless, as there is
17330       # no search path for DLLs.
17331       hardcode_libdir_flag_spec_GCJ=' '
17332       allow_undefined_flag_GCJ=unsupported
17333       # Tell ltmain to make .lib files, not .a files.
17334       libext=lib
17335       # Tell ltmain to make .dll files, not .so files.
17336       shrext_cmds=".dll"
17337       # FIXME: Setting linknames here is a bad hack.
17338       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17339       # The linker will automatically build a .lib file if we build a DLL.
17340       old_archive_From_new_cmds_GCJ='true'
17341       # FIXME: Should let the user specify the lib program.
17342       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17343       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17344       enable_shared_with_static_runtimes_GCJ=yes
17345       ;;
17346
17347     darwin* | rhapsody*)
17348       case $host_os in
17349         rhapsody* | darwin1.[012])
17350          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17351          ;;
17352        *) # Darwin 1.3 on
17353          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17354            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17355          else
17356            case ${MACOSX_DEPLOYMENT_TARGET} in
17357              10.[012])
17358                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17359                ;;
17360              10.*)
17361                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17362                ;;
17363            esac
17364          fi
17365          ;;
17366       esac
17367       archive_cmds_need_lc_GCJ=no
17368       hardcode_direct_GCJ=no
17369       hardcode_automatic_GCJ=yes
17370       hardcode_shlibpath_var_GCJ=unsupported
17371       whole_archive_flag_spec_GCJ=''
17372       link_all_deplibs_GCJ=yes
17373     if test "$GCC" = yes ; then
17374         output_verbose_link_cmd='echo'
17375         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}"
17376         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17377         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}"
17378         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}"
17379     else
17380       case $cc_basename in
17381         xlc*)
17382          output_verbose_link_cmd='echo'
17383          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17384          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17385           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17386          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}'
17387           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}'
17388           ;;
17389        *)
17390          ld_shlibs_GCJ=no
17391           ;;
17392       esac
17393     fi
17394       ;;
17395
17396     dgux*)
17397       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17398       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17399       hardcode_shlibpath_var_GCJ=no
17400       ;;
17401
17402     freebsd1*)
17403       ld_shlibs_GCJ=no
17404       ;;
17405
17406     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17407     # support.  Future versions do this automatically, but an explicit c++rt0.o
17408     # does not break anything, and helps significantly (at the cost of a little
17409     # extra space).
17410     freebsd2.2*)
17411       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17412       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17413       hardcode_direct_GCJ=yes
17414       hardcode_shlibpath_var_GCJ=no
17415       ;;
17416
17417     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17418     freebsd2*)
17419       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17420       hardcode_direct_GCJ=yes
17421       hardcode_minus_L_GCJ=yes
17422       hardcode_shlibpath_var_GCJ=no
17423       ;;
17424
17425     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17426     freebsd* | dragonfly*)
17427       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17428       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17429       hardcode_direct_GCJ=yes
17430       hardcode_shlibpath_var_GCJ=no
17431       ;;
17432
17433     hpux9*)
17434       if test "$GCC" = yes; then
17435         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'
17436       else
17437         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'
17438       fi
17439       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17440       hardcode_libdir_separator_GCJ=:
17441       hardcode_direct_GCJ=yes
17442
17443       # hardcode_minus_L: Not really in the search PATH,
17444       # but as the default location of the library.
17445       hardcode_minus_L_GCJ=yes
17446       export_dynamic_flag_spec_GCJ='${wl}-E'
17447       ;;
17448
17449     hpux10*)
17450       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17451         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17452       else
17453         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17454       fi
17455       if test "$with_gnu_ld" = no; then
17456         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17457         hardcode_libdir_separator_GCJ=:
17458
17459         hardcode_direct_GCJ=yes
17460         export_dynamic_flag_spec_GCJ='${wl}-E'
17461
17462         # hardcode_minus_L: Not really in the search PATH,
17463         # but as the default location of the library.
17464         hardcode_minus_L_GCJ=yes
17465       fi
17466       ;;
17467
17468     hpux11*)
17469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17470         case $host_cpu in
17471         hppa*64*)
17472           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473           ;;
17474         ia64*)
17475           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17476           ;;
17477         *)
17478           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17479           ;;
17480         esac
17481       else
17482         case $host_cpu in
17483         hppa*64*)
17484           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17485           ;;
17486         ia64*)
17487           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17488           ;;
17489         *)
17490           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17491           ;;
17492         esac
17493       fi
17494       if test "$with_gnu_ld" = no; then
17495         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17496         hardcode_libdir_separator_GCJ=:
17497
17498         case $host_cpu in
17499         hppa*64*|ia64*)
17500           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17501           hardcode_direct_GCJ=no
17502           hardcode_shlibpath_var_GCJ=no
17503           ;;
17504         *)
17505           hardcode_direct_GCJ=yes
17506           export_dynamic_flag_spec_GCJ='${wl}-E'
17507
17508           # hardcode_minus_L: Not really in the search PATH,
17509           # but as the default location of the library.
17510           hardcode_minus_L_GCJ=yes
17511           ;;
17512         esac
17513       fi
17514       ;;
17515
17516     irix5* | irix6* | nonstopux*)
17517       if test "$GCC" = yes; then
17518         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'
17519       else
17520         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'
17521         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17522       fi
17523       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17524       hardcode_libdir_separator_GCJ=:
17525       link_all_deplibs_GCJ=yes
17526       ;;
17527
17528     netbsd* | netbsdelf*-gnu)
17529       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17530         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17531       else
17532         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17533       fi
17534       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17535       hardcode_direct_GCJ=yes
17536       hardcode_shlibpath_var_GCJ=no
17537       ;;
17538
17539     newsos6)
17540       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17541       hardcode_direct_GCJ=yes
17542       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17543       hardcode_libdir_separator_GCJ=:
17544       hardcode_shlibpath_var_GCJ=no
17545       ;;
17546
17547     openbsd*)
17548       if test -f /usr/libexec/ld.so; then
17549         hardcode_direct_GCJ=yes
17550         hardcode_shlibpath_var_GCJ=no
17551         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17552           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17553           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17554           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17555           export_dynamic_flag_spec_GCJ='${wl}-E'
17556         else
17557           case $host_os in
17558            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17559              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17560              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17561              ;;
17562            *)
17563              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17564              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17565              ;;
17566           esac
17567         fi
17568       else
17569         ld_shlibs_GCJ=no
17570       fi
17571       ;;
17572
17573     os2*)
17574       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17575       hardcode_minus_L_GCJ=yes
17576       allow_undefined_flag_GCJ=unsupported
17577       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'
17578       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17579       ;;
17580
17581     osf3*)
17582       if test "$GCC" = yes; then
17583         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17584         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'
17585       else
17586         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17587         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'
17588       fi
17589       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17590       hardcode_libdir_separator_GCJ=:
17591       ;;
17592
17593     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17594       if test "$GCC" = yes; then
17595         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17596         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'
17597         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17598       else
17599         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17600         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'
17601         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~
17602         $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'
17603
17604         # Both c and cxx compiler support -rpath directly
17605         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17606       fi
17607       hardcode_libdir_separator_GCJ=:
17608       ;;
17609
17610     solaris*)
17611       no_undefined_flag_GCJ=' -z text'
17612       if test "$GCC" = yes; then
17613         wlarc='${wl}'
17614         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17615         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17616           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17617       else
17618         wlarc=''
17619         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17621         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17622       fi
17623       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17624       hardcode_shlibpath_var_GCJ=no
17625       case $host_os in
17626       solaris2.[0-5] | solaris2.[0-5].*) ;;
17627       *)
17628         # The compiler driver will combine and reorder linker options,
17629         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17630         # but is careful enough not to reorder.
17631         # Supported since Solaris 2.6 (maybe 2.5.1?)
17632         if test "$GCC" = yes; then
17633           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17634         else
17635           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17636         fi
17637         ;;
17638       esac
17639       link_all_deplibs_GCJ=yes
17640       ;;
17641
17642     sunos4*)
17643       if test "x$host_vendor" = xsequent; then
17644         # Use $CC to link under sequent, because it throws in some extra .o
17645         # files that make .init and .fini sections work.
17646         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17647       else
17648         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17649       fi
17650       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17651       hardcode_direct_GCJ=yes
17652       hardcode_minus_L_GCJ=yes
17653       hardcode_shlibpath_var_GCJ=no
17654       ;;
17655
17656     sysv4)
17657       case $host_vendor in
17658         sni)
17659           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17660           hardcode_direct_GCJ=yes # is this really true???
17661         ;;
17662         siemens)
17663           ## LD is ld it makes a PLAMLIB
17664           ## CC just makes a GrossModule.
17665           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17666           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17667           hardcode_direct_GCJ=no
17668         ;;
17669         motorola)
17670           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17671           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17672         ;;
17673       esac
17674       runpath_var='LD_RUN_PATH'
17675       hardcode_shlibpath_var_GCJ=no
17676       ;;
17677
17678     sysv4.3*)
17679       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17680       hardcode_shlibpath_var_GCJ=no
17681       export_dynamic_flag_spec_GCJ='-Bexport'
17682       ;;
17683
17684     sysv4*MP*)
17685       if test -d /usr/nec; then
17686         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17687         hardcode_shlibpath_var_GCJ=no
17688         runpath_var=LD_RUN_PATH
17689         hardcode_runpath_var=yes
17690         ld_shlibs_GCJ=yes
17691       fi
17692       ;;
17693
17694     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17695       no_undefined_flag_GCJ='${wl}-z,text'
17696       archive_cmds_need_lc_GCJ=no
17697       hardcode_shlibpath_var_GCJ=no
17698       runpath_var='LD_RUN_PATH'
17699
17700       if test "$GCC" = yes; then
17701         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17702         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17703       else
17704         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17705         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17706       fi
17707       ;;
17708
17709     sysv5* | sco3.2v5* | sco5v6*)
17710       # Note: We can NOT use -z defs as we might desire, because we do not
17711       # link with -lc, and that would cause any symbols used from libc to
17712       # always be unresolved, which means just about no library would
17713       # ever link correctly.  If we're not using GNU ld we use -z text
17714       # though, which does catch some bad symbols but isn't as heavy-handed
17715       # as -z defs.
17716       no_undefined_flag_GCJ='${wl}-z,text'
17717       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17718       archive_cmds_need_lc_GCJ=no
17719       hardcode_shlibpath_var_GCJ=no
17720       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17721       hardcode_libdir_separator_GCJ=':'
17722       link_all_deplibs_GCJ=yes
17723       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17724       runpath_var='LD_RUN_PATH'
17725
17726       if test "$GCC" = yes; then
17727         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17728         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17729       else
17730         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17731         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732       fi
17733       ;;
17734
17735     uts4*)
17736       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17738       hardcode_shlibpath_var_GCJ=no
17739       ;;
17740
17741     *)
17742       ld_shlibs_GCJ=no
17743       ;;
17744     esac
17745   fi
17746
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17748 $as_echo "$ld_shlibs_GCJ" >&6; }
17749 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17750
17751 #
17752 # Do we need to explicitly link libc?
17753 #
17754 case "x$archive_cmds_need_lc_GCJ" in
17755 x|xyes)
17756   # Assume -lc should be added
17757   archive_cmds_need_lc_GCJ=yes
17758
17759   if test "$enable_shared" = yes && test "$GCC" = yes; then
17760     case $archive_cmds_GCJ in
17761     *'~'*)
17762       # FIXME: we may have to deal with multi-command sequences.
17763       ;;
17764     '$CC '*)
17765       # Test whether the compiler implicitly links with -lc since on some
17766       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17767       # to ld, don't add -lc before -lgcc.
17768       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17769 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17770       $rm conftest*
17771       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17772
17773       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17774   (eval $ac_compile) 2>&5
17775   ac_status=$?
17776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17777   test $ac_status = 0; } 2>conftest.err; then
17778         soname=conftest
17779         lib=conftest
17780         libobjs=conftest.$ac_objext
17781         deplibs=
17782         wl=$lt_prog_compiler_wl_GCJ
17783         pic_flag=$lt_prog_compiler_pic_GCJ
17784         compiler_flags=-v
17785         linker_flags=-v
17786         verstring=
17787         output_objdir=.
17788         libname=conftest
17789         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17790         allow_undefined_flag_GCJ=
17791         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17792   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17793   ac_status=$?
17794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17795   test $ac_status = 0; }
17796         then
17797           archive_cmds_need_lc_GCJ=no
17798         else
17799           archive_cmds_need_lc_GCJ=yes
17800         fi
17801         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17802       else
17803         cat conftest.err 1>&5
17804       fi
17805       $rm conftest*
17806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17807 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17808       ;;
17809     esac
17810   fi
17811   ;;
17812 esac
17813
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17816 library_names_spec=
17817 libname_spec='lib$name'
17818 soname_spec=
17819 shrext_cmds=".so"
17820 postinstall_cmds=
17821 postuninstall_cmds=
17822 finish_cmds=
17823 finish_eval=
17824 shlibpath_var=
17825 shlibpath_overrides_runpath=unknown
17826 version_type=none
17827 dynamic_linker="$host_os ld.so"
17828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17829
17830 need_lib_prefix=unknown
17831 hardcode_into_libs=no
17832
17833 # when you set need_version to no, make sure it does not cause -set_version
17834 # flags to be left without arguments
17835 need_version=unknown
17836
17837 case $host_os in
17838 aix3*)
17839   version_type=linux
17840   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17841   shlibpath_var=LIBPATH
17842
17843   # AIX 3 has no versioning support, so we append a major version to the name.
17844   soname_spec='${libname}${release}${shared_ext}$major'
17845   ;;
17846
17847 aix[4-9]*)
17848   version_type=linux
17849   need_lib_prefix=no
17850   need_version=no
17851   hardcode_into_libs=yes
17852   if test "$host_cpu" = ia64; then
17853     # AIX 5 supports IA64
17854     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17855     shlibpath_var=LD_LIBRARY_PATH
17856   else
17857     # With GCC up to 2.95.x, collect2 would create an import file
17858     # for dependence libraries.  The import file would start with
17859     # the line `#! .'.  This would cause the generated library to
17860     # depend on `.', always an invalid library.  This was fixed in
17861     # development snapshots of GCC prior to 3.0.
17862     case $host_os in
17863       aix4 | aix4.[01] | aix4.[01].*)
17864       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17865            echo ' yes '
17866            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17867         :
17868       else
17869         can_build_shared=no
17870       fi
17871       ;;
17872     esac
17873     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17874     # soname into executable. Probably we can add versioning support to
17875     # collect2, so additional links can be useful in future.
17876     if test "$aix_use_runtimelinking" = yes; then
17877       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17878       # instead of lib<name>.a to let people know that these are not
17879       # typical AIX shared libraries.
17880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881     else
17882       # We preserve .a as extension for shared libraries through AIX4.2
17883       # and later when we are not doing run time linking.
17884       library_names_spec='${libname}${release}.a $libname.a'
17885       soname_spec='${libname}${release}${shared_ext}$major'
17886     fi
17887     shlibpath_var=LIBPATH
17888   fi
17889   ;;
17890
17891 amigaos*)
17892   library_names_spec='$libname.ixlibrary $libname.a'
17893   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17894   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'
17895   ;;
17896
17897 beos*)
17898   library_names_spec='${libname}${shared_ext}'
17899   dynamic_linker="$host_os ld.so"
17900   shlibpath_var=LIBRARY_PATH
17901   ;;
17902
17903 bsdi[45]*)
17904   version_type=linux
17905   need_version=no
17906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907   soname_spec='${libname}${release}${shared_ext}$major'
17908   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17909   shlibpath_var=LD_LIBRARY_PATH
17910   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17911   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17912   # the default ld.so.conf also contains /usr/contrib/lib and
17913   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17914   # libtool to hard-code these into programs
17915   ;;
17916
17917 cygwin* | mingw* | pw32*)
17918   version_type=windows
17919   shrext_cmds=".dll"
17920   need_version=no
17921   need_lib_prefix=no
17922
17923   case $GCC,$host_os in
17924   yes,cygwin* | yes,mingw* | yes,pw32*)
17925     library_names_spec='$libname.dll.a'
17926     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17927     postinstall_cmds='base_file=`basename \${file}`~
17928       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17929       dldir=$destdir/`dirname \$dlpath`~
17930       test -d \$dldir || mkdir -p \$dldir~
17931       $install_prog $dir/$dlname \$dldir/$dlname~
17932       chmod a+x \$dldir/$dlname'
17933     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17934       dlpath=$dir/\$dldll~
17935        $rm \$dlpath'
17936     shlibpath_overrides_runpath=yes
17937
17938     case $host_os in
17939     cygwin*)
17940       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17941       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17942       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17943       ;;
17944     mingw*)
17945       # MinGW DLLs use traditional 'lib' prefix
17946       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17947       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17948       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17949         # It is most probably a Windows format PATH printed by
17950         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17951         # path with ; separators, and with drive letters. We can handle the
17952         # drive letters (cygwin fileutils understands them), so leave them,
17953         # especially as we might pass files found there to a mingw objdump,
17954         # which wouldn't understand a cygwinified path. Ahh.
17955         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17956       else
17957         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17958       fi
17959       ;;
17960     pw32*)
17961       # pw32 DLLs use 'pw' prefix rather than 'lib'
17962       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17963       ;;
17964     esac
17965     ;;
17966
17967   *)
17968     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17969     ;;
17970   esac
17971   dynamic_linker='Win32 ld.exe'
17972   # FIXME: first we should search . and the directory the executable is in
17973   shlibpath_var=PATH
17974   ;;
17975
17976 darwin* | rhapsody*)
17977   dynamic_linker="$host_os dyld"
17978   version_type=darwin
17979   need_lib_prefix=no
17980   need_version=no
17981   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17982   soname_spec='${libname}${release}${major}$shared_ext'
17983   shlibpath_overrides_runpath=yes
17984   shlibpath_var=DYLD_LIBRARY_PATH
17985   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17986
17987   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17988   ;;
17989
17990 dgux*)
17991   version_type=linux
17992   need_lib_prefix=no
17993   need_version=no
17994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17995   soname_spec='${libname}${release}${shared_ext}$major'
17996   shlibpath_var=LD_LIBRARY_PATH
17997   ;;
17998
17999 freebsd1*)
18000   dynamic_linker=no
18001   ;;
18002
18003 freebsd* | dragonfly*)
18004   # DragonFly does not have aout.  When/if they implement a new
18005   # versioning mechanism, adjust this.
18006   if test -x /usr/bin/objformat; then
18007     objformat=`/usr/bin/objformat`
18008   else
18009     case $host_os in
18010     freebsd[123]*) objformat=aout ;;
18011     *) objformat=elf ;;
18012     esac
18013   fi
18014   version_type=freebsd-$objformat
18015   case $version_type in
18016     freebsd-elf*)
18017       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18018       need_version=no
18019       need_lib_prefix=no
18020       ;;
18021     freebsd-*)
18022       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18023       need_version=yes
18024       ;;
18025   esac
18026   shlibpath_var=LD_LIBRARY_PATH
18027   case $host_os in
18028   freebsd2*)
18029     shlibpath_overrides_runpath=yes
18030     ;;
18031   freebsd3.[01]* | freebsdelf3.[01]*)
18032     shlibpath_overrides_runpath=yes
18033     hardcode_into_libs=yes
18034     ;;
18035   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037     shlibpath_overrides_runpath=no
18038     hardcode_into_libs=yes
18039     ;;
18040   *) # from 4.6 on, and DragonFly
18041     shlibpath_overrides_runpath=yes
18042     hardcode_into_libs=yes
18043     ;;
18044   esac
18045   ;;
18046
18047 gnu*)
18048   version_type=linux
18049   need_lib_prefix=no
18050   need_version=no
18051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052   soname_spec='${libname}${release}${shared_ext}$major'
18053   shlibpath_var=LD_LIBRARY_PATH
18054   hardcode_into_libs=yes
18055   ;;
18056
18057 hpux9* | hpux10* | hpux11*)
18058   # Give a soname corresponding to the major version so that dld.sl refuses to
18059   # link against other versions.
18060   version_type=sunos
18061   need_lib_prefix=no
18062   need_version=no
18063   case $host_cpu in
18064   ia64*)
18065     shrext_cmds='.so'
18066     hardcode_into_libs=yes
18067     dynamic_linker="$host_os dld.so"
18068     shlibpath_var=LD_LIBRARY_PATH
18069     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071     soname_spec='${libname}${release}${shared_ext}$major'
18072     if test "X$HPUX_IA64_MODE" = X32; then
18073       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18074     else
18075       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18076     fi
18077     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18078     ;;
18079    hppa*64*)
18080      shrext_cmds='.sl'
18081      hardcode_into_libs=yes
18082      dynamic_linker="$host_os dld.sl"
18083      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18084      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086      soname_spec='${libname}${release}${shared_ext}$major'
18087      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18088      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18089      ;;
18090    *)
18091     shrext_cmds='.sl'
18092     dynamic_linker="$host_os dld.sl"
18093     shlibpath_var=SHLIB_PATH
18094     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096     soname_spec='${libname}${release}${shared_ext}$major'
18097     ;;
18098   esac
18099   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18100   postinstall_cmds='chmod 555 $lib'
18101   ;;
18102
18103 interix[3-9]*)
18104   version_type=linux
18105   need_lib_prefix=no
18106   need_version=no
18107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18108   soname_spec='${libname}${release}${shared_ext}$major'
18109   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18110   shlibpath_var=LD_LIBRARY_PATH
18111   shlibpath_overrides_runpath=no
18112   hardcode_into_libs=yes
18113   ;;
18114
18115 irix5* | irix6* | nonstopux*)
18116   case $host_os in
18117     nonstopux*) version_type=nonstopux ;;
18118     *)
18119         if test "$lt_cv_prog_gnu_ld" = yes; then
18120                 version_type=linux
18121         else
18122                 version_type=irix
18123         fi ;;
18124   esac
18125   need_lib_prefix=no
18126   need_version=no
18127   soname_spec='${libname}${release}${shared_ext}$major'
18128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18129   case $host_os in
18130   irix5* | nonstopux*)
18131     libsuff= shlibsuff=
18132     ;;
18133   *)
18134     case $LD in # libtool.m4 will add one of these switches to LD
18135     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18136       libsuff= shlibsuff= libmagic=32-bit;;
18137     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18138       libsuff=32 shlibsuff=N32 libmagic=N32;;
18139     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18140       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18141     *) libsuff= shlibsuff= libmagic=never-match;;
18142     esac
18143     ;;
18144   esac
18145   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18146   shlibpath_overrides_runpath=no
18147   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18148   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18149   hardcode_into_libs=yes
18150   ;;
18151
18152 # No shared lib support for Linux oldld, aout, or coff.
18153 linux*oldld* | linux*aout* | linux*coff*)
18154   dynamic_linker=no
18155   ;;
18156
18157 # This must be Linux ELF.
18158 linux* | k*bsd*-gnu)
18159   version_type=linux
18160   need_lib_prefix=no
18161   need_version=no
18162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163   soname_spec='${libname}${release}${shared_ext}$major'
18164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18165   shlibpath_var=LD_LIBRARY_PATH
18166   shlibpath_overrides_runpath=no
18167   # This implies no fast_install, which is unacceptable.
18168   # Some rework will be needed to allow for fast_install
18169   # before this can be enabled.
18170   hardcode_into_libs=yes
18171
18172   # Append ld.so.conf contents to the search path
18173   if test -f /etc/ld.so.conf; then
18174     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' ' '`
18175     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18176   fi
18177
18178   # We used to test for /lib/ld.so.1 and disable shared libraries on
18179   # powerpc, because MkLinux only supported shared libraries with the
18180   # GNU dynamic linker.  Since this was broken with cross compilers,
18181   # most powerpc-linux boxes support dynamic linking these days and
18182   # people can always --disable-shared, the test was removed, and we
18183   # assume the GNU/Linux dynamic linker is in use.
18184   dynamic_linker='GNU/Linux ld.so'
18185   ;;
18186
18187 netbsdelf*-gnu)
18188   version_type=linux
18189   need_lib_prefix=no
18190   need_version=no
18191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18192   soname_spec='${libname}${release}${shared_ext}$major'
18193   shlibpath_var=LD_LIBRARY_PATH
18194   shlibpath_overrides_runpath=no
18195   hardcode_into_libs=yes
18196   dynamic_linker='NetBSD ld.elf_so'
18197   ;;
18198
18199 netbsd*)
18200   version_type=sunos
18201   need_lib_prefix=no
18202   need_version=no
18203   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18206     dynamic_linker='NetBSD (a.out) ld.so'
18207   else
18208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209     soname_spec='${libname}${release}${shared_ext}$major'
18210     dynamic_linker='NetBSD ld.elf_so'
18211   fi
18212   shlibpath_var=LD_LIBRARY_PATH
18213   shlibpath_overrides_runpath=yes
18214   hardcode_into_libs=yes
18215   ;;
18216
18217 newsos6)
18218   version_type=linux
18219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220   shlibpath_var=LD_LIBRARY_PATH
18221   shlibpath_overrides_runpath=yes
18222   ;;
18223
18224 nto-qnx*)
18225   version_type=linux
18226   need_lib_prefix=no
18227   need_version=no
18228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229   soname_spec='${libname}${release}${shared_ext}$major'
18230   shlibpath_var=LD_LIBRARY_PATH
18231   shlibpath_overrides_runpath=yes
18232   ;;
18233
18234 openbsd*)
18235   version_type=sunos
18236   sys_lib_dlsearch_path_spec="/usr/lib"
18237   need_lib_prefix=no
18238   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18239   case $host_os in
18240     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18241     *)                         need_version=no  ;;
18242   esac
18243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18245   shlibpath_var=LD_LIBRARY_PATH
18246   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18247     case $host_os in
18248       openbsd2.[89] | openbsd2.[89].*)
18249         shlibpath_overrides_runpath=no
18250         ;;
18251       *)
18252         shlibpath_overrides_runpath=yes
18253         ;;
18254       esac
18255   else
18256     shlibpath_overrides_runpath=yes
18257   fi
18258   ;;
18259
18260 os2*)
18261   libname_spec='$name'
18262   shrext_cmds=".dll"
18263   need_lib_prefix=no
18264   library_names_spec='$libname${shared_ext} $libname.a'
18265   dynamic_linker='OS/2 ld.exe'
18266   shlibpath_var=LIBPATH
18267   ;;
18268
18269 osf3* | osf4* | osf5*)
18270   version_type=osf
18271   need_lib_prefix=no
18272   need_version=no
18273   soname_spec='${libname}${release}${shared_ext}$major'
18274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275   shlibpath_var=LD_LIBRARY_PATH
18276   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18277   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18278   ;;
18279
18280 rdos*)
18281   dynamic_linker=no
18282   ;;
18283
18284 solaris*)
18285   version_type=linux
18286   need_lib_prefix=no
18287   need_version=no
18288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289   soname_spec='${libname}${release}${shared_ext}$major'
18290   shlibpath_var=LD_LIBRARY_PATH
18291   shlibpath_overrides_runpath=yes
18292   hardcode_into_libs=yes
18293   # ldd complains unless libraries are executable
18294   postinstall_cmds='chmod +x $lib'
18295   ;;
18296
18297 sunos4*)
18298   version_type=sunos
18299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18301   shlibpath_var=LD_LIBRARY_PATH
18302   shlibpath_overrides_runpath=yes
18303   if test "$with_gnu_ld" = yes; then
18304     need_lib_prefix=no
18305   fi
18306   need_version=yes
18307   ;;
18308
18309 sysv4 | sysv4.3*)
18310   version_type=linux
18311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312   soname_spec='${libname}${release}${shared_ext}$major'
18313   shlibpath_var=LD_LIBRARY_PATH
18314   case $host_vendor in
18315     sni)
18316       shlibpath_overrides_runpath=no
18317       need_lib_prefix=no
18318       export_dynamic_flag_spec='${wl}-Blargedynsym'
18319       runpath_var=LD_RUN_PATH
18320       ;;
18321     siemens)
18322       need_lib_prefix=no
18323       ;;
18324     motorola)
18325       need_lib_prefix=no
18326       need_version=no
18327       shlibpath_overrides_runpath=no
18328       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18329       ;;
18330   esac
18331   ;;
18332
18333 sysv4*MP*)
18334   if test -d /usr/nec ;then
18335     version_type=linux
18336     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18337     soname_spec='$libname${shared_ext}.$major'
18338     shlibpath_var=LD_LIBRARY_PATH
18339   fi
18340   ;;
18341
18342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18343   version_type=freebsd-elf
18344   need_lib_prefix=no
18345   need_version=no
18346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18347   soname_spec='${libname}${release}${shared_ext}$major'
18348   shlibpath_var=LD_LIBRARY_PATH
18349   hardcode_into_libs=yes
18350   if test "$with_gnu_ld" = yes; then
18351     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18352     shlibpath_overrides_runpath=no
18353   else
18354     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18355     shlibpath_overrides_runpath=yes
18356     case $host_os in
18357       sco3.2v5*)
18358         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18359         ;;
18360     esac
18361   fi
18362   sys_lib_dlsearch_path_spec='/usr/lib'
18363   ;;
18364
18365 uts4*)
18366   version_type=linux
18367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368   soname_spec='${libname}${release}${shared_ext}$major'
18369   shlibpath_var=LD_LIBRARY_PATH
18370   ;;
18371
18372 *)
18373   dynamic_linker=no
18374   ;;
18375 esac
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18377 $as_echo "$dynamic_linker" >&6; }
18378 test "$dynamic_linker" = no && can_build_shared=no
18379
18380 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18381   $as_echo_n "(cached) " >&6
18382 else
18383   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18384 fi
18385
18386 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18387 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18388   $as_echo_n "(cached) " >&6
18389 else
18390   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18391 fi
18392
18393 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18394
18395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18396 if test "$GCC" = yes; then
18397   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18398 fi
18399
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18402 hardcode_action_GCJ=
18403 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18404    test -n "$runpath_var_GCJ" || \
18405    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18406
18407   # We can hardcode non-existant directories.
18408   if test "$hardcode_direct_GCJ" != no &&
18409      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18410      # have to relink, otherwise we might link with an installed library
18411      # when we should be linking with a yet-to-be-installed one
18412      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18413      test "$hardcode_minus_L_GCJ" != no; then
18414     # Linking always hardcodes the temporary library directory.
18415     hardcode_action_GCJ=relink
18416   else
18417     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18418     hardcode_action_GCJ=immediate
18419   fi
18420 else
18421   # We cannot hardcode anything, or else we can only hardcode existing
18422   # directories.
18423   hardcode_action_GCJ=unsupported
18424 fi
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18426 $as_echo "$hardcode_action_GCJ" >&6; }
18427
18428 if test "$hardcode_action_GCJ" = relink; then
18429   # Fast installation is not supported
18430   enable_fast_install=no
18431 elif test "$shlibpath_overrides_runpath" = yes ||
18432      test "$enable_shared" = no; then
18433   # Fast installation is not necessary
18434   enable_fast_install=needless
18435 fi
18436
18437
18438 # The else clause should only fire when bootstrapping the
18439 # libtool distribution, otherwise you forgot to ship ltmain.sh
18440 # with your package, and you will get complaints that there are
18441 # no rules to generate ltmain.sh.
18442 if test -f "$ltmain"; then
18443   # See if we are running on zsh, and set the options which allow our commands through
18444   # without removal of \ escapes.
18445   if test -n "${ZSH_VERSION+set}" ; then
18446     setopt NO_GLOB_SUBST
18447   fi
18448   # Now quote all the things that may contain metacharacters while being
18449   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18450   # variables and quote the copies for generation of the libtool script.
18451   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18452     SED SHELL STRIP \
18453     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18454     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18455     deplibs_check_method reload_flag reload_cmds need_locks \
18456     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18457     lt_cv_sys_global_symbol_to_c_name_address \
18458     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18459     old_postinstall_cmds old_postuninstall_cmds \
18460     compiler_GCJ \
18461     CC_GCJ \
18462     LD_GCJ \
18463     lt_prog_compiler_wl_GCJ \
18464     lt_prog_compiler_pic_GCJ \
18465     lt_prog_compiler_static_GCJ \
18466     lt_prog_compiler_no_builtin_flag_GCJ \
18467     export_dynamic_flag_spec_GCJ \
18468     thread_safe_flag_spec_GCJ \
18469     whole_archive_flag_spec_GCJ \
18470     enable_shared_with_static_runtimes_GCJ \
18471     old_archive_cmds_GCJ \
18472     old_archive_from_new_cmds_GCJ \
18473     predep_objects_GCJ \
18474     postdep_objects_GCJ \
18475     predeps_GCJ \
18476     postdeps_GCJ \
18477     compiler_lib_search_path_GCJ \
18478     compiler_lib_search_dirs_GCJ \
18479     archive_cmds_GCJ \
18480     archive_expsym_cmds_GCJ \
18481     postinstall_cmds_GCJ \
18482     postuninstall_cmds_GCJ \
18483     old_archive_from_expsyms_cmds_GCJ \
18484     allow_undefined_flag_GCJ \
18485     no_undefined_flag_GCJ \
18486     export_symbols_cmds_GCJ \
18487     hardcode_libdir_flag_spec_GCJ \
18488     hardcode_libdir_flag_spec_ld_GCJ \
18489     hardcode_libdir_separator_GCJ \
18490     hardcode_automatic_GCJ \
18491     module_cmds_GCJ \
18492     module_expsym_cmds_GCJ \
18493     lt_cv_prog_compiler_c_o_GCJ \
18494     fix_srcfile_path_GCJ \
18495     exclude_expsyms_GCJ \
18496     include_expsyms_GCJ; do
18497
18498     case $var in
18499     old_archive_cmds_GCJ | \
18500     old_archive_from_new_cmds_GCJ | \
18501     archive_cmds_GCJ | \
18502     archive_expsym_cmds_GCJ | \
18503     module_cmds_GCJ | \
18504     module_expsym_cmds_GCJ | \
18505     old_archive_from_expsyms_cmds_GCJ | \
18506     export_symbols_cmds_GCJ | \
18507     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18508     postinstall_cmds | postuninstall_cmds | \
18509     old_postinstall_cmds | old_postuninstall_cmds | \
18510     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18511       # Double-quote double-evaled strings.
18512       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18513       ;;
18514     *)
18515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18516       ;;
18517     esac
18518   done
18519
18520   case $lt_echo in
18521   *'\$0 --fallback-echo"')
18522     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18523     ;;
18524   esac
18525
18526 cfgfile="$ofile"
18527
18528   cat <<__EOF__ >> "$cfgfile"
18529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18530
18531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18532
18533 # Shell to use when invoking shell scripts.
18534 SHELL=$lt_SHELL
18535
18536 # Whether or not to build shared libraries.
18537 build_libtool_libs=$enable_shared
18538
18539 # Whether or not to build static libraries.
18540 build_old_libs=$enable_static
18541
18542 # Whether or not to add -lc for building shared libraries.
18543 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18544
18545 # Whether or not to disallow shared libs when runtime libs are static
18546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18547
18548 # Whether or not to optimize for fast installation.
18549 fast_install=$enable_fast_install
18550
18551 # The host system.
18552 host_alias=$host_alias
18553 host=$host
18554 host_os=$host_os
18555
18556 # The build system.
18557 build_alias=$build_alias
18558 build=$build
18559 build_os=$build_os
18560
18561 # An echo program that does not interpret backslashes.
18562 echo=$lt_echo
18563
18564 # The archiver.
18565 AR=$lt_AR
18566 AR_FLAGS=$lt_AR_FLAGS
18567
18568 # A C compiler.
18569 LTCC=$lt_LTCC
18570
18571 # LTCC compiler flags.
18572 LTCFLAGS=$lt_LTCFLAGS
18573
18574 # A language-specific compiler.
18575 CC=$lt_compiler_GCJ
18576
18577 # Is the compiler the GNU C compiler?
18578 with_gcc=$GCC_GCJ
18579
18580 # An ERE matcher.
18581 EGREP=$lt_EGREP
18582
18583 # The linker used to build libraries.
18584 LD=$lt_LD_GCJ
18585
18586 # Whether we need hard or soft links.
18587 LN_S=$lt_LN_S
18588
18589 # A BSD-compatible nm program.
18590 NM=$lt_NM
18591
18592 # A symbol stripping program
18593 STRIP=$lt_STRIP
18594
18595 # Used to examine libraries when file_magic_cmd begins "file"
18596 MAGIC_CMD=$MAGIC_CMD
18597
18598 # Used on cygwin: DLL creation program.
18599 DLLTOOL="$DLLTOOL"
18600
18601 # Used on cygwin: object dumper.
18602 OBJDUMP="$OBJDUMP"
18603
18604 # Used on cygwin: assembler.
18605 AS="$AS"
18606
18607 # The name of the directory that contains temporary libtool files.
18608 objdir=$objdir
18609
18610 # How to create reloadable object files.
18611 reload_flag=$lt_reload_flag
18612 reload_cmds=$lt_reload_cmds
18613
18614 # How to pass a linker flag through the compiler.
18615 wl=$lt_lt_prog_compiler_wl_GCJ
18616
18617 # Object file suffix (normally "o").
18618 objext="$ac_objext"
18619
18620 # Old archive suffix (normally "a").
18621 libext="$libext"
18622
18623 # Shared library suffix (normally ".so").
18624 shrext_cmds='$shrext_cmds'
18625
18626 # Executable file suffix (normally "").
18627 exeext="$exeext"
18628
18629 # Additional compiler flags for building library objects.
18630 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18631 pic_mode=$pic_mode
18632
18633 # What is the maximum length of a command?
18634 max_cmd_len=$lt_cv_sys_max_cmd_len
18635
18636 # Does compiler simultaneously support -c and -o options?
18637 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18638
18639 # Must we lock files when doing compilation?
18640 need_locks=$lt_need_locks
18641
18642 # Do we need the lib prefix for modules?
18643 need_lib_prefix=$need_lib_prefix
18644
18645 # Do we need a version for libraries?
18646 need_version=$need_version
18647
18648 # Whether dlopen is supported.
18649 dlopen_support=$enable_dlopen
18650
18651 # Whether dlopen of programs is supported.
18652 dlopen_self=$enable_dlopen_self
18653
18654 # Whether dlopen of statically linked programs is supported.
18655 dlopen_self_static=$enable_dlopen_self_static
18656
18657 # Compiler flag to prevent dynamic linking.
18658 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18659
18660 # Compiler flag to turn off builtin functions.
18661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18662
18663 # Compiler flag to allow reflexive dlopens.
18664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18665
18666 # Compiler flag to generate shared objects directly from archives.
18667 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18668
18669 # Compiler flag to generate thread-safe objects.
18670 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18671
18672 # Library versioning type.
18673 version_type=$version_type
18674
18675 # Format of library name prefix.
18676 libname_spec=$lt_libname_spec
18677
18678 # List of archive names.  First name is the real one, the rest are links.
18679 # The last name is the one that the linker finds with -lNAME.
18680 library_names_spec=$lt_library_names_spec
18681
18682 # The coded name of the library, if different from the real name.
18683 soname_spec=$lt_soname_spec
18684
18685 # Commands used to build and install an old-style archive.
18686 RANLIB=$lt_RANLIB
18687 old_archive_cmds=$lt_old_archive_cmds_GCJ
18688 old_postinstall_cmds=$lt_old_postinstall_cmds
18689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18690
18691 # Create an old-style archive from a shared archive.
18692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18693
18694 # Create a temporary old-style archive to link instead of a shared archive.
18695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18696
18697 # Commands used to build and install a shared archive.
18698 archive_cmds=$lt_archive_cmds_GCJ
18699 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18700 postinstall_cmds=$lt_postinstall_cmds
18701 postuninstall_cmds=$lt_postuninstall_cmds
18702
18703 # Commands used to build a loadable module (assumed same as above if empty)
18704 module_cmds=$lt_module_cmds_GCJ
18705 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18706
18707 # Commands to strip libraries.
18708 old_striplib=$lt_old_striplib
18709 striplib=$lt_striplib
18710
18711 # Dependencies to place before the objects being linked to create a
18712 # shared library.
18713 predep_objects=$lt_predep_objects_GCJ
18714
18715 # Dependencies to place after the objects being linked to create a
18716 # shared library.
18717 postdep_objects=$lt_postdep_objects_GCJ
18718
18719 # Dependencies to place before the objects being linked to create a
18720 # shared library.
18721 predeps=$lt_predeps_GCJ
18722
18723 # Dependencies to place after the objects being linked to create a
18724 # shared library.
18725 postdeps=$lt_postdeps_GCJ
18726
18727 # The directories searched by this compiler when creating a shared
18728 # library
18729 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18730
18731 # The library search path used internally by the compiler when linking
18732 # a shared library.
18733 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18734
18735 # Method to check whether dependent libraries are shared objects.
18736 deplibs_check_method=$lt_deplibs_check_method
18737
18738 # Command to use when deplibs_check_method == file_magic.
18739 file_magic_cmd=$lt_file_magic_cmd
18740
18741 # Flag that allows shared libraries with undefined symbols to be built.
18742 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18743
18744 # Flag that forces no undefined symbols.
18745 no_undefined_flag=$lt_no_undefined_flag_GCJ
18746
18747 # Commands used to finish a libtool library installation in a directory.
18748 finish_cmds=$lt_finish_cmds
18749
18750 # Same as above, but a single script fragment to be evaled but not shown.
18751 finish_eval=$lt_finish_eval
18752
18753 # Take the output of nm and produce a listing of raw symbols and C names.
18754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18755
18756 # Transform the output of nm in a proper C declaration
18757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18758
18759 # Transform the output of nm in a C name address pair
18760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18761
18762 # This is the shared library runtime path variable.
18763 runpath_var=$runpath_var
18764
18765 # This is the shared library path variable.
18766 shlibpath_var=$shlibpath_var
18767
18768 # Is shlibpath searched before the hard-coded library search path?
18769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18770
18771 # How to hardcode a shared library path into an executable.
18772 hardcode_action=$hardcode_action_GCJ
18773
18774 # Whether we should hardcode library paths into libraries.
18775 hardcode_into_libs=$hardcode_into_libs
18776
18777 # Flag to hardcode \$libdir into a binary during linking.
18778 # This must work even if \$libdir does not exist.
18779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18780
18781 # If ld is used when linking, flag to hardcode \$libdir into
18782 # a binary during linking. This must work even if \$libdir does
18783 # not exist.
18784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18785
18786 # Whether we need a single -rpath flag with a separated argument.
18787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18788
18789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18790 # resulting binary.
18791 hardcode_direct=$hardcode_direct_GCJ
18792
18793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18794 # resulting binary.
18795 hardcode_minus_L=$hardcode_minus_L_GCJ
18796
18797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18798 # the resulting binary.
18799 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18800
18801 # Set to yes if building a shared library automatically hardcodes DIR into the library
18802 # and all subsequent libraries and executables linked against it.
18803 hardcode_automatic=$hardcode_automatic_GCJ
18804
18805 # Variables whose values should be saved in libtool wrapper scripts and
18806 # restored at relink time.
18807 variables_saved_for_relink="$variables_saved_for_relink"
18808
18809 # Whether libtool must link a program against all its dependency libraries.
18810 link_all_deplibs=$link_all_deplibs_GCJ
18811
18812 # Compile-time system search path for libraries
18813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18814
18815 # Run-time system search path for libraries
18816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18817
18818 # Fix the shell variable \$srcfile for the compiler.
18819 fix_srcfile_path=$lt_fix_srcfile_path
18820
18821 # Set to yes if exported symbols are required.
18822 always_export_symbols=$always_export_symbols_GCJ
18823
18824 # The commands to list exported symbols.
18825 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18826
18827 # The commands to extract the exported symbol list from a shared archive.
18828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18829
18830 # Symbols that should not be listed in the preloaded symbols.
18831 exclude_expsyms=$lt_exclude_expsyms_GCJ
18832
18833 # Symbols that must always be exported.
18834 include_expsyms=$lt_include_expsyms_GCJ
18835
18836 # ### END LIBTOOL TAG CONFIG: $tagname
18837
18838 __EOF__
18839
18840
18841 else
18842   # If there is no Makefile yet, we rely on a make rule to execute
18843   # `config.status --recheck' to rerun these tests and create the
18844   # libtool script then.
18845   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18846   if test -f "$ltmain_in"; then
18847     test -f Makefile && make "$ltmain"
18848   fi
18849 fi
18850
18851
18852 ac_ext=c
18853 ac_cpp='$CPP $CPPFLAGS'
18854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18857
18858 CC="$lt_save_CC"
18859
18860         else
18861           tagname=""
18862         fi
18863         ;;
18864
18865       RC)
18866
18867
18868 # Source file extension for RC test sources.
18869 ac_ext=rc
18870
18871 # Object file extension for compiled RC test sources.
18872 objext=o
18873 objext_RC=$objext
18874
18875 # Code to be used in simple compile tests
18876 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18877
18878 # Code to be used in simple link tests
18879 lt_simple_link_test_code="$lt_simple_compile_test_code"
18880
18881 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18882
18883 # If no C compiler was specified, use CC.
18884 LTCC=${LTCC-"$CC"}
18885
18886 # If no C compiler flags were specified, use CFLAGS.
18887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18888
18889 # Allow CC to be a program name with arguments.
18890 compiler=$CC
18891
18892
18893 # save warnings/boilerplate of simple test code
18894 ac_outfile=conftest.$ac_objext
18895 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18896 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18897 _lt_compiler_boilerplate=`cat conftest.err`
18898 $rm conftest*
18899
18900 ac_outfile=conftest.$ac_objext
18901 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18903 _lt_linker_boilerplate=`cat conftest.err`
18904 $rm -r conftest*
18905
18906
18907 # Allow CC to be a program name with arguments.
18908 lt_save_CC="$CC"
18909 CC=${RC-"windres"}
18910 compiler=$CC
18911 compiler_RC=$CC
18912 for cc_temp in $compiler""; do
18913   case $cc_temp in
18914     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18915     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18916     \-*) ;;
18917     *) break;;
18918   esac
18919 done
18920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18921
18922 lt_cv_prog_compiler_c_o_RC=yes
18923
18924 # The else clause should only fire when bootstrapping the
18925 # libtool distribution, otherwise you forgot to ship ltmain.sh
18926 # with your package, and you will get complaints that there are
18927 # no rules to generate ltmain.sh.
18928 if test -f "$ltmain"; then
18929   # See if we are running on zsh, and set the options which allow our commands through
18930   # without removal of \ escapes.
18931   if test -n "${ZSH_VERSION+set}" ; then
18932     setopt NO_GLOB_SUBST
18933   fi
18934   # Now quote all the things that may contain metacharacters while being
18935   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18936   # variables and quote the copies for generation of the libtool script.
18937   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18938     SED SHELL STRIP \
18939     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18940     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18941     deplibs_check_method reload_flag reload_cmds need_locks \
18942     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18943     lt_cv_sys_global_symbol_to_c_name_address \
18944     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18945     old_postinstall_cmds old_postuninstall_cmds \
18946     compiler_RC \
18947     CC_RC \
18948     LD_RC \
18949     lt_prog_compiler_wl_RC \
18950     lt_prog_compiler_pic_RC \
18951     lt_prog_compiler_static_RC \
18952     lt_prog_compiler_no_builtin_flag_RC \
18953     export_dynamic_flag_spec_RC \
18954     thread_safe_flag_spec_RC \
18955     whole_archive_flag_spec_RC \
18956     enable_shared_with_static_runtimes_RC \
18957     old_archive_cmds_RC \
18958     old_archive_from_new_cmds_RC \
18959     predep_objects_RC \
18960     postdep_objects_RC \
18961     predeps_RC \
18962     postdeps_RC \
18963     compiler_lib_search_path_RC \
18964     compiler_lib_search_dirs_RC \
18965     archive_cmds_RC \
18966     archive_expsym_cmds_RC \
18967     postinstall_cmds_RC \
18968     postuninstall_cmds_RC \
18969     old_archive_from_expsyms_cmds_RC \
18970     allow_undefined_flag_RC \
18971     no_undefined_flag_RC \
18972     export_symbols_cmds_RC \
18973     hardcode_libdir_flag_spec_RC \
18974     hardcode_libdir_flag_spec_ld_RC \
18975     hardcode_libdir_separator_RC \
18976     hardcode_automatic_RC \
18977     module_cmds_RC \
18978     module_expsym_cmds_RC \
18979     lt_cv_prog_compiler_c_o_RC \
18980     fix_srcfile_path_RC \
18981     exclude_expsyms_RC \
18982     include_expsyms_RC; do
18983
18984     case $var in
18985     old_archive_cmds_RC | \
18986     old_archive_from_new_cmds_RC | \
18987     archive_cmds_RC | \
18988     archive_expsym_cmds_RC | \
18989     module_cmds_RC | \
18990     module_expsym_cmds_RC | \
18991     old_archive_from_expsyms_cmds_RC | \
18992     export_symbols_cmds_RC | \
18993     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18994     postinstall_cmds | postuninstall_cmds | \
18995     old_postinstall_cmds | old_postuninstall_cmds | \
18996     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18997       # Double-quote double-evaled strings.
18998       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18999       ;;
19000     *)
19001       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19002       ;;
19003     esac
19004   done
19005
19006   case $lt_echo in
19007   *'\$0 --fallback-echo"')
19008     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19009     ;;
19010   esac
19011
19012 cfgfile="$ofile"
19013
19014   cat <<__EOF__ >> "$cfgfile"
19015 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19016
19017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19018
19019 # Shell to use when invoking shell scripts.
19020 SHELL=$lt_SHELL
19021
19022 # Whether or not to build shared libraries.
19023 build_libtool_libs=$enable_shared
19024
19025 # Whether or not to build static libraries.
19026 build_old_libs=$enable_static
19027
19028 # Whether or not to add -lc for building shared libraries.
19029 build_libtool_need_lc=$archive_cmds_need_lc_RC
19030
19031 # Whether or not to disallow shared libs when runtime libs are static
19032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19033
19034 # Whether or not to optimize for fast installation.
19035 fast_install=$enable_fast_install
19036
19037 # The host system.
19038 host_alias=$host_alias
19039 host=$host
19040 host_os=$host_os
19041
19042 # The build system.
19043 build_alias=$build_alias
19044 build=$build
19045 build_os=$build_os
19046
19047 # An echo program that does not interpret backslashes.
19048 echo=$lt_echo
19049
19050 # The archiver.
19051 AR=$lt_AR
19052 AR_FLAGS=$lt_AR_FLAGS
19053
19054 # A C compiler.
19055 LTCC=$lt_LTCC
19056
19057 # LTCC compiler flags.
19058 LTCFLAGS=$lt_LTCFLAGS
19059
19060 # A language-specific compiler.
19061 CC=$lt_compiler_RC
19062
19063 # Is the compiler the GNU C compiler?
19064 with_gcc=$GCC_RC
19065
19066 # An ERE matcher.
19067 EGREP=$lt_EGREP
19068
19069 # The linker used to build libraries.
19070 LD=$lt_LD_RC
19071
19072 # Whether we need hard or soft links.
19073 LN_S=$lt_LN_S
19074
19075 # A BSD-compatible nm program.
19076 NM=$lt_NM
19077
19078 # A symbol stripping program
19079 STRIP=$lt_STRIP
19080
19081 # Used to examine libraries when file_magic_cmd begins "file"
19082 MAGIC_CMD=$MAGIC_CMD
19083
19084 # Used on cygwin: DLL creation program.
19085 DLLTOOL="$DLLTOOL"
19086
19087 # Used on cygwin: object dumper.
19088 OBJDUMP="$OBJDUMP"
19089
19090 # Used on cygwin: assembler.
19091 AS="$AS"
19092
19093 # The name of the directory that contains temporary libtool files.
19094 objdir=$objdir
19095
19096 # How to create reloadable object files.
19097 reload_flag=$lt_reload_flag
19098 reload_cmds=$lt_reload_cmds
19099
19100 # How to pass a linker flag through the compiler.
19101 wl=$lt_lt_prog_compiler_wl_RC
19102
19103 # Object file suffix (normally "o").
19104 objext="$ac_objext"
19105
19106 # Old archive suffix (normally "a").
19107 libext="$libext"
19108
19109 # Shared library suffix (normally ".so").
19110 shrext_cmds='$shrext_cmds'
19111
19112 # Executable file suffix (normally "").
19113 exeext="$exeext"
19114
19115 # Additional compiler flags for building library objects.
19116 pic_flag=$lt_lt_prog_compiler_pic_RC
19117 pic_mode=$pic_mode
19118
19119 # What is the maximum length of a command?
19120 max_cmd_len=$lt_cv_sys_max_cmd_len
19121
19122 # Does compiler simultaneously support -c and -o options?
19123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19124
19125 # Must we lock files when doing compilation?
19126 need_locks=$lt_need_locks
19127
19128 # Do we need the lib prefix for modules?
19129 need_lib_prefix=$need_lib_prefix
19130
19131 # Do we need a version for libraries?
19132 need_version=$need_version
19133
19134 # Whether dlopen is supported.
19135 dlopen_support=$enable_dlopen
19136
19137 # Whether dlopen of programs is supported.
19138 dlopen_self=$enable_dlopen_self
19139
19140 # Whether dlopen of statically linked programs is supported.
19141 dlopen_self_static=$enable_dlopen_self_static
19142
19143 # Compiler flag to prevent dynamic linking.
19144 link_static_flag=$lt_lt_prog_compiler_static_RC
19145
19146 # Compiler flag to turn off builtin functions.
19147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19148
19149 # Compiler flag to allow reflexive dlopens.
19150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19151
19152 # Compiler flag to generate shared objects directly from archives.
19153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19154
19155 # Compiler flag to generate thread-safe objects.
19156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19157
19158 # Library versioning type.
19159 version_type=$version_type
19160
19161 # Format of library name prefix.
19162 libname_spec=$lt_libname_spec
19163
19164 # List of archive names.  First name is the real one, the rest are links.
19165 # The last name is the one that the linker finds with -lNAME.
19166 library_names_spec=$lt_library_names_spec
19167
19168 # The coded name of the library, if different from the real name.
19169 soname_spec=$lt_soname_spec
19170
19171 # Commands used to build and install an old-style archive.
19172 RANLIB=$lt_RANLIB
19173 old_archive_cmds=$lt_old_archive_cmds_RC
19174 old_postinstall_cmds=$lt_old_postinstall_cmds
19175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19176
19177 # Create an old-style archive from a shared archive.
19178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19179
19180 # Create a temporary old-style archive to link instead of a shared archive.
19181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19182
19183 # Commands used to build and install a shared archive.
19184 archive_cmds=$lt_archive_cmds_RC
19185 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19186 postinstall_cmds=$lt_postinstall_cmds
19187 postuninstall_cmds=$lt_postuninstall_cmds
19188
19189 # Commands used to build a loadable module (assumed same as above if empty)
19190 module_cmds=$lt_module_cmds_RC
19191 module_expsym_cmds=$lt_module_expsym_cmds_RC
19192
19193 # Commands to strip libraries.
19194 old_striplib=$lt_old_striplib
19195 striplib=$lt_striplib
19196
19197 # Dependencies to place before the objects being linked to create a
19198 # shared library.
19199 predep_objects=$lt_predep_objects_RC
19200
19201 # Dependencies to place after the objects being linked to create a
19202 # shared library.
19203 postdep_objects=$lt_postdep_objects_RC
19204
19205 # Dependencies to place before the objects being linked to create a
19206 # shared library.
19207 predeps=$lt_predeps_RC
19208
19209 # Dependencies to place after the objects being linked to create a
19210 # shared library.
19211 postdeps=$lt_postdeps_RC
19212
19213 # The directories searched by this compiler when creating a shared
19214 # library
19215 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19216
19217 # The library search path used internally by the compiler when linking
19218 # a shared library.
19219 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19220
19221 # Method to check whether dependent libraries are shared objects.
19222 deplibs_check_method=$lt_deplibs_check_method
19223
19224 # Command to use when deplibs_check_method == file_magic.
19225 file_magic_cmd=$lt_file_magic_cmd
19226
19227 # Flag that allows shared libraries with undefined symbols to be built.
19228 allow_undefined_flag=$lt_allow_undefined_flag_RC
19229
19230 # Flag that forces no undefined symbols.
19231 no_undefined_flag=$lt_no_undefined_flag_RC
19232
19233 # Commands used to finish a libtool library installation in a directory.
19234 finish_cmds=$lt_finish_cmds
19235
19236 # Same as above, but a single script fragment to be evaled but not shown.
19237 finish_eval=$lt_finish_eval
19238
19239 # Take the output of nm and produce a listing of raw symbols and C names.
19240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19241
19242 # Transform the output of nm in a proper C declaration
19243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19244
19245 # Transform the output of nm in a C name address pair
19246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19247
19248 # This is the shared library runtime path variable.
19249 runpath_var=$runpath_var
19250
19251 # This is the shared library path variable.
19252 shlibpath_var=$shlibpath_var
19253
19254 # Is shlibpath searched before the hard-coded library search path?
19255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19256
19257 # How to hardcode a shared library path into an executable.
19258 hardcode_action=$hardcode_action_RC
19259
19260 # Whether we should hardcode library paths into libraries.
19261 hardcode_into_libs=$hardcode_into_libs
19262
19263 # Flag to hardcode \$libdir into a binary during linking.
19264 # This must work even if \$libdir does not exist.
19265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19266
19267 # If ld is used when linking, flag to hardcode \$libdir into
19268 # a binary during linking. This must work even if \$libdir does
19269 # not exist.
19270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19271
19272 # Whether we need a single -rpath flag with a separated argument.
19273 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19274
19275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19276 # resulting binary.
19277 hardcode_direct=$hardcode_direct_RC
19278
19279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19280 # resulting binary.
19281 hardcode_minus_L=$hardcode_minus_L_RC
19282
19283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19284 # the resulting binary.
19285 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19286
19287 # Set to yes if building a shared library automatically hardcodes DIR into the library
19288 # and all subsequent libraries and executables linked against it.
19289 hardcode_automatic=$hardcode_automatic_RC
19290
19291 # Variables whose values should be saved in libtool wrapper scripts and
19292 # restored at relink time.
19293 variables_saved_for_relink="$variables_saved_for_relink"
19294
19295 # Whether libtool must link a program against all its dependency libraries.
19296 link_all_deplibs=$link_all_deplibs_RC
19297
19298 # Compile-time system search path for libraries
19299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19300
19301 # Run-time system search path for libraries
19302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19303
19304 # Fix the shell variable \$srcfile for the compiler.
19305 fix_srcfile_path=$lt_fix_srcfile_path
19306
19307 # Set to yes if exported symbols are required.
19308 always_export_symbols=$always_export_symbols_RC
19309
19310 # The commands to list exported symbols.
19311 export_symbols_cmds=$lt_export_symbols_cmds_RC
19312
19313 # The commands to extract the exported symbol list from a shared archive.
19314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19315
19316 # Symbols that should not be listed in the preloaded symbols.
19317 exclude_expsyms=$lt_exclude_expsyms_RC
19318
19319 # Symbols that must always be exported.
19320 include_expsyms=$lt_include_expsyms_RC
19321
19322 # ### END LIBTOOL TAG CONFIG: $tagname
19323
19324 __EOF__
19325
19326
19327 else
19328   # If there is no Makefile yet, we rely on a make rule to execute
19329   # `config.status --recheck' to rerun these tests and create the
19330   # libtool script then.
19331   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19332   if test -f "$ltmain_in"; then
19333     test -f Makefile && make "$ltmain"
19334   fi
19335 fi
19336
19337
19338 ac_ext=c
19339 ac_cpp='$CPP $CPPFLAGS'
19340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343
19344 CC="$lt_save_CC"
19345
19346         ;;
19347
19348       *)
19349         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19350         ;;
19351       esac
19352
19353       # Append the new tag name to the list of available tags.
19354       if test -n "$tagname" ; then
19355       available_tags="$available_tags $tagname"
19356     fi
19357     fi
19358   done
19359   IFS="$lt_save_ifs"
19360
19361   # Now substitute the updated list of available tags.
19362   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19363     mv "${ofile}T" "$ofile"
19364     chmod +x "$ofile"
19365   else
19366     rm -f "${ofile}T"
19367     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19368   fi
19369 fi
19370
19371
19372
19373 # This can be used to rebuild libtool when needed
19374 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19375
19376 # Always use our own libtool.
19377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19378
19379 # Prevent multiple expansion
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392 # Check whether --with-system-libtool was given.
19393 if test "${with_system_libtool+set}" = set; then :
19394   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19395 set dummy libtool; ac_word=$2
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19397 $as_echo_n "checking for $ac_word... " >&6; }
19398 if ${ac_cv_path_LIBTOOL+:} false; then :
19399   $as_echo_n "(cached) " >&6
19400 else
19401   case $LIBTOOL in
19402   [\\/]* | ?:[\\/]*)
19403   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19404   ;;
19405   *)
19406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19407 as_dummy="$PATH:/usr/local/bin"
19408 for as_dir in $as_dummy
19409 do
19410   IFS=$as_save_IFS
19411   test -z "$as_dir" && as_dir=.
19412     for ac_exec_ext in '' $ac_executable_extensions; do
19413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19414     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19416     break 2
19417   fi
19418 done
19419   done
19420 IFS=$as_save_IFS
19421
19422   ;;
19423 esac
19424 fi
19425 LIBTOOL=$ac_cv_path_LIBTOOL
19426 if test -n "$LIBTOOL"; then
19427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19428 $as_echo "$LIBTOOL" >&6; }
19429 else
19430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431 $as_echo "no" >&6; }
19432 fi
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445 else
19446
19447   LIBTOOL="`pwd`/libtool"
19448
19449
19450
19451
19452
19453
19454 fi
19455
19456
19457
19458
19459 # Check whether --enable-strict-dependencies was given.
19460 if test "${enable_strict_dependencies+set}" = set; then :
19461   enableval=$enable_strict_dependencies;
19462 fi
19463
19464
19465 docdir='${datadir}/doc/freeradius'
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19467 $as_echo_n "checking docdir... " >&6; }
19468
19469 # Check whether --with-docdir was given.
19470 if test "${with_docdir+set}" = set; then :
19471   withval=$with_docdir;  case "$withval" in
19472     no)
19473         docdir=no
19474         ;;
19475     yes)
19476         ;;
19477     [\\/$]* | ?:[\\/]* )
19478         docdir="$withval"
19479         ;;
19480     *)
19481         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19482         ;;
19483   esac
19484
19485 fi
19486
19487
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19489 $as_echo "$docdir" >&6; }
19490 if test "x$docdir" = xno; then
19491         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19492 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19493 fi
19494
19495 logdir='${localstatedir}/log/radius'
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19497 $as_echo_n "checking logdir... " >&6; }
19498
19499 # Check whether --with-logdir was given.
19500 if test "${with_logdir+set}" = set; then :
19501   withval=$with_logdir;  case "$withval" in
19502     no)
19503         as_fn_error $? "Need logdir" "$LINENO" 5
19504         ;;
19505     yes)
19506         ;;
19507     [\\/$]* | ?:[\\/]* )
19508         logdir="$withval"
19509         ;;
19510     *)
19511         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19512         ;;
19513   esac
19514
19515 fi
19516
19517
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19519 $as_echo "$logdir" >&6; }
19520
19521 radacctdir='${logdir}/radacct'
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19523 $as_echo_n "checking radacctdir... " >&6; }
19524
19525 # Check whether --with-radacctdir was given.
19526 if test "${with_radacctdir+set}" = set; then :
19527   withval=$with_radacctdir;  case "$withval" in
19528     no)
19529         as_fn_error $? "Need radacctdir" "$LINENO" 5
19530         ;;
19531     yes)
19532         ;;
19533     [\\/$]* | ?:[\\/]* )
19534         radacctdir="$withval"
19535         ;;
19536     *)
19537         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19538         ;;
19539   esac
19540
19541 fi
19542
19543
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19545 $as_echo "$radacctdir" >&6; }
19546
19547 raddbdir='${sysconfdir}/raddb'
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19549 $as_echo_n "checking raddbdir... " >&6; }
19550
19551 # Check whether --with-raddbdir was given.
19552 if test "${with_raddbdir+set}" = set; then :
19553   withval=$with_raddbdir;  case "$withval" in
19554     no)
19555         as_fn_error $? "Need raddbdir" "$LINENO" 5
19556         ;;
19557     yes)
19558         ;;
19559     [\\/$]* | ?:[\\/]* )
19560         raddbdir="$withval"
19561         ;;
19562     *)
19563         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19564         ;;
19565   esac
19566
19567 fi
19568
19569
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19571 $as_echo "$raddbdir" >&6; }
19572
19573 ASCEND_BINARY=yes
19574
19575 # Check whether --with-ascend-binary was given.
19576 if test "${with_ascend_binary+set}" = set; then :
19577   withval=$with_ascend_binary;  case "$withval" in
19578     yes)
19579         ;;
19580     *)
19581         ASCEND_BINARY=""
19582   esac
19583
19584 fi
19585
19586 if test "X$ASCEND_BINARY" = "Xyes"; then
19587
19588 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19589
19590 fi
19591
19592 WITH_THREADS=yes
19593
19594 # Check whether --with-threads was given.
19595 if test "${with_threads+set}" = set; then :
19596   withval=$with_threads;  case "$withval" in
19597     yes)
19598         ;;
19599     *)
19600         WITH_THREADS=""
19601   esac
19602
19603 fi
19604
19605
19606 WITH_VMPS=yes
19607
19608 # Check whether --with-vmps was given.
19609 if test "${with_vmps+set}" = set; then :
19610   withval=$with_vmps;  case "$withval" in
19611     yes)
19612         ;;
19613     *)
19614         WITH_VMPS=no
19615   esac
19616
19617 fi
19618
19619 if test "x$WITH_VMPS" = "xyes"; then
19620
19621 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19622
19623 fi
19624
19625 WITH_DHCP=yes
19626
19627 # Check whether --with-dhcp was given.
19628 if test "${with_dhcp+set}" = set; then :
19629   withval=$with_dhcp;  case "$withval" in
19630     yes)
19631         ;;
19632     *)
19633         WITH_DHCP=no
19634   esac
19635
19636 fi
19637
19638 if test "x$WITH_DHCP" = "xyes"; then
19639
19640 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19641
19642 fi
19643
19644
19645 WITH_POST_PROXY_AUTHORIZE=
19646
19647 # Check whether --with-post-proxy-authorize was given.
19648 if test "${with_post_proxy_authorize+set}" = set; then :
19649   withval=$with_post_proxy_authorize;  case "$withval" in
19650     yes)
19651         WITH_POST_PROXY_AUTHORIZE=""
19652         ;;
19653     *)
19654         ;;
19655   esac
19656
19657 fi
19658
19659
19660 STATIC_MODULES=
19661
19662 # Check whether --with-static_modules was given.
19663 if test "${with_static_modules+set}" = set; then :
19664   withval=$with_static_modules;
19665   for i in $withval; do
19666     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19667   done
19668
19669 fi
19670
19671
19672 MODULES=
19673
19674 # Check whether --with-modules was given.
19675 if test "${with_modules+set}" = set; then :
19676   withval=$with_modules;
19677  for i in $withval; do
19678    MODULES="$MODULES $i"
19679  done
19680
19681 fi
19682
19683
19684 # Check whether --enable-developer was given.
19685 if test "${enable_developer+set}" = set; then :
19686   enableval=$enable_developer;  case "$enableval" in
19687     no)
19688         developer=no
19689         ;;
19690     *)
19691         developer=yes
19692   esac
19693
19694 fi
19695
19696
19697 if test -d $srcdir/.git; then
19698   if test "x$developer" != "xno"; then
19699         developer="yes"
19700   fi
19701
19702     if test "x$GIT" = "xyes"; then
19703         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19704   fi
19705 fi
19706
19707 EXPERIMENTAL=
19708
19709 # Check whether --with-experimental-modules was given.
19710 if test "${with_experimental_modules+set}" = set; then :
19711   withval=$with_experimental_modules;  case "$withval" in
19712     yes)
19713         EXPERIMENTAL=yes
19714         ;;
19715     *)
19716   esac
19717
19718 fi
19719
19720
19721 WITH_OPENSSL=yes
19722
19723 # Check whether --with-openssl was given.
19724 if test "${with_openssl+set}" = set; then :
19725   withval=$with_openssl;  case "$withval" in
19726     no)
19727         WITH_OPENSSL=no
19728         ;;
19729     *)
19730         WITH_OPENSSL=yes
19731         ;;
19732   esac
19733
19734 fi
19735
19736
19737 OPENSSL_INCLUDE_DIR=
19738
19739 # Check whether --with-openssl-includes was given.
19740 if test "${with_openssl_includes+set}" = set; then :
19741   withval=$with_openssl_includes;  case "$withval" in
19742     *) OPENSSL_INCLUDE_DIR="$withval"
19743         ;;
19744   esac
19745
19746 fi
19747
19748
19749 OPENSSL_LIB_DIR=
19750
19751 # Check whether --with-openssl-libraries was given.
19752 if test "${with_openssl_libraries+set}" = set; then :
19753   withval=$with_openssl_libraries;  case "$withval" in
19754     *) OPENSSL_LIB_DIR="$withval"
19755         ;;
19756   esac
19757
19758 fi
19759
19760
19761
19762
19763 # Check whether --with-rlm-FOO-lib-dir was given.
19764 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19765   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19766     *)
19767         ;;
19768   esac
19769
19770 fi
19771
19772
19773
19774 # Check whether --with-rlm-FOO-include-dir was given.
19775 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19776   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19777     *)
19778         ;;
19779   esac
19780
19781 fi
19782
19783
19784
19785 WITH_UDPFROMTO=no
19786
19787 # Check whether --with-udpfromto was given.
19788 if test "${with_udpfromto+set}" = set; then :
19789   withval=$with_udpfromto;  case "$withval" in
19790     yes)
19791         WITH_UDPFROMTO=yes
19792         ;;
19793     *)
19794         WITH_UDPFROMTO=no
19795   esac
19796
19797 fi
19798
19799
19800 if test "x$WITH_UDPFROMTO" = "xyes"; then
19801
19802 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19803
19804 fi
19805
19806
19807 CHECKRAD=checkrad.pl
19808 # Extract the first word of "perl", so it can be a program name with args.
19809 set dummy perl; ac_word=$2
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19811 $as_echo_n "checking for $ac_word... " >&6; }
19812 if ${ac_cv_path_PERL+:} false; then :
19813   $as_echo_n "(cached) " >&6
19814 else
19815   case $PERL in
19816   [\\/]* | ?:[\\/]*)
19817   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19818   ;;
19819   *)
19820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19821 for as_dir in $PATH
19822 do
19823   IFS=$as_save_IFS
19824   test -z "$as_dir" && as_dir=.
19825     for ac_exec_ext in '' $ac_executable_extensions; do
19826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19827     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19829     break 2
19830   fi
19831 done
19832   done
19833 IFS=$as_save_IFS
19834
19835   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19836   ;;
19837 esac
19838 fi
19839 PERL=$ac_cv_path_PERL
19840 if test -n "$PERL"; then
19841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19842 $as_echo "$PERL" >&6; }
19843 else
19844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19845 $as_echo "no" >&6; }
19846 fi
19847
19848
19849 if test "x$ac_cv_path_PERL" = "x"; then
19850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19851 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19852 fi
19853 # Extract the first word of "snmpget", so it can be a program name with args.
19854 set dummy snmpget; ac_word=$2
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19856 $as_echo_n "checking for $ac_word... " >&6; }
19857 if ${ac_cv_path_SNMPGET+:} false; then :
19858   $as_echo_n "(cached) " >&6
19859 else
19860   case $SNMPGET in
19861   [\\/]* | ?:[\\/]*)
19862   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19863   ;;
19864   *)
19865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19866 for as_dir in $PATH
19867 do
19868   IFS=$as_save_IFS
19869   test -z "$as_dir" && as_dir=.
19870     for ac_exec_ext in '' $ac_executable_extensions; do
19871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19872     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19874     break 2
19875   fi
19876 done
19877   done
19878 IFS=$as_save_IFS
19879
19880   ;;
19881 esac
19882 fi
19883 SNMPGET=$ac_cv_path_SNMPGET
19884 if test -n "$SNMPGET"; then
19885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19886 $as_echo "$SNMPGET" >&6; }
19887 else
19888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889 $as_echo "no" >&6; }
19890 fi
19891
19892
19893 if test "x$ac_cv_path_SNMPGET" = "x"; then
19894   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19895 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19896 fi
19897
19898 # Extract the first word of "snmpwalk", so it can be a program name with args.
19899 set dummy snmpwalk; ac_word=$2
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19901 $as_echo_n "checking for $ac_word... " >&6; }
19902 if ${ac_cv_path_SNMPWALK+:} false; then :
19903   $as_echo_n "(cached) " >&6
19904 else
19905   case $SNMPWALK in
19906   [\\/]* | ?:[\\/]*)
19907   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19908   ;;
19909   *)
19910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19911 for as_dir in $PATH
19912 do
19913   IFS=$as_save_IFS
19914   test -z "$as_dir" && as_dir=.
19915     for ac_exec_ext in '' $ac_executable_extensions; do
19916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19917     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19919     break 2
19920   fi
19921 done
19922   done
19923 IFS=$as_save_IFS
19924
19925   ;;
19926 esac
19927 fi
19928 SNMPWALK=$ac_cv_path_SNMPWALK
19929 if test -n "$SNMPWALK"; then
19930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19931 $as_echo "$SNMPWALK" >&6; }
19932 else
19933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19934 $as_echo "no" >&6; }
19935 fi
19936
19937
19938 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19939   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19940 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19941 fi
19942
19943 # Extract the first word of "rusers", so it can be a program name with args.
19944 set dummy rusers; ac_word=$2
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19946 $as_echo_n "checking for $ac_word... " >&6; }
19947 if ${ac_cv_path_RUSERS+:} false; then :
19948   $as_echo_n "(cached) " >&6
19949 else
19950   case $RUSERS in
19951   [\\/]* | ?:[\\/]*)
19952   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19953   ;;
19954   *)
19955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19956 for as_dir in $PATH
19957 do
19958   IFS=$as_save_IFS
19959   test -z "$as_dir" && as_dir=.
19960     for ac_exec_ext in '' $ac_executable_extensions; do
19961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19962     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19964     break 2
19965   fi
19966 done
19967   done
19968 IFS=$as_save_IFS
19969
19970   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19971   ;;
19972 esac
19973 fi
19974 RUSERS=$ac_cv_path_RUSERS
19975 if test -n "$RUSERS"; then
19976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19977 $as_echo "$RUSERS" >&6; }
19978 else
19979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19980 $as_echo "no" >&6; }
19981 fi
19982
19983
19984
19985 missing_dir=`cd $ac_aux_dir && pwd`
19986 # expand $ac_aux_dir to an absolute path
19987 am_aux_dir=`cd $ac_aux_dir && pwd`
19988
19989 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19990 # Use eval to expand $SHELL
19991 if eval "$MISSING --run true"; then
19992   am_missing_run="$MISSING --run "
19993 else
19994   am_missing_run=
19995   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19996 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19997 fi
19998
19999
20000 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20001
20002
20003 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20004
20005
20006 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20007
20008
20009 # Extract the first word of "locate", so it can be a program name with args.
20010 set dummy locate; ac_word=$2
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20012 $as_echo_n "checking for $ac_word... " >&6; }
20013 if ${ac_cv_path_LOCATE+:} false; then :
20014   $as_echo_n "(cached) " >&6
20015 else
20016   case $LOCATE in
20017   [\\/]* | ?:[\\/]*)
20018   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20019   ;;
20020   *)
20021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20023 do
20024   IFS=$as_save_IFS
20025   test -z "$as_dir" && as_dir=.
20026     for ac_exec_ext in '' $ac_executable_extensions; do
20027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20028     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20030     break 2
20031   fi
20032 done
20033   done
20034 IFS=$as_save_IFS
20035
20036   ;;
20037 esac
20038 fi
20039 LOCATE=$ac_cv_path_LOCATE
20040 if test -n "$LOCATE"; then
20041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20042 $as_echo "$LOCATE" >&6; }
20043 else
20044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 $as_echo "no" >&6; }
20046 fi
20047
20048
20049 # Extract the first word of "dirname", so it can be a program name with args.
20050 set dummy dirname; ac_word=$2
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20052 $as_echo_n "checking for $ac_word... " >&6; }
20053 if ${ac_cv_path_DIRNAME+:} false; then :
20054   $as_echo_n "(cached) " >&6
20055 else
20056   case $DIRNAME in
20057   [\\/]* | ?:[\\/]*)
20058   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20059   ;;
20060   *)
20061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20062 for as_dir in $PATH
20063 do
20064   IFS=$as_save_IFS
20065   test -z "$as_dir" && as_dir=.
20066     for ac_exec_ext in '' $ac_executable_extensions; do
20067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20068     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20070     break 2
20071   fi
20072 done
20073   done
20074 IFS=$as_save_IFS
20075
20076   ;;
20077 esac
20078 fi
20079 DIRNAME=$ac_cv_path_DIRNAME
20080 if test -n "$DIRNAME"; then
20081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20082 $as_echo "$DIRNAME" >&6; }
20083 else
20084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 $as_echo "no" >&6; }
20086 fi
20087
20088
20089 # Extract the first word of "grep", so it can be a program name with args.
20090 set dummy grep; ac_word=$2
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20092 $as_echo_n "checking for $ac_word... " >&6; }
20093 if ${ac_cv_path_GREP+:} false; then :
20094   $as_echo_n "(cached) " >&6
20095 else
20096   case $GREP in
20097   [\\/]* | ?:[\\/]*)
20098   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20099   ;;
20100   *)
20101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20102 for as_dir in $PATH
20103 do
20104   IFS=$as_save_IFS
20105   test -z "$as_dir" && as_dir=.
20106     for ac_exec_ext in '' $ac_executable_extensions; do
20107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20108     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20110     break 2
20111   fi
20112 done
20113   done
20114 IFS=$as_save_IFS
20115
20116   ;;
20117 esac
20118 fi
20119 GREP=$ac_cv_path_GREP
20120 if test -n "$GREP"; then
20121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20122 $as_echo "$GREP" >&6; }
20123 else
20124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20125 $as_echo "no" >&6; }
20126 fi
20127
20128
20129
20130
20131 old_CFLAGS=$CFLAGS
20132 if test "x$WITH_THREADS" = "xyes"; then
20133   if test $ac_cv_prog_suncc = "yes"; then
20134     CFLAGS="$CFLAGS -mt"
20135   fi
20136
20137   for ac_header in pthread.h
20138 do :
20139   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20140 if test "x$ac_cv_header_pthread_h" = xyes; then :
20141   cat >>confdefs.h <<_ACEOF
20142 #define HAVE_PTHREAD_H 1
20143 _ACEOF
20144
20145 else
20146    WITH_THREADS="no"
20147 fi
20148
20149 done
20150
20151
20152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20153 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20154 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20155   $as_echo_n "(cached) " >&6
20156 else
20157   ac_check_lib_save_LIBS=$LIBS
20158 LIBS="-lpthread  $LIBS"
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h.  */
20161
20162 /* Override any GCC internal prototype to avoid an error.
20163    Use char because int might match the return type of a GCC
20164    builtin and then its argument prototype would still apply.  */
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char pthread_create ();
20169 int
20170 main ()
20171 {
20172 return pthread_create ();
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 if ac_fn_c_try_link "$LINENO"; then :
20178   ac_cv_lib_pthread_pthread_create=yes
20179 else
20180   ac_cv_lib_pthread_pthread_create=no
20181 fi
20182 rm -f core conftest.err conftest.$ac_objext \
20183     conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20185 fi
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20187 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20188 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20189    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20190                   LIBS="-lpthread $LIBS"
20191 else
20192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20193 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20194 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20195   $as_echo_n "(cached) " >&6
20196 else
20197   ac_check_lib_save_LIBS=$LIBS
20198 LIBS="-lc_r  $LIBS"
20199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h.  */
20201
20202 /* Override any GCC internal prototype to avoid an error.
20203    Use char because int might match the return type of a GCC
20204    builtin and then its argument prototype would still apply.  */
20205 #ifdef __cplusplus
20206 extern "C"
20207 #endif
20208 char pthread_create ();
20209 int
20210 main ()
20211 {
20212 return pthread_create ();
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 if ac_fn_c_try_link "$LINENO"; then :
20218   ac_cv_lib_c_r_pthread_create=yes
20219 else
20220   ac_cv_lib_c_r_pthread_create=no
20221 fi
20222 rm -f core conftest.err conftest.$ac_objext \
20223     conftest$ac_exeext conftest.$ac_ext
20224 LIBS=$ac_check_lib_save_LIBS
20225 fi
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20227 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20228 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20229    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20230 else
20231    WITH_THREADS="no"
20232
20233 fi
20234
20235
20236 fi
20237
20238 fi
20239
20240 if test "x$WITH_THREADS" != "xyes"; then
20241   CFLAGS=$old_CFLAGS
20242   ac_cv_header_pthread_h="no"
20243   WITH_THREADS=no
20244 else
20245
20246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20247 $as_echo_n "checking for library containing sem_init... " >&6; }
20248 if ${ac_cv_search_sem_init+:} false; then :
20249   $as_echo_n "(cached) " >&6
20250 else
20251   ac_func_search_save_LIBS=$LIBS
20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h.  */
20254
20255 /* Override any GCC internal prototype to avoid an error.
20256    Use char because int might match the return type of a GCC
20257    builtin and then its argument prototype would still apply.  */
20258 #ifdef __cplusplus
20259 extern "C"
20260 #endif
20261 char sem_init ();
20262 int
20263 main ()
20264 {
20265 return sem_init ();
20266   ;
20267   return 0;
20268 }
20269 _ACEOF
20270 for ac_lib in '' pthread sem posix4 rt semaphore; do
20271   if test -z "$ac_lib"; then
20272     ac_res="none required"
20273   else
20274     ac_res=-l$ac_lib
20275     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20276   fi
20277   if ac_fn_c_try_link "$LINENO"; then :
20278   ac_cv_search_sem_init=$ac_res
20279 fi
20280 rm -f core conftest.err conftest.$ac_objext \
20281     conftest$ac_exeext
20282   if ${ac_cv_search_sem_init+:} false; then :
20283   break
20284 fi
20285 done
20286 if ${ac_cv_search_sem_init+:} false; then :
20287
20288 else
20289   ac_cv_search_sem_init=no
20290 fi
20291 rm conftest.$ac_ext
20292 LIBS=$ac_func_search_save_LIBS
20293 fi
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20295 $as_echo "$ac_cv_search_sem_init" >&6; }
20296 ac_res=$ac_cv_search_sem_init
20297 if test "$ac_res" != no; then :
20298   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20299
20300 else
20301   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
20302
20303 fi
20304
20305 fi
20306
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20308 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20309 if ${ac_cv_lib_socket_getsockname+:} false; then :
20310   $as_echo_n "(cached) " >&6
20311 else
20312   ac_check_lib_save_LIBS=$LIBS
20313 LIBS="-lsocket  $LIBS"
20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20315 /* end confdefs.h.  */
20316
20317 /* Override any GCC internal prototype to avoid an error.
20318    Use char because int might match the return type of a GCC
20319    builtin and then its argument prototype would still apply.  */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 char getsockname ();
20324 int
20325 main ()
20326 {
20327 return getsockname ();
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 if ac_fn_c_try_link "$LINENO"; then :
20333   ac_cv_lib_socket_getsockname=yes
20334 else
20335   ac_cv_lib_socket_getsockname=no
20336 fi
20337 rm -f core conftest.err conftest.$ac_objext \
20338     conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20340 fi
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20342 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20343 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20344   cat >>confdefs.h <<_ACEOF
20345 #define HAVE_LIBSOCKET 1
20346 _ACEOF
20347
20348   LIBS="-lsocket $LIBS"
20349
20350 fi
20351
20352
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20354 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20355 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20356   $as_echo_n "(cached) " >&6
20357 else
20358   ac_check_lib_save_LIBS=$LIBS
20359 LIBS="-lresolv  $LIBS"
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h.  */
20362
20363 /* Override any GCC internal prototype to avoid an error.
20364    Use char because int might match the return type of a GCC
20365    builtin and then its argument prototype would still apply.  */
20366 #ifdef __cplusplus
20367 extern "C"
20368 #endif
20369 char inet_aton ();
20370 int
20371 main ()
20372 {
20373 return inet_aton ();
20374   ;
20375   return 0;
20376 }
20377 _ACEOF
20378 if ac_fn_c_try_link "$LINENO"; then :
20379   ac_cv_lib_resolv_inet_aton=yes
20380 else
20381   ac_cv_lib_resolv_inet_aton=no
20382 fi
20383 rm -f core conftest.err conftest.$ac_objext \
20384     conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20386 fi
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20388 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20389 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20390   cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LIBRESOLV 1
20392 _ACEOF
20393
20394   LIBS="-lresolv $LIBS"
20395
20396 fi
20397
20398
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20400 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20401 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20402   $as_echo_n "(cached) " >&6
20403 else
20404   ac_check_lib_save_LIBS=$LIBS
20405 LIBS="-lnsl  $LIBS"
20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h.  */
20408
20409 /* Override any GCC internal prototype to avoid an error.
20410    Use char because int might match the return type of a GCC
20411    builtin and then its argument prototype would still apply.  */
20412 #ifdef __cplusplus
20413 extern "C"
20414 #endif
20415 char inet_ntoa ();
20416 int
20417 main ()
20418 {
20419 return inet_ntoa ();
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 if ac_fn_c_try_link "$LINENO"; then :
20425   ac_cv_lib_nsl_inet_ntoa=yes
20426 else
20427   ac_cv_lib_nsl_inet_ntoa=no
20428 fi
20429 rm -f core conftest.err conftest.$ac_objext \
20430     conftest$ac_exeext conftest.$ac_ext
20431 LIBS=$ac_check_lib_save_LIBS
20432 fi
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20434 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20435 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20436   cat >>confdefs.h <<_ACEOF
20437 #define HAVE_LIBNSL 1
20438 _ACEOF
20439
20440   LIBS="-lnsl $LIBS"
20441
20442 fi
20443
20444
20445 OPENSSL_LIBS=
20446 if test "x$WITH_OPENSSL" = xyes; then
20447   old_LIBS=$LIBS
20448   old_LDFLAGS="$LDFLAGS"
20449   if test "x$OPENSSL_LIB_DIR" != "x"; then
20450     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20451   fi
20452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20453 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20454 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20455   $as_echo_n "(cached) " >&6
20456 else
20457   ac_check_lib_save_LIBS=$LIBS
20458 LIBS="-lcrypto  $LIBS"
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h.  */
20461
20462 /* Override any GCC internal prototype to avoid an error.
20463    Use char because int might match the return type of a GCC
20464    builtin and then its argument prototype would still apply.  */
20465 #ifdef __cplusplus
20466 extern "C"
20467 #endif
20468 char DH_new ();
20469 int
20470 main ()
20471 {
20472 return DH_new ();
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 if ac_fn_c_try_link "$LINENO"; then :
20478   ac_cv_lib_crypto_DH_new=yes
20479 else
20480   ac_cv_lib_crypto_DH_new=no
20481 fi
20482 rm -f core conftest.err conftest.$ac_objext \
20483     conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20485 fi
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20487 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20488 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20489
20490         LIBS="-lcrypto $LIBS"
20491
20492 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20493
20494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20495 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20496 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20497   $as_echo_n "(cached) " >&6
20498 else
20499   ac_check_lib_save_LIBS=$LIBS
20500 LIBS="-lssl  $LIBS"
20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h.  */
20503
20504 /* Override any GCC internal prototype to avoid an error.
20505    Use char because int might match the return type of a GCC
20506    builtin and then its argument prototype would still apply.  */
20507 #ifdef __cplusplus
20508 extern "C"
20509 #endif
20510 char SSL_new ();
20511 int
20512 main ()
20513 {
20514 return SSL_new ();
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 if ac_fn_c_try_link "$LINENO"; then :
20520   ac_cv_lib_ssl_SSL_new=yes
20521 else
20522   ac_cv_lib_ssl_SSL_new=no
20523 fi
20524 rm -f core conftest.err conftest.$ac_objext \
20525     conftest$ac_exeext conftest.$ac_ext
20526 LIBS=$ac_check_lib_save_LIBS
20527 fi
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20529 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20530 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20531
20532
20533 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20534
20535                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20536                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20537                 fi
20538                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20539
20540 fi
20541
20542
20543 fi
20544
20545   LIBS=$old_LIBS
20546   LDFLAGS="$old_LDFLAGS"
20547 fi
20548
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20550 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20551 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20552   $as_echo_n "(cached) " >&6
20553 else
20554   ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-lws2_32  $LIBS"
20556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20557 /* end confdefs.h.  */
20558
20559 /* Override any GCC internal prototype to avoid an error.
20560    Use char because int might match the return type of a GCC
20561    builtin and then its argument prototype would still apply.  */
20562 #ifdef __cplusplus
20563 extern "C"
20564 #endif
20565 char htonl ();
20566 int
20567 main ()
20568 {
20569 return htonl ();
20570   ;
20571   return 0;
20572 }
20573 _ACEOF
20574 if ac_fn_c_try_link "$LINENO"; then :
20575   ac_cv_lib_ws2_32_htonl=yes
20576 else
20577   ac_cv_lib_ws2_32_htonl=no
20578 fi
20579 rm -f core conftest.err conftest.$ac_objext \
20580     conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS
20582 fi
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20584 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20585 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20586   cat >>confdefs.h <<_ACEOF
20587 #define HAVE_LIBWS2_32 1
20588 _ACEOF
20589
20590   LIBS="-lws2_32 $LIBS"
20591
20592 fi
20593
20594
20595 PCAP_LIBS=
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20597 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20598 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20599   $as_echo_n "(cached) " >&6
20600 else
20601   ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lpcap  $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 pcap_open_live ();
20613 int
20614 main ()
20615 {
20616 return pcap_open_live ();
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 if ac_fn_c_try_link "$LINENO"; then :
20622   ac_cv_lib_pcap_pcap_open_live=yes
20623 else
20624   ac_cv_lib_pcap_pcap_open_live=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_pcap_pcap_open_live" >&5
20631 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20632 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20633    PCAP_LIBS="-lpcap"
20634
20635 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20636
20637
20638 else
20639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20640 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20641 fi
20642
20643
20644
20645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20646 $as_echo_n "checking for a readline compatible library... " >&6; }
20647 if ${ac_cv_lib_readline+:} false; then :
20648   $as_echo_n "(cached) " >&6
20649 else
20650
20651     ORIG_LIBS=$LIBS
20652     for readline_lib in readline edit editline; do
20653       for termcap_lib in "" termcap curses ncurses; do
20654         if test -z "$termcap_lib"; then
20655           TRY_LIB="-l$readline_lib"
20656         else
20657           TRY_LIB="-l$readline_lib -l$termcap_lib"
20658         fi
20659         LIBS="$ORIG_LIBS $TRY_LIB"
20660         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h.  */
20662
20663 /* Override any GCC internal prototype to avoid an error.
20664    Use char because int might match the return type of a GCC
20665    builtin and then its argument prototype would still apply.  */
20666 #ifdef __cplusplus
20667 extern "C"
20668 #endif
20669 char readline ();
20670 int
20671 main ()
20672 {
20673 return readline ();
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679   ac_cv_lib_readline="$TRY_LIB"
20680 fi
20681 rm -f core conftest.err conftest.$ac_objext \
20682     conftest$ac_exeext conftest.$ac_ext
20683         if test -n "$ac_cv_lib_readline"; then
20684           break
20685         fi
20686       done
20687       if test -n "$ac_cv_lib_readline"; then
20688         break
20689       fi
20690     done
20691     if test -z "$ac_cv_lib_readline"; then
20692       ac_cv_lib_readline="no"
20693     fi
20694     LIBS=$ORIG_LIBS
20695
20696 fi
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20698 $as_echo "$ac_cv_lib_readline" >&6; }
20699
20700   if test "$ac_cv_lib_readline" != "no"; then
20701     LIBREADLINE="$ac_cv_lib_readline"
20702
20703 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20704
20705     for ac_header in readline.h readline/readline.h
20706 do :
20707   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20710   cat >>confdefs.h <<_ACEOF
20711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20712 _ACEOF
20713
20714 fi
20715
20716 done
20717
20718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20719 $as_echo_n "checking whether readline supports history... " >&6; }
20720 if ${ac_cv_lib_readline_history+:} false; then :
20721   $as_echo_n "(cached) " >&6
20722 else
20723
20724       ac_cv_lib_readline_history="no"
20725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20726 /* end confdefs.h.  */
20727
20728 /* Override any GCC internal prototype to avoid an error.
20729    Use char because int might match the return type of a GCC
20730    builtin and then its argument prototype would still apply.  */
20731 #ifdef __cplusplus
20732 extern "C"
20733 #endif
20734 char add_history ();
20735 int
20736 main ()
20737 {
20738 return add_history ();
20739   ;
20740   return 0;
20741 }
20742 _ACEOF
20743 if ac_fn_c_try_link "$LINENO"; then :
20744   ac_cv_lib_readline_history="yes"
20745 fi
20746 rm -f core conftest.err conftest.$ac_objext \
20747     conftest$ac_exeext conftest.$ac_ext
20748
20749 fi
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20751 $as_echo "$ac_cv_lib_readline_history" >&6; }
20752     if test "$ac_cv_lib_readline_history" = "yes"; then
20753
20754 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20755
20756       for ac_header in history.h readline/history.h
20757 do :
20758   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20759 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20761   cat >>confdefs.h <<_ACEOF
20762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20763 _ACEOF
20764
20765 fi
20766
20767 done
20768
20769     fi
20770   fi
20771
20772
20773
20774
20775 case "$host" in
20776 *-interix*)
20777         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20778         ;;
20779 *-darwin*)
20780         CFLAGS="$CFLAGS -DDARWIN"
20781         LIBS="-framework DirectoryService $LIBS"
20782
20783 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
20784
20785         ;;
20786 esac
20787
20788 ac_header_dirent=no
20789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20790   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20792 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20793 if eval \${$as_ac_Header+:} false; then :
20794   $as_echo_n "(cached) " >&6
20795 else
20796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797 /* end confdefs.h.  */
20798 #include <sys/types.h>
20799 #include <$ac_hdr>
20800
20801 int
20802 main ()
20803 {
20804 if ((DIR *) 0)
20805 return 0;
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 if ac_fn_c_try_compile "$LINENO"; then :
20811   eval "$as_ac_Header=yes"
20812 else
20813   eval "$as_ac_Header=no"
20814 fi
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20816 fi
20817 eval ac_res=\$$as_ac_Header
20818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20819 $as_echo "$ac_res" >&6; }
20820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20821   cat >>confdefs.h <<_ACEOF
20822 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20823 _ACEOF
20824
20825 ac_header_dirent=$ac_hdr; break
20826 fi
20827
20828 done
20829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20830 if test $ac_header_dirent = dirent.h; then
20831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20832 $as_echo_n "checking for library containing opendir... " >&6; }
20833 if ${ac_cv_search_opendir+:} false; then :
20834   $as_echo_n "(cached) " >&6
20835 else
20836   ac_func_search_save_LIBS=$LIBS
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h.  */
20839
20840 /* Override any GCC internal prototype to avoid an error.
20841    Use char because int might match the return type of a GCC
20842    builtin and then its argument prototype would still apply.  */
20843 #ifdef __cplusplus
20844 extern "C"
20845 #endif
20846 char opendir ();
20847 int
20848 main ()
20849 {
20850 return opendir ();
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 for ac_lib in '' dir; do
20856   if test -z "$ac_lib"; then
20857     ac_res="none required"
20858   else
20859     ac_res=-l$ac_lib
20860     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20861   fi
20862   if ac_fn_c_try_link "$LINENO"; then :
20863   ac_cv_search_opendir=$ac_res
20864 fi
20865 rm -f core conftest.err conftest.$ac_objext \
20866     conftest$ac_exeext
20867   if ${ac_cv_search_opendir+:} false; then :
20868   break
20869 fi
20870 done
20871 if ${ac_cv_search_opendir+:} false; then :
20872
20873 else
20874   ac_cv_search_opendir=no
20875 fi
20876 rm conftest.$ac_ext
20877 LIBS=$ac_func_search_save_LIBS
20878 fi
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20880 $as_echo "$ac_cv_search_opendir" >&6; }
20881 ac_res=$ac_cv_search_opendir
20882 if test "$ac_res" != no; then :
20883   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20884
20885 fi
20886
20887 else
20888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20889 $as_echo_n "checking for library containing opendir... " >&6; }
20890 if ${ac_cv_search_opendir+:} false; then :
20891   $as_echo_n "(cached) " >&6
20892 else
20893   ac_func_search_save_LIBS=$LIBS
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h.  */
20896
20897 /* Override any GCC internal prototype to avoid an error.
20898    Use char because int might match the return type of a GCC
20899    builtin and then its argument prototype would still apply.  */
20900 #ifdef __cplusplus
20901 extern "C"
20902 #endif
20903 char opendir ();
20904 int
20905 main ()
20906 {
20907 return opendir ();
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 for ac_lib in '' x; do
20913   if test -z "$ac_lib"; then
20914     ac_res="none required"
20915   else
20916     ac_res=-l$ac_lib
20917     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20918   fi
20919   if ac_fn_c_try_link "$LINENO"; then :
20920   ac_cv_search_opendir=$ac_res
20921 fi
20922 rm -f core conftest.err conftest.$ac_objext \
20923     conftest$ac_exeext
20924   if ${ac_cv_search_opendir+:} false; then :
20925   break
20926 fi
20927 done
20928 if ${ac_cv_search_opendir+:} false; then :
20929
20930 else
20931   ac_cv_search_opendir=no
20932 fi
20933 rm conftest.$ac_ext
20934 LIBS=$ac_func_search_save_LIBS
20935 fi
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20937 $as_echo "$ac_cv_search_opendir" >&6; }
20938 ac_res=$ac_cv_search_opendir
20939 if test "$ac_res" != no; then :
20940   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20941
20942 fi
20943
20944 fi
20945
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20947 $as_echo_n "checking for ANSI C header files... " >&6; }
20948 if ${ac_cv_header_stdc+:} false; then :
20949   $as_echo_n "(cached) " >&6
20950 else
20951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952 /* end confdefs.h.  */
20953 #include <stdlib.h>
20954 #include <stdarg.h>
20955 #include <string.h>
20956 #include <float.h>
20957
20958 int
20959 main ()
20960 {
20961
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 if ac_fn_c_try_compile "$LINENO"; then :
20967   ac_cv_header_stdc=yes
20968 else
20969   ac_cv_header_stdc=no
20970 fi
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972
20973 if test $ac_cv_header_stdc = yes; then
20974   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h.  */
20977 #include <string.h>
20978
20979 _ACEOF
20980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20981   $EGREP "memchr" >/dev/null 2>&1; then :
20982
20983 else
20984   ac_cv_header_stdc=no
20985 fi
20986 rm -f conftest*
20987
20988 fi
20989
20990 if test $ac_cv_header_stdc = yes; then
20991   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h.  */
20994 #include <stdlib.h>
20995
20996 _ACEOF
20997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20998   $EGREP "free" >/dev/null 2>&1; then :
20999
21000 else
21001   ac_cv_header_stdc=no
21002 fi
21003 rm -f conftest*
21004
21005 fi
21006
21007 if test $ac_cv_header_stdc = yes; then
21008   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21009   if test "$cross_compiling" = yes; then :
21010   :
21011 else
21012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h.  */
21014 #include <ctype.h>
21015 #include <stdlib.h>
21016 #if ((' ' & 0x0FF) == 0x020)
21017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21019 #else
21020 # define ISLOWER(c) \
21021                    (('a' <= (c) && (c) <= 'i') \
21022                      || ('j' <= (c) && (c) <= 'r') \
21023                      || ('s' <= (c) && (c) <= 'z'))
21024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21025 #endif
21026
21027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21028 int
21029 main ()
21030 {
21031   int i;
21032   for (i = 0; i < 256; i++)
21033     if (XOR (islower (i), ISLOWER (i))
21034         || toupper (i) != TOUPPER (i))
21035       return 2;
21036   return 0;
21037 }
21038 _ACEOF
21039 if ac_fn_c_try_run "$LINENO"; then :
21040
21041 else
21042   ac_cv_header_stdc=no
21043 fi
21044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21045   conftest.$ac_objext conftest.beam conftest.$ac_ext
21046 fi
21047
21048 fi
21049 fi
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21051 $as_echo "$ac_cv_header_stdc" >&6; }
21052 if test $ac_cv_header_stdc = yes; then
21053
21054 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21055
21056 fi
21057
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21059 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21060 if ${ac_cv_header_time+:} false; then :
21061   $as_echo_n "(cached) " >&6
21062 else
21063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h.  */
21065 #include <sys/types.h>
21066 #include <sys/time.h>
21067 #include <time.h>
21068
21069 int
21070 main ()
21071 {
21072 if ((struct tm *) 0)
21073 return 0;
21074   ;
21075   return 0;
21076 }
21077 _ACEOF
21078 if ac_fn_c_try_compile "$LINENO"; then :
21079   ac_cv_header_time=yes
21080 else
21081   ac_cv_header_time=no
21082 fi
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 fi
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21086 $as_echo "$ac_cv_header_time" >&6; }
21087 if test $ac_cv_header_time = yes; then
21088
21089 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21090
21091 fi
21092
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21094 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21095 if ${ac_cv_header_sys_wait_h+:} false; then :
21096   $as_echo_n "(cached) " >&6
21097 else
21098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h.  */
21100 #include <sys/types.h>
21101 #include <sys/wait.h>
21102 #ifndef WEXITSTATUS
21103 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21104 #endif
21105 #ifndef WIFEXITED
21106 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21107 #endif
21108
21109 int
21110 main ()
21111 {
21112   int s;
21113   wait (&s);
21114   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 if ac_fn_c_try_compile "$LINENO"; then :
21120   ac_cv_header_sys_wait_h=yes
21121 else
21122   ac_cv_header_sys_wait_h=no
21123 fi
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 fi
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21127 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21128 if test $ac_cv_header_sys_wait_h = yes; then
21129
21130 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21131
21132 fi
21133
21134
21135 for ac_header in \
21136         unistd.h \
21137         crypt.h \
21138         errno.h \
21139         execinfo.h \
21140         resource.h \
21141         sys/resource.h \
21142         getopt.h \
21143         malloc.h \
21144         utmp.h \
21145         utmpx.h \
21146         signal.h \
21147         sys/select.h \
21148         syslog.h \
21149         inttypes.h \
21150         stdint.h \
21151         stdio.h \
21152         netdb.h \
21153         semaphore.h \
21154         arpa/inet.h \
21155         netinet/in.h \
21156         sys/types.h \
21157         sys/socket.h \
21158         winsock.h \
21159         sys/time.h \
21160         sys/wait.h \
21161         sys/security.h \
21162         fcntl.h \
21163         sys/fcntl.h \
21164         sys/prctl.h \
21165         sys/un.h \
21166         glob.h \
21167         prot.h \
21168         pwd.h \
21169         grp.h \
21170         stddef.h \
21171         fnmatch.h \
21172         sia.h \
21173         siad.h
21174
21175 do :
21176   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21179   cat >>confdefs.h <<_ACEOF
21180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21181 _ACEOF
21182
21183 fi
21184
21185 done
21186
21187
21188 for ac_header in net/if.h
21189 do :
21190   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21191 # include <sys/socket.h>
21192 # endif
21193
21194 "
21195 if test "x$ac_cv_header_net_if_h" = xyes; then :
21196   cat >>confdefs.h <<_ACEOF
21197 #define HAVE_NET_IF_H 1
21198 _ACEOF
21199
21200 fi
21201
21202 done
21203
21204
21205 REGEX=no
21206 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21207 if test "x$ac_cv_header_regex_h" = xyes; then :
21208
21209 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21210
21211 fi
21212
21213
21214 if test "x$ac_cv_header_regex_h" = "xyes"; then
21215   REGEX_EXTENDED=no
21216   REGEX=yes
21217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21218 /* end confdefs.h.  */
21219 #include <regex.h>
21220      #ifdef REG_EXTENDED
21221        yes
21222      #endif
21223
21224 _ACEOF
21225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21226   $EGREP "yes" >/dev/null 2>&1; then :
21227
21228 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21229  REGEX_EXTENDED=yes
21230 fi
21231 rm -f conftest*
21232
21233 fi
21234
21235
21236
21237 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21238 then
21239
21240 $as_echo "#define OSFC2 /**/" >>confdefs.h
21241
21242 fi
21243
21244 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21245 then
21246
21247 $as_echo "#define OSFSIA /**/" >>confdefs.h
21248
21249 fi
21250
21251 if test "x$WITH_OPENSSL" = xyes; then
21252   old_LIBS=$LIBS
21253   old_LDFLAGS="$LDFLAGS"
21254
21255   OPENSSL_INCLUDE="-DNO_OPENSSL"
21256   OPENSSL_LIBS=
21257   if test "x$OPENSSL_LIB_DIR" != "x"; then
21258     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
21259   fi
21260
21261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
21262 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
21263 if ${ac_cv_lib_crypto_DH_new+:} false; then :
21264   $as_echo_n "(cached) " >&6
21265 else
21266   ac_check_lib_save_LIBS=$LIBS
21267 LIBS="-lcrypto  $LIBS"
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h.  */
21270
21271 /* Override any GCC internal prototype to avoid an error.
21272    Use char because int might match the return type of a GCC
21273    builtin and then its argument prototype would still apply.  */
21274 #ifdef __cplusplus
21275 extern "C"
21276 #endif
21277 char DH_new ();
21278 int
21279 main ()
21280 {
21281 return DH_new ();
21282   ;
21283   return 0;
21284 }
21285 _ACEOF
21286 if ac_fn_c_try_link "$LINENO"; then :
21287   ac_cv_lib_crypto_DH_new=yes
21288 else
21289   ac_cv_lib_crypto_DH_new=no
21290 fi
21291 rm -f core conftest.err conftest.$ac_objext \
21292     conftest$ac_exeext conftest.$ac_ext
21293 LIBS=$ac_check_lib_save_LIBS
21294 fi
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
21296 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
21297 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
21298
21299       LIBS="-lcrypto $LIBS"
21300
21301 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21302
21303       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
21304 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
21305 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
21306   $as_echo_n "(cached) " >&6
21307 else
21308   ac_check_lib_save_LIBS=$LIBS
21309 LIBS="-lssl  $LIBS"
21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311 /* end confdefs.h.  */
21312
21313 /* Override any GCC internal prototype to avoid an error.
21314    Use char because int might match the return type of a GCC
21315    builtin and then its argument prototype would still apply.  */
21316 #ifdef __cplusplus
21317 extern "C"
21318 #endif
21319 char SSL_new ();
21320 int
21321 main ()
21322 {
21323 return SSL_new ();
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 if ac_fn_c_try_link "$LINENO"; then :
21329   ac_cv_lib_ssl_SSL_new=yes
21330 else
21331   ac_cv_lib_ssl_SSL_new=no
21332 fi
21333 rm -f core conftest.err conftest.$ac_objext \
21334     conftest$ac_exeext conftest.$ac_ext
21335 LIBS=$ac_check_lib_save_LIBS
21336 fi
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
21338 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
21339 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
21340
21341
21342 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
21343
21344           if test "x$OPENSSL_LIB_DIR" != "x"; then
21345             OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21346           fi
21347           OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21348           LIBS="$OPENSSL_LIBS $LIBS"
21349
21350 else
21351
21352           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21354 as_fn_error $? "failed linking to libssl
21355 See \`config.log' for more details" "$LINENO" 5; }
21356
21357
21358 fi
21359
21360
21361 fi
21362
21363
21364         old_CPPFLAGS=$CPPFLAGS
21365   old_CFLAGS=$CFLAGS
21366   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21367     CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21368     CFLAGS="-I$OPENSSL_INCLUDE_DIR $CFLAGS"
21369   fi
21370
21371         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21372   for ac_header in \
21373     openssl/ssl.h \
21374     openssl/crypto.h \
21375     openssl/err.h \
21376     openssl/evp.h \
21377     openssl/md5.h \
21378     openssl/md4.h \
21379     openssl/sha.h \
21380     openssl/ocsp.h \
21381     openssl/engine.h
21382 do :
21383   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21384 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21386   cat >>confdefs.h <<_ACEOF
21387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21388 _ACEOF
21389
21390 else
21391
21392       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21394 as_fn_error $? "failed locating OpenSSL headers
21395 See \`config.log' for more details" "$LINENO" 5; }
21396
21397
21398 fi
21399
21400 done
21401
21402
21403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21404 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21406 /* end confdefs.h.  */
21407 #include <openssl/crypto.h>
21408      #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21409      yes
21410      #endif
21411
21412 _ACEOF
21413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21414   $EGREP "yes" >/dev/null 2>&1; then :
21415
21416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21417 $as_echo "yes" >&6; }
21418
21419 else
21420
21421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422 $as_echo "no" >&6; }
21423       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21425 as_fn_error $? "OpenSSL version too old
21426 See \`config.log' for more details" "$LINENO" 5; }
21427
21428
21429 fi
21430 rm -f conftest*
21431
21432
21433   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21434     OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21435   else
21436     OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21437   fi
21438
21439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
21440 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
21441   if test "$cross_compiling" = yes; then :
21442   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21444 as_fn_error $? "cannot run test program while cross compiling
21445 See \`config.log' for more details" "$LINENO" 5; }
21446 else
21447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21448 /* end confdefs.h.  */
21449
21450         #include <stdio.h>
21451         #include <openssl/opensslv.h>
21452         #include <openssl/crypto.h>
21453
21454 int
21455 main ()
21456 {
21457
21458         if (SSLeay() == OPENSSL_VERSION_NUMBER) {
21459           return 0;
21460         } else {
21461           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
21462           return 1;
21463         }
21464
21465
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 if ac_fn_c_try_run "$LINENO"; then :
21471
21472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21473 $as_echo "yes" >&6; }
21474
21475 else
21476
21477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21478 $as_echo "no" >&6; }
21479       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21481 as_fn_error $? "OpenSSL library version does not match header version
21482 See \`config.log' for more details" "$LINENO" 5; }
21483
21484
21485 fi
21486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21487   conftest.$ac_objext conftest.beam conftest.$ac_ext
21488 fi
21489
21490
21491   if test "x$OPENSSL_LIBS" = x; then
21492     LIBS=$old_LIBS
21493     LDFLAGS="$old_LDFLAGS"
21494   fi
21495   if test "x$OPENSSL_INCLUDE" = x; then
21496     CPPFLAGS=$old_CPPFLAGS
21497     CFLAGS=$old_CFLAGS
21498   fi
21499 fi
21500
21501
21502
21503 export OPENSSL_LIBS
21504
21505 if test "x$PCAP_LIBS" = x; then
21506     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21507 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21508 else
21509     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21510 if test "x$ac_cv_header_pcap_h" = xyes; then :
21511
21512 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21513
21514 else
21515    PCAP_LIBS=
21516         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21517 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21518
21519 fi
21520
21521
21522
21523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21524 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21525 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21526   $as_echo_n "(cached) " >&6
21527 else
21528   ac_check_lib_save_LIBS=$LIBS
21529 LIBS="-lpcap  $LIBS"
21530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21531 /* end confdefs.h.  */
21532
21533 /* Override any GCC internal prototype to avoid an error.
21534    Use char because int might match the return type of a GCC
21535    builtin and then its argument prototype would still apply.  */
21536 #ifdef __cplusplus
21537 extern "C"
21538 #endif
21539 char pcap_fopen_offline ();
21540 int
21541 main ()
21542 {
21543 return pcap_fopen_offline ();
21544   ;
21545   return 0;
21546 }
21547 _ACEOF
21548 if ac_fn_c_try_link "$LINENO"; then :
21549   ac_cv_lib_pcap_pcap_fopen_offline=yes
21550 else
21551   ac_cv_lib_pcap_pcap_fopen_offline=no
21552 fi
21553 rm -f core conftest.err conftest.$ac_objext \
21554     conftest$ac_exeext conftest.$ac_ext
21555 LIBS=$ac_check_lib_save_LIBS
21556 fi
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21558 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21559 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21560
21561 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21562
21563
21564 fi
21565
21566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21567 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21568 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21569   $as_echo_n "(cached) " >&6
21570 else
21571   ac_check_lib_save_LIBS=$LIBS
21572 LIBS="-lpcap  $LIBS"
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h.  */
21575
21576 /* Override any GCC internal prototype to avoid an error.
21577    Use char because int might match the return type of a GCC
21578    builtin and then its argument prototype would still apply.  */
21579 #ifdef __cplusplus
21580 extern "C"
21581 #endif
21582 char pcap_dump_fopen ();
21583 int
21584 main ()
21585 {
21586 return pcap_dump_fopen ();
21587   ;
21588   return 0;
21589 }
21590 _ACEOF
21591 if ac_fn_c_try_link "$LINENO"; then :
21592   ac_cv_lib_pcap_pcap_dump_fopen=yes
21593 else
21594   ac_cv_lib_pcap_pcap_dump_fopen=no
21595 fi
21596 rm -f core conftest.err conftest.$ac_objext \
21597     conftest$ac_exeext conftest.$ac_ext
21598 LIBS=$ac_check_lib_save_LIBS
21599 fi
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21601 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21602 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21603
21604 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21605
21606
21607 fi
21608
21609 fi
21610
21611
21612
21613 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21614 if test "x$ac_cv_type_off_t" = xyes; then :
21615
21616 else
21617
21618 cat >>confdefs.h <<_ACEOF
21619 #define off_t long int
21620 _ACEOF
21621
21622 fi
21623
21624 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21625 if test "x$ac_cv_type_pid_t" = xyes; then :
21626
21627 else
21628
21629 cat >>confdefs.h <<_ACEOF
21630 #define pid_t int
21631 _ACEOF
21632
21633 fi
21634
21635 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21636 if test "x$ac_cv_type_size_t" = xyes; then :
21637
21638 else
21639
21640 cat >>confdefs.h <<_ACEOF
21641 #define size_t unsigned int
21642 _ACEOF
21643
21644 fi
21645
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21647 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21648 if ${ac_cv_type_uid_t+:} false; then :
21649   $as_echo_n "(cached) " >&6
21650 else
21651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h.  */
21653 #include <sys/types.h>
21654
21655 _ACEOF
21656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21657   $EGREP "uid_t" >/dev/null 2>&1; then :
21658   ac_cv_type_uid_t=yes
21659 else
21660   ac_cv_type_uid_t=no
21661 fi
21662 rm -f conftest*
21663
21664 fi
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21666 $as_echo "$ac_cv_type_uid_t" >&6; }
21667 if test $ac_cv_type_uid_t = no; then
21668
21669 $as_echo "#define uid_t int" >>confdefs.h
21670
21671
21672 $as_echo "#define gid_t int" >>confdefs.h
21673
21674 fi
21675
21676
21677
21678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21679 $as_echo_n "checking for socklen_t... " >&6; }
21680 if ${ac_cv_type_socklen_t+:} false; then :
21681   $as_echo_n "(cached) " >&6
21682 else
21683    ac_cv_type_socklen_t=no
21684       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21685 /* end confdefs.h.  */
21686 #ifdef HAVE_SYS_TYPES_H
21687 #include <sys/types.h>
21688 #endif
21689 #ifdef HAVE_SYS_SOCKET_H
21690 #include <sys/socket.h>
21691 #endif
21692
21693 int
21694 main ()
21695 {
21696 socklen_t foo
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 if ac_fn_c_try_compile "$LINENO"; then :
21702   ac_cv_type_socklen_t=yes
21703 fi
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705
21706
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21709 $as_echo "$ac_cv_type_socklen_t" >&6; }
21710
21711   if test "$ac_cv_type_socklen_t" != "yes"; then
21712
21713 $as_echo "#define socklen_t int" >>confdefs.h
21714
21715   fi
21716
21717
21718
21719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21720 $as_echo_n "checking for uint8_t... " >&6; }
21721 if ${ac_cv_type_uint8_t+:} false; then :
21722   $as_echo_n "(cached) " >&6
21723 else
21724    ac_cv_type_uint8_t=no
21725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h.  */
21727 #ifdef HAVE_INTTYPES_H
21728 #include <inttypes.h>
21729 #endif
21730 #ifdef HAVE_STDINT_H
21731 #include <stdint.h>
21732 #endif
21733
21734 int
21735 main ()
21736 {
21737 uint8_t foo
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 if ac_fn_c_try_compile "$LINENO"; then :
21743   ac_cv_type_uint8_t=yes
21744 fi
21745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746
21747
21748 fi
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21750 $as_echo "$ac_cv_type_uint8_t" >&6; }
21751
21752   if test "$ac_cv_type_uint8_t" != "yes"; then
21753
21754 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21755
21756   fi
21757
21758
21759
21760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21761 $as_echo_n "checking for uint16_t... " >&6; }
21762 if ${ac_cv_type_uint16_t+:} false; then :
21763   $as_echo_n "(cached) " >&6
21764 else
21765    ac_cv_type_uint16_t=no
21766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21767 /* end confdefs.h.  */
21768 #ifdef HAVE_INTTYPES_H
21769 #include <inttypes.h>
21770 #endif
21771 #ifdef HAVE_STDINT_H
21772 #include <stdint.h>
21773 #endif
21774
21775 int
21776 main ()
21777 {
21778 uint16_t foo
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 if ac_fn_c_try_compile "$LINENO"; then :
21784   ac_cv_type_uint16_t=yes
21785 fi
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787
21788
21789 fi
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21791 $as_echo "$ac_cv_type_uint16_t" >&6; }
21792
21793   if test "$ac_cv_type_uint16_t" != "yes"; then
21794
21795 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21796
21797   fi
21798
21799
21800
21801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21802 $as_echo_n "checking for uint32_t... " >&6; }
21803 if ${ac_cv_type_uint32_t+:} false; then :
21804   $as_echo_n "(cached) " >&6
21805 else
21806    ac_cv_type_uint32_t=no
21807       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h.  */
21809 #ifdef HAVE_INTTYPES_H
21810 #include <inttypes.h>
21811 #endif
21812 #ifdef HAVE_STDINT_H
21813 #include <stdint.h>
21814 #endif
21815
21816 int
21817 main ()
21818 {
21819 uint32_t foo
21820   ;
21821   return 0;
21822 }
21823 _ACEOF
21824 if ac_fn_c_try_compile "$LINENO"; then :
21825   ac_cv_type_uint32_t=yes
21826 fi
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828
21829
21830 fi
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21832 $as_echo "$ac_cv_type_uint32_t" >&6; }
21833
21834   if test "$ac_cv_type_uint32_t" != "yes"; then
21835
21836 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21837
21838   fi
21839
21840
21841 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
21842     #ifdef HAVE_SIGNAL_H
21843     #  include <signal.h>
21844     #endif
21845
21846 "
21847 if test "x$ac_cv_type_sig_t" = xyes; then :
21848
21849 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
21850
21851 fi
21852
21853
21854 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21855 #ifdef HAVE_NETINET_IN_H
21856 #include <netinet/in.h>
21857 #endif
21858
21859 "
21860 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21861
21862 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21863
21864 fi
21865
21866
21867 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21868 #ifdef HAVE_NETINET_IN_H
21869 #include <netinet/in.h>
21870 #endif
21871 #ifdef HAVE_SYS_SOCKET_H
21872 #include <sys/socket.h>
21873 #endif
21874
21875 "
21876 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21877
21878 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21879
21880 fi
21881
21882
21883 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21884 #ifdef HAVE_NETINET_IN_H
21885 #include <netinet/in.h>
21886 #endif
21887
21888 "
21889 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21890
21891 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21892
21893 fi
21894
21895
21896 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21897 #ifdef HAVE_SYS_TYPES_H
21898 #include <sys/types.h>
21899 #endif
21900 #ifdef HAVE_SYS_SOCKET_H
21901 #include <sys/socket.h>
21902 #endif
21903 #ifdef HAVE_NETDB_H
21904 #include <netdb.h>
21905 #endif
21906
21907 "
21908 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21909
21910 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21911
21912 fi
21913
21914
21915 for ac_func in \
21916         getopt_long \
21917         lockf \
21918         strsignal \
21919         sigaction \
21920         sigprocmask \
21921         pthread_sigmask \
21922         snprintf \
21923         vsnprintf \
21924         setsid \
21925         strncasecmp \
21926         strcasecmp \
21927         localtime_r \
21928         ctime_r \
21929         gmtime_r \
21930         strsep \
21931         inet_aton \
21932         inet_pton \
21933         inet_ntop \
21934         setlinebuf \
21935         setvbuf \
21936         getusershell \
21937         initgroups \
21938         getaddrinfo \
21939         getnameinfo \
21940         closefrom \
21941         gettimeofday \
21942         getpeereid \
21943         setuid \
21944         setresuid \
21945         getresuid \
21946         strlcat \
21947         strlcpy
21948
21949 do :
21950   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21953   cat >>confdefs.h <<_ACEOF
21954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21955 _ACEOF
21956
21957 fi
21958 done
21959
21960 for ac_func in \
21961         crypt \
21962         strncasecmp \
21963         strcasecmp \
21964         inet_aton \
21965         setlinebuf \
21966         getusershell \
21967         endusershell
21968
21969 do
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21971 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21972 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21973   $as_echo_n "(cached) " >&6
21974 else
21975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976 /* end confdefs.h.  */
21977
21978 #include <stdio.h>
21979 #include <string.h>
21980 #ifdef HAVE_UNISTD_H
21981 #include <unistd.h>
21982 #endif
21983 #ifdef HAVE_CRYPT_H
21984 #include <crypt.h>
21985 #endif
21986 #ifdef HAVE_ERRNO_H
21987 #include <errno.h>
21988 #endif
21989 #ifdef HAVE_RESOURCE_H
21990 #include <resource.h>
21991 #endif
21992 #ifdef HAVE_GETOPT_H
21993 #include <getopt.h>
21994 #endif
21995 #ifdef HAVE_MALLOC_H
21996 #include <malloc.h>
21997 #endif
21998 #ifdef HAVE_UTMP_H
21999 #include <utmp.h>
22000 #endif
22001 #ifdef HAVE_UTMPX_H
22002 #include <utmpx.h>
22003 #endif
22004 #ifdef HAVE_SYS_SELECT_H
22005 #include <sys/select.h>
22006 #endif
22007 #ifdef HAVE_DLFCN_H
22008 #include <dlfcn.h>
22009 #endif
22010 #ifdef HAVE_REGEX_H
22011 #include <regex.h>
22012 #endif
22013 #ifdef HAVE_SYSLOG_H
22014 #include <syslog.h>
22015 #endif
22016 #ifdef HAVE_INTTYPES_H
22017 #include <inttypes.h>
22018 #endif
22019 #ifdef HAVE_STDINT_H
22020 #include <stdint.h>
22021 #endif
22022 #ifdef HAVE_ARPA_INET_H
22023 #include <arpa/inet.h>
22024 #endif
22025
22026 int
22027 main ()
22028 {
22029 char *(*pfn) = (char *(*)) $ac_func
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 if ac_fn_c_try_compile "$LINENO"; then :
22035   eval "radius_cv_decl_needed_$ac_func=no"
22036 else
22037   eval "radius_cv_decl_needed_$ac_func=yes"
22038 fi
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 fi
22041
22042 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22044 $as_echo "yes" >&6; }
22045   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22046   cat >>confdefs.h <<_ACEOF
22047 #define $radius_tr_decl 1
22048 _ACEOF
22049
22050 else
22051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052 $as_echo "no" >&6; }
22053 fi
22054
22055 done
22056
22057
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22059 $as_echo_n "checking return type of signal handlers... " >&6; }
22060 if ${ac_cv_type_signal+:} false; then :
22061   $as_echo_n "(cached) " >&6
22062 else
22063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h.  */
22065 #include <sys/types.h>
22066 #include <signal.h>
22067
22068 int
22069 main ()
22070 {
22071 return *(signal (0, 0)) (0) == 1;
22072   ;
22073   return 0;
22074 }
22075 _ACEOF
22076 if ac_fn_c_try_compile "$LINENO"; then :
22077   ac_cv_type_signal=int
22078 else
22079   ac_cv_type_signal=void
22080 fi
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 fi
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22084 $as_echo "$ac_cv_type_signal" >&6; }
22085
22086 cat >>confdefs.h <<_ACEOF
22087 #define RETSIGTYPE $ac_cv_type_signal
22088 _ACEOF
22089
22090
22091
22092 if test "x$ac_cv_header_utmpx_h" = "xyes"
22093 then
22094
22095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
22096 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
22097
22098
22099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22100 /* end confdefs.h.  */
22101
22102 #include <utmpx.h>
22103 #ifdef HAVE_STDDEF_H
22104 #include <stddef.h>
22105 #endif
22106 #ifndef offsetof
22107 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22108 #endif
22109
22110 int
22111 main ()
22112 {
22113  int foo = offsetof(struct utmpx, ut_xtime)
22114   ;
22115   return 0;
22116 }
22117 _ACEOF
22118 if ac_fn_c_try_compile "$LINENO"; then :
22119   has_element=" "
22120 else
22121   has_element=
22122 fi
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124
22125   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22126   if test "x$has_element" != "x"; then
22127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22128 $as_echo "yes" >&6; }
22129     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22130   else
22131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22132 $as_echo "no" >&6; }
22133     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22134  fi
22135
22136  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22137  then
22138
22139 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22140
22141  fi
22142 fi
22143
22144
22145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22146 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22147
22148
22149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h.  */
22151
22152 #include <netinet/in.h>
22153 #ifdef HAVE_STDDEF_H
22154 #include <stddef.h>
22155 #endif
22156 #ifndef offsetof
22157 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22158 #endif
22159
22160 int
22161 main ()
22162 {
22163  int foo = offsetof(struct in_pktinfo, ipi_addr)
22164   ;
22165   return 0;
22166 }
22167 _ACEOF
22168 if ac_fn_c_try_compile "$LINENO"; then :
22169   has_element=" "
22170 else
22171   has_element=
22172 fi
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22174
22175   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22176   if test "x$has_element" != "x"; then
22177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22178 $as_echo "yes" >&6; }
22179     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22180   else
22181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22182 $as_echo "no" >&6; }
22183     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22184  fi
22185
22186 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22187 then
22188
22189 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22190
22191 fi
22192
22193
22194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22195 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22196
22197
22198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h.  */
22200
22201 #include <netinet/in.h>
22202 #ifdef HAVE_STDDEF_H
22203 #include <stddef.h>
22204 #endif
22205 #ifndef offsetof
22206 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22207 #endif
22208
22209 int
22210 main ()
22211 {
22212  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22213   ;
22214   return 0;
22215 }
22216 _ACEOF
22217 if ac_fn_c_try_compile "$LINENO"; then :
22218   has_element=" "
22219 else
22220   has_element=
22221 fi
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223
22224   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22225   if test "x$has_element" != "x"; then
22226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22227 $as_echo "yes" >&6; }
22228     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22229   else
22230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22231 $as_echo "no" >&6; }
22232     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22233  fi
22234
22235 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22236 then
22237
22238 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22239
22240 fi
22241
22242
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22244 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22245 if ${ac_cv_c_const+:} false; then :
22246   $as_echo_n "(cached) " >&6
22247 else
22248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h.  */
22250
22251 int
22252 main ()
22253 {
22254
22255 #ifndef __cplusplus
22256   /* Ultrix mips cc rejects this sort of thing.  */
22257   typedef int charset[2];
22258   const charset cs = { 0, 0 };
22259   /* SunOS 4.1.1 cc rejects this.  */
22260   char const *const *pcpcc;
22261   char **ppc;
22262   /* NEC SVR4.0.2 mips cc rejects this.  */
22263   struct point {int x, y;};
22264   static struct point const zero = {0,0};
22265   /* AIX XL C 1.02.0.0 rejects this.
22266      It does not let you subtract one const X* pointer from another in
22267      an arm of an if-expression whose if-part is not a constant
22268      expression */
22269   const char *g = "string";
22270   pcpcc = &g + (g ? g-g : 0);
22271   /* HPUX 7.0 cc rejects these. */
22272   ++pcpcc;
22273   ppc = (char**) pcpcc;
22274   pcpcc = (char const *const *) ppc;
22275   { /* SCO 3.2v4 cc rejects this sort of thing.  */
22276     char tx;
22277     char *t = &tx;
22278     char const *s = 0 ? (char *) 0 : (char const *) 0;
22279
22280     *t++ = 0;
22281     if (s) return 0;
22282   }
22283   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22284     int x[] = {25, 17};
22285     const int *foo = &x[0];
22286     ++foo;
22287   }
22288   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22289     typedef const int *iptr;
22290     iptr p = 0;
22291     ++p;
22292   }
22293   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22294        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22295     struct s { int j; const int *ap[3]; } bx;
22296     struct s *b = &bx; b->j = 5;
22297   }
22298   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22299     const int foo = 10;
22300     if (!foo) return 0;
22301   }
22302   return !cs[0] && !zero.x;
22303 #endif
22304
22305   ;
22306   return 0;
22307 }
22308 _ACEOF
22309 if ac_fn_c_try_compile "$LINENO"; then :
22310   ac_cv_c_const=yes
22311 else
22312   ac_cv_c_const=no
22313 fi
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 fi
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22317 $as_echo "$ac_cv_c_const" >&6; }
22318 if test $ac_cv_c_const = no; then
22319
22320 $as_echo "#define const /**/" >>confdefs.h
22321
22322 fi
22323
22324
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22326 $as_echo_n "checking type of OS... " >&6; }
22327 OS=`uname -s`
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22329 $as_echo "$OS" >&6; }
22330 if test "$OS" = "OS/2"; then
22331         LIBPREFIX=
22332 else
22333         LIBPREFIX=lib
22334 fi
22335
22336
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22338 $as_echo_n "checking for developer gcc flags... " >&6; }
22339 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22340   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22341   CFLAGS="$CFLAGS $devflags"
22342   INSTALLSTRIP=""
22343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
22344 $as_echo "yes.  Using $devflags" >&6; }
22345 else
22346   devflags=""
22347   CFLAGS="$CFLAGS -DNDEBUG"
22348   INSTALLSTRIP=""
22349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22350 $as_echo "no." >&6; }
22351 fi
22352
22353
22354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22355 $as_echo_n "checking for TLS... " >&6; }
22356     if test "$cross_compiling" = yes; then :
22357   have_tls=no
22358 else
22359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h.  */
22361  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22362 _ACEOF
22363 if ac_fn_c_try_run "$LINENO"; then :
22364   have_tls=yes
22365 else
22366   have_tls=no
22367 fi
22368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22369   conftest.$ac_objext conftest.beam conftest.$ac_ext
22370 fi
22371
22372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22373 $as_echo "$have_tls" >&6; }
22374     if test "$have_tls" = "yes"; then
22375
22376 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22377
22378     fi
22379
22380
22381
22382 old_LIBS="$LIBS"
22383 LIBS="$LIBS $LIBLTDL"
22384 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22385 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22386
22387 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22388
22389 fi
22390
22391 LIBS="$old_LIBS"
22392
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22394 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22395 if ${ac_cv_lib_crypt_crypt+:} false; then :
22396   $as_echo_n "(cached) " >&6
22397 else
22398   ac_check_lib_save_LIBS=$LIBS
22399 LIBS="-lcrypt  $LIBS"
22400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h.  */
22402
22403 /* Override any GCC internal prototype to avoid an error.
22404    Use char because int might match the return type of a GCC
22405    builtin and then its argument prototype would still apply.  */
22406 #ifdef __cplusplus
22407 extern "C"
22408 #endif
22409 char crypt ();
22410 int
22411 main ()
22412 {
22413 return crypt ();
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 if ac_fn_c_try_link "$LINENO"; then :
22419   ac_cv_lib_crypt_crypt=yes
22420 else
22421   ac_cv_lib_crypt_crypt=no
22422 fi
22423 rm -f core conftest.err conftest.$ac_objext \
22424     conftest$ac_exeext conftest.$ac_ext
22425 LIBS=$ac_check_lib_save_LIBS
22426 fi
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22428 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22429 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22430   CRYPTLIB="-lcrypt"
22431
22432 fi
22433
22434 if test "$CRYPTLIB" != ""; then
22435
22436 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22437
22438 else
22439   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22440 if test "x$ac_cv_func_crypt" = xyes; then :
22441
22442 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22443
22444 fi
22445
22446 fi
22447
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22449 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22450 if ${ac_cv_lib_cipher_setkey+:} false; then :
22451   $as_echo_n "(cached) " >&6
22452 else
22453   ac_check_lib_save_LIBS=$LIBS
22454 LIBS="-lcipher  $LIBS"
22455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22456 /* end confdefs.h.  */
22457
22458 /* Override any GCC internal prototype to avoid an error.
22459    Use char because int might match the return type of a GCC
22460    builtin and then its argument prototype would still apply.  */
22461 #ifdef __cplusplus
22462 extern "C"
22463 #endif
22464 char setkey ();
22465 int
22466 main ()
22467 {
22468 return setkey ();
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 if ac_fn_c_try_link "$LINENO"; then :
22474   ac_cv_lib_cipher_setkey=yes
22475 else
22476   ac_cv_lib_cipher_setkey=no
22477 fi
22478 rm -f core conftest.err conftest.$ac_objext \
22479     conftest$ac_exeext conftest.$ac_ext
22480 LIBS=$ac_check_lib_save_LIBS
22481 fi
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22483 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22484 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22485   CRYPTLIB="${CRYPTLIB} -lcipher"
22486
22487 fi
22488
22489
22490
22491
22492 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22493
22494
22495 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22496
22497
22498 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22499
22500 gethostbyaddrrstyle=""
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22502 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22503 case "$host" in
22504 *-freebsd*)
22505         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22506 #ifdef HAVE_NETDB_H
22507 #include <netdb.h>
22508 #endif
22509
22510 "
22511 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22512   ac_have_decl=1
22513 else
22514   ac_have_decl=0
22515 fi
22516
22517 cat >>confdefs.h <<_ACEOF
22518 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22519 _ACEOF
22520 if test $ac_have_decl = 1; then :
22521
22522 else
22523
22524
22525 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22526
22527                 gethostbyaddrrstyle=BSD
22528                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22529 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22530
22531 fi
22532
22533         ;;
22534 esac
22535 if test "x$gethostbyaddrrstyle" = "x"; then
22536         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h.  */
22538
22539 #include <stdio.h>
22540 #include <netdb.h>
22541
22542 int
22543 main ()
22544 {
22545  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22546   ;
22547   return 0;
22548 }
22549 _ACEOF
22550 if ac_fn_c_try_link "$LINENO"; then :
22551
22552
22553 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22554
22555         gethostbyaddrrstyle=GNU
22556
22557 fi
22558 rm -f core conftest.err conftest.$ac_objext \
22559     conftest$ac_exeext conftest.$ac_ext
22560 fi
22561 if test "x$gethostbyaddrrstyle" = "x"; then
22562         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h.  */
22564
22565 #include <stdio.h>
22566 #include <netdb.h>
22567
22568 int
22569 main ()
22570 {
22571  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22572   ;
22573   return 0;
22574 }
22575 _ACEOF
22576 if ac_fn_c_try_link "$LINENO"; then :
22577
22578
22579 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22580
22581                 gethostbyaddrrstyle=SYSV
22582
22583 fi
22584 rm -f core conftest.err conftest.$ac_objext \
22585     conftest$ac_exeext conftest.$ac_ext
22586 fi
22587 if test "x$gethostbyaddrrstyle" = "x"; then
22588         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h.  */
22590
22591 #include <stdio.h>
22592 #include <netdb.h>
22593
22594 int
22595 main ()
22596 {
22597  gethostbyaddr(NULL, 0, 0)
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 if ac_fn_c_try_link "$LINENO"; then :
22603
22604
22605 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22606
22607                 gethostbyaddrrstyle=BSD
22608
22609 fi
22610 rm -f core conftest.err conftest.$ac_objext \
22611     conftest$ac_exeext conftest.$ac_ext
22612 fi
22613
22614 if test "x$gethostbyaddrrstyle" = "x"; then
22615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22616 $as_echo "none!  It must not exist, here." >&6; }
22617 else
22618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22619 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22620 fi
22621
22622 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22623         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22624 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22625 fi
22626
22627 gethostbynamerstyle=""
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22629 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h.  */
22632
22633 #include <stdio.h>
22634 #include <netdb.h>
22635
22636 int
22637 main ()
22638 {
22639  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22640   ;
22641   return 0;
22642 }
22643 _ACEOF
22644 if ac_fn_c_try_link "$LINENO"; then :
22645
22646
22647 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22648
22649         gethostbynamerstyle=GNU
22650
22651 fi
22652 rm -f core conftest.err conftest.$ac_objext \
22653     conftest$ac_exeext conftest.$ac_ext
22654 if test "x$gethostbynamerstyle" = "x"; then
22655         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h.  */
22657
22658 #include <stdio.h>
22659 #include <netdb.h>
22660
22661 int
22662 main ()
22663 {
22664  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22665   ;
22666   return 0;
22667 }
22668 _ACEOF
22669 if ac_fn_c_try_link "$LINENO"; then :
22670
22671
22672 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22673
22674                 gethostbynamerstyle=SYSV
22675
22676 fi
22677 rm -f core conftest.err conftest.$ac_objext \
22678     conftest$ac_exeext conftest.$ac_ext
22679 fi
22680 if test "x$gethostbynamerstyle" = "x"; then
22681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h.  */
22683
22684 #include <stdio.h>
22685 #include <netdb.h>
22686
22687 int
22688 main ()
22689 {
22690  gethostbyname(NULL)
22691   ;
22692   return 0;
22693 }
22694 _ACEOF
22695 if ac_fn_c_try_link "$LINENO"; then :
22696
22697
22698 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22699
22700                 gethostbynamerstyle=BSD
22701
22702 fi
22703 rm -f core conftest.err conftest.$ac_objext \
22704     conftest$ac_exeext conftest.$ac_ext
22705 fi
22706
22707 if test "x$gethostbynamerstyle" = "x"; then
22708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22709 $as_echo "none!  It must not exist, here." >&6; }
22710 else
22711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22712 $as_echo "${gethostbynamerstyle}-style" >&6; }
22713 fi
22714
22715 if test "x$gethostbynamerstyle" = "xBSD"; then
22716         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22717 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22718 fi
22719
22720
22721 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22722
22723
22724 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22725
22726 ctimerstyle=""
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22728 $as_echo_n "checking ctime_r() syntax... " >&6; }
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h.  */
22731
22732 #include <time.h>
22733
22734 int
22735 main ()
22736 {
22737  ctime_r(NULL, NULL, 0)
22738   ;
22739   return 0;
22740 }
22741 _ACEOF
22742 if ac_fn_c_try_link "$LINENO"; then :
22743
22744
22745 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22746
22747         ctimerstyle="SOLARIS"
22748
22749 fi
22750 rm -f core conftest.err conftest.$ac_objext \
22751     conftest$ac_exeext conftest.$ac_ext
22752 if test "x$ctimerstyle" = "x"; then
22753         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754 /* end confdefs.h.  */
22755
22756 #include <time.h>
22757
22758 int
22759 main ()
22760 {
22761  ctime_r(NULL, NULL)
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 if ac_fn_c_try_link "$LINENO"; then :
22767
22768
22769 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22770
22771                 ctimerstyle="POSIX"
22772
22773 fi
22774 rm -f core conftest.err conftest.$ac_objext \
22775     conftest$ac_exeext conftest.$ac_ext
22776 fi
22777
22778 if test "x$ctimerstyle" = "x"; then
22779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22780 $as_echo "none!  It must not exist, here." >&6; }
22781 else
22782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22783 $as_echo "${ctimerstyle}-style" >&6; }
22784 fi
22785
22786 HOSTINFO=$host
22787
22788
22789 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22790
22791 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22792
22793 fi
22794
22795
22796 top_builddir=`pwd`
22797 export top_builddir
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22799 $as_echo "top_builddir=$top_builddir" >&6; }
22800
22801
22802
22803
22804
22805 mysubdirs="$LIBLTDLPATH"
22806 if test "x$EXPERIMENTAL" = "xyes"; then
22807   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22808     mysubdirs=`echo $mysubdirs $bar`
22809 else
22810         for bar in `cat "${srcdir}"/src/modules/stable`; do
22811     if test -f "${srcdir}"/src/modules/$bar/configure; then
22812       mysubdirs="$mysubdirs src/modules/$bar"
22813     fi
22814   done
22815 fi
22816
22817 if test "x$EXPERIMENTAL" = "xyes"; then
22818   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22819     MODULES="$MODULES $foo"
22820   done
22821 else
22822             for foo in `cat "${srcdir}"/src/modules/stable`; do
22823     MODULES="$MODULES $foo"
22824    done
22825 fi
22826
22827
22828
22829 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22830
22831
22832
22833
22834 ac_config_commands="$ac_config_commands stamp-h"
22835
22836 ac_config_commands="$ac_config_commands build-radpaths-h"
22837
22838 ac_config_commands="$ac_config_commands main-chmod"
22839
22840 ac_config_commands="$ac_config_commands scripts-chmod"
22841
22842
22843
22844
22845
22846 USE_SHARED_LIBS=$enable_shared
22847
22848 USE_STATIC_LIBS=$enable_static
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859   unset ac_cv_env_LIBS_set
22860   unset ac_cv_env_LIBS_value
22861
22862   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"
22863
22864 cat >confcache <<\_ACEOF
22865 # This file is a shell script that caches the results of configure
22866 # tests run on this system so they can be shared between configure
22867 # scripts and configure runs, see configure's option --config-cache.
22868 # It is not useful on other systems.  If it contains results you don't
22869 # want to keep, you may remove or edit it.
22870 #
22871 # config.status only pays attention to the cache file if you give it
22872 # the --recheck option to rerun configure.
22873 #
22874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22876 # following values.
22877
22878 _ACEOF
22879
22880 # The following way of writing the cache mishandles newlines in values,
22881 # but we know of no workaround that is simple, portable, and efficient.
22882 # So, we kill variables containing newlines.
22883 # Ultrix sh set writes to stderr and can't be redirected directly,
22884 # and sets the high bit in the cache file unless we assign to the vars.
22885 (
22886   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22887     eval ac_val=\$$ac_var
22888     case $ac_val in #(
22889     *${as_nl}*)
22890       case $ac_var in #(
22891       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22893       esac
22894       case $ac_var in #(
22895       _ | IFS | as_nl) ;; #(
22896       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22897       *) { eval $ac_var=; unset $ac_var;} ;;
22898       esac ;;
22899     esac
22900   done
22901
22902   (set) 2>&1 |
22903     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22904     *${as_nl}ac_space=\ *)
22905       # `set' does not quote correctly, so add quotes: double-quote
22906       # substitution turns \\\\ into \\, and sed turns \\ into \.
22907       sed -n \
22908         "s/'/'\\\\''/g;
22909           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22910       ;; #(
22911     *)
22912       # `set' quotes correctly as required by POSIX, so do not add quotes.
22913       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22914       ;;
22915     esac |
22916     sort
22917 ) |
22918   sed '
22919      /^ac_cv_env_/b end
22920      t clear
22921      :clear
22922      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22923      t end
22924      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22925      :end' >>confcache
22926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22927   if test -w "$cache_file"; then
22928     if test "x$cache_file" != "x/dev/null"; then
22929       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22930 $as_echo "$as_me: updating cache $cache_file" >&6;}
22931       if test ! -f "$cache_file" || test -h "$cache_file"; then
22932         cat confcache >"$cache_file"
22933       else
22934         case $cache_file in #(
22935         */* | ?:*)
22936           mv -f confcache "$cache_file"$$ &&
22937           mv -f "$cache_file"$$ "$cache_file" ;; #(
22938         *)
22939           mv -f confcache "$cache_file" ;;
22940         esac
22941       fi
22942     fi
22943   else
22944     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22945 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22946   fi
22947 fi
22948 rm -f confcache
22949
22950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22951 # Let make expand exec_prefix.
22952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22953
22954 DEFS=-DHAVE_CONFIG_H
22955
22956 ac_libobjs=
22957 ac_ltlibobjs=
22958 U=
22959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22960   # 1. Remove the extension, and $U if already installed.
22961   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22962   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22963   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22964   #    will be set to the directory where LIBOBJS objects are built.
22965   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22966   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22967 done
22968 LIBOBJS=$ac_libobjs
22969
22970 LTLIBOBJS=$ac_ltlibobjs
22971
22972
22973
22974
22975 : "${CONFIG_STATUS=./config.status}"
22976 ac_write_fail=0
22977 ac_clean_files_save=$ac_clean_files
22978 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22980 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22981 as_write_fail=0
22982 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22983 #! $SHELL
22984 # Generated by $as_me.
22985 # Run this file to recreate the current configuration.
22986 # Compiler output produced by configure, useful for debugging
22987 # configure, is in config.log if it exists.
22988
22989 debug=false
22990 ac_cs_recheck=false
22991 ac_cs_silent=false
22992
22993 SHELL=\${CONFIG_SHELL-$SHELL}
22994 export SHELL
22995 _ASEOF
22996 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22997 ## -------------------- ##
22998 ## M4sh Initialization. ##
22999 ## -------------------- ##
23000
23001 # Be more Bourne compatible
23002 DUALCASE=1; export DUALCASE # for MKS sh
23003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23004   emulate sh
23005   NULLCMD=:
23006   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23007   # is contrary to our usage.  Disable this feature.
23008   alias -g '${1+"$@"}'='"$@"'
23009   setopt NO_GLOB_SUBST
23010 else
23011   case `(set -o) 2>/dev/null` in #(
23012   *posix*) :
23013     set -o posix ;; #(
23014   *) :
23015      ;;
23016 esac
23017 fi
23018
23019
23020 as_nl='
23021 '
23022 export as_nl
23023 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23024 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23025 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23027 # Prefer a ksh shell builtin over an external printf program on Solaris,
23028 # but without wasting forks for bash or zsh.
23029 if test -z "$BASH_VERSION$ZSH_VERSION" \
23030     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23031   as_echo='print -r --'
23032   as_echo_n='print -rn --'
23033 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23034   as_echo='printf %s\n'
23035   as_echo_n='printf %s'
23036 else
23037   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23038     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23039     as_echo_n='/usr/ucb/echo -n'
23040   else
23041     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23042     as_echo_n_body='eval
23043       arg=$1;
23044       case $arg in #(
23045       *"$as_nl"*)
23046         expr "X$arg" : "X\\(.*\\)$as_nl";
23047         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23048       esac;
23049       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23050     '
23051     export as_echo_n_body
23052     as_echo_n='sh -c $as_echo_n_body as_echo'
23053   fi
23054   export as_echo_body
23055   as_echo='sh -c $as_echo_body as_echo'
23056 fi
23057
23058 # The user is always right.
23059 if test "${PATH_SEPARATOR+set}" != set; then
23060   PATH_SEPARATOR=:
23061   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23062     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23063       PATH_SEPARATOR=';'
23064   }
23065 fi
23066
23067
23068 # IFS
23069 # We need space, tab and new line, in precisely that order.  Quoting is
23070 # there to prevent editors from complaining about space-tab.
23071 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23072 # splitting by setting IFS to empty value.)
23073 IFS=" ""        $as_nl"
23074
23075 # Find who we are.  Look in the path if we contain no directory separator.
23076 as_myself=
23077 case $0 in #((
23078   *[\\/]* ) as_myself=$0 ;;
23079   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23080 for as_dir in $PATH
23081 do
23082   IFS=$as_save_IFS
23083   test -z "$as_dir" && as_dir=.
23084     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23085   done
23086 IFS=$as_save_IFS
23087
23088      ;;
23089 esac
23090 # We did not find ourselves, most probably we were run as `sh COMMAND'
23091 # in which case we are not to be found in the path.
23092 if test "x$as_myself" = x; then
23093   as_myself=$0
23094 fi
23095 if test ! -f "$as_myself"; then
23096   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23097   exit 1
23098 fi
23099
23100 # Unset variables that we do not need and which cause bugs (e.g. in
23101 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23102 # suppresses any "Segmentation fault" message there.  '((' could
23103 # trigger a bug in pdksh 5.2.14.
23104 for as_var in BASH_ENV ENV MAIL MAILPATH
23105 do eval test x\${$as_var+set} = xset \
23106   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23107 done
23108 PS1='$ '
23109 PS2='> '
23110 PS4='+ '
23111
23112 # NLS nuisances.
23113 LC_ALL=C
23114 export LC_ALL
23115 LANGUAGE=C
23116 export LANGUAGE
23117
23118 # CDPATH.
23119 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23120
23121
23122 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23123 # ----------------------------------------
23124 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23125 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23126 # script with STATUS, using 1 if that was 0.
23127 as_fn_error ()
23128 {
23129   as_status=$1; test $as_status -eq 0 && as_status=1
23130   if test "$4"; then
23131     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23132     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23133   fi
23134   $as_echo "$as_me: error: $2" >&2
23135   as_fn_exit $as_status
23136 } # as_fn_error
23137
23138
23139 # as_fn_set_status STATUS
23140 # -----------------------
23141 # Set $? to STATUS, without forking.
23142 as_fn_set_status ()
23143 {
23144   return $1
23145 } # as_fn_set_status
23146
23147 # as_fn_exit STATUS
23148 # -----------------
23149 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23150 as_fn_exit ()
23151 {
23152   set +e
23153   as_fn_set_status $1
23154   exit $1
23155 } # as_fn_exit
23156
23157 # as_fn_unset VAR
23158 # ---------------
23159 # Portably unset VAR.
23160 as_fn_unset ()
23161 {
23162   { eval $1=; unset $1;}
23163 }
23164 as_unset=as_fn_unset
23165 # as_fn_append VAR VALUE
23166 # ----------------------
23167 # Append the text in VALUE to the end of the definition contained in VAR. Take
23168 # advantage of any shell optimizations that allow amortized linear growth over
23169 # repeated appends, instead of the typical quadratic growth present in naive
23170 # implementations.
23171 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23172   eval 'as_fn_append ()
23173   {
23174     eval $1+=\$2
23175   }'
23176 else
23177   as_fn_append ()
23178   {
23179     eval $1=\$$1\$2
23180   }
23181 fi # as_fn_append
23182
23183 # as_fn_arith ARG...
23184 # ------------------
23185 # Perform arithmetic evaluation on the ARGs, and store the result in the
23186 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23187 # must be portable across $(()) and expr.
23188 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23189   eval 'as_fn_arith ()
23190   {
23191     as_val=$(( $* ))
23192   }'
23193 else
23194   as_fn_arith ()
23195   {
23196     as_val=`expr "$@" || test $? -eq 1`
23197   }
23198 fi # as_fn_arith
23199
23200
23201 if expr a : '\(a\)' >/dev/null 2>&1 &&
23202    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23203   as_expr=expr
23204 else
23205   as_expr=false
23206 fi
23207
23208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23209   as_basename=basename
23210 else
23211   as_basename=false
23212 fi
23213
23214 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23215   as_dirname=dirname
23216 else
23217   as_dirname=false
23218 fi
23219
23220 as_me=`$as_basename -- "$0" ||
23221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23222          X"$0" : 'X\(//\)$' \| \
23223          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23224 $as_echo X/"$0" |
23225     sed '/^.*\/\([^/][^/]*\)\/*$/{
23226             s//\1/
23227             q
23228           }
23229           /^X\/\(\/\/\)$/{
23230             s//\1/
23231             q
23232           }
23233           /^X\/\(\/\).*/{
23234             s//\1/
23235             q
23236           }
23237           s/.*/./; q'`
23238
23239 # Avoid depending upon Character Ranges.
23240 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23241 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23242 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23243 as_cr_digits='0123456789'
23244 as_cr_alnum=$as_cr_Letters$as_cr_digits
23245
23246 ECHO_C= ECHO_N= ECHO_T=
23247 case `echo -n x` in #(((((
23248 -n*)
23249   case `echo 'xy\c'` in
23250   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23251   xy)  ECHO_C='\c';;
23252   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23253        ECHO_T=' ';;
23254   esac;;
23255 *)
23256   ECHO_N='-n';;
23257 esac
23258
23259 rm -f conf$$ conf$$.exe conf$$.file
23260 if test -d conf$$.dir; then
23261   rm -f conf$$.dir/conf$$.file
23262 else
23263   rm -f conf$$.dir
23264   mkdir conf$$.dir 2>/dev/null
23265 fi
23266 if (echo >conf$$.file) 2>/dev/null; then
23267   if ln -s conf$$.file conf$$ 2>/dev/null; then
23268     as_ln_s='ln -s'
23269     # ... but there are two gotchas:
23270     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23271     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23272     # In both cases, we have to default to `cp -pR'.
23273     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23274       as_ln_s='cp -pR'
23275   elif ln conf$$.file conf$$ 2>/dev/null; then
23276     as_ln_s=ln
23277   else
23278     as_ln_s='cp -pR'
23279   fi
23280 else
23281   as_ln_s='cp -pR'
23282 fi
23283 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23284 rmdir conf$$.dir 2>/dev/null
23285
23286
23287 # as_fn_mkdir_p
23288 # -------------
23289 # Create "$as_dir" as a directory, including parents if necessary.
23290 as_fn_mkdir_p ()
23291 {
23292
23293   case $as_dir in #(
23294   -*) as_dir=./$as_dir;;
23295   esac
23296   test -d "$as_dir" || eval $as_mkdir_p || {
23297     as_dirs=
23298     while :; do
23299       case $as_dir in #(
23300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23301       *) as_qdir=$as_dir;;
23302       esac
23303       as_dirs="'$as_qdir' $as_dirs"
23304       as_dir=`$as_dirname -- "$as_dir" ||
23305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23306          X"$as_dir" : 'X\(//\)[^/]' \| \
23307          X"$as_dir" : 'X\(//\)$' \| \
23308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23309 $as_echo X"$as_dir" |
23310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23311             s//\1/
23312             q
23313           }
23314           /^X\(\/\/\)[^/].*/{
23315             s//\1/
23316             q
23317           }
23318           /^X\(\/\/\)$/{
23319             s//\1/
23320             q
23321           }
23322           /^X\(\/\).*/{
23323             s//\1/
23324             q
23325           }
23326           s/.*/./; q'`
23327       test -d "$as_dir" && break
23328     done
23329     test -z "$as_dirs" || eval "mkdir $as_dirs"
23330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23331
23332
23333 } # as_fn_mkdir_p
23334 if mkdir -p . 2>/dev/null; then
23335   as_mkdir_p='mkdir -p "$as_dir"'
23336 else
23337   test -d ./-p && rmdir ./-p
23338   as_mkdir_p=false
23339 fi
23340
23341
23342 # as_fn_executable_p FILE
23343 # -----------------------
23344 # Test if FILE is an executable regular file.
23345 as_fn_executable_p ()
23346 {
23347   test -f "$1" && test -x "$1"
23348 } # as_fn_executable_p
23349 as_test_x='test -x'
23350 as_executable_p=as_fn_executable_p
23351
23352 # Sed expression to map a string onto a valid CPP name.
23353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23354
23355 # Sed expression to map a string onto a valid variable name.
23356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23357
23358
23359 exec 6>&1
23360 ## ----------------------------------- ##
23361 ## Main body of $CONFIG_STATUS script. ##
23362 ## ----------------------------------- ##
23363 _ASEOF
23364 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23365
23366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23367 # Save the log message, to keep $0 and so on meaningful, and to
23368 # report actual input values of CONFIG_FILES etc. instead of their
23369 # values after options handling.
23370 ac_log="
23371 This file was extended by $as_me, which was
23372 generated by GNU Autoconf 2.69.  Invocation command line was
23373
23374   CONFIG_FILES    = $CONFIG_FILES
23375   CONFIG_HEADERS  = $CONFIG_HEADERS
23376   CONFIG_LINKS    = $CONFIG_LINKS
23377   CONFIG_COMMANDS = $CONFIG_COMMANDS
23378   $ $0 $@
23379
23380 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23381 "
23382
23383 _ACEOF
23384
23385 case $ac_config_files in *"
23386 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23387 esac
23388
23389 case $ac_config_headers in *"
23390 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23391 esac
23392
23393
23394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23395 # Files that config.status was made for.
23396 config_files="$ac_config_files"
23397 config_headers="$ac_config_headers"
23398 config_commands="$ac_config_commands"
23399
23400 _ACEOF
23401
23402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23403 ac_cs_usage="\
23404 \`$as_me' instantiates files and other configuration actions
23405 from templates according to the current configuration.  Unless the files
23406 and actions are specified as TAGs, all are instantiated by default.
23407
23408 Usage: $0 [OPTION]... [TAG]...
23409
23410   -h, --help       print this help, then exit
23411   -V, --version    print version number and configuration settings, then exit
23412       --config     print configuration, then exit
23413   -q, --quiet, --silent
23414                    do not print progress messages
23415   -d, --debug      don't remove temporary files
23416       --recheck    update $as_me by reconfiguring in the same conditions
23417       --file=FILE[:TEMPLATE]
23418                    instantiate the configuration file FILE
23419       --header=FILE[:TEMPLATE]
23420                    instantiate the configuration header FILE
23421
23422 Configuration files:
23423 $config_files
23424
23425 Configuration headers:
23426 $config_headers
23427
23428 Configuration commands:
23429 $config_commands
23430
23431 Report bugs to the package provider."
23432
23433 _ACEOF
23434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23435 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23436 ac_cs_version="\\
23437 config.status
23438 configured by $0, generated by GNU Autoconf 2.69,
23439   with options \\"\$ac_cs_config\\"
23440
23441 Copyright (C) 2012 Free Software Foundation, Inc.
23442 This config.status script is free software; the Free Software Foundation
23443 gives unlimited permission to copy, distribute and modify it."
23444
23445 ac_pwd='$ac_pwd'
23446 srcdir='$srcdir'
23447 test -n "\$AWK" || AWK=awk
23448 _ACEOF
23449
23450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23451 # The default lists apply if the user does not specify any file.
23452 ac_need_defaults=:
23453 while test $# != 0
23454 do
23455   case $1 in
23456   --*=?*)
23457     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23458     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23459     ac_shift=:
23460     ;;
23461   --*=)
23462     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23463     ac_optarg=
23464     ac_shift=:
23465     ;;
23466   *)
23467     ac_option=$1
23468     ac_optarg=$2
23469     ac_shift=shift
23470     ;;
23471   esac
23472
23473   case $ac_option in
23474   # Handling of the options.
23475   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23476     ac_cs_recheck=: ;;
23477   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23478     $as_echo "$ac_cs_version"; exit ;;
23479   --config | --confi | --conf | --con | --co | --c )
23480     $as_echo "$ac_cs_config"; exit ;;
23481   --debug | --debu | --deb | --de | --d | -d )
23482     debug=: ;;
23483   --file | --fil | --fi | --f )
23484     $ac_shift
23485     case $ac_optarg in
23486     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23487     '') as_fn_error $? "missing file argument" ;;
23488     esac
23489     as_fn_append CONFIG_FILES " '$ac_optarg'"
23490     ac_need_defaults=false;;
23491   --header | --heade | --head | --hea )
23492     $ac_shift
23493     case $ac_optarg in
23494     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23495     esac
23496     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23497     ac_need_defaults=false;;
23498   --he | --h)
23499     # Conflict between --help and --header
23500     as_fn_error $? "ambiguous option: \`$1'
23501 Try \`$0 --help' for more information.";;
23502   --help | --hel | -h )
23503     $as_echo "$ac_cs_usage"; exit ;;
23504   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23505   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23506     ac_cs_silent=: ;;
23507
23508   # This is an error.
23509   -*) as_fn_error $? "unrecognized option: \`$1'
23510 Try \`$0 --help' for more information." ;;
23511
23512   *) as_fn_append ac_config_targets " $1"
23513      ac_need_defaults=false ;;
23514
23515   esac
23516   shift
23517 done
23518
23519 ac_configure_extra_args=
23520
23521 if $ac_cs_silent; then
23522   exec 6>/dev/null
23523   ac_configure_extra_args="$ac_configure_extra_args --silent"
23524 fi
23525
23526 _ACEOF
23527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23528 if \$ac_cs_recheck; then
23529   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23530   shift
23531   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23532   CONFIG_SHELL='$SHELL'
23533   export CONFIG_SHELL
23534   exec "\$@"
23535 fi
23536
23537 _ACEOF
23538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23539 exec 5>>config.log
23540 {
23541   echo
23542   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23543 ## Running $as_me. ##
23544 _ASBOX
23545   $as_echo "$ac_log"
23546 } >&5
23547
23548 _ACEOF
23549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23550 _ACEOF
23551
23552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23553
23554 # Handling of arguments.
23555 for ac_config_target in $ac_config_targets
23556 do
23557   case $ac_config_target in
23558     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23559     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23560     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23561     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23562     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23563     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23564     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23565     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23566     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23567     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23568     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23569     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23570     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23571     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23572     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23573     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23574     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23575     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23576     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23577
23578   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23579   esac
23580 done
23581
23582
23583 # If the user did not use the arguments to specify the items to instantiate,
23584 # then the envvar interface is used.  Set only those that are not.
23585 # We use the long form for the default assignment because of an extremely
23586 # bizarre bug on SunOS 4.1.3.
23587 if $ac_need_defaults; then
23588   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23589   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23590   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23591 fi
23592
23593 # Have a temporary directory for convenience.  Make it in the build tree
23594 # simply because there is no reason against having it here, and in addition,
23595 # creating and moving files from /tmp can sometimes cause problems.
23596 # Hook for its removal unless debugging.
23597 # Note that there is a small window in which the directory will not be cleaned:
23598 # after its creation but before its name has been assigned to `$tmp'.
23599 $debug ||
23600 {
23601   tmp= ac_tmp=
23602   trap 'exit_status=$?
23603   : "${ac_tmp:=$tmp}"
23604   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23605 ' 0
23606   trap 'as_fn_exit 1' 1 2 13 15
23607 }
23608 # Create a (secure) tmp directory for tmp files.
23609
23610 {
23611   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23612   test -d "$tmp"
23613 }  ||
23614 {
23615   tmp=./conf$$-$RANDOM
23616   (umask 077 && mkdir "$tmp")
23617 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23618 ac_tmp=$tmp
23619
23620 # Set up the scripts for CONFIG_FILES section.
23621 # No need to generate them if there are no CONFIG_FILES.
23622 # This happens for instance with `./config.status config.h'.
23623 if test -n "$CONFIG_FILES"; then
23624
23625
23626 ac_cr=`echo X | tr X '\015'`
23627 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23628 # But we know of no other shell where ac_cr would be empty at this
23629 # point, so we can use a bashism as a fallback.
23630 if test "x$ac_cr" = x; then
23631   eval ac_cr=\$\'\\r\'
23632 fi
23633 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23634 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23635   ac_cs_awk_cr='\\r'
23636 else
23637   ac_cs_awk_cr=$ac_cr
23638 fi
23639
23640 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23641 _ACEOF
23642
23643
23644 {
23645   echo "cat >conf$$subs.awk <<_ACEOF" &&
23646   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23647   echo "_ACEOF"
23648 } >conf$$subs.sh ||
23649   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23650 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23651 ac_delim='%!_!# '
23652 for ac_last_try in false false false false false :; do
23653   . ./conf$$subs.sh ||
23654     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23655
23656   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23657   if test $ac_delim_n = $ac_delim_num; then
23658     break
23659   elif $ac_last_try; then
23660     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23661   else
23662     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23663   fi
23664 done
23665 rm -f conf$$subs.sh
23666
23667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23668 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23669 _ACEOF
23670 sed -n '
23671 h
23672 s/^/S["/; s/!.*/"]=/
23673 p
23674 g
23675 s/^[^!]*!//
23676 :repl
23677 t repl
23678 s/'"$ac_delim"'$//
23679 t delim
23680 :nl
23681 h
23682 s/\(.\{148\}\)..*/\1/
23683 t more1
23684 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23685 p
23686 n
23687 b repl
23688 :more1
23689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23690 p
23691 g
23692 s/.\{148\}//
23693 t nl
23694 :delim
23695 h
23696 s/\(.\{148\}\)..*/\1/
23697 t more2
23698 s/["\\]/\\&/g; s/^/"/; s/$/"/
23699 p
23700 b
23701 :more2
23702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23703 p
23704 g
23705 s/.\{148\}//
23706 t delim
23707 ' <conf$$subs.awk | sed '
23708 /^[^""]/{
23709   N
23710   s/\n//
23711 }
23712 ' >>$CONFIG_STATUS || ac_write_fail=1
23713 rm -f conf$$subs.awk
23714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23715 _ACAWK
23716 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23717   for (key in S) S_is_set[key] = 1
23718   FS = "\a"
23719
23720 }
23721 {
23722   line = $ 0
23723   nfields = split(line, field, "@")
23724   substed = 0
23725   len = length(field[1])
23726   for (i = 2; i < nfields; i++) {
23727     key = field[i]
23728     keylen = length(key)
23729     if (S_is_set[key]) {
23730       value = S[key]
23731       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23732       len += length(value) + length(field[++i])
23733       substed = 1
23734     } else
23735       len += 1 + keylen
23736   }
23737
23738   print line
23739 }
23740
23741 _ACAWK
23742 _ACEOF
23743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23744 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23745   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23746 else
23747   cat
23748 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23749   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23750 _ACEOF
23751
23752 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23753 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23754 # trailing colons and then remove the whole line if VPATH becomes empty
23755 # (actually we leave an empty line to preserve line numbers).
23756 if test "x$srcdir" = x.; then
23757   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23758 h
23759 s///
23760 s/^/:/
23761 s/[      ]*$/:/
23762 s/:\$(srcdir):/:/g
23763 s/:\${srcdir}:/:/g
23764 s/:@srcdir@:/:/g
23765 s/^:*//
23766 s/:*$//
23767 x
23768 s/\(=[   ]*\).*/\1/
23769 G
23770 s/\n//
23771 s/^[^=]*=[       ]*$//
23772 }'
23773 fi
23774
23775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23776 fi # test -n "$CONFIG_FILES"
23777
23778 # Set up the scripts for CONFIG_HEADERS section.
23779 # No need to generate them if there are no CONFIG_HEADERS.
23780 # This happens for instance with `./config.status Makefile'.
23781 if test -n "$CONFIG_HEADERS"; then
23782 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23783 BEGIN {
23784 _ACEOF
23785
23786 # Transform confdefs.h into an awk script `defines.awk', embedded as
23787 # here-document in config.status, that substitutes the proper values into
23788 # config.h.in to produce config.h.
23789
23790 # Create a delimiter string that does not exist in confdefs.h, to ease
23791 # handling of long lines.
23792 ac_delim='%!_!# '
23793 for ac_last_try in false false :; do
23794   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23795   if test -z "$ac_tt"; then
23796     break
23797   elif $ac_last_try; then
23798     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23799   else
23800     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23801   fi
23802 done
23803
23804 # For the awk script, D is an array of macro values keyed by name,
23805 # likewise P contains macro parameters if any.  Preserve backslash
23806 # newline sequences.
23807
23808 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23809 sed -n '
23810 s/.\{148\}/&'"$ac_delim"'/g
23811 t rset
23812 :rset
23813 s/^[     ]*#[    ]*define[       ][      ]*/ /
23814 t def
23815 d
23816 :def
23817 s/\\$//
23818 t bsnl
23819 s/["\\]/\\&/g
23820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23821 D["\1"]=" \3"/p
23822 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23823 d
23824 :bsnl
23825 s/["\\]/\\&/g
23826 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23827 D["\1"]=" \3\\\\\\n"\\/p
23828 t cont
23829 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23830 t cont
23831 d
23832 :cont
23833 n
23834 s/.\{148\}/&'"$ac_delim"'/g
23835 t clear
23836 :clear
23837 s/\\$//
23838 t bsnlc
23839 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23840 d
23841 :bsnlc
23842 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23843 b cont
23844 ' <confdefs.h | sed '
23845 s/'"$ac_delim"'/"\\\
23846 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23847
23848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23849   for (key in D) D_is_set[key] = 1
23850   FS = "\a"
23851 }
23852 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23853   line = \$ 0
23854   split(line, arg, " ")
23855   if (arg[1] == "#") {
23856     defundef = arg[2]
23857     mac1 = arg[3]
23858   } else {
23859     defundef = substr(arg[1], 2)
23860     mac1 = arg[2]
23861   }
23862   split(mac1, mac2, "(") #)
23863   macro = mac2[1]
23864   prefix = substr(line, 1, index(line, defundef) - 1)
23865   if (D_is_set[macro]) {
23866     # Preserve the white space surrounding the "#".
23867     print prefix "define", macro P[macro] D[macro]
23868     next
23869   } else {
23870     # Replace #undef with comments.  This is necessary, for example,
23871     # in the case of _POSIX_SOURCE, which is predefined and required
23872     # on some systems where configure will not decide to define it.
23873     if (defundef == "undef") {
23874       print "/*", prefix defundef, macro, "*/"
23875       next
23876     }
23877   }
23878 }
23879 { print }
23880 _ACAWK
23881 _ACEOF
23882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23883   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23884 fi # test -n "$CONFIG_HEADERS"
23885
23886
23887 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23888 shift
23889 for ac_tag
23890 do
23891   case $ac_tag in
23892   :[FHLC]) ac_mode=$ac_tag; continue;;
23893   esac
23894   case $ac_mode$ac_tag in
23895   :[FHL]*:*);;
23896   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23897   :[FH]-) ac_tag=-:-;;
23898   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23899   esac
23900   ac_save_IFS=$IFS
23901   IFS=:
23902   set x $ac_tag
23903   IFS=$ac_save_IFS
23904   shift
23905   ac_file=$1
23906   shift
23907
23908   case $ac_mode in
23909   :L) ac_source=$1;;
23910   :[FH])
23911     ac_file_inputs=
23912     for ac_f
23913     do
23914       case $ac_f in
23915       -) ac_f="$ac_tmp/stdin";;
23916       *) # Look for the file first in the build tree, then in the source tree
23917          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23918          # because $ac_f cannot contain `:'.
23919          test -f "$ac_f" ||
23920            case $ac_f in
23921            [\\/$]*) false;;
23922            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23923            esac ||
23924            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23925       esac
23926       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23927       as_fn_append ac_file_inputs " '$ac_f'"
23928     done
23929
23930     # Let's still pretend it is `configure' which instantiates (i.e., don't
23931     # use $as_me), people would be surprised to read:
23932     #    /* config.h.  Generated by config.status.  */
23933     configure_input='Generated from '`
23934           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23935         `' by configure.'
23936     if test x"$ac_file" != x-; then
23937       configure_input="$ac_file.  $configure_input"
23938       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23939 $as_echo "$as_me: creating $ac_file" >&6;}
23940     fi
23941     # Neutralize special characters interpreted by sed in replacement strings.
23942     case $configure_input in #(
23943     *\&* | *\|* | *\\* )
23944        ac_sed_conf_input=`$as_echo "$configure_input" |
23945        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23946     *) ac_sed_conf_input=$configure_input;;
23947     esac
23948
23949     case $ac_tag in
23950     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23951       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23952     esac
23953     ;;
23954   esac
23955
23956   ac_dir=`$as_dirname -- "$ac_file" ||
23957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23958          X"$ac_file" : 'X\(//\)[^/]' \| \
23959          X"$ac_file" : 'X\(//\)$' \| \
23960          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23961 $as_echo X"$ac_file" |
23962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23963             s//\1/
23964             q
23965           }
23966           /^X\(\/\/\)[^/].*/{
23967             s//\1/
23968             q
23969           }
23970           /^X\(\/\/\)$/{
23971             s//\1/
23972             q
23973           }
23974           /^X\(\/\).*/{
23975             s//\1/
23976             q
23977           }
23978           s/.*/./; q'`
23979   as_dir="$ac_dir"; as_fn_mkdir_p
23980   ac_builddir=.
23981
23982 case "$ac_dir" in
23983 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23984 *)
23985   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23986   # A ".." for each directory in $ac_dir_suffix.
23987   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23988   case $ac_top_builddir_sub in
23989   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23990   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23991   esac ;;
23992 esac
23993 ac_abs_top_builddir=$ac_pwd
23994 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23995 # for backward compatibility:
23996 ac_top_builddir=$ac_top_build_prefix
23997
23998 case $srcdir in
23999   .)  # We are building in place.
24000     ac_srcdir=.
24001     ac_top_srcdir=$ac_top_builddir_sub
24002     ac_abs_top_srcdir=$ac_pwd ;;
24003   [\\/]* | ?:[\\/]* )  # Absolute name.
24004     ac_srcdir=$srcdir$ac_dir_suffix;
24005     ac_top_srcdir=$srcdir
24006     ac_abs_top_srcdir=$srcdir ;;
24007   *) # Relative name.
24008     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24009     ac_top_srcdir=$ac_top_build_prefix$srcdir
24010     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24011 esac
24012 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24013
24014
24015   case $ac_mode in
24016   :F)
24017   #
24018   # CONFIG_FILE
24019   #
24020
24021 _ACEOF
24022
24023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24024 # If the template does not know about datarootdir, expand it.
24025 # FIXME: This hack should be removed a few years after 2.60.
24026 ac_datarootdir_hack=; ac_datarootdir_seen=
24027 ac_sed_dataroot='
24028 /datarootdir/ {
24029   p
24030   q
24031 }
24032 /@datadir@/p
24033 /@docdir@/p
24034 /@infodir@/p
24035 /@localedir@/p
24036 /@mandir@/p'
24037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24038 *datarootdir*) ac_datarootdir_seen=yes;;
24039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24040   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24041 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24042 _ACEOF
24043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24044   ac_datarootdir_hack='
24045   s&@datadir@&$datadir&g
24046   s&@docdir@&$docdir&g
24047   s&@infodir@&$infodir&g
24048   s&@localedir@&$localedir&g
24049   s&@mandir@&$mandir&g
24050   s&\\\${datarootdir}&$datarootdir&g' ;;
24051 esac
24052 _ACEOF
24053
24054 # Neutralize VPATH when `$srcdir' = `.'.
24055 # Shell code in configure.ac might set extrasub.
24056 # FIXME: do we really want to maintain this feature?
24057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24058 ac_sed_extra="$ac_vpsub
24059 $extrasub
24060 _ACEOF
24061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24062 :t
24063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24064 s|@configure_input@|$ac_sed_conf_input|;t t
24065 s&@top_builddir@&$ac_top_builddir_sub&;t t
24066 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24067 s&@srcdir@&$ac_srcdir&;t t
24068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24069 s&@top_srcdir@&$ac_top_srcdir&;t t
24070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24071 s&@builddir@&$ac_builddir&;t t
24072 s&@abs_builddir@&$ac_abs_builddir&;t t
24073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24074 $ac_datarootdir_hack
24075 "
24076 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24077   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24078
24079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24080   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24081   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
24082       "$ac_tmp/out"`; test -z "$ac_out"; } &&
24083   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24084 which seems to be undefined.  Please make sure it is defined" >&5
24085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24086 which seems to be undefined.  Please make sure it is defined" >&2;}
24087
24088   rm -f "$ac_tmp/stdin"
24089   case $ac_file in
24090   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24091   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24092   esac \
24093   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24094  ;;
24095   :H)
24096   #
24097   # CONFIG_HEADER
24098   #
24099   if test x"$ac_file" != x-; then
24100     {
24101       $as_echo "/* $configure_input  */" \
24102       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24103     } >"$ac_tmp/config.h" \
24104       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24105     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24106       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24107 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24108     else
24109       rm -f "$ac_file"
24110       mv "$ac_tmp/config.h" "$ac_file" \
24111         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24112     fi
24113   else
24114     $as_echo "/* $configure_input  */" \
24115       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24116       || as_fn_error $? "could not create -" "$LINENO" 5
24117   fi
24118  ;;
24119
24120   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24121 $as_echo "$as_me: executing $ac_file commands" >&6;}
24122  ;;
24123   esac
24124
24125
24126   case $ac_file$ac_mode in
24127     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24128     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24129     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
24130     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24131
24132   esac
24133 done # for ac_tag
24134
24135
24136 as_fn_exit 0
24137 _ACEOF
24138 ac_clean_files=$ac_clean_files_save
24139
24140 test $ac_write_fail = 0 ||
24141   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24142
24143
24144 # configure is writing to config.log, and then calls config.status.
24145 # config.status does its own redirection, appending to config.log.
24146 # Unfortunately, on DOS this fails, as config.log is still kept open
24147 # by configure, so config.status won't be able to write to it; its
24148 # output is simply discarded.  So we exec the FD to /dev/null,
24149 # effectively closing config.log, so it can be properly (re)opened and
24150 # appended to by config.status.  When coming back to configure, we
24151 # need to make the FD available again.
24152 if test "$no_create" != yes; then
24153   ac_cs_success=:
24154   ac_config_status_args=
24155   test "$silent" = yes &&
24156     ac_config_status_args="$ac_config_status_args --quiet"
24157   exec 5>/dev/null
24158   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24159   exec 5>>config.log
24160   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24161   # would make configure fail if this is the last instruction.
24162   $ac_cs_success || as_fn_exit 1
24163 fi
24164
24165 #
24166 # CONFIG_SUBDIRS section.
24167 #
24168 if test "$no_recursion" != yes; then
24169
24170   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24171   # so they do not pile up.
24172   ac_sub_configure_args=
24173   ac_prev=
24174   eval "set x $ac_configure_args"
24175   shift
24176   for ac_arg
24177   do
24178     if test -n "$ac_prev"; then
24179       ac_prev=
24180       continue
24181     fi
24182     case $ac_arg in
24183     -cache-file | --cache-file | --cache-fil | --cache-fi \
24184     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24185       ac_prev=cache_file ;;
24186     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24187     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24188     | --c=*)
24189       ;;
24190     --config-cache | -C)
24191       ;;
24192     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24193       ac_prev=srcdir ;;
24194     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24195       ;;
24196     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24197       ac_prev=prefix ;;
24198     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24199       ;;
24200     --disable-option-checking)
24201       ;;
24202     *)
24203       case $ac_arg in
24204       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24205       esac
24206       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24207     esac
24208   done
24209
24210   # Always prepend --prefix to ensure using the same prefix
24211   # in subdir configurations.
24212   ac_arg="--prefix=$prefix"
24213   case $ac_arg in
24214   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24215   esac
24216   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24217
24218   # Pass --silent
24219   if test "$silent" = yes; then
24220     ac_sub_configure_args="--silent $ac_sub_configure_args"
24221   fi
24222
24223   # Always prepend --disable-option-checking to silence warnings, since
24224   # different subdirs can have different --enable and --with options.
24225   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24226
24227   ac_popdir=`pwd`
24228   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24229
24230     # Do not complain, so a configure script can configure whichever
24231     # parts of a large source tree are present.
24232     test -d "$srcdir/$ac_dir" || continue
24233
24234     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24235     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24236     $as_echo "$ac_msg" >&6
24237     as_dir="$ac_dir"; as_fn_mkdir_p
24238     ac_builddir=.
24239
24240 case "$ac_dir" in
24241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24242 *)
24243   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24244   # A ".." for each directory in $ac_dir_suffix.
24245   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24246   case $ac_top_builddir_sub in
24247   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24248   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24249   esac ;;
24250 esac
24251 ac_abs_top_builddir=$ac_pwd
24252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24253 # for backward compatibility:
24254 ac_top_builddir=$ac_top_build_prefix
24255
24256 case $srcdir in
24257   .)  # We are building in place.
24258     ac_srcdir=.
24259     ac_top_srcdir=$ac_top_builddir_sub
24260     ac_abs_top_srcdir=$ac_pwd ;;
24261   [\\/]* | ?:[\\/]* )  # Absolute name.
24262     ac_srcdir=$srcdir$ac_dir_suffix;
24263     ac_top_srcdir=$srcdir
24264     ac_abs_top_srcdir=$srcdir ;;
24265   *) # Relative name.
24266     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24267     ac_top_srcdir=$ac_top_build_prefix$srcdir
24268     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24269 esac
24270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24271
24272
24273     cd "$ac_dir"
24274
24275     # Check for guested configure; otherwise get Cygnus style configure.
24276     if test -f "$ac_srcdir/configure.gnu"; then
24277       ac_sub_configure=$ac_srcdir/configure.gnu
24278     elif test -f "$ac_srcdir/configure"; then
24279       ac_sub_configure=$ac_srcdir/configure
24280     elif test -f "$ac_srcdir/configure.in"; then
24281       # This should be Cygnus configure.
24282       ac_sub_configure=$ac_aux_dir/configure
24283     else
24284       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24285 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24286       ac_sub_configure=
24287     fi
24288
24289     # The recursion is here.
24290     if test -n "$ac_sub_configure"; then
24291       # Make the cache file name correct relative to the subdirectory.
24292       case $cache_file in
24293       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24294       *) # Relative name.
24295         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24296       esac
24297
24298       { $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
24299 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24300       # The eval makes quoting arguments work.
24301       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24302            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24303         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24304     fi
24305
24306     cd "$ac_popdir"
24307   done
24308 fi
24309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24310   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24311 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24312 fi
24313
24314