Integrated the DKIM signer into serv_smtpclient, but disabled it
[citadel.git] / libcitadel / configure~
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libcitadel #define LIBCITADEL_VERSION_NUMBER 996.
4 #
5 # Report bugs to <http://uncensored.citadel.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187   if (eval "$as_required") 2>/dev/null
188 then :
189   as_have_required=yes
190 else $as_nop
191   as_have_required=no
192 fi
193   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201   IFS=$as_save_IFS
202   case $as_dir in #(((
203     '') as_dir=./ ;;
204     */) ;;
205     *) as_dir=$as_dir/ ;;
206   esac
207   as_found=:
208   case $as_dir in #(
209          /*)
210            for as_base in sh bash ksh sh5; do
211              # Try only shells that exist, to save several forks.
212              as_shell=$as_dir$as_base
213              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216   CONFIG_SHELL=$as_shell as_have_required=yes
217                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219   break 2
220 fi
221 fi
222            done;;
223        esac
224   as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234   CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239       if test "x$CONFIG_SHELL" != x
240 then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno
263 then :
264   printf "%s\n" "$0: This script requires a shell more modern than all"
265   printf "%s\n" "$0: the shells that I found on your system."
266   if test ${ZSH_VERSION+y} ; then
267     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269   else
270     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: http://uncensored.citadel.org about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275   fi
276   exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294   { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304   return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312   set +e
313   as_fn_set_status $1
314   exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321   return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331   case $as_dir in #(
332   -*) as_dir=./$as_dir;;
333   esac
334   test -d "$as_dir" || eval $as_mkdir_p || {
335     as_dirs=
336     while :; do
337       case $as_dir in #(
338       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339       *) as_qdir=$as_dir;;
340       esac
341       as_dirs="'$as_qdir' $as_dirs"
342       as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344          X"$as_dir" : 'X\(//\)[^/]' \| \
345          X"$as_dir" : 'X\(//\)$' \| \
346          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349             s//\1/
350             q
351           }
352           /^X\(\/\/\)[^/].*/{
353             s//\1/
354             q
355           }
356           /^X\(\/\/\)$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\).*/{
361             s//\1/
362             q
363           }
364           s/.*/./; q'`
365       test -d "$as_dir" && break
366     done
367     test -z "$as_dirs" || eval "mkdir $as_dirs"
368   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378   test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388   eval 'as_fn_append ()
389   {
390     eval $1+=\$2
391   }'
392 else $as_nop
393   as_fn_append ()
394   {
395     eval $1=\$$1\$2
396   }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406   eval 'as_fn_arith ()
407   {
408     as_val=$(( $* ))
409   }'
410 else $as_nop
411   as_fn_arith ()
412   {
413     as_val=`expr "$@" || test $? -eq 1`
414   }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422   return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433   as_status=$1; test $as_status -eq 0 && as_status=1
434   if test "$4"; then
435     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437   fi
438   printf "%s\n" "$as_me: error: $2" >&2
439   as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
444   as_expr=expr
445 else
446   as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450   as_basename=basename
451 else
452   as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456   as_dirname=dirname
457 else
458   as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463          X"$0" : 'X\(//\)$' \| \
464          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466     sed '/^.*\/\([^/][^/]*\)\/*$/{
467             s//\1/
468             q
469           }
470           /^X\/\(\/\/\)$/{
471             s//\1/
472             q
473           }
474           /^X\/\(\/\).*/{
475             s//\1/
476             q
477           }
478           s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488   as_lineno_1=$LINENO as_lineno_1a=$LINENO
489   as_lineno_2=$LINENO as_lineno_2a=$LINENO
490   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
493   sed -n '
494     p
495     /[$]LINENO/=
496   ' <$as_myself |
497     sed '
498       s/[$]LINENO.*/&-/
499       t lineno
500       b
501       :lineno
502       N
503       :loop
504       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505       t loop
506       s/-\n.*//
507     ' >$as_me.lineno &&
508   chmod +x "$as_me.lineno" ||
509     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512   # already done that, so ensure we don't try to do so again and fall
513   # in an infinite loop.  This has already happened in practice.
514   _as_can_reexec=no; export _as_can_reexec
515   # Don't try to exec as it changes $[0], causing all sort of problems
516   # (the dirname of $[0] is not the place where we might find the
517   # original and so on.  Autoconf is especially sensitive to this).
518   . "./$as_me.lineno"
519   # Exit status is that of the last command.
520   exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530   case `echo 'xy\c'` in
531   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
532   xy)  ECHO_C='\c';;
533   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
534        ECHO_T=' ';;
535   esac;;
536 *)
537   ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n.  New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549   rm -f conf$$.dir/conf$$.file
550 else
551   rm -f conf$$.dir
552   mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555   if ln -s conf$$.file conf$$ 2>/dev/null; then
556     as_ln_s='ln -s'
557     # ... but there are two gotchas:
558     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560     # In both cases, we have to default to `cp -pR'.
561     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562       as_ln_s='cp -pR'
563   elif ln conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s=ln
565   else
566     as_ln_s='cp -pR'
567   fi
568 else
569   as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575   as_mkdir_p='mkdir -p "$as_dir"'
576 else
577   test -d ./-p && rmdir ./-p
578   as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591
592 # Check that we are running under the correct shell.
593 SHELL=${CONFIG_SHELL-/bin/sh}
594
595 case X$ECHO in
596 X*--fallback-echo)
597   # Remove one level of quotation (which was required for Make).
598   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
599   ;;
600 esac
601
602 echo=${ECHO-echo}
603 if test "X$1" = X--no-reexec; then
604   # Discard the --no-reexec flag, and continue.
605   shift
606 elif test "X$1" = X--fallback-echo; then
607   # Avoid inline document here, it may be left over
608   :
609 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
610   # Yippee, $echo works!
611   :
612 else
613   # Restart under the correct shell.
614   exec $SHELL "$0" --no-reexec ${1+"$@"}
615 fi
616
617 if test "X$1" = X--fallback-echo; then
618   # used as fallback echo
619   shift
620   cat <<EOF
621 $*
622 EOF
623   exit 0
624 fi
625
626 # The HP-UX ksh and POSIX shell print the target directory to stdout
627 # if CDPATH is set.
628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
629
630 if test -z "$ECHO"; then
631 if test "X${echo_test_string+set}" != Xset; then
632 # find a string as large as possible, as long as the shell can cope with it
633   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
634     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
635     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
636        echo_test_string=`eval $cmd` &&
637        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
638     then
639       break
640     fi
641   done
642 fi
643
644 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
645    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
646    test "X$echo_testing_string" = "X$echo_test_string"; then
647   :
648 else
649   # The Solaris, AIX, and Digital Unix default echo programs unquote
650   # backslashes.  This makes it impossible to quote backslashes using
651   #   echo "$something" | sed 's/\\/\\\\/g'
652   #
653   # So, first we look for a working echo in the user's PATH.
654
655   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
656   for dir in $PATH /usr/ucb; do
657     IFS="$lt_save_ifs"
658     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
659        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
660        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
661        test "X$echo_testing_string" = "X$echo_test_string"; then
662       echo="$dir/echo"
663       break
664     fi
665   done
666   IFS="$lt_save_ifs"
667
668   if test "X$echo" = Xecho; then
669     # We didn't find a better echo, so look for alternatives.
670     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
671        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
672        test "X$echo_testing_string" = "X$echo_test_string"; then
673       # This shell has a builtin print -r that does the trick.
674       echo='print -r'
675     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
676          test "X$CONFIG_SHELL" != X/bin/ksh; then
677       # If we have ksh, try running configure again with it.
678       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
679       export ORIGINAL_CONFIG_SHELL
680       CONFIG_SHELL=/bin/ksh
681       export CONFIG_SHELL
682       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
683     else
684       # Try using printf.
685       echo='printf %s\n'
686       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
687          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
688          test "X$echo_testing_string" = "X$echo_test_string"; then
689         # Cool, printf works
690         :
691       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
692            test "X$echo_testing_string" = 'X\t' &&
693            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
694            test "X$echo_testing_string" = "X$echo_test_string"; then
695         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
696         export CONFIG_SHELL
697         SHELL="$CONFIG_SHELL"
698         export SHELL
699         echo="$CONFIG_SHELL $0 --fallback-echo"
700       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
701            test "X$echo_testing_string" = 'X\t' &&
702            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
703            test "X$echo_testing_string" = "X$echo_test_string"; then
704         echo="$CONFIG_SHELL $0 --fallback-echo"
705       else
706         # maybe with a smaller string...
707         prev=:
708
709         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
710           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
711           then
712             break
713           fi
714           prev="$cmd"
715         done
716
717         if test "$prev" != 'sed 50q "$0"'; then
718           echo_test_string=`eval $prev`
719           export echo_test_string
720           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
721         else
722           # Oops.  We lost completely, so just stick with echo.
723           echo=echo
724         fi
725       fi
726     fi
727   fi
728 fi
729 fi
730
731 # Copy echo and quote the copy suitably for passing to libtool from
732 # the Makefile, instead of quoting the original, which is used later.
733 ECHO=$echo
734 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
735    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
736 fi
737
738
739
740
741 tagnames=${tagnames+${tagnames},}CXX
742
743 tagnames=${tagnames+${tagnames},}F77
744
745 test -n "$DJDIR" || exec 7<&0 </dev/null
746 exec 6>&1
747
748 # Name of the host.
749 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
750 # so uname gets run too.
751 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
752
753 #
754 # Initializations.
755 #
756 ac_default_prefix=/usr/local
757 ac_clean_files=
758 ac_config_libobj_dir=.
759 LIBOBJS=
760 cross_compiling=no
761 subdirs=
762 MFLAGS=
763 MAKEFLAGS=
764
765 # Identity of this package.
766 PACKAGE_NAME='libcitadel'
767 PACKAGE_TARNAME='libcitadel'
768 PACKAGE_VERSION='#define LIBCITADEL_VERSION_NUMBER 996'
769 PACKAGE_STRING='libcitadel #define LIBCITADEL_VERSION_NUMBER 996'
770 PACKAGE_BUGREPORT='http://uncensored.citadel.org'
771 PACKAGE_URL=''
772
773 ac_unique_file="Makefile.in"
774 # Factoring default headers for most tests.
775 ac_includes_default="\
776 #include <stddef.h>
777 #ifdef HAVE_STDIO_H
778 # include <stdio.h>
779 #endif
780 #ifdef HAVE_STDLIB_H
781 # include <stdlib.h>
782 #endif
783 #ifdef HAVE_STRING_H
784 # include <string.h>
785 #endif
786 #ifdef HAVE_INTTYPES_H
787 # include <inttypes.h>
788 #endif
789 #ifdef HAVE_STDINT_H
790 # include <stdint.h>
791 #endif
792 #ifdef HAVE_STRINGS_H
793 # include <strings.h>
794 #endif
795 #ifdef HAVE_SYS_TYPES_H
796 # include <sys/types.h>
797 #endif
798 #ifdef HAVE_SYS_STAT_H
799 # include <sys/stat.h>
800 #endif
801 #ifdef HAVE_UNISTD_H
802 # include <unistd.h>
803 #endif"
804
805 ac_header_c_list=
806 ac_subst_vars='LTLIBOBJS
807 LIBOBJS
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 LIBAGE
812 LIBREVISION
813 LIBCURRENT
814 LIBTOOL
815 ac_ct_F77
816 FFLAGS
817 F77
818 CXXCPP
819 ac_ct_CXX
820 CXXFLAGS
821 CXX
822 STRIP
823 RANLIB
824 AR
825 ECHO
826 LN_S
827 EGREP
828 GREP
829 OBJEXT
830 EXEEXT
831 ac_ct_CC
832 CPPFLAGS
833 LDFLAGS
834 CFLAGS
835 CC
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 runstatedir
864 localstatedir
865 sharedstatedir
866 sysconfdir
867 datadir
868 datarootdir
869 libexecdir
870 sbindir
871 bindir
872 program_transform_name
873 prefix
874 exec_prefix
875 PACKAGE_URL
876 PACKAGE_BUGREPORT
877 PACKAGE_STRING
878 PACKAGE_VERSION
879 PACKAGE_TARNAME
880 PACKAGE_NAME
881 PATH_SEPARATOR
882 SHELL'
883 ac_subst_files=''
884 ac_user_opts='
885 enable_option_checking
886 enable_shared
887 enable_static
888 enable_fast_install
889 with_gnu_ld
890 enable_libtool_lock
891 with_pic
892 with_tags
893 with_with_zlib
894 enable_iconv
895 with_backtrace
896 '
897       ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CXX
906 CXXFLAGS
907 CCC
908 CXXCPP
909 F77
910 FFLAGS'
911
912
913 # Initialize some variables set by options.
914 ac_init_help=
915 ac_init_version=false
916 ac_unrecognized_opts=
917 ac_unrecognized_sep=
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
934
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 runstatedir='${localstatedir}/run'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966   # If the previous option needs an argument, assign it.
967   if test -n "$ac_prev"; then
968     eval $ac_prev=\$ac_option
969     ac_prev=
970     continue
971   fi
972
973   case $ac_option in
974   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975   *=)   ac_optarg= ;;
976   *)    ac_optarg=yes ;;
977   esac
978
979   case $ac_dashdash$ac_option in
980   --)
981     ac_dashdash=yes ;;
982
983   -bindir | --bindir | --bindi | --bind | --bin | --bi)
984     ac_prev=bindir ;;
985   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986     bindir=$ac_optarg ;;
987
988   -build | --build | --buil | --bui | --bu)
989     ac_prev=build_alias ;;
990   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991     build_alias=$ac_optarg ;;
992
993   -cache-file | --cache-file | --cache-fil | --cache-fi \
994   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995     ac_prev=cache_file ;;
996   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998     cache_file=$ac_optarg ;;
999
1000   --config-cache | -C)
1001     cache_file=config.cache ;;
1002
1003   -datadir | --datadir | --datadi | --datad)
1004     ac_prev=datadir ;;
1005   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006     datadir=$ac_optarg ;;
1007
1008   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009   | --dataroo | --dataro | --datar)
1010     ac_prev=datarootdir ;;
1011   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013     datarootdir=$ac_optarg ;;
1014
1015   -disable-* | --disable-*)
1016     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1020     ac_useropt_orig=$ac_useropt
1021     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1022     case $ac_user_opts in
1023       *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027          ac_unrecognized_sep=', ';;
1028     esac
1029     eval enable_$ac_useropt=no ;;
1030
1031   -docdir | --docdir | --docdi | --doc | --do)
1032     ac_prev=docdir ;;
1033   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034     docdir=$ac_optarg ;;
1035
1036   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037     ac_prev=dvidir ;;
1038   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039     dvidir=$ac_optarg ;;
1040
1041   -enable-* | --enable-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059   | --exec | --exe | --ex)
1060     ac_prev=exec_prefix ;;
1061   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063   | --exec=* | --exe=* | --ex=*)
1064     exec_prefix=$ac_optarg ;;
1065
1066   -gas | --gas | --ga | --g)
1067     # Obsolete; use --with-gas.
1068     with_gas=yes ;;
1069
1070   -help | --help | --hel | --he | -h)
1071     ac_init_help=long ;;
1072   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073     ac_init_help=recursive ;;
1074   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075     ac_init_help=short ;;
1076
1077   -host | --host | --hos | --ho)
1078     ac_prev=host_alias ;;
1079   -host=* | --host=* | --hos=* | --ho=*)
1080     host_alias=$ac_optarg ;;
1081
1082   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083     ac_prev=htmldir ;;
1084   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085   | --ht=*)
1086     htmldir=$ac_optarg ;;
1087
1088   -includedir | --includedir | --includedi | --included | --include \
1089   | --includ | --inclu | --incl | --inc)
1090     ac_prev=includedir ;;
1091   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092   | --includ=* | --inclu=* | --incl=* | --inc=*)
1093     includedir=$ac_optarg ;;
1094
1095   -infodir | --infodir | --infodi | --infod | --info | --inf)
1096     ac_prev=infodir ;;
1097   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098     infodir=$ac_optarg ;;
1099
1100   -libdir | --libdir | --libdi | --libd)
1101     ac_prev=libdir ;;
1102   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103     libdir=$ac_optarg ;;
1104
1105   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106   | --libexe | --libex | --libe)
1107     ac_prev=libexecdir ;;
1108   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109   | --libexe=* | --libex=* | --libe=*)
1110     libexecdir=$ac_optarg ;;
1111
1112   -localedir | --localedir | --localedi | --localed | --locale)
1113     ac_prev=localedir ;;
1114   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115     localedir=$ac_optarg ;;
1116
1117   -localstatedir | --localstatedir | --localstatedi | --localstated \
1118   | --localstate | --localstat | --localsta | --localst | --locals)
1119     ac_prev=localstatedir ;;
1120   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122     localstatedir=$ac_optarg ;;
1123
1124   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125     ac_prev=mandir ;;
1126   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127     mandir=$ac_optarg ;;
1128
1129   -nfp | --nfp | --nf)
1130     # Obsolete; use --without-fp.
1131     with_fp=no ;;
1132
1133   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134   | --no-cr | --no-c | -n)
1135     no_create=yes ;;
1136
1137   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139     no_recursion=yes ;;
1140
1141   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143   | --oldin | --oldi | --old | --ol | --o)
1144     ac_prev=oldincludedir ;;
1145   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148     oldincludedir=$ac_optarg ;;
1149
1150   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151     ac_prev=prefix ;;
1152   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153     prefix=$ac_optarg ;;
1154
1155   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156   | --program-pre | --program-pr | --program-p)
1157     ac_prev=program_prefix ;;
1158   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160     program_prefix=$ac_optarg ;;
1161
1162   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163   | --program-suf | --program-su | --program-s)
1164     ac_prev=program_suffix ;;
1165   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167     program_suffix=$ac_optarg ;;
1168
1169   -program-transform-name | --program-transform-name \
1170   | --program-transform-nam | --program-transform-na \
1171   | --program-transform-n | --program-transform- \
1172   | --program-transform | --program-transfor \
1173   | --program-transfo | --program-transf \
1174   | --program-trans | --program-tran \
1175   | --progr-tra | --program-tr | --program-t)
1176     ac_prev=program_transform_name ;;
1177   -program-transform-name=* | --program-transform-name=* \
1178   | --program-transform-nam=* | --program-transform-na=* \
1179   | --program-transform-n=* | --program-transform-=* \
1180   | --program-transform=* | --program-transfor=* \
1181   | --program-transfo=* | --program-transf=* \
1182   | --program-trans=* | --program-tran=* \
1183   | --progr-tra=* | --program-tr=* | --program-t=*)
1184     program_transform_name=$ac_optarg ;;
1185
1186   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187     ac_prev=pdfdir ;;
1188   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189     pdfdir=$ac_optarg ;;
1190
1191   -psdir | --psdir | --psdi | --psd | --ps)
1192     ac_prev=psdir ;;
1193   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194     psdir=$ac_optarg ;;
1195
1196   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197   | -silent | --silent | --silen | --sile | --sil)
1198     silent=yes ;;
1199
1200   -runstatedir | --runstatedir | --runstatedi | --runstated \
1201   | --runstate | --runstat | --runsta | --runst | --runs \
1202   | --run | --ru | --r)
1203     ac_prev=runstatedir ;;
1204   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1205   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1206   | --run=* | --ru=* | --r=*)
1207     runstatedir=$ac_optarg ;;
1208
1209   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210     ac_prev=sbindir ;;
1211   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212   | --sbi=* | --sb=*)
1213     sbindir=$ac_optarg ;;
1214
1215   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217   | --sharedst | --shareds | --shared | --share | --shar \
1218   | --sha | --sh)
1219     ac_prev=sharedstatedir ;;
1220   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223   | --sha=* | --sh=*)
1224     sharedstatedir=$ac_optarg ;;
1225
1226   -site | --site | --sit)
1227     ac_prev=site ;;
1228   -site=* | --site=* | --sit=*)
1229     site=$ac_optarg ;;
1230
1231   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232     ac_prev=srcdir ;;
1233   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234     srcdir=$ac_optarg ;;
1235
1236   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237   | --syscon | --sysco | --sysc | --sys | --sy)
1238     ac_prev=sysconfdir ;;
1239   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241     sysconfdir=$ac_optarg ;;
1242
1243   -target | --target | --targe | --targ | --tar | --ta | --t)
1244     ac_prev=target_alias ;;
1245   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246     target_alias=$ac_optarg ;;
1247
1248   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249     verbose=yes ;;
1250
1251   -version | --version | --versio | --versi | --vers | -V)
1252     ac_init_version=: ;;
1253
1254   -with-* | --with-*)
1255     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258       as_fn_error $? "invalid package name: \`$ac_useropt'"
1259     ac_useropt_orig=$ac_useropt
1260     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1261     case $ac_user_opts in
1262       *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266          ac_unrecognized_sep=', ';;
1267     esac
1268     eval with_$ac_useropt=\$ac_optarg ;;
1269
1270   -without-* | --without-*)
1271     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274       as_fn_error $? "invalid package name: \`$ac_useropt'"
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval with_$ac_useropt=no ;;
1285
1286   --x)
1287     # Obsolete; use --with-x.
1288     with_x=yes ;;
1289
1290   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291   | --x-incl | --x-inc | --x-in | --x-i)
1292     ac_prev=x_includes ;;
1293   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295     x_includes=$ac_optarg ;;
1296
1297   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299     ac_prev=x_libraries ;;
1300   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302     x_libraries=$ac_optarg ;;
1303
1304   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1306     ;;
1307
1308   *=*)
1309     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310     # Reject names that are not valid shell variable names.
1311     case $ac_envvar in #(
1312       '' | [0-9]* | *[!_$as_cr_alnum]* )
1313       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314     esac
1315     eval $ac_envvar=\$ac_optarg
1316     export $ac_envvar ;;
1317
1318   *)
1319     # FIXME: should be removed in autoconf 3.0.
1320     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1321     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1323     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324     ;;
1325
1326   esac
1327 done
1328
1329 if test -n "$ac_prev"; then
1330   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331   as_fn_error $? "missing argument to $ac_option"
1332 fi
1333
1334 if test -n "$ac_unrecognized_opts"; then
1335   case $enable_option_checking in
1336     no) ;;
1337     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339   esac
1340 fi
1341
1342 # Check all directory arguments for consistency.
1343 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344                 datadir sysconfdir sharedstatedir localstatedir includedir \
1345                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346                 libdir localedir mandir runstatedir
1347 do
1348   eval ac_val=\$$ac_var
1349   # Remove trailing slashes.
1350   case $ac_val in
1351     */ )
1352       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353       eval $ac_var=\$ac_val;;
1354   esac
1355   # Be sure to have absolute directory names.
1356   case $ac_val in
1357     [\\/$]* | ?:[\\/]* )  continue;;
1358     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359   esac
1360   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372   if test "x$build_alias" = x; then
1373     cross_compiling=maybe
1374   elif test "x$build_alias" != "x$host_alias"; then
1375     cross_compiling=yes
1376   fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388   as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390   as_fn_error $? "pwd does not report name of working directory"
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395   ac_srcdir_defaulted=yes
1396   # Try the directory containing this script, then the parent directory.
1397   ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399          X"$as_myself" : 'X\(//\)[^/]' \| \
1400          X"$as_myself" : 'X\(//\)$' \| \
1401          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 printf "%s\n" X"$as_myself" |
1403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)[^/].*/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\).*/{
1416             s//\1/
1417             q
1418           }
1419           s/.*/./; q'`
1420   srcdir=$ac_confdir
1421   if test ! -r "$srcdir/$ac_unique_file"; then
1422     srcdir=..
1423   fi
1424 else
1425   ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434         pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437   srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_env_${ac_var}_value=\$${ac_var}
1448   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456   # Omit some internal or obsolete options to make the list less imposing.
1457   # This message is too long to be a string in the A/UX 3.1 sh.
1458   cat <<_ACEOF
1459 \`configure' configures libcitadel #define LIBCITADEL_VERSION_NUMBER 996 to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469   -h, --help              display this help and exit
1470       --help=short        display options specific to this package
1471       --help=recursive    display the short help of all the included packages
1472   -V, --version           display version information and exit
1473   -q, --quiet, --silent   do not print \`checking ...' messages
1474       --cache-file=FILE   cache test results in FILE [disabled]
1475   -C, --config-cache      alias for \`--cache-file=config.cache'
1476   -n, --no-create         do not create output files
1477       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480   --prefix=PREFIX         install architecture-independent files in PREFIX
1481                           [$ac_default_prefix]
1482   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                           [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493   --bindir=DIR            user executables [EPREFIX/bin]
1494   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1495   --libexecdir=DIR        program executables [EPREFIX/libexec]
1496   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1497   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1498   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1499   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1500   --libdir=DIR            object code libraries [EPREFIX/lib]
1501   --includedir=DIR        C header files [PREFIX/include]
1502   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1503   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1504   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1505   --infodir=DIR           info documentation [DATAROOTDIR/info]
1506   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1507   --mandir=DIR            man documentation [DATAROOTDIR/man]
1508   --docdir=DIR            documentation root [DATAROOTDIR/doc/libcitadel]
1509   --htmldir=DIR           html documentation [DOCDIR]
1510   --dvidir=DIR            dvi documentation [DOCDIR]
1511   --pdfdir=DIR            pdf documentation [DOCDIR]
1512   --psdir=DIR             ps documentation [DOCDIR]
1513 _ACEOF
1514
1515   cat <<\_ACEOF
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524   case $ac_init_help in
1525      short | recursive ) echo "Configuration of libcitadel #define LIBCITADEL_VERSION_NUMBER 996:";;
1526    esac
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-option-checking  ignore unrecognized --enable/--with options
1531   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533   --enable-shared[=PKGS]  build shared libraries [default=yes]
1534   --enable-static[=PKGS]  build static libraries [default=yes]
1535   --enable-fast-install[=PKGS]
1536                           optimize for fast installation [default=yes]
1537   --disable-libtool-lock  avoid locking (might break parallel builds)
1538   --disable-iconv         do not use iconv charset conversion
1539
1540 Optional Packages:
1541   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1542   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1543   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544   --with-pic              try to use only PIC/non-PIC objects [default=use
1545                           both]
1546   --with-tags[=TAGS]      include additional configurations [automatic]
1547   --with-zlib             use zlib compression if present
1548   --with-backtrace          enable backtrace dumps in the syslog
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CXX         C++ compiler command
1559   CXXFLAGS    C++ compiler flags
1560   CXXCPP      C++ preprocessor
1561   F77         Fortran 77 compiler command
1562   FFLAGS      Fortran 77 compiler flags
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to <http://uncensored.citadel.org>.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573   # If there are subdirs, report their specific --help.
1574   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575     test -d "$ac_dir" ||
1576       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577       continue
1578     ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1584   # A ".." for each directory in $ac_dir_suffix.
1585   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586   case $ac_top_builddir_sub in
1587   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589   esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597   .)  # We are building in place.
1598     ac_srcdir=.
1599     ac_top_srcdir=$ac_top_builddir_sub
1600     ac_abs_top_srcdir=$ac_pwd ;;
1601   [\\/]* | ?:[\\/]* )  # Absolute name.
1602     ac_srcdir=$srcdir$ac_dir_suffix;
1603     ac_top_srcdir=$srcdir
1604     ac_abs_top_srcdir=$srcdir ;;
1605   *) # Relative name.
1606     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607     ac_top_srcdir=$ac_top_build_prefix$srcdir
1608     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612     cd "$ac_dir" || { ac_status=$?; continue; }
1613     # Check for configure.gnu first; this name is used for a wrapper for
1614     # Metaconfig's "Configure" on case-insensitive file systems.
1615     if test -f "$ac_srcdir/configure.gnu"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618     elif test -f "$ac_srcdir/configure"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure" --help=recursive
1621     else
1622       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623     fi || ac_status=$?
1624     cd "$ac_pwd" || { ac_status=$?; break; }
1625   done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630   cat <<\_ACEOF
1631 libcitadel configure #define LIBCITADEL_VERSION_NUMBER 996
1632 generated by GNU Autoconf 2.71
1633
1634 Copyright (C) 2021 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637 _ACEOF
1638   exit
1639 fi
1640
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1644
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   rm -f conftest.$ac_objext conftest.beam
1652   if { { ac_try="$ac_compile"
1653 case "(($ac_try" in
1654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655   *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 printf "%s\n" "$ac_try_echo"; } >&5
1659   (eval "$ac_compile") 2>conftest.err
1660   ac_status=$?
1661   if test -s conftest.err; then
1662     grep -v '^ *+' conftest.err >conftest.er1
1663     cat conftest.er1 >&5
1664     mv -f conftest.er1 conftest.err
1665   fi
1666   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667   test $ac_status = 0; } && {
1668          test -z "$ac_c_werror_flag" ||
1669          test ! -s conftest.err
1670        } && test -s conftest.$ac_objext
1671 then :
1672   ac_retval=0
1673 else $as_nop
1674   printf "%s\n" "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677         ac_retval=1
1678 fi
1679   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680   as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_link ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1691   if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694   *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698   (eval "$ac_link") 2>conftest.err
1699   ac_status=$?
1700   if test -s conftest.err; then
1701     grep -v '^ *+' conftest.err >conftest.er1
1702     cat conftest.er1 >&5
1703     mv -f conftest.er1 conftest.err
1704   fi
1705   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; } && {
1707          test -z "$ac_c_werror_flag" ||
1708          test ! -s conftest.err
1709        } && test -s conftest$ac_exeext && {
1710          test "$cross_compiling" = yes ||
1711          test -x conftest$ac_exeext
1712        }
1713 then :
1714   ac_retval=0
1715 else $as_nop
1716   printf "%s\n" "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719         ac_retval=1
1720 fi
1721   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723   # interfere with the next link command; also delete a directory that is
1724   # left behind by Apple's compiler.  We do this before executing the actions.
1725   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727   as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_link
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742   printf %s "(cached) " >&6
1743 else $as_nop
1744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"
1750 then :
1751   eval "$3=yes"
1752 else $as_nop
1753   eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_check_func LINENO FUNC VAR
1765 # ----------------------------------
1766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767 ac_fn_c_check_func ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 printf %s "checking for $2... " >&6; }
1772 if eval test \${$3+y}
1773 then :
1774   printf %s "(cached) " >&6
1775 else $as_nop
1776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1780 #define $2 innocuous_$2
1781
1782 /* System header to define __stub macros and hopefully few prototypes,
1783    which can conflict with char $2 (); below.  */
1784
1785 #include <limits.h>
1786 #undef $2
1787
1788 /* Override any GCC internal prototype to avoid an error.
1789    Use char because int might match the return type of a GCC
1790    builtin and then its argument prototype would still apply.  */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796     to always fail with ENOSYS.  Some functions are actually named
1797     something starting with __ and the normal name is an alias.  */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1801
1802 int
1803 main (void)
1804 {
1805 return $2 ();
1806   ;
1807   return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"
1811 then :
1812   eval "$3=yes"
1813 else $as_nop
1814   eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1817     conftest$ac_exeext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 printf "%s\n" "$ac_res" >&6; }
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_func
1825
1826 # ac_fn_cxx_try_compile LINENO
1827 # ----------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_compile ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext conftest.beam
1833   if { { ac_try="$ac_compile"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 printf "%s\n" "$ac_try_echo"; } >&5
1840   (eval "$ac_compile") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_cxx_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest.$ac_objext
1852 then :
1853   ac_retval=0
1854 else $as_nop
1855   printf "%s\n" "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858         ac_retval=1
1859 fi
1860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861   as_fn_set_status $ac_retval
1862
1863 } # ac_fn_cxx_try_compile
1864
1865 # ac_fn_cxx_try_cpp LINENO
1866 # ------------------------
1867 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_cxx_try_cpp ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   if { { ac_try="$ac_cpp conftest.$ac_ext"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 printf "%s\n" "$ac_try_echo"; } >&5
1878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1879   ac_status=$?
1880   if test -s conftest.err; then
1881     grep -v '^ *+' conftest.err >conftest.er1
1882     cat conftest.er1 >&5
1883     mv -f conftest.er1 conftest.err
1884   fi
1885   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; } > conftest.i && {
1887          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1888          test ! -s conftest.err
1889        }
1890 then :
1891   ac_retval=0
1892 else $as_nop
1893   printf "%s\n" "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896     ac_retval=1
1897 fi
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_cxx_try_cpp
1902
1903 # ac_fn_cxx_try_link LINENO
1904 # -------------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_cxx_try_link ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1910   if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913   *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 printf "%s\n" "$ac_try_echo"; } >&5
1917   (eval "$ac_link") 2>conftest.err
1918   ac_status=$?
1919   if test -s conftest.err; then
1920     grep -v '^ *+' conftest.err >conftest.er1
1921     cat conftest.er1 >&5
1922     mv -f conftest.er1 conftest.err
1923   fi
1924   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925   test $ac_status = 0; } && {
1926          test -z "$ac_cxx_werror_flag" ||
1927          test ! -s conftest.err
1928        } && test -s conftest$ac_exeext && {
1929          test "$cross_compiling" = yes ||
1930          test -x conftest$ac_exeext
1931        }
1932 then :
1933   ac_retval=0
1934 else $as_nop
1935   printf "%s\n" "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938         ac_retval=1
1939 fi
1940   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1941   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1942   # interfere with the next link command; also delete a directory that is
1943   # left behind by Apple's compiler.  We do this before executing the actions.
1944   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946   as_fn_set_status $ac_retval
1947
1948 } # ac_fn_cxx_try_link
1949
1950 # ac_fn_f77_try_compile LINENO
1951 # ----------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_f77_try_compile ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   rm -f conftest.$ac_objext conftest.beam
1957   if { { ac_try="$ac_compile"
1958 case "(($ac_try" in
1959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960   *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 printf "%s\n" "$ac_try_echo"; } >&5
1964   (eval "$ac_compile") 2>conftest.err
1965   ac_status=$?
1966   if test -s conftest.err; then
1967     grep -v '^ *+' conftest.err >conftest.er1
1968     cat conftest.er1 >&5
1969     mv -f conftest.er1 conftest.err
1970   fi
1971   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972   test $ac_status = 0; } && {
1973          test -z "$ac_f77_werror_flag" ||
1974          test ! -s conftest.err
1975        } && test -s conftest.$ac_objext
1976 then :
1977   ac_retval=0
1978 else $as_nop
1979   printf "%s\n" "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982         ac_retval=1
1983 fi
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985   as_fn_set_status $ac_retval
1986
1987 } # ac_fn_f77_try_compile
1988
1989 # ac_fn_f77_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_f77_try_link ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1996   if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999   *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 printf "%s\n" "$ac_try_echo"; } >&5
2003   (eval "$ac_link") 2>conftest.err
2004   ac_status=$?
2005   if test -s conftest.err; then
2006     grep -v '^ *+' conftest.err >conftest.er1
2007     cat conftest.er1 >&5
2008     mv -f conftest.er1 conftest.err
2009   fi
2010   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011   test $ac_status = 0; } && {
2012          test -z "$ac_f77_werror_flag" ||
2013          test ! -s conftest.err
2014        } && test -s conftest$ac_exeext && {
2015          test "$cross_compiling" = yes ||
2016          test -x conftest$ac_exeext
2017        }
2018 then :
2019   ac_retval=0
2020 else $as_nop
2021   printf "%s\n" "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2023
2024         ac_retval=1
2025 fi
2026   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2027   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2028   # interfere with the next link command; also delete a directory that is
2029   # left behind by Apple's compiler.  We do this before executing the actions.
2030   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2031   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032   as_fn_set_status $ac_retval
2033
2034 } # ac_fn_f77_try_link
2035
2036 # ac_fn_c_try_run LINENO
2037 # ----------------------
2038 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2039 # executables *can* be run.
2040 ac_fn_c_try_run ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046   *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 printf "%s\n" "$ac_try_echo"; } >&5
2050   (eval "$ac_link") 2>&5
2051   ac_status=$?
2052   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054   { { case "(($ac_try" in
2055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056   *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 printf "%s\n" "$ac_try_echo"; } >&5
2060   (eval "$ac_try") 2>&5
2061   ac_status=$?
2062   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063   test $ac_status = 0; }; }
2064 then :
2065   ac_retval=0
2066 else $as_nop
2067   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2068        printf "%s\n" "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071        ac_retval=$ac_status
2072 fi
2073   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075   as_fn_set_status $ac_retval
2076
2077 } # ac_fn_c_try_run
2078
2079 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080 # -------------------------------------------
2081 # Tests whether TYPE exists after having included INCLUDES, setting cache
2082 # variable VAR accordingly.
2083 ac_fn_c_check_type ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 printf %s "checking for $2... " >&6; }
2088 if eval test \${$3+y}
2089 then :
2090   printf %s "(cached) " >&6
2091 else $as_nop
2092   eval "$3=no"
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 int
2097 main (void)
2098 {
2099 if (sizeof ($2))
2100          return 0;
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"
2106 then :
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main (void)
2112 {
2113 if (sizeof (($2)))
2114             return 0;
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"
2120 then :
2121
2122 else $as_nop
2123   eval "$3=yes"
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 fi
2129 eval ac_res=\$$3
2130                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 printf "%s\n" "$ac_res" >&6; }
2132   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134 } # ac_fn_c_check_type
2135 ac_configure_args_raw=
2136 for ac_arg
2137 do
2138   case $ac_arg in
2139   *\'*)
2140     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141   esac
2142   as_fn_append ac_configure_args_raw " '$ac_arg'"
2143 done
2144
2145 case $ac_configure_args_raw in
2146   *$as_nl*)
2147     ac_safe_unquote= ;;
2148   *)
2149     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2150     ac_unsafe_a="$ac_unsafe_z#~"
2151     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2152     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2153 esac
2154
2155 cat >config.log <<_ACEOF
2156 This file contains any messages produced by compilers while
2157 running configure, to aid debugging if configure makes a mistake.
2158
2159 It was created by libcitadel $as_me #define LIBCITADEL_VERSION_NUMBER 996, which was
2160 generated by GNU Autoconf 2.71.  Invocation command line was
2161
2162   $ $0$ac_configure_args_raw
2163
2164 _ACEOF
2165 exec 5>>config.log
2166 {
2167 cat <<_ASUNAME
2168 ## --------- ##
2169 ## Platform. ##
2170 ## --------- ##
2171
2172 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2173 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2174 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2175 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2176 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2177
2178 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2179 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2180
2181 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2182 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2183 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2184 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2185 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2186 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2187 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2188
2189 _ASUNAME
2190
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   case $as_dir in #(((
2196     '') as_dir=./ ;;
2197     */) ;;
2198     *) as_dir=$as_dir/ ;;
2199   esac
2200     printf "%s\n" "PATH: $as_dir"
2201   done
2202 IFS=$as_save_IFS
2203
2204 } >&5
2205
2206 cat >&5 <<_ACEOF
2207
2208
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2212
2213 _ACEOF
2214
2215
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2226 do
2227   for ac_arg
2228   do
2229     case $ac_arg in
2230     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232     | -silent | --silent | --silen | --sile | --sil)
2233       continue ;;
2234     *\'*)
2235       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236     esac
2237     case $ac_pass in
2238     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239     2)
2240       as_fn_append ac_configure_args1 " '$ac_arg'"
2241       if test $ac_must_keep_next = true; then
2242         ac_must_keep_next=false # Got value, back to normal.
2243       else
2244         case $ac_arg in
2245           *=* | --config-cache | -C | -disable-* | --disable-* \
2246           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248           | -with-* | --with-* | -without-* | --without-* | --x)
2249             case "$ac_configure_args0 " in
2250               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251             esac
2252             ;;
2253           -* ) ac_must_keep_next=true ;;
2254         esac
2255       fi
2256       as_fn_append ac_configure_args " '$ac_arg'"
2257       ;;
2258     esac
2259   done
2260 done
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2263
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log.  We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270   # Sanitize IFS.
2271   IFS=" ""      $as_nl"
2272   # Save into config.log some information that might help in debugging.
2273   {
2274     echo
2275
2276     printf "%s\n" "## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##"
2279     echo
2280     # The following way of writing the cache mishandles newlines in values,
2281 (
2282   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283     eval ac_val=\$$ac_var
2284     case $ac_val in #(
2285     *${as_nl}*)
2286       case $ac_var in #(
2287       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289       esac
2290       case $ac_var in #(
2291       _ | IFS | as_nl) ;; #(
2292       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293       *) { eval $ac_var=; unset $ac_var;} ;;
2294       esac ;;
2295     esac
2296   done
2297   (set) 2>&1 |
2298     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299     *${as_nl}ac_space=\ *)
2300       sed -n \
2301         "s/'\''/'\''\\\\'\'''\''/g;
2302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303       ;; #(
2304     *)
2305       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306       ;;
2307     esac |
2308     sort
2309 )
2310     echo
2311
2312     printf "%s\n" "## ----------------- ##
2313 ## Output variables. ##
2314 ## ----------------- ##"
2315     echo
2316     for ac_var in $ac_subst_vars
2317     do
2318       eval ac_val=\$$ac_var
2319       case $ac_val in
2320       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321       esac
2322       printf "%s\n" "$ac_var='\''$ac_val'\''"
2323     done | sort
2324     echo
2325
2326     if test -n "$ac_subst_files"; then
2327       printf "%s\n" "## ------------------- ##
2328 ## File substitutions. ##
2329 ## ------------------- ##"
2330       echo
2331       for ac_var in $ac_subst_files
2332       do
2333         eval ac_val=\$$ac_var
2334         case $ac_val in
2335         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336         esac
2337         printf "%s\n" "$ac_var='\''$ac_val'\''"
2338       done | sort
2339       echo
2340     fi
2341
2342     if test -s confdefs.h; then
2343       printf "%s\n" "## ----------- ##
2344 ## confdefs.h. ##
2345 ## ----------- ##"
2346       echo
2347       cat confdefs.h
2348       echo
2349     fi
2350     test "$ac_signal" != 0 &&
2351       printf "%s\n" "$as_me: caught signal $ac_signal"
2352     printf "%s\n" "$as_me: exit $exit_status"
2353   } >&5
2354   rm -f core *.core core.conftest.* &&
2355     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356     exit $exit_status
2357 ' 0
2358 for ac_signal in 1 2 13 15; do
2359   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360 done
2361 ac_signal=0
2362
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest* confdefs.h
2365
2366 printf "%s\n" "/* confdefs.h */" > confdefs.h
2367
2368 # Predefined preprocessor variables.
2369
2370 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2371
2372 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2373
2374 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2375
2376 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2377
2378 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2379
2380 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2381
2382
2383 # Let the site file select an alternate cache file if it wants to.
2384 # Prefer an explicitly selected file to automatically selected ones.
2385 if test -n "$CONFIG_SITE"; then
2386   ac_site_files="$CONFIG_SITE"
2387 elif test "x$prefix" != xNONE; then
2388   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2389 else
2390   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2391 fi
2392
2393 for ac_site_file in $ac_site_files
2394 do
2395   case $ac_site_file in #(
2396   */*) :
2397      ;; #(
2398   *) :
2399     ac_site_file=./$ac_site_file ;;
2400 esac
2401   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2402     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2403 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2404     sed 's/^/| /' "$ac_site_file" >&5
2405     . "$ac_site_file" \
2406       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2408 as_fn_error $? "failed to load site script $ac_site_file
2409 See \`config.log' for more details" "$LINENO" 5; }
2410   fi
2411 done
2412
2413 if test -r "$cache_file"; then
2414   # Some versions of bash will fail to source /dev/null (special files
2415   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2416   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2417     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2418 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2419     case $cache_file in
2420       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2421       *)                      . "./$cache_file";;
2422     esac
2423   fi
2424 else
2425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2426 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2427   >$cache_file
2428 fi
2429
2430 # Test code for whether the C compiler supports C89 (global declarations)
2431 ac_c_conftest_c89_globals='
2432 /* Does the compiler advertise C89 conformance?
2433    Do not test the value of __STDC__, because some compilers set it to 0
2434    while being otherwise adequately conformant. */
2435 #if !defined __STDC__
2436 # error "Compiler does not advertise C89 conformance"
2437 #endif
2438
2439 #include <stddef.h>
2440 #include <stdarg.h>
2441 struct stat;
2442 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2443 struct buf { int x; };
2444 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2445 static char *e (p, i)
2446      char **p;
2447      int i;
2448 {
2449   return p[i];
2450 }
2451 static char *f (char * (*g) (char **, int), char **p, ...)
2452 {
2453   char *s;
2454   va_list v;
2455   va_start (v,p);
2456   s = g (p, va_arg (v,int));
2457   va_end (v);
2458   return s;
2459 }
2460
2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2462    function prototypes and stuff, but not \xHH hex character constants.
2463    These do not provoke an error unfortunately, instead are silently treated
2464    as an "x".  The following induces an error, until -std is added to get
2465    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2466    array size at least.  It is necessary to write \x00 == 0 to get something
2467    that is true only with -std.  */
2468 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2469
2470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2471    inside strings and character constants.  */
2472 #define FOO(x) '\''x'\''
2473 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2474
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2479                int, int);'
2480
2481 # Test code for whether the C compiler supports C89 (body of main).
2482 ac_c_conftest_c89_main='
2483 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2484 '
2485
2486 # Test code for whether the C compiler supports C99 (global declarations)
2487 ac_c_conftest_c99_globals='
2488 // Does the compiler advertise C99 conformance?
2489 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2490 # error "Compiler does not advertise C99 conformance"
2491 #endif
2492
2493 #include <stdbool.h>
2494 extern int puts (const char *);
2495 extern int printf (const char *, ...);
2496 extern int dprintf (int, const char *, ...);
2497 extern void *malloc (size_t);
2498
2499 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2500 // dprintf is used instead of fprintf to avoid needing to declare
2501 // FILE and stderr.
2502 #define debug(...) dprintf (2, __VA_ARGS__)
2503 #define showlist(...) puts (#__VA_ARGS__)
2504 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2505 static void
2506 test_varargs_macros (void)
2507 {
2508   int x = 1234;
2509   int y = 5678;
2510   debug ("Flag");
2511   debug ("X = %d\n", x);
2512   showlist (The first, second, and third items.);
2513   report (x>y, "x is %d but y is %d", x, y);
2514 }
2515
2516 // Check long long types.
2517 #define BIG64 18446744073709551615ull
2518 #define BIG32 4294967295ul
2519 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2520 #if !BIG_OK
2521   #error "your preprocessor is broken"
2522 #endif
2523 #if BIG_OK
2524 #else
2525   #error "your preprocessor is broken"
2526 #endif
2527 static long long int bignum = -9223372036854775807LL;
2528 static unsigned long long int ubignum = BIG64;
2529
2530 struct incomplete_array
2531 {
2532   int datasize;
2533   double data[];
2534 };
2535
2536 struct named_init {
2537   int number;
2538   const wchar_t *name;
2539   double average;
2540 };
2541
2542 typedef const char *ccp;
2543
2544 static inline int
2545 test_restrict (ccp restrict text)
2546 {
2547   // See if C++-style comments work.
2548   // Iterate through items via the restricted pointer.
2549   // Also check for declarations in for loops.
2550   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2551     continue;
2552   return 0;
2553 }
2554
2555 // Check varargs and va_copy.
2556 static bool
2557 test_varargs (const char *format, ...)
2558 {
2559   va_list args;
2560   va_start (args, format);
2561   va_list args_copy;
2562   va_copy (args_copy, args);
2563
2564   const char *str = "";
2565   int number = 0;
2566   float fnumber = 0;
2567
2568   while (*format)
2569     {
2570       switch (*format++)
2571         {
2572         case '\''s'\'': // string
2573           str = va_arg (args_copy, const char *);
2574           break;
2575         case '\''d'\'': // int
2576           number = va_arg (args_copy, int);
2577           break;
2578         case '\''f'\'': // float
2579           fnumber = va_arg (args_copy, double);
2580           break;
2581         default:
2582           break;
2583         }
2584     }
2585   va_end (args_copy);
2586   va_end (args);
2587
2588   return *str && number && fnumber;
2589 }
2590 '
2591
2592 # Test code for whether the C compiler supports C99 (body of main).
2593 ac_c_conftest_c99_main='
2594   // Check bool.
2595   _Bool success = false;
2596   success |= (argc != 0);
2597
2598   // Check restrict.
2599   if (test_restrict ("String literal") == 0)
2600     success = true;
2601   char *restrict newvar = "Another string";
2602
2603   // Check varargs.
2604   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2605   test_varargs_macros ();
2606
2607   // Check flexible array members.
2608   struct incomplete_array *ia =
2609     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2610   ia->datasize = 10;
2611   for (int i = 0; i < ia->datasize; ++i)
2612     ia->data[i] = i * 1.234;
2613
2614   // Check named initializers.
2615   struct named_init ni = {
2616     .number = 34,
2617     .name = L"Test wide string",
2618     .average = 543.34343,
2619   };
2620
2621   ni.number = 58;
2622
2623   int dynamic_array[ni.number];
2624   dynamic_array[0] = argv[0][0];
2625   dynamic_array[ni.number - 1] = 543;
2626
2627   // work around unused variable warnings
2628   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2629          || dynamic_array[ni.number - 1] != 543);
2630 '
2631
2632 # Test code for whether the C compiler supports C11 (global declarations)
2633 ac_c_conftest_c11_globals='
2634 // Does the compiler advertise C11 conformance?
2635 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2636 # error "Compiler does not advertise C11 conformance"
2637 #endif
2638
2639 // Check _Alignas.
2640 char _Alignas (double) aligned_as_double;
2641 char _Alignas (0) no_special_alignment;
2642 extern char aligned_as_int;
2643 char _Alignas (0) _Alignas (int) aligned_as_int;
2644
2645 // Check _Alignof.
2646 enum
2647 {
2648   int_alignment = _Alignof (int),
2649   int_array_alignment = _Alignof (int[100]),
2650   char_alignment = _Alignof (char)
2651 };
2652 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2653
2654 // Check _Noreturn.
2655 int _Noreturn does_not_return (void) { for (;;) continue; }
2656
2657 // Check _Static_assert.
2658 struct test_static_assert
2659 {
2660   int x;
2661   _Static_assert (sizeof (int) <= sizeof (long int),
2662                   "_Static_assert does not work in struct");
2663   long int y;
2664 };
2665
2666 // Check UTF-8 literals.
2667 #define u8 syntax error!
2668 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2669
2670 // Check duplicate typedefs.
2671 typedef long *long_ptr;
2672 typedef long int *long_ptr;
2673 typedef long_ptr long_ptr;
2674
2675 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2676 struct anonymous
2677 {
2678   union {
2679     struct { int i; int j; };
2680     struct { int k; long int l; } w;
2681   };
2682   int m;
2683 } v1;
2684 '
2685
2686 # Test code for whether the C compiler supports C11 (body of main).
2687 ac_c_conftest_c11_main='
2688   _Static_assert ((offsetof (struct anonymous, i)
2689                    == offsetof (struct anonymous, w.k)),
2690                   "Anonymous union alignment botch");
2691   v1.i = 2;
2692   v1.w.k = 5;
2693   ok |= v1.i != 5;
2694 '
2695
2696 # Test code for whether the C compiler supports C11 (complete).
2697 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2698 ${ac_c_conftest_c99_globals}
2699 ${ac_c_conftest_c11_globals}
2700
2701 int
2702 main (int argc, char **argv)
2703 {
2704   int ok = 0;
2705   ${ac_c_conftest_c89_main}
2706   ${ac_c_conftest_c99_main}
2707   ${ac_c_conftest_c11_main}
2708   return ok;
2709 }
2710 "
2711
2712 # Test code for whether the C compiler supports C99 (complete).
2713 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2714 ${ac_c_conftest_c99_globals}
2715
2716 int
2717 main (int argc, char **argv)
2718 {
2719   int ok = 0;
2720   ${ac_c_conftest_c89_main}
2721   ${ac_c_conftest_c99_main}
2722   return ok;
2723 }
2724 "
2725
2726 # Test code for whether the C compiler supports C89 (complete).
2727 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2728
2729 int
2730 main (int argc, char **argv)
2731 {
2732   int ok = 0;
2733   ${ac_c_conftest_c89_main}
2734   return ok;
2735 }
2736 "
2737
2738 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2739 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2740 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2741 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2742 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2743 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2744 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2745 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2746 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2747 # Test code for whether the C++ compiler supports C++98 (global declarations)
2748 ac_cxx_conftest_cxx98_globals='
2749 // Does the compiler advertise C++98 conformance?
2750 #if !defined __cplusplus || __cplusplus < 199711L
2751 # error "Compiler does not advertise C++98 conformance"
2752 #endif
2753
2754 // These inclusions are to reject old compilers that
2755 // lack the unsuffixed header files.
2756 #include <cstdlib>
2757 #include <exception>
2758
2759 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2760 extern void assert (int);
2761 namespace std {
2762   extern int strcmp (const char *, const char *);
2763 }
2764
2765 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2766 using std::exception;
2767 using std::strcmp;
2768
2769 namespace {
2770
2771 void test_exception_syntax()
2772 {
2773   try {
2774     throw "test";
2775   } catch (const char *s) {
2776     // Extra parentheses suppress a warning when building autoconf itself,
2777     // due to lint rules shared with more typical C programs.
2778     assert (!(strcmp) (s, "test"));
2779   }
2780 }
2781
2782 template <typename T> struct test_template
2783 {
2784   T const val;
2785   explicit test_template(T t) : val(t) {}
2786   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2787 };
2788
2789 } // anonymous namespace
2790 '
2791
2792 # Test code for whether the C++ compiler supports C++98 (body of main)
2793 ac_cxx_conftest_cxx98_main='
2794   assert (argc);
2795   assert (! argv[0]);
2796 {
2797   test_exception_syntax ();
2798   test_template<double> tt (2.0);
2799   assert (tt.add (4) == 6.0);
2800   assert (true && !false);
2801 }
2802 '
2803
2804 # Test code for whether the C++ compiler supports C++11 (global declarations)
2805 ac_cxx_conftest_cxx11_globals='
2806 // Does the compiler advertise C++ 2011 conformance?
2807 #if !defined __cplusplus || __cplusplus < 201103L
2808 # error "Compiler does not advertise C++11 conformance"
2809 #endif
2810
2811 namespace cxx11test
2812 {
2813   constexpr int get_val() { return 20; }
2814
2815   struct testinit
2816   {
2817     int i;
2818     double d;
2819   };
2820
2821   class delegate
2822   {
2823   public:
2824     delegate(int n) : n(n) {}
2825     delegate(): delegate(2354) {}
2826
2827     virtual int getval() { return this->n; };
2828   protected:
2829     int n;
2830   };
2831
2832   class overridden : public delegate
2833   {
2834   public:
2835     overridden(int n): delegate(n) {}
2836     virtual int getval() override final { return this->n * 2; }
2837   };
2838
2839   class nocopy
2840   {
2841   public:
2842     nocopy(int i): i(i) {}
2843     nocopy() = default;
2844     nocopy(const nocopy&) = delete;
2845     nocopy & operator=(const nocopy&) = delete;
2846   private:
2847     int i;
2848   };
2849
2850   // for testing lambda expressions
2851   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2852   {
2853     return f(v);
2854   }
2855
2856   // for testing variadic templates and trailing return types
2857   template <typename V> auto sum(V first) -> V
2858   {
2859     return first;
2860   }
2861   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2862   {
2863     return first + sum(rest...);
2864   }
2865 }
2866 '
2867
2868 # Test code for whether the C++ compiler supports C++11 (body of main)
2869 ac_cxx_conftest_cxx11_main='
2870 {
2871   // Test auto and decltype
2872   auto a1 = 6538;
2873   auto a2 = 48573953.4;
2874   auto a3 = "String literal";
2875
2876   int total = 0;
2877   for (auto i = a3; *i; ++i) { total += *i; }
2878
2879   decltype(a2) a4 = 34895.034;
2880 }
2881 {
2882   // Test constexpr
2883   short sa[cxx11test::get_val()] = { 0 };
2884 }
2885 {
2886   // Test initializer lists
2887   cxx11test::testinit il = { 4323, 435234.23544 };
2888 }
2889 {
2890   // Test range-based for
2891   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2892                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2893   for (auto &x : array) { x += 23; }
2894 }
2895 {
2896   // Test lambda expressions
2897   using cxx11test::eval;
2898   assert (eval ([](int x) { return x*2; }, 21) == 42);
2899   double d = 2.0;
2900   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2901   assert (d == 5.0);
2902   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2903   assert (d == 5.0);
2904 }
2905 {
2906   // Test use of variadic templates
2907   using cxx11test::sum;
2908   auto a = sum(1);
2909   auto b = sum(1, 2);
2910   auto c = sum(1.0, 2.0, 3.0);
2911 }
2912 {
2913   // Test constructor delegation
2914   cxx11test::delegate d1;
2915   cxx11test::delegate d2();
2916   cxx11test::delegate d3(45);
2917 }
2918 {
2919   // Test override and final
2920   cxx11test::overridden o1(55464);
2921 }
2922 {
2923   // Test nullptr
2924   char *c = nullptr;
2925 }
2926 {
2927   // Test template brackets
2928   test_template<::test_template<int>> v(test_template<int>(12));
2929 }
2930 {
2931   // Unicode literals
2932   char const *utf8 = u8"UTF-8 string \u2500";
2933   char16_t const *utf16 = u"UTF-8 string \u2500";
2934   char32_t const *utf32 = U"UTF-32 string \u2500";
2935 }
2936 '
2937
2938 # Test code for whether the C compiler supports C++11 (complete).
2939 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2940 ${ac_cxx_conftest_cxx11_globals}
2941
2942 int
2943 main (int argc, char **argv)
2944 {
2945   int ok = 0;
2946   ${ac_cxx_conftest_cxx98_main}
2947   ${ac_cxx_conftest_cxx11_main}
2948   return ok;
2949 }
2950 "
2951
2952 # Test code for whether the C compiler supports C++98 (complete).
2953 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2954 int
2955 main (int argc, char **argv)
2956 {
2957   int ok = 0;
2958   ${ac_cxx_conftest_cxx98_main}
2959   return ok;
2960 }
2961 "
2962
2963
2964 # Auxiliary files required by this configure script.
2965 ac_aux_files="install-sh config.guess config.sub"
2966
2967 # Locations in which to look for auxiliary files.
2968 ac_aux_dir_candidates="${srcdir}/conftools"
2969
2970 # Search for a directory containing all of the required auxiliary files,
2971 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2972 # If we don't find one directory that contains all the files we need,
2973 # we report the set of missing files from the *first* directory in
2974 # $ac_aux_dir_candidates and give up.
2975 ac_missing_aux_files=""
2976 ac_first_candidate=:
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 as_found=false
2980 for as_dir in $ac_aux_dir_candidates
2981 do
2982   IFS=$as_save_IFS
2983   case $as_dir in #(((
2984     '') as_dir=./ ;;
2985     */) ;;
2986     *) as_dir=$as_dir/ ;;
2987   esac
2988   as_found=:
2989
2990   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2991   ac_aux_dir_found=yes
2992   ac_install_sh=
2993   for ac_aux in $ac_aux_files
2994   do
2995     # As a special case, if "install-sh" is required, that requirement
2996     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2997     # and $ac_install_sh is set appropriately for whichever one is found.
2998     if test x"$ac_aux" = x"install-sh"
2999     then
3000       if test -f "${as_dir}install-sh"; then
3001         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3002         ac_install_sh="${as_dir}install-sh -c"
3003       elif test -f "${as_dir}install.sh"; then
3004         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3005         ac_install_sh="${as_dir}install.sh -c"
3006       elif test -f "${as_dir}shtool"; then
3007         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3008         ac_install_sh="${as_dir}shtool install -c"
3009       else
3010         ac_aux_dir_found=no
3011         if $ac_first_candidate; then
3012           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3013         else
3014           break
3015         fi
3016       fi
3017     else
3018       if test -f "${as_dir}${ac_aux}"; then
3019         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3020       else
3021         ac_aux_dir_found=no
3022         if $ac_first_candidate; then
3023           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3024         else
3025           break
3026         fi
3027       fi
3028     fi
3029   done
3030   if test "$ac_aux_dir_found" = yes; then
3031     ac_aux_dir="$as_dir"
3032     break
3033   fi
3034   ac_first_candidate=false
3035
3036   as_found=false
3037 done
3038 IFS=$as_save_IFS
3039 if $as_found
3040 then :
3041
3042 else $as_nop
3043   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3044 fi
3045
3046
3047 # These three variables are undocumented and unsupported,
3048 # and are intended to be withdrawn in a future Autoconf release.
3049 # They can cause serious problems if a builder's source tree is in a directory
3050 # whose full name contains unusual characters.
3051 if test -f "${ac_aux_dir}config.guess"; then
3052   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3053 fi
3054 if test -f "${ac_aux_dir}config.sub"; then
3055   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3056 fi
3057 if test -f "$ac_aux_dir/configure"; then
3058   ac_configure="$SHELL ${ac_aux_dir}configure"
3059 fi
3060
3061 # Check that the precious variables saved in the cache have kept the same
3062 # value.
3063 ac_cache_corrupted=false
3064 for ac_var in $ac_precious_vars; do
3065   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3066   eval ac_new_set=\$ac_env_${ac_var}_set
3067   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3068   eval ac_new_val=\$ac_env_${ac_var}_value
3069   case $ac_old_set,$ac_new_set in
3070     set,)
3071       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3072 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3073       ac_cache_corrupted=: ;;
3074     ,set)
3075       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3076 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3077       ac_cache_corrupted=: ;;
3078     ,);;
3079     *)
3080       if test "x$ac_old_val" != "x$ac_new_val"; then
3081         # differences in whitespace do not lead to failure.
3082         ac_old_val_w=`echo x $ac_old_val`
3083         ac_new_val_w=`echo x $ac_new_val`
3084         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3085           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3086 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3087           ac_cache_corrupted=:
3088         else
3089           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3090 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3091           eval $ac_var=\$ac_old_val
3092         fi
3093         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3094 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3095         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3096 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3097       fi;;
3098   esac
3099   # Pass precious variables to config.status.
3100   if test "$ac_new_set" = set; then
3101     case $ac_new_val in
3102     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3103     *) ac_arg=$ac_var=$ac_new_val ;;
3104     esac
3105     case " $ac_configure_args " in
3106       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3107       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3108     esac
3109   fi
3110 done
3111 if $ac_cache_corrupted; then
3112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3115 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3116   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3117             and start over" "$LINENO" 5
3118 fi
3119 ## -------------------- ##
3120 ## Main body of script. ##
3121 ## -------------------- ##
3122
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128
3129
3130
3131
3132
3133
3134 LIBCURRENT=4
3135 LIBREVISION=996
3136 LIBAGE=0
3137
3138 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3139 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
3140 ## Free Software Foundation, Inc.
3141 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3142 ##
3143 ## This file is free software; the Free Software Foundation gives
3144 ## unlimited permission to copy and/or distribute it, with or without
3145 ## modifications, as long as this notice is preserved.
3146
3147 # serial 48 AC_PROG_LIBTOOL
3148
3149
3150 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
3151 # -----------------------------------------------------------
3152 # If this macro is not defined by Autoconf, define it here.
3153
3154
3155
3156 # AC_PROG_LIBTOOL
3157 # ---------------
3158 # AC_PROG_LIBTOOL
3159
3160
3161 # _AC_PROG_LIBTOOL
3162 # ----------------
3163 # _AC_PROG_LIBTOOL
3164
3165
3166 # AC_LIBTOOL_SETUP
3167 # ----------------
3168 # AC_LIBTOOL_SETUP
3169
3170
3171 # _LT_AC_SYS_COMPILER
3172 # -------------------
3173 # _LT_AC_SYS_COMPILER
3174
3175
3176 # _LT_CC_BASENAME(CC)
3177 # -------------------
3178 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
3179
3180
3181
3182 # _LT_COMPILER_BOILERPLATE
3183 # ------------------------
3184 # Check for compiler boilerplate output or warnings with
3185 # the simple compiler test code.
3186 # _LT_COMPILER_BOILERPLATE
3187
3188
3189 # _LT_LINKER_BOILERPLATE
3190 # ----------------------
3191 # Check for linker boilerplate output or warnings with
3192 # the simple link test code.
3193 # _LT_LINKER_BOILERPLATE
3194
3195
3196 # _LT_AC_SYS_LIBPATH_AIX
3197 # ----------------------
3198 # Links a minimal program and checks the executable
3199 # for the system default hardcoded library path. In most cases,
3200 # this is /usr/lib:/lib, but when the MPI compilers are used
3201 # the location of the communication and MPI libs are included too.
3202 # If we don't find anything, use the default library path according
3203 # to the aix ld manual.
3204 # _LT_AC_SYS_LIBPATH_AIX
3205
3206
3207 # _LT_AC_SHELL_INIT(ARG)
3208 # ----------------------
3209 # _LT_AC_SHELL_INIT
3210
3211
3212 # _LT_AC_PROG_ECHO_BACKSLASH
3213 # --------------------------
3214 # Add some code to the start of the generated configure script which
3215 # will find an echo command which doesn't interpret backslashes.
3216 # _LT_AC_PROG_ECHO_BACKSLASH
3217
3218
3219 # _LT_AC_LOCK
3220 # -----------
3221 # _LT_AC_LOCK
3222
3223
3224 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3225 #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3226 # ----------------------------------------------------------------
3227 # Check whether the given compiler option works
3228 # AC_LIBTOOL_COMPILER_OPTION
3229
3230
3231 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3232 #                          [ACTION-SUCCESS], [ACTION-FAILURE])
3233 # ------------------------------------------------------------
3234 # Check whether the given compiler option works
3235 # AC_LIBTOOL_LINKER_OPTION
3236
3237
3238 # AC_LIBTOOL_SYS_MAX_CMD_LEN
3239 # --------------------------
3240 # AC_LIBTOOL_SYS_MAX_CMD_LEN
3241
3242
3243 # _LT_AC_CHECK_DLFCN
3244 # ------------------
3245 # _LT_AC_CHECK_DLFCN
3246
3247
3248 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3249 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3250 # ---------------------------------------------------------------------
3251 # _LT_AC_TRY_DLOPEN_SELF
3252
3253
3254 # AC_LIBTOOL_DLOPEN_SELF
3255 # ----------------------
3256 # AC_LIBTOOL_DLOPEN_SELF
3257
3258
3259 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3260 # ---------------------------------
3261 # Check to see if options -c and -o are simultaneously supported by compiler
3262 # AC_LIBTOOL_PROG_CC_C_O
3263
3264
3265 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3266 # -----------------------------------------
3267 # Check to see if we can do hard links to lock some files if needed
3268 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3269
3270
3271 # AC_LIBTOOL_OBJDIR
3272 # -----------------
3273 # AC_LIBTOOL_OBJDIR
3274
3275
3276 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3277 # ----------------------------------------------
3278 # Check hardcoding attributes.
3279 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3280
3281
3282 # AC_LIBTOOL_SYS_LIB_STRIP
3283 # ------------------------
3284 # AC_LIBTOOL_SYS_LIB_STRIP
3285
3286
3287 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
3288 # -----------------------------
3289 # PORTME Fill in your ld.so characteristics
3290 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
3291
3292
3293 # _LT_AC_TAGCONFIG
3294 # ----------------
3295 # _LT_AC_TAGCONFIG
3296
3297
3298 # AC_LIBTOOL_DLOPEN
3299 # -----------------
3300 # enable checks for dlopen support
3301 # AC_LIBTOOL_DLOPEN
3302
3303
3304 # AC_LIBTOOL_WIN32_DLL
3305 # --------------------
3306 # declare package support for building win32 DLLs
3307 # AC_LIBTOOL_WIN32_DLL
3308
3309
3310 # AC_ENABLE_SHARED([DEFAULT])
3311 # ---------------------------
3312 # implement the --enable-shared flag
3313 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3314 # AC_ENABLE_SHARED
3315
3316
3317 # AC_DISABLE_SHARED
3318 # -----------------
3319 # set the default shared flag to --disable-shared
3320 # AC_DISABLE_SHARED
3321
3322
3323 # AC_ENABLE_STATIC([DEFAULT])
3324 # ---------------------------
3325 # implement the --enable-static flag
3326 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3327 # AC_ENABLE_STATIC
3328
3329
3330 # AC_DISABLE_STATIC
3331 # -----------------
3332 # set the default static flag to --disable-static
3333 # AC_DISABLE_STATIC
3334
3335
3336 # AC_ENABLE_FAST_INSTALL([DEFAULT])
3337 # ---------------------------------
3338 # implement the --enable-fast-install flag
3339 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3340 # AC_ENABLE_FAST_INSTALL
3341
3342
3343 # AC_DISABLE_FAST_INSTALL
3344 # -----------------------
3345 # set the default to --disable-fast-install
3346 # AC_DISABLE_FAST_INSTALL
3347
3348
3349 # AC_LIBTOOL_PICMODE([MODE])
3350 # --------------------------
3351 # implement the --with-pic flag
3352 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3353 # AC_LIBTOOL_PICMODE
3354
3355
3356 # AC_PROG_EGREP
3357 # -------------
3358 # This is predefined starting with Autoconf 2.54, so this conditional
3359 # definition can be removed once we require Autoconf 2.54 or later.
3360
3361
3362
3363 # AC_PATH_TOOL_PREFIX
3364 # -------------------
3365 # find a file program which can recognise shared library
3366 # AC_PATH_TOOL_PREFIX
3367
3368
3369 # AC_PATH_MAGIC
3370 # -------------
3371 # find a file program which can recognise a shared library
3372 # AC_PATH_MAGIC
3373
3374
3375 # AC_PROG_LD
3376 # ----------
3377 # find the pathname to the GNU or non-GNU linker
3378 # AC_PROG_LD
3379
3380
3381 # AC_PROG_LD_GNU
3382 # --------------
3383 # AC_PROG_LD_GNU
3384
3385
3386 # AC_PROG_LD_RELOAD_FLAG
3387 # ----------------------
3388 # find reload flag for linker
3389 #   -- PORTME Some linkers may need a different reload flag.
3390 # AC_PROG_LD_RELOAD_FLAG
3391
3392
3393 # AC_DEPLIBS_CHECK_METHOD
3394 # -----------------------
3395 # how to check for library dependencies
3396 #  -- PORTME fill in with the dynamic library characteristics
3397 # AC_DEPLIBS_CHECK_METHOD
3398
3399
3400 # AC_PROG_NM
3401 # ----------
3402 # find the pathname to a BSD-compatible name lister
3403 # AC_PROG_NM
3404
3405
3406 # AC_CHECK_LIBM
3407 # -------------
3408 # check for math library
3409 # AC_CHECK_LIBM
3410
3411
3412 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3413 # -----------------------------------
3414 # sets LIBLTDL to the link flags for the libltdl convenience library and
3415 # LTDLINCL to the include flags for the libltdl header and adds
3416 # --enable-ltdl-convenience to the configure arguments.  Note that
3417 # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3418 # it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3419 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3420 # (note the single quotes!).  If your package is not flat and you're not
3421 # using automake, define top_builddir and top_srcdir appropriately in
3422 # the Makefiles.
3423 # AC_LIBLTDL_CONVENIENCE
3424
3425
3426 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3427 # -----------------------------------
3428 # sets LIBLTDL to the link flags for the libltdl installable library and
3429 # LTDLINCL to the include flags for the libltdl header and adds
3430 # --enable-ltdl-install to the configure arguments.  Note that
3431 # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3432 # and an installed libltdl is not found, it is assumed to be `libltdl'.
3433 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3434 # '${top_srcdir}/' (note the single quotes!).  If your package is not
3435 # flat and you're not using automake, define top_builddir and top_srcdir
3436 # appropriately in the Makefiles.
3437 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3438 # AC_LIBLTDL_INSTALLABLE
3439
3440
3441 # AC_LIBTOOL_CXX
3442 # --------------
3443 # enable support for C++ libraries
3444 # AC_LIBTOOL_CXX
3445
3446
3447 # _LT_AC_LANG_CXX
3448 # ---------------
3449 # _LT_AC_LANG_CXX
3450
3451 # _LT_AC_PROG_CXXCPP
3452 # ------------------
3453 # _LT_AC_PROG_CXXCPP
3454
3455 # AC_LIBTOOL_F77
3456 # --------------
3457 # enable support for Fortran 77 libraries
3458 # AC_LIBTOOL_F77
3459
3460
3461 # _LT_AC_LANG_F77
3462 # ---------------
3463 # _LT_AC_LANG_F77
3464
3465
3466 # AC_LIBTOOL_GCJ
3467 # --------------
3468 # enable support for GCJ libraries
3469 # AC_LIBTOOL_GCJ
3470
3471
3472 # _LT_AC_LANG_GCJ
3473 # ---------------
3474 # _LT_AC_LANG_GCJ
3475
3476
3477 # AC_LIBTOOL_RC
3478 # -------------
3479 # enable support for Windows resource files
3480 # AC_LIBTOOL_RC
3481
3482
3483 # AC_LIBTOOL_LANG_C_CONFIG
3484 # ------------------------
3485 # Ensure that the configuration vars for the C compiler are
3486 # suitably defined.  Those variables are subsequently used by
3487 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3488
3489 # AC_LIBTOOL_LANG_C_CONFIG
3490
3491
3492 # AC_LIBTOOL_LANG_CXX_CONFIG
3493 # --------------------------
3494 # Ensure that the configuration vars for the C compiler are
3495 # suitably defined.  Those variables are subsequently used by
3496 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3497
3498 # AC_LIBTOOL_LANG_CXX_CONFIG
3499
3500 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3501 # ------------------------------------
3502 # Figure out "hidden" library dependencies from verbose
3503 # compiler output when linking a shared library.
3504 # Parse the compiler output and extract the necessary
3505 # objects, libraries and library flags.
3506 # AC_LIBTOOL_POSTDEP_PREDEP
3507
3508 # AC_LIBTOOL_LANG_F77_CONFIG
3509 # --------------------------
3510 # Ensure that the configuration vars for the C compiler are
3511 # suitably defined.  Those variables are subsequently used by
3512 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3513
3514 # AC_LIBTOOL_LANG_F77_CONFIG
3515
3516
3517 # AC_LIBTOOL_LANG_GCJ_CONFIG
3518 # --------------------------
3519 # Ensure that the configuration vars for the C compiler are
3520 # suitably defined.  Those variables are subsequently used by
3521 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3522
3523 # AC_LIBTOOL_LANG_GCJ_CONFIG
3524
3525
3526 # AC_LIBTOOL_LANG_RC_CONFIG
3527 # -------------------------
3528 # Ensure that the configuration vars for the Windows resource compiler are
3529 # suitably defined.  Those variables are subsequently used by
3530 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3531
3532 # AC_LIBTOOL_LANG_RC_CONFIG
3533
3534
3535 # AC_LIBTOOL_CONFIG([TAGNAME])
3536 # ----------------------------
3537 # If TAGNAME is not passed, then create an initial libtool script
3538 # with a default configuration from the untagged config vars.  Otherwise
3539 # add code to config.status for appending the configuration named by
3540 # TAGNAME from the matching tagged config vars.
3541 # AC_LIBTOOL_CONFIG
3542
3543
3544 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3545 # -------------------------------------------
3546 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3547
3548
3549 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3550 # ---------------------------------
3551  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3552
3553
3554 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3555 # ---------------------------------------
3556
3557
3558
3559 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3560 # ------------------------------------
3561 # See if the linker supports building shared libraries.
3562 # AC_LIBTOOL_PROG_LD_SHLIBS
3563
3564
3565 # _LT_AC_FILE_LTDLL_C
3566 # -------------------
3567 # Be careful that the start marker always follows a newline.
3568 # _LT_AC_FILE_LTDLL_C
3569
3570
3571 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3572 # ---------------------------------
3573
3574
3575
3576 # old names
3577
3578
3579
3580
3581
3582
3583
3584
3585 # This is just to silence aclocal about the macro not being used
3586
3587
3588
3589
3590
3591
3592 ############################################################
3593 # NOTE: This macro has been submitted for inclusion into   #
3594 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
3595 #  a released version of Autoconf we should remove this    #
3596 #  macro and use it instead.                               #
3597 ############################################################
3598 # LT_AC_PROG_SED
3599 # --------------
3600 # Check for a fully-functional sed program, that truncates
3601 # as few characters as possible.  Prefer GNU sed if found.
3602
3603
3604
3605
3606 # Check whether --enable-shared was given.
3607 if test ${enable_shared+y}
3608 then :
3609   enableval=$enable_shared; p=${PACKAGE-default}
3610     case $enableval in
3611     yes) enable_shared=yes ;;
3612     no) enable_shared=no ;;
3613     *)
3614       enable_shared=no
3615       # Look at the argument we got.  We use all the common list separators.
3616       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617       for pkg in $enableval; do
3618         IFS="$lt_save_ifs"
3619         if test "X$pkg" = "X$p"; then
3620           enable_shared=yes
3621         fi
3622       done
3623       IFS="$lt_save_ifs"
3624       ;;
3625     esac
3626 else $as_nop
3627   enable_shared=yes
3628 fi
3629
3630
3631 # Check whether --enable-static was given.
3632 if test ${enable_static+y}
3633 then :
3634   enableval=$enable_static; p=${PACKAGE-default}
3635     case $enableval in
3636     yes) enable_static=yes ;;
3637     no) enable_static=no ;;
3638     *)
3639      enable_static=no
3640       # Look at the argument we got.  We use all the common list separators.
3641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3642       for pkg in $enableval; do
3643         IFS="$lt_save_ifs"
3644         if test "X$pkg" = "X$p"; then
3645           enable_static=yes
3646         fi
3647       done
3648       IFS="$lt_save_ifs"
3649       ;;
3650     esac
3651 else $as_nop
3652   enable_static=yes
3653 fi
3654
3655
3656 # Check whether --enable-fast-install was given.
3657 if test ${enable_fast_install+y}
3658 then :
3659   enableval=$enable_fast_install; p=${PACKAGE-default}
3660     case $enableval in
3661     yes) enable_fast_install=yes ;;
3662     no) enable_fast_install=no ;;
3663     *)
3664       enable_fast_install=no
3665       # Look at the argument we got.  We use all the common list separators.
3666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667       for pkg in $enableval; do
3668         IFS="$lt_save_ifs"
3669         if test "X$pkg" = "X$p"; then
3670           enable_fast_install=yes
3671         fi
3672       done
3673       IFS="$lt_save_ifs"
3674       ;;
3675     esac
3676 else $as_nop
3677   enable_fast_install=yes
3678 fi
3679
3680
3681
3682
3683
3684   # Make sure we can run config.sub.
3685 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3686   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3687
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3689 printf %s "checking build system type... " >&6; }
3690 if test ${ac_cv_build+y}
3691 then :
3692   printf %s "(cached) " >&6
3693 else $as_nop
3694   ac_build_alias=$build_alias
3695 test "x$ac_build_alias" = x &&
3696   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3697 test "x$ac_build_alias" = x &&
3698   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3699 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3700   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3701
3702 fi
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3704 printf "%s\n" "$ac_cv_build" >&6; }
3705 case $ac_cv_build in
3706 *-*-*) ;;
3707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3708 esac
3709 build=$ac_cv_build
3710 ac_save_IFS=$IFS; IFS='-'
3711 set x $ac_cv_build
3712 shift
3713 build_cpu=$1
3714 build_vendor=$2
3715 shift; shift
3716 # Remember, the first character of IFS is used to create $*,
3717 # except with old shells:
3718 build_os=$*
3719 IFS=$ac_save_IFS
3720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3721
3722
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3724 printf %s "checking host system type... " >&6; }
3725 if test ${ac_cv_host+y}
3726 then :
3727   printf %s "(cached) " >&6
3728 else $as_nop
3729   if test "x$host_alias" = x; then
3730   ac_cv_host=$ac_cv_build
3731 else
3732   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3733     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3734 fi
3735
3736 fi
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3738 printf "%s\n" "$ac_cv_host" >&6; }
3739 case $ac_cv_host in
3740 *-*-*) ;;
3741 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3742 esac
3743 host=$ac_cv_host
3744 ac_save_IFS=$IFS; IFS='-'
3745 set x $ac_cv_host
3746 shift
3747 host_cpu=$1
3748 host_vendor=$2
3749 shift; shift
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3752 host_os=$*
3753 IFS=$ac_save_IFS
3754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 if test -n "$ac_tool_prefix"; then
3772   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 printf %s "checking for $ac_word... " >&6; }
3776 if test ${ac_cv_prog_CC+y}
3777 then :
3778   printf %s "(cached) " >&6
3779 else $as_nop
3780   if test -n "$CC"; then
3781   ac_cv_prog_CC="$CC" # Let the user override the test.
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786   IFS=$as_save_IFS
3787   case $as_dir in #(((
3788     '') as_dir=./ ;;
3789     */) ;;
3790     *) as_dir=$as_dir/ ;;
3791   esac
3792     for ac_exec_ext in '' $ac_executable_extensions; do
3793   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3794     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3795     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3796     break 2
3797   fi
3798 done
3799   done
3800 IFS=$as_save_IFS
3801
3802 fi
3803 fi
3804 CC=$ac_cv_prog_CC
3805 if test -n "$CC"; then
3806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 printf "%s\n" "$CC" >&6; }
3808 else
3809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 printf "%s\n" "no" >&6; }
3811 fi
3812
3813
3814 fi
3815 if test -z "$ac_cv_prog_CC"; then
3816   ac_ct_CC=$CC
3817   # Extract the first word of "gcc", so it can be a program name with args.
3818 set dummy gcc; ac_word=$2
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 printf %s "checking for $ac_word... " >&6; }
3821 if test ${ac_cv_prog_ac_ct_CC+y}
3822 then :
3823   printf %s "(cached) " >&6
3824 else $as_nop
3825   if test -n "$ac_ct_CC"; then
3826   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   case $as_dir in #(((
3833     '') as_dir=./ ;;
3834     */) ;;
3835     *) as_dir=$as_dir/ ;;
3836   esac
3837     for ac_exec_ext in '' $ac_executable_extensions; do
3838   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3839     ac_cv_prog_ac_ct_CC="gcc"
3840     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844   done
3845 IFS=$as_save_IFS
3846
3847 fi
3848 fi
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 printf "%s\n" "$ac_ct_CC" >&6; }
3853 else
3854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 printf "%s\n" "no" >&6; }
3856 fi
3857
3858   if test "x$ac_ct_CC" = x; then
3859     CC=""
3860   else
3861     case $cross_compiling:$ac_tool_warned in
3862 yes:)
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3866 esac
3867     CC=$ac_ct_CC
3868   fi
3869 else
3870   CC="$ac_cv_prog_CC"
3871 fi
3872
3873 if test -z "$CC"; then
3874           if test -n "$ac_tool_prefix"; then
3875     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}cc; ac_word=$2
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 printf %s "checking for $ac_word... " >&6; }
3879 if test ${ac_cv_prog_CC+y}
3880 then :
3881   printf %s "(cached) " >&6
3882 else $as_nop
3883   if test -n "$CC"; then
3884   ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   case $as_dir in #(((
3891     '') as_dir=./ ;;
3892     */) ;;
3893     *) as_dir=$as_dir/ ;;
3894   esac
3895     for ac_exec_ext in '' $ac_executable_extensions; do
3896   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897     ac_cv_prog_CC="${ac_tool_prefix}cc"
3898     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3899     break 2
3900   fi
3901 done
3902   done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 CC=$ac_cv_prog_CC
3908 if test -n "$CC"; then
3909   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3910 printf "%s\n" "$CC" >&6; }
3911 else
3912   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 printf "%s\n" "no" >&6; }
3914 fi
3915
3916
3917   fi
3918 fi
3919 if test -z "$CC"; then
3920   # Extract the first word of "cc", so it can be a program name with args.
3921 set dummy cc; ac_word=$2
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 printf %s "checking for $ac_word... " >&6; }
3924 if test ${ac_cv_prog_CC+y}
3925 then :
3926   printf %s "(cached) " >&6
3927 else $as_nop
3928   if test -n "$CC"; then
3929   ac_cv_prog_CC="$CC" # Let the user override the test.
3930 else
3931   ac_prog_rejected=no
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   case $as_dir in #(((
3937     '') as_dir=./ ;;
3938     */) ;;
3939     *) as_dir=$as_dir/ ;;
3940   esac
3941     for ac_exec_ext in '' $ac_executable_extensions; do
3942   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3944        ac_prog_rejected=yes
3945        continue
3946      fi
3947     ac_cv_prog_CC="cc"
3948     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3949     break 2
3950   fi
3951 done
3952   done
3953 IFS=$as_save_IFS
3954
3955 if test $ac_prog_rejected = yes; then
3956   # We found a bogon in the path, so make sure we never use it.
3957   set dummy $ac_cv_prog_CC
3958   shift
3959   if test $# != 0; then
3960     # We chose a different compiler from the bogus one.
3961     # However, it has the same basename, so the bogon will be chosen
3962     # first if we set CC to just the basename; use the full file name.
3963     shift
3964     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3965   fi
3966 fi
3967 fi
3968 fi
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 printf "%s\n" "$CC" >&6; }
3973 else
3974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 printf "%s\n" "no" >&6; }
3976 fi
3977
3978
3979 fi
3980 if test -z "$CC"; then
3981   if test -n "$ac_tool_prefix"; then
3982   for ac_prog in cl.exe
3983   do
3984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 printf %s "checking for $ac_word... " >&6; }
3988 if test ${ac_cv_prog_CC+y}
3989 then :
3990   printf %s "(cached) " >&6
3991 else $as_nop
3992   if test -n "$CC"; then
3993   ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   case $as_dir in #(((
4000     '') as_dir=./ ;;
4001     */) ;;
4002     *) as_dir=$as_dir/ ;;
4003   esac
4004     for ac_exec_ext in '' $ac_executable_extensions; do
4005   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4007     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011   done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 CC=$ac_cv_prog_CC
4017 if test -n "$CC"; then
4018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019 printf "%s\n" "$CC" >&6; }
4020 else
4021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4023 fi
4024
4025
4026     test -n "$CC" && break
4027   done
4028 fi
4029 if test -z "$CC"; then
4030   ac_ct_CC=$CC
4031   for ac_prog in cl.exe
4032 do
4033   # Extract the first word of "$ac_prog", so it can be a program name with args.
4034 set dummy $ac_prog; ac_word=$2
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 printf %s "checking for $ac_word... " >&6; }
4037 if test ${ac_cv_prog_ac_ct_CC+y}
4038 then :
4039   printf %s "(cached) " >&6
4040 else $as_nop
4041   if test -n "$ac_ct_CC"; then
4042   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   case $as_dir in #(((
4049     '') as_dir=./ ;;
4050     */) ;;
4051     *) as_dir=$as_dir/ ;;
4052   esac
4053     for ac_exec_ext in '' $ac_executable_extensions; do
4054   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4055     ac_cv_prog_ac_ct_CC="$ac_prog"
4056     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060   done
4061 IFS=$as_save_IFS
4062
4063 fi
4064 fi
4065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066 if test -n "$ac_ct_CC"; then
4067   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068 printf "%s\n" "$ac_ct_CC" >&6; }
4069 else
4070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 printf "%s\n" "no" >&6; }
4072 fi
4073
4074
4075   test -n "$ac_ct_CC" && break
4076 done
4077
4078   if test "x$ac_ct_CC" = x; then
4079     CC=""
4080   else
4081     case $cross_compiling:$ac_tool_warned in
4082 yes:)
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned=yes ;;
4086 esac
4087     CC=$ac_ct_CC
4088   fi
4089 fi
4090
4091 fi
4092 if test -z "$CC"; then
4093   if test -n "$ac_tool_prefix"; then
4094   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}clang; ac_word=$2
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 printf %s "checking for $ac_word... " >&6; }
4098 if test ${ac_cv_prog_CC+y}
4099 then :
4100   printf %s "(cached) " >&6
4101 else $as_nop
4102   if test -n "$CC"; then
4103   ac_cv_prog_CC="$CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   case $as_dir in #(((
4110     '') as_dir=./ ;;
4111     */) ;;
4112     *) as_dir=$as_dir/ ;;
4113   esac
4114     for ac_exec_ext in '' $ac_executable_extensions; do
4115   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4116     ac_cv_prog_CC="${ac_tool_prefix}clang"
4117     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4118     break 2
4119   fi
4120 done
4121   done
4122 IFS=$as_save_IFS
4123
4124 fi
4125 fi
4126 CC=$ac_cv_prog_CC
4127 if test -n "$CC"; then
4128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 printf "%s\n" "$CC" >&6; }
4130 else
4131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 printf "%s\n" "no" >&6; }
4133 fi
4134
4135
4136 fi
4137 if test -z "$ac_cv_prog_CC"; then
4138   ac_ct_CC=$CC
4139   # Extract the first word of "clang", so it can be a program name with args.
4140 set dummy clang; ac_word=$2
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 printf %s "checking for $ac_word... " >&6; }
4143 if test ${ac_cv_prog_ac_ct_CC+y}
4144 then :
4145   printf %s "(cached) " >&6
4146 else $as_nop
4147   if test -n "$ac_ct_CC"; then
4148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   case $as_dir in #(((
4155     '') as_dir=./ ;;
4156     */) ;;
4157     *) as_dir=$as_dir/ ;;
4158   esac
4159     for ac_exec_ext in '' $ac_executable_extensions; do
4160   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_ac_ct_CC="clang"
4162     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166   done
4167 IFS=$as_save_IFS
4168
4169 fi
4170 fi
4171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4172 if test -n "$ac_ct_CC"; then
4173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4174 printf "%s\n" "$ac_ct_CC" >&6; }
4175 else
4176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 printf "%s\n" "no" >&6; }
4178 fi
4179
4180   if test "x$ac_ct_CC" = x; then
4181     CC=""
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189     CC=$ac_ct_CC
4190   fi
4191 else
4192   CC="$ac_cv_prog_CC"
4193 fi
4194
4195 fi
4196
4197
4198 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "no acceptable C compiler found in \$PATH
4201 See \`config.log' for more details" "$LINENO" 5; }
4202
4203 # Provide some information about the compiler.
4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4205 set X $ac_compile
4206 ac_compiler=$2
4207 for ac_option in --version -v -V -qversion -version; do
4208   { { ac_try="$ac_compiler $ac_option >&5"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 printf "%s\n" "$ac_try_echo"; } >&5
4215   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4216   ac_status=$?
4217   if test -s conftest.err; then
4218     sed '10a\
4219 ... rest of stderr output deleted ...
4220          10q' conftest.err >conftest.er1
4221     cat conftest.er1 >&5
4222   fi
4223   rm -f conftest.er1 conftest.err
4224   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225   test $ac_status = 0; }
4226 done
4227
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h.  */
4230
4231 int
4232 main (void)
4233 {
4234
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 ac_clean_files_save=$ac_clean_files
4240 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4241 # Try to create an executable without -o first, disregard a.out.
4242 # It will help us diagnose broken compilers, and finding out an intuition
4243 # of exeext.
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4245 printf %s "checking whether the C compiler works... " >&6; }
4246 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4247
4248 # The possible output files:
4249 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4250
4251 ac_rmfiles=
4252 for ac_file in $ac_files
4253 do
4254   case $ac_file in
4255     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4257   esac
4258 done
4259 rm -f $ac_rmfiles
4260
4261 if { { ac_try="$ac_link_default"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 printf "%s\n" "$ac_try_echo"; } >&5
4268   (eval "$ac_link_default") 2>&5
4269   ac_status=$?
4270   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271   test $ac_status = 0; }
4272 then :
4273   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4274 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4275 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4276 # so that the user can short-circuit this test for compilers unknown to
4277 # Autoconf.
4278 for ac_file in $ac_files ''
4279 do
4280   test -f "$ac_file" || continue
4281   case $ac_file in
4282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4283         ;;
4284     [ab].out )
4285         # We found the default executable, but exeext='' is most
4286         # certainly right.
4287         break;;
4288     *.* )
4289         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4290         then :; else
4291            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4292         fi
4293         # We set ac_cv_exeext here because the later test for it is not
4294         # safe: cross compilers may not add the suffix if given an `-o'
4295         # argument, so we may need to know it at that point already.
4296         # Even if this section looks crufty: it has the advantage of
4297         # actually working.
4298         break;;
4299     * )
4300         break;;
4301   esac
4302 done
4303 test "$ac_cv_exeext" = no && ac_cv_exeext=
4304
4305 else $as_nop
4306   ac_file=''
4307 fi
4308 if test -z "$ac_file"
4309 then :
4310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 printf "%s\n" "no" >&6; }
4312 printf "%s\n" "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error 77 "C compiler cannot create executables
4318 See \`config.log' for more details" "$LINENO" 5; }
4319 else $as_nop
4320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4321 printf "%s\n" "yes" >&6; }
4322 fi
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4324 printf %s "checking for C compiler default output file name... " >&6; }
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4326 printf "%s\n" "$ac_file" >&6; }
4327 ac_exeext=$ac_cv_exeext
4328
4329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4330 ac_clean_files=$ac_clean_files_save
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4332 printf %s "checking for suffix of executables... " >&6; }
4333 if { { ac_try="$ac_link"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 printf "%s\n" "$ac_try_echo"; } >&5
4340   (eval "$ac_link") 2>&5
4341   ac_status=$?
4342   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343   test $ac_status = 0; }
4344 then :
4345   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4346 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4347 # work properly (i.e., refer to `conftest.exe'), while it won't with
4348 # `rm'.
4349 for ac_file in conftest.exe conftest conftest.*; do
4350   test -f "$ac_file" || continue
4351   case $ac_file in
4352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4354           break;;
4355     * ) break;;
4356   esac
4357 done
4358 else $as_nop
4359   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4362 See \`config.log' for more details" "$LINENO" 5; }
4363 fi
4364 rm -f conftest conftest$ac_cv_exeext
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4366 printf "%s\n" "$ac_cv_exeext" >&6; }
4367
4368 rm -f conftest.$ac_ext
4369 EXEEXT=$ac_cv_exeext
4370 ac_exeext=$EXEEXT
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373 #include <stdio.h>
4374 int
4375 main (void)
4376 {
4377 FILE *f = fopen ("conftest.out", "w");
4378  return ferror (f) || fclose (f) != 0;
4379
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 ac_clean_files="$ac_clean_files conftest.out"
4385 # Check that the compiler produces executables we can run.  If not, either
4386 # the compiler is broken, or we cross compile.
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4388 printf %s "checking whether we are cross compiling... " >&6; }
4389 if test "$cross_compiling" != yes; then
4390   { { ac_try="$ac_link"
4391 case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 printf "%s\n" "$ac_try_echo"; } >&5
4397   (eval "$ac_link") 2>&5
4398   ac_status=$?
4399   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; }
4401   if { ac_try='./conftest$ac_cv_exeext'
4402   { { case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 printf "%s\n" "$ac_try_echo"; } >&5
4408   (eval "$ac_try") 2>&5
4409   ac_status=$?
4410   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411   test $ac_status = 0; }; }; then
4412     cross_compiling=no
4413   else
4414     if test "$cross_compiling" = maybe; then
4415         cross_compiling=yes
4416     else
4417         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4418 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4419 as_fn_error 77 "cannot run C compiled programs.
4420 If you meant to cross compile, use \`--host'.
4421 See \`config.log' for more details" "$LINENO" 5; }
4422     fi
4423   fi
4424 fi
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4426 printf "%s\n" "$cross_compiling" >&6; }
4427
4428 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4429 ac_clean_files=$ac_clean_files_save
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4431 printf %s "checking for suffix of object files... " >&6; }
4432 if test ${ac_cv_objext+y}
4433 then :
4434   printf %s "(cached) " >&6
4435 else $as_nop
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438
4439 int
4440 main (void)
4441 {
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.o conftest.obj
4448 if { { ac_try="$ac_compile"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 printf "%s\n" "$ac_try_echo"; } >&5
4455   (eval "$ac_compile") 2>&5
4456   ac_status=$?
4457   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458   test $ac_status = 0; }
4459 then :
4460   for ac_file in conftest.o conftest.obj conftest.*; do
4461   test -f "$ac_file" || continue;
4462   case $ac_file in
4463     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4464     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4465        break;;
4466   esac
4467 done
4468 else $as_nop
4469   printf "%s\n" "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "cannot compute suffix of object files: cannot compile
4475 See \`config.log' for more details" "$LINENO" 5; }
4476 fi
4477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4478 fi
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4480 printf "%s\n" "$ac_cv_objext" >&6; }
4481 OBJEXT=$ac_cv_objext
4482 ac_objext=$OBJEXT
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4484 printf %s "checking whether the compiler supports GNU C... " >&6; }
4485 if test ${ac_cv_c_compiler_gnu+y}
4486 then :
4487   printf %s "(cached) " >&6
4488 else $as_nop
4489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491
4492 int
4493 main (void)
4494 {
4495 #ifndef __GNUC__
4496        choke me
4497 #endif
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"
4504 then :
4505   ac_compiler_gnu=yes
4506 else $as_nop
4507   ac_compiler_gnu=no
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4511
4512 fi
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516
4517 if test $ac_compiler_gnu = yes; then
4518   GCC=yes
4519 else
4520   GCC=
4521 fi
4522 ac_test_CFLAGS=${CFLAGS+y}
4523 ac_save_CFLAGS=$CFLAGS
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525 printf %s "checking whether $CC accepts -g... " >&6; }
4526 if test ${ac_cv_prog_cc_g+y}
4527 then :
4528   printf %s "(cached) " >&6
4529 else $as_nop
4530   ac_save_c_werror_flag=$ac_c_werror_flag
4531    ac_c_werror_flag=yes
4532    ac_cv_prog_cc_g=no
4533    CFLAGS="-g"
4534    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536
4537 int
4538 main (void)
4539 {
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"
4546 then :
4547   ac_cv_prog_cc_g=yes
4548 else $as_nop
4549   CFLAGS=""
4550       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552
4553 int
4554 main (void)
4555 {
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"
4562 then :
4563
4564 else $as_nop
4565   ac_c_werror_flag=$ac_save_c_werror_flag
4566          CFLAGS="-g"
4567          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h.  */
4569
4570 int
4571 main (void)
4572 {
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"
4579 then :
4580   ac_cv_prog_cc_g=yes
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4587    ac_c_werror_flag=$ac_save_c_werror_flag
4588 fi
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4590 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4591 if test $ac_test_CFLAGS; then
4592   CFLAGS=$ac_save_CFLAGS
4593 elif test $ac_cv_prog_cc_g = yes; then
4594   if test "$GCC" = yes; then
4595     CFLAGS="-g -O2"
4596   else
4597     CFLAGS="-g"
4598   fi
4599 else
4600   if test "$GCC" = yes; then
4601     CFLAGS="-O2"
4602   else
4603     CFLAGS=
4604   fi
4605 fi
4606 ac_prog_cc_stdc=no
4607 if test x$ac_prog_cc_stdc = xno
4608 then :
4609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4610 printf %s "checking for $CC option to enable C11 features... " >&6; }
4611 if test ${ac_cv_prog_cc_c11+y}
4612 then :
4613   printf %s "(cached) " >&6
4614 else $as_nop
4615   ac_cv_prog_cc_c11=no
4616 ac_save_CC=$CC
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h.  */
4619 $ac_c_conftest_c11_program
4620 _ACEOF
4621 for ac_arg in '' -std=gnu11
4622 do
4623   CC="$ac_save_CC $ac_arg"
4624   if ac_fn_c_try_compile "$LINENO"
4625 then :
4626   ac_cv_prog_cc_c11=$ac_arg
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.beam
4629   test "x$ac_cv_prog_cc_c11" != "xno" && break
4630 done
4631 rm -f conftest.$ac_ext
4632 CC=$ac_save_CC
4633 fi
4634
4635 if test "x$ac_cv_prog_cc_c11" = xno
4636 then :
4637   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4638 printf "%s\n" "unsupported" >&6; }
4639 else $as_nop
4640   if test "x$ac_cv_prog_cc_c11" = x
4641 then :
4642   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4643 printf "%s\n" "none needed" >&6; }
4644 else $as_nop
4645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4646 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4647      CC="$CC $ac_cv_prog_cc_c11"
4648 fi
4649   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4650   ac_prog_cc_stdc=c11
4651 fi
4652 fi
4653 if test x$ac_prog_cc_stdc = xno
4654 then :
4655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4656 printf %s "checking for $CC option to enable C99 features... " >&6; }
4657 if test ${ac_cv_prog_cc_c99+y}
4658 then :
4659   printf %s "(cached) " >&6
4660 else $as_nop
4661   ac_cv_prog_cc_c99=no
4662 ac_save_CC=$CC
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h.  */
4665 $ac_c_conftest_c99_program
4666 _ACEOF
4667 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4668 do
4669   CC="$ac_save_CC $ac_arg"
4670   if ac_fn_c_try_compile "$LINENO"
4671 then :
4672   ac_cv_prog_cc_c99=$ac_arg
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.beam
4675   test "x$ac_cv_prog_cc_c99" != "xno" && break
4676 done
4677 rm -f conftest.$ac_ext
4678 CC=$ac_save_CC
4679 fi
4680
4681 if test "x$ac_cv_prog_cc_c99" = xno
4682 then :
4683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4684 printf "%s\n" "unsupported" >&6; }
4685 else $as_nop
4686   if test "x$ac_cv_prog_cc_c99" = x
4687 then :
4688   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689 printf "%s\n" "none needed" >&6; }
4690 else $as_nop
4691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4692 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4693      CC="$CC $ac_cv_prog_cc_c99"
4694 fi
4695   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4696   ac_prog_cc_stdc=c99
4697 fi
4698 fi
4699 if test x$ac_prog_cc_stdc = xno
4700 then :
4701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4702 printf %s "checking for $CC option to enable C89 features... " >&6; }
4703 if test ${ac_cv_prog_cc_c89+y}
4704 then :
4705   printf %s "(cached) " >&6
4706 else $as_nop
4707   ac_cv_prog_cc_c89=no
4708 ac_save_CC=$CC
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h.  */
4711 $ac_c_conftest_c89_program
4712 _ACEOF
4713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4714 do
4715   CC="$ac_save_CC $ac_arg"
4716   if ac_fn_c_try_compile "$LINENO"
4717 then :
4718   ac_cv_prog_cc_c89=$ac_arg
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.beam
4721   test "x$ac_cv_prog_cc_c89" != "xno" && break
4722 done
4723 rm -f conftest.$ac_ext
4724 CC=$ac_save_CC
4725 fi
4726
4727 if test "x$ac_cv_prog_cc_c89" = xno
4728 then :
4729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4730 printf "%s\n" "unsupported" >&6; }
4731 else $as_nop
4732   if test "x$ac_cv_prog_cc_c89" = x
4733 then :
4734   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4735 printf "%s\n" "none needed" >&6; }
4736 else $as_nop
4737   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4738 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4739      CC="$CC $ac_cv_prog_cc_c89"
4740 fi
4741   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4742   ac_prog_cc_stdc=c89
4743 fi
4744 fi
4745
4746 ac_ext=c
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4753 printf %s "checking for a sed that does not truncate output... " >&6; }
4754 if test ${lt_cv_path_SED+y}
4755 then :
4756   printf %s "(cached) " >&6
4757 else $as_nop
4758   # Loop through the user's path and test for sed and gsed.
4759 # Then use that list of sed's as ones to test for truncation.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765   for lt_ac_prog in sed gsed; do
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4768         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4769       fi
4770     done
4771   done
4772 done
4773 lt_ac_max=0
4774 lt_ac_count=0
4775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4776 # along with /bin/sed that truncates output.
4777 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4778   test ! -f $lt_ac_sed && continue
4779   cat /dev/null > conftest.in
4780   lt_ac_count=0
4781   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4782   # Check for GNU sed and select it if it is found.
4783   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4784     lt_cv_path_SED=$lt_ac_sed
4785     break
4786   fi
4787   while true; do
4788     cat conftest.in conftest.in >conftest.tmp
4789     mv conftest.tmp conftest.in
4790     cp conftest.in conftest.nl
4791     echo >>conftest.nl
4792     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4793     cmp -s conftest.out conftest.nl || break
4794     # 10000 chars as input seems more than enough
4795     test $lt_ac_count -gt 10 && break
4796     lt_ac_count=`expr $lt_ac_count + 1`
4797     if test $lt_ac_count -gt $lt_ac_max; then
4798       lt_ac_max=$lt_ac_count
4799       lt_cv_path_SED=$lt_ac_sed
4800     fi
4801   done
4802 done
4803
4804 fi
4805
4806 SED=$lt_cv_path_SED
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4808 printf "%s\n" "$SED" >&6; }
4809
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4811 printf %s "checking for grep that handles long lines and -e... " >&6; }
4812 if test ${ac_cv_path_GREP+y}
4813 then :
4814   printf %s "(cached) " >&6
4815 else $as_nop
4816   if test -z "$GREP"; then
4817   ac_path_GREP_found=false
4818   # Loop through the user's path and test for each of PROGNAME-LIST
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4821 do
4822   IFS=$as_save_IFS
4823   case $as_dir in #(((
4824     '') as_dir=./ ;;
4825     */) ;;
4826     *) as_dir=$as_dir/ ;;
4827   esac
4828     for ac_prog in grep ggrep
4829    do
4830     for ac_exec_ext in '' $ac_executable_extensions; do
4831       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4832       as_fn_executable_p "$ac_path_GREP" || continue
4833 # Check for GNU ac_path_GREP and select it if it is found.
4834   # Check for GNU $ac_path_GREP
4835 case `"$ac_path_GREP" --version 2>&1` in
4836 *GNU*)
4837   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4838 *)
4839   ac_count=0
4840   printf %s 0123456789 >"conftest.in"
4841   while :
4842   do
4843     cat "conftest.in" "conftest.in" >"conftest.tmp"
4844     mv "conftest.tmp" "conftest.in"
4845     cp "conftest.in" "conftest.nl"
4846     printf "%s\n" 'GREP' >> "conftest.nl"
4847     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849     as_fn_arith $ac_count + 1 && ac_count=$as_val
4850     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4851       # Best one so far, save it but keep looking for a better one
4852       ac_cv_path_GREP="$ac_path_GREP"
4853       ac_path_GREP_max=$ac_count
4854     fi
4855     # 10*(2^10) chars as input seems more than enough
4856     test $ac_count -gt 10 && break
4857   done
4858   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861       $ac_path_GREP_found && break 3
4862     done
4863   done
4864   done
4865 IFS=$as_save_IFS
4866   if test -z "$ac_cv_path_GREP"; then
4867     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868   fi
4869 else
4870   ac_cv_path_GREP=$GREP
4871 fi
4872
4873 fi
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4875 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4876  GREP="$ac_cv_path_GREP"
4877
4878
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4880 printf %s "checking for egrep... " >&6; }
4881 if test ${ac_cv_path_EGREP+y}
4882 then :
4883   printf %s "(cached) " >&6
4884 else $as_nop
4885   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4886    then ac_cv_path_EGREP="$GREP -E"
4887    else
4888      if test -z "$EGREP"; then
4889   ac_path_EGREP_found=false
4890   # Loop through the user's path and test for each of PROGNAME-LIST
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893 do
4894   IFS=$as_save_IFS
4895   case $as_dir in #(((
4896     '') as_dir=./ ;;
4897     */) ;;
4898     *) as_dir=$as_dir/ ;;
4899   esac
4900     for ac_prog in egrep
4901    do
4902     for ac_exec_ext in '' $ac_executable_extensions; do
4903       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4904       as_fn_executable_p "$ac_path_EGREP" || continue
4905 # Check for GNU ac_path_EGREP and select it if it is found.
4906   # Check for GNU $ac_path_EGREP
4907 case `"$ac_path_EGREP" --version 2>&1` in
4908 *GNU*)
4909   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4910 *)
4911   ac_count=0
4912   printf %s 0123456789 >"conftest.in"
4913   while :
4914   do
4915     cat "conftest.in" "conftest.in" >"conftest.tmp"
4916     mv "conftest.tmp" "conftest.in"
4917     cp "conftest.in" "conftest.nl"
4918     printf "%s\n" 'EGREP' >> "conftest.nl"
4919     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921     as_fn_arith $ac_count + 1 && ac_count=$as_val
4922     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4923       # Best one so far, save it but keep looking for a better one
4924       ac_cv_path_EGREP="$ac_path_EGREP"
4925       ac_path_EGREP_max=$ac_count
4926     fi
4927     # 10*(2^10) chars as input seems more than enough
4928     test $ac_count -gt 10 && break
4929   done
4930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4931 esac
4932
4933       $ac_path_EGREP_found && break 3
4934     done
4935   done
4936   done
4937 IFS=$as_save_IFS
4938   if test -z "$ac_cv_path_EGREP"; then
4939     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4940   fi
4941 else
4942   ac_cv_path_EGREP=$EGREP
4943 fi
4944
4945    fi
4946 fi
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4948 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4949  EGREP="$ac_cv_path_EGREP"
4950
4951
4952
4953 # Check whether --with-gnu-ld was given.
4954 if test ${with_gnu_ld+y}
4955 then :
4956   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4957 else $as_nop
4958   with_gnu_ld=no
4959 fi
4960
4961 ac_prog=ld
4962 if test "$GCC" = yes; then
4963   # Check if gcc -print-prog-name=ld gives a path.
4964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4965 printf %s "checking for ld used by $CC... " >&6; }
4966   case $host in
4967   *-*-mingw*)
4968     # gcc leaves a trailing carriage return which upsets mingw
4969     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4970   *)
4971     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4972   esac
4973   case $ac_prog in
4974     # Accept absolute paths.
4975     [\\/]* | ?:[\\/]*)
4976       re_direlt='/[^/][^/]*/\.\./'
4977       # Canonicalize the pathname of ld
4978       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4979       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4980         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4981       done
4982       test -z "$LD" && LD="$ac_prog"
4983       ;;
4984   "")
4985     # If it fails, then pretend we aren't using GCC.
4986     ac_prog=ld
4987     ;;
4988   *)
4989     # If it is relative, then search for the first ld in PATH.
4990     with_gnu_ld=unknown
4991     ;;
4992   esac
4993 elif test "$with_gnu_ld" = yes; then
4994   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4995 printf %s "checking for GNU ld... " >&6; }
4996 else
4997   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4998 printf %s "checking for non-GNU ld... " >&6; }
4999 fi
5000 if test ${lt_cv_path_LD+y}
5001 then :
5002   printf %s "(cached) " >&6
5003 else $as_nop
5004   if test -z "$LD"; then
5005   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5006   for ac_dir in $PATH; do
5007     IFS="$lt_save_ifs"
5008     test -z "$ac_dir" && ac_dir=.
5009     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5010       lt_cv_path_LD="$ac_dir/$ac_prog"
5011       # Check to see if the program is GNU ld.  I'd rather use --version,
5012       # but apparently some variants of GNU ld only accept -v.
5013       # Break only if it was the GNU/non-GNU ld that we prefer.
5014       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5015       *GNU* | *'with BFD'*)
5016         test "$with_gnu_ld" != no && break
5017         ;;
5018       *)
5019         test "$with_gnu_ld" != yes && break
5020         ;;
5021       esac
5022     fi
5023   done
5024   IFS="$lt_save_ifs"
5025 else
5026   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5027 fi
5028 fi
5029
5030 LD="$lt_cv_path_LD"
5031 if test -n "$LD"; then
5032   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5033 printf "%s\n" "$LD" >&6; }
5034 else
5035   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 printf "%s\n" "no" >&6; }
5037 fi
5038 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5040 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5041 if test ${lt_cv_prog_gnu_ld+y}
5042 then :
5043   printf %s "(cached) " >&6
5044 else $as_nop
5045   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5046 case `$LD -v 2>&1 </dev/null` in
5047 *GNU* | *'with BFD'*)
5048   lt_cv_prog_gnu_ld=yes
5049   ;;
5050 *)
5051   lt_cv_prog_gnu_ld=no
5052   ;;
5053 esac
5054 fi
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5056 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5057 with_gnu_ld=$lt_cv_prog_gnu_ld
5058
5059
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5061 printf %s "checking for $LD option to reload object files... " >&6; }
5062 if test ${lt_cv_ld_reload_flag+y}
5063 then :
5064   printf %s "(cached) " >&6
5065 else $as_nop
5066   lt_cv_ld_reload_flag='-r'
5067 fi
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5069 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5070 reload_flag=$lt_cv_ld_reload_flag
5071 case $reload_flag in
5072 "" | " "*) ;;
5073 *) reload_flag=" $reload_flag" ;;
5074 esac
5075 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076 case $host_os in
5077   darwin*)
5078     if test "$GCC" = yes; then
5079       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5080     else
5081       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082     fi
5083     ;;
5084 esac
5085
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5087 printf %s "checking for BSD-compatible nm... " >&6; }
5088 if test ${lt_cv_path_NM+y}
5089 then :
5090   printf %s "(cached) " >&6
5091 else $as_nop
5092   if test -n "$NM"; then
5093   # Let the user override the test.
5094   lt_cv_path_NM="$NM"
5095 else
5096   lt_nm_to_check="${ac_tool_prefix}nm"
5097   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5098     lt_nm_to_check="$lt_nm_to_check nm"
5099   fi
5100   for lt_tmp_nm in $lt_nm_to_check; do
5101     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5103       IFS="$lt_save_ifs"
5104       test -z "$ac_dir" && ac_dir=.
5105       tmp_nm="$ac_dir/$lt_tmp_nm"
5106       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5107         # Check to see if the nm accepts a BSD-compat flag.
5108         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5109         #   nm: unknown option "B" ignored
5110         # Tru64's nm complains that /dev/null is an invalid object file
5111         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5112         */dev/null* | *'Invalid file or object type'*)
5113           lt_cv_path_NM="$tmp_nm -B"
5114           break
5115           ;;
5116         *)
5117           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5118           */dev/null*)
5119             lt_cv_path_NM="$tmp_nm -p"
5120             break
5121             ;;
5122           *)
5123             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5124             continue # so that we can try to find one that supports BSD flags
5125             ;;
5126           esac
5127           ;;
5128         esac
5129       fi
5130     done
5131     IFS="$lt_save_ifs"
5132   done
5133   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5134 fi
5135 fi
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5137 printf "%s\n" "$lt_cv_path_NM" >&6; }
5138 NM="$lt_cv_path_NM"
5139
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5141 printf %s "checking whether ln -s works... " >&6; }
5142 LN_S=$as_ln_s
5143 if test "$LN_S" = "ln -s"; then
5144   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145 printf "%s\n" "yes" >&6; }
5146 else
5147   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5148 printf "%s\n" "no, using $LN_S" >&6; }
5149 fi
5150
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5152 printf %s "checking how to recognise dependent libraries... " >&6; }
5153 if test ${lt_cv_deplibs_check_method+y}
5154 then :
5155   printf %s "(cached) " >&6
5156 else $as_nop
5157   lt_cv_file_magic_cmd='$MAGIC_CMD'
5158 lt_cv_file_magic_test_file=
5159 lt_cv_deplibs_check_method='unknown'
5160 # Need to set the preceding variable on all platforms that support
5161 # interlibrary dependencies.
5162 # 'none' -- dependencies not supported.
5163 # `unknown' -- same as none, but documents that we really don't know.
5164 # 'pass_all' -- all dependencies passed with no checks.
5165 # 'test_compile' -- check by making test program.
5166 # 'file_magic [[regex]]' -- check by looking for files in library path
5167 # which responds to the $file_magic_cmd with a given extended regex.
5168 # If you have `file' or equivalent on your system and you're not sure
5169 # whether `pass_all' will *always* work, you probably want this one.
5170
5171 case $host_os in
5172 aix4* | aix5*)
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 beos*)
5177   lt_cv_deplibs_check_method=pass_all
5178   ;;
5179
5180 bsdi[45]*)
5181   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5182   lt_cv_file_magic_cmd='/usr/bin/file -L'
5183   lt_cv_file_magic_test_file=/shlib/libc.so
5184   ;;
5185
5186 cygwin*)
5187   # func_win32_libid is a shell function defined in ltmain.sh
5188   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189   lt_cv_file_magic_cmd='func_win32_libid'
5190   ;;
5191
5192 mingw* | pw32*)
5193   # Base MSYS/MinGW do not provide the 'file' command needed by
5194   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5195   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5196   lt_cv_file_magic_cmd='$OBJDUMP -f'
5197   ;;
5198
5199 darwin* | rhapsody*)
5200   lt_cv_deplibs_check_method=pass_all
5201   ;;
5202
5203 freebsd* | kfreebsd*-gnu | dragonfly*)
5204   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5205     case $host_cpu in
5206     i*86 )
5207       # Not sure whether the presence of OpenBSD here was a mistake.
5208       # Let's accept both of them until this is cleared up.
5209       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5210       lt_cv_file_magic_cmd=/usr/bin/file
5211       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5212       ;;
5213     esac
5214   else
5215     lt_cv_deplibs_check_method=pass_all
5216   fi
5217   ;;
5218
5219 gnu*)
5220   lt_cv_deplibs_check_method=pass_all
5221   ;;
5222
5223 hpux10.20* | hpux11*)
5224   lt_cv_file_magic_cmd=/usr/bin/file
5225   case $host_cpu in
5226   ia64*)
5227     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5228     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5229     ;;
5230   hppa*64*)
5231     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]'
5232     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5233     ;;
5234   *)
5235     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5236     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5237     ;;
5238   esac
5239   ;;
5240
5241 interix3*)
5242   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5243   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5244   ;;
5245
5246 irix5* | irix6* | nonstopux*)
5247   case $LD in
5248   *-32|*"-32 ") libmagic=32-bit;;
5249   *-n32|*"-n32 ") libmagic=N32;;
5250   *-64|*"-64 ") libmagic=64-bit;;
5251   *) libmagic=never-match;;
5252   esac
5253   lt_cv_deplibs_check_method=pass_all
5254   ;;
5255
5256 # This must be Linux ELF.
5257 linux*)
5258   lt_cv_deplibs_check_method=pass_all
5259   ;;
5260
5261 netbsd*)
5262   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5264   else
5265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5266   fi
5267   ;;
5268
5269 newos6*)
5270   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5271   lt_cv_file_magic_cmd=/usr/bin/file
5272   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5273   ;;
5274
5275 nto-qnx*)
5276   lt_cv_deplibs_check_method=unknown
5277   ;;
5278
5279 openbsd*)
5280   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5281     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5282   else
5283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5284   fi
5285   ;;
5286
5287 osf3* | osf4* | osf5*)
5288   lt_cv_deplibs_check_method=pass_all
5289   ;;
5290
5291 solaris*)
5292   lt_cv_deplibs_check_method=pass_all
5293   ;;
5294
5295 sysv4 | sysv4.3*)
5296   case $host_vendor in
5297   motorola)
5298     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]'
5299     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5300     ;;
5301   ncr)
5302     lt_cv_deplibs_check_method=pass_all
5303     ;;
5304   sequent)
5305     lt_cv_file_magic_cmd='/bin/file'
5306     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5307     ;;
5308   sni)
5309     lt_cv_file_magic_cmd='/bin/file'
5310     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5311     lt_cv_file_magic_test_file=/lib/libc.so
5312     ;;
5313   siemens)
5314     lt_cv_deplibs_check_method=pass_all
5315     ;;
5316   pc)
5317     lt_cv_deplibs_check_method=pass_all
5318     ;;
5319   esac
5320   ;;
5321
5322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5323   lt_cv_deplibs_check_method=pass_all
5324   ;;
5325 esac
5326
5327 fi
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5329 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5330 file_magic_cmd=$lt_cv_file_magic_cmd
5331 deplibs_check_method=$lt_cv_deplibs_check_method
5332 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5333
5334
5335
5336
5337 # If no C compiler was specified, use CC.
5338 LTCC=${LTCC-"$CC"}
5339
5340 # If no C compiler flags were specified, use CFLAGS.
5341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5342
5343 # Allow CC to be a program name with arguments.
5344 compiler=$CC
5345
5346
5347 # Check whether --enable-libtool-lock was given.
5348 if test ${enable_libtool_lock+y}
5349 then :
5350   enableval=$enable_libtool_lock;
5351 fi
5352
5353 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5354
5355 # Some flags need to be propagated to the compiler or linker for good
5356 # libtool support.
5357 case $host in
5358 ia64-*-hpux*)
5359   # Find out which ABI we are using.
5360   echo 'int i;' > conftest.$ac_ext
5361   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5362   (eval $ac_compile) 2>&5
5363   ac_status=$?
5364   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5365   test $ac_status = 0; }; then
5366     case `/usr/bin/file conftest.$ac_objext` in
5367     *ELF-32*)
5368       HPUX_IA64_MODE="32"
5369       ;;
5370     *ELF-64*)
5371       HPUX_IA64_MODE="64"
5372       ;;
5373     esac
5374   fi
5375   rm -rf conftest*
5376   ;;
5377 *-*-irix6*)
5378   # Find out which ABI we are using.
5379   echo '#line 5379 "configure"' > conftest.$ac_ext
5380   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5381   (eval $ac_compile) 2>&5
5382   ac_status=$?
5383   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5384   test $ac_status = 0; }; then
5385    if test "$lt_cv_prog_gnu_ld" = yes; then
5386     case `/usr/bin/file conftest.$ac_objext` in
5387     *32-bit*)
5388       LD="${LD-ld} -melf32bsmip"
5389       ;;
5390     *N32*)
5391       LD="${LD-ld} -melf32bmipn32"
5392       ;;
5393     *64-bit*)
5394       LD="${LD-ld} -melf64bmip"
5395       ;;
5396     esac
5397    else
5398     case `/usr/bin/file conftest.$ac_objext` in
5399     *32-bit*)
5400       LD="${LD-ld} -32"
5401       ;;
5402     *N32*)
5403       LD="${LD-ld} -n32"
5404       ;;
5405     *64-bit*)
5406       LD="${LD-ld} -64"
5407       ;;
5408     esac
5409    fi
5410   fi
5411   rm -rf conftest*
5412   ;;
5413
5414 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5415   # Find out which ABI we are using.
5416   echo 'int i;' > conftest.$ac_ext
5417   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5418   (eval $ac_compile) 2>&5
5419   ac_status=$?
5420   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421   test $ac_status = 0; }; then
5422     case `/usr/bin/file conftest.o` in
5423     *32-bit*)
5424       case $host in
5425         x86_64-*linux*)
5426           LD="${LD-ld} -m elf_i386"
5427           ;;
5428         ppc64-*linux*|powerpc64-*linux*)
5429           LD="${LD-ld} -m elf32ppclinux"
5430           ;;
5431         s390x-*linux*)
5432           LD="${LD-ld} -m elf_s390"
5433           ;;
5434         sparc64-*linux*)
5435           LD="${LD-ld} -m elf32_sparc"
5436           ;;
5437       esac
5438       ;;
5439     *64-bit*)
5440       case $host in
5441         x86_64-*linux*)
5442           LD="${LD-ld} -m elf_x86_64"
5443           ;;
5444         ppc*-*linux*|powerpc*-*linux*)
5445           LD="${LD-ld} -m elf64ppc"
5446           ;;
5447         s390*-*linux*)
5448           LD="${LD-ld} -m elf64_s390"
5449           ;;
5450         sparc*-*linux*)
5451           LD="${LD-ld} -m elf64_sparc"
5452           ;;
5453       esac
5454       ;;
5455     esac
5456   fi
5457   rm -rf conftest*
5458   ;;
5459
5460 *-*-sco3.2v5*)
5461   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5462   SAVE_CFLAGS="$CFLAGS"
5463   CFLAGS="$CFLAGS -belf"
5464   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5465 printf %s "checking whether the C compiler needs -belf... " >&6; }
5466 if test ${lt_cv_cc_needs_belf+y}
5467 then :
5468   printf %s "(cached) " >&6
5469 else $as_nop
5470   ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478
5479 int
5480 main (void)
5481 {
5482
5483   ;
5484   return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_c_try_link "$LINENO"
5488 then :
5489   lt_cv_cc_needs_belf=yes
5490 else $as_nop
5491   lt_cv_cc_needs_belf=no
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5494     conftest$ac_exeext conftest.$ac_ext
5495      ac_ext=c
5496 ac_cpp='$CPP $CPPFLAGS'
5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500
5501 fi
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5503 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
5504   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5505     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5506     CFLAGS="$SAVE_CFLAGS"
5507   fi
5508   ;;
5509 sparc*-*solaris*)
5510   # Find out which ABI we are using.
5511   echo 'int i;' > conftest.$ac_ext
5512   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5513   (eval $ac_compile) 2>&5
5514   ac_status=$?
5515   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5516   test $ac_status = 0; }; then
5517     case `/usr/bin/file conftest.o` in
5518     *64-bit*)
5519       case $lt_cv_prog_gnu_ld in
5520       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5521       *)    LD="${LD-ld} -64" ;;
5522       esac
5523       ;;
5524     esac
5525   fi
5526   rm -rf conftest*
5527   ;;
5528
5529
5530 esac
5531
5532 need_locks="$enable_libtool_lock"
5533
5534
5535 ac_header= ac_cache=
5536 for ac_item in $ac_header_c_list
5537 do
5538   if test $ac_cache; then
5539     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5540     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5541       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5542     fi
5543     ac_header= ac_cache=
5544   elif test $ac_header; then
5545     ac_cache=$ac_item
5546   else
5547     ac_header=$ac_item
5548   fi
5549 done
5550
5551
5552
5553
5554
5555
5556
5557
5558 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5559 then :
5560
5561 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5562
5563 fi
5564 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5565 if test "x$ac_cv_header_dlfcn_h" = xyes
5566 then :
5567   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
5568
5569 fi
5570
5571
5572
5573
5574
5575
5576
5577 ac_ext=cpp
5578 ac_cpp='$CXXCPP $CPPFLAGS'
5579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582 if test -z "$CXX"; then
5583   if test -n "$CCC"; then
5584     CXX=$CCC
5585   else
5586     if test -n "$ac_tool_prefix"; then
5587   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5588   do
5589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 printf %s "checking for $ac_word... " >&6; }
5593 if test ${ac_cv_prog_CXX+y}
5594 then :
5595   printf %s "(cached) " >&6
5596 else $as_nop
5597   if test -n "$CXX"; then
5598   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   case $as_dir in #(((
5605     '') as_dir=./ ;;
5606     */) ;;
5607     *) as_dir=$as_dir/ ;;
5608   esac
5609     for ac_exec_ext in '' $ac_executable_extensions; do
5610   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5611     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5612     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5613     break 2
5614   fi
5615 done
5616   done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
5621 CXX=$ac_cv_prog_CXX
5622 if test -n "$CXX"; then
5623   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5624 printf "%s\n" "$CXX" >&6; }
5625 else
5626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 printf "%s\n" "no" >&6; }
5628 fi
5629
5630
5631     test -n "$CXX" && break
5632   done
5633 fi
5634 if test -z "$CXX"; then
5635   ac_ct_CXX=$CXX
5636   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5637 do
5638   # Extract the first word of "$ac_prog", so it can be a program name with args.
5639 set dummy $ac_prog; ac_word=$2
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 printf %s "checking for $ac_word... " >&6; }
5642 if test ${ac_cv_prog_ac_ct_CXX+y}
5643 then :
5644   printf %s "(cached) " >&6
5645 else $as_nop
5646   if test -n "$ac_ct_CXX"; then
5647   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652   IFS=$as_save_IFS
5653   case $as_dir in #(((
5654     '') as_dir=./ ;;
5655     */) ;;
5656     *) as_dir=$as_dir/ ;;
5657   esac
5658     for ac_exec_ext in '' $ac_executable_extensions; do
5659   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5660     ac_cv_prog_ac_ct_CXX="$ac_prog"
5661     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665   done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5671 if test -n "$ac_ct_CXX"; then
5672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5673 printf "%s\n" "$ac_ct_CXX" >&6; }
5674 else
5675   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 printf "%s\n" "no" >&6; }
5677 fi
5678
5679
5680   test -n "$ac_ct_CXX" && break
5681 done
5682
5683   if test "x$ac_ct_CXX" = x; then
5684     CXX="g++"
5685   else
5686     case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692     CXX=$ac_ct_CXX
5693   fi
5694 fi
5695
5696   fi
5697 fi
5698 # Provide some information about the compiler.
5699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5700 set X $ac_compile
5701 ac_compiler=$2
5702 for ac_option in --version -v -V -qversion; do
5703   { { ac_try="$ac_compiler $ac_option >&5"
5704 case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709 printf "%s\n" "$ac_try_echo"; } >&5
5710   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5711   ac_status=$?
5712   if test -s conftest.err; then
5713     sed '10a\
5714 ... rest of stderr output deleted ...
5715          10q' conftest.err >conftest.er1
5716     cat conftest.er1 >&5
5717   fi
5718   rm -f conftest.er1 conftest.err
5719   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720   test $ac_status = 0; }
5721 done
5722
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5724 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5725 if test ${ac_cv_cxx_compiler_gnu+y}
5726 then :
5727   printf %s "(cached) " >&6
5728 else $as_nop
5729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h.  */
5731
5732 int
5733 main (void)
5734 {
5735 #ifndef __GNUC__
5736        choke me
5737 #endif
5738
5739   ;
5740   return 0;
5741 }
5742 _ACEOF
5743 if ac_fn_cxx_try_compile "$LINENO"
5744 then :
5745   ac_compiler_gnu=yes
5746 else $as_nop
5747   ac_compiler_gnu=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5750 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5751
5752 fi
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5754 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756
5757 if test $ac_compiler_gnu = yes; then
5758   GXX=yes
5759 else
5760   GXX=
5761 fi
5762 ac_test_CXXFLAGS=${CXXFLAGS+y}
5763 ac_save_CXXFLAGS=$CXXFLAGS
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5765 printf %s "checking whether $CXX accepts -g... " >&6; }
5766 if test ${ac_cv_prog_cxx_g+y}
5767 then :
5768   printf %s "(cached) " >&6
5769 else $as_nop
5770   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5771    ac_cxx_werror_flag=yes
5772    ac_cv_prog_cxx_g=no
5773    CXXFLAGS="-g"
5774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h.  */
5776
5777 int
5778 main (void)
5779 {
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_cxx_try_compile "$LINENO"
5786 then :
5787   ac_cv_prog_cxx_g=yes
5788 else $as_nop
5789   CXXFLAGS=""
5790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h.  */
5792
5793 int
5794 main (void)
5795 {
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 if ac_fn_cxx_try_compile "$LINENO"
5802 then :
5803
5804 else $as_nop
5805   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5806          CXXFLAGS="-g"
5807          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h.  */
5809
5810 int
5811 main (void)
5812 {
5813
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_cxx_try_compile "$LINENO"
5819 then :
5820   ac_cv_prog_cxx_g=yes
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5827    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5828 fi
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5830 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5831 if test $ac_test_CXXFLAGS; then
5832   CXXFLAGS=$ac_save_CXXFLAGS
5833 elif test $ac_cv_prog_cxx_g = yes; then
5834   if test "$GXX" = yes; then
5835     CXXFLAGS="-g -O2"
5836   else
5837     CXXFLAGS="-g"
5838   fi
5839 else
5840   if test "$GXX" = yes; then
5841     CXXFLAGS="-O2"
5842   else
5843     CXXFLAGS=
5844   fi
5845 fi
5846 ac_prog_cxx_stdcxx=no
5847 if test x$ac_prog_cxx_stdcxx = xno
5848 then :
5849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5850 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5851 if test ${ac_cv_prog_cxx_11+y}
5852 then :
5853   printf %s "(cached) " >&6
5854 else $as_nop
5855   ac_cv_prog_cxx_11=no
5856 ac_save_CXX=$CXX
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h.  */
5859 $ac_cxx_conftest_cxx11_program
5860 _ACEOF
5861 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5862 do
5863   CXX="$ac_save_CXX $ac_arg"
5864   if ac_fn_cxx_try_compile "$LINENO"
5865 then :
5866   ac_cv_prog_cxx_cxx11=$ac_arg
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext conftest.beam
5869   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5870 done
5871 rm -f conftest.$ac_ext
5872 CXX=$ac_save_CXX
5873 fi
5874
5875 if test "x$ac_cv_prog_cxx_cxx11" = xno
5876 then :
5877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5878 printf "%s\n" "unsupported" >&6; }
5879 else $as_nop
5880   if test "x$ac_cv_prog_cxx_cxx11" = x
5881 then :
5882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5883 printf "%s\n" "none needed" >&6; }
5884 else $as_nop
5885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5886 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5887      CXX="$CXX $ac_cv_prog_cxx_cxx11"
5888 fi
5889   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5890   ac_prog_cxx_stdcxx=cxx11
5891 fi
5892 fi
5893 if test x$ac_prog_cxx_stdcxx = xno
5894 then :
5895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5896 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5897 if test ${ac_cv_prog_cxx_98+y}
5898 then :
5899   printf %s "(cached) " >&6
5900 else $as_nop
5901   ac_cv_prog_cxx_98=no
5902 ac_save_CXX=$CXX
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h.  */
5905 $ac_cxx_conftest_cxx98_program
5906 _ACEOF
5907 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5908 do
5909   CXX="$ac_save_CXX $ac_arg"
5910   if ac_fn_cxx_try_compile "$LINENO"
5911 then :
5912   ac_cv_prog_cxx_cxx98=$ac_arg
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.beam
5915   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5916 done
5917 rm -f conftest.$ac_ext
5918 CXX=$ac_save_CXX
5919 fi
5920
5921 if test "x$ac_cv_prog_cxx_cxx98" = xno
5922 then :
5923   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5924 printf "%s\n" "unsupported" >&6; }
5925 else $as_nop
5926   if test "x$ac_cv_prog_cxx_cxx98" = x
5927 then :
5928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5929 printf "%s\n" "none needed" >&6; }
5930 else $as_nop
5931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5932 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5933      CXX="$CXX $ac_cv_prog_cxx_cxx98"
5934 fi
5935   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5936   ac_prog_cxx_stdcxx=cxx98
5937 fi
5938 fi
5939
5940 ac_ext=cpp
5941 ac_cpp='$CXXCPP $CPPFLAGS'
5942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945
5946
5947
5948 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5949     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5950     (test "X$CXX" != "Xg++"))) ; then
5951   ac_ext=cpp
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5957 printf %s "checking how to run the C++ preprocessor... " >&6; }
5958 if test -z "$CXXCPP"; then
5959   if test ${ac_cv_prog_CXXCPP+y}
5960 then :
5961   printf %s "(cached) " >&6
5962 else $as_nop
5963       # Double quotes because $CXX needs to be expanded
5964     for CXXCPP in "$CXX -E" cpp /lib/cpp
5965     do
5966       ac_preproc_ok=false
5967 for ac_cxx_preproc_warn_flag in '' yes
5968 do
5969   # Use a header file that comes with gcc, so configuring glibc
5970   # with a fresh cross-compiler works.
5971   # On the NeXT, cc -E runs the code through the compiler's parser,
5972   # not just through cpp. "Syntax error" is here to catch this case.
5973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h.  */
5975 #include <limits.h>
5976                      Syntax error
5977 _ACEOF
5978 if ac_fn_cxx_try_cpp "$LINENO"
5979 then :
5980
5981 else $as_nop
5982   # Broken: fails on valid input.
5983 continue
5984 fi
5985 rm -f conftest.err conftest.i conftest.$ac_ext
5986
5987   # OK, works on sane cases.  Now check whether nonexistent headers
5988   # can be detected and how.
5989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h.  */
5991 #include <ac_nonexistent.h>
5992 _ACEOF
5993 if ac_fn_cxx_try_cpp "$LINENO"
5994 then :
5995   # Broken: success on invalid input.
5996 continue
5997 else $as_nop
5998   # Passes both tests.
5999 ac_preproc_ok=:
6000 break
6001 fi
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6003
6004 done
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.i conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok
6008 then :
6009   break
6010 fi
6011
6012     done
6013     ac_cv_prog_CXXCPP=$CXXCPP
6014
6015 fi
6016   CXXCPP=$ac_cv_prog_CXXCPP
6017 else
6018   ac_cv_prog_CXXCPP=$CXXCPP
6019 fi
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6021 printf "%s\n" "$CXXCPP" >&6; }
6022 ac_preproc_ok=false
6023 for ac_cxx_preproc_warn_flag in '' yes
6024 do
6025   # Use a header file that comes with gcc, so configuring glibc
6026   # with a fresh cross-compiler works.
6027   # On the NeXT, cc -E runs the code through the compiler's parser,
6028   # not just through cpp. "Syntax error" is here to catch this case.
6029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h.  */
6031 #include <limits.h>
6032                      Syntax error
6033 _ACEOF
6034 if ac_fn_cxx_try_cpp "$LINENO"
6035 then :
6036
6037 else $as_nop
6038   # Broken: fails on valid input.
6039 continue
6040 fi
6041 rm -f conftest.err conftest.i conftest.$ac_ext
6042
6043   # OK, works on sane cases.  Now check whether nonexistent headers
6044   # can be detected and how.
6045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h.  */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if ac_fn_cxx_try_cpp "$LINENO"
6050 then :
6051   # Broken: success on invalid input.
6052 continue
6053 else $as_nop
6054   # Passes both tests.
6055 ac_preproc_ok=:
6056 break
6057 fi
6058 rm -f conftest.err conftest.i conftest.$ac_ext
6059
6060 done
6061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6062 rm -f conftest.i conftest.err conftest.$ac_ext
6063 if $ac_preproc_ok
6064 then :
6065
6066 else $as_nop
6067   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6069 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6070 See \`config.log' for more details" "$LINENO" 5; }
6071 fi
6072
6073 ac_ext=cpp
6074 ac_cpp='$CXXCPP $CPPFLAGS'
6075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6078
6079 fi
6080
6081
6082 ac_ext=f
6083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6086 if test -n "$ac_tool_prefix"; then
6087   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
6088   do
6089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 printf %s "checking for $ac_word... " >&6; }
6093 if test ${ac_cv_prog_F77+y}
6094 then :
6095   printf %s "(cached) " >&6
6096 else $as_nop
6097   if test -n "$F77"; then
6098   ac_cv_prog_F77="$F77" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   case $as_dir in #(((
6105     '') as_dir=./ ;;
6106     */) ;;
6107     *) as_dir=$as_dir/ ;;
6108   esac
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6111     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6112     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116   done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 F77=$ac_cv_prog_F77
6122 if test -n "$F77"; then
6123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6124 printf "%s\n" "$F77" >&6; }
6125 else
6126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 printf "%s\n" "no" >&6; }
6128 fi
6129
6130
6131     test -n "$F77" && break
6132   done
6133 fi
6134 if test -z "$F77"; then
6135   ac_ct_F77=$F77
6136   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
6137 do
6138   # Extract the first word of "$ac_prog", so it can be a program name with args.
6139 set dummy $ac_prog; ac_word=$2
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 printf %s "checking for $ac_word... " >&6; }
6142 if test ${ac_cv_prog_ac_ct_F77+y}
6143 then :
6144   printf %s "(cached) " >&6
6145 else $as_nop
6146   if test -n "$ac_ct_F77"; then
6147   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   case $as_dir in #(((
6154     '') as_dir=./ ;;
6155     */) ;;
6156     *) as_dir=$as_dir/ ;;
6157   esac
6158     for ac_exec_ext in '' $ac_executable_extensions; do
6159   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6160     ac_cv_prog_ac_ct_F77="$ac_prog"
6161     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165   done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6171 if test -n "$ac_ct_F77"; then
6172   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6173 printf "%s\n" "$ac_ct_F77" >&6; }
6174 else
6175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 printf "%s\n" "no" >&6; }
6177 fi
6178
6179
6180   test -n "$ac_ct_F77" && break
6181 done
6182
6183   if test "x$ac_ct_F77" = x; then
6184     F77=""
6185   else
6186     case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192     F77=$ac_ct_F77
6193   fi
6194 fi
6195
6196
6197 # Provide some information about the compiler.
6198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6199 set X $ac_compile
6200 ac_compiler=$2
6201 for ac_option in --version -v -V -qversion; do
6202   { { ac_try="$ac_compiler $ac_option >&5"
6203 case "(($ac_try" in
6204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205   *) ac_try_echo=$ac_try;;
6206 esac
6207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6208 printf "%s\n" "$ac_try_echo"; } >&5
6209   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6210   ac_status=$?
6211   if test -s conftest.err; then
6212     sed '10a\
6213 ... rest of stderr output deleted ...
6214          10q' conftest.err >conftest.er1
6215     cat conftest.er1 >&5
6216   fi
6217   rm -f conftest.er1 conftest.err
6218   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219   test $ac_status = 0; }
6220 done
6221 rm -f a.out
6222
6223 # If we don't use `.F' as extension, the preprocessor is not run on the
6224 # input file.  (Note that this only needs to work for GNU compilers.)
6225 ac_save_ext=$ac_ext
6226 ac_ext=F
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran 77" >&5
6228 printf %s "checking whether the compiler supports GNU Fortran 77... " >&6; }
6229 if test ${ac_cv_f77_compiler_gnu+y}
6230 then :
6231   printf %s "(cached) " >&6
6232 else $as_nop
6233   cat > conftest.$ac_ext <<_ACEOF
6234       program main
6235 #ifndef __GNUC__
6236        choke me
6237 #endif
6238
6239       end
6240 _ACEOF
6241 if ac_fn_f77_try_compile "$LINENO"
6242 then :
6243   ac_compiler_gnu=yes
6244 else $as_nop
6245   ac_compiler_gnu=no
6246 fi
6247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6248 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6249
6250 fi
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6252 printf "%s\n" "$ac_cv_f77_compiler_gnu" >&6; }
6253 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6254
6255 ac_ext=$ac_save_ext
6256 ac_test_FFLAGS=${FFLAGS+y}
6257 ac_save_FFLAGS=$FFLAGS
6258 FFLAGS=
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6260 printf %s "checking whether $F77 accepts -g... " >&6; }
6261 if test ${ac_cv_prog_f77_g+y}
6262 then :
6263   printf %s "(cached) " >&6
6264 else $as_nop
6265   FFLAGS=-g
6266 cat > conftest.$ac_ext <<_ACEOF
6267       program main
6268
6269       end
6270 _ACEOF
6271 if ac_fn_f77_try_compile "$LINENO"
6272 then :
6273   ac_cv_prog_f77_g=yes
6274 else $as_nop
6275   ac_cv_prog_f77_g=no
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6278
6279 fi
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6281 printf "%s\n" "$ac_cv_prog_f77_g" >&6; }
6282 if test $ac_test_FFLAGS; then
6283   FFLAGS=$ac_save_FFLAGS
6284 elif test $ac_cv_prog_f77_g = yes; then
6285   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6286     FFLAGS="-g -O2"
6287   else
6288     FFLAGS="-g"
6289   fi
6290 else
6291   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6292     FFLAGS="-O2"
6293   else
6294     FFLAGS=
6295   fi
6296 fi
6297
6298 if test $ac_compiler_gnu = yes; then
6299   G77=yes
6300 else
6301   G77=
6302 fi
6303 ac_ext=c
6304 ac_cpp='$CPP $CPPFLAGS'
6305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6308
6309
6310
6311 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6312
6313 # find the maximum length of command line arguments
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6315 printf %s "checking the maximum length of command line arguments... " >&6; }
6316 if test ${lt_cv_sys_max_cmd_len+y}
6317 then :
6318   printf %s "(cached) " >&6
6319 else $as_nop
6320     i=0
6321   teststring="ABCD"
6322
6323   case $build_os in
6324   msdosdjgpp*)
6325     # On DJGPP, this test can blow up pretty badly due to problems in libc
6326     # (any single argument exceeding 2000 bytes causes a buffer overrun
6327     # during glob expansion).  Even if it were fixed, the result of this
6328     # check would be larger than it should be.
6329     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6330     ;;
6331
6332   gnu*)
6333     # Under GNU Hurd, this test is not required because there is
6334     # no limit to the length of command line arguments.
6335     # Libtool will interpret -1 as no limit whatsoever
6336     lt_cv_sys_max_cmd_len=-1;
6337     ;;
6338
6339   cygwin* | mingw*)
6340     # On Win9x/ME, this test blows up -- it succeeds, but takes
6341     # about 5 minutes as the teststring grows exponentially.
6342     # Worse, since 9x/ME are not pre-emptively multitasking,
6343     # you end up with a "frozen" computer, even though with patience
6344     # the test eventually succeeds (with a max line length of 256k).
6345     # Instead, let's just punt: use the minimum linelength reported by
6346     # all of the supported platforms: 8192 (on NT/2K/XP).
6347     lt_cv_sys_max_cmd_len=8192;
6348     ;;
6349
6350   amigaos*)
6351     # On AmigaOS with pdksh, this test takes hours, literally.
6352     # So we just punt and use a minimum line length of 8192.
6353     lt_cv_sys_max_cmd_len=8192;
6354     ;;
6355
6356   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6357     # This has been around since 386BSD, at least.  Likely further.
6358     if test -x /sbin/sysctl; then
6359       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6360     elif test -x /usr/sbin/sysctl; then
6361       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6362     else
6363       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6364     fi
6365     # And add a safety zone
6366     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6367     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6368     ;;
6369
6370   interix*)
6371     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6372     lt_cv_sys_max_cmd_len=196608
6373     ;;
6374
6375   osf*)
6376     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6377     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6378     # nice to cause kernel panics so lets avoid the loop below.
6379     # First set a reasonable default.
6380     lt_cv_sys_max_cmd_len=16384
6381     #
6382     if test -x /sbin/sysconfig; then
6383       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6384         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6385       esac
6386     fi
6387     ;;
6388   sco3.2v5*)
6389     lt_cv_sys_max_cmd_len=102400
6390     ;;
6391   sysv5* | sco5v6* | sysv4.2uw2*)
6392     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6393     if test -n "$kargmax"; then
6394       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6395     else
6396       lt_cv_sys_max_cmd_len=32768
6397     fi
6398     ;;
6399   *)
6400     # If test is not a shell built-in, we'll probably end up computing a
6401     # maximum length that is only half of the actual maximum length, but
6402     # we can't tell.
6403     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6404     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6405                = "XX$teststring") >/dev/null 2>&1 &&
6406             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6407             lt_cv_sys_max_cmd_len=$new_result &&
6408             test $i != 17 # 1/2 MB should be enough
6409     do
6410       i=`expr $i + 1`
6411       teststring=$teststring$teststring
6412     done
6413     teststring=
6414     # Add a significant safety factor because C++ compilers can tack on massive
6415     # amounts of additional arguments before passing them to the linker.
6416     # It appears as though 1/2 is a usable value.
6417     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6418     ;;
6419   esac
6420
6421 fi
6422
6423 if test -n $lt_cv_sys_max_cmd_len ; then
6424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6425 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6426 else
6427   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6428 printf "%s\n" "none" >&6; }
6429 fi
6430
6431
6432
6433
6434 # Check for command to grab the raw symbol name followed by C symbol from nm.
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6436 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6437 if test ${lt_cv_sys_global_symbol_pipe+y}
6438 then :
6439   printf %s "(cached) " >&6
6440 else $as_nop
6441
6442 # These are sane defaults that work on at least a few old systems.
6443 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6444
6445 # Character class describing NM global symbol codes.
6446 symcode='[BCDEGRST]'
6447
6448 # Regexp to match symbols that can be accessed directly from C.
6449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6450
6451 # Transform an extracted symbol line into a proper C declaration
6452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6453
6454 # Transform an extracted symbol line into symbol name and symbol address
6455 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'"
6456
6457 # Define system-specific variables.
6458 case $host_os in
6459 aix*)
6460   symcode='[BCDT]'
6461   ;;
6462 cygwin* | mingw* | pw32*)
6463   symcode='[ABCDGISTW]'
6464   ;;
6465 hpux*) # Its linker distinguishes data from code symbols
6466   if test "$host_cpu" = ia64; then
6467     symcode='[ABCDEGRST]'
6468   fi
6469   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470   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'"
6471   ;;
6472 linux*)
6473   if test "$host_cpu" = ia64; then
6474     symcode='[ABCDGIRSTW]'
6475     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476     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'"
6477   fi
6478   ;;
6479 irix* | nonstopux*)
6480   symcode='[BCDEGRST]'
6481   ;;
6482 osf*)
6483   symcode='[BCDEGQRST]'
6484   ;;
6485 solaris*)
6486   symcode='[BDRT]'
6487   ;;
6488 sco3.2v5*)
6489   symcode='[DT]'
6490   ;;
6491 sysv4.2uw2*)
6492   symcode='[DT]'
6493   ;;
6494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6495   symcode='[ABDT]'
6496   ;;
6497 sysv4)
6498   symcode='[DFNSTU]'
6499   ;;
6500 esac
6501
6502 # Handle CRLF in mingw tool chain
6503 opt_cr=
6504 case $build_os in
6505 mingw*)
6506   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6507   ;;
6508 esac
6509
6510 # If we're using GNU nm, then use its standard symbol codes.
6511 case `$NM -V 2>&1` in
6512 *GNU* | *'with BFD'*)
6513   symcode='[ABCDGIRSTW]' ;;
6514 esac
6515
6516 # Try without a prefix undercore, then with it.
6517 for ac_symprfx in "" "_"; do
6518
6519   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520   symxfrm="\\1 $ac_symprfx\\2 \\2"
6521
6522   # Write the raw and C identifiers.
6523   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6524
6525   # Check to see that the pipe works correctly.
6526   pipe_works=no
6527
6528   rm -f conftest*
6529   cat > conftest.$ac_ext <<EOF
6530 #ifdef __cplusplus
6531 extern "C" {
6532 #endif
6533 char nm_test_var;
6534 void nm_test_func(){}
6535 #ifdef __cplusplus
6536 }
6537 #endif
6538 int main(){nm_test_var='a';nm_test_func();return(0);}
6539 EOF
6540
6541   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542   (eval $ac_compile) 2>&5
6543   ac_status=$?
6544   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545   test $ac_status = 0; }; then
6546     # Now try to grab the symbols.
6547     nlist=conftest.nm
6548     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6549   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6550   ac_status=$?
6551   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552   test $ac_status = 0; } && test -s "$nlist"; then
6553       # Try sorting and uniquifying the output.
6554       if sort "$nlist" | uniq > "$nlist"T; then
6555         mv -f "$nlist"T "$nlist"
6556       else
6557         rm -f "$nlist"T
6558       fi
6559
6560       # Make sure that we snagged all the symbols we need.
6561       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6562         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6563           cat <<EOF > conftest.$ac_ext
6564 #ifdef __cplusplus
6565 extern "C" {
6566 #endif
6567
6568 EOF
6569           # Now generate the symbol file.
6570           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6571
6572           cat <<EOF >> conftest.$ac_ext
6573 #if defined (__STDC__) && __STDC__
6574 # define lt_ptr_t void *
6575 #else
6576 # define lt_ptr_t char *
6577 # define const
6578 #endif
6579
6580 /* The mapping between symbol names and symbols. */
6581 const struct {
6582   const char *name;
6583   lt_ptr_t address;
6584 }
6585 lt_preloaded_symbols[] =
6586 {
6587 EOF
6588           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6589           cat <<\EOF >> conftest.$ac_ext
6590   {0, (lt_ptr_t) 0}
6591 };
6592
6593 #ifdef __cplusplus
6594 }
6595 #endif
6596 EOF
6597           # Now try linking the two files.
6598           mv conftest.$ac_objext conftstm.$ac_objext
6599           lt_save_LIBS="$LIBS"
6600           lt_save_CFLAGS="$CFLAGS"
6601           LIBS="conftstm.$ac_objext"
6602           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6604   (eval $ac_link) 2>&5
6605   ac_status=$?
6606   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6608             pipe_works=yes
6609           fi
6610           LIBS="$lt_save_LIBS"
6611           CFLAGS="$lt_save_CFLAGS"
6612         else
6613           echo "cannot find nm_test_func in $nlist" >&5
6614         fi
6615       else
6616         echo "cannot find nm_test_var in $nlist" >&5
6617       fi
6618     else
6619       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620     fi
6621   else
6622     echo "$progname: failed program was:" >&5
6623     cat conftest.$ac_ext >&5
6624   fi
6625   rm -f conftest* conftst*
6626
6627   # Do not use the global_symbol_pipe unless it works.
6628   if test "$pipe_works" = yes; then
6629     break
6630   else
6631     lt_cv_sys_global_symbol_pipe=
6632   fi
6633 done
6634
6635 fi
6636
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638   lt_cv_sys_global_symbol_to_cdecl=
6639 fi
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642 printf "%s\n" "failed" >&6; }
6643 else
6644   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645 printf "%s\n" "ok" >&6; }
6646 fi
6647
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6649 printf %s "checking for objdir... " >&6; }
6650 if test ${lt_cv_objdir+y}
6651 then :
6652   printf %s "(cached) " >&6
6653 else $as_nop
6654   rm -f .libs 2>/dev/null
6655 mkdir .libs 2>/dev/null
6656 if test -d .libs; then
6657   lt_cv_objdir=.libs
6658 else
6659   # MS-DOS does not allow filenames that begin with a dot.
6660   lt_cv_objdir=_libs
6661 fi
6662 rmdir .libs 2>/dev/null
6663 fi
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6665 printf "%s\n" "$lt_cv_objdir" >&6; }
6666 objdir=$lt_cv_objdir
6667
6668
6669
6670
6671
6672 case $host_os in
6673 aix3*)
6674   # AIX sometimes has problems with the GCC collect2 program.  For some
6675   # reason, if we set the COLLECT_NAMES environment variable, the problems
6676   # vanish in a puff of smoke.
6677   if test "X${COLLECT_NAMES+set}" != Xset; then
6678     COLLECT_NAMES=
6679     export COLLECT_NAMES
6680   fi
6681   ;;
6682 esac
6683
6684 # Sed substitution that helps us do robust quoting.  It backslashifies
6685 # metacharacters that are still active within double-quoted strings.
6686 Xsed='sed -e 1s/^X//'
6687 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6688
6689 # Same as above, but do not quote variable references.
6690 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6691
6692 # Sed substitution to delay expansion of an escaped shell variable in a
6693 # double_quote_subst'ed string.
6694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6695
6696 # Sed substitution to avoid accidental globbing in evaled expressions
6697 no_glob_subst='s/\*/\\\*/g'
6698
6699 # Constants:
6700 rm="rm -f"
6701
6702 # Global variables:
6703 default_ofile=libtool
6704 can_build_shared=yes
6705
6706 # All known linkers require a `.a' archive for static linking (except MSVC,
6707 # which needs '.lib').
6708 libext=a
6709 ltmain="$ac_aux_dir/ltmain.sh"
6710 ofile="$default_ofile"
6711 with_gnu_ld="$lt_cv_prog_gnu_ld"
6712
6713 if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}ar; ac_word=$2
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 printf %s "checking for $ac_word... " >&6; }
6718 if test ${ac_cv_prog_AR+y}
6719 then :
6720   printf %s "(cached) " >&6
6721 else $as_nop
6722   if test -n "$AR"; then
6723   ac_cv_prog_AR="$AR" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   case $as_dir in #(((
6730     '') as_dir=./ ;;
6731     */) ;;
6732     *) as_dir=$as_dir/ ;;
6733   esac
6734     for ac_exec_ext in '' $ac_executable_extensions; do
6735   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6736     ac_cv_prog_AR="${ac_tool_prefix}ar"
6737     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741   done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 AR=$ac_cv_prog_AR
6747 if test -n "$AR"; then
6748   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6749 printf "%s\n" "$AR" >&6; }
6750 else
6751   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 printf "%s\n" "no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_AR"; then
6758   ac_ct_AR=$AR
6759   # Extract the first word of "ar", so it can be a program name with args.
6760 set dummy ar; ac_word=$2
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 printf %s "checking for $ac_word... " >&6; }
6763 if test ${ac_cv_prog_ac_ct_AR+y}
6764 then :
6765   printf %s "(cached) " >&6
6766 else $as_nop
6767   if test -n "$ac_ct_AR"; then
6768   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   case $as_dir in #(((
6775     '') as_dir=./ ;;
6776     */) ;;
6777     *) as_dir=$as_dir/ ;;
6778   esac
6779     for ac_exec_ext in '' $ac_executable_extensions; do
6780   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6781     ac_cv_prog_ac_ct_AR="ar"
6782     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786   done
6787 IFS=$as_save_IFS
6788
6789 fi
6790 fi
6791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6792 if test -n "$ac_ct_AR"; then
6793   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6794 printf "%s\n" "$ac_ct_AR" >&6; }
6795 else
6796   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 printf "%s\n" "no" >&6; }
6798 fi
6799
6800   if test "x$ac_ct_AR" = x; then
6801     AR="false"
6802   else
6803     case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809     AR=$ac_ct_AR
6810   fi
6811 else
6812   AR="$ac_cv_prog_AR"
6813 fi
6814
6815 if test -n "$ac_tool_prefix"; then
6816   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 printf %s "checking for $ac_word... " >&6; }
6820 if test ${ac_cv_prog_RANLIB+y}
6821 then :
6822   printf %s "(cached) " >&6
6823 else $as_nop
6824   if test -n "$RANLIB"; then
6825   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   case $as_dir in #(((
6832     '') as_dir=./ ;;
6833     */) ;;
6834     *) as_dir=$as_dir/ ;;
6835   esac
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_RANLIB="${ac_tool_prefix}ranlib"
6839     printf "%s\n" "$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 RANLIB=$ac_cv_prog_RANLIB
6849 if test -n "$RANLIB"; then
6850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6851 printf "%s\n" "$RANLIB" >&6; }
6852 else
6853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 printf "%s\n" "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_RANLIB"; then
6860   ac_ct_RANLIB=$RANLIB
6861   # Extract the first word of "ranlib", so it can be a program name with args.
6862 set dummy ranlib; ac_word=$2
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 printf %s "checking for $ac_word... " >&6; }
6865 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6866 then :
6867   printf %s "(cached) " >&6
6868 else $as_nop
6869   if test -n "$ac_ct_RANLIB"; then
6870   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   case $as_dir in #(((
6877     '') as_dir=./ ;;
6878     */) ;;
6879     *) as_dir=$as_dir/ ;;
6880   esac
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6883     ac_cv_prog_ac_ct_RANLIB="ranlib"
6884     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888   done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6894 if test -n "$ac_ct_RANLIB"; then
6895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6896 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6897 else
6898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 printf "%s\n" "no" >&6; }
6900 fi
6901
6902   if test "x$ac_ct_RANLIB" = x; then
6903     RANLIB=":"
6904   else
6905     case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911     RANLIB=$ac_ct_RANLIB
6912   fi
6913 else
6914   RANLIB="$ac_cv_prog_RANLIB"
6915 fi
6916
6917 if test -n "$ac_tool_prefix"; then
6918   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}strip; ac_word=$2
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 printf %s "checking for $ac_word... " >&6; }
6922 if test ${ac_cv_prog_STRIP+y}
6923 then :
6924   printf %s "(cached) " >&6
6925 else $as_nop
6926   if test -n "$STRIP"; then
6927   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932   IFS=$as_save_IFS
6933   case $as_dir in #(((
6934     '') as_dir=./ ;;
6935     */) ;;
6936     *) as_dir=$as_dir/ ;;
6937   esac
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6940     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6941     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 STRIP=$ac_cv_prog_STRIP
6951 if test -n "$STRIP"; then
6952   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6953 printf "%s\n" "$STRIP" >&6; }
6954 else
6955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 printf "%s\n" "no" >&6; }
6957 fi
6958
6959
6960 fi
6961 if test -z "$ac_cv_prog_STRIP"; then
6962   ac_ct_STRIP=$STRIP
6963   # Extract the first word of "strip", so it can be a program name with args.
6964 set dummy strip; ac_word=$2
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 printf %s "checking for $ac_word... " >&6; }
6967 if test ${ac_cv_prog_ac_ct_STRIP+y}
6968 then :
6969   printf %s "(cached) " >&6
6970 else $as_nop
6971   if test -n "$ac_ct_STRIP"; then
6972   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   case $as_dir in #(((
6979     '') as_dir=./ ;;
6980     */) ;;
6981     *) as_dir=$as_dir/ ;;
6982   esac
6983     for ac_exec_ext in '' $ac_executable_extensions; do
6984   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6985     ac_cv_prog_ac_ct_STRIP="strip"
6986     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990   done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6996 if test -n "$ac_ct_STRIP"; then
6997   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6998 printf "%s\n" "$ac_ct_STRIP" >&6; }
6999 else
7000   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 printf "%s\n" "no" >&6; }
7002 fi
7003
7004   if test "x$ac_ct_STRIP" = x; then
7005     STRIP=":"
7006   else
7007     case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013     STRIP=$ac_ct_STRIP
7014   fi
7015 else
7016   STRIP="$ac_cv_prog_STRIP"
7017 fi
7018
7019
7020 old_CC="$CC"
7021 old_CFLAGS="$CFLAGS"
7022
7023 # Set sane defaults for various variables
7024 test -z "$AR" && AR=ar
7025 test -z "$AR_FLAGS" && AR_FLAGS=cru
7026 test -z "$AS" && AS=as
7027 test -z "$CC" && CC=cc
7028 test -z "$LTCC" && LTCC=$CC
7029 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7030 test -z "$DLLTOOL" && DLLTOOL=dlltool
7031 test -z "$LD" && LD=ld
7032 test -z "$LN_S" && LN_S="ln -s"
7033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7034 test -z "$NM" && NM=nm
7035 test -z "$SED" && SED=sed
7036 test -z "$OBJDUMP" && OBJDUMP=objdump
7037 test -z "$RANLIB" && RANLIB=:
7038 test -z "$STRIP" && STRIP=:
7039 test -z "$ac_objext" && ac_objext=o
7040
7041 # Determine commands to create old-style static archives.
7042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7043 old_postinstall_cmds='chmod 644 $oldlib'
7044 old_postuninstall_cmds=
7045
7046 if test -n "$RANLIB"; then
7047   case $host_os in
7048   openbsd*)
7049     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7050     ;;
7051   *)
7052     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7053     ;;
7054   esac
7055   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7056 fi
7057
7058 for cc_temp in $compiler""; do
7059   case $cc_temp in
7060     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7061     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7062     \-*) ;;
7063     *) break;;
7064   esac
7065 done
7066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7067
7068
7069 # Only perform the check for file, if the check method requires it
7070 case $deplibs_check_method in
7071 file_magic*)
7072   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7073     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7074 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
7075 if test ${lt_cv_path_MAGIC_CMD+y}
7076 then :
7077   printf %s "(cached) " >&6
7078 else $as_nop
7079   case $MAGIC_CMD in
7080 [\\/*] |  ?:[\\/]*)
7081   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7082   ;;
7083 *)
7084   lt_save_MAGIC_CMD="$MAGIC_CMD"
7085   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7086   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7087   for ac_dir in $ac_dummy; do
7088     IFS="$lt_save_ifs"
7089     test -z "$ac_dir" && ac_dir=.
7090     if test -f $ac_dir/${ac_tool_prefix}file; then
7091       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7092       if test -n "$file_magic_test_file"; then
7093         case $deplibs_check_method in
7094         "file_magic "*)
7095           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7096           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7097           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7098             $EGREP "$file_magic_regex" > /dev/null; then
7099             :
7100           else
7101             cat <<EOF 1>&2
7102
7103 *** Warning: the command libtool uses to detect shared libraries,
7104 *** $file_magic_cmd, produces output that libtool cannot recognize.
7105 *** The result is that libtool may fail to recognize shared libraries
7106 *** as such.  This will affect the creation of libtool libraries that
7107 *** depend on shared libraries, but programs linked with such libtool
7108 *** libraries will work regardless of this problem.  Nevertheless, you
7109 *** may want to report the problem to your system manager and/or to
7110 *** bug-libtool@gnu.org
7111
7112 EOF
7113           fi ;;
7114         esac
7115       fi
7116       break
7117     fi
7118   done
7119   IFS="$lt_save_ifs"
7120   MAGIC_CMD="$lt_save_MAGIC_CMD"
7121   ;;
7122 esac
7123 fi
7124
7125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7126 if test -n "$MAGIC_CMD"; then
7127   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7128 printf "%s\n" "$MAGIC_CMD" >&6; }
7129 else
7130   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 printf "%s\n" "no" >&6; }
7132 fi
7133
7134 if test -z "$lt_cv_path_MAGIC_CMD"; then
7135   if test -n "$ac_tool_prefix"; then
7136     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7137 printf %s "checking for file... " >&6; }
7138 if test ${lt_cv_path_MAGIC_CMD+y}
7139 then :
7140   printf %s "(cached) " >&6
7141 else $as_nop
7142   case $MAGIC_CMD in
7143 [\\/*] |  ?:[\\/]*)
7144   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7145   ;;
7146 *)
7147   lt_save_MAGIC_CMD="$MAGIC_CMD"
7148   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7149   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7150   for ac_dir in $ac_dummy; do
7151     IFS="$lt_save_ifs"
7152     test -z "$ac_dir" && ac_dir=.
7153     if test -f $ac_dir/file; then
7154       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7155       if test -n "$file_magic_test_file"; then
7156         case $deplibs_check_method in
7157         "file_magic "*)
7158           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7159           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7161             $EGREP "$file_magic_regex" > /dev/null; then
7162             :
7163           else
7164             cat <<EOF 1>&2
7165
7166 *** Warning: the command libtool uses to detect shared libraries,
7167 *** $file_magic_cmd, produces output that libtool cannot recognize.
7168 *** The result is that libtool may fail to recognize shared libraries
7169 *** as such.  This will affect the creation of libtool libraries that
7170 *** depend on shared libraries, but programs linked with such libtool
7171 *** libraries will work regardless of this problem.  Nevertheless, you
7172 *** may want to report the problem to your system manager and/or to
7173 *** bug-libtool@gnu.org
7174
7175 EOF
7176           fi ;;
7177         esac
7178       fi
7179       break
7180     fi
7181   done
7182   IFS="$lt_save_ifs"
7183   MAGIC_CMD="$lt_save_MAGIC_CMD"
7184   ;;
7185 esac
7186 fi
7187
7188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189 if test -n "$MAGIC_CMD"; then
7190   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7191 printf "%s\n" "$MAGIC_CMD" >&6; }
7192 else
7193   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 printf "%s\n" "no" >&6; }
7195 fi
7196
7197   else
7198     MAGIC_CMD=:
7199   fi
7200 fi
7201
7202   fi
7203   ;;
7204 esac
7205
7206 enable_dlopen=no
7207 enable_win32_dll=no
7208
7209 # Check whether --enable-libtool-lock was given.
7210 if test ${enable_libtool_lock+y}
7211 then :
7212   enableval=$enable_libtool_lock;
7213 fi
7214
7215 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7216
7217
7218 # Check whether --with-pic was given.
7219 if test ${with_pic+y}
7220 then :
7221   withval=$with_pic; pic_mode="$withval"
7222 else $as_nop
7223   pic_mode=default
7224 fi
7225
7226 test -z "$pic_mode" && pic_mode=default
7227
7228 # Use C for the default configuration in the libtool script
7229 tagname=
7230 lt_save_CC="$CC"
7231 ac_ext=c
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7236
7237
7238 # Source file extension for C test sources.
7239 ac_ext=c
7240
7241 # Object file extension for compiled C test sources.
7242 objext=o
7243 objext=$objext
7244
7245 # Code to be used in simple compile tests
7246 lt_simple_compile_test_code="int some_variable = 0;\n"
7247
7248 # Code to be used in simple link tests
7249 lt_simple_link_test_code='int main(){return(0);}\n'
7250
7251
7252 # If no C compiler was specified, use CC.
7253 LTCC=${LTCC-"$CC"}
7254
7255 # If no C compiler flags were specified, use CFLAGS.
7256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7257
7258 # Allow CC to be a program name with arguments.
7259 compiler=$CC
7260
7261
7262 # save warnings/boilerplate of simple test code
7263 ac_outfile=conftest.$ac_objext
7264 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7266 _lt_compiler_boilerplate=`cat conftest.err`
7267 $rm conftest*
7268
7269 ac_outfile=conftest.$ac_objext
7270 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7272 _lt_linker_boilerplate=`cat conftest.err`
7273 $rm conftest*
7274
7275
7276 ## CAVEAT EMPTOR:
7277 ## There is no encapsulation within the following macros, do not change
7278 ## the running order or otherwise move them around unless you know exactly
7279 ## what you are doing...
7280
7281 lt_prog_compiler_no_builtin_flag=
7282
7283 if test "$GCC" = yes; then
7284   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7285
7286
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7288 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7289 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
7290 then :
7291   printf %s "(cached) " >&6
7292 else $as_nop
7293   lt_cv_prog_compiler_rtti_exceptions=no
7294   ac_outfile=conftest.$ac_objext
7295    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7296    lt_compiler_flag="-fno-rtti -fno-exceptions"
7297    # Insert the option either (1) after the last *FLAGS variable, or
7298    # (2) before a word containing "conftest.", or (3) at the end.
7299    # Note that $ac_compile itself does not contain backslashes and begins
7300    # with a dollar sign (not a hyphen), so the echo should work correctly.
7301    # The option is referenced via a variable to avoid confusing sed.
7302    lt_compile=`echo "$ac_compile" | $SED \
7303    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7305    -e 's:$: $lt_compiler_flag:'`
7306    (eval echo "\"\$as_me:7306: $lt_compile\"" >&5)
7307    (eval "$lt_compile" 2>conftest.err)
7308    ac_status=$?
7309    cat conftest.err >&5
7310    echo "$as_me:7310: \$? = $ac_status" >&5
7311    if (exit $ac_status) && test -s "$ac_outfile"; then
7312      # The compiler can only warn and ignore the option if not recognized
7313      # So say no if there are warnings other than the usual output.
7314      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7315      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7316      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7317        lt_cv_prog_compiler_rtti_exceptions=yes
7318      fi
7319    fi
7320    $rm conftest*
7321
7322 fi
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7324 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7325
7326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7327     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7328 else
7329     :
7330 fi
7331
7332 fi
7333
7334 lt_prog_compiler_wl=
7335 lt_prog_compiler_pic=
7336 lt_prog_compiler_static=
7337
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7339 printf %s "checking for $compiler option to produce PIC... " >&6; }
7340
7341   if test "$GCC" = yes; then
7342     lt_prog_compiler_wl='-Wl,'
7343     lt_prog_compiler_static='-static'
7344
7345     case $host_os in
7346       aix*)
7347       # All AIX code is PIC.
7348       if test "$host_cpu" = ia64; then
7349         # AIX 5 now supports IA64 processor
7350         lt_prog_compiler_static='-Bstatic'
7351       fi
7352       ;;
7353
7354     amigaos*)
7355       # FIXME: we need at least 68020 code to build shared libraries, but
7356       # adding the `-m68020' flag to GCC prevents building anything better,
7357       # like `-m68040'.
7358       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7359       ;;
7360
7361     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7362       # PIC is the default for these OSes.
7363       ;;
7364
7365     mingw* | pw32* | os2*)
7366       # This hack is so that the source file can tell whether it is being
7367       # built for inclusion in a dll (and should export symbols for example).
7368       lt_prog_compiler_pic='-DDLL_EXPORT'
7369       ;;
7370
7371     darwin* | rhapsody*)
7372       # PIC is the default on this platform
7373       # Common symbols not allowed in MH_DYLIB files
7374       lt_prog_compiler_pic='-fno-common'
7375       ;;
7376
7377     interix3*)
7378       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7379       # Instead, we relocate shared libraries at runtime.
7380       ;;
7381
7382     msdosdjgpp*)
7383       # Just because we use GCC doesn't mean we suddenly get shared libraries
7384       # on systems that don't support them.
7385       lt_prog_compiler_can_build_shared=no
7386       enable_shared=no
7387       ;;
7388
7389     sysv4*MP*)
7390       if test -d /usr/nec; then
7391         lt_prog_compiler_pic=-Kconform_pic
7392       fi
7393       ;;
7394
7395     hpux*)
7396       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7397       # not for PA HP-UX.
7398       case $host_cpu in
7399       hppa*64*|ia64*)
7400         # +Z the default
7401         ;;
7402       *)
7403         lt_prog_compiler_pic='-fPIC'
7404         ;;
7405       esac
7406       ;;
7407
7408     *)
7409       lt_prog_compiler_pic='-fPIC'
7410       ;;
7411     esac
7412   else
7413     # PORTME Check for flag to pass linker flags through the system compiler.
7414     case $host_os in
7415     aix*)
7416       lt_prog_compiler_wl='-Wl,'
7417       if test "$host_cpu" = ia64; then
7418         # AIX 5 now supports IA64 processor
7419         lt_prog_compiler_static='-Bstatic'
7420       else
7421         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7422       fi
7423       ;;
7424       darwin*)
7425         # PIC is the default on this platform
7426         # Common symbols not allowed in MH_DYLIB files
7427        case $cc_basename in
7428          xlc*)
7429          lt_prog_compiler_pic='-qnocommon'
7430          lt_prog_compiler_wl='-Wl,'
7431          ;;
7432        esac
7433        ;;
7434
7435     mingw* | pw32* | os2*)
7436       # This hack is so that the source file can tell whether it is being
7437       # built for inclusion in a dll (and should export symbols for example).
7438       lt_prog_compiler_pic='-DDLL_EXPORT'
7439       ;;
7440
7441     hpux9* | hpux10* | hpux11*)
7442       lt_prog_compiler_wl='-Wl,'
7443       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7444       # not for PA HP-UX.
7445       case $host_cpu in
7446       hppa*64*|ia64*)
7447         # +Z the default
7448         ;;
7449       *)
7450         lt_prog_compiler_pic='+Z'
7451         ;;
7452       esac
7453       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7454       lt_prog_compiler_static='${wl}-a ${wl}archive'
7455       ;;
7456
7457     irix5* | irix6* | nonstopux*)
7458       lt_prog_compiler_wl='-Wl,'
7459       # PIC (with -KPIC) is the default.
7460       lt_prog_compiler_static='-non_shared'
7461       ;;
7462
7463     newsos6)
7464       lt_prog_compiler_pic='-KPIC'
7465       lt_prog_compiler_static='-Bstatic'
7466       ;;
7467
7468     linux*)
7469       case $cc_basename in
7470       icc* | ecc*)
7471         lt_prog_compiler_wl='-Wl,'
7472         lt_prog_compiler_pic='-KPIC'
7473         lt_prog_compiler_static='-static'
7474         ;;
7475       pgcc* | pgf77* | pgf90* | pgf95*)
7476         # Portland Group compilers (*not* the Pentium gcc compiler,
7477         # which looks to be a dead project)
7478         lt_prog_compiler_wl='-Wl,'
7479         lt_prog_compiler_pic='-fpic'
7480         lt_prog_compiler_static='-Bstatic'
7481         ;;
7482       ccc*)
7483         lt_prog_compiler_wl='-Wl,'
7484         # All Alpha code is PIC.
7485         lt_prog_compiler_static='-non_shared'
7486         ;;
7487       esac
7488       ;;
7489
7490     osf3* | osf4* | osf5*)
7491       lt_prog_compiler_wl='-Wl,'
7492       # All OSF/1 code is PIC.
7493       lt_prog_compiler_static='-non_shared'
7494       ;;
7495
7496     solaris*)
7497       lt_prog_compiler_pic='-KPIC'
7498       lt_prog_compiler_static='-Bstatic'
7499       case $cc_basename in
7500       f77* | f90* | f95*)
7501         lt_prog_compiler_wl='-Qoption ld ';;
7502       *)
7503         lt_prog_compiler_wl='-Wl,';;
7504       esac
7505       ;;
7506
7507     sunos4*)
7508       lt_prog_compiler_wl='-Qoption ld '
7509       lt_prog_compiler_pic='-PIC'
7510       lt_prog_compiler_static='-Bstatic'
7511       ;;
7512
7513     sysv4 | sysv4.2uw2* | sysv4.3*)
7514       lt_prog_compiler_wl='-Wl,'
7515       lt_prog_compiler_pic='-KPIC'
7516       lt_prog_compiler_static='-Bstatic'
7517       ;;
7518
7519     sysv4*MP*)
7520       if test -d /usr/nec ;then
7521         lt_prog_compiler_pic='-Kconform_pic'
7522         lt_prog_compiler_static='-Bstatic'
7523       fi
7524       ;;
7525
7526     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7527       lt_prog_compiler_wl='-Wl,'
7528       lt_prog_compiler_pic='-KPIC'
7529       lt_prog_compiler_static='-Bstatic'
7530       ;;
7531
7532     unicos*)
7533       lt_prog_compiler_wl='-Wl,'
7534       lt_prog_compiler_can_build_shared=no
7535       ;;
7536
7537     uts4*)
7538       lt_prog_compiler_pic='-pic'
7539       lt_prog_compiler_static='-Bstatic'
7540       ;;
7541
7542     *)
7543       lt_prog_compiler_can_build_shared=no
7544       ;;
7545     esac
7546   fi
7547
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7549 printf "%s\n" "$lt_prog_compiler_pic" >&6; }
7550
7551 #
7552 # Check to make sure the PIC flag actually works.
7553 #
7554 if test -n "$lt_prog_compiler_pic"; then
7555
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7557 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7558 if test ${lt_prog_compiler_pic_works+y}
7559 then :
7560   printf %s "(cached) " >&6
7561 else $as_nop
7562   lt_prog_compiler_pic_works=no
7563   ac_outfile=conftest.$ac_objext
7564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7565    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7566    # Insert the option either (1) after the last *FLAGS variable, or
7567    # (2) before a word containing "conftest.", or (3) at the end.
7568    # Note that $ac_compile itself does not contain backslashes and begins
7569    # with a dollar sign (not a hyphen), so the echo should work correctly.
7570    # The option is referenced via a variable to avoid confusing sed.
7571    lt_compile=`echo "$ac_compile" | $SED \
7572    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7574    -e 's:$: $lt_compiler_flag:'`
7575    (eval echo "\"\$as_me:7575: $lt_compile\"" >&5)
7576    (eval "$lt_compile" 2>conftest.err)
7577    ac_status=$?
7578    cat conftest.err >&5
7579    echo "$as_me:7579: \$? = $ac_status" >&5
7580    if (exit $ac_status) && test -s "$ac_outfile"; then
7581      # The compiler can only warn and ignore the option if not recognized
7582      # So say no if there are warnings other than the usual output.
7583      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7584      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7585      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7586        lt_prog_compiler_pic_works=yes
7587      fi
7588    fi
7589    $rm conftest*
7590
7591 fi
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7593 printf "%s\n" "$lt_prog_compiler_pic_works" >&6; }
7594
7595 if test x"$lt_prog_compiler_pic_works" = xyes; then
7596     case $lt_prog_compiler_pic in
7597      "" | " "*) ;;
7598      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7599      esac
7600 else
7601     lt_prog_compiler_pic=
7602      lt_prog_compiler_can_build_shared=no
7603 fi
7604
7605 fi
7606 case $host_os in
7607   # For platforms which do not support PIC, -DPIC is meaningless:
7608   *djgpp*)
7609     lt_prog_compiler_pic=
7610     ;;
7611   *)
7612     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7613     ;;
7614 esac
7615
7616 #
7617 # Check to make sure the static flag actually works.
7618 #
7619 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7621 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7622 if test ${lt_prog_compiler_static_works+y}
7623 then :
7624   printf %s "(cached) " >&6
7625 else $as_nop
7626   lt_prog_compiler_static_works=no
7627    save_LDFLAGS="$LDFLAGS"
7628    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7629    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7630    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7631      # The linker can only warn and ignore the option if not recognized
7632      # So say no if there are warnings
7633      if test -s conftest.err; then
7634        # Append any errors to the config.log.
7635        cat conftest.err 1>&5
7636        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7637        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7638        if diff conftest.exp conftest.er2 >/dev/null; then
7639          lt_prog_compiler_static_works=yes
7640        fi
7641      else
7642        lt_prog_compiler_static_works=yes
7643      fi
7644    fi
7645    $rm conftest*
7646    LDFLAGS="$save_LDFLAGS"
7647
7648 fi
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7650 printf "%s\n" "$lt_prog_compiler_static_works" >&6; }
7651
7652 if test x"$lt_prog_compiler_static_works" = xyes; then
7653     :
7654 else
7655     lt_prog_compiler_static=
7656 fi
7657
7658
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7660 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7661 if test ${lt_cv_prog_compiler_c_o+y}
7662 then :
7663   printf %s "(cached) " >&6
7664 else $as_nop
7665   lt_cv_prog_compiler_c_o=no
7666    $rm -r conftest 2>/dev/null
7667    mkdir conftest
7668    cd conftest
7669    mkdir out
7670    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7671
7672    lt_compiler_flag="-o out/conftest2.$ac_objext"
7673    # Insert the option either (1) after the last *FLAGS variable, or
7674    # (2) before a word containing "conftest.", or (3) at the end.
7675    # Note that $ac_compile itself does not contain backslashes and begins
7676    # with a dollar sign (not a hyphen), so the echo should work correctly.
7677    lt_compile=`echo "$ac_compile" | $SED \
7678    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7679    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7680    -e 's:$: $lt_compiler_flag:'`
7681    (eval echo "\"\$as_me:7681: $lt_compile\"" >&5)
7682    (eval "$lt_compile" 2>out/conftest.err)
7683    ac_status=$?
7684    cat out/conftest.err >&5
7685    echo "$as_me:7685: \$? = $ac_status" >&5
7686    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7687    then
7688      # The compiler can only warn and ignore the option if not recognized
7689      # So say no if there are warnings
7690      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7691      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7692      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7693        lt_cv_prog_compiler_c_o=yes
7694      fi
7695    fi
7696    chmod u+w . 2>&5
7697    $rm conftest*
7698    # SGI C++ compiler will create directory out/ii_files/ for
7699    # template instantiation
7700    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7701    $rm out/* && rmdir out
7702    cd ..
7703    rmdir conftest
7704    $rm conftest*
7705
7706 fi
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7708 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
7709
7710
7711 hard_links="nottested"
7712 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7713   # do not overwrite the value of need_locks provided by the user
7714   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7715 printf %s "checking if we can lock with hard links... " >&6; }
7716   hard_links=yes
7717   $rm conftest*
7718   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7719   touch conftest.a
7720   ln conftest.a conftest.b 2>&5 || hard_links=no
7721   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7723 printf "%s\n" "$hard_links" >&6; }
7724   if test "$hard_links" = no; then
7725     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7726 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7727     need_locks=warn
7728   fi
7729 else
7730   need_locks=no
7731 fi
7732
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7734 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7735
7736   runpath_var=
7737   allow_undefined_flag=
7738   enable_shared_with_static_runtimes=no
7739   archive_cmds=
7740   archive_expsym_cmds=
7741   old_archive_From_new_cmds=
7742   old_archive_from_expsyms_cmds=
7743   export_dynamic_flag_spec=
7744   whole_archive_flag_spec=
7745   thread_safe_flag_spec=
7746   hardcode_libdir_flag_spec=
7747   hardcode_libdir_flag_spec_ld=
7748   hardcode_libdir_separator=
7749   hardcode_direct=no
7750   hardcode_minus_L=no
7751   hardcode_shlibpath_var=unsupported
7752   link_all_deplibs=unknown
7753   hardcode_automatic=no
7754   module_cmds=
7755   module_expsym_cmds=
7756   always_export_symbols=no
7757   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7758   # include_expsyms should be a list of space-separated symbols to be *always*
7759   # included in the symbol list
7760   include_expsyms=
7761   # exclude_expsyms can be an extended regexp of symbols to exclude
7762   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7763   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7764   # as well as any symbol that contains `d'.
7765   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7766   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7767   # platforms (ab)use it in PIC code, but their linkers get confused if
7768   # the symbol is explicitly referenced.  Since portable code cannot
7769   # rely on this symbol name, it's probably fine to never include it in
7770   # preloaded symbol tables.
7771   extract_expsyms_cmds=
7772   # Just being paranoid about ensuring that cc_basename is set.
7773   for cc_temp in $compiler""; do
7774   case $cc_temp in
7775     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7776     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7777     \-*) ;;
7778     *) break;;
7779   esac
7780 done
7781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7782
7783   case $host_os in
7784   cygwin* | mingw* | pw32*)
7785     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7786     # When not using gcc, we currently assume that we are using
7787     # Microsoft Visual C++.
7788     if test "$GCC" != yes; then
7789       with_gnu_ld=no
7790     fi
7791     ;;
7792   interix*)
7793     # we just hope/assume this is gcc and not c89 (= MSVC++)
7794     with_gnu_ld=yes
7795     ;;
7796   openbsd*)
7797     with_gnu_ld=no
7798     ;;
7799   esac
7800
7801   ld_shlibs=yes
7802   if test "$with_gnu_ld" = yes; then
7803     # If archive_cmds runs LD, not CC, wlarc should be empty
7804     wlarc='${wl}'
7805
7806     # Set some defaults for GNU ld with shared library support. These
7807     # are reset later if shared libraries are not supported. Putting them
7808     # here allows them to be overridden if necessary.
7809     runpath_var=LD_RUN_PATH
7810     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7811     export_dynamic_flag_spec='${wl}--export-dynamic'
7812     # ancient GNU ld didn't support --whole-archive et. al.
7813     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7814         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7815       else
7816         whole_archive_flag_spec=
7817     fi
7818     supports_anon_versioning=no
7819     case `$LD -v 2>/dev/null` in
7820       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7821       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7822       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7823       *\ 2.11.*) ;; # other 2.11 versions
7824       *) supports_anon_versioning=yes ;;
7825     esac
7826
7827     # See if GNU ld supports shared libraries.
7828     case $host_os in
7829     aix3* | aix4* | aix5*)
7830       # On AIX/PPC, the GNU linker is very broken
7831       if test "$host_cpu" != ia64; then
7832         ld_shlibs=no
7833         cat <<EOF 1>&2
7834
7835 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7836 *** to be unable to reliably create shared libraries on AIX.
7837 *** Therefore, libtool is disabling shared libraries support.  If you
7838 *** really care for shared libraries, you may want to modify your PATH
7839 *** so that a non-GNU linker is found, and then restart.
7840
7841 EOF
7842       fi
7843       ;;
7844
7845     amigaos*)
7846       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)'
7847       hardcode_libdir_flag_spec='-L$libdir'
7848       hardcode_minus_L=yes
7849
7850       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7851       # that the semantics of dynamic libraries on AmigaOS, at least up
7852       # to version 4, is to share data among multiple programs linked
7853       # with the same dynamic library.  Since this doesn't match the
7854       # behavior of shared libraries on other platforms, we can't use
7855       # them.
7856       ld_shlibs=no
7857       ;;
7858
7859     beos*)
7860       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7861         allow_undefined_flag=unsupported
7862         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7863         # support --undefined.  This deserves some investigation.  FIXME
7864         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7865       else
7866         ld_shlibs=no
7867       fi
7868       ;;
7869
7870     cygwin* | mingw* | pw32*)
7871       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7872       # as there is no search path for DLLs.
7873       hardcode_libdir_flag_spec='-L$libdir'
7874       allow_undefined_flag=unsupported
7875       always_export_symbols=no
7876       enable_shared_with_static_runtimes=yes
7877       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7878
7879       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7880         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7881         # If the export-symbols file already is a .def file (1st line
7882         # is EXPORTS), use it as is; otherwise, prepend...
7883         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7884           cp $export_symbols $output_objdir/$soname.def;
7885         else
7886           echo EXPORTS > $output_objdir/$soname.def;
7887           cat $export_symbols >> $output_objdir/$soname.def;
7888         fi~
7889         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7890       else
7891         ld_shlibs=no
7892       fi
7893       ;;
7894
7895     interix3*)
7896       hardcode_direct=no
7897       hardcode_shlibpath_var=no
7898       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7899       export_dynamic_flag_spec='${wl}-E'
7900       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7901       # Instead, shared libraries are loaded at an image base (0x10000000 by
7902       # default) and relocated if they conflict, which is a slow very memory
7903       # consuming and fragmenting process.  To avoid this, we pick a random,
7904       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7905       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7906       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7907       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'
7908       ;;
7909
7910     linux*)
7911       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7912         tmp_addflag=
7913         case $cc_basename,$host_cpu in
7914         pgcc*)                          # Portland Group C compiler
7915           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'
7916           tmp_addflag=' $pic_flag'
7917           ;;
7918         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7919           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'
7920           tmp_addflag=' $pic_flag -Mnomain' ;;
7921         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7922           tmp_addflag=' -i_dynamic' ;;
7923         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7924           tmp_addflag=' -i_dynamic -nofor_main' ;;
7925         ifc* | ifort*)                  # Intel Fortran compiler
7926           tmp_addflag=' -nofor_main' ;;
7927         esac
7928         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929
7930         if test $supports_anon_versioning = yes; then
7931           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7932   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7933   $echo "local: *; };" >> $output_objdir/$libname.ver~
7934           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7935         fi
7936       else
7937         ld_shlibs=no
7938       fi
7939       ;;
7940
7941     netbsd*)
7942       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7943         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7944         wlarc=
7945       else
7946         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7948       fi
7949       ;;
7950
7951     solaris*)
7952       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7953         ld_shlibs=no
7954         cat <<EOF 1>&2
7955
7956 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7957 *** create shared libraries on Solaris systems.  Therefore, libtool
7958 *** is disabling shared libraries support.  We urge you to upgrade GNU
7959 *** binutils to release 2.9.1 or newer.  Another option is to modify
7960 *** your PATH or compiler configuration so that the native linker is
7961 *** used, and then restart.
7962
7963 EOF
7964       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7965         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7967       else
7968         ld_shlibs=no
7969       fi
7970       ;;
7971
7972     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7973       case `$LD -v 2>&1` in
7974         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7975         ld_shlibs=no
7976         cat <<_LT_EOF 1>&2
7977
7978 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7979 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7980 *** is disabling shared libraries support.  We urge you to upgrade GNU
7981 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7982 *** your PATH or compiler configuration so that the native linker is
7983 *** used, and then restart.
7984
7985 _LT_EOF
7986         ;;
7987         *)
7988           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7989             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7990             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7991             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7992           else
7993             ld_shlibs=no
7994           fi
7995         ;;
7996       esac
7997       ;;
7998
7999     sunos4*)
8000       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8001       wlarc=
8002       hardcode_direct=yes
8003       hardcode_shlibpath_var=no
8004       ;;
8005
8006     *)
8007       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8010       else
8011         ld_shlibs=no
8012       fi
8013       ;;
8014     esac
8015
8016     if test "$ld_shlibs" = no; then
8017       runpath_var=
8018       hardcode_libdir_flag_spec=
8019       export_dynamic_flag_spec=
8020       whole_archive_flag_spec=
8021     fi
8022   else
8023     # PORTME fill in a description of your system's linker (not GNU ld)
8024     case $host_os in
8025     aix3*)
8026       allow_undefined_flag=unsupported
8027       always_export_symbols=yes
8028       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'
8029       # Note: this linker hardcodes the directories in LIBPATH if there
8030       # are no directories specified by -L.
8031       hardcode_minus_L=yes
8032       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8033         # Neither direct hardcoding nor static linking is supported with a
8034         # broken collect2.
8035         hardcode_direct=unsupported
8036       fi
8037       ;;
8038
8039     aix4* | aix5*)
8040       if test "$host_cpu" = ia64; then
8041         # On IA64, the linker does run time linking by default, so we don't
8042         # have to do anything special.
8043         aix_use_runtimelinking=no
8044         exp_sym_flag='-Bexport'
8045         no_entry_flag=""
8046       else
8047         # If we're using GNU nm, then we don't want the "-C" option.
8048         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8049         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8050           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'
8051         else
8052           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'
8053         fi
8054         aix_use_runtimelinking=no
8055
8056         # Test if we are trying to use run time linking or normal
8057         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8058         # need to do runtime linking.
8059         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8060           for ld_flag in $LDFLAGS; do
8061           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8062             aix_use_runtimelinking=yes
8063             break
8064           fi
8065           done
8066           ;;
8067         esac
8068
8069         exp_sym_flag='-bexport'
8070         no_entry_flag='-bnoentry'
8071       fi
8072
8073       # When large executables or shared objects are built, AIX ld can
8074       # have problems creating the table of contents.  If linking a library
8075       # or program results in "error TOC overflow" add -mminimal-toc to
8076       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8077       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8078
8079       archive_cmds=''
8080       hardcode_direct=yes
8081       hardcode_libdir_separator=':'
8082       link_all_deplibs=yes
8083
8084       if test "$GCC" = yes; then
8085         case $host_os in aix4.[012]|aix4.[012].*)
8086         # We only want to do this on AIX 4.2 and lower, the check
8087         # below for broken collect2 doesn't work under 4.3+
8088           collect2name=`${CC} -print-prog-name=collect2`
8089           if test -f "$collect2name" && \
8090            strings "$collect2name" | grep resolve_lib_name >/dev/null
8091           then
8092           # We have reworked collect2
8093           hardcode_direct=yes
8094           else
8095           # We have old collect2
8096           hardcode_direct=unsupported
8097           # It fails to find uninstalled libraries when the uninstalled
8098           # path is not listed in the libpath.  Setting hardcode_minus_L
8099           # to unsupported forces relinking
8100           hardcode_minus_L=yes
8101           hardcode_libdir_flag_spec='-L$libdir'
8102           hardcode_libdir_separator=
8103           fi
8104           ;;
8105         esac
8106         shared_flag='-shared'
8107         if test "$aix_use_runtimelinking" = yes; then
8108           shared_flag="$shared_flag "'${wl}-G'
8109         fi
8110       else
8111         # not using gcc
8112         if test "$host_cpu" = ia64; then
8113         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8114         # chokes on -Wl,-G. The following line is correct:
8115           shared_flag='-G'
8116         else
8117           if test "$aix_use_runtimelinking" = yes; then
8118             shared_flag='${wl}-G'
8119           else
8120             shared_flag='${wl}-bM:SRE'
8121           fi
8122         fi
8123       fi
8124
8125       # It seems that -bexpall does not export symbols beginning with
8126       # underscore (_), so it is better to generate a list of symbols to export.
8127       always_export_symbols=yes
8128       if test "$aix_use_runtimelinking" = yes; then
8129         # Warning - without using the other runtime loading flags (-brtl),
8130         # -berok will link without error, but may produce a broken library.
8131         allow_undefined_flag='-berok'
8132        # Determine the default libpath from the value encoded in an empty executable.
8133        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h.  */
8135
8136 int
8137 main (void)
8138 {
8139
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 if ac_fn_c_try_link "$LINENO"
8145 then :
8146
8147 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8148 }'`
8149 # Check for a 64-bit object if we didn't find anything.
8150 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8151 }'`; fi
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8154     conftest$ac_exeext conftest.$ac_ext
8155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8156
8157        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8158         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"
8159        else
8160         if test "$host_cpu" = ia64; then
8161           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8162           allow_undefined_flag="-z nodefs"
8163           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"
8164         else
8165          # Determine the default libpath from the value encoded in an empty executable.
8166          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h.  */
8168
8169 int
8170 main (void)
8171 {
8172
8173   ;
8174   return 0;
8175 }
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"
8178 then :
8179
8180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8181 }'`
8182 # Check for a 64-bit object if we didn't find anything.
8183 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8184 }'`; fi
8185 fi
8186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8187     conftest$ac_exeext conftest.$ac_ext
8188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8189
8190          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8191           # Warning - without using the other run time loading flags,
8192           # -berok will link without error, but may produce a broken library.
8193           no_undefined_flag=' ${wl}-bernotok'
8194           allow_undefined_flag=' ${wl}-berok'
8195           # Exported symbols can be pulled into shared objects from archives
8196           whole_archive_flag_spec='$convenience'
8197           archive_cmds_need_lc=yes
8198           # This is similar to how AIX traditionally builds its shared libraries.
8199           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'
8200         fi
8201       fi
8202       ;;
8203
8204     amigaos*)
8205       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)'
8206       hardcode_libdir_flag_spec='-L$libdir'
8207       hardcode_minus_L=yes
8208       # see comment about different semantics on the GNU ld section
8209       ld_shlibs=no
8210       ;;
8211
8212     bsdi[45]*)
8213       export_dynamic_flag_spec=-rdynamic
8214       ;;
8215
8216     cygwin* | mingw* | pw32*)
8217       # When not using gcc, we currently assume that we are using
8218       # Microsoft Visual C++.
8219       # hardcode_libdir_flag_spec is actually meaningless, as there is
8220       # no search path for DLLs.
8221       hardcode_libdir_flag_spec=' '
8222       allow_undefined_flag=unsupported
8223       # Tell ltmain to make .lib files, not .a files.
8224       libext=lib
8225       # Tell ltmain to make .dll files, not .so files.
8226       shrext_cmds=".dll"
8227       # FIXME: Setting linknames here is a bad hack.
8228       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8229       # The linker will automatically build a .lib file if we build a DLL.
8230       old_archive_From_new_cmds='true'
8231       # FIXME: Should let the user specify the lib program.
8232       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8233       fix_srcfile_path='`cygpath -w "$srcfile"`'
8234       enable_shared_with_static_runtimes=yes
8235       ;;
8236
8237     darwin* | rhapsody*)
8238       case $host_os in
8239         rhapsody* | darwin1.[012])
8240          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8241          ;;
8242        *) # Darwin 1.3 on
8243          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8244            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8245          else
8246            case ${MACOSX_DEPLOYMENT_TARGET} in
8247              10.[012])
8248                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8249                ;;
8250              10.*)
8251                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8252                ;;
8253            esac
8254          fi
8255          ;;
8256       esac
8257       archive_cmds_need_lc=no
8258       hardcode_direct=no
8259       hardcode_automatic=yes
8260       hardcode_shlibpath_var=unsupported
8261       whole_archive_flag_spec=''
8262       link_all_deplibs=yes
8263     if test "$GCC" = yes ; then
8264         output_verbose_link_cmd='echo'
8265         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8266       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8267       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8268       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8269       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}'
8270     else
8271       case $cc_basename in
8272         xlc*)
8273          output_verbose_link_cmd='echo'
8274          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8275          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8276           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8277          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8278           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}'
8279           ;;
8280        *)
8281          ld_shlibs=no
8282           ;;
8283       esac
8284     fi
8285       ;;
8286
8287     dgux*)
8288       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8289       hardcode_libdir_flag_spec='-L$libdir'
8290       hardcode_shlibpath_var=no
8291       ;;
8292
8293     freebsd1.*)
8294       ld_shlibs=no
8295       ;;
8296
8297     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8298     # support.  Future versions do this automatically, but an explicit c++rt0.o
8299     # does not break anything, and helps significantly (at the cost of a little
8300     # extra space).
8301     freebsd2.2*)
8302       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8303       hardcode_libdir_flag_spec='-R$libdir'
8304       hardcode_direct=yes
8305       hardcode_shlibpath_var=no
8306       ;;
8307
8308     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8309     freebsd2.*)
8310       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311       hardcode_direct=yes
8312       hardcode_minus_L=yes
8313       hardcode_shlibpath_var=no
8314       ;;
8315
8316     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8317     freebsd* | kfreebsd*-gnu | dragonfly*)
8318       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8319       hardcode_libdir_flag_spec='-R$libdir'
8320       hardcode_direct=yes
8321       hardcode_shlibpath_var=no
8322       ;;
8323
8324     hpux9*)
8325       if test "$GCC" = yes; then
8326         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'
8327       else
8328         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'
8329       fi
8330       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8331       hardcode_libdir_separator=:
8332       hardcode_direct=yes
8333
8334       # hardcode_minus_L: Not really in the search PATH,
8335       # but as the default location of the library.
8336       hardcode_minus_L=yes
8337       export_dynamic_flag_spec='${wl}-E'
8338       ;;
8339
8340     hpux10*)
8341       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8342         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8343       else
8344         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8345       fi
8346       if test "$with_gnu_ld" = no; then
8347         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8348         hardcode_libdir_separator=:
8349
8350         hardcode_direct=yes
8351         export_dynamic_flag_spec='${wl}-E'
8352
8353         # hardcode_minus_L: Not really in the search PATH,
8354         # but as the default location of the library.
8355         hardcode_minus_L=yes
8356       fi
8357       ;;
8358
8359     hpux11*)
8360       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8361         case $host_cpu in
8362         hppa*64*)
8363           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8364           ;;
8365         ia64*)
8366           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8367           ;;
8368         *)
8369           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8370           ;;
8371         esac
8372       else
8373         case $host_cpu in
8374         hppa*64*)
8375           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8376           ;;
8377         ia64*)
8378           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8379           ;;
8380         *)
8381           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8382           ;;
8383         esac
8384       fi
8385       if test "$with_gnu_ld" = no; then
8386         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8387         hardcode_libdir_separator=:
8388
8389         case $host_cpu in
8390         hppa*64*|ia64*)
8391           hardcode_libdir_flag_spec_ld='+b $libdir'
8392           hardcode_direct=no
8393           hardcode_shlibpath_var=no
8394           ;;
8395         *)
8396           hardcode_direct=yes
8397           export_dynamic_flag_spec='${wl}-E'
8398
8399           # hardcode_minus_L: Not really in the search PATH,
8400           # but as the default location of the library.
8401           hardcode_minus_L=yes
8402           ;;
8403         esac
8404       fi
8405       ;;
8406
8407     irix5* | irix6* | nonstopux*)
8408       if test "$GCC" = yes; then
8409         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'
8410       else
8411         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'
8412         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8413       fi
8414       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415       hardcode_libdir_separator=:
8416       link_all_deplibs=yes
8417       ;;
8418
8419     netbsd*)
8420       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8421         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8422       else
8423         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8424       fi
8425       hardcode_libdir_flag_spec='-R$libdir'
8426       hardcode_direct=yes
8427       hardcode_shlibpath_var=no
8428       ;;
8429
8430     newsos6)
8431       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432       hardcode_direct=yes
8433       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8434       hardcode_libdir_separator=:
8435       hardcode_shlibpath_var=no
8436       ;;
8437
8438     openbsd*)
8439       hardcode_direct=yes
8440       hardcode_shlibpath_var=no
8441       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8442         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8443         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8444         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8445         export_dynamic_flag_spec='${wl}-E'
8446       else
8447        case $host_os in
8448          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8449            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8450            hardcode_libdir_flag_spec='-R$libdir'
8451            ;;
8452          *)
8453            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8454            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8455            ;;
8456        esac
8457       fi
8458       ;;
8459
8460     os2*)
8461       hardcode_libdir_flag_spec='-L$libdir'
8462       hardcode_minus_L=yes
8463       allow_undefined_flag=unsupported
8464       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'
8465       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8466       ;;
8467
8468     osf3*)
8469       if test "$GCC" = yes; then
8470         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8471         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'
8472       else
8473         allow_undefined_flag=' -expect_unresolved \*'
8474         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'
8475       fi
8476       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8477       hardcode_libdir_separator=:
8478       ;;
8479
8480     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8481       if test "$GCC" = yes; then
8482         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8483         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'
8484         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8485       else
8486         allow_undefined_flag=' -expect_unresolved \*'
8487         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'
8488         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8489         $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'
8490
8491         # Both c and cxx compiler support -rpath directly
8492         hardcode_libdir_flag_spec='-rpath $libdir'
8493       fi
8494       hardcode_libdir_separator=:
8495       ;;
8496
8497     solaris*)
8498       no_undefined_flag=' -z text'
8499       if test "$GCC" = yes; then
8500         wlarc='${wl}'
8501         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8503           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8504       else
8505         wlarc=''
8506         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8508         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8509       fi
8510       hardcode_libdir_flag_spec='-R$libdir'
8511       hardcode_shlibpath_var=no
8512       case $host_os in
8513       solaris2.[0-5] | solaris2.[0-5].*) ;;
8514       *)
8515         # The compiler driver will combine linker options so we
8516         # cannot just pass the convience library names through
8517         # without $wl, iff we do not link with $LD.
8518         # Luckily, gcc supports the same syntax we need for Sun Studio.
8519         # Supported since Solaris 2.6 (maybe 2.5.1?)
8520         case $wlarc in
8521         '')
8522           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8523         *)
8524           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8525         esac ;;
8526       esac
8527       link_all_deplibs=yes
8528       ;;
8529
8530     sunos4*)
8531       if test "x$host_vendor" = xsequent; then
8532         # Use $CC to link under sequent, because it throws in some extra .o
8533         # files that make .init and .fini sections work.
8534         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8535       else
8536         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8537       fi
8538       hardcode_libdir_flag_spec='-L$libdir'
8539       hardcode_direct=yes
8540       hardcode_minus_L=yes
8541       hardcode_shlibpath_var=no
8542       ;;
8543
8544     sysv4)
8545       case $host_vendor in
8546         sni)
8547           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8548           hardcode_direct=yes # is this really true???
8549         ;;
8550         siemens)
8551           ## LD is ld it makes a PLAMLIB
8552           ## CC just makes a GrossModule.
8553           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8554           reload_cmds='$CC -r -o $output$reload_objs'
8555           hardcode_direct=no
8556         ;;
8557         motorola)
8558           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8560         ;;
8561       esac
8562       runpath_var='LD_RUN_PATH'
8563       hardcode_shlibpath_var=no
8564       ;;
8565
8566     sysv4.3*)
8567       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8568       hardcode_shlibpath_var=no
8569       export_dynamic_flag_spec='-Bexport'
8570       ;;
8571
8572     sysv4*MP*)
8573       if test -d /usr/nec; then
8574         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8575         hardcode_shlibpath_var=no
8576         runpath_var=LD_RUN_PATH
8577         hardcode_runpath_var=yes
8578         ld_shlibs=yes
8579       fi
8580       ;;
8581
8582     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8583       no_undefined_flag='${wl}-z,text'
8584       archive_cmds_need_lc=no
8585       hardcode_shlibpath_var=no
8586       runpath_var='LD_RUN_PATH'
8587
8588       if test "$GCC" = yes; then
8589         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8590         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8591       else
8592         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8593         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8594       fi
8595       ;;
8596
8597     sysv5* | sco3.2v5* | sco5v6*)
8598       # Note: We can NOT use -z defs as we might desire, because we do not
8599       # link with -lc, and that would cause any symbols used from libc to
8600       # always be unresolved, which means just about no library would
8601       # ever link correctly.  If we're not using GNU ld we use -z text
8602       # though, which does catch some bad symbols but isn't as heavy-handed
8603       # as -z defs.
8604       no_undefined_flag='${wl}-z,text'
8605       allow_undefined_flag='${wl}-z,nodefs'
8606       archive_cmds_need_lc=no
8607       hardcode_shlibpath_var=no
8608       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8609       hardcode_libdir_separator=':'
8610       link_all_deplibs=yes
8611       export_dynamic_flag_spec='${wl}-Bexport'
8612       runpath_var='LD_RUN_PATH'
8613
8614       if test "$GCC" = yes; then
8615         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8616         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617       else
8618         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8619         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620       fi
8621       ;;
8622
8623     uts4*)
8624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8625       hardcode_libdir_flag_spec='-L$libdir'
8626       hardcode_shlibpath_var=no
8627       ;;
8628
8629     *)
8630       ld_shlibs=no
8631       ;;
8632     esac
8633   fi
8634
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8636 printf "%s\n" "$ld_shlibs" >&6; }
8637 test "$ld_shlibs" = no && can_build_shared=no
8638
8639 #
8640 # Do we need to explicitly link libc?
8641 #
8642 case "x$archive_cmds_need_lc" in
8643 x|xyes)
8644   # Assume -lc should be added
8645   archive_cmds_need_lc=yes
8646
8647   if test "$enable_shared" = yes && test "$GCC" = yes; then
8648     case $archive_cmds in
8649     *'~'*)
8650       # FIXME: we may have to deal with multi-command sequences.
8651       ;;
8652     '$CC '*)
8653       # Test whether the compiler implicitly links with -lc since on some
8654       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8655       # to ld, don't add -lc before -lgcc.
8656       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8657 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
8658       $rm conftest*
8659       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8660
8661       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8662   (eval $ac_compile) 2>&5
8663   ac_status=$?
8664   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8665   test $ac_status = 0; } 2>conftest.err; then
8666         soname=conftest
8667         lib=conftest
8668         libobjs=conftest.$ac_objext
8669         deplibs=
8670         wl=$lt_prog_compiler_wl
8671         pic_flag=$lt_prog_compiler_pic
8672         compiler_flags=-v
8673         linker_flags=-v
8674         verstring=
8675         output_objdir=.
8676         libname=conftest
8677         lt_save_allow_undefined_flag=$allow_undefined_flag
8678         allow_undefined_flag=
8679         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8680   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8681   ac_status=$?
8682   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683   test $ac_status = 0; }
8684         then
8685           archive_cmds_need_lc=no
8686         else
8687           archive_cmds_need_lc=yes
8688         fi
8689         allow_undefined_flag=$lt_save_allow_undefined_flag
8690       else
8691         cat conftest.err 1>&5
8692       fi
8693       $rm conftest*
8694       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8695 printf "%s\n" "$archive_cmds_need_lc" >&6; }
8696       ;;
8697     esac
8698   fi
8699   ;;
8700 esac
8701
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8703 printf %s "checking dynamic linker characteristics... " >&6; }
8704 library_names_spec=
8705 libname_spec='lib$name'
8706 soname_spec=
8707 shrext_cmds=".so"
8708 postinstall_cmds=
8709 postuninstall_cmds=
8710 finish_cmds=
8711 finish_eval=
8712 shlibpath_var=
8713 shlibpath_overrides_runpath=unknown
8714 version_type=none
8715 dynamic_linker="$host_os ld.so"
8716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8717 if test "$GCC" = yes; then
8718   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8719   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8720     # if the path contains ";" then we assume it to be the separator
8721     # otherwise default to the standard path separator (i.e. ":") - it is
8722     # assumed that no part of a normal pathname contains ";" but that should
8723     # okay in the real world where ";" in dirpaths is itself problematic.
8724     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8725   else
8726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8727   fi
8728 else
8729   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8730 fi
8731 need_lib_prefix=unknown
8732 hardcode_into_libs=no
8733
8734 # when you set need_version to no, make sure it does not cause -set_version
8735 # flags to be left without arguments
8736 need_version=unknown
8737
8738 case $host_os in
8739 aix3*)
8740   version_type=linux
8741   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8742   shlibpath_var=LIBPATH
8743
8744   # AIX 3 has no versioning support, so we append a major version to the name.
8745   soname_spec='${libname}${release}${shared_ext}$major'
8746   ;;
8747
8748 aix4* | aix5*)
8749   version_type=linux
8750   need_lib_prefix=no
8751   need_version=no
8752   hardcode_into_libs=yes
8753   if test "$host_cpu" = ia64; then
8754     # AIX 5 supports IA64
8755     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8756     shlibpath_var=LD_LIBRARY_PATH
8757   else
8758     # With GCC up to 2.95.x, collect2 would create an import file
8759     # for dependence libraries.  The import file would start with
8760     # the line `#! .'.  This would cause the generated library to
8761     # depend on `.', always an invalid library.  This was fixed in
8762     # development snapshots of GCC prior to 3.0.
8763     case $host_os in
8764       aix4 | aix4.[01] | aix4.[01].*)
8765       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8766            echo ' yes '
8767            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8768         :
8769       else
8770         can_build_shared=no
8771       fi
8772       ;;
8773     esac
8774     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8775     # soname into executable. Probably we can add versioning support to
8776     # collect2, so additional links can be useful in future.
8777     if test "$aix_use_runtimelinking" = yes; then
8778       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8779       # instead of lib<name>.a to let people know that these are not
8780       # typical AIX shared libraries.
8781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8782     else
8783       # We preserve .a as extension for shared libraries through AIX4.2
8784       # and later when we are not doing run time linking.
8785       library_names_spec='${libname}${release}.a $libname.a'
8786       soname_spec='${libname}${release}${shared_ext}$major'
8787     fi
8788     shlibpath_var=LIBPATH
8789   fi
8790   ;;
8791
8792 amigaos*)
8793   library_names_spec='$libname.ixlibrary $libname.a'
8794   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8795   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'
8796   ;;
8797
8798 beos*)
8799   library_names_spec='${libname}${shared_ext}'
8800   dynamic_linker="$host_os ld.so"
8801   shlibpath_var=LIBRARY_PATH
8802   ;;
8803
8804 bsdi[45]*)
8805   version_type=linux
8806   need_version=no
8807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808   soname_spec='${libname}${release}${shared_ext}$major'
8809   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8810   shlibpath_var=LD_LIBRARY_PATH
8811   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8812   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8813   # the default ld.so.conf also contains /usr/contrib/lib and
8814   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8815   # libtool to hard-code these into programs
8816   ;;
8817
8818 cygwin* | mingw* | pw32*)
8819   version_type=windows
8820   shrext_cmds=".dll"
8821   need_version=no
8822   need_lib_prefix=no
8823
8824   case $GCC,$host_os in
8825   yes,cygwin* | yes,mingw* | yes,pw32*)
8826     library_names_spec='$libname.dll.a'
8827     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8828     postinstall_cmds='base_file=`basename \${file}`~
8829       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8830       dldir=$destdir/`dirname \$dlpath`~
8831       test -d \$dldir || mkdir -p \$dldir~
8832       $install_prog $dir/$dlname \$dldir/$dlname~
8833       chmod a+x \$dldir/$dlname'
8834     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8835       dlpath=$dir/\$dldll~
8836        $rm \$dlpath'
8837     shlibpath_overrides_runpath=yes
8838
8839     case $host_os in
8840     cygwin*)
8841       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8842       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8843       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8844       ;;
8845     mingw*)
8846       # MinGW DLLs use traditional 'lib' prefix
8847       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8848       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8849       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8850         # It is most probably a Windows format PATH printed by
8851         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8852         # path with ; separators, and with drive letters. We can handle the
8853         # drive letters (cygwin fileutils understands them), so leave them,
8854         # especially as we might pass files found there to a mingw objdump,
8855         # which wouldn't understand a cygwinified path. Ahh.
8856         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8857       else
8858         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8859       fi
8860       ;;
8861     pw32*)
8862       # pw32 DLLs use 'pw' prefix rather than 'lib'
8863       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8864       ;;
8865     esac
8866     ;;
8867
8868   *)
8869     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8870     ;;
8871   esac
8872   dynamic_linker='Win32 ld.exe'
8873   # FIXME: first we should search . and the directory the executable is in
8874   shlibpath_var=PATH
8875   ;;
8876
8877 darwin* | rhapsody*)
8878   dynamic_linker="$host_os dyld"
8879   version_type=darwin
8880   need_lib_prefix=no
8881   need_version=no
8882   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8883   soname_spec='${libname}${release}${major}$shared_ext'
8884   shlibpath_overrides_runpath=yes
8885   shlibpath_var=DYLD_LIBRARY_PATH
8886   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8887   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8888   if test "$GCC" = yes; then
8889     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8890   else
8891     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8892   fi
8893   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8894   ;;
8895
8896 dgux*)
8897   version_type=linux
8898   need_lib_prefix=no
8899   need_version=no
8900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8901   soname_spec='${libname}${release}${shared_ext}$major'
8902   shlibpath_var=LD_LIBRARY_PATH
8903   ;;
8904
8905 freebsd1.*)
8906   dynamic_linker=no
8907   ;;
8908
8909 kfreebsd*-gnu)
8910   version_type=linux
8911   need_lib_prefix=no
8912   need_version=no
8913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8914   soname_spec='${libname}${release}${shared_ext}$major'
8915   shlibpath_var=LD_LIBRARY_PATH
8916   shlibpath_overrides_runpath=no
8917   hardcode_into_libs=yes
8918   dynamic_linker='GNU ld.so'
8919   ;;
8920
8921 freebsd* | dragonfly*)
8922   # DragonFly does not have aout.  When/if they implement a new
8923   # versioning mechanism, adjust this.
8924   if test -x /usr/bin/objformat; then
8925     objformat=`/usr/bin/objformat`
8926   else
8927     case $host_os in
8928     freebsd[123]*) objformat=aout ;;
8929     *) objformat=elf ;;
8930     esac
8931   fi
8932   version_type=freebsd-$objformat
8933   case $version_type in
8934     freebsd-elf*)
8935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8936       need_version=no
8937       need_lib_prefix=no
8938       ;;
8939     freebsd-*)
8940       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8941       need_version=yes
8942       ;;
8943   esac
8944   shlibpath_var=LD_LIBRARY_PATH
8945   case $host_os in
8946   freebsd2.*)
8947     shlibpath_overrides_runpath=yes
8948     ;;
8949   freebsd3.[01]* | freebsdelf3.[01]*)
8950     shlibpath_overrides_runpath=yes
8951     hardcode_into_libs=yes
8952     ;;
8953   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8954   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8955     shlibpath_overrides_runpath=no
8956     hardcode_into_libs=yes
8957     ;;
8958   freebsd*) # from 4.6 on
8959     shlibpath_overrides_runpath=yes
8960     hardcode_into_libs=yes
8961     ;;
8962   esac
8963   ;;
8964
8965 gnu*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   hardcode_into_libs=yes
8973   ;;
8974
8975 hpux9* | hpux10* | hpux11*)
8976   # Give a soname corresponding to the major version so that dld.sl refuses to
8977   # link against other versions.
8978   version_type=sunos
8979   need_lib_prefix=no
8980   need_version=no
8981   case $host_cpu in
8982   ia64*)
8983     shrext_cmds='.so'
8984     hardcode_into_libs=yes
8985     dynamic_linker="$host_os dld.so"
8986     shlibpath_var=LD_LIBRARY_PATH
8987     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989     soname_spec='${libname}${release}${shared_ext}$major'
8990     if test "X$HPUX_IA64_MODE" = X32; then
8991       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8992     else
8993       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8994     fi
8995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8996     ;;
8997    hppa*64*)
8998      shrext_cmds='.sl'
8999      hardcode_into_libs=yes
9000      dynamic_linker="$host_os dld.sl"
9001      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9002      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004      soname_spec='${libname}${release}${shared_ext}$major'
9005      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9006      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9007      ;;
9008    *)
9009     shrext_cmds='.sl'
9010     dynamic_linker="$host_os dld.sl"
9011     shlibpath_var=SHLIB_PATH
9012     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014     soname_spec='${libname}${release}${shared_ext}$major'
9015     ;;
9016   esac
9017   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9018   postinstall_cmds='chmod 555 $lib'
9019   ;;
9020
9021 interix3*)
9022   version_type=linux
9023   need_lib_prefix=no
9024   need_version=no
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9028   shlibpath_var=LD_LIBRARY_PATH
9029   shlibpath_overrides_runpath=no
9030   hardcode_into_libs=yes
9031   ;;
9032
9033 irix5* | irix6* | nonstopux*)
9034   case $host_os in
9035     nonstopux*) version_type=nonstopux ;;
9036     *)
9037         if test "$lt_cv_prog_gnu_ld" = yes; then
9038                 version_type=linux
9039         else
9040                 version_type=irix
9041         fi ;;
9042   esac
9043   need_lib_prefix=no
9044   need_version=no
9045   soname_spec='${libname}${release}${shared_ext}$major'
9046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9047   case $host_os in
9048   irix5* | nonstopux*)
9049     libsuff= shlibsuff=
9050     ;;
9051   *)
9052     case $LD in # libtool.m4 will add one of these switches to LD
9053     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9054       libsuff= shlibsuff= libmagic=32-bit;;
9055     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9056       libsuff=32 shlibsuff=N32 libmagic=N32;;
9057     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9058       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9059     *) libsuff= shlibsuff= libmagic=never-match;;
9060     esac
9061     ;;
9062   esac
9063   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9064   shlibpath_overrides_runpath=no
9065   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9066   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9067   hardcode_into_libs=yes
9068   ;;
9069
9070 # No shared lib support for Linux oldld, aout, or coff.
9071 linux*oldld* | linux*aout* | linux*coff*)
9072   dynamic_linker=no
9073   ;;
9074
9075 # This must be Linux ELF.
9076 linux*)
9077   version_type=linux
9078   need_lib_prefix=no
9079   need_version=no
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081   soname_spec='${libname}${release}${shared_ext}$major'
9082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   shlibpath_overrides_runpath=no
9085   # This implies no fast_install, which is unacceptable.
9086   # Some rework will be needed to allow for fast_install
9087   # before this can be enabled.
9088   hardcode_into_libs=yes
9089
9090   # Append ld.so.conf contents to the search path
9091   if test -f /etc/ld.so.conf; then
9092     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9093     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9094   fi
9095
9096   # We used to test for /lib/ld.so.1 and disable shared libraries on
9097   # powerpc, because MkLinux only supported shared libraries with the
9098   # GNU dynamic linker.  Since this was broken with cross compilers,
9099   # most powerpc-linux boxes support dynamic linking these days and
9100   # people can always --disable-shared, the test was removed, and we
9101   # assume the GNU/Linux dynamic linker is in use.
9102   dynamic_linker='GNU/Linux ld.so'
9103   ;;
9104
9105 knetbsd*-gnu)
9106   version_type=linux
9107   need_lib_prefix=no
9108   need_version=no
9109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110   soname_spec='${libname}${release}${shared_ext}$major'
9111   shlibpath_var=LD_LIBRARY_PATH
9112   shlibpath_overrides_runpath=no
9113   hardcode_into_libs=yes
9114   dynamic_linker='GNU ld.so'
9115   ;;
9116
9117 netbsd*)
9118   version_type=sunos
9119   need_lib_prefix=no
9120   need_version=no
9121   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9124     dynamic_linker='NetBSD (a.out) ld.so'
9125   else
9126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9127     soname_spec='${libname}${release}${shared_ext}$major'
9128     dynamic_linker='NetBSD ld.elf_so'
9129   fi
9130   shlibpath_var=LD_LIBRARY_PATH
9131   shlibpath_overrides_runpath=yes
9132   hardcode_into_libs=yes
9133   ;;
9134
9135 newsos6)
9136   version_type=linux
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138   shlibpath_var=LD_LIBRARY_PATH
9139   shlibpath_overrides_runpath=yes
9140   ;;
9141
9142 nto-qnx*)
9143   version_type=linux
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   shlibpath_overrides_runpath=yes
9150   ;;
9151
9152 openbsd*)
9153   version_type=sunos
9154   sys_lib_dlsearch_path_spec="/usr/lib"
9155   need_lib_prefix=no
9156   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9157   case $host_os in
9158     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9159     *)                         need_version=no  ;;
9160   esac
9161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9162   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9165     case $host_os in
9166       openbsd2.[89] | openbsd2.[89].*)
9167         shlibpath_overrides_runpath=no
9168         ;;
9169       *)
9170         shlibpath_overrides_runpath=yes
9171         ;;
9172       esac
9173   else
9174     shlibpath_overrides_runpath=yes
9175   fi
9176   ;;
9177
9178 os2*)
9179   libname_spec='$name'
9180   shrext_cmds=".dll"
9181   need_lib_prefix=no
9182   library_names_spec='$libname${shared_ext} $libname.a'
9183   dynamic_linker='OS/2 ld.exe'
9184   shlibpath_var=LIBPATH
9185   ;;
9186
9187 osf3* | osf4* | osf5*)
9188   version_type=osf
9189   need_lib_prefix=no
9190   need_version=no
9191   soname_spec='${libname}${release}${shared_ext}$major'
9192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193   shlibpath_var=LD_LIBRARY_PATH
9194   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9195   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9196   ;;
9197
9198 solaris*)
9199   version_type=linux
9200   need_lib_prefix=no
9201   need_version=no
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203   soname_spec='${libname}${release}${shared_ext}$major'
9204   shlibpath_var=LD_LIBRARY_PATH
9205   shlibpath_overrides_runpath=yes
9206   hardcode_into_libs=yes
9207   # ldd complains unless libraries are executable
9208   postinstall_cmds='chmod +x $lib'
9209   ;;
9210
9211 sunos4*)
9212   version_type=sunos
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9214   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   shlibpath_overrides_runpath=yes
9217   if test "$with_gnu_ld" = yes; then
9218     need_lib_prefix=no
9219   fi
9220   need_version=yes
9221   ;;
9222
9223 sysv4 | sysv4.3*)
9224   version_type=linux
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   case $host_vendor in
9229     sni)
9230       shlibpath_overrides_runpath=no
9231       need_lib_prefix=no
9232       export_dynamic_flag_spec='${wl}-Blargedynsym'
9233       runpath_var=LD_RUN_PATH
9234       ;;
9235     siemens)
9236       need_lib_prefix=no
9237       ;;
9238     motorola)
9239       need_lib_prefix=no
9240       need_version=no
9241       shlibpath_overrides_runpath=no
9242       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9243       ;;
9244   esac
9245   ;;
9246
9247 sysv4*MP*)
9248   if test -d /usr/nec ;then
9249     version_type=linux
9250     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9251     soname_spec='$libname${shared_ext}.$major'
9252     shlibpath_var=LD_LIBRARY_PATH
9253   fi
9254   ;;
9255
9256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9257   version_type=freebsd-elf
9258   need_lib_prefix=no
9259   need_version=no
9260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9261   soname_spec='${libname}${release}${shared_ext}$major'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   hardcode_into_libs=yes
9264   if test "$with_gnu_ld" = yes; then
9265     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9266     shlibpath_overrides_runpath=no
9267   else
9268     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9269     shlibpath_overrides_runpath=yes
9270     case $host_os in
9271       sco3.2v5*)
9272         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9273         ;;
9274     esac
9275   fi
9276   sys_lib_dlsearch_path_spec='/usr/lib'
9277   ;;
9278
9279 uts4*)
9280   version_type=linux
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282   soname_spec='${libname}${release}${shared_ext}$major'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   ;;
9285
9286 *)
9287   dynamic_linker=no
9288   ;;
9289 esac
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9291 printf "%s\n" "$dynamic_linker" >&6; }
9292 test "$dynamic_linker" = no && can_build_shared=no
9293
9294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9295 if test "$GCC" = yes; then
9296   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9297 fi
9298
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9300 printf %s "checking how to hardcode library paths into programs... " >&6; }
9301 hardcode_action=
9302 if test -n "$hardcode_libdir_flag_spec" || \
9303    test -n "$runpath_var" || \
9304    test "X$hardcode_automatic" = "Xyes" ; then
9305
9306   # We can hardcode non-existant directories.
9307   if test "$hardcode_direct" != no &&
9308      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9309      # have to relink, otherwise we might link with an installed library
9310      # when we should be linking with a yet-to-be-installed one
9311      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9312      test "$hardcode_minus_L" != no; then
9313     # Linking always hardcodes the temporary library directory.
9314     hardcode_action=relink
9315   else
9316     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9317     hardcode_action=immediate
9318   fi
9319 else
9320   # We cannot hardcode anything, or else we can only hardcode existing
9321   # directories.
9322   hardcode_action=unsupported
9323 fi
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9325 printf "%s\n" "$hardcode_action" >&6; }
9326
9327 if test "$hardcode_action" = relink; then
9328   # Fast installation is not supported
9329   enable_fast_install=no
9330 elif test "$shlibpath_overrides_runpath" = yes ||
9331      test "$enable_shared" = no; then
9332   # Fast installation is not necessary
9333   enable_fast_install=needless
9334 fi
9335
9336 striplib=
9337 old_striplib=
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9339 printf %s "checking whether stripping libraries is possible... " >&6; }
9340 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9341   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9342   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9344 printf "%s\n" "yes" >&6; }
9345 else
9346 # FIXME - insert some real tests, host_os isn't really good enough
9347   case $host_os in
9348    darwin*)
9349        if test -n "$STRIP" ; then
9350          striplib="$STRIP -x"
9351          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9352 printf "%s\n" "yes" >&6; }
9353        else
9354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355 printf "%s\n" "no" >&6; }
9356 fi
9357        ;;
9358    *)
9359   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 printf "%s\n" "no" >&6; }
9361     ;;
9362   esac
9363 fi
9364
9365 if test "x$enable_dlopen" != xyes; then
9366   enable_dlopen=unknown
9367   enable_dlopen_self=unknown
9368   enable_dlopen_self_static=unknown
9369 else
9370   lt_cv_dlopen=no
9371   lt_cv_dlopen_libs=
9372
9373   case $host_os in
9374   beos*)
9375     lt_cv_dlopen="load_add_on"
9376     lt_cv_dlopen_libs=
9377     lt_cv_dlopen_self=yes
9378     ;;
9379
9380   mingw* | pw32*)
9381     lt_cv_dlopen="LoadLibrary"
9382     lt_cv_dlopen_libs=
9383    ;;
9384
9385   cygwin*)
9386     lt_cv_dlopen="dlopen"
9387     lt_cv_dlopen_libs=
9388    ;;
9389
9390   darwin*)
9391   # if libdl is installed we need to link against it
9392     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9393 printf %s "checking for dlopen in -ldl... " >&6; }
9394 if test ${ac_cv_lib_dl_dlopen+y}
9395 then :
9396   printf %s "(cached) " >&6
9397 else $as_nop
9398   ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-ldl  $LIBS"
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h.  */
9402
9403 /* Override any GCC internal prototype to avoid an error.
9404    Use char because int might match the return type of a GCC
9405    builtin and then its argument prototype would still apply.  */
9406 char dlopen ();
9407 int
9408 main (void)
9409 {
9410 return dlopen ();
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_link "$LINENO"
9416 then :
9417   ac_cv_lib_dl_dlopen=yes
9418 else $as_nop
9419   ac_cv_lib_dl_dlopen=no
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9422     conftest$ac_exeext conftest.$ac_ext
9423 LIBS=$ac_check_lib_save_LIBS
9424 fi
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9426 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9427 if test "x$ac_cv_lib_dl_dlopen" = xyes
9428 then :
9429   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9430 else $as_nop
9431
9432     lt_cv_dlopen="dyld"
9433     lt_cv_dlopen_libs=
9434     lt_cv_dlopen_self=yes
9435
9436 fi
9437
9438    ;;
9439
9440   *)
9441     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9442 if test "x$ac_cv_func_shl_load" = xyes
9443 then :
9444   lt_cv_dlopen="shl_load"
9445 else $as_nop
9446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9447 printf %s "checking for shl_load in -ldld... " >&6; }
9448 if test ${ac_cv_lib_dld_shl_load+y}
9449 then :
9450   printf %s "(cached) " >&6
9451 else $as_nop
9452   ac_check_lib_save_LIBS=$LIBS
9453 LIBS="-ldld  $LIBS"
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h.  */
9456
9457 /* Override any GCC internal prototype to avoid an error.
9458    Use char because int might match the return type of a GCC
9459    builtin and then its argument prototype would still apply.  */
9460 char shl_load ();
9461 int
9462 main (void)
9463 {
9464 return shl_load ();
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 if ac_fn_c_try_link "$LINENO"
9470 then :
9471   ac_cv_lib_dld_shl_load=yes
9472 else $as_nop
9473   ac_cv_lib_dld_shl_load=no
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9476     conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9478 fi
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9480 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
9481 if test "x$ac_cv_lib_dld_shl_load" = xyes
9482 then :
9483   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9484 else $as_nop
9485   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9486 if test "x$ac_cv_func_dlopen" = xyes
9487 then :
9488   lt_cv_dlopen="dlopen"
9489 else $as_nop
9490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9491 printf %s "checking for dlopen in -ldl... " >&6; }
9492 if test ${ac_cv_lib_dl_dlopen+y}
9493 then :
9494   printf %s "(cached) " >&6
9495 else $as_nop
9496   ac_check_lib_save_LIBS=$LIBS
9497 LIBS="-ldl  $LIBS"
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h.  */
9500
9501 /* Override any GCC internal prototype to avoid an error.
9502    Use char because int might match the return type of a GCC
9503    builtin and then its argument prototype would still apply.  */
9504 char dlopen ();
9505 int
9506 main (void)
9507 {
9508 return dlopen ();
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"
9514 then :
9515   ac_cv_lib_dl_dlopen=yes
9516 else $as_nop
9517   ac_cv_lib_dl_dlopen=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9520     conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_check_lib_save_LIBS
9522 fi
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9524 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9525 if test "x$ac_cv_lib_dl_dlopen" = xyes
9526 then :
9527   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9528 else $as_nop
9529   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9530 printf %s "checking for dlopen in -lsvld... " >&6; }
9531 if test ${ac_cv_lib_svld_dlopen+y}
9532 then :
9533   printf %s "(cached) " >&6
9534 else $as_nop
9535   ac_check_lib_save_LIBS=$LIBS
9536 LIBS="-lsvld  $LIBS"
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h.  */
9539
9540 /* Override any GCC internal prototype to avoid an error.
9541    Use char because int might match the return type of a GCC
9542    builtin and then its argument prototype would still apply.  */
9543 char dlopen ();
9544 int
9545 main (void)
9546 {
9547 return dlopen ();
9548   ;
9549   return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"
9553 then :
9554   ac_cv_lib_svld_dlopen=yes
9555 else $as_nop
9556   ac_cv_lib_svld_dlopen=no
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9559     conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_lib_save_LIBS
9561 fi
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9563 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
9564 if test "x$ac_cv_lib_svld_dlopen" = xyes
9565 then :
9566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9567 else $as_nop
9568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9569 printf %s "checking for dld_link in -ldld... " >&6; }
9570 if test ${ac_cv_lib_dld_dld_link+y}
9571 then :
9572   printf %s "(cached) " >&6
9573 else $as_nop
9574   ac_check_lib_save_LIBS=$LIBS
9575 LIBS="-ldld  $LIBS"
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h.  */
9578
9579 /* Override any GCC internal prototype to avoid an error.
9580    Use char because int might match the return type of a GCC
9581    builtin and then its argument prototype would still apply.  */
9582 char dld_link ();
9583 int
9584 main (void)
9585 {
9586 return dld_link ();
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"
9592 then :
9593   ac_cv_lib_dld_dld_link=yes
9594 else $as_nop
9595   ac_cv_lib_dld_dld_link=no
9596 fi
9597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9598     conftest$ac_exeext conftest.$ac_ext
9599 LIBS=$ac_check_lib_save_LIBS
9600 fi
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9602 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
9603 if test "x$ac_cv_lib_dld_dld_link" = xyes
9604 then :
9605   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9606 fi
9607
9608
9609 fi
9610
9611
9612 fi
9613
9614
9615 fi
9616
9617
9618 fi
9619
9620
9621 fi
9622
9623     ;;
9624   esac
9625
9626   if test "x$lt_cv_dlopen" != xno; then
9627     enable_dlopen=yes
9628   else
9629     enable_dlopen=no
9630   fi
9631
9632   case $lt_cv_dlopen in
9633   dlopen)
9634     save_CPPFLAGS="$CPPFLAGS"
9635     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9636
9637     save_LDFLAGS="$LDFLAGS"
9638     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9639
9640     save_LIBS="$LIBS"
9641     LIBS="$lt_cv_dlopen_libs $LIBS"
9642
9643     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9644 printf %s "checking whether a program can dlopen itself... " >&6; }
9645 if test ${lt_cv_dlopen_self+y}
9646 then :
9647   printf %s "(cached) " >&6
9648 else $as_nop
9649           if test "$cross_compiling" = yes; then :
9650   lt_cv_dlopen_self=cross
9651 else
9652   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9653   lt_status=$lt_dlunknown
9654   cat > conftest.$ac_ext <<EOF
9655 #line 9655 "configure"
9656 #include "confdefs.h"
9657
9658 #if HAVE_DLFCN_H
9659 #include <dlfcn.h>
9660 #endif
9661
9662 #include <stdio.h>
9663
9664 #ifdef RTLD_GLOBAL
9665 #  define LT_DLGLOBAL           RTLD_GLOBAL
9666 #else
9667 #  ifdef DL_GLOBAL
9668 #    define LT_DLGLOBAL         DL_GLOBAL
9669 #  else
9670 #    define LT_DLGLOBAL         0
9671 #  endif
9672 #endif
9673
9674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9675    find out it does not work in some platform. */
9676 #ifndef LT_DLLAZY_OR_NOW
9677 #  ifdef RTLD_LAZY
9678 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9679 #  else
9680 #    ifdef DL_LAZY
9681 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9682 #    else
9683 #      ifdef RTLD_NOW
9684 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9685 #      else
9686 #        ifdef DL_NOW
9687 #          define LT_DLLAZY_OR_NOW      DL_NOW
9688 #        else
9689 #          define LT_DLLAZY_OR_NOW      0
9690 #        endif
9691 #      endif
9692 #    endif
9693 #  endif
9694 #endif
9695
9696 #ifdef __cplusplus
9697 extern "C" void exit (int);
9698 #endif
9699
9700 void fnord() { int i=42;}
9701 int main ()
9702 {
9703   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9704   int status = $lt_dlunknown;
9705
9706   if (self)
9707     {
9708       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9709       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9710       /* dlclose (self); */
9711     }
9712   else
9713     puts (dlerror ());
9714
9715     exit (status);
9716 }
9717 EOF
9718   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9719   (eval $ac_link) 2>&5
9720   ac_status=$?
9721   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9723     (./conftest; exit; ) >&5 2>/dev/null
9724     lt_status=$?
9725     case x$lt_status in
9726       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9727       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9728       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9729     esac
9730   else :
9731     # compilation failed
9732     lt_cv_dlopen_self=no
9733   fi
9734 fi
9735 rm -fr conftest*
9736
9737
9738 fi
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9740 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
9741
9742     if test "x$lt_cv_dlopen_self" = xyes; then
9743       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9744       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9745 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
9746 if test ${lt_cv_dlopen_self_static+y}
9747 then :
9748   printf %s "(cached) " >&6
9749 else $as_nop
9750           if test "$cross_compiling" = yes; then :
9751   lt_cv_dlopen_self_static=cross
9752 else
9753   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9754   lt_status=$lt_dlunknown
9755   cat > conftest.$ac_ext <<EOF
9756 #line 9756 "configure"
9757 #include "confdefs.h"
9758
9759 #if HAVE_DLFCN_H
9760 #include <dlfcn.h>
9761 #endif
9762
9763 #include <stdio.h>
9764
9765 #ifdef RTLD_GLOBAL
9766 #  define LT_DLGLOBAL           RTLD_GLOBAL
9767 #else
9768 #  ifdef DL_GLOBAL
9769 #    define LT_DLGLOBAL         DL_GLOBAL
9770 #  else
9771 #    define LT_DLGLOBAL         0
9772 #  endif
9773 #endif
9774
9775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9776    find out it does not work in some platform. */
9777 #ifndef LT_DLLAZY_OR_NOW
9778 #  ifdef RTLD_LAZY
9779 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9780 #  else
9781 #    ifdef DL_LAZY
9782 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9783 #    else
9784 #      ifdef RTLD_NOW
9785 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9786 #      else
9787 #        ifdef DL_NOW
9788 #          define LT_DLLAZY_OR_NOW      DL_NOW
9789 #        else
9790 #          define LT_DLLAZY_OR_NOW      0
9791 #        endif
9792 #      endif
9793 #    endif
9794 #  endif
9795 #endif
9796
9797 #ifdef __cplusplus
9798 extern "C" void exit (int);
9799 #endif
9800
9801 void fnord() { int i=42;}
9802 int main ()
9803 {
9804   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9805   int status = $lt_dlunknown;
9806
9807   if (self)
9808     {
9809       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9810       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9811       /* dlclose (self); */
9812     }
9813   else
9814     puts (dlerror ());
9815
9816     exit (status);
9817 }
9818 EOF
9819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9820   (eval $ac_link) 2>&5
9821   ac_status=$?
9822   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9824     (./conftest; exit; ) >&5 2>/dev/null
9825     lt_status=$?
9826     case x$lt_status in
9827       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9828       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9829       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9830     esac
9831   else :
9832     # compilation failed
9833     lt_cv_dlopen_self_static=no
9834   fi
9835 fi
9836 rm -fr conftest*
9837
9838
9839 fi
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9841 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
9842     fi
9843
9844     CPPFLAGS="$save_CPPFLAGS"
9845     LDFLAGS="$save_LDFLAGS"
9846     LIBS="$save_LIBS"
9847     ;;
9848   esac
9849
9850   case $lt_cv_dlopen_self in
9851   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9852   *) enable_dlopen_self=unknown ;;
9853   esac
9854
9855   case $lt_cv_dlopen_self_static in
9856   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9857   *) enable_dlopen_self_static=unknown ;;
9858   esac
9859 fi
9860
9861
9862 # Report which library types will actually be built
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9864 printf %s "checking if libtool supports shared libraries... " >&6; }
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9866 printf "%s\n" "$can_build_shared" >&6; }
9867
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9869 printf %s "checking whether to build shared libraries... " >&6; }
9870 test "$can_build_shared" = "no" && enable_shared=no
9871
9872 # On AIX, shared libraries and static libraries use the same namespace, and
9873 # are all built from PIC.
9874 case $host_os in
9875 aix3*)
9876   test "$enable_shared" = yes && enable_static=no
9877   if test -n "$RANLIB"; then
9878     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9879     postinstall_cmds='$RANLIB $lib'
9880   fi
9881   ;;
9882
9883 aix4* | aix5*)
9884   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9885     test "$enable_shared" = yes && enable_static=no
9886   fi
9887     ;;
9888 esac
9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9890 printf "%s\n" "$enable_shared" >&6; }
9891
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9893 printf %s "checking whether to build static libraries... " >&6; }
9894 # Make sure either enable_shared or enable_static is yes.
9895 test "$enable_shared" = yes || enable_static=yes
9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9897 printf "%s\n" "$enable_static" >&6; }
9898
9899 # The else clause should only fire when bootstrapping the
9900 # libtool distribution, otherwise you forgot to ship ltmain.sh
9901 # with your package, and you will get complaints that there are
9902 # no rules to generate ltmain.sh.
9903 if test -f "$ltmain"; then
9904   # See if we are running on zsh, and set the options which allow our commands through
9905   # without removal of \ escapes.
9906   if test -n "${ZSH_VERSION+set}" ; then
9907     setopt NO_GLOB_SUBST
9908   fi
9909   # Now quote all the things that may contain metacharacters while being
9910   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9911   # variables and quote the copies for generation of the libtool script.
9912   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9913     SED SHELL STRIP \
9914     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9915     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9916     deplibs_check_method reload_flag reload_cmds need_locks \
9917     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9918     lt_cv_sys_global_symbol_to_c_name_address \
9919     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9920     old_postinstall_cmds old_postuninstall_cmds \
9921     compiler \
9922     CC \
9923     LD \
9924     lt_prog_compiler_wl \
9925     lt_prog_compiler_pic \
9926     lt_prog_compiler_static \
9927     lt_prog_compiler_no_builtin_flag \
9928     export_dynamic_flag_spec \
9929     thread_safe_flag_spec \
9930     whole_archive_flag_spec \
9931     enable_shared_with_static_runtimes \
9932     old_archive_cmds \
9933     old_archive_from_new_cmds \
9934     predep_objects \
9935     postdep_objects \
9936     predeps \
9937     postdeps \
9938     compiler_lib_search_path \
9939     archive_cmds \
9940     archive_expsym_cmds \
9941     postinstall_cmds \
9942     postuninstall_cmds \
9943     old_archive_from_expsyms_cmds \
9944     allow_undefined_flag \
9945     no_undefined_flag \
9946     export_symbols_cmds \
9947     hardcode_libdir_flag_spec \
9948     hardcode_libdir_flag_spec_ld \
9949     hardcode_libdir_separator \
9950     hardcode_automatic \
9951     module_cmds \
9952     module_expsym_cmds \
9953     lt_cv_prog_compiler_c_o \
9954     exclude_expsyms \
9955     include_expsyms; do
9956
9957     case $var in
9958     old_archive_cmds | \
9959     old_archive_from_new_cmds | \
9960     archive_cmds | \
9961     archive_expsym_cmds | \
9962     module_cmds | \
9963     module_expsym_cmds | \
9964     old_archive_from_expsyms_cmds | \
9965     export_symbols_cmds | \
9966     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9967     postinstall_cmds | postuninstall_cmds | \
9968     old_postinstall_cmds | old_postuninstall_cmds | \
9969     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9970       # Double-quote double-evaled strings.
9971       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9972       ;;
9973     *)
9974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9975       ;;
9976     esac
9977   done
9978
9979   case $lt_echo in
9980   *'\$0 --fallback-echo"')
9981     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9982     ;;
9983   esac
9984
9985 cfgfile="${ofile}T"
9986   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9987   $rm -f "$cfgfile"
9988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9989 printf "%s\n" "$as_me: creating $ofile" >&6;}
9990
9991   cat <<__EOF__ >> "$cfgfile"
9992 #! $SHELL
9993
9994 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9995 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9996 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9997 #
9998 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9999 # Free Software Foundation, Inc.
10000 #
10001 # This file is part of GNU Libtool:
10002 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10003 #
10004 # This program is free software; you can redistribute it and/or modify
10005 # it under the terms of the GNU General Public License as published by
10006 # the Free Software Foundation; either version 2 of the License, or
10007 # (at your option) any later version.
10008 #
10009 # This program is distributed in the hope that it will be useful, but
10010 # WITHOUT ANY WARRANTY; without even the implied warranty of
10011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10012 # General Public License for more details.
10013 #
10014 # You should have received a copy of the GNU General Public License
10015 # along with this program; if not, write to the Free Software
10016 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10017 #
10018 # As a special exception to the GNU General Public License, if you
10019 # distribute this file as part of a program that contains a
10020 # configuration script generated by Autoconf, you may include it under
10021 # the same distribution terms that you use for the rest of that program.
10022
10023 # A sed program that does not truncate output.
10024 SED=$lt_SED
10025
10026 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10027 Xsed="$SED -e 1s/^X//"
10028
10029 # The HP-UX ksh and POSIX shell print the target directory to stdout
10030 # if CDPATH is set.
10031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10032
10033 # The names of the tagged configurations supported by this script.
10034 available_tags=
10035
10036 # ### BEGIN LIBTOOL CONFIG
10037
10038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10039
10040 # Shell to use when invoking shell scripts.
10041 SHELL=$lt_SHELL
10042
10043 # Whether or not to build shared libraries.
10044 build_libtool_libs=$enable_shared
10045
10046 # Whether or not to build static libraries.
10047 build_old_libs=$enable_static
10048
10049 # Whether or not to add -lc for building shared libraries.
10050 build_libtool_need_lc=$archive_cmds_need_lc
10051
10052 # Whether or not to disallow shared libs when runtime libs are static
10053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10054
10055 # Whether or not to optimize for fast installation.
10056 fast_install=$enable_fast_install
10057
10058 # The host system.
10059 host_alias=$host_alias
10060 host=$host
10061 host_os=$host_os
10062
10063 # The build system.
10064 build_alias=$build_alias
10065 build=$build
10066 build_os=$build_os
10067
10068 # An echo program that does not interpret backslashes.
10069 echo=$lt_echo
10070
10071 # The archiver.
10072 AR=$lt_AR
10073 AR_FLAGS=$lt_AR_FLAGS
10074
10075 # A C compiler.
10076 LTCC=$lt_LTCC
10077
10078 # LTCC compiler flags.
10079 LTCFLAGS=$lt_LTCFLAGS
10080
10081 # A language-specific compiler.
10082 CC=$lt_compiler
10083
10084 # Is the compiler the GNU C compiler?
10085 with_gcc=$GCC
10086
10087 # An ERE matcher.
10088 EGREP=$lt_EGREP
10089
10090 # The linker used to build libraries.
10091 LD=$lt_LD
10092
10093 # Whether we need hard or soft links.
10094 LN_S=$lt_LN_S
10095
10096 # A BSD-compatible nm program.
10097 NM=$lt_NM
10098
10099 # A symbol stripping program
10100 STRIP=$lt_STRIP
10101
10102 # Used to examine libraries when file_magic_cmd begins "file"
10103 MAGIC_CMD=$MAGIC_CMD
10104
10105 # Used on cygwin: DLL creation program.
10106 DLLTOOL="$DLLTOOL"
10107
10108 # Used on cygwin: object dumper.
10109 OBJDUMP="$OBJDUMP"
10110
10111 # Used on cygwin: assembler.
10112 AS="$AS"
10113
10114 # The name of the directory that contains temporary libtool files.
10115 objdir=$objdir
10116
10117 # How to create reloadable object files.
10118 reload_flag=$lt_reload_flag
10119 reload_cmds=$lt_reload_cmds
10120
10121 # How to pass a linker flag through the compiler.
10122 wl=$lt_lt_prog_compiler_wl
10123
10124 # Object file suffix (normally "o").
10125 objext="$ac_objext"
10126
10127 # Old archive suffix (normally "a").
10128 libext="$libext"
10129
10130 # Shared library suffix (normally ".so").
10131 shrext_cmds='$shrext_cmds'
10132
10133 # Executable file suffix (normally "").
10134 exeext="$exeext"
10135
10136 # Additional compiler flags for building library objects.
10137 pic_flag=$lt_lt_prog_compiler_pic
10138 pic_mode=$pic_mode
10139
10140 # What is the maximum length of a command?
10141 max_cmd_len=$lt_cv_sys_max_cmd_len
10142
10143 # Does compiler simultaneously support -c and -o options?
10144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10145
10146 # Must we lock files when doing compilation?
10147 need_locks=$lt_need_locks
10148
10149 # Do we need the lib prefix for modules?
10150 need_lib_prefix=$need_lib_prefix
10151
10152 # Do we need a version for libraries?
10153 need_version=$need_version
10154
10155 # Whether dlopen is supported.
10156 dlopen_support=$enable_dlopen
10157
10158 # Whether dlopen of programs is supported.
10159 dlopen_self=$enable_dlopen_self
10160
10161 # Whether dlopen of statically linked programs is supported.
10162 dlopen_self_static=$enable_dlopen_self_static
10163
10164 # Compiler flag to prevent dynamic linking.
10165 link_static_flag=$lt_lt_prog_compiler_static
10166
10167 # Compiler flag to turn off builtin functions.
10168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10169
10170 # Compiler flag to allow reflexive dlopens.
10171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10172
10173 # Compiler flag to generate shared objects directly from archives.
10174 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10175
10176 # Compiler flag to generate thread-safe objects.
10177 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10178
10179 # Library versioning type.
10180 version_type=$version_type
10181
10182 # Format of library name prefix.
10183 libname_spec=$lt_libname_spec
10184
10185 # List of archive names.  First name is the real one, the rest are links.
10186 # The last name is the one that the linker finds with -lNAME.
10187 library_names_spec=$lt_library_names_spec
10188
10189 # The coded name of the library, if different from the real name.
10190 soname_spec=$lt_soname_spec
10191
10192 # Commands used to build and install an old-style archive.
10193 RANLIB=$lt_RANLIB
10194 old_archive_cmds=$lt_old_archive_cmds
10195 old_postinstall_cmds=$lt_old_postinstall_cmds
10196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10197
10198 # Create an old-style archive from a shared archive.
10199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10200
10201 # Create a temporary old-style archive to link instead of a shared archive.
10202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10203
10204 # Commands used to build and install a shared archive.
10205 archive_cmds=$lt_archive_cmds
10206 archive_expsym_cmds=$lt_archive_expsym_cmds
10207 postinstall_cmds=$lt_postinstall_cmds
10208 postuninstall_cmds=$lt_postuninstall_cmds
10209
10210 # Commands used to build a loadable module (assumed same as above if empty)
10211 module_cmds=$lt_module_cmds
10212 module_expsym_cmds=$lt_module_expsym_cmds
10213
10214 # Commands to strip libraries.
10215 old_striplib=$lt_old_striplib
10216 striplib=$lt_striplib
10217
10218 # Dependencies to place before the objects being linked to create a
10219 # shared library.
10220 predep_objects=$lt_predep_objects
10221
10222 # Dependencies to place after the objects being linked to create a
10223 # shared library.
10224 postdep_objects=$lt_postdep_objects
10225
10226 # Dependencies to place before the objects being linked to create a
10227 # shared library.
10228 predeps=$lt_predeps
10229
10230 # Dependencies to place after the objects being linked to create a
10231 # shared library.
10232 postdeps=$lt_postdeps
10233
10234 # The library search path used internally by the compiler when linking
10235 # a shared library.
10236 compiler_lib_search_path=$lt_compiler_lib_search_path
10237
10238 # Method to check whether dependent libraries are shared objects.
10239 deplibs_check_method=$lt_deplibs_check_method
10240
10241 # Command to use when deplibs_check_method == file_magic.
10242 file_magic_cmd=$lt_file_magic_cmd
10243
10244 # Flag that allows shared libraries with undefined symbols to be built.
10245 allow_undefined_flag=$lt_allow_undefined_flag
10246
10247 # Flag that forces no undefined symbols.
10248 no_undefined_flag=$lt_no_undefined_flag
10249
10250 # Commands used to finish a libtool library installation in a directory.
10251 finish_cmds=$lt_finish_cmds
10252
10253 # Same as above, but a single script fragment to be evaled but not shown.
10254 finish_eval=$lt_finish_eval
10255
10256 # Take the output of nm and produce a listing of raw symbols and C names.
10257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10258
10259 # Transform the output of nm in a proper C declaration
10260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10261
10262 # Transform the output of nm in a C name address pair
10263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10264
10265 # This is the shared library runtime path variable.
10266 runpath_var=$runpath_var
10267
10268 # This is the shared library path variable.
10269 shlibpath_var=$shlibpath_var
10270
10271 # Is shlibpath searched before the hard-coded library search path?
10272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10273
10274 # How to hardcode a shared library path into an executable.
10275 hardcode_action=$hardcode_action
10276
10277 # Whether we should hardcode library paths into libraries.
10278 hardcode_into_libs=$hardcode_into_libs
10279
10280 # Flag to hardcode \$libdir into a binary during linking.
10281 # This must work even if \$libdir does not exist.
10282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10283
10284 # If ld is used when linking, flag to hardcode \$libdir into
10285 # a binary during linking. This must work even if \$libdir does
10286 # not exist.
10287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10288
10289 # Whether we need a single -rpath flag with a separated argument.
10290 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10291
10292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10293 # resulting binary.
10294 hardcode_direct=$hardcode_direct
10295
10296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10297 # resulting binary.
10298 hardcode_minus_L=$hardcode_minus_L
10299
10300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10301 # the resulting binary.
10302 hardcode_shlibpath_var=$hardcode_shlibpath_var
10303
10304 # Set to yes if building a shared library automatically hardcodes DIR into the library
10305 # and all subsequent libraries and executables linked against it.
10306 hardcode_automatic=$hardcode_automatic
10307
10308 # Variables whose values should be saved in libtool wrapper scripts and
10309 # restored at relink time.
10310 variables_saved_for_relink="$variables_saved_for_relink"
10311
10312 # Whether libtool must link a program against all its dependency libraries.
10313 link_all_deplibs=$link_all_deplibs
10314
10315 # Compile-time system search path for libraries
10316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10317
10318 # Run-time system search path for libraries
10319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10320
10321 # Fix the shell variable \$srcfile for the compiler.
10322 fix_srcfile_path="$fix_srcfile_path"
10323
10324 # Set to yes if exported symbols are required.
10325 always_export_symbols=$always_export_symbols
10326
10327 # The commands to list exported symbols.
10328 export_symbols_cmds=$lt_export_symbols_cmds
10329
10330 # The commands to extract the exported symbol list from a shared archive.
10331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10332
10333 # Symbols that should not be listed in the preloaded symbols.
10334 exclude_expsyms=$lt_exclude_expsyms
10335
10336 # Symbols that must always be exported.
10337 include_expsyms=$lt_include_expsyms
10338
10339 # ### END LIBTOOL CONFIG
10340
10341 __EOF__
10342
10343
10344   case $host_os in
10345   aix3*)
10346     cat <<\EOF >> "$cfgfile"
10347
10348 # AIX sometimes has problems with the GCC collect2 program.  For some
10349 # reason, if we set the COLLECT_NAMES environment variable, the problems
10350 # vanish in a puff of smoke.
10351 if test "X${COLLECT_NAMES+set}" != Xset; then
10352   COLLECT_NAMES=
10353   export COLLECT_NAMES
10354 fi
10355 EOF
10356     ;;
10357   esac
10358
10359   # We use sed instead of cat because bash on DJGPP gets confused if
10360   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10361   # text mode, it properly converts lines to CR/LF.  This bash problem
10362   # is reportedly fixed, but why not run on old versions too?
10363   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10364
10365   mv -f "$cfgfile" "$ofile" || \
10366     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10367   chmod +x "$ofile"
10368
10369 else
10370   # If there is no Makefile yet, we rely on a make rule to execute
10371   # `config.status --recheck' to rerun these tests and create the
10372   # libtool script then.
10373   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10374   if test -f "$ltmain_in"; then
10375     test -f Makefile && make "$ltmain"
10376   fi
10377 fi
10378
10379
10380 ac_ext=c
10381 ac_cpp='$CPP $CPPFLAGS'
10382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10385
10386 CC="$lt_save_CC"
10387
10388
10389 # Check whether --with-tags was given.
10390 if test ${with_tags+y}
10391 then :
10392   withval=$with_tags; tagnames="$withval"
10393 fi
10394
10395
10396 if test -f "$ltmain" && test -n "$tagnames"; then
10397   if test ! -f "${ofile}"; then
10398     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10399 printf "%s\n" "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10400   fi
10401
10402   if test -z "$LTCC"; then
10403     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10404     if test -z "$LTCC"; then
10405       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10406 printf "%s\n" "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10407     else
10408       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10409 printf "%s\n" "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10410     fi
10411   fi
10412   if test -z "$LTCFLAGS"; then
10413     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10414   fi
10415
10416   # Extract list of available tagged configurations in $ofile.
10417   # Note that this assumes the entire list is on one line.
10418   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10419
10420   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10421   for tagname in $tagnames; do
10422     IFS="$lt_save_ifs"
10423     # Check whether tagname contains only valid characters
10424     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10425     "") ;;
10426     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10427         ;;
10428     esac
10429
10430     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10431     then
10432       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10433     fi
10434
10435     # Update the list of available tags.
10436     if test -n "$tagname"; then
10437       echo appending configuration tag \"$tagname\" to $ofile
10438
10439       case $tagname in
10440       CXX)
10441         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10442             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10443             (test "X$CXX" != "Xg++"))) ; then
10444           ac_ext=cpp
10445 ac_cpp='$CXXCPP $CPPFLAGS'
10446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10449
10450
10451
10452
10453 archive_cmds_need_lc_CXX=no
10454 allow_undefined_flag_CXX=
10455 always_export_symbols_CXX=no
10456 archive_expsym_cmds_CXX=
10457 export_dynamic_flag_spec_CXX=
10458 hardcode_direct_CXX=no
10459 hardcode_libdir_flag_spec_CXX=
10460 hardcode_libdir_flag_spec_ld_CXX=
10461 hardcode_libdir_separator_CXX=
10462 hardcode_minus_L_CXX=no
10463 hardcode_shlibpath_var_CXX=unsupported
10464 hardcode_automatic_CXX=no
10465 module_cmds_CXX=
10466 module_expsym_cmds_CXX=
10467 link_all_deplibs_CXX=unknown
10468 old_archive_cmds_CXX=$old_archive_cmds
10469 no_undefined_flag_CXX=
10470 whole_archive_flag_spec_CXX=
10471 enable_shared_with_static_runtimes_CXX=no
10472
10473 # Dependencies to place before and after the object being linked:
10474 predep_objects_CXX=
10475 postdep_objects_CXX=
10476 predeps_CXX=
10477 postdeps_CXX=
10478 compiler_lib_search_path_CXX=
10479
10480 # Source file extension for C++ test sources.
10481 ac_ext=cpp
10482
10483 # Object file extension for compiled C++ test sources.
10484 objext=o
10485 objext_CXX=$objext
10486
10487 # Code to be used in simple compile tests
10488 lt_simple_compile_test_code="int some_variable = 0;\n"
10489
10490 # Code to be used in simple link tests
10491 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10492
10493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10494
10495 # If no C compiler was specified, use CC.
10496 LTCC=${LTCC-"$CC"}
10497
10498 # If no C compiler flags were specified, use CFLAGS.
10499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10500
10501 # Allow CC to be a program name with arguments.
10502 compiler=$CC
10503
10504
10505 # save warnings/boilerplate of simple test code
10506 ac_outfile=conftest.$ac_objext
10507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10509 _lt_compiler_boilerplate=`cat conftest.err`
10510 $rm conftest*
10511
10512 ac_outfile=conftest.$ac_objext
10513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10515 _lt_linker_boilerplate=`cat conftest.err`
10516 $rm conftest*
10517
10518
10519 # Allow CC to be a program name with arguments.
10520 lt_save_CC=$CC
10521 lt_save_LD=$LD
10522 lt_save_GCC=$GCC
10523 GCC=$GXX
10524 lt_save_with_gnu_ld=$with_gnu_ld
10525 lt_save_path_LD=$lt_cv_path_LD
10526 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10527   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10528 else
10529   $as_unset lt_cv_prog_gnu_ld
10530 fi
10531 if test -n "${lt_cv_path_LDCXX+set}"; then
10532   lt_cv_path_LD=$lt_cv_path_LDCXX
10533 else
10534   $as_unset lt_cv_path_LD
10535 fi
10536 test -z "${LDCXX+set}" || LD=$LDCXX
10537 CC=${CXX-"c++"}
10538 compiler=$CC
10539 compiler_CXX=$CC
10540 for cc_temp in $compiler""; do
10541   case $cc_temp in
10542     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10543     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10544     \-*) ;;
10545     *) break;;
10546   esac
10547 done
10548 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10549
10550
10551 # We don't want -fno-exception wen compiling C++ code, so set the
10552 # no_builtin_flag separately
10553 if test "$GXX" = yes; then
10554   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10555 else
10556   lt_prog_compiler_no_builtin_flag_CXX=
10557 fi
10558
10559 if test "$GXX" = yes; then
10560   # Set up default GNU C++ configuration
10561
10562
10563 # Check whether --with-gnu-ld was given.
10564 if test ${with_gnu_ld+y}
10565 then :
10566   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10567 else $as_nop
10568   with_gnu_ld=no
10569 fi
10570
10571 ac_prog=ld
10572 if test "$GCC" = yes; then
10573   # Check if gcc -print-prog-name=ld gives a path.
10574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10575 printf %s "checking for ld used by $CC... " >&6; }
10576   case $host in
10577   *-*-mingw*)
10578     # gcc leaves a trailing carriage return which upsets mingw
10579     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10580   *)
10581     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10582   esac
10583   case $ac_prog in
10584     # Accept absolute paths.
10585     [\\/]* | ?:[\\/]*)
10586       re_direlt='/[^/][^/]*/\.\./'
10587       # Canonicalize the pathname of ld
10588       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10589       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10590         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10591       done
10592       test -z "$LD" && LD="$ac_prog"
10593       ;;
10594   "")
10595     # If it fails, then pretend we aren't using GCC.
10596     ac_prog=ld
10597     ;;
10598   *)
10599     # If it is relative, then search for the first ld in PATH.
10600     with_gnu_ld=unknown
10601     ;;
10602   esac
10603 elif test "$with_gnu_ld" = yes; then
10604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10605 printf %s "checking for GNU ld... " >&6; }
10606 else
10607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10608 printf %s "checking for non-GNU ld... " >&6; }
10609 fi
10610 if test ${lt_cv_path_LD+y}
10611 then :
10612   printf %s "(cached) " >&6
10613 else $as_nop
10614   if test -z "$LD"; then
10615   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10616   for ac_dir in $PATH; do
10617     IFS="$lt_save_ifs"
10618     test -z "$ac_dir" && ac_dir=.
10619     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10620       lt_cv_path_LD="$ac_dir/$ac_prog"
10621       # Check to see if the program is GNU ld.  I'd rather use --version,
10622       # but apparently some variants of GNU ld only accept -v.
10623       # Break only if it was the GNU/non-GNU ld that we prefer.
10624       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10625       *GNU* | *'with BFD'*)
10626         test "$with_gnu_ld" != no && break
10627         ;;
10628       *)
10629         test "$with_gnu_ld" != yes && break
10630         ;;
10631       esac
10632     fi
10633   done
10634   IFS="$lt_save_ifs"
10635 else
10636   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10637 fi
10638 fi
10639
10640 LD="$lt_cv_path_LD"
10641 if test -n "$LD"; then
10642   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10643 printf "%s\n" "$LD" >&6; }
10644 else
10645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 printf "%s\n" "no" >&6; }
10647 fi
10648 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10650 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
10651 if test ${lt_cv_prog_gnu_ld+y}
10652 then :
10653   printf %s "(cached) " >&6
10654 else $as_nop
10655   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10656 case `$LD -v 2>&1 </dev/null` in
10657 *GNU* | *'with BFD'*)
10658   lt_cv_prog_gnu_ld=yes
10659   ;;
10660 *)
10661   lt_cv_prog_gnu_ld=no
10662   ;;
10663 esac
10664 fi
10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10666 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
10667 with_gnu_ld=$lt_cv_prog_gnu_ld
10668
10669
10670
10671   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10672   # archiving commands below assume that GNU ld is being used.
10673   if test "$with_gnu_ld" = yes; then
10674     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10675     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'
10676
10677     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10678     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679
10680     # If archive_cmds runs LD, not CC, wlarc should be empty
10681     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10682     #     investigate it a little bit more. (MM)
10683     wlarc='${wl}'
10684
10685     # ancient GNU ld didn't support --whole-archive et. al.
10686     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10687         grep 'no-whole-archive' > /dev/null; then
10688       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10689     else
10690       whole_archive_flag_spec_CXX=
10691     fi
10692   else
10693     with_gnu_ld=no
10694     wlarc=
10695
10696     # A generic and very simple default shared library creation
10697     # command for GNU C++ for the case where it uses the native
10698     # linker, instead of GNU ld.  If possible, this setting should
10699     # overridden to take advantage of the native linker features on
10700     # the platform it is being used on.
10701     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10702   fi
10703
10704   # Commands to make compiler produce verbose output that lists
10705   # what "hidden" libraries, object files and flags are used when
10706   # linking a shared library.
10707   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10708
10709 else
10710   GXX=no
10711   with_gnu_ld=no
10712   wlarc=
10713 fi
10714
10715 # PORTME: fill in a description of your system's C++ link characteristics
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10717 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10718 ld_shlibs_CXX=yes
10719 case $host_os in
10720   aix3*)
10721     # FIXME: insert proper C++ library support
10722     ld_shlibs_CXX=no
10723     ;;
10724   aix4* | aix5*)
10725     if test "$host_cpu" = ia64; then
10726       # On IA64, the linker does run time linking by default, so we don't
10727       # have to do anything special.
10728       aix_use_runtimelinking=no
10729       exp_sym_flag='-Bexport'
10730       no_entry_flag=""
10731     else
10732       aix_use_runtimelinking=no
10733
10734       # Test if we are trying to use run time linking or normal
10735       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10736       # need to do runtime linking.
10737       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10738         for ld_flag in $LDFLAGS; do
10739           case $ld_flag in
10740           *-brtl*)
10741             aix_use_runtimelinking=yes
10742             break
10743             ;;
10744           esac
10745         done
10746         ;;
10747       esac
10748
10749       exp_sym_flag='-bexport'
10750       no_entry_flag='-bnoentry'
10751     fi
10752
10753     # When large executables or shared objects are built, AIX ld can
10754     # have problems creating the table of contents.  If linking a library
10755     # or program results in "error TOC overflow" add -mminimal-toc to
10756     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10757     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10758
10759     archive_cmds_CXX=''
10760     hardcode_direct_CXX=yes
10761     hardcode_libdir_separator_CXX=':'
10762     link_all_deplibs_CXX=yes
10763
10764     if test "$GXX" = yes; then
10765       case $host_os in aix4.[012]|aix4.[012].*)
10766       # We only want to do this on AIX 4.2 and lower, the check
10767       # below for broken collect2 doesn't work under 4.3+
10768         collect2name=`${CC} -print-prog-name=collect2`
10769         if test -f "$collect2name" && \
10770            strings "$collect2name" | grep resolve_lib_name >/dev/null
10771         then
10772           # We have reworked collect2
10773           hardcode_direct_CXX=yes
10774         else
10775           # We have old collect2
10776           hardcode_direct_CXX=unsupported
10777           # It fails to find uninstalled libraries when the uninstalled
10778           # path is not listed in the libpath.  Setting hardcode_minus_L
10779           # to unsupported forces relinking
10780           hardcode_minus_L_CXX=yes
10781           hardcode_libdir_flag_spec_CXX='-L$libdir'
10782           hardcode_libdir_separator_CXX=
10783         fi
10784         ;;
10785       esac
10786       shared_flag='-shared'
10787       if test "$aix_use_runtimelinking" = yes; then
10788         shared_flag="$shared_flag "'${wl}-G'
10789       fi
10790     else
10791       # not using gcc
10792       if test "$host_cpu" = ia64; then
10793         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10794         # chokes on -Wl,-G. The following line is correct:
10795         shared_flag='-G'
10796       else
10797         if test "$aix_use_runtimelinking" = yes; then
10798           shared_flag='${wl}-G'
10799         else
10800           shared_flag='${wl}-bM:SRE'
10801         fi
10802       fi
10803     fi
10804
10805     # It seems that -bexpall does not export symbols beginning with
10806     # underscore (_), so it is better to generate a list of symbols to export.
10807     always_export_symbols_CXX=yes
10808     if test "$aix_use_runtimelinking" = yes; then
10809       # Warning - without using the other runtime loading flags (-brtl),
10810       # -berok will link without error, but may produce a broken library.
10811       allow_undefined_flag_CXX='-berok'
10812       # Determine the default libpath from the value encoded in an empty executable.
10813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h.  */
10815
10816 int
10817 main (void)
10818 {
10819
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 if ac_fn_cxx_try_link "$LINENO"
10825 then :
10826
10827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10828 }'`
10829 # Check for a 64-bit object if we didn't find anything.
10830 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10831 }'`; fi
10832 fi
10833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10834     conftest$ac_exeext conftest.$ac_ext
10835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10836
10837       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10838
10839       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"
10840      else
10841       if test "$host_cpu" = ia64; then
10842         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10843         allow_undefined_flag_CXX="-z nodefs"
10844         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"
10845       else
10846         # Determine the default libpath from the value encoded in an empty executable.
10847         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h.  */
10849
10850 int
10851 main (void)
10852 {
10853
10854   ;
10855   return 0;
10856 }
10857 _ACEOF
10858 if ac_fn_cxx_try_link "$LINENO"
10859 then :
10860
10861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10862 }'`
10863 # Check for a 64-bit object if we didn't find anything.
10864 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10865 }'`; fi
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10868     conftest$ac_exeext conftest.$ac_ext
10869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10870
10871         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10872         # Warning - without using the other run time loading flags,
10873         # -berok will link without error, but may produce a broken library.
10874         no_undefined_flag_CXX=' ${wl}-bernotok'
10875         allow_undefined_flag_CXX=' ${wl}-berok'
10876         # Exported symbols can be pulled into shared objects from archives
10877         whole_archive_flag_spec_CXX='$convenience'
10878         archive_cmds_need_lc_CXX=yes
10879         # This is similar to how AIX traditionally builds its shared libraries.
10880         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'
10881       fi
10882     fi
10883     ;;
10884
10885   beos*)
10886     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10887       allow_undefined_flag_CXX=unsupported
10888       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10889       # support --undefined.  This deserves some investigation.  FIXME
10890       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891     else
10892       ld_shlibs_CXX=no
10893     fi
10894     ;;
10895
10896   chorus*)
10897     case $cc_basename in
10898       *)
10899         # FIXME: insert proper C++ library support
10900         ld_shlibs_CXX=no
10901         ;;
10902     esac
10903     ;;
10904
10905   cygwin* | mingw* | pw32*)
10906     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10907     # as there is no search path for DLLs.
10908     hardcode_libdir_flag_spec_CXX='-L$libdir'
10909     allow_undefined_flag_CXX=unsupported
10910     always_export_symbols_CXX=no
10911     enable_shared_with_static_runtimes_CXX=yes
10912
10913     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10914       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'
10915       # If the export-symbols file already is a .def file (1st line
10916       # is EXPORTS), use it as is; otherwise, prepend...
10917       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10918         cp $export_symbols $output_objdir/$soname.def;
10919       else
10920         echo EXPORTS > $output_objdir/$soname.def;
10921         cat $export_symbols >> $output_objdir/$soname.def;
10922       fi~
10923       $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'
10924     else
10925       ld_shlibs_CXX=no
10926     fi
10927   ;;
10928       darwin* | rhapsody*)
10929         case $host_os in
10930         rhapsody* | darwin1.[012])
10931          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10932          ;;
10933        *) # Darwin 1.3 on
10934          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10935            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10936          else
10937            case ${MACOSX_DEPLOYMENT_TARGET} in
10938              10.[012])
10939                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10940                ;;
10941              10.*)
10942                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10943                ;;
10944            esac
10945          fi
10946          ;;
10947         esac
10948       archive_cmds_need_lc_CXX=no
10949       hardcode_direct_CXX=no
10950       hardcode_automatic_CXX=yes
10951       hardcode_shlibpath_var_CXX=unsupported
10952       whole_archive_flag_spec_CXX=''
10953       link_all_deplibs_CXX=yes
10954
10955     if test "$GXX" = yes ; then
10956       lt_int_apple_cc_single_mod=no
10957       output_verbose_link_cmd='echo'
10958       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10959        lt_int_apple_cc_single_mod=yes
10960       fi
10961       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10962        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10963       else
10964           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'
10965         fi
10966         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10967         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10968           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10969             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10970           else
10971             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10972           fi
10973             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}'
10974       else
10975       case $cc_basename in
10976         xlc*)
10977          output_verbose_link_cmd='echo'
10978           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10979           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10980           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10981           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10982           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}'
10983           ;;
10984        *)
10985          ld_shlibs_CXX=no
10986           ;;
10987       esac
10988       fi
10989         ;;
10990
10991   dgux*)
10992     case $cc_basename in
10993       ec++*)
10994         # FIXME: insert proper C++ library support
10995         ld_shlibs_CXX=no
10996         ;;
10997       ghcx*)
10998         # Green Hills C++ Compiler
10999         # FIXME: insert proper C++ library support
11000         ld_shlibs_CXX=no
11001         ;;
11002       *)
11003         # FIXME: insert proper C++ library support
11004         ld_shlibs_CXX=no
11005         ;;
11006     esac
11007     ;;
11008   freebsd[12]*)
11009     # C++ shared libraries reported to be fairly broken before switch to ELF
11010     ld_shlibs_CXX=no
11011     ;;
11012   freebsd-elf*)
11013     archive_cmds_need_lc_CXX=no
11014     ;;
11015   freebsd* | kfreebsd*-gnu | dragonfly*)
11016     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11017     # conventions
11018     ld_shlibs_CXX=yes
11019     ;;
11020   gnu*)
11021     ;;
11022   hpux9*)
11023     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11024     hardcode_libdir_separator_CXX=:
11025     export_dynamic_flag_spec_CXX='${wl}-E'
11026     hardcode_direct_CXX=yes
11027     hardcode_minus_L_CXX=yes # Not in the search PATH,
11028                                 # but as the default
11029                                 # location of the library.
11030
11031     case $cc_basename in
11032     CC*)
11033       # FIXME: insert proper C++ library support
11034       ld_shlibs_CXX=no
11035       ;;
11036     aCC*)
11037       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'
11038       # Commands to make compiler produce verbose output that lists
11039       # what "hidden" libraries, object files and flags are used when
11040       # linking a shared library.
11041       #
11042       # There doesn't appear to be a way to prevent this compiler from
11043       # explicitly linking system object files so we need to strip them
11044       # from the output so that they don't get included in the library
11045       # dependencies.
11046       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'
11047       ;;
11048     *)
11049       if test "$GXX" = yes; then
11050         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'
11051       else
11052         # FIXME: insert proper C++ library support
11053         ld_shlibs_CXX=no
11054       fi
11055       ;;
11056     esac
11057     ;;
11058   hpux10*|hpux11*)
11059     if test $with_gnu_ld = no; then
11060       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11061       hardcode_libdir_separator_CXX=:
11062
11063       case $host_cpu in
11064       hppa*64*|ia64*)
11065         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11066         ;;
11067       *)
11068         export_dynamic_flag_spec_CXX='${wl}-E'
11069         ;;
11070       esac
11071     fi
11072     case $host_cpu in
11073     hppa*64*|ia64*)
11074       hardcode_direct_CXX=no
11075       hardcode_shlibpath_var_CXX=no
11076       ;;
11077     *)
11078       hardcode_direct_CXX=yes
11079       hardcode_minus_L_CXX=yes # Not in the search PATH,
11080                                               # but as the default
11081                                               # location of the library.
11082       ;;
11083     esac
11084
11085     case $cc_basename in
11086       CC*)
11087         # FIXME: insert proper C++ library support
11088         ld_shlibs_CXX=no
11089         ;;
11090       aCC*)
11091         case $host_cpu in
11092         hppa*64*)
11093           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11094           ;;
11095         ia64*)
11096           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11097           ;;
11098         *)
11099           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11100           ;;
11101         esac
11102         # Commands to make compiler produce verbose output that lists
11103         # what "hidden" libraries, object files and flags are used when
11104         # linking a shared library.
11105         #
11106         # There doesn't appear to be a way to prevent this compiler from
11107         # explicitly linking system object files so we need to strip them
11108         # from the output so that they don't get included in the library
11109         # dependencies.
11110         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'
11111         ;;
11112       *)
11113         if test "$GXX" = yes; then
11114           if test $with_gnu_ld = no; then
11115             case $host_cpu in
11116             hppa*64*)
11117               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11118               ;;
11119             ia64*)
11120               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11121               ;;
11122             *)
11123               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'
11124               ;;
11125             esac
11126           fi
11127         else
11128           # FIXME: insert proper C++ library support
11129           ld_shlibs_CXX=no
11130         fi
11131         ;;
11132     esac
11133     ;;
11134   interix3*)
11135     hardcode_direct_CXX=no
11136     hardcode_shlibpath_var_CXX=no
11137     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11138     export_dynamic_flag_spec_CXX='${wl}-E'
11139     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11140     # Instead, shared libraries are loaded at an image base (0x10000000 by
11141     # default) and relocated if they conflict, which is a slow very memory
11142     # consuming and fragmenting process.  To avoid this, we pick a random,
11143     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11144     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11145     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'
11146     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'
11147     ;;
11148   irix5* | irix6*)
11149     case $cc_basename in
11150       CC*)
11151         # SGI C++
11152         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'
11153
11154         # Archives containing C++ object files must be created using
11155         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11156         # necessary to make sure instantiated templates are included
11157         # in the archive.
11158         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11159         ;;
11160       *)
11161         if test "$GXX" = yes; then
11162           if test "$with_gnu_ld" = no; then
11163             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'
11164           else
11165             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'
11166           fi
11167         fi
11168         link_all_deplibs_CXX=yes
11169         ;;
11170     esac
11171     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11172     hardcode_libdir_separator_CXX=:
11173     ;;
11174   linux*)
11175     case $cc_basename in
11176       KCC*)
11177         # Kuck and Associates, Inc. (KAI) C++ Compiler
11178
11179         # KCC will only create a shared library if the output file
11180         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11181         # to its proper name (with version) after linking.
11182         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'
11183         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'
11184         # Commands to make compiler produce verbose output that lists
11185         # what "hidden" libraries, object files and flags are used when
11186         # linking a shared library.
11187         #
11188         # There doesn't appear to be a way to prevent this compiler from
11189         # explicitly linking system object files so we need to strip them
11190         # from the output so that they don't get included in the library
11191         # dependencies.
11192         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'
11193
11194         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11195         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11196
11197         # Archives containing C++ object files must be created using
11198         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11199         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11200         ;;
11201       icpc*)
11202         # Intel C++
11203         with_gnu_ld=yes
11204         # version 8.0 and above of icpc choke on multiply defined symbols
11205         # if we add $predep_objects and $postdep_objects, however 7.1 and
11206         # earlier do not add the objects themselves.
11207         case `$CC -V 2>&1` in
11208         *"Version 7."*)
11209           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11210           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'
11211           ;;
11212         *)  # Version 8.0 or newer
11213           tmp_idyn=
11214           case $host_cpu in
11215             ia64*) tmp_idyn=' -i_dynamic';;
11216           esac
11217           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11218           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'
11219           ;;
11220         esac
11221         archive_cmds_need_lc_CXX=no
11222         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11223         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11224         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11225         ;;
11226       pgCC*)
11227         # Portland Group C++ compiler
11228         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11229         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'
11230
11231         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11232         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11233         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'
11234         ;;
11235       cxx*)
11236         # Compaq C++
11237         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11238         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'
11239
11240         runpath_var=LD_RUN_PATH
11241         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11242         hardcode_libdir_separator_CXX=:
11243
11244         # Commands to make compiler produce verbose output that lists
11245         # what "hidden" libraries, object files and flags are used when
11246         # linking a shared library.
11247         #
11248         # There doesn't appear to be a way to prevent this compiler from
11249         # explicitly linking system object files so we need to strip them
11250         # from the output so that they don't get included in the library
11251         # dependencies.
11252         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'
11253         ;;
11254     esac
11255     ;;
11256   lynxos*)
11257     # FIXME: insert proper C++ library support
11258     ld_shlibs_CXX=no
11259     ;;
11260   m88k*)
11261     # FIXME: insert proper C++ library support
11262     ld_shlibs_CXX=no
11263     ;;
11264   mvs*)
11265     case $cc_basename in
11266       cxx*)
11267         # FIXME: insert proper C++ library support
11268         ld_shlibs_CXX=no
11269         ;;
11270       *)
11271         # FIXME: insert proper C++ library support
11272         ld_shlibs_CXX=no
11273         ;;
11274     esac
11275     ;;
11276   netbsd*)
11277     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11278       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11279       wlarc=
11280       hardcode_libdir_flag_spec_CXX='-R$libdir'
11281       hardcode_direct_CXX=yes
11282       hardcode_shlibpath_var_CXX=no
11283     fi
11284     # Workaround some broken pre-1.5 toolchains
11285     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11286     ;;
11287   openbsd2*)
11288     # C++ shared libraries are fairly broken
11289     ld_shlibs_CXX=no
11290     ;;
11291   openbsd*)
11292     hardcode_direct_CXX=yes
11293     hardcode_shlibpath_var_CXX=no
11294     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11295     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11296     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11297       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11298       export_dynamic_flag_spec_CXX='${wl}-E'
11299       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11300     fi
11301     output_verbose_link_cmd='echo'
11302     ;;
11303   osf3*)
11304     case $cc_basename in
11305       KCC*)
11306         # Kuck and Associates, Inc. (KAI) C++ Compiler
11307
11308         # KCC will only create a shared library if the output file
11309         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11310         # to its proper name (with version) after linking.
11311         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'
11312
11313         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11314         hardcode_libdir_separator_CXX=:
11315
11316         # Archives containing C++ object files must be created using
11317         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11318         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11319
11320         ;;
11321       RCC*)
11322         # Rational C++ 2.4.1
11323         # FIXME: insert proper C++ library support
11324         ld_shlibs_CXX=no
11325         ;;
11326       cxx*)
11327         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11328         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'
11329
11330         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11331         hardcode_libdir_separator_CXX=:
11332
11333         # Commands to make compiler produce verbose output that lists
11334         # what "hidden" libraries, object files and flags are used when
11335         # linking a shared library.
11336         #
11337         # There doesn't appear to be a way to prevent this compiler from
11338         # explicitly linking system object files so we need to strip them
11339         # from the output so that they don't get included in the library
11340         # dependencies.
11341         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'
11342         ;;
11343       *)
11344         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11346           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'
11347
11348           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11349           hardcode_libdir_separator_CXX=:
11350
11351           # Commands to make compiler produce verbose output that lists
11352           # what "hidden" libraries, object files and flags are used when
11353           # linking a shared library.
11354           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11355
11356         else
11357           # FIXME: insert proper C++ library support
11358           ld_shlibs_CXX=no
11359         fi
11360         ;;
11361     esac
11362     ;;
11363   osf4* | osf5*)
11364     case $cc_basename in
11365       KCC*)
11366         # Kuck and Associates, Inc. (KAI) C++ Compiler
11367
11368         # KCC will only create a shared library if the output file
11369         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11370         # to its proper name (with version) after linking.
11371         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'
11372
11373         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11374         hardcode_libdir_separator_CXX=:
11375
11376         # Archives containing C++ object files must be created using
11377         # the KAI C++ compiler.
11378         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11379         ;;
11380       RCC*)
11381         # Rational C++ 2.4.1
11382         # FIXME: insert proper C++ library support
11383         ld_shlibs_CXX=no
11384         ;;
11385       cxx*)
11386         allow_undefined_flag_CXX=' -expect_unresolved \*'
11387         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'
11388         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11389           echo "-hidden">> $lib.exp~
11390           $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~
11391           $rm $lib.exp'
11392
11393         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11394         hardcode_libdir_separator_CXX=:
11395
11396         # Commands to make compiler produce verbose output that lists
11397         # what "hidden" libraries, object files and flags are used when
11398         # linking a shared library.
11399         #
11400         # There doesn't appear to be a way to prevent this compiler from
11401         # explicitly linking system object files so we need to strip them
11402         # from the output so that they don't get included in the library
11403         # dependencies.
11404         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'
11405         ;;
11406       *)
11407         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11408           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11409          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'
11410
11411           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11412           hardcode_libdir_separator_CXX=:
11413
11414           # Commands to make compiler produce verbose output that lists
11415           # what "hidden" libraries, object files and flags are used when
11416           # linking a shared library.
11417           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11418
11419         else
11420           # FIXME: insert proper C++ library support
11421           ld_shlibs_CXX=no
11422         fi
11423         ;;
11424     esac
11425     ;;
11426   psos*)
11427     # FIXME: insert proper C++ library support
11428     ld_shlibs_CXX=no
11429     ;;
11430   sunos4*)
11431     case $cc_basename in
11432       CC*)
11433         # Sun C++ 4.x
11434         # FIXME: insert proper C++ library support
11435         ld_shlibs_CXX=no
11436         ;;
11437       lcc*)
11438         # Lucid
11439         # FIXME: insert proper C++ library support
11440         ld_shlibs_CXX=no
11441         ;;
11442       *)
11443         # FIXME: insert proper C++ library support
11444         ld_shlibs_CXX=no
11445         ;;
11446     esac
11447     ;;
11448   solaris*)
11449     case $cc_basename in
11450       CC*)
11451         # Sun C++ 4.2, 5.x and Centerline C++
11452         archive_cmds_need_lc_CXX=yes
11453         no_undefined_flag_CXX=' -zdefs'
11454         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11455         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11456         $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'
11457
11458         hardcode_libdir_flag_spec_CXX='-R$libdir'
11459         hardcode_shlibpath_var_CXX=no
11460         case $host_os in
11461           solaris2.[0-5] | solaris2.[0-5].*) ;;
11462           *)
11463             # The C++ compiler is used as linker so we must use $wl
11464             # flag to pass the commands to the underlying system
11465             # linker. We must also pass each convience library through
11466             # to the system linker between allextract/defaultextract.
11467             # The C++ compiler will combine linker options so we
11468             # cannot just pass the convience library names through
11469             # without $wl.
11470             # Supported since Solaris 2.6 (maybe 2.5.1?)
11471             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11472             ;;
11473         esac
11474         link_all_deplibs_CXX=yes
11475
11476         output_verbose_link_cmd='echo'
11477
11478         # Archives containing C++ object files must be created using
11479         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11480         # necessary to make sure instantiated templates are included
11481         # in the archive.
11482         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11483         ;;
11484       gcx*)
11485         # Green Hills C++ Compiler
11486         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11487
11488         # The C++ compiler must be used to create the archive.
11489         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11490         ;;
11491       *)
11492         # GNU C++ compiler with Solaris linker
11493         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11494           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11495           if $CC --version | grep -v '^2\.7' > /dev/null; then
11496             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11497             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11498                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11499
11500             # Commands to make compiler produce verbose output that lists
11501             # what "hidden" libraries, object files and flags are used when
11502             # linking a shared library.
11503             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11504           else
11505             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11506             # platform.
11507             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11508             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11509                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11510
11511             # Commands to make compiler produce verbose output that lists
11512             # what "hidden" libraries, object files and flags are used when
11513             # linking a shared library.
11514             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11515           fi
11516
11517           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11518         fi
11519         ;;
11520     esac
11521     ;;
11522   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11523     no_undefined_flag_CXX='${wl}-z,text'
11524     archive_cmds_need_lc_CXX=no
11525     hardcode_shlibpath_var_CXX=no
11526     runpath_var='LD_RUN_PATH'
11527
11528     case $cc_basename in
11529       CC*)
11530         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11531         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11532         ;;
11533       *)
11534         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11535         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11536         ;;
11537     esac
11538     ;;
11539   sysv5* | sco3.2v5* | sco5v6*)
11540     # Note: We can NOT use -z defs as we might desire, because we do not
11541     # link with -lc, and that would cause any symbols used from libc to
11542     # always be unresolved, which means just about no library would
11543     # ever link correctly.  If we're not using GNU ld we use -z text
11544     # though, which does catch some bad symbols but isn't as heavy-handed
11545     # as -z defs.
11546     # For security reasons, it is highly recommended that you always
11547     # use absolute paths for naming shared libraries, and exclude the
11548     # DT_RUNPATH tag from executables and libraries.  But doing so
11549     # requires that you compile everything twice, which is a pain.
11550     # So that behaviour is only enabled if SCOABSPATH is set to a
11551     # non-empty value in the environment.  Most likely only useful for
11552     # creating official distributions of packages.
11553     # This is a hack until libtool officially supports absolute path
11554     # names for shared libraries.
11555     no_undefined_flag_CXX='${wl}-z,text'
11556     allow_undefined_flag_CXX='${wl}-z,nodefs'
11557     archive_cmds_need_lc_CXX=no
11558     hardcode_shlibpath_var_CXX=no
11559     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11560     hardcode_libdir_separator_CXX=':'
11561     link_all_deplibs_CXX=yes
11562     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11563     runpath_var='LD_RUN_PATH'
11564
11565     case $cc_basename in
11566       CC*)
11567         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11568         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11569         ;;
11570       *)
11571         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11572         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11573         ;;
11574     esac
11575     ;;
11576   tandem*)
11577     case $cc_basename in
11578       NCC*)
11579         # NonStop-UX NCC 3.20
11580         # FIXME: insert proper C++ library support
11581         ld_shlibs_CXX=no
11582         ;;
11583       *)
11584         # FIXME: insert proper C++ library support
11585         ld_shlibs_CXX=no
11586         ;;
11587     esac
11588     ;;
11589   vxworks*)
11590     # FIXME: insert proper C++ library support
11591     ld_shlibs_CXX=no
11592     ;;
11593   *)
11594     # FIXME: insert proper C++ library support
11595     ld_shlibs_CXX=no
11596     ;;
11597 esac
11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11599 printf "%s\n" "$ld_shlibs_CXX" >&6; }
11600 test "$ld_shlibs_CXX" = no && can_build_shared=no
11601
11602 GCC_CXX="$GXX"
11603 LD_CXX="$LD"
11604
11605 ## CAVEAT EMPTOR:
11606 ## There is no encapsulation within the following macros, do not change
11607 ## the running order or otherwise move them around unless you know exactly
11608 ## what you are doing...
11609
11610 cat > conftest.$ac_ext <<EOF
11611 class Foo
11612 {
11613 public:
11614   Foo (void) { a = 0; }
11615 private:
11616   int a;
11617 };
11618 EOF
11619
11620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11621   (eval $ac_compile) 2>&5
11622   ac_status=$?
11623   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624   test $ac_status = 0; }; then
11625   # Parse the compiler output and extract the necessary
11626   # objects, libraries and library flags.
11627
11628   # Sentinel used to keep track of whether or not we are before
11629   # the conftest object file.
11630   pre_test_object_deps_done=no
11631
11632   # The `*' in the case matches for architectures that use `case' in
11633   # $output_verbose_cmd can trigger glob expansion during the loop
11634   # eval without this substitution.
11635   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11636
11637   for p in `eval $output_verbose_link_cmd`; do
11638     case $p in
11639
11640     -L* | -R* | -l*)
11641        # Some compilers place space between "-{L,R}" and the path.
11642        # Remove the space.
11643        if test $p = "-L" \
11644           || test $p = "-R"; then
11645          prev=$p
11646          continue
11647        else
11648          prev=
11649        fi
11650
11651        if test "$pre_test_object_deps_done" = no; then
11652          case $p in
11653          -L* | -R*)
11654            # Internal compiler library paths should come after those
11655            # provided the user.  The postdeps already come after the
11656            # user supplied libs so there is no need to process them.
11657            if test -z "$compiler_lib_search_path_CXX"; then
11658              compiler_lib_search_path_CXX="${prev}${p}"
11659            else
11660              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11661            fi
11662            ;;
11663          # The "-l" case would never come before the object being
11664          # linked, so don't bother handling this case.
11665          esac
11666        else
11667          if test -z "$postdeps_CXX"; then
11668            postdeps_CXX="${prev}${p}"
11669          else
11670            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11671          fi
11672        fi
11673        ;;
11674
11675     *.$objext)
11676        # This assumes that the test object file only shows up
11677        # once in the compiler output.
11678        if test "$p" = "conftest.$objext"; then
11679          pre_test_object_deps_done=yes
11680          continue
11681        fi
11682
11683        if test "$pre_test_object_deps_done" = no; then
11684          if test -z "$predep_objects_CXX"; then
11685            predep_objects_CXX="$p"
11686          else
11687            predep_objects_CXX="$predep_objects_CXX $p"
11688          fi
11689        else
11690          if test -z "$postdep_objects_CXX"; then
11691            postdep_objects_CXX="$p"
11692          else
11693            postdep_objects_CXX="$postdep_objects_CXX $p"
11694          fi
11695        fi
11696        ;;
11697
11698     *) ;; # Ignore the rest.
11699
11700     esac
11701   done
11702
11703   # Clean up.
11704   rm -f a.out a.exe
11705 else
11706   echo "libtool.m4: error: problem compiling CXX test program"
11707 fi
11708
11709 $rm -f confest.$objext
11710
11711 # PORTME: override above test on systems where it is broken
11712 case $host_os in
11713 interix3*)
11714   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11715   # hack all around it, let's just trust "g++" to DTRT.
11716   predep_objects_CXX=
11717   postdep_objects_CXX=
11718   postdeps_CXX=
11719   ;;
11720
11721 solaris*)
11722   case $cc_basename in
11723   CC*)
11724     # Adding this requires a known-good setup of shared libraries for
11725     # Sun compiler versions before 5.6, else PIC objects from an old
11726     # archive will be linked into the output, leading to subtle bugs.
11727     postdeps_CXX='-lCstd -lCrun'
11728     ;;
11729   esac
11730   ;;
11731 esac
11732
11733
11734 case " $postdeps_CXX " in
11735 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11736 esac
11737
11738 lt_prog_compiler_wl_CXX=
11739 lt_prog_compiler_pic_CXX=
11740 lt_prog_compiler_static_CXX=
11741
11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11743 printf %s "checking for $compiler option to produce PIC... " >&6; }
11744
11745   # C++ specific cases for pic, static, wl, etc.
11746   if test "$GXX" = yes; then
11747     lt_prog_compiler_wl_CXX='-Wl,'
11748     lt_prog_compiler_static_CXX='-static'
11749
11750     case $host_os in
11751     aix*)
11752       # All AIX code is PIC.
11753       if test "$host_cpu" = ia64; then
11754         # AIX 5 now supports IA64 processor
11755         lt_prog_compiler_static_CXX='-Bstatic'
11756       fi
11757       ;;
11758     amigaos*)
11759       # FIXME: we need at least 68020 code to build shared libraries, but
11760       # adding the `-m68020' flag to GCC prevents building anything better,
11761       # like `-m68040'.
11762       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11763       ;;
11764     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11765       # PIC is the default for these OSes.
11766       ;;
11767     mingw* | os2* | pw32*)
11768       # This hack is so that the source file can tell whether it is being
11769       # built for inclusion in a dll (and should export symbols for example).
11770       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11771       ;;
11772     darwin* | rhapsody*)
11773       # PIC is the default on this platform
11774       # Common symbols not allowed in MH_DYLIB files
11775       lt_prog_compiler_pic_CXX='-fno-common'
11776       ;;
11777     *djgpp*)
11778       # DJGPP does not support shared libraries at all
11779       lt_prog_compiler_pic_CXX=
11780       ;;
11781     interix3*)
11782       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11783       # Instead, we relocate shared libraries at runtime.
11784       ;;
11785     sysv4*MP*)
11786       if test -d /usr/nec; then
11787         lt_prog_compiler_pic_CXX=-Kconform_pic
11788       fi
11789       ;;
11790     hpux*)
11791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11792       # not for PA HP-UX.
11793       case $host_cpu in
11794       hppa*64*|ia64*)
11795         ;;
11796       *)
11797         lt_prog_compiler_pic_CXX='-fPIC'
11798         ;;
11799       esac
11800       ;;
11801     *)
11802       lt_prog_compiler_pic_CXX='-fPIC'
11803       ;;
11804     esac
11805   else
11806     case $host_os in
11807       aix4* | aix5*)
11808         # All AIX code is PIC.
11809         if test "$host_cpu" = ia64; then
11810           # AIX 5 now supports IA64 processor
11811           lt_prog_compiler_static_CXX='-Bstatic'
11812         else
11813           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11814         fi
11815         ;;
11816       chorus*)
11817         case $cc_basename in
11818         cxch68*)
11819           # Green Hills C++ Compiler
11820           # _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"
11821           ;;
11822         esac
11823         ;;
11824        darwin*)
11825          # PIC is the default on this platform
11826          # Common symbols not allowed in MH_DYLIB files
11827          case $cc_basename in
11828            xlc*)
11829            lt_prog_compiler_pic_CXX='-qnocommon'
11830            lt_prog_compiler_wl_CXX='-Wl,'
11831            ;;
11832          esac
11833        ;;
11834       dgux*)
11835         case $cc_basename in
11836           ec++*)
11837             lt_prog_compiler_pic_CXX='-KPIC'
11838             ;;
11839           ghcx*)
11840             # Green Hills C++ Compiler
11841             lt_prog_compiler_pic_CXX='-pic'
11842             ;;
11843           *)
11844             ;;
11845         esac
11846         ;;
11847       freebsd* | kfreebsd*-gnu | dragonfly*)
11848         # FreeBSD uses GNU C++
11849         ;;
11850       hpux9* | hpux10* | hpux11*)
11851         case $cc_basename in
11852           CC*)
11853             lt_prog_compiler_wl_CXX='-Wl,'
11854             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11855             if test "$host_cpu" != ia64; then
11856               lt_prog_compiler_pic_CXX='+Z'
11857             fi
11858             ;;
11859           aCC*)
11860             lt_prog_compiler_wl_CXX='-Wl,'
11861             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11862             case $host_cpu in
11863             hppa*64*|ia64*)
11864               # +Z the default
11865               ;;
11866             *)
11867               lt_prog_compiler_pic_CXX='+Z'
11868               ;;
11869             esac
11870             ;;
11871           *)
11872             ;;
11873         esac
11874         ;;
11875       interix*)
11876         # This is c89, which is MS Visual C++ (no shared libs)
11877         # Anyone wants to do a port?
11878         ;;
11879       irix5* | irix6* | nonstopux*)
11880         case $cc_basename in
11881           CC*)
11882             lt_prog_compiler_wl_CXX='-Wl,'
11883             lt_prog_compiler_static_CXX='-non_shared'
11884             # CC pic flag -KPIC is the default.
11885             ;;
11886           *)
11887             ;;
11888         esac
11889         ;;
11890       linux*)
11891         case $cc_basename in
11892           KCC*)
11893             # KAI C++ Compiler
11894             lt_prog_compiler_wl_CXX='--backend -Wl,'
11895             lt_prog_compiler_pic_CXX='-fPIC'
11896             ;;
11897           icpc* | ecpc*)
11898             # Intel C++
11899             lt_prog_compiler_wl_CXX='-Wl,'
11900             lt_prog_compiler_pic_CXX='-KPIC'
11901             lt_prog_compiler_static_CXX='-static'
11902             ;;
11903           pgCC*)
11904             # Portland Group C++ compiler.
11905             lt_prog_compiler_wl_CXX='-Wl,'
11906             lt_prog_compiler_pic_CXX='-fpic'
11907             lt_prog_compiler_static_CXX='-Bstatic'
11908             ;;
11909           cxx*)
11910             # Compaq C++
11911             # Make sure the PIC flag is empty.  It appears that all Alpha
11912             # Linux and Compaq Tru64 Unix objects are PIC.
11913             lt_prog_compiler_pic_CXX=
11914             lt_prog_compiler_static_CXX='-non_shared'
11915             ;;
11916           *)
11917             ;;
11918         esac
11919         ;;
11920       lynxos*)
11921         ;;
11922       m88k*)
11923         ;;
11924       mvs*)
11925         case $cc_basename in
11926           cxx*)
11927             lt_prog_compiler_pic_CXX='-W c,exportall'
11928             ;;
11929           *)
11930             ;;
11931         esac
11932         ;;
11933       netbsd*)
11934         ;;
11935       osf3* | osf4* | osf5*)
11936         case $cc_basename in
11937           KCC*)
11938             lt_prog_compiler_wl_CXX='--backend -Wl,'
11939             ;;
11940           RCC*)
11941             # Rational C++ 2.4.1
11942             lt_prog_compiler_pic_CXX='-pic'
11943             ;;
11944           cxx*)
11945             # Digital/Compaq C++
11946             lt_prog_compiler_wl_CXX='-Wl,'
11947             # Make sure the PIC flag is empty.  It appears that all Alpha
11948             # Linux and Compaq Tru64 Unix objects are PIC.
11949             lt_prog_compiler_pic_CXX=
11950             lt_prog_compiler_static_CXX='-non_shared'
11951             ;;
11952           *)
11953             ;;
11954         esac
11955         ;;
11956       psos*)
11957         ;;
11958       solaris*)
11959         case $cc_basename in
11960           CC*)
11961             # Sun C++ 4.2, 5.x and Centerline C++
11962             lt_prog_compiler_pic_CXX='-KPIC'
11963             lt_prog_compiler_static_CXX='-Bstatic'
11964             lt_prog_compiler_wl_CXX='-Qoption ld '
11965             ;;
11966           gcx*)
11967             # Green Hills C++ Compiler
11968             lt_prog_compiler_pic_CXX='-PIC'
11969             ;;
11970           *)
11971             ;;
11972         esac
11973         ;;
11974       sunos4*)
11975         case $cc_basename in
11976           CC*)
11977             # Sun C++ 4.x
11978             lt_prog_compiler_pic_CXX='-pic'
11979             lt_prog_compiler_static_CXX='-Bstatic'
11980             ;;
11981           lcc*)
11982             # Lucid
11983             lt_prog_compiler_pic_CXX='-pic'
11984             ;;
11985           *)
11986             ;;
11987         esac
11988         ;;
11989       tandem*)
11990         case $cc_basename in
11991           NCC*)
11992             # NonStop-UX NCC 3.20
11993             lt_prog_compiler_pic_CXX='-KPIC'
11994             ;;
11995           *)
11996             ;;
11997         esac
11998         ;;
11999       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12000         case $cc_basename in
12001           CC*)
12002             lt_prog_compiler_wl_CXX='-Wl,'
12003             lt_prog_compiler_pic_CXX='-KPIC'
12004             lt_prog_compiler_static_CXX='-Bstatic'
12005             ;;
12006         esac
12007         ;;
12008       vxworks*)
12009         ;;
12010       *)
12011         lt_prog_compiler_can_build_shared_CXX=no
12012         ;;
12013     esac
12014   fi
12015
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12017 printf "%s\n" "$lt_prog_compiler_pic_CXX" >&6; }
12018
12019 #
12020 # Check to make sure the PIC flag actually works.
12021 #
12022 if test -n "$lt_prog_compiler_pic_CXX"; then
12023
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12025 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12026 if test ${lt_prog_compiler_pic_works_CXX+y}
12027 then :
12028   printf %s "(cached) " >&6
12029 else $as_nop
12030   lt_prog_compiler_pic_works_CXX=no
12031   ac_outfile=conftest.$ac_objext
12032    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12033    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12034    # Insert the option either (1) after the last *FLAGS variable, or
12035    # (2) before a word containing "conftest.", or (3) at the end.
12036    # Note that $ac_compile itself does not contain backslashes and begins
12037    # with a dollar sign (not a hyphen), so the echo should work correctly.
12038    # The option is referenced via a variable to avoid confusing sed.
12039    lt_compile=`echo "$ac_compile" | $SED \
12040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12042    -e 's:$: $lt_compiler_flag:'`
12043    (eval echo "\"\$as_me:12043: $lt_compile\"" >&5)
12044    (eval "$lt_compile" 2>conftest.err)
12045    ac_status=$?
12046    cat conftest.err >&5
12047    echo "$as_me:12047: \$? = $ac_status" >&5
12048    if (exit $ac_status) && test -s "$ac_outfile"; then
12049      # The compiler can only warn and ignore the option if not recognized
12050      # So say no if there are warnings other than the usual output.
12051      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12052      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12053      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12054        lt_prog_compiler_pic_works_CXX=yes
12055      fi
12056    fi
12057    $rm conftest*
12058
12059 fi
12060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12061 printf "%s\n" "$lt_prog_compiler_pic_works_CXX" >&6; }
12062
12063 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12064     case $lt_prog_compiler_pic_CXX in
12065      "" | " "*) ;;
12066      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12067      esac
12068 else
12069     lt_prog_compiler_pic_CXX=
12070      lt_prog_compiler_can_build_shared_CXX=no
12071 fi
12072
12073 fi
12074 case $host_os in
12075   # For platforms which do not support PIC, -DPIC is meaningless:
12076   *djgpp*)
12077     lt_prog_compiler_pic_CXX=
12078     ;;
12079   *)
12080     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12081     ;;
12082 esac
12083
12084 #
12085 # Check to make sure the static flag actually works.
12086 #
12087 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12089 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12090 if test ${lt_prog_compiler_static_works_CXX+y}
12091 then :
12092   printf %s "(cached) " >&6
12093 else $as_nop
12094   lt_prog_compiler_static_works_CXX=no
12095    save_LDFLAGS="$LDFLAGS"
12096    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12097    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12098    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12099      # The linker can only warn and ignore the option if not recognized
12100      # So say no if there are warnings
12101      if test -s conftest.err; then
12102        # Append any errors to the config.log.
12103        cat conftest.err 1>&5
12104        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12105        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12106        if diff conftest.exp conftest.er2 >/dev/null; then
12107          lt_prog_compiler_static_works_CXX=yes
12108        fi
12109      else
12110        lt_prog_compiler_static_works_CXX=yes
12111      fi
12112    fi
12113    $rm conftest*
12114    LDFLAGS="$save_LDFLAGS"
12115
12116 fi
12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12118 printf "%s\n" "$lt_prog_compiler_static_works_CXX" >&6; }
12119
12120 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12121     :
12122 else
12123     lt_prog_compiler_static_CXX=
12124 fi
12125
12126
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12128 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12129 if test ${lt_cv_prog_compiler_c_o_CXX+y}
12130 then :
12131   printf %s "(cached) " >&6
12132 else $as_nop
12133   lt_cv_prog_compiler_c_o_CXX=no
12134    $rm -r conftest 2>/dev/null
12135    mkdir conftest
12136    cd conftest
12137    mkdir out
12138    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12139
12140    lt_compiler_flag="-o out/conftest2.$ac_objext"
12141    # Insert the option either (1) after the last *FLAGS variable, or
12142    # (2) before a word containing "conftest.", or (3) at the end.
12143    # Note that $ac_compile itself does not contain backslashes and begins
12144    # with a dollar sign (not a hyphen), so the echo should work correctly.
12145    lt_compile=`echo "$ac_compile" | $SED \
12146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12148    -e 's:$: $lt_compiler_flag:'`
12149    (eval echo "\"\$as_me:12149: $lt_compile\"" >&5)
12150    (eval "$lt_compile" 2>out/conftest.err)
12151    ac_status=$?
12152    cat out/conftest.err >&5
12153    echo "$as_me:12153: \$? = $ac_status" >&5
12154    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12155    then
12156      # The compiler can only warn and ignore the option if not recognized
12157      # So say no if there are warnings
12158      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12159      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12160      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12161        lt_cv_prog_compiler_c_o_CXX=yes
12162      fi
12163    fi
12164    chmod u+w . 2>&5
12165    $rm conftest*
12166    # SGI C++ compiler will create directory out/ii_files/ for
12167    # template instantiation
12168    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12169    $rm out/* && rmdir out
12170    cd ..
12171    rmdir conftest
12172    $rm conftest*
12173
12174 fi
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12176 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12177
12178
12179 hard_links="nottested"
12180 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12181   # do not overwrite the value of need_locks provided by the user
12182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12183 printf %s "checking if we can lock with hard links... " >&6; }
12184   hard_links=yes
12185   $rm conftest*
12186   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12187   touch conftest.a
12188   ln conftest.a conftest.b 2>&5 || hard_links=no
12189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12190   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12191 printf "%s\n" "$hard_links" >&6; }
12192   if test "$hard_links" = no; then
12193     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12194 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12195     need_locks=warn
12196   fi
12197 else
12198   need_locks=no
12199 fi
12200
12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12202 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12203
12204   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12205   case $host_os in
12206   aix4* | aix5*)
12207     # If we're using GNU nm, then we don't want the "-C" option.
12208     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12209     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12210       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'
12211     else
12212       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'
12213     fi
12214     ;;
12215   pw32*)
12216     export_symbols_cmds_CXX="$ltdll_cmds"
12217   ;;
12218   cygwin* | mingw*)
12219     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'
12220   ;;
12221   *)
12222     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12223   ;;
12224   esac
12225
12226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12227 printf "%s\n" "$ld_shlibs_CXX" >&6; }
12228 test "$ld_shlibs_CXX" = no && can_build_shared=no
12229
12230 #
12231 # Do we need to explicitly link libc?
12232 #
12233 case "x$archive_cmds_need_lc_CXX" in
12234 x|xyes)
12235   # Assume -lc should be added
12236   archive_cmds_need_lc_CXX=yes
12237
12238   if test "$enable_shared" = yes && test "$GCC" = yes; then
12239     case $archive_cmds_CXX in
12240     *'~'*)
12241       # FIXME: we may have to deal with multi-command sequences.
12242       ;;
12243     '$CC '*)
12244       # Test whether the compiler implicitly links with -lc since on some
12245       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12246       # to ld, don't add -lc before -lgcc.
12247       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12248 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12249       $rm conftest*
12250       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12251
12252       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12253   (eval $ac_compile) 2>&5
12254   ac_status=$?
12255   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256   test $ac_status = 0; } 2>conftest.err; then
12257         soname=conftest
12258         lib=conftest
12259         libobjs=conftest.$ac_objext
12260         deplibs=
12261         wl=$lt_prog_compiler_wl_CXX
12262         pic_flag=$lt_prog_compiler_pic_CXX
12263         compiler_flags=-v
12264         linker_flags=-v
12265         verstring=
12266         output_objdir=.
12267         libname=conftest
12268         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12269         allow_undefined_flag_CXX=
12270         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12271   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12272   ac_status=$?
12273   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12274   test $ac_status = 0; }
12275         then
12276           archive_cmds_need_lc_CXX=no
12277         else
12278           archive_cmds_need_lc_CXX=yes
12279         fi
12280         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12281       else
12282         cat conftest.err 1>&5
12283       fi
12284       $rm conftest*
12285       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12286 printf "%s\n" "$archive_cmds_need_lc_CXX" >&6; }
12287       ;;
12288     esac
12289   fi
12290   ;;
12291 esac
12292
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12294 printf %s "checking dynamic linker characteristics... " >&6; }
12295 library_names_spec=
12296 libname_spec='lib$name'
12297 soname_spec=
12298 shrext_cmds=".so"
12299 postinstall_cmds=
12300 postuninstall_cmds=
12301 finish_cmds=
12302 finish_eval=
12303 shlibpath_var=
12304 shlibpath_overrides_runpath=unknown
12305 version_type=none
12306 dynamic_linker="$host_os ld.so"
12307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12308 if test "$GCC" = yes; then
12309   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12310   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12311     # if the path contains ";" then we assume it to be the separator
12312     # otherwise default to the standard path separator (i.e. ":") - it is
12313     # assumed that no part of a normal pathname contains ";" but that should
12314     # okay in the real world where ";" in dirpaths is itself problematic.
12315     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12316   else
12317     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12318   fi
12319 else
12320   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12321 fi
12322 need_lib_prefix=unknown
12323 hardcode_into_libs=no
12324
12325 # when you set need_version to no, make sure it does not cause -set_version
12326 # flags to be left without arguments
12327 need_version=unknown
12328
12329 case $host_os in
12330 aix3*)
12331   version_type=linux
12332   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12333   shlibpath_var=LIBPATH
12334
12335   # AIX 3 has no versioning support, so we append a major version to the name.
12336   soname_spec='${libname}${release}${shared_ext}$major'
12337   ;;
12338
12339 aix4* | aix5*)
12340   version_type=linux
12341   need_lib_prefix=no
12342   need_version=no
12343   hardcode_into_libs=yes
12344   if test "$host_cpu" = ia64; then
12345     # AIX 5 supports IA64
12346     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12347     shlibpath_var=LD_LIBRARY_PATH
12348   else
12349     # With GCC up to 2.95.x, collect2 would create an import file
12350     # for dependence libraries.  The import file would start with
12351     # the line `#! .'.  This would cause the generated library to
12352     # depend on `.', always an invalid library.  This was fixed in
12353     # development snapshots of GCC prior to 3.0.
12354     case $host_os in
12355       aix4 | aix4.[01] | aix4.[01].*)
12356       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12357            echo ' yes '
12358            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12359         :
12360       else
12361         can_build_shared=no
12362       fi
12363       ;;
12364     esac
12365     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12366     # soname into executable. Probably we can add versioning support to
12367     # collect2, so additional links can be useful in future.
12368     if test "$aix_use_runtimelinking" = yes; then
12369       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12370       # instead of lib<name>.a to let people know that these are not
12371       # typical AIX shared libraries.
12372       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12373     else
12374       # We preserve .a as extension for shared libraries through AIX4.2
12375       # and later when we are not doing run time linking.
12376       library_names_spec='${libname}${release}.a $libname.a'
12377       soname_spec='${libname}${release}${shared_ext}$major'
12378     fi
12379     shlibpath_var=LIBPATH
12380   fi
12381   ;;
12382
12383 amigaos*)
12384   library_names_spec='$libname.ixlibrary $libname.a'
12385   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12386   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'
12387   ;;
12388
12389 beos*)
12390   library_names_spec='${libname}${shared_ext}'
12391   dynamic_linker="$host_os ld.so"
12392   shlibpath_var=LIBRARY_PATH
12393   ;;
12394
12395 bsdi[45]*)
12396   version_type=linux
12397   need_version=no
12398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12399   soname_spec='${libname}${release}${shared_ext}$major'
12400   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12401   shlibpath_var=LD_LIBRARY_PATH
12402   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12403   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12404   # the default ld.so.conf also contains /usr/contrib/lib and
12405   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12406   # libtool to hard-code these into programs
12407   ;;
12408
12409 cygwin* | mingw* | pw32*)
12410   version_type=windows
12411   shrext_cmds=".dll"
12412   need_version=no
12413   need_lib_prefix=no
12414
12415   case $GCC,$host_os in
12416   yes,cygwin* | yes,mingw* | yes,pw32*)
12417     library_names_spec='$libname.dll.a'
12418     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12419     postinstall_cmds='base_file=`basename \${file}`~
12420       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12421       dldir=$destdir/`dirname \$dlpath`~
12422       test -d \$dldir || mkdir -p \$dldir~
12423       $install_prog $dir/$dlname \$dldir/$dlname~
12424       chmod a+x \$dldir/$dlname'
12425     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12426       dlpath=$dir/\$dldll~
12427        $rm \$dlpath'
12428     shlibpath_overrides_runpath=yes
12429
12430     case $host_os in
12431     cygwin*)
12432       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12433       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12434       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12435       ;;
12436     mingw*)
12437       # MinGW DLLs use traditional 'lib' prefix
12438       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12439       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12440       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12441         # It is most probably a Windows format PATH printed by
12442         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12443         # path with ; separators, and with drive letters. We can handle the
12444         # drive letters (cygwin fileutils understands them), so leave them,
12445         # especially as we might pass files found there to a mingw objdump,
12446         # which wouldn't understand a cygwinified path. Ahh.
12447         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12448       else
12449         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12450       fi
12451       ;;
12452     pw32*)
12453       # pw32 DLLs use 'pw' prefix rather than 'lib'
12454       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12455       ;;
12456     esac
12457     ;;
12458
12459   *)
12460     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12461     ;;
12462   esac
12463   dynamic_linker='Win32 ld.exe'
12464   # FIXME: first we should search . and the directory the executable is in
12465   shlibpath_var=PATH
12466   ;;
12467
12468 darwin* | rhapsody*)
12469   dynamic_linker="$host_os dyld"
12470   version_type=darwin
12471   need_lib_prefix=no
12472   need_version=no
12473   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12474   soname_spec='${libname}${release}${major}$shared_ext'
12475   shlibpath_overrides_runpath=yes
12476   shlibpath_var=DYLD_LIBRARY_PATH
12477   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12478   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12479   if test "$GCC" = yes; then
12480     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12481   else
12482     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12483   fi
12484   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12485   ;;
12486
12487 dgux*)
12488   version_type=linux
12489   need_lib_prefix=no
12490   need_version=no
12491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12492   soname_spec='${libname}${release}${shared_ext}$major'
12493   shlibpath_var=LD_LIBRARY_PATH
12494   ;;
12495
12496 freebsd1.*)
12497   dynamic_linker=no
12498   ;;
12499
12500 kfreebsd*-gnu)
12501   version_type=linux
12502   need_lib_prefix=no
12503   need_version=no
12504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12505   soname_spec='${libname}${release}${shared_ext}$major'
12506   shlibpath_var=LD_LIBRARY_PATH
12507   shlibpath_overrides_runpath=no
12508   hardcode_into_libs=yes
12509   dynamic_linker='GNU ld.so'
12510   ;;
12511
12512 freebsd* | dragonfly*)
12513   # DragonFly does not have aout.  When/if they implement a new
12514   # versioning mechanism, adjust this.
12515   if test -x /usr/bin/objformat; then
12516     objformat=`/usr/bin/objformat`
12517   else
12518     case $host_os in
12519     freebsd[123]*) objformat=aout ;;
12520     *) objformat=elf ;;
12521     esac
12522   fi
12523   version_type=freebsd-$objformat
12524   case $version_type in
12525     freebsd-elf*)
12526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12527       need_version=no
12528       need_lib_prefix=no
12529       ;;
12530     freebsd-*)
12531       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12532       need_version=yes
12533       ;;
12534   esac
12535   shlibpath_var=LD_LIBRARY_PATH
12536   case $host_os in
12537   freebsd2.*)
12538     shlibpath_overrides_runpath=yes
12539     ;;
12540   freebsd3.[01]* | freebsdelf3.[01]*)
12541     shlibpath_overrides_runpath=yes
12542     hardcode_into_libs=yes
12543     ;;
12544   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12545   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12546     shlibpath_overrides_runpath=no
12547     hardcode_into_libs=yes
12548     ;;
12549   freebsd*) # from 4.6 on
12550     shlibpath_overrides_runpath=yes
12551     hardcode_into_libs=yes
12552     ;;
12553   esac
12554   ;;
12555
12556 gnu*)
12557   version_type=linux
12558   need_lib_prefix=no
12559   need_version=no
12560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12561   soname_spec='${libname}${release}${shared_ext}$major'
12562   shlibpath_var=LD_LIBRARY_PATH
12563   hardcode_into_libs=yes
12564   ;;
12565
12566 hpux9* | hpux10* | hpux11*)
12567   # Give a soname corresponding to the major version so that dld.sl refuses to
12568   # link against other versions.
12569   version_type=sunos
12570   need_lib_prefix=no
12571   need_version=no
12572   case $host_cpu in
12573   ia64*)
12574     shrext_cmds='.so'
12575     hardcode_into_libs=yes
12576     dynamic_linker="$host_os dld.so"
12577     shlibpath_var=LD_LIBRARY_PATH
12578     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580     soname_spec='${libname}${release}${shared_ext}$major'
12581     if test "X$HPUX_IA64_MODE" = X32; then
12582       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12583     else
12584       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12585     fi
12586     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12587     ;;
12588    hppa*64*)
12589      shrext_cmds='.sl'
12590      hardcode_into_libs=yes
12591      dynamic_linker="$host_os dld.sl"
12592      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12593      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12594      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595      soname_spec='${libname}${release}${shared_ext}$major'
12596      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12597      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12598      ;;
12599    *)
12600     shrext_cmds='.sl'
12601     dynamic_linker="$host_os dld.sl"
12602     shlibpath_var=SHLIB_PATH
12603     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12605     soname_spec='${libname}${release}${shared_ext}$major'
12606     ;;
12607   esac
12608   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12609   postinstall_cmds='chmod 555 $lib'
12610   ;;
12611
12612 interix3*)
12613   version_type=linux
12614   need_lib_prefix=no
12615   need_version=no
12616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12617   soname_spec='${libname}${release}${shared_ext}$major'
12618   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12619   shlibpath_var=LD_LIBRARY_PATH
12620   shlibpath_overrides_runpath=no
12621   hardcode_into_libs=yes
12622   ;;
12623
12624 irix5* | irix6* | nonstopux*)
12625   case $host_os in
12626     nonstopux*) version_type=nonstopux ;;
12627     *)
12628         if test "$lt_cv_prog_gnu_ld" = yes; then
12629                 version_type=linux
12630         else
12631                 version_type=irix
12632         fi ;;
12633   esac
12634   need_lib_prefix=no
12635   need_version=no
12636   soname_spec='${libname}${release}${shared_ext}$major'
12637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12638   case $host_os in
12639   irix5* | nonstopux*)
12640     libsuff= shlibsuff=
12641     ;;
12642   *)
12643     case $LD in # libtool.m4 will add one of these switches to LD
12644     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12645       libsuff= shlibsuff= libmagic=32-bit;;
12646     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12647       libsuff=32 shlibsuff=N32 libmagic=N32;;
12648     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12649       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12650     *) libsuff= shlibsuff= libmagic=never-match;;
12651     esac
12652     ;;
12653   esac
12654   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12655   shlibpath_overrides_runpath=no
12656   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12657   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12658   hardcode_into_libs=yes
12659   ;;
12660
12661 # No shared lib support for Linux oldld, aout, or coff.
12662 linux*oldld* | linux*aout* | linux*coff*)
12663   dynamic_linker=no
12664   ;;
12665
12666 # This must be Linux ELF.
12667 linux*)
12668   version_type=linux
12669   need_lib_prefix=no
12670   need_version=no
12671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12672   soname_spec='${libname}${release}${shared_ext}$major'
12673   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12674   shlibpath_var=LD_LIBRARY_PATH
12675   shlibpath_overrides_runpath=no
12676   # This implies no fast_install, which is unacceptable.
12677   # Some rework will be needed to allow for fast_install
12678   # before this can be enabled.
12679   hardcode_into_libs=yes
12680
12681   # Append ld.so.conf contents to the search path
12682   if test -f /etc/ld.so.conf; then
12683     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12684     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12685   fi
12686
12687   # We used to test for /lib/ld.so.1 and disable shared libraries on
12688   # powerpc, because MkLinux only supported shared libraries with the
12689   # GNU dynamic linker.  Since this was broken with cross compilers,
12690   # most powerpc-linux boxes support dynamic linking these days and
12691   # people can always --disable-shared, the test was removed, and we
12692   # assume the GNU/Linux dynamic linker is in use.
12693   dynamic_linker='GNU/Linux ld.so'
12694   ;;
12695
12696 knetbsd*-gnu)
12697   version_type=linux
12698   need_lib_prefix=no
12699   need_version=no
12700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12701   soname_spec='${libname}${release}${shared_ext}$major'
12702   shlibpath_var=LD_LIBRARY_PATH
12703   shlibpath_overrides_runpath=no
12704   hardcode_into_libs=yes
12705   dynamic_linker='GNU ld.so'
12706   ;;
12707
12708 netbsd*)
12709   version_type=sunos
12710   need_lib_prefix=no
12711   need_version=no
12712   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12714     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12715     dynamic_linker='NetBSD (a.out) ld.so'
12716   else
12717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12718     soname_spec='${libname}${release}${shared_ext}$major'
12719     dynamic_linker='NetBSD ld.elf_so'
12720   fi
12721   shlibpath_var=LD_LIBRARY_PATH
12722   shlibpath_overrides_runpath=yes
12723   hardcode_into_libs=yes
12724   ;;
12725
12726 newsos6)
12727   version_type=linux
12728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12729   shlibpath_var=LD_LIBRARY_PATH
12730   shlibpath_overrides_runpath=yes
12731   ;;
12732
12733 nto-qnx*)
12734   version_type=linux
12735   need_lib_prefix=no
12736   need_version=no
12737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738   soname_spec='${libname}${release}${shared_ext}$major'
12739   shlibpath_var=LD_LIBRARY_PATH
12740   shlibpath_overrides_runpath=yes
12741   ;;
12742
12743 openbsd*)
12744   version_type=sunos
12745   sys_lib_dlsearch_path_spec="/usr/lib"
12746   need_lib_prefix=no
12747   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12748   case $host_os in
12749     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12750     *)                         need_version=no  ;;
12751   esac
12752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12753   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12754   shlibpath_var=LD_LIBRARY_PATH
12755   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12756     case $host_os in
12757       openbsd2.[89] | openbsd2.[89].*)
12758         shlibpath_overrides_runpath=no
12759         ;;
12760       *)
12761         shlibpath_overrides_runpath=yes
12762         ;;
12763       esac
12764   else
12765     shlibpath_overrides_runpath=yes
12766   fi
12767   ;;
12768
12769 os2*)
12770   libname_spec='$name'
12771   shrext_cmds=".dll"
12772   need_lib_prefix=no
12773   library_names_spec='$libname${shared_ext} $libname.a'
12774   dynamic_linker='OS/2 ld.exe'
12775   shlibpath_var=LIBPATH
12776   ;;
12777
12778 osf3* | osf4* | osf5*)
12779   version_type=osf
12780   need_lib_prefix=no
12781   need_version=no
12782   soname_spec='${libname}${release}${shared_ext}$major'
12783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784   shlibpath_var=LD_LIBRARY_PATH
12785   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12786   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12787   ;;
12788
12789 solaris*)
12790   version_type=linux
12791   need_lib_prefix=no
12792   need_version=no
12793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794   soname_spec='${libname}${release}${shared_ext}$major'
12795   shlibpath_var=LD_LIBRARY_PATH
12796   shlibpath_overrides_runpath=yes
12797   hardcode_into_libs=yes
12798   # ldd complains unless libraries are executable
12799   postinstall_cmds='chmod +x $lib'
12800   ;;
12801
12802 sunos4*)
12803   version_type=sunos
12804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12805   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12806   shlibpath_var=LD_LIBRARY_PATH
12807   shlibpath_overrides_runpath=yes
12808   if test "$with_gnu_ld" = yes; then
12809     need_lib_prefix=no
12810   fi
12811   need_version=yes
12812   ;;
12813
12814 sysv4 | sysv4.3*)
12815   version_type=linux
12816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817   soname_spec='${libname}${release}${shared_ext}$major'
12818   shlibpath_var=LD_LIBRARY_PATH
12819   case $host_vendor in
12820     sni)
12821       shlibpath_overrides_runpath=no
12822       need_lib_prefix=no
12823       export_dynamic_flag_spec='${wl}-Blargedynsym'
12824       runpath_var=LD_RUN_PATH
12825       ;;
12826     siemens)
12827       need_lib_prefix=no
12828       ;;
12829     motorola)
12830       need_lib_prefix=no
12831       need_version=no
12832       shlibpath_overrides_runpath=no
12833       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12834       ;;
12835   esac
12836   ;;
12837
12838 sysv4*MP*)
12839   if test -d /usr/nec ;then
12840     version_type=linux
12841     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12842     soname_spec='$libname${shared_ext}.$major'
12843     shlibpath_var=LD_LIBRARY_PATH
12844   fi
12845   ;;
12846
12847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12848   version_type=freebsd-elf
12849   need_lib_prefix=no
12850   need_version=no
12851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12852   soname_spec='${libname}${release}${shared_ext}$major'
12853   shlibpath_var=LD_LIBRARY_PATH
12854   hardcode_into_libs=yes
12855   if test "$with_gnu_ld" = yes; then
12856     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12857     shlibpath_overrides_runpath=no
12858   else
12859     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12860     shlibpath_overrides_runpath=yes
12861     case $host_os in
12862       sco3.2v5*)
12863         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12864         ;;
12865     esac
12866   fi
12867   sys_lib_dlsearch_path_spec='/usr/lib'
12868   ;;
12869
12870 uts4*)
12871   version_type=linux
12872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873   soname_spec='${libname}${release}${shared_ext}$major'
12874   shlibpath_var=LD_LIBRARY_PATH
12875   ;;
12876
12877 *)
12878   dynamic_linker=no
12879   ;;
12880 esac
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12882 printf "%s\n" "$dynamic_linker" >&6; }
12883 test "$dynamic_linker" = no && can_build_shared=no
12884
12885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12886 if test "$GCC" = yes; then
12887   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12888 fi
12889
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12891 printf %s "checking how to hardcode library paths into programs... " >&6; }
12892 hardcode_action_CXX=
12893 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12894    test -n "$runpath_var_CXX" || \
12895    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12896
12897   # We can hardcode non-existant directories.
12898   if test "$hardcode_direct_CXX" != no &&
12899      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12900      # have to relink, otherwise we might link with an installed library
12901      # when we should be linking with a yet-to-be-installed one
12902      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12903      test "$hardcode_minus_L_CXX" != no; then
12904     # Linking always hardcodes the temporary library directory.
12905     hardcode_action_CXX=relink
12906   else
12907     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12908     hardcode_action_CXX=immediate
12909   fi
12910 else
12911   # We cannot hardcode anything, or else we can only hardcode existing
12912   # directories.
12913   hardcode_action_CXX=unsupported
12914 fi
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12916 printf "%s\n" "$hardcode_action_CXX" >&6; }
12917
12918 if test "$hardcode_action_CXX" = relink; then
12919   # Fast installation is not supported
12920   enable_fast_install=no
12921 elif test "$shlibpath_overrides_runpath" = yes ||
12922      test "$enable_shared" = no; then
12923   # Fast installation is not necessary
12924   enable_fast_install=needless
12925 fi
12926
12927
12928 # The else clause should only fire when bootstrapping the
12929 # libtool distribution, otherwise you forgot to ship ltmain.sh
12930 # with your package, and you will get complaints that there are
12931 # no rules to generate ltmain.sh.
12932 if test -f "$ltmain"; then
12933   # See if we are running on zsh, and set the options which allow our commands through
12934   # without removal of \ escapes.
12935   if test -n "${ZSH_VERSION+set}" ; then
12936     setopt NO_GLOB_SUBST
12937   fi
12938   # Now quote all the things that may contain metacharacters while being
12939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12940   # variables and quote the copies for generation of the libtool script.
12941   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12942     SED SHELL STRIP \
12943     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12944     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12945     deplibs_check_method reload_flag reload_cmds need_locks \
12946     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12947     lt_cv_sys_global_symbol_to_c_name_address \
12948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12949     old_postinstall_cmds old_postuninstall_cmds \
12950     compiler_CXX \
12951     CC_CXX \
12952     LD_CXX \
12953     lt_prog_compiler_wl_CXX \
12954     lt_prog_compiler_pic_CXX \
12955     lt_prog_compiler_static_CXX \
12956     lt_prog_compiler_no_builtin_flag_CXX \
12957     export_dynamic_flag_spec_CXX \
12958     thread_safe_flag_spec_CXX \
12959     whole_archive_flag_spec_CXX \
12960     enable_shared_with_static_runtimes_CXX \
12961     old_archive_cmds_CXX \
12962     old_archive_from_new_cmds_CXX \
12963     predep_objects_CXX \
12964     postdep_objects_CXX \
12965     predeps_CXX \
12966     postdeps_CXX \
12967     compiler_lib_search_path_CXX \
12968     archive_cmds_CXX \
12969     archive_expsym_cmds_CXX \
12970     postinstall_cmds_CXX \
12971     postuninstall_cmds_CXX \
12972     old_archive_from_expsyms_cmds_CXX \
12973     allow_undefined_flag_CXX \
12974     no_undefined_flag_CXX \
12975     export_symbols_cmds_CXX \
12976     hardcode_libdir_flag_spec_CXX \
12977     hardcode_libdir_flag_spec_ld_CXX \
12978     hardcode_libdir_separator_CXX \
12979     hardcode_automatic_CXX \
12980     module_cmds_CXX \
12981     module_expsym_cmds_CXX \
12982     lt_cv_prog_compiler_c_o_CXX \
12983     exclude_expsyms_CXX \
12984     include_expsyms_CXX; do
12985
12986     case $var in
12987     old_archive_cmds_CXX | \
12988     old_archive_from_new_cmds_CXX | \
12989     archive_cmds_CXX | \
12990     archive_expsym_cmds_CXX | \
12991     module_cmds_CXX | \
12992     module_expsym_cmds_CXX | \
12993     old_archive_from_expsyms_cmds_CXX | \
12994     export_symbols_cmds_CXX | \
12995     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12996     postinstall_cmds | postuninstall_cmds | \
12997     old_postinstall_cmds | old_postuninstall_cmds | \
12998     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12999       # Double-quote double-evaled strings.
13000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13001       ;;
13002     *)
13003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13004       ;;
13005     esac
13006   done
13007
13008   case $lt_echo in
13009   *'\$0 --fallback-echo"')
13010     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13011     ;;
13012   esac
13013
13014 cfgfile="$ofile"
13015
13016   cat <<__EOF__ >> "$cfgfile"
13017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13018
13019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13020
13021 # Shell to use when invoking shell scripts.
13022 SHELL=$lt_SHELL
13023
13024 # Whether or not to build shared libraries.
13025 build_libtool_libs=$enable_shared
13026
13027 # Whether or not to build static libraries.
13028 build_old_libs=$enable_static
13029
13030 # Whether or not to add -lc for building shared libraries.
13031 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13032
13033 # Whether or not to disallow shared libs when runtime libs are static
13034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13035
13036 # Whether or not to optimize for fast installation.
13037 fast_install=$enable_fast_install
13038
13039 # The host system.
13040 host_alias=$host_alias
13041 host=$host
13042 host_os=$host_os
13043
13044 # The build system.
13045 build_alias=$build_alias
13046 build=$build
13047 build_os=$build_os
13048
13049 # An echo program that does not interpret backslashes.
13050 echo=$lt_echo
13051
13052 # The archiver.
13053 AR=$lt_AR
13054 AR_FLAGS=$lt_AR_FLAGS
13055
13056 # A C compiler.
13057 LTCC=$lt_LTCC
13058
13059 # LTCC compiler flags.
13060 LTCFLAGS=$lt_LTCFLAGS
13061
13062 # A language-specific compiler.
13063 CC=$lt_compiler_CXX
13064
13065 # Is the compiler the GNU C compiler?
13066 with_gcc=$GCC_CXX
13067
13068 # An ERE matcher.
13069 EGREP=$lt_EGREP
13070
13071 # The linker used to build libraries.
13072 LD=$lt_LD_CXX
13073
13074 # Whether we need hard or soft links.
13075 LN_S=$lt_LN_S
13076
13077 # A BSD-compatible nm program.
13078 NM=$lt_NM
13079
13080 # A symbol stripping program
13081 STRIP=$lt_STRIP
13082
13083 # Used to examine libraries when file_magic_cmd begins "file"
13084 MAGIC_CMD=$MAGIC_CMD
13085
13086 # Used on cygwin: DLL creation program.
13087 DLLTOOL="$DLLTOOL"
13088
13089 # Used on cygwin: object dumper.
13090 OBJDUMP="$OBJDUMP"
13091
13092 # Used on cygwin: assembler.
13093 AS="$AS"
13094
13095 # The name of the directory that contains temporary libtool files.
13096 objdir=$objdir
13097
13098 # How to create reloadable object files.
13099 reload_flag=$lt_reload_flag
13100 reload_cmds=$lt_reload_cmds
13101
13102 # How to pass a linker flag through the compiler.
13103 wl=$lt_lt_prog_compiler_wl_CXX
13104
13105 # Object file suffix (normally "o").
13106 objext="$ac_objext"
13107
13108 # Old archive suffix (normally "a").
13109 libext="$libext"
13110
13111 # Shared library suffix (normally ".so").
13112 shrext_cmds='$shrext_cmds'
13113
13114 # Executable file suffix (normally "").
13115 exeext="$exeext"
13116
13117 # Additional compiler flags for building library objects.
13118 pic_flag=$lt_lt_prog_compiler_pic_CXX
13119 pic_mode=$pic_mode
13120
13121 # What is the maximum length of a command?
13122 max_cmd_len=$lt_cv_sys_max_cmd_len
13123
13124 # Does compiler simultaneously support -c and -o options?
13125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13126
13127 # Must we lock files when doing compilation?
13128 need_locks=$lt_need_locks
13129
13130 # Do we need the lib prefix for modules?
13131 need_lib_prefix=$need_lib_prefix
13132
13133 # Do we need a version for libraries?
13134 need_version=$need_version
13135
13136 # Whether dlopen is supported.
13137 dlopen_support=$enable_dlopen
13138
13139 # Whether dlopen of programs is supported.
13140 dlopen_self=$enable_dlopen_self
13141
13142 # Whether dlopen of statically linked programs is supported.
13143 dlopen_self_static=$enable_dlopen_self_static
13144
13145 # Compiler flag to prevent dynamic linking.
13146 link_static_flag=$lt_lt_prog_compiler_static_CXX
13147
13148 # Compiler flag to turn off builtin functions.
13149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13150
13151 # Compiler flag to allow reflexive dlopens.
13152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13153
13154 # Compiler flag to generate shared objects directly from archives.
13155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13156
13157 # Compiler flag to generate thread-safe objects.
13158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13159
13160 # Library versioning type.
13161 version_type=$version_type
13162
13163 # Format of library name prefix.
13164 libname_spec=$lt_libname_spec
13165
13166 # List of archive names.  First name is the real one, the rest are links.
13167 # The last name is the one that the linker finds with -lNAME.
13168 library_names_spec=$lt_library_names_spec
13169
13170 # The coded name of the library, if different from the real name.
13171 soname_spec=$lt_soname_spec
13172
13173 # Commands used to build and install an old-style archive.
13174 RANLIB=$lt_RANLIB
13175 old_archive_cmds=$lt_old_archive_cmds_CXX
13176 old_postinstall_cmds=$lt_old_postinstall_cmds
13177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13178
13179 # Create an old-style archive from a shared archive.
13180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13181
13182 # Create a temporary old-style archive to link instead of a shared archive.
13183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13184
13185 # Commands used to build and install a shared archive.
13186 archive_cmds=$lt_archive_cmds_CXX
13187 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13188 postinstall_cmds=$lt_postinstall_cmds
13189 postuninstall_cmds=$lt_postuninstall_cmds
13190
13191 # Commands used to build a loadable module (assumed same as above if empty)
13192 module_cmds=$lt_module_cmds_CXX
13193 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13194
13195 # Commands to strip libraries.
13196 old_striplib=$lt_old_striplib
13197 striplib=$lt_striplib
13198
13199 # Dependencies to place before the objects being linked to create a
13200 # shared library.
13201 predep_objects=$lt_predep_objects_CXX
13202
13203 # Dependencies to place after the objects being linked to create a
13204 # shared library.
13205 postdep_objects=$lt_postdep_objects_CXX
13206
13207 # Dependencies to place before the objects being linked to create a
13208 # shared library.
13209 predeps=$lt_predeps_CXX
13210
13211 # Dependencies to place after the objects being linked to create a
13212 # shared library.
13213 postdeps=$lt_postdeps_CXX
13214
13215 # The library search path used internally by the compiler when linking
13216 # a shared library.
13217 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13218
13219 # Method to check whether dependent libraries are shared objects.
13220 deplibs_check_method=$lt_deplibs_check_method
13221
13222 # Command to use when deplibs_check_method == file_magic.
13223 file_magic_cmd=$lt_file_magic_cmd
13224
13225 # Flag that allows shared libraries with undefined symbols to be built.
13226 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13227
13228 # Flag that forces no undefined symbols.
13229 no_undefined_flag=$lt_no_undefined_flag_CXX
13230
13231 # Commands used to finish a libtool library installation in a directory.
13232 finish_cmds=$lt_finish_cmds
13233
13234 # Same as above, but a single script fragment to be evaled but not shown.
13235 finish_eval=$lt_finish_eval
13236
13237 # Take the output of nm and produce a listing of raw symbols and C names.
13238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13239
13240 # Transform the output of nm in a proper C declaration
13241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13242
13243 # Transform the output of nm in a C name address pair
13244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13245
13246 # This is the shared library runtime path variable.
13247 runpath_var=$runpath_var
13248
13249 # This is the shared library path variable.
13250 shlibpath_var=$shlibpath_var
13251
13252 # Is shlibpath searched before the hard-coded library search path?
13253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13254
13255 # How to hardcode a shared library path into an executable.
13256 hardcode_action=$hardcode_action_CXX
13257
13258 # Whether we should hardcode library paths into libraries.
13259 hardcode_into_libs=$hardcode_into_libs
13260
13261 # Flag to hardcode \$libdir into a binary during linking.
13262 # This must work even if \$libdir does not exist.
13263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13264
13265 # If ld is used when linking, flag to hardcode \$libdir into
13266 # a binary during linking. This must work even if \$libdir does
13267 # not exist.
13268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13269
13270 # Whether we need a single -rpath flag with a separated argument.
13271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13272
13273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13274 # resulting binary.
13275 hardcode_direct=$hardcode_direct_CXX
13276
13277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13278 # resulting binary.
13279 hardcode_minus_L=$hardcode_minus_L_CXX
13280
13281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13282 # the resulting binary.
13283 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13284
13285 # Set to yes if building a shared library automatically hardcodes DIR into the library
13286 # and all subsequent libraries and executables linked against it.
13287 hardcode_automatic=$hardcode_automatic_CXX
13288
13289 # Variables whose values should be saved in libtool wrapper scripts and
13290 # restored at relink time.
13291 variables_saved_for_relink="$variables_saved_for_relink"
13292
13293 # Whether libtool must link a program against all its dependency libraries.
13294 link_all_deplibs=$link_all_deplibs_CXX
13295
13296 # Compile-time system search path for libraries
13297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13298
13299 # Run-time system search path for libraries
13300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13301
13302 # Fix the shell variable \$srcfile for the compiler.
13303 fix_srcfile_path="$fix_srcfile_path_CXX"
13304
13305 # Set to yes if exported symbols are required.
13306 always_export_symbols=$always_export_symbols_CXX
13307
13308 # The commands to list exported symbols.
13309 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13310
13311 # The commands to extract the exported symbol list from a shared archive.
13312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13313
13314 # Symbols that should not be listed in the preloaded symbols.
13315 exclude_expsyms=$lt_exclude_expsyms_CXX
13316
13317 # Symbols that must always be exported.
13318 include_expsyms=$lt_include_expsyms_CXX
13319
13320 # ### END LIBTOOL TAG CONFIG: $tagname
13321
13322 __EOF__
13323
13324
13325 else
13326   # If there is no Makefile yet, we rely on a make rule to execute
13327   # `config.status --recheck' to rerun these tests and create the
13328   # libtool script then.
13329   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13330   if test -f "$ltmain_in"; then
13331     test -f Makefile && make "$ltmain"
13332   fi
13333 fi
13334
13335
13336 ac_ext=c
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13341
13342 CC=$lt_save_CC
13343 LDCXX=$LD
13344 LD=$lt_save_LD
13345 GCC=$lt_save_GCC
13346 with_gnu_ldcxx=$with_gnu_ld
13347 with_gnu_ld=$lt_save_with_gnu_ld
13348 lt_cv_path_LDCXX=$lt_cv_path_LD
13349 lt_cv_path_LD=$lt_save_path_LD
13350 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13351 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13352
13353         else
13354           tagname=""
13355         fi
13356         ;;
13357
13358       F77)
13359         if test -n "$F77" && test "X$F77" != "Xno"; then
13360
13361 ac_ext=f
13362 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13363 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13364 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13365
13366
13367 archive_cmds_need_lc_F77=no
13368 allow_undefined_flag_F77=
13369 always_export_symbols_F77=no
13370 archive_expsym_cmds_F77=
13371 export_dynamic_flag_spec_F77=
13372 hardcode_direct_F77=no
13373 hardcode_libdir_flag_spec_F77=
13374 hardcode_libdir_flag_spec_ld_F77=
13375 hardcode_libdir_separator_F77=
13376 hardcode_minus_L_F77=no
13377 hardcode_automatic_F77=no
13378 module_cmds_F77=
13379 module_expsym_cmds_F77=
13380 link_all_deplibs_F77=unknown
13381 old_archive_cmds_F77=$old_archive_cmds
13382 no_undefined_flag_F77=
13383 whole_archive_flag_spec_F77=
13384 enable_shared_with_static_runtimes_F77=no
13385
13386 # Source file extension for f77 test sources.
13387 ac_ext=f
13388
13389 # Object file extension for compiled f77 test sources.
13390 objext=o
13391 objext_F77=$objext
13392
13393 # Code to be used in simple compile tests
13394 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13395
13396 # Code to be used in simple link tests
13397 lt_simple_link_test_code="      program t\n      end\n"
13398
13399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13400
13401 # If no C compiler was specified, use CC.
13402 LTCC=${LTCC-"$CC"}
13403
13404 # If no C compiler flags were specified, use CFLAGS.
13405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13406
13407 # Allow CC to be a program name with arguments.
13408 compiler=$CC
13409
13410
13411 # save warnings/boilerplate of simple test code
13412 ac_outfile=conftest.$ac_objext
13413 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13415 _lt_compiler_boilerplate=`cat conftest.err`
13416 $rm conftest*
13417
13418 ac_outfile=conftest.$ac_objext
13419 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13421 _lt_linker_boilerplate=`cat conftest.err`
13422 $rm conftest*
13423
13424
13425 # Allow CC to be a program name with arguments.
13426 lt_save_CC="$CC"
13427 CC=${F77-"f77"}
13428 compiler=$CC
13429 compiler_F77=$CC
13430 for cc_temp in $compiler""; do
13431   case $cc_temp in
13432     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13433     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13434     \-*) ;;
13435     *) break;;
13436   esac
13437 done
13438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13439
13440
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13442 printf %s "checking if libtool supports shared libraries... " >&6; }
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13444 printf "%s\n" "$can_build_shared" >&6; }
13445
13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13447 printf %s "checking whether to build shared libraries... " >&6; }
13448 test "$can_build_shared" = "no" && enable_shared=no
13449
13450 # On AIX, shared libraries and static libraries use the same namespace, and
13451 # are all built from PIC.
13452 case $host_os in
13453 aix3*)
13454   test "$enable_shared" = yes && enable_static=no
13455   if test -n "$RANLIB"; then
13456     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13457     postinstall_cmds='$RANLIB $lib'
13458   fi
13459   ;;
13460 aix4* | aix5*)
13461   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13462     test "$enable_shared" = yes && enable_static=no
13463   fi
13464   ;;
13465 esac
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13467 printf "%s\n" "$enable_shared" >&6; }
13468
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13470 printf %s "checking whether to build static libraries... " >&6; }
13471 # Make sure either enable_shared or enable_static is yes.
13472 test "$enable_shared" = yes || enable_static=yes
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13474 printf "%s\n" "$enable_static" >&6; }
13475
13476 GCC_F77="$G77"
13477 LD_F77="$LD"
13478
13479 lt_prog_compiler_wl_F77=
13480 lt_prog_compiler_pic_F77=
13481 lt_prog_compiler_static_F77=
13482
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13484 printf %s "checking for $compiler option to produce PIC... " >&6; }
13485
13486   if test "$GCC" = yes; then
13487     lt_prog_compiler_wl_F77='-Wl,'
13488     lt_prog_compiler_static_F77='-static'
13489
13490     case $host_os in
13491       aix*)
13492       # All AIX code is PIC.
13493       if test "$host_cpu" = ia64; then
13494         # AIX 5 now supports IA64 processor
13495         lt_prog_compiler_static_F77='-Bstatic'
13496       fi
13497       ;;
13498
13499     amigaos*)
13500       # FIXME: we need at least 68020 code to build shared libraries, but
13501       # adding the `-m68020' flag to GCC prevents building anything better,
13502       # like `-m68040'.
13503       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13504       ;;
13505
13506     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13507       # PIC is the default for these OSes.
13508       ;;
13509
13510     mingw* | pw32* | os2*)
13511       # This hack is so that the source file can tell whether it is being
13512       # built for inclusion in a dll (and should export symbols for example).
13513       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13514       ;;
13515
13516     darwin* | rhapsody*)
13517       # PIC is the default on this platform
13518       # Common symbols not allowed in MH_DYLIB files
13519       lt_prog_compiler_pic_F77='-fno-common'
13520       ;;
13521
13522     interix3*)
13523       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13524       # Instead, we relocate shared libraries at runtime.
13525       ;;
13526
13527     msdosdjgpp*)
13528       # Just because we use GCC doesn't mean we suddenly get shared libraries
13529       # on systems that don't support them.
13530       lt_prog_compiler_can_build_shared_F77=no
13531       enable_shared=no
13532       ;;
13533
13534     sysv4*MP*)
13535       if test -d /usr/nec; then
13536         lt_prog_compiler_pic_F77=-Kconform_pic
13537       fi
13538       ;;
13539
13540     hpux*)
13541       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13542       # not for PA HP-UX.
13543       case $host_cpu in
13544       hppa*64*|ia64*)
13545         # +Z the default
13546         ;;
13547       *)
13548         lt_prog_compiler_pic_F77='-fPIC'
13549         ;;
13550       esac
13551       ;;
13552
13553     *)
13554       lt_prog_compiler_pic_F77='-fPIC'
13555       ;;
13556     esac
13557   else
13558     # PORTME Check for flag to pass linker flags through the system compiler.
13559     case $host_os in
13560     aix*)
13561       lt_prog_compiler_wl_F77='-Wl,'
13562       if test "$host_cpu" = ia64; then
13563         # AIX 5 now supports IA64 processor
13564         lt_prog_compiler_static_F77='-Bstatic'
13565       else
13566         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13567       fi
13568       ;;
13569       darwin*)
13570         # PIC is the default on this platform
13571         # Common symbols not allowed in MH_DYLIB files
13572        case $cc_basename in
13573          xlc*)
13574          lt_prog_compiler_pic_F77='-qnocommon'
13575          lt_prog_compiler_wl_F77='-Wl,'
13576          ;;
13577        esac
13578        ;;
13579
13580     mingw* | pw32* | os2*)
13581       # This hack is so that the source file can tell whether it is being
13582       # built for inclusion in a dll (and should export symbols for example).
13583       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13584       ;;
13585
13586     hpux9* | hpux10* | hpux11*)
13587       lt_prog_compiler_wl_F77='-Wl,'
13588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13589       # not for PA HP-UX.
13590       case $host_cpu in
13591       hppa*64*|ia64*)
13592         # +Z the default
13593         ;;
13594       *)
13595         lt_prog_compiler_pic_F77='+Z'
13596         ;;
13597       esac
13598       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13599       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13600       ;;
13601
13602     irix5* | irix6* | nonstopux*)
13603       lt_prog_compiler_wl_F77='-Wl,'
13604       # PIC (with -KPIC) is the default.
13605       lt_prog_compiler_static_F77='-non_shared'
13606       ;;
13607
13608     newsos6)
13609       lt_prog_compiler_pic_F77='-KPIC'
13610       lt_prog_compiler_static_F77='-Bstatic'
13611       ;;
13612
13613     linux*)
13614       case $cc_basename in
13615       icc* | ecc*)
13616         lt_prog_compiler_wl_F77='-Wl,'
13617         lt_prog_compiler_pic_F77='-KPIC'
13618         lt_prog_compiler_static_F77='-static'
13619         ;;
13620       pgcc* | pgf77* | pgf90* | pgf95*)
13621         # Portland Group compilers (*not* the Pentium gcc compiler,
13622         # which looks to be a dead project)
13623         lt_prog_compiler_wl_F77='-Wl,'
13624         lt_prog_compiler_pic_F77='-fpic'
13625         lt_prog_compiler_static_F77='-Bstatic'
13626         ;;
13627       ccc*)
13628         lt_prog_compiler_wl_F77='-Wl,'
13629         # All Alpha code is PIC.
13630         lt_prog_compiler_static_F77='-non_shared'
13631         ;;
13632       esac
13633       ;;
13634
13635     osf3* | osf4* | osf5*)
13636       lt_prog_compiler_wl_F77='-Wl,'
13637       # All OSF/1 code is PIC.
13638       lt_prog_compiler_static_F77='-non_shared'
13639       ;;
13640
13641     solaris*)
13642       lt_prog_compiler_pic_F77='-KPIC'
13643       lt_prog_compiler_static_F77='-Bstatic'
13644       case $cc_basename in
13645       f77* | f90* | f95*)
13646         lt_prog_compiler_wl_F77='-Qoption ld ';;
13647       *)
13648         lt_prog_compiler_wl_F77='-Wl,';;
13649       esac
13650       ;;
13651
13652     sunos4*)
13653       lt_prog_compiler_wl_F77='-Qoption ld '
13654       lt_prog_compiler_pic_F77='-PIC'
13655       lt_prog_compiler_static_F77='-Bstatic'
13656       ;;
13657
13658     sysv4 | sysv4.2uw2* | sysv4.3*)
13659       lt_prog_compiler_wl_F77='-Wl,'
13660       lt_prog_compiler_pic_F77='-KPIC'
13661       lt_prog_compiler_static_F77='-Bstatic'
13662       ;;
13663
13664     sysv4*MP*)
13665       if test -d /usr/nec ;then
13666         lt_prog_compiler_pic_F77='-Kconform_pic'
13667         lt_prog_compiler_static_F77='-Bstatic'
13668       fi
13669       ;;
13670
13671     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13672       lt_prog_compiler_wl_F77='-Wl,'
13673       lt_prog_compiler_pic_F77='-KPIC'
13674       lt_prog_compiler_static_F77='-Bstatic'
13675       ;;
13676
13677     unicos*)
13678       lt_prog_compiler_wl_F77='-Wl,'
13679       lt_prog_compiler_can_build_shared_F77=no
13680       ;;
13681
13682     uts4*)
13683       lt_prog_compiler_pic_F77='-pic'
13684       lt_prog_compiler_static_F77='-Bstatic'
13685       ;;
13686
13687     *)
13688       lt_prog_compiler_can_build_shared_F77=no
13689       ;;
13690     esac
13691   fi
13692
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13694 printf "%s\n" "$lt_prog_compiler_pic_F77" >&6; }
13695
13696 #
13697 # Check to make sure the PIC flag actually works.
13698 #
13699 if test -n "$lt_prog_compiler_pic_F77"; then
13700
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13702 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13703 if test ${lt_prog_compiler_pic_works_F77+y}
13704 then :
13705   printf %s "(cached) " >&6
13706 else $as_nop
13707   lt_prog_compiler_pic_works_F77=no
13708   ac_outfile=conftest.$ac_objext
13709    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13710    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13711    # Insert the option either (1) after the last *FLAGS variable, or
13712    # (2) before a word containing "conftest.", or (3) at the end.
13713    # Note that $ac_compile itself does not contain backslashes and begins
13714    # with a dollar sign (not a hyphen), so the echo should work correctly.
13715    # The option is referenced via a variable to avoid confusing sed.
13716    lt_compile=`echo "$ac_compile" | $SED \
13717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13719    -e 's:$: $lt_compiler_flag:'`
13720    (eval echo "\"\$as_me:13720: $lt_compile\"" >&5)
13721    (eval "$lt_compile" 2>conftest.err)
13722    ac_status=$?
13723    cat conftest.err >&5
13724    echo "$as_me:13724: \$? = $ac_status" >&5
13725    if (exit $ac_status) && test -s "$ac_outfile"; then
13726      # The compiler can only warn and ignore the option if not recognized
13727      # So say no if there are warnings other than the usual output.
13728      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13731        lt_prog_compiler_pic_works_F77=yes
13732      fi
13733    fi
13734    $rm conftest*
13735
13736 fi
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13738 printf "%s\n" "$lt_prog_compiler_pic_works_F77" >&6; }
13739
13740 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13741     case $lt_prog_compiler_pic_F77 in
13742      "" | " "*) ;;
13743      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13744      esac
13745 else
13746     lt_prog_compiler_pic_F77=
13747      lt_prog_compiler_can_build_shared_F77=no
13748 fi
13749
13750 fi
13751 case $host_os in
13752   # For platforms which do not support PIC, -DPIC is meaningless:
13753   *djgpp*)
13754     lt_prog_compiler_pic_F77=
13755     ;;
13756   *)
13757     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13758     ;;
13759 esac
13760
13761 #
13762 # Check to make sure the static flag actually works.
13763 #
13764 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13766 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13767 if test ${lt_prog_compiler_static_works_F77+y}
13768 then :
13769   printf %s "(cached) " >&6
13770 else $as_nop
13771   lt_prog_compiler_static_works_F77=no
13772    save_LDFLAGS="$LDFLAGS"
13773    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13774    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13775    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13776      # The linker can only warn and ignore the option if not recognized
13777      # So say no if there are warnings
13778      if test -s conftest.err; then
13779        # Append any errors to the config.log.
13780        cat conftest.err 1>&5
13781        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13782        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13783        if diff conftest.exp conftest.er2 >/dev/null; then
13784          lt_prog_compiler_static_works_F77=yes
13785        fi
13786      else
13787        lt_prog_compiler_static_works_F77=yes
13788      fi
13789    fi
13790    $rm conftest*
13791    LDFLAGS="$save_LDFLAGS"
13792
13793 fi
13794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13795 printf "%s\n" "$lt_prog_compiler_static_works_F77" >&6; }
13796
13797 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13798     :
13799 else
13800     lt_prog_compiler_static_F77=
13801 fi
13802
13803
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13805 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13806 if test ${lt_cv_prog_compiler_c_o_F77+y}
13807 then :
13808   printf %s "(cached) " >&6
13809 else $as_nop
13810   lt_cv_prog_compiler_c_o_F77=no
13811    $rm -r conftest 2>/dev/null
13812    mkdir conftest
13813    cd conftest
13814    mkdir out
13815    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13816
13817    lt_compiler_flag="-o out/conftest2.$ac_objext"
13818    # Insert the option either (1) after the last *FLAGS variable, or
13819    # (2) before a word containing "conftest.", or (3) at the end.
13820    # Note that $ac_compile itself does not contain backslashes and begins
13821    # with a dollar sign (not a hyphen), so the echo should work correctly.
13822    lt_compile=`echo "$ac_compile" | $SED \
13823    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13824    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13825    -e 's:$: $lt_compiler_flag:'`
13826    (eval echo "\"\$as_me:13826: $lt_compile\"" >&5)
13827    (eval "$lt_compile" 2>out/conftest.err)
13828    ac_status=$?
13829    cat out/conftest.err >&5
13830    echo "$as_me:13830: \$? = $ac_status" >&5
13831    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13832    then
13833      # The compiler can only warn and ignore the option if not recognized
13834      # So say no if there are warnings
13835      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13836      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13837      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13838        lt_cv_prog_compiler_c_o_F77=yes
13839      fi
13840    fi
13841    chmod u+w . 2>&5
13842    $rm conftest*
13843    # SGI C++ compiler will create directory out/ii_files/ for
13844    # template instantiation
13845    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13846    $rm out/* && rmdir out
13847    cd ..
13848    rmdir conftest
13849    $rm conftest*
13850
13851 fi
13852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13853 printf "%s\n" "$lt_cv_prog_compiler_c_o_F77" >&6; }
13854
13855
13856 hard_links="nottested"
13857 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13858   # do not overwrite the value of need_locks provided by the user
13859   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13860 printf %s "checking if we can lock with hard links... " >&6; }
13861   hard_links=yes
13862   $rm conftest*
13863   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13864   touch conftest.a
13865   ln conftest.a conftest.b 2>&5 || hard_links=no
13866   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13868 printf "%s\n" "$hard_links" >&6; }
13869   if test "$hard_links" = no; then
13870     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13871 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13872     need_locks=warn
13873   fi
13874 else
13875   need_locks=no
13876 fi
13877
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13879 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13880
13881   runpath_var=
13882   allow_undefined_flag_F77=
13883   enable_shared_with_static_runtimes_F77=no
13884   archive_cmds_F77=
13885   archive_expsym_cmds_F77=
13886   old_archive_From_new_cmds_F77=
13887   old_archive_from_expsyms_cmds_F77=
13888   export_dynamic_flag_spec_F77=
13889   whole_archive_flag_spec_F77=
13890   thread_safe_flag_spec_F77=
13891   hardcode_libdir_flag_spec_F77=
13892   hardcode_libdir_flag_spec_ld_F77=
13893   hardcode_libdir_separator_F77=
13894   hardcode_direct_F77=no
13895   hardcode_minus_L_F77=no
13896   hardcode_shlibpath_var_F77=unsupported
13897   link_all_deplibs_F77=unknown
13898   hardcode_automatic_F77=no
13899   module_cmds_F77=
13900   module_expsym_cmds_F77=
13901   always_export_symbols_F77=no
13902   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13903   # include_expsyms should be a list of space-separated symbols to be *always*
13904   # included in the symbol list
13905   include_expsyms_F77=
13906   # exclude_expsyms can be an extended regexp of symbols to exclude
13907   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13908   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13909   # as well as any symbol that contains `d'.
13910   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13911   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13912   # platforms (ab)use it in PIC code, but their linkers get confused if
13913   # the symbol is explicitly referenced.  Since portable code cannot
13914   # rely on this symbol name, it's probably fine to never include it in
13915   # preloaded symbol tables.
13916   extract_expsyms_cmds=
13917   # Just being paranoid about ensuring that cc_basename is set.
13918   for cc_temp in $compiler""; do
13919   case $cc_temp in
13920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13922     \-*) ;;
13923     *) break;;
13924   esac
13925 done
13926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13927
13928   case $host_os in
13929   cygwin* | mingw* | pw32*)
13930     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13931     # When not using gcc, we currently assume that we are using
13932     # Microsoft Visual C++.
13933     if test "$GCC" != yes; then
13934       with_gnu_ld=no
13935     fi
13936     ;;
13937   interix*)
13938     # we just hope/assume this is gcc and not c89 (= MSVC++)
13939     with_gnu_ld=yes
13940     ;;
13941   openbsd*)
13942     with_gnu_ld=no
13943     ;;
13944   esac
13945
13946   ld_shlibs_F77=yes
13947   if test "$with_gnu_ld" = yes; then
13948     # If archive_cmds runs LD, not CC, wlarc should be empty
13949     wlarc='${wl}'
13950
13951     # Set some defaults for GNU ld with shared library support. These
13952     # are reset later if shared libraries are not supported. Putting them
13953     # here allows them to be overridden if necessary.
13954     runpath_var=LD_RUN_PATH
13955     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13956     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13957     # ancient GNU ld didn't support --whole-archive et. al.
13958     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13959         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13960       else
13961         whole_archive_flag_spec_F77=
13962     fi
13963     supports_anon_versioning=no
13964     case `$LD -v 2>/dev/null` in
13965       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13966       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13967       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13968       *\ 2.11.*) ;; # other 2.11 versions
13969       *) supports_anon_versioning=yes ;;
13970     esac
13971
13972     # See if GNU ld supports shared libraries.
13973     case $host_os in
13974     aix3* | aix4* | aix5*)
13975       # On AIX/PPC, the GNU linker is very broken
13976       if test "$host_cpu" != ia64; then
13977         ld_shlibs_F77=no
13978         cat <<EOF 1>&2
13979
13980 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13981 *** to be unable to reliably create shared libraries on AIX.
13982 *** Therefore, libtool is disabling shared libraries support.  If you
13983 *** really care for shared libraries, you may want to modify your PATH
13984 *** so that a non-GNU linker is found, and then restart.
13985
13986 EOF
13987       fi
13988       ;;
13989
13990     amigaos*)
13991       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)'
13992       hardcode_libdir_flag_spec_F77='-L$libdir'
13993       hardcode_minus_L_F77=yes
13994
13995       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13996       # that the semantics of dynamic libraries on AmigaOS, at least up
13997       # to version 4, is to share data among multiple programs linked
13998       # with the same dynamic library.  Since this doesn't match the
13999       # behavior of shared libraries on other platforms, we can't use
14000       # them.
14001       ld_shlibs_F77=no
14002       ;;
14003
14004     beos*)
14005       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14006         allow_undefined_flag_F77=unsupported
14007         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14008         # support --undefined.  This deserves some investigation.  FIXME
14009         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010       else
14011         ld_shlibs_F77=no
14012       fi
14013       ;;
14014
14015     cygwin* | mingw* | pw32*)
14016       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14017       # as there is no search path for DLLs.
14018       hardcode_libdir_flag_spec_F77='-L$libdir'
14019       allow_undefined_flag_F77=unsupported
14020       always_export_symbols_F77=no
14021       enable_shared_with_static_runtimes_F77=yes
14022       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14023
14024       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14025         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14026         # If the export-symbols file already is a .def file (1st line
14027         # is EXPORTS), use it as is; otherwise, prepend...
14028         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14029           cp $export_symbols $output_objdir/$soname.def;
14030         else
14031           echo EXPORTS > $output_objdir/$soname.def;
14032           cat $export_symbols >> $output_objdir/$soname.def;
14033         fi~
14034         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14035       else
14036         ld_shlibs_F77=no
14037       fi
14038       ;;
14039
14040     interix3*)
14041       hardcode_direct_F77=no
14042       hardcode_shlibpath_var_F77=no
14043       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14044       export_dynamic_flag_spec_F77='${wl}-E'
14045       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14046       # Instead, shared libraries are loaded at an image base (0x10000000 by
14047       # default) and relocated if they conflict, which is a slow very memory
14048       # consuming and fragmenting process.  To avoid this, we pick a random,
14049       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14050       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14051       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'
14052       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'
14053       ;;
14054
14055     linux*)
14056       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14057         tmp_addflag=
14058         case $cc_basename,$host_cpu in
14059         pgcc*)                          # Portland Group C compiler
14060           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'
14061           tmp_addflag=' $pic_flag'
14062           ;;
14063         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14064           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'
14065           tmp_addflag=' $pic_flag -Mnomain' ;;
14066         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14067           tmp_addflag=' -i_dynamic' ;;
14068         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14069           tmp_addflag=' -i_dynamic -nofor_main' ;;
14070         ifc* | ifort*)                  # Intel Fortran compiler
14071           tmp_addflag=' -nofor_main' ;;
14072         esac
14073         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074
14075         if test $supports_anon_versioning = yes; then
14076           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14077   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14078   $echo "local: *; };" >> $output_objdir/$libname.ver~
14079           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14080         fi
14081       else
14082         ld_shlibs_F77=no
14083       fi
14084       ;;
14085
14086     netbsd*)
14087       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14088         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14089         wlarc=
14090       else
14091         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14092         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14093       fi
14094       ;;
14095
14096     solaris*)
14097       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14098         ld_shlibs_F77=no
14099         cat <<EOF 1>&2
14100
14101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14102 *** create shared libraries on Solaris systems.  Therefore, libtool
14103 *** is disabling shared libraries support.  We urge you to upgrade GNU
14104 *** binutils to release 2.9.1 or newer.  Another option is to modify
14105 *** your PATH or compiler configuration so that the native linker is
14106 *** used, and then restart.
14107
14108 EOF
14109       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14110         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14112       else
14113         ld_shlibs_F77=no
14114       fi
14115       ;;
14116
14117     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14118       case `$LD -v 2>&1` in
14119         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14120         ld_shlibs_F77=no
14121         cat <<_LT_EOF 1>&2
14122
14123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14124 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14125 *** is disabling shared libraries support.  We urge you to upgrade GNU
14126 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14127 *** your PATH or compiler configuration so that the native linker is
14128 *** used, and then restart.
14129
14130 _LT_EOF
14131         ;;
14132         *)
14133           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14134             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14135             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14136             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14137           else
14138             ld_shlibs_F77=no
14139           fi
14140         ;;
14141       esac
14142       ;;
14143
14144     sunos4*)
14145       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14146       wlarc=
14147       hardcode_direct_F77=yes
14148       hardcode_shlibpath_var_F77=no
14149       ;;
14150
14151     *)
14152       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14153         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14155       else
14156         ld_shlibs_F77=no
14157       fi
14158       ;;
14159     esac
14160
14161     if test "$ld_shlibs_F77" = no; then
14162       runpath_var=
14163       hardcode_libdir_flag_spec_F77=
14164       export_dynamic_flag_spec_F77=
14165       whole_archive_flag_spec_F77=
14166     fi
14167   else
14168     # PORTME fill in a description of your system's linker (not GNU ld)
14169     case $host_os in
14170     aix3*)
14171       allow_undefined_flag_F77=unsupported
14172       always_export_symbols_F77=yes
14173       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'
14174       # Note: this linker hardcodes the directories in LIBPATH if there
14175       # are no directories specified by -L.
14176       hardcode_minus_L_F77=yes
14177       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14178         # Neither direct hardcoding nor static linking is supported with a
14179         # broken collect2.
14180         hardcode_direct_F77=unsupported
14181       fi
14182       ;;
14183
14184     aix4* | aix5*)
14185       if test "$host_cpu" = ia64; then
14186         # On IA64, the linker does run time linking by default, so we don't
14187         # have to do anything special.
14188         aix_use_runtimelinking=no
14189         exp_sym_flag='-Bexport'
14190         no_entry_flag=""
14191       else
14192         # If we're using GNU nm, then we don't want the "-C" option.
14193         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14194         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14195           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'
14196         else
14197           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'
14198         fi
14199         aix_use_runtimelinking=no
14200
14201         # Test if we are trying to use run time linking or normal
14202         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14203         # need to do runtime linking.
14204         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14205           for ld_flag in $LDFLAGS; do
14206           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14207             aix_use_runtimelinking=yes
14208             break
14209           fi
14210           done
14211           ;;
14212         esac
14213
14214         exp_sym_flag='-bexport'
14215         no_entry_flag='-bnoentry'
14216       fi
14217
14218       # When large executables or shared objects are built, AIX ld can
14219       # have problems creating the table of contents.  If linking a library
14220       # or program results in "error TOC overflow" add -mminimal-toc to
14221       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14222       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14223
14224       archive_cmds_F77=''
14225       hardcode_direct_F77=yes
14226       hardcode_libdir_separator_F77=':'
14227       link_all_deplibs_F77=yes
14228
14229       if test "$GCC" = yes; then
14230         case $host_os in aix4.[012]|aix4.[012].*)
14231         # We only want to do this on AIX 4.2 and lower, the check
14232         # below for broken collect2 doesn't work under 4.3+
14233           collect2name=`${CC} -print-prog-name=collect2`
14234           if test -f "$collect2name" && \
14235            strings "$collect2name" | grep resolve_lib_name >/dev/null
14236           then
14237           # We have reworked collect2
14238           hardcode_direct_F77=yes
14239           else
14240           # We have old collect2
14241           hardcode_direct_F77=unsupported
14242           # It fails to find uninstalled libraries when the uninstalled
14243           # path is not listed in the libpath.  Setting hardcode_minus_L
14244           # to unsupported forces relinking
14245           hardcode_minus_L_F77=yes
14246           hardcode_libdir_flag_spec_F77='-L$libdir'
14247           hardcode_libdir_separator_F77=
14248           fi
14249           ;;
14250         esac
14251         shared_flag='-shared'
14252         if test "$aix_use_runtimelinking" = yes; then
14253           shared_flag="$shared_flag "'${wl}-G'
14254         fi
14255       else
14256         # not using gcc
14257         if test "$host_cpu" = ia64; then
14258         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14259         # chokes on -Wl,-G. The following line is correct:
14260           shared_flag='-G'
14261         else
14262           if test "$aix_use_runtimelinking" = yes; then
14263             shared_flag='${wl}-G'
14264           else
14265             shared_flag='${wl}-bM:SRE'
14266           fi
14267         fi
14268       fi
14269
14270       # It seems that -bexpall does not export symbols beginning with
14271       # underscore (_), so it is better to generate a list of symbols to export.
14272       always_export_symbols_F77=yes
14273       if test "$aix_use_runtimelinking" = yes; then
14274         # Warning - without using the other runtime loading flags (-brtl),
14275         # -berok will link without error, but may produce a broken library.
14276         allow_undefined_flag_F77='-berok'
14277        # Determine the default libpath from the value encoded in an empty executable.
14278        cat > conftest.$ac_ext <<_ACEOF
14279       program main
14280
14281       end
14282 _ACEOF
14283 if ac_fn_f77_try_link "$LINENO"
14284 then :
14285
14286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14287 }'`
14288 # Check for a 64-bit object if we didn't find anything.
14289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14290 }'`; fi
14291 fi
14292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14293     conftest$ac_exeext conftest.$ac_ext
14294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14295
14296        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14297         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"
14298        else
14299         if test "$host_cpu" = ia64; then
14300           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14301           allow_undefined_flag_F77="-z nodefs"
14302           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"
14303         else
14304          # Determine the default libpath from the value encoded in an empty executable.
14305          cat > conftest.$ac_ext <<_ACEOF
14306       program main
14307
14308       end
14309 _ACEOF
14310 if ac_fn_f77_try_link "$LINENO"
14311 then :
14312
14313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14314 }'`
14315 # Check for a 64-bit object if we didn't find anything.
14316 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14317 }'`; fi
14318 fi
14319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14320     conftest$ac_exeext conftest.$ac_ext
14321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14322
14323          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14324           # Warning - without using the other run time loading flags,
14325           # -berok will link without error, but may produce a broken library.
14326           no_undefined_flag_F77=' ${wl}-bernotok'
14327           allow_undefined_flag_F77=' ${wl}-berok'
14328           # Exported symbols can be pulled into shared objects from archives
14329           whole_archive_flag_spec_F77='$convenience'
14330           archive_cmds_need_lc_F77=yes
14331           # This is similar to how AIX traditionally builds its shared libraries.
14332           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'
14333         fi
14334       fi
14335       ;;
14336
14337     amigaos*)
14338       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)'
14339       hardcode_libdir_flag_spec_F77='-L$libdir'
14340       hardcode_minus_L_F77=yes
14341       # see comment about different semantics on the GNU ld section
14342       ld_shlibs_F77=no
14343       ;;
14344
14345     bsdi[45]*)
14346       export_dynamic_flag_spec_F77=-rdynamic
14347       ;;
14348
14349     cygwin* | mingw* | pw32*)
14350       # When not using gcc, we currently assume that we are using
14351       # Microsoft Visual C++.
14352       # hardcode_libdir_flag_spec is actually meaningless, as there is
14353       # no search path for DLLs.
14354       hardcode_libdir_flag_spec_F77=' '
14355       allow_undefined_flag_F77=unsupported
14356       # Tell ltmain to make .lib files, not .a files.
14357       libext=lib
14358       # Tell ltmain to make .dll files, not .so files.
14359       shrext_cmds=".dll"
14360       # FIXME: Setting linknames here is a bad hack.
14361       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14362       # The linker will automatically build a .lib file if we build a DLL.
14363       old_archive_From_new_cmds_F77='true'
14364       # FIXME: Should let the user specify the lib program.
14365       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14366       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14367       enable_shared_with_static_runtimes_F77=yes
14368       ;;
14369
14370     darwin* | rhapsody*)
14371       case $host_os in
14372         rhapsody* | darwin1.[012])
14373          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14374          ;;
14375        *) # Darwin 1.3 on
14376          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14377            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14378          else
14379            case ${MACOSX_DEPLOYMENT_TARGET} in
14380              10.[012])
14381                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14382                ;;
14383              10.*)
14384                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14385                ;;
14386            esac
14387          fi
14388          ;;
14389       esac
14390       archive_cmds_need_lc_F77=no
14391       hardcode_direct_F77=no
14392       hardcode_automatic_F77=yes
14393       hardcode_shlibpath_var_F77=unsupported
14394       whole_archive_flag_spec_F77=''
14395       link_all_deplibs_F77=yes
14396     if test "$GCC" = yes ; then
14397         output_verbose_link_cmd='echo'
14398         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14399       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14400       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14401       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14402       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}'
14403     else
14404       case $cc_basename in
14405         xlc*)
14406          output_verbose_link_cmd='echo'
14407          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14408          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14409           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14410          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14411           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}'
14412           ;;
14413        *)
14414          ld_shlibs_F77=no
14415           ;;
14416       esac
14417     fi
14418       ;;
14419
14420     dgux*)
14421       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422       hardcode_libdir_flag_spec_F77='-L$libdir'
14423       hardcode_shlibpath_var_F77=no
14424       ;;
14425
14426     freebsd1.*)
14427       ld_shlibs_F77=no
14428       ;;
14429
14430     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14431     # support.  Future versions do this automatically, but an explicit c++rt0.o
14432     # does not break anything, and helps significantly (at the cost of a little
14433     # extra space).
14434     freebsd2.2*)
14435       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14436       hardcode_libdir_flag_spec_F77='-R$libdir'
14437       hardcode_direct_F77=yes
14438       hardcode_shlibpath_var_F77=no
14439       ;;
14440
14441     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14442     freebsd2.*)
14443       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14444       hardcode_direct_F77=yes
14445       hardcode_minus_L_F77=yes
14446       hardcode_shlibpath_var_F77=no
14447       ;;
14448
14449     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14450     freebsd* | kfreebsd*-gnu | dragonfly*)
14451       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14452       hardcode_libdir_flag_spec_F77='-R$libdir'
14453       hardcode_direct_F77=yes
14454       hardcode_shlibpath_var_F77=no
14455       ;;
14456
14457     hpux9*)
14458       if test "$GCC" = yes; then
14459         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'
14460       else
14461         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'
14462       fi
14463       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14464       hardcode_libdir_separator_F77=:
14465       hardcode_direct_F77=yes
14466
14467       # hardcode_minus_L: Not really in the search PATH,
14468       # but as the default location of the library.
14469       hardcode_minus_L_F77=yes
14470       export_dynamic_flag_spec_F77='${wl}-E'
14471       ;;
14472
14473     hpux10*)
14474       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14475         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14476       else
14477         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14478       fi
14479       if test "$with_gnu_ld" = no; then
14480         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14481         hardcode_libdir_separator_F77=:
14482
14483         hardcode_direct_F77=yes
14484         export_dynamic_flag_spec_F77='${wl}-E'
14485
14486         # hardcode_minus_L: Not really in the search PATH,
14487         # but as the default location of the library.
14488         hardcode_minus_L_F77=yes
14489       fi
14490       ;;
14491
14492     hpux11*)
14493       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14494         case $host_cpu in
14495         hppa*64*)
14496           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14497           ;;
14498         ia64*)
14499           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14500           ;;
14501         *)
14502           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14503           ;;
14504         esac
14505       else
14506         case $host_cpu in
14507         hppa*64*)
14508           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14509           ;;
14510         ia64*)
14511           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14512           ;;
14513         *)
14514           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14515           ;;
14516         esac
14517       fi
14518       if test "$with_gnu_ld" = no; then
14519         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14520         hardcode_libdir_separator_F77=:
14521
14522         case $host_cpu in
14523         hppa*64*|ia64*)
14524           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14525           hardcode_direct_F77=no
14526           hardcode_shlibpath_var_F77=no
14527           ;;
14528         *)
14529           hardcode_direct_F77=yes
14530           export_dynamic_flag_spec_F77='${wl}-E'
14531
14532           # hardcode_minus_L: Not really in the search PATH,
14533           # but as the default location of the library.
14534           hardcode_minus_L_F77=yes
14535           ;;
14536         esac
14537       fi
14538       ;;
14539
14540     irix5* | irix6* | nonstopux*)
14541       if test "$GCC" = yes; then
14542         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'
14543       else
14544         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'
14545         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14546       fi
14547       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14548       hardcode_libdir_separator_F77=:
14549       link_all_deplibs_F77=yes
14550       ;;
14551
14552     netbsd*)
14553       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14554         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14555       else
14556         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14557       fi
14558       hardcode_libdir_flag_spec_F77='-R$libdir'
14559       hardcode_direct_F77=yes
14560       hardcode_shlibpath_var_F77=no
14561       ;;
14562
14563     newsos6)
14564       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14565       hardcode_direct_F77=yes
14566       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14567       hardcode_libdir_separator_F77=:
14568       hardcode_shlibpath_var_F77=no
14569       ;;
14570
14571     openbsd*)
14572       hardcode_direct_F77=yes
14573       hardcode_shlibpath_var_F77=no
14574       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14575         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14576         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14577         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14578         export_dynamic_flag_spec_F77='${wl}-E'
14579       else
14580        case $host_os in
14581          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14582            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14583            hardcode_libdir_flag_spec_F77='-R$libdir'
14584            ;;
14585          *)
14586            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14587            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14588            ;;
14589        esac
14590       fi
14591       ;;
14592
14593     os2*)
14594       hardcode_libdir_flag_spec_F77='-L$libdir'
14595       hardcode_minus_L_F77=yes
14596       allow_undefined_flag_F77=unsupported
14597       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'
14598       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14599       ;;
14600
14601     osf3*)
14602       if test "$GCC" = yes; then
14603         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14604         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'
14605       else
14606         allow_undefined_flag_F77=' -expect_unresolved \*'
14607         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'
14608       fi
14609       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14610       hardcode_libdir_separator_F77=:
14611       ;;
14612
14613     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14614       if test "$GCC" = yes; then
14615         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14616         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'
14617         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14618       else
14619         allow_undefined_flag_F77=' -expect_unresolved \*'
14620         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'
14621         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~
14622         $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'
14623
14624         # Both c and cxx compiler support -rpath directly
14625         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14626       fi
14627       hardcode_libdir_separator_F77=:
14628       ;;
14629
14630     solaris*)
14631       no_undefined_flag_F77=' -z text'
14632       if test "$GCC" = yes; then
14633         wlarc='${wl}'
14634         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14635         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14636           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14637       else
14638         wlarc=''
14639         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14641         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14642       fi
14643       hardcode_libdir_flag_spec_F77='-R$libdir'
14644       hardcode_shlibpath_var_F77=no
14645       case $host_os in
14646       solaris2.[0-5] | solaris2.[0-5].*) ;;
14647       *)
14648         # The compiler driver will combine linker options so we
14649         # cannot just pass the convience library names through
14650         # without $wl, iff we do not link with $LD.
14651         # Luckily, gcc supports the same syntax we need for Sun Studio.
14652         # Supported since Solaris 2.6 (maybe 2.5.1?)
14653         case $wlarc in
14654         '')
14655           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14656         *)
14657           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14658         esac ;;
14659       esac
14660       link_all_deplibs_F77=yes
14661       ;;
14662
14663     sunos4*)
14664       if test "x$host_vendor" = xsequent; then
14665         # Use $CC to link under sequent, because it throws in some extra .o
14666         # files that make .init and .fini sections work.
14667         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14668       else
14669         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14670       fi
14671       hardcode_libdir_flag_spec_F77='-L$libdir'
14672       hardcode_direct_F77=yes
14673       hardcode_minus_L_F77=yes
14674       hardcode_shlibpath_var_F77=no
14675       ;;
14676
14677     sysv4)
14678       case $host_vendor in
14679         sni)
14680           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14681           hardcode_direct_F77=yes # is this really true???
14682         ;;
14683         siemens)
14684           ## LD is ld it makes a PLAMLIB
14685           ## CC just makes a GrossModule.
14686           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14687           reload_cmds_F77='$CC -r -o $output$reload_objs'
14688           hardcode_direct_F77=no
14689         ;;
14690         motorola)
14691           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14693         ;;
14694       esac
14695       runpath_var='LD_RUN_PATH'
14696       hardcode_shlibpath_var_F77=no
14697       ;;
14698
14699     sysv4.3*)
14700       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701       hardcode_shlibpath_var_F77=no
14702       export_dynamic_flag_spec_F77='-Bexport'
14703       ;;
14704
14705     sysv4*MP*)
14706       if test -d /usr/nec; then
14707         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708         hardcode_shlibpath_var_F77=no
14709         runpath_var=LD_RUN_PATH
14710         hardcode_runpath_var=yes
14711         ld_shlibs_F77=yes
14712       fi
14713       ;;
14714
14715     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14716       no_undefined_flag_F77='${wl}-z,text'
14717       archive_cmds_need_lc_F77=no
14718       hardcode_shlibpath_var_F77=no
14719       runpath_var='LD_RUN_PATH'
14720
14721       if test "$GCC" = yes; then
14722         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14723         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724       else
14725         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14726         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14727       fi
14728       ;;
14729
14730     sysv5* | sco3.2v5* | sco5v6*)
14731       # Note: We can NOT use -z defs as we might desire, because we do not
14732       # link with -lc, and that would cause any symbols used from libc to
14733       # always be unresolved, which means just about no library would
14734       # ever link correctly.  If we're not using GNU ld we use -z text
14735       # though, which does catch some bad symbols but isn't as heavy-handed
14736       # as -z defs.
14737       no_undefined_flag_F77='${wl}-z,text'
14738       allow_undefined_flag_F77='${wl}-z,nodefs'
14739       archive_cmds_need_lc_F77=no
14740       hardcode_shlibpath_var_F77=no
14741       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14742       hardcode_libdir_separator_F77=':'
14743       link_all_deplibs_F77=yes
14744       export_dynamic_flag_spec_F77='${wl}-Bexport'
14745       runpath_var='LD_RUN_PATH'
14746
14747       if test "$GCC" = yes; then
14748         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14749         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14750       else
14751         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14752         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14753       fi
14754       ;;
14755
14756     uts4*)
14757       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14758       hardcode_libdir_flag_spec_F77='-L$libdir'
14759       hardcode_shlibpath_var_F77=no
14760       ;;
14761
14762     *)
14763       ld_shlibs_F77=no
14764       ;;
14765     esac
14766   fi
14767
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14769 printf "%s\n" "$ld_shlibs_F77" >&6; }
14770 test "$ld_shlibs_F77" = no && can_build_shared=no
14771
14772 #
14773 # Do we need to explicitly link libc?
14774 #
14775 case "x$archive_cmds_need_lc_F77" in
14776 x|xyes)
14777   # Assume -lc should be added
14778   archive_cmds_need_lc_F77=yes
14779
14780   if test "$enable_shared" = yes && test "$GCC" = yes; then
14781     case $archive_cmds_F77 in
14782     *'~'*)
14783       # FIXME: we may have to deal with multi-command sequences.
14784       ;;
14785     '$CC '*)
14786       # Test whether the compiler implicitly links with -lc since on some
14787       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14788       # to ld, don't add -lc before -lgcc.
14789       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14790 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14791       $rm conftest*
14792       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14793
14794       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14795   (eval $ac_compile) 2>&5
14796   ac_status=$?
14797   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14798   test $ac_status = 0; } 2>conftest.err; then
14799         soname=conftest
14800         lib=conftest
14801         libobjs=conftest.$ac_objext
14802         deplibs=
14803         wl=$lt_prog_compiler_wl_F77
14804         pic_flag=$lt_prog_compiler_pic_F77
14805         compiler_flags=-v
14806         linker_flags=-v
14807         verstring=
14808         output_objdir=.
14809         libname=conftest
14810         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14811         allow_undefined_flag_F77=
14812         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14813   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14814   ac_status=$?
14815   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816   test $ac_status = 0; }
14817         then
14818           archive_cmds_need_lc_F77=no
14819         else
14820           archive_cmds_need_lc_F77=yes
14821         fi
14822         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14823       else
14824         cat conftest.err 1>&5
14825       fi
14826       $rm conftest*
14827       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14828 printf "%s\n" "$archive_cmds_need_lc_F77" >&6; }
14829       ;;
14830     esac
14831   fi
14832   ;;
14833 esac
14834
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14836 printf %s "checking dynamic linker characteristics... " >&6; }
14837 library_names_spec=
14838 libname_spec='lib$name'
14839 soname_spec=
14840 shrext_cmds=".so"
14841 postinstall_cmds=
14842 postuninstall_cmds=
14843 finish_cmds=
14844 finish_eval=
14845 shlibpath_var=
14846 shlibpath_overrides_runpath=unknown
14847 version_type=none
14848 dynamic_linker="$host_os ld.so"
14849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14850 if test "$GCC" = yes; then
14851   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14852   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14853     # if the path contains ";" then we assume it to be the separator
14854     # otherwise default to the standard path separator (i.e. ":") - it is
14855     # assumed that no part of a normal pathname contains ";" but that should
14856     # okay in the real world where ";" in dirpaths is itself problematic.
14857     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14858   else
14859     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14860   fi
14861 else
14862   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14863 fi
14864 need_lib_prefix=unknown
14865 hardcode_into_libs=no
14866
14867 # when you set need_version to no, make sure it does not cause -set_version
14868 # flags to be left without arguments
14869 need_version=unknown
14870
14871 case $host_os in
14872 aix3*)
14873   version_type=linux
14874   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14875   shlibpath_var=LIBPATH
14876
14877   # AIX 3 has no versioning support, so we append a major version to the name.
14878   soname_spec='${libname}${release}${shared_ext}$major'
14879   ;;
14880
14881 aix4* | aix5*)
14882   version_type=linux
14883   need_lib_prefix=no
14884   need_version=no
14885   hardcode_into_libs=yes
14886   if test "$host_cpu" = ia64; then
14887     # AIX 5 supports IA64
14888     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14889     shlibpath_var=LD_LIBRARY_PATH
14890   else
14891     # With GCC up to 2.95.x, collect2 would create an import file
14892     # for dependence libraries.  The import file would start with
14893     # the line `#! .'.  This would cause the generated library to
14894     # depend on `.', always an invalid library.  This was fixed in
14895     # development snapshots of GCC prior to 3.0.
14896     case $host_os in
14897       aix4 | aix4.[01] | aix4.[01].*)
14898       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14899            echo ' yes '
14900            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14901         :
14902       else
14903         can_build_shared=no
14904       fi
14905       ;;
14906     esac
14907     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14908     # soname into executable. Probably we can add versioning support to
14909     # collect2, so additional links can be useful in future.
14910     if test "$aix_use_runtimelinking" = yes; then
14911       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14912       # instead of lib<name>.a to let people know that these are not
14913       # typical AIX shared libraries.
14914       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915     else
14916       # We preserve .a as extension for shared libraries through AIX4.2
14917       # and later when we are not doing run time linking.
14918       library_names_spec='${libname}${release}.a $libname.a'
14919       soname_spec='${libname}${release}${shared_ext}$major'
14920     fi
14921     shlibpath_var=LIBPATH
14922   fi
14923   ;;
14924
14925 amigaos*)
14926   library_names_spec='$libname.ixlibrary $libname.a'
14927   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14928   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'
14929   ;;
14930
14931 beos*)
14932   library_names_spec='${libname}${shared_ext}'
14933   dynamic_linker="$host_os ld.so"
14934   shlibpath_var=LIBRARY_PATH
14935   ;;
14936
14937 bsdi[45]*)
14938   version_type=linux
14939   need_version=no
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941   soname_spec='${libname}${release}${shared_ext}$major'
14942   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14943   shlibpath_var=LD_LIBRARY_PATH
14944   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14945   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14946   # the default ld.so.conf also contains /usr/contrib/lib and
14947   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14948   # libtool to hard-code these into programs
14949   ;;
14950
14951 cygwin* | mingw* | pw32*)
14952   version_type=windows
14953   shrext_cmds=".dll"
14954   need_version=no
14955   need_lib_prefix=no
14956
14957   case $GCC,$host_os in
14958   yes,cygwin* | yes,mingw* | yes,pw32*)
14959     library_names_spec='$libname.dll.a'
14960     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14961     postinstall_cmds='base_file=`basename \${file}`~
14962       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14963       dldir=$destdir/`dirname \$dlpath`~
14964       test -d \$dldir || mkdir -p \$dldir~
14965       $install_prog $dir/$dlname \$dldir/$dlname~
14966       chmod a+x \$dldir/$dlname'
14967     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14968       dlpath=$dir/\$dldll~
14969        $rm \$dlpath'
14970     shlibpath_overrides_runpath=yes
14971
14972     case $host_os in
14973     cygwin*)
14974       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14975       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14976       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14977       ;;
14978     mingw*)
14979       # MinGW DLLs use traditional 'lib' prefix
14980       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14981       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14982       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14983         # It is most probably a Windows format PATH printed by
14984         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14985         # path with ; separators, and with drive letters. We can handle the
14986         # drive letters (cygwin fileutils understands them), so leave them,
14987         # especially as we might pass files found there to a mingw objdump,
14988         # which wouldn't understand a cygwinified path. Ahh.
14989         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14990       else
14991         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14992       fi
14993       ;;
14994     pw32*)
14995       # pw32 DLLs use 'pw' prefix rather than 'lib'
14996       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14997       ;;
14998     esac
14999     ;;
15000
15001   *)
15002     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15003     ;;
15004   esac
15005   dynamic_linker='Win32 ld.exe'
15006   # FIXME: first we should search . and the directory the executable is in
15007   shlibpath_var=PATH
15008   ;;
15009
15010 darwin* | rhapsody*)
15011   dynamic_linker="$host_os dyld"
15012   version_type=darwin
15013   need_lib_prefix=no
15014   need_version=no
15015   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15016   soname_spec='${libname}${release}${major}$shared_ext'
15017   shlibpath_overrides_runpath=yes
15018   shlibpath_var=DYLD_LIBRARY_PATH
15019   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15020   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15021   if test "$GCC" = yes; then
15022     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15023   else
15024     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15025   fi
15026   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15027   ;;
15028
15029 dgux*)
15030   version_type=linux
15031   need_lib_prefix=no
15032   need_version=no
15033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15034   soname_spec='${libname}${release}${shared_ext}$major'
15035   shlibpath_var=LD_LIBRARY_PATH
15036   ;;
15037
15038 freebsd1.*)
15039   dynamic_linker=no
15040   ;;
15041
15042 kfreebsd*-gnu)
15043   version_type=linux
15044   need_lib_prefix=no
15045   need_version=no
15046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15047   soname_spec='${libname}${release}${shared_ext}$major'
15048   shlibpath_var=LD_LIBRARY_PATH
15049   shlibpath_overrides_runpath=no
15050   hardcode_into_libs=yes
15051   dynamic_linker='GNU ld.so'
15052   ;;
15053
15054 freebsd* | dragonfly*)
15055   # DragonFly does not have aout.  When/if they implement a new
15056   # versioning mechanism, adjust this.
15057   if test -x /usr/bin/objformat; then
15058     objformat=`/usr/bin/objformat`
15059   else
15060     case $host_os in
15061     freebsd[123]*) objformat=aout ;;
15062     *) objformat=elf ;;
15063     esac
15064   fi
15065   version_type=freebsd-$objformat
15066   case $version_type in
15067     freebsd-elf*)
15068       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15069       need_version=no
15070       need_lib_prefix=no
15071       ;;
15072     freebsd-*)
15073       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15074       need_version=yes
15075       ;;
15076   esac
15077   shlibpath_var=LD_LIBRARY_PATH
15078   case $host_os in
15079   freebsd2.*)
15080     shlibpath_overrides_runpath=yes
15081     ;;
15082   freebsd3.[01]* | freebsdelf3.[01]*)
15083     shlibpath_overrides_runpath=yes
15084     hardcode_into_libs=yes
15085     ;;
15086   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15087   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15088     shlibpath_overrides_runpath=no
15089     hardcode_into_libs=yes
15090     ;;
15091   freebsd*) # from 4.6 on
15092     shlibpath_overrides_runpath=yes
15093     hardcode_into_libs=yes
15094     ;;
15095   esac
15096   ;;
15097
15098 gnu*)
15099   version_type=linux
15100   need_lib_prefix=no
15101   need_version=no
15102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15103   soname_spec='${libname}${release}${shared_ext}$major'
15104   shlibpath_var=LD_LIBRARY_PATH
15105   hardcode_into_libs=yes
15106   ;;
15107
15108 hpux9* | hpux10* | hpux11*)
15109   # Give a soname corresponding to the major version so that dld.sl refuses to
15110   # link against other versions.
15111   version_type=sunos
15112   need_lib_prefix=no
15113   need_version=no
15114   case $host_cpu in
15115   ia64*)
15116     shrext_cmds='.so'
15117     hardcode_into_libs=yes
15118     dynamic_linker="$host_os dld.so"
15119     shlibpath_var=LD_LIBRARY_PATH
15120     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122     soname_spec='${libname}${release}${shared_ext}$major'
15123     if test "X$HPUX_IA64_MODE" = X32; then
15124       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15125     else
15126       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15127     fi
15128     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15129     ;;
15130    hppa*64*)
15131      shrext_cmds='.sl'
15132      hardcode_into_libs=yes
15133      dynamic_linker="$host_os dld.sl"
15134      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15135      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15136      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137      soname_spec='${libname}${release}${shared_ext}$major'
15138      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15139      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15140      ;;
15141    *)
15142     shrext_cmds='.sl'
15143     dynamic_linker="$host_os dld.sl"
15144     shlibpath_var=SHLIB_PATH
15145     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15146     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147     soname_spec='${libname}${release}${shared_ext}$major'
15148     ;;
15149   esac
15150   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15151   postinstall_cmds='chmod 555 $lib'
15152   ;;
15153
15154 interix3*)
15155   version_type=linux
15156   need_lib_prefix=no
15157   need_version=no
15158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15159   soname_spec='${libname}${release}${shared_ext}$major'
15160   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15161   shlibpath_var=LD_LIBRARY_PATH
15162   shlibpath_overrides_runpath=no
15163   hardcode_into_libs=yes
15164   ;;
15165
15166 irix5* | irix6* | nonstopux*)
15167   case $host_os in
15168     nonstopux*) version_type=nonstopux ;;
15169     *)
15170         if test "$lt_cv_prog_gnu_ld" = yes; then
15171                 version_type=linux
15172         else
15173                 version_type=irix
15174         fi ;;
15175   esac
15176   need_lib_prefix=no
15177   need_version=no
15178   soname_spec='${libname}${release}${shared_ext}$major'
15179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15180   case $host_os in
15181   irix5* | nonstopux*)
15182     libsuff= shlibsuff=
15183     ;;
15184   *)
15185     case $LD in # libtool.m4 will add one of these switches to LD
15186     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15187       libsuff= shlibsuff= libmagic=32-bit;;
15188     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15189       libsuff=32 shlibsuff=N32 libmagic=N32;;
15190     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15191       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15192     *) libsuff= shlibsuff= libmagic=never-match;;
15193     esac
15194     ;;
15195   esac
15196   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15197   shlibpath_overrides_runpath=no
15198   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15199   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15200   hardcode_into_libs=yes
15201   ;;
15202
15203 # No shared lib support for Linux oldld, aout, or coff.
15204 linux*oldld* | linux*aout* | linux*coff*)
15205   dynamic_linker=no
15206   ;;
15207
15208 # This must be Linux ELF.
15209 linux*)
15210   version_type=linux
15211   need_lib_prefix=no
15212   need_version=no
15213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214   soname_spec='${libname}${release}${shared_ext}$major'
15215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15216   shlibpath_var=LD_LIBRARY_PATH
15217   shlibpath_overrides_runpath=no
15218   # This implies no fast_install, which is unacceptable.
15219   # Some rework will be needed to allow for fast_install
15220   # before this can be enabled.
15221   hardcode_into_libs=yes
15222
15223   # Append ld.so.conf contents to the search path
15224   if test -f /etc/ld.so.conf; then
15225     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15226     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15227   fi
15228
15229   # We used to test for /lib/ld.so.1 and disable shared libraries on
15230   # powerpc, because MkLinux only supported shared libraries with the
15231   # GNU dynamic linker.  Since this was broken with cross compilers,
15232   # most powerpc-linux boxes support dynamic linking these days and
15233   # people can always --disable-shared, the test was removed, and we
15234   # assume the GNU/Linux dynamic linker is in use.
15235   dynamic_linker='GNU/Linux ld.so'
15236   ;;
15237
15238 knetbsd*-gnu)
15239   version_type=linux
15240   need_lib_prefix=no
15241   need_version=no
15242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15243   soname_spec='${libname}${release}${shared_ext}$major'
15244   shlibpath_var=LD_LIBRARY_PATH
15245   shlibpath_overrides_runpath=no
15246   hardcode_into_libs=yes
15247   dynamic_linker='GNU ld.so'
15248   ;;
15249
15250 netbsd*)
15251   version_type=sunos
15252   need_lib_prefix=no
15253   need_version=no
15254   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15256     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15257     dynamic_linker='NetBSD (a.out) ld.so'
15258   else
15259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15260     soname_spec='${libname}${release}${shared_ext}$major'
15261     dynamic_linker='NetBSD ld.elf_so'
15262   fi
15263   shlibpath_var=LD_LIBRARY_PATH
15264   shlibpath_overrides_runpath=yes
15265   hardcode_into_libs=yes
15266   ;;
15267
15268 newsos6)
15269   version_type=linux
15270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271   shlibpath_var=LD_LIBRARY_PATH
15272   shlibpath_overrides_runpath=yes
15273   ;;
15274
15275 nto-qnx*)
15276   version_type=linux
15277   need_lib_prefix=no
15278   need_version=no
15279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280   soname_spec='${libname}${release}${shared_ext}$major'
15281   shlibpath_var=LD_LIBRARY_PATH
15282   shlibpath_overrides_runpath=yes
15283   ;;
15284
15285 openbsd*)
15286   version_type=sunos
15287   sys_lib_dlsearch_path_spec="/usr/lib"
15288   need_lib_prefix=no
15289   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15290   case $host_os in
15291     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15292     *)                         need_version=no  ;;
15293   esac
15294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15296   shlibpath_var=LD_LIBRARY_PATH
15297   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15298     case $host_os in
15299       openbsd2.[89] | openbsd2.[89].*)
15300         shlibpath_overrides_runpath=no
15301         ;;
15302       *)
15303         shlibpath_overrides_runpath=yes
15304         ;;
15305       esac
15306   else
15307     shlibpath_overrides_runpath=yes
15308   fi
15309   ;;
15310
15311 os2*)
15312   libname_spec='$name'
15313   shrext_cmds=".dll"
15314   need_lib_prefix=no
15315   library_names_spec='$libname${shared_ext} $libname.a'
15316   dynamic_linker='OS/2 ld.exe'
15317   shlibpath_var=LIBPATH
15318   ;;
15319
15320 osf3* | osf4* | osf5*)
15321   version_type=osf
15322   need_lib_prefix=no
15323   need_version=no
15324   soname_spec='${libname}${release}${shared_ext}$major'
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326   shlibpath_var=LD_LIBRARY_PATH
15327   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15328   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15329   ;;
15330
15331 solaris*)
15332   version_type=linux
15333   need_lib_prefix=no
15334   need_version=no
15335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336   soname_spec='${libname}${release}${shared_ext}$major'
15337   shlibpath_var=LD_LIBRARY_PATH
15338   shlibpath_overrides_runpath=yes
15339   hardcode_into_libs=yes
15340   # ldd complains unless libraries are executable
15341   postinstall_cmds='chmod +x $lib'
15342   ;;
15343
15344 sunos4*)
15345   version_type=sunos
15346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15347   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15348   shlibpath_var=LD_LIBRARY_PATH
15349   shlibpath_overrides_runpath=yes
15350   if test "$with_gnu_ld" = yes; then
15351     need_lib_prefix=no
15352   fi
15353   need_version=yes
15354   ;;
15355
15356 sysv4 | sysv4.3*)
15357   version_type=linux
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   shlibpath_var=LD_LIBRARY_PATH
15361   case $host_vendor in
15362     sni)
15363       shlibpath_overrides_runpath=no
15364       need_lib_prefix=no
15365       export_dynamic_flag_spec='${wl}-Blargedynsym'
15366       runpath_var=LD_RUN_PATH
15367       ;;
15368     siemens)
15369       need_lib_prefix=no
15370       ;;
15371     motorola)
15372       need_lib_prefix=no
15373       need_version=no
15374       shlibpath_overrides_runpath=no
15375       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15376       ;;
15377   esac
15378   ;;
15379
15380 sysv4*MP*)
15381   if test -d /usr/nec ;then
15382     version_type=linux
15383     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15384     soname_spec='$libname${shared_ext}.$major'
15385     shlibpath_var=LD_LIBRARY_PATH
15386   fi
15387   ;;
15388
15389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15390   version_type=freebsd-elf
15391   need_lib_prefix=no
15392   need_version=no
15393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15394   soname_spec='${libname}${release}${shared_ext}$major'
15395   shlibpath_var=LD_LIBRARY_PATH
15396   hardcode_into_libs=yes
15397   if test "$with_gnu_ld" = yes; then
15398     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15399     shlibpath_overrides_runpath=no
15400   else
15401     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15402     shlibpath_overrides_runpath=yes
15403     case $host_os in
15404       sco3.2v5*)
15405         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15406         ;;
15407     esac
15408   fi
15409   sys_lib_dlsearch_path_spec='/usr/lib'
15410   ;;
15411
15412 uts4*)
15413   version_type=linux
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 *)
15420   dynamic_linker=no
15421   ;;
15422 esac
15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15424 printf "%s\n" "$dynamic_linker" >&6; }
15425 test "$dynamic_linker" = no && can_build_shared=no
15426
15427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15428 if test "$GCC" = yes; then
15429   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15430 fi
15431
15432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15433 printf %s "checking how to hardcode library paths into programs... " >&6; }
15434 hardcode_action_F77=
15435 if test -n "$hardcode_libdir_flag_spec_F77" || \
15436    test -n "$runpath_var_F77" || \
15437    test "X$hardcode_automatic_F77" = "Xyes" ; then
15438
15439   # We can hardcode non-existant directories.
15440   if test "$hardcode_direct_F77" != no &&
15441      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15442      # have to relink, otherwise we might link with an installed library
15443      # when we should be linking with a yet-to-be-installed one
15444      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15445      test "$hardcode_minus_L_F77" != no; then
15446     # Linking always hardcodes the temporary library directory.
15447     hardcode_action_F77=relink
15448   else
15449     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15450     hardcode_action_F77=immediate
15451   fi
15452 else
15453   # We cannot hardcode anything, or else we can only hardcode existing
15454   # directories.
15455   hardcode_action_F77=unsupported
15456 fi
15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15458 printf "%s\n" "$hardcode_action_F77" >&6; }
15459
15460 if test "$hardcode_action_F77" = relink; then
15461   # Fast installation is not supported
15462   enable_fast_install=no
15463 elif test "$shlibpath_overrides_runpath" = yes ||
15464      test "$enable_shared" = no; then
15465   # Fast installation is not necessary
15466   enable_fast_install=needless
15467 fi
15468
15469
15470 # The else clause should only fire when bootstrapping the
15471 # libtool distribution, otherwise you forgot to ship ltmain.sh
15472 # with your package, and you will get complaints that there are
15473 # no rules to generate ltmain.sh.
15474 if test -f "$ltmain"; then
15475   # See if we are running on zsh, and set the options which allow our commands through
15476   # without removal of \ escapes.
15477   if test -n "${ZSH_VERSION+set}" ; then
15478     setopt NO_GLOB_SUBST
15479   fi
15480   # Now quote all the things that may contain metacharacters while being
15481   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15482   # variables and quote the copies for generation of the libtool script.
15483   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15484     SED SHELL STRIP \
15485     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15486     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15487     deplibs_check_method reload_flag reload_cmds need_locks \
15488     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15489     lt_cv_sys_global_symbol_to_c_name_address \
15490     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15491     old_postinstall_cmds old_postuninstall_cmds \
15492     compiler_F77 \
15493     CC_F77 \
15494     LD_F77 \
15495     lt_prog_compiler_wl_F77 \
15496     lt_prog_compiler_pic_F77 \
15497     lt_prog_compiler_static_F77 \
15498     lt_prog_compiler_no_builtin_flag_F77 \
15499     export_dynamic_flag_spec_F77 \
15500     thread_safe_flag_spec_F77 \
15501     whole_archive_flag_spec_F77 \
15502     enable_shared_with_static_runtimes_F77 \
15503     old_archive_cmds_F77 \
15504     old_archive_from_new_cmds_F77 \
15505     predep_objects_F77 \
15506     postdep_objects_F77 \
15507     predeps_F77 \
15508     postdeps_F77 \
15509     compiler_lib_search_path_F77 \
15510     archive_cmds_F77 \
15511     archive_expsym_cmds_F77 \
15512     postinstall_cmds_F77 \
15513     postuninstall_cmds_F77 \
15514     old_archive_from_expsyms_cmds_F77 \
15515     allow_undefined_flag_F77 \
15516     no_undefined_flag_F77 \
15517     export_symbols_cmds_F77 \
15518     hardcode_libdir_flag_spec_F77 \
15519     hardcode_libdir_flag_spec_ld_F77 \
15520     hardcode_libdir_separator_F77 \
15521     hardcode_automatic_F77 \
15522     module_cmds_F77 \
15523     module_expsym_cmds_F77 \
15524     lt_cv_prog_compiler_c_o_F77 \
15525     exclude_expsyms_F77 \
15526     include_expsyms_F77; do
15527
15528     case $var in
15529     old_archive_cmds_F77 | \
15530     old_archive_from_new_cmds_F77 | \
15531     archive_cmds_F77 | \
15532     archive_expsym_cmds_F77 | \
15533     module_cmds_F77 | \
15534     module_expsym_cmds_F77 | \
15535     old_archive_from_expsyms_cmds_F77 | \
15536     export_symbols_cmds_F77 | \
15537     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15538     postinstall_cmds | postuninstall_cmds | \
15539     old_postinstall_cmds | old_postuninstall_cmds | \
15540     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15541       # Double-quote double-evaled strings.
15542       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15543       ;;
15544     *)
15545       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15546       ;;
15547     esac
15548   done
15549
15550   case $lt_echo in
15551   *'\$0 --fallback-echo"')
15552     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15553     ;;
15554   esac
15555
15556 cfgfile="$ofile"
15557
15558   cat <<__EOF__ >> "$cfgfile"
15559 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15560
15561 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15562
15563 # Shell to use when invoking shell scripts.
15564 SHELL=$lt_SHELL
15565
15566 # Whether or not to build shared libraries.
15567 build_libtool_libs=$enable_shared
15568
15569 # Whether or not to build static libraries.
15570 build_old_libs=$enable_static
15571
15572 # Whether or not to add -lc for building shared libraries.
15573 build_libtool_need_lc=$archive_cmds_need_lc_F77
15574
15575 # Whether or not to disallow shared libs when runtime libs are static
15576 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15577
15578 # Whether or not to optimize for fast installation.
15579 fast_install=$enable_fast_install
15580
15581 # The host system.
15582 host_alias=$host_alias
15583 host=$host
15584 host_os=$host_os
15585
15586 # The build system.
15587 build_alias=$build_alias
15588 build=$build
15589 build_os=$build_os
15590
15591 # An echo program that does not interpret backslashes.
15592 echo=$lt_echo
15593
15594 # The archiver.
15595 AR=$lt_AR
15596 AR_FLAGS=$lt_AR_FLAGS
15597
15598 # A C compiler.
15599 LTCC=$lt_LTCC
15600
15601 # LTCC compiler flags.
15602 LTCFLAGS=$lt_LTCFLAGS
15603
15604 # A language-specific compiler.
15605 CC=$lt_compiler_F77
15606
15607 # Is the compiler the GNU C compiler?
15608 with_gcc=$GCC_F77
15609
15610 # An ERE matcher.
15611 EGREP=$lt_EGREP
15612
15613 # The linker used to build libraries.
15614 LD=$lt_LD_F77
15615
15616 # Whether we need hard or soft links.
15617 LN_S=$lt_LN_S
15618
15619 # A BSD-compatible nm program.
15620 NM=$lt_NM
15621
15622 # A symbol stripping program
15623 STRIP=$lt_STRIP
15624
15625 # Used to examine libraries when file_magic_cmd begins "file"
15626 MAGIC_CMD=$MAGIC_CMD
15627
15628 # Used on cygwin: DLL creation program.
15629 DLLTOOL="$DLLTOOL"
15630
15631 # Used on cygwin: object dumper.
15632 OBJDUMP="$OBJDUMP"
15633
15634 # Used on cygwin: assembler.
15635 AS="$AS"
15636
15637 # The name of the directory that contains temporary libtool files.
15638 objdir=$objdir
15639
15640 # How to create reloadable object files.
15641 reload_flag=$lt_reload_flag
15642 reload_cmds=$lt_reload_cmds
15643
15644 # How to pass a linker flag through the compiler.
15645 wl=$lt_lt_prog_compiler_wl_F77
15646
15647 # Object file suffix (normally "o").
15648 objext="$ac_objext"
15649
15650 # Old archive suffix (normally "a").
15651 libext="$libext"
15652
15653 # Shared library suffix (normally ".so").
15654 shrext_cmds='$shrext_cmds'
15655
15656 # Executable file suffix (normally "").
15657 exeext="$exeext"
15658
15659 # Additional compiler flags for building library objects.
15660 pic_flag=$lt_lt_prog_compiler_pic_F77
15661 pic_mode=$pic_mode
15662
15663 # What is the maximum length of a command?
15664 max_cmd_len=$lt_cv_sys_max_cmd_len
15665
15666 # Does compiler simultaneously support -c and -o options?
15667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15668
15669 # Must we lock files when doing compilation?
15670 need_locks=$lt_need_locks
15671
15672 # Do we need the lib prefix for modules?
15673 need_lib_prefix=$need_lib_prefix
15674
15675 # Do we need a version for libraries?
15676 need_version=$need_version
15677
15678 # Whether dlopen is supported.
15679 dlopen_support=$enable_dlopen
15680
15681 # Whether dlopen of programs is supported.
15682 dlopen_self=$enable_dlopen_self
15683
15684 # Whether dlopen of statically linked programs is supported.
15685 dlopen_self_static=$enable_dlopen_self_static
15686
15687 # Compiler flag to prevent dynamic linking.
15688 link_static_flag=$lt_lt_prog_compiler_static_F77
15689
15690 # Compiler flag to turn off builtin functions.
15691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15692
15693 # Compiler flag to allow reflexive dlopens.
15694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15695
15696 # Compiler flag to generate shared objects directly from archives.
15697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15698
15699 # Compiler flag to generate thread-safe objects.
15700 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15701
15702 # Library versioning type.
15703 version_type=$version_type
15704
15705 # Format of library name prefix.
15706 libname_spec=$lt_libname_spec
15707
15708 # List of archive names.  First name is the real one, the rest are links.
15709 # The last name is the one that the linker finds with -lNAME.
15710 library_names_spec=$lt_library_names_spec
15711
15712 # The coded name of the library, if different from the real name.
15713 soname_spec=$lt_soname_spec
15714
15715 # Commands used to build and install an old-style archive.
15716 RANLIB=$lt_RANLIB
15717 old_archive_cmds=$lt_old_archive_cmds_F77
15718 old_postinstall_cmds=$lt_old_postinstall_cmds
15719 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15720
15721 # Create an old-style archive from a shared archive.
15722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15723
15724 # Create a temporary old-style archive to link instead of a shared archive.
15725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15726
15727 # Commands used to build and install a shared archive.
15728 archive_cmds=$lt_archive_cmds_F77
15729 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15730 postinstall_cmds=$lt_postinstall_cmds
15731 postuninstall_cmds=$lt_postuninstall_cmds
15732
15733 # Commands used to build a loadable module (assumed same as above if empty)
15734 module_cmds=$lt_module_cmds_F77
15735 module_expsym_cmds=$lt_module_expsym_cmds_F77
15736
15737 # Commands to strip libraries.
15738 old_striplib=$lt_old_striplib
15739 striplib=$lt_striplib
15740
15741 # Dependencies to place before the objects being linked to create a
15742 # shared library.
15743 predep_objects=$lt_predep_objects_F77
15744
15745 # Dependencies to place after the objects being linked to create a
15746 # shared library.
15747 postdep_objects=$lt_postdep_objects_F77
15748
15749 # Dependencies to place before the objects being linked to create a
15750 # shared library.
15751 predeps=$lt_predeps_F77
15752
15753 # Dependencies to place after the objects being linked to create a
15754 # shared library.
15755 postdeps=$lt_postdeps_F77
15756
15757 # The library search path used internally by the compiler when linking
15758 # a shared library.
15759 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15760
15761 # Method to check whether dependent libraries are shared objects.
15762 deplibs_check_method=$lt_deplibs_check_method
15763
15764 # Command to use when deplibs_check_method == file_magic.
15765 file_magic_cmd=$lt_file_magic_cmd
15766
15767 # Flag that allows shared libraries with undefined symbols to be built.
15768 allow_undefined_flag=$lt_allow_undefined_flag_F77
15769
15770 # Flag that forces no undefined symbols.
15771 no_undefined_flag=$lt_no_undefined_flag_F77
15772
15773 # Commands used to finish a libtool library installation in a directory.
15774 finish_cmds=$lt_finish_cmds
15775
15776 # Same as above, but a single script fragment to be evaled but not shown.
15777 finish_eval=$lt_finish_eval
15778
15779 # Take the output of nm and produce a listing of raw symbols and C names.
15780 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15781
15782 # Transform the output of nm in a proper C declaration
15783 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15784
15785 # Transform the output of nm in a C name address pair
15786 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15787
15788 # This is the shared library runtime path variable.
15789 runpath_var=$runpath_var
15790
15791 # This is the shared library path variable.
15792 shlibpath_var=$shlibpath_var
15793
15794 # Is shlibpath searched before the hard-coded library search path?
15795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15796
15797 # How to hardcode a shared library path into an executable.
15798 hardcode_action=$hardcode_action_F77
15799
15800 # Whether we should hardcode library paths into libraries.
15801 hardcode_into_libs=$hardcode_into_libs
15802
15803 # Flag to hardcode \$libdir into a binary during linking.
15804 # This must work even if \$libdir does not exist.
15805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15806
15807 # If ld is used when linking, flag to hardcode \$libdir into
15808 # a binary during linking. This must work even if \$libdir does
15809 # not exist.
15810 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15811
15812 # Whether we need a single -rpath flag with a separated argument.
15813 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15814
15815 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15816 # resulting binary.
15817 hardcode_direct=$hardcode_direct_F77
15818
15819 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15820 # resulting binary.
15821 hardcode_minus_L=$hardcode_minus_L_F77
15822
15823 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15824 # the resulting binary.
15825 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15826
15827 # Set to yes if building a shared library automatically hardcodes DIR into the library
15828 # and all subsequent libraries and executables linked against it.
15829 hardcode_automatic=$hardcode_automatic_F77
15830
15831 # Variables whose values should be saved in libtool wrapper scripts and
15832 # restored at relink time.
15833 variables_saved_for_relink="$variables_saved_for_relink"
15834
15835 # Whether libtool must link a program against all its dependency libraries.
15836 link_all_deplibs=$link_all_deplibs_F77
15837
15838 # Compile-time system search path for libraries
15839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15840
15841 # Run-time system search path for libraries
15842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15843
15844 # Fix the shell variable \$srcfile for the compiler.
15845 fix_srcfile_path="$fix_srcfile_path_F77"
15846
15847 # Set to yes if exported symbols are required.
15848 always_export_symbols=$always_export_symbols_F77
15849
15850 # The commands to list exported symbols.
15851 export_symbols_cmds=$lt_export_symbols_cmds_F77
15852
15853 # The commands to extract the exported symbol list from a shared archive.
15854 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15855
15856 # Symbols that should not be listed in the preloaded symbols.
15857 exclude_expsyms=$lt_exclude_expsyms_F77
15858
15859 # Symbols that must always be exported.
15860 include_expsyms=$lt_include_expsyms_F77
15861
15862 # ### END LIBTOOL TAG CONFIG: $tagname
15863
15864 __EOF__
15865
15866
15867 else
15868   # If there is no Makefile yet, we rely on a make rule to execute
15869   # `config.status --recheck' to rerun these tests and create the
15870   # libtool script then.
15871   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15872   if test -f "$ltmain_in"; then
15873     test -f Makefile && make "$ltmain"
15874   fi
15875 fi
15876
15877
15878 ac_ext=c
15879 ac_cpp='$CPP $CPPFLAGS'
15880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15883
15884 CC="$lt_save_CC"
15885
15886         else
15887           tagname=""
15888         fi
15889         ;;
15890
15891       GCJ)
15892         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15893
15894
15895 # Source file extension for Java test sources.
15896 ac_ext=java
15897
15898 # Object file extension for compiled Java test sources.
15899 objext=o
15900 objext_GCJ=$objext
15901
15902 # Code to be used in simple compile tests
15903 lt_simple_compile_test_code="class foo {}\n"
15904
15905 # Code to be used in simple link tests
15906 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15907
15908 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15909
15910 # If no C compiler was specified, use CC.
15911 LTCC=${LTCC-"$CC"}
15912
15913 # If no C compiler flags were specified, use CFLAGS.
15914 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15915
15916 # Allow CC to be a program name with arguments.
15917 compiler=$CC
15918
15919
15920 # save warnings/boilerplate of simple test code
15921 ac_outfile=conftest.$ac_objext
15922 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15924 _lt_compiler_boilerplate=`cat conftest.err`
15925 $rm conftest*
15926
15927 ac_outfile=conftest.$ac_objext
15928 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15930 _lt_linker_boilerplate=`cat conftest.err`
15931 $rm conftest*
15932
15933
15934 # Allow CC to be a program name with arguments.
15935 lt_save_CC="$CC"
15936 CC=${GCJ-"gcj"}
15937 compiler=$CC
15938 compiler_GCJ=$CC
15939 for cc_temp in $compiler""; do
15940   case $cc_temp in
15941     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15942     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15943     \-*) ;;
15944     *) break;;
15945   esac
15946 done
15947 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15948
15949
15950 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15951 archive_cmds_need_lc_GCJ=no
15952
15953 old_archive_cmds_GCJ=$old_archive_cmds
15954
15955 ## CAVEAT EMPTOR:
15956 ## There is no encapsulation within the following macros, do not change
15957 ## the running order or otherwise move them around unless you know exactly
15958 ## what you are doing...
15959
15960 lt_prog_compiler_no_builtin_flag_GCJ=
15961
15962 if test "$GCC" = yes; then
15963   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15964
15965
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15967 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15968 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15969 then :
15970   printf %s "(cached) " >&6
15971 else $as_nop
15972   lt_cv_prog_compiler_rtti_exceptions=no
15973   ac_outfile=conftest.$ac_objext
15974    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15975    lt_compiler_flag="-fno-rtti -fno-exceptions"
15976    # Insert the option either (1) after the last *FLAGS variable, or
15977    # (2) before a word containing "conftest.", or (3) at the end.
15978    # Note that $ac_compile itself does not contain backslashes and begins
15979    # with a dollar sign (not a hyphen), so the echo should work correctly.
15980    # The option is referenced via a variable to avoid confusing sed.
15981    lt_compile=`echo "$ac_compile" | $SED \
15982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15984    -e 's:$: $lt_compiler_flag:'`
15985    (eval echo "\"\$as_me:15985: $lt_compile\"" >&5)
15986    (eval "$lt_compile" 2>conftest.err)
15987    ac_status=$?
15988    cat conftest.err >&5
15989    echo "$as_me:15989: \$? = $ac_status" >&5
15990    if (exit $ac_status) && test -s "$ac_outfile"; then
15991      # The compiler can only warn and ignore the option if not recognized
15992      # So say no if there are warnings other than the usual output.
15993      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15994      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15995      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15996        lt_cv_prog_compiler_rtti_exceptions=yes
15997      fi
15998    fi
15999    $rm conftest*
16000
16001 fi
16002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16003 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16004
16005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16006     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16007 else
16008     :
16009 fi
16010
16011 fi
16012
16013 lt_prog_compiler_wl_GCJ=
16014 lt_prog_compiler_pic_GCJ=
16015 lt_prog_compiler_static_GCJ=
16016
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16018 printf %s "checking for $compiler option to produce PIC... " >&6; }
16019
16020   if test "$GCC" = yes; then
16021     lt_prog_compiler_wl_GCJ='-Wl,'
16022     lt_prog_compiler_static_GCJ='-static'
16023
16024     case $host_os in
16025       aix*)
16026       # All AIX code is PIC.
16027       if test "$host_cpu" = ia64; then
16028         # AIX 5 now supports IA64 processor
16029         lt_prog_compiler_static_GCJ='-Bstatic'
16030       fi
16031       ;;
16032
16033     amigaos*)
16034       # FIXME: we need at least 68020 code to build shared libraries, but
16035       # adding the `-m68020' flag to GCC prevents building anything better,
16036       # like `-m68040'.
16037       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16038       ;;
16039
16040     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16041       # PIC is the default for these OSes.
16042       ;;
16043
16044     mingw* | pw32* | os2*)
16045       # This hack is so that the source file can tell whether it is being
16046       # built for inclusion in a dll (and should export symbols for example).
16047       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16048       ;;
16049
16050     darwin* | rhapsody*)
16051       # PIC is the default on this platform
16052       # Common symbols not allowed in MH_DYLIB files
16053       lt_prog_compiler_pic_GCJ='-fno-common'
16054       ;;
16055
16056     interix3*)
16057       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16058       # Instead, we relocate shared libraries at runtime.
16059       ;;
16060
16061     msdosdjgpp*)
16062       # Just because we use GCC doesn't mean we suddenly get shared libraries
16063       # on systems that don't support them.
16064       lt_prog_compiler_can_build_shared_GCJ=no
16065       enable_shared=no
16066       ;;
16067
16068     sysv4*MP*)
16069       if test -d /usr/nec; then
16070         lt_prog_compiler_pic_GCJ=-Kconform_pic
16071       fi
16072       ;;
16073
16074     hpux*)
16075       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16076       # not for PA HP-UX.
16077       case $host_cpu in
16078       hppa*64*|ia64*)
16079         # +Z the default
16080         ;;
16081       *)
16082         lt_prog_compiler_pic_GCJ='-fPIC'
16083         ;;
16084       esac
16085       ;;
16086
16087     *)
16088       lt_prog_compiler_pic_GCJ='-fPIC'
16089       ;;
16090     esac
16091   else
16092     # PORTME Check for flag to pass linker flags through the system compiler.
16093     case $host_os in
16094     aix*)
16095       lt_prog_compiler_wl_GCJ='-Wl,'
16096       if test "$host_cpu" = ia64; then
16097         # AIX 5 now supports IA64 processor
16098         lt_prog_compiler_static_GCJ='-Bstatic'
16099       else
16100         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16101       fi
16102       ;;
16103       darwin*)
16104         # PIC is the default on this platform
16105         # Common symbols not allowed in MH_DYLIB files
16106        case $cc_basename in
16107          xlc*)
16108          lt_prog_compiler_pic_GCJ='-qnocommon'
16109          lt_prog_compiler_wl_GCJ='-Wl,'
16110          ;;
16111        esac
16112        ;;
16113
16114     mingw* | pw32* | os2*)
16115       # This hack is so that the source file can tell whether it is being
16116       # built for inclusion in a dll (and should export symbols for example).
16117       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16118       ;;
16119
16120     hpux9* | hpux10* | hpux11*)
16121       lt_prog_compiler_wl_GCJ='-Wl,'
16122       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16123       # not for PA HP-UX.
16124       case $host_cpu in
16125       hppa*64*|ia64*)
16126         # +Z the default
16127         ;;
16128       *)
16129         lt_prog_compiler_pic_GCJ='+Z'
16130         ;;
16131       esac
16132       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16133       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16134       ;;
16135
16136     irix5* | irix6* | nonstopux*)
16137       lt_prog_compiler_wl_GCJ='-Wl,'
16138       # PIC (with -KPIC) is the default.
16139       lt_prog_compiler_static_GCJ='-non_shared'
16140       ;;
16141
16142     newsos6)
16143       lt_prog_compiler_pic_GCJ='-KPIC'
16144       lt_prog_compiler_static_GCJ='-Bstatic'
16145       ;;
16146
16147     linux*)
16148       case $cc_basename in
16149       icc* | ecc*)
16150         lt_prog_compiler_wl_GCJ='-Wl,'
16151         lt_prog_compiler_pic_GCJ='-KPIC'
16152         lt_prog_compiler_static_GCJ='-static'
16153         ;;
16154       pgcc* | pgf77* | pgf90* | pgf95*)
16155         # Portland Group compilers (*not* the Pentium gcc compiler,
16156         # which looks to be a dead project)
16157         lt_prog_compiler_wl_GCJ='-Wl,'
16158         lt_prog_compiler_pic_GCJ='-fpic'
16159         lt_prog_compiler_static_GCJ='-Bstatic'
16160         ;;
16161       ccc*)
16162         lt_prog_compiler_wl_GCJ='-Wl,'
16163         # All Alpha code is PIC.
16164         lt_prog_compiler_static_GCJ='-non_shared'
16165         ;;
16166       esac
16167       ;;
16168
16169     osf3* | osf4* | osf5*)
16170       lt_prog_compiler_wl_GCJ='-Wl,'
16171       # All OSF/1 code is PIC.
16172       lt_prog_compiler_static_GCJ='-non_shared'
16173       ;;
16174
16175     solaris*)
16176       lt_prog_compiler_pic_GCJ='-KPIC'
16177       lt_prog_compiler_static_GCJ='-Bstatic'
16178       case $cc_basename in
16179       f77* | f90* | f95*)
16180         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16181       *)
16182         lt_prog_compiler_wl_GCJ='-Wl,';;
16183       esac
16184       ;;
16185
16186     sunos4*)
16187       lt_prog_compiler_wl_GCJ='-Qoption ld '
16188       lt_prog_compiler_pic_GCJ='-PIC'
16189       lt_prog_compiler_static_GCJ='-Bstatic'
16190       ;;
16191
16192     sysv4 | sysv4.2uw2* | sysv4.3*)
16193       lt_prog_compiler_wl_GCJ='-Wl,'
16194       lt_prog_compiler_pic_GCJ='-KPIC'
16195       lt_prog_compiler_static_GCJ='-Bstatic'
16196       ;;
16197
16198     sysv4*MP*)
16199       if test -d /usr/nec ;then
16200         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16201         lt_prog_compiler_static_GCJ='-Bstatic'
16202       fi
16203       ;;
16204
16205     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16206       lt_prog_compiler_wl_GCJ='-Wl,'
16207       lt_prog_compiler_pic_GCJ='-KPIC'
16208       lt_prog_compiler_static_GCJ='-Bstatic'
16209       ;;
16210
16211     unicos*)
16212       lt_prog_compiler_wl_GCJ='-Wl,'
16213       lt_prog_compiler_can_build_shared_GCJ=no
16214       ;;
16215
16216     uts4*)
16217       lt_prog_compiler_pic_GCJ='-pic'
16218       lt_prog_compiler_static_GCJ='-Bstatic'
16219       ;;
16220
16221     *)
16222       lt_prog_compiler_can_build_shared_GCJ=no
16223       ;;
16224     esac
16225   fi
16226
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16228 printf "%s\n" "$lt_prog_compiler_pic_GCJ" >&6; }
16229
16230 #
16231 # Check to make sure the PIC flag actually works.
16232 #
16233 if test -n "$lt_prog_compiler_pic_GCJ"; then
16234
16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16236 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16237 if test ${lt_prog_compiler_pic_works_GCJ+y}
16238 then :
16239   printf %s "(cached) " >&6
16240 else $as_nop
16241   lt_prog_compiler_pic_works_GCJ=no
16242   ac_outfile=conftest.$ac_objext
16243    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16244    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16245    # Insert the option either (1) after the last *FLAGS variable, or
16246    # (2) before a word containing "conftest.", or (3) at the end.
16247    # Note that $ac_compile itself does not contain backslashes and begins
16248    # with a dollar sign (not a hyphen), so the echo should work correctly.
16249    # The option is referenced via a variable to avoid confusing sed.
16250    lt_compile=`echo "$ac_compile" | $SED \
16251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16253    -e 's:$: $lt_compiler_flag:'`
16254    (eval echo "\"\$as_me:16254: $lt_compile\"" >&5)
16255    (eval "$lt_compile" 2>conftest.err)
16256    ac_status=$?
16257    cat conftest.err >&5
16258    echo "$as_me:16258: \$? = $ac_status" >&5
16259    if (exit $ac_status) && test -s "$ac_outfile"; then
16260      # The compiler can only warn and ignore the option if not recognized
16261      # So say no if there are warnings other than the usual output.
16262      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16263      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16264      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16265        lt_prog_compiler_pic_works_GCJ=yes
16266      fi
16267    fi
16268    $rm conftest*
16269
16270 fi
16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16272 printf "%s\n" "$lt_prog_compiler_pic_works_GCJ" >&6; }
16273
16274 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16275     case $lt_prog_compiler_pic_GCJ in
16276      "" | " "*) ;;
16277      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16278      esac
16279 else
16280     lt_prog_compiler_pic_GCJ=
16281      lt_prog_compiler_can_build_shared_GCJ=no
16282 fi
16283
16284 fi
16285 case $host_os in
16286   # For platforms which do not support PIC, -DPIC is meaningless:
16287   *djgpp*)
16288     lt_prog_compiler_pic_GCJ=
16289     ;;
16290   *)
16291     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16292     ;;
16293 esac
16294
16295 #
16296 # Check to make sure the static flag actually works.
16297 #
16298 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16300 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16301 if test ${lt_prog_compiler_static_works_GCJ+y}
16302 then :
16303   printf %s "(cached) " >&6
16304 else $as_nop
16305   lt_prog_compiler_static_works_GCJ=no
16306    save_LDFLAGS="$LDFLAGS"
16307    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16308    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16309    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16310      # The linker can only warn and ignore the option if not recognized
16311      # So say no if there are warnings
16312      if test -s conftest.err; then
16313        # Append any errors to the config.log.
16314        cat conftest.err 1>&5
16315        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16316        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16317        if diff conftest.exp conftest.er2 >/dev/null; then
16318          lt_prog_compiler_static_works_GCJ=yes
16319        fi
16320      else
16321        lt_prog_compiler_static_works_GCJ=yes
16322      fi
16323    fi
16324    $rm conftest*
16325    LDFLAGS="$save_LDFLAGS"
16326
16327 fi
16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16329 printf "%s\n" "$lt_prog_compiler_static_works_GCJ" >&6; }
16330
16331 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16332     :
16333 else
16334     lt_prog_compiler_static_GCJ=
16335 fi
16336
16337
16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16339 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16340 if test ${lt_cv_prog_compiler_c_o_GCJ+y}
16341 then :
16342   printf %s "(cached) " >&6
16343 else $as_nop
16344   lt_cv_prog_compiler_c_o_GCJ=no
16345    $rm -r conftest 2>/dev/null
16346    mkdir conftest
16347    cd conftest
16348    mkdir out
16349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16350
16351    lt_compiler_flag="-o out/conftest2.$ac_objext"
16352    # Insert the option either (1) after the last *FLAGS variable, or
16353    # (2) before a word containing "conftest.", or (3) at the end.
16354    # Note that $ac_compile itself does not contain backslashes and begins
16355    # with a dollar sign (not a hyphen), so the echo should work correctly.
16356    lt_compile=`echo "$ac_compile" | $SED \
16357    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16359    -e 's:$: $lt_compiler_flag:'`
16360    (eval echo "\"\$as_me:16360: $lt_compile\"" >&5)
16361    (eval "$lt_compile" 2>out/conftest.err)
16362    ac_status=$?
16363    cat out/conftest.err >&5
16364    echo "$as_me:16364: \$? = $ac_status" >&5
16365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16366    then
16367      # The compiler can only warn and ignore the option if not recognized
16368      # So say no if there are warnings
16369      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16370      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16371      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16372        lt_cv_prog_compiler_c_o_GCJ=yes
16373      fi
16374    fi
16375    chmod u+w . 2>&5
16376    $rm conftest*
16377    # SGI C++ compiler will create directory out/ii_files/ for
16378    # template instantiation
16379    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16380    $rm out/* && rmdir out
16381    cd ..
16382    rmdir conftest
16383    $rm conftest*
16384
16385 fi
16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16387 printf "%s\n" "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16388
16389
16390 hard_links="nottested"
16391 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16392   # do not overwrite the value of need_locks provided by the user
16393   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16394 printf %s "checking if we can lock with hard links... " >&6; }
16395   hard_links=yes
16396   $rm conftest*
16397   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16398   touch conftest.a
16399   ln conftest.a conftest.b 2>&5 || hard_links=no
16400   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16402 printf "%s\n" "$hard_links" >&6; }
16403   if test "$hard_links" = no; then
16404     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16405 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16406     need_locks=warn
16407   fi
16408 else
16409   need_locks=no
16410 fi
16411
16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16413 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16414
16415   runpath_var=
16416   allow_undefined_flag_GCJ=
16417   enable_shared_with_static_runtimes_GCJ=no
16418   archive_cmds_GCJ=
16419   archive_expsym_cmds_GCJ=
16420   old_archive_From_new_cmds_GCJ=
16421   old_archive_from_expsyms_cmds_GCJ=
16422   export_dynamic_flag_spec_GCJ=
16423   whole_archive_flag_spec_GCJ=
16424   thread_safe_flag_spec_GCJ=
16425   hardcode_libdir_flag_spec_GCJ=
16426   hardcode_libdir_flag_spec_ld_GCJ=
16427   hardcode_libdir_separator_GCJ=
16428   hardcode_direct_GCJ=no
16429   hardcode_minus_L_GCJ=no
16430   hardcode_shlibpath_var_GCJ=unsupported
16431   link_all_deplibs_GCJ=unknown
16432   hardcode_automatic_GCJ=no
16433   module_cmds_GCJ=
16434   module_expsym_cmds_GCJ=
16435   always_export_symbols_GCJ=no
16436   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16437   # include_expsyms should be a list of space-separated symbols to be *always*
16438   # included in the symbol list
16439   include_expsyms_GCJ=
16440   # exclude_expsyms can be an extended regexp of symbols to exclude
16441   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16442   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16443   # as well as any symbol that contains `d'.
16444   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16445   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16446   # platforms (ab)use it in PIC code, but their linkers get confused if
16447   # the symbol is explicitly referenced.  Since portable code cannot
16448   # rely on this symbol name, it's probably fine to never include it in
16449   # preloaded symbol tables.
16450   extract_expsyms_cmds=
16451   # Just being paranoid about ensuring that cc_basename is set.
16452   for cc_temp in $compiler""; do
16453   case $cc_temp in
16454     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16455     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16456     \-*) ;;
16457     *) break;;
16458   esac
16459 done
16460 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16461
16462   case $host_os in
16463   cygwin* | mingw* | pw32*)
16464     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16465     # When not using gcc, we currently assume that we are using
16466     # Microsoft Visual C++.
16467     if test "$GCC" != yes; then
16468       with_gnu_ld=no
16469     fi
16470     ;;
16471   interix*)
16472     # we just hope/assume this is gcc and not c89 (= MSVC++)
16473     with_gnu_ld=yes
16474     ;;
16475   openbsd*)
16476     with_gnu_ld=no
16477     ;;
16478   esac
16479
16480   ld_shlibs_GCJ=yes
16481   if test "$with_gnu_ld" = yes; then
16482     # If archive_cmds runs LD, not CC, wlarc should be empty
16483     wlarc='${wl}'
16484
16485     # Set some defaults for GNU ld with shared library support. These
16486     # are reset later if shared libraries are not supported. Putting them
16487     # here allows them to be overridden if necessary.
16488     runpath_var=LD_RUN_PATH
16489     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16490     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16491     # ancient GNU ld didn't support --whole-archive et. al.
16492     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16493         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16494       else
16495         whole_archive_flag_spec_GCJ=
16496     fi
16497     supports_anon_versioning=no
16498     case `$LD -v 2>/dev/null` in
16499       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16500       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16501       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16502       *\ 2.11.*) ;; # other 2.11 versions
16503       *) supports_anon_versioning=yes ;;
16504     esac
16505
16506     # See if GNU ld supports shared libraries.
16507     case $host_os in
16508     aix3* | aix4* | aix5*)
16509       # On AIX/PPC, the GNU linker is very broken
16510       if test "$host_cpu" != ia64; then
16511         ld_shlibs_GCJ=no
16512         cat <<EOF 1>&2
16513
16514 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16515 *** to be unable to reliably create shared libraries on AIX.
16516 *** Therefore, libtool is disabling shared libraries support.  If you
16517 *** really care for shared libraries, you may want to modify your PATH
16518 *** so that a non-GNU linker is found, and then restart.
16519
16520 EOF
16521       fi
16522       ;;
16523
16524     amigaos*)
16525       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)'
16526       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16527       hardcode_minus_L_GCJ=yes
16528
16529       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16530       # that the semantics of dynamic libraries on AmigaOS, at least up
16531       # to version 4, is to share data among multiple programs linked
16532       # with the same dynamic library.  Since this doesn't match the
16533       # behavior of shared libraries on other platforms, we can't use
16534       # them.
16535       ld_shlibs_GCJ=no
16536       ;;
16537
16538     beos*)
16539       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16540         allow_undefined_flag_GCJ=unsupported
16541         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16542         # support --undefined.  This deserves some investigation.  FIXME
16543         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16544       else
16545         ld_shlibs_GCJ=no
16546       fi
16547       ;;
16548
16549     cygwin* | mingw* | pw32*)
16550       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16551       # as there is no search path for DLLs.
16552       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553       allow_undefined_flag_GCJ=unsupported
16554       always_export_symbols_GCJ=no
16555       enable_shared_with_static_runtimes_GCJ=yes
16556       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16557
16558       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16559         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16560         # If the export-symbols file already is a .def file (1st line
16561         # is EXPORTS), use it as is; otherwise, prepend...
16562         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16563           cp $export_symbols $output_objdir/$soname.def;
16564         else
16565           echo EXPORTS > $output_objdir/$soname.def;
16566           cat $export_symbols >> $output_objdir/$soname.def;
16567         fi~
16568         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16569       else
16570         ld_shlibs_GCJ=no
16571       fi
16572       ;;
16573
16574     interix3*)
16575       hardcode_direct_GCJ=no
16576       hardcode_shlibpath_var_GCJ=no
16577       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16578       export_dynamic_flag_spec_GCJ='${wl}-E'
16579       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16580       # Instead, shared libraries are loaded at an image base (0x10000000 by
16581       # default) and relocated if they conflict, which is a slow very memory
16582       # consuming and fragmenting process.  To avoid this, we pick a random,
16583       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16584       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16585       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'
16586       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'
16587       ;;
16588
16589     linux*)
16590       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16591         tmp_addflag=
16592         case $cc_basename,$host_cpu in
16593         pgcc*)                          # Portland Group C compiler
16594           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'
16595           tmp_addflag=' $pic_flag'
16596           ;;
16597         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16598           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'
16599           tmp_addflag=' $pic_flag -Mnomain' ;;
16600         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16601           tmp_addflag=' -i_dynamic' ;;
16602         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16603           tmp_addflag=' -i_dynamic -nofor_main' ;;
16604         ifc* | ifort*)                  # Intel Fortran compiler
16605           tmp_addflag=' -nofor_main' ;;
16606         esac
16607         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16608
16609         if test $supports_anon_versioning = yes; then
16610           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16611   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16612   $echo "local: *; };" >> $output_objdir/$libname.ver~
16613           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16614         fi
16615       else
16616         ld_shlibs_GCJ=no
16617       fi
16618       ;;
16619
16620     netbsd*)
16621       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16622         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16623         wlarc=
16624       else
16625         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16626         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16627       fi
16628       ;;
16629
16630     solaris*)
16631       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16632         ld_shlibs_GCJ=no
16633         cat <<EOF 1>&2
16634
16635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16636 *** create shared libraries on Solaris systems.  Therefore, libtool
16637 *** is disabling shared libraries support.  We urge you to upgrade GNU
16638 *** binutils to release 2.9.1 or newer.  Another option is to modify
16639 *** your PATH or compiler configuration so that the native linker is
16640 *** used, and then restart.
16641
16642 EOF
16643       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16644         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16645         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16646       else
16647         ld_shlibs_GCJ=no
16648       fi
16649       ;;
16650
16651     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16652       case `$LD -v 2>&1` in
16653         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16654         ld_shlibs_GCJ=no
16655         cat <<_LT_EOF 1>&2
16656
16657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16658 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16659 *** is disabling shared libraries support.  We urge you to upgrade GNU
16660 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16661 *** your PATH or compiler configuration so that the native linker is
16662 *** used, and then restart.
16663
16664 _LT_EOF
16665         ;;
16666         *)
16667           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16668             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16669             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16670             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16671           else
16672             ld_shlibs_GCJ=no
16673           fi
16674         ;;
16675       esac
16676       ;;
16677
16678     sunos4*)
16679       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16680       wlarc=
16681       hardcode_direct_GCJ=yes
16682       hardcode_shlibpath_var_GCJ=no
16683       ;;
16684
16685     *)
16686       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16687         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16688         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16689       else
16690         ld_shlibs_GCJ=no
16691       fi
16692       ;;
16693     esac
16694
16695     if test "$ld_shlibs_GCJ" = no; then
16696       runpath_var=
16697       hardcode_libdir_flag_spec_GCJ=
16698       export_dynamic_flag_spec_GCJ=
16699       whole_archive_flag_spec_GCJ=
16700     fi
16701   else
16702     # PORTME fill in a description of your system's linker (not GNU ld)
16703     case $host_os in
16704     aix3*)
16705       allow_undefined_flag_GCJ=unsupported
16706       always_export_symbols_GCJ=yes
16707       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'
16708       # Note: this linker hardcodes the directories in LIBPATH if there
16709       # are no directories specified by -L.
16710       hardcode_minus_L_GCJ=yes
16711       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16712         # Neither direct hardcoding nor static linking is supported with a
16713         # broken collect2.
16714         hardcode_direct_GCJ=unsupported
16715       fi
16716       ;;
16717
16718     aix4* | aix5*)
16719       if test "$host_cpu" = ia64; then
16720         # On IA64, the linker does run time linking by default, so we don't
16721         # have to do anything special.
16722         aix_use_runtimelinking=no
16723         exp_sym_flag='-Bexport'
16724         no_entry_flag=""
16725       else
16726         # If we're using GNU nm, then we don't want the "-C" option.
16727         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16728         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16729           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'
16730         else
16731           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'
16732         fi
16733         aix_use_runtimelinking=no
16734
16735         # Test if we are trying to use run time linking or normal
16736         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16737         # need to do runtime linking.
16738         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16739           for ld_flag in $LDFLAGS; do
16740           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16741             aix_use_runtimelinking=yes
16742             break
16743           fi
16744           done
16745           ;;
16746         esac
16747
16748         exp_sym_flag='-bexport'
16749         no_entry_flag='-bnoentry'
16750       fi
16751
16752       # When large executables or shared objects are built, AIX ld can
16753       # have problems creating the table of contents.  If linking a library
16754       # or program results in "error TOC overflow" add -mminimal-toc to
16755       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16756       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16757
16758       archive_cmds_GCJ=''
16759       hardcode_direct_GCJ=yes
16760       hardcode_libdir_separator_GCJ=':'
16761       link_all_deplibs_GCJ=yes
16762
16763       if test "$GCC" = yes; then
16764         case $host_os in aix4.[012]|aix4.[012].*)
16765         # We only want to do this on AIX 4.2 and lower, the check
16766         # below for broken collect2 doesn't work under 4.3+
16767           collect2name=`${CC} -print-prog-name=collect2`
16768           if test -f "$collect2name" && \
16769            strings "$collect2name" | grep resolve_lib_name >/dev/null
16770           then
16771           # We have reworked collect2
16772           hardcode_direct_GCJ=yes
16773           else
16774           # We have old collect2
16775           hardcode_direct_GCJ=unsupported
16776           # It fails to find uninstalled libraries when the uninstalled
16777           # path is not listed in the libpath.  Setting hardcode_minus_L
16778           # to unsupported forces relinking
16779           hardcode_minus_L_GCJ=yes
16780           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16781           hardcode_libdir_separator_GCJ=
16782           fi
16783           ;;
16784         esac
16785         shared_flag='-shared'
16786         if test "$aix_use_runtimelinking" = yes; then
16787           shared_flag="$shared_flag "'${wl}-G'
16788         fi
16789       else
16790         # not using gcc
16791         if test "$host_cpu" = ia64; then
16792         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16793         # chokes on -Wl,-G. The following line is correct:
16794           shared_flag='-G'
16795         else
16796           if test "$aix_use_runtimelinking" = yes; then
16797             shared_flag='${wl}-G'
16798           else
16799             shared_flag='${wl}-bM:SRE'
16800           fi
16801         fi
16802       fi
16803
16804       # It seems that -bexpall does not export symbols beginning with
16805       # underscore (_), so it is better to generate a list of symbols to export.
16806       always_export_symbols_GCJ=yes
16807       if test "$aix_use_runtimelinking" = yes; then
16808         # Warning - without using the other runtime loading flags (-brtl),
16809         # -berok will link without error, but may produce a broken library.
16810         allow_undefined_flag_GCJ='-berok'
16811        # Determine the default libpath from the value encoded in an empty executable.
16812        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813 /* end confdefs.h.  */
16814
16815 int
16816 main (void)
16817 {
16818
16819   ;
16820   return 0;
16821 }
16822 _ACEOF
16823 if ac_fn_c_try_link "$LINENO"
16824 then :
16825
16826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16827 }'`
16828 # Check for a 64-bit object if we didn't find anything.
16829 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16830 }'`; fi
16831 fi
16832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16833     conftest$ac_exeext conftest.$ac_ext
16834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16835
16836        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16837         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"
16838        else
16839         if test "$host_cpu" = ia64; then
16840           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16841           allow_undefined_flag_GCJ="-z nodefs"
16842           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"
16843         else
16844          # Determine the default libpath from the value encoded in an empty executable.
16845          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h.  */
16847
16848 int
16849 main (void)
16850 {
16851
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 if ac_fn_c_try_link "$LINENO"
16857 then :
16858
16859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16860 }'`
16861 # Check for a 64-bit object if we didn't find anything.
16862 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16863 }'`; fi
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16866     conftest$ac_exeext conftest.$ac_ext
16867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16868
16869          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16870           # Warning - without using the other run time loading flags,
16871           # -berok will link without error, but may produce a broken library.
16872           no_undefined_flag_GCJ=' ${wl}-bernotok'
16873           allow_undefined_flag_GCJ=' ${wl}-berok'
16874           # Exported symbols can be pulled into shared objects from archives
16875           whole_archive_flag_spec_GCJ='$convenience'
16876           archive_cmds_need_lc_GCJ=yes
16877           # This is similar to how AIX traditionally builds its shared libraries.
16878           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'
16879         fi
16880       fi
16881       ;;
16882
16883     amigaos*)
16884       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)'
16885       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16886       hardcode_minus_L_GCJ=yes
16887       # see comment about different semantics on the GNU ld section
16888       ld_shlibs_GCJ=no
16889       ;;
16890
16891     bsdi[45]*)
16892       export_dynamic_flag_spec_GCJ=-rdynamic
16893       ;;
16894
16895     cygwin* | mingw* | pw32*)
16896       # When not using gcc, we currently assume that we are using
16897       # Microsoft Visual C++.
16898       # hardcode_libdir_flag_spec is actually meaningless, as there is
16899       # no search path for DLLs.
16900       hardcode_libdir_flag_spec_GCJ=' '
16901       allow_undefined_flag_GCJ=unsupported
16902       # Tell ltmain to make .lib files, not .a files.
16903       libext=lib
16904       # Tell ltmain to make .dll files, not .so files.
16905       shrext_cmds=".dll"
16906       # FIXME: Setting linknames here is a bad hack.
16907       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16908       # The linker will automatically build a .lib file if we build a DLL.
16909       old_archive_From_new_cmds_GCJ='true'
16910       # FIXME: Should let the user specify the lib program.
16911       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16912       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16913       enable_shared_with_static_runtimes_GCJ=yes
16914       ;;
16915
16916     darwin* | rhapsody*)
16917       case $host_os in
16918         rhapsody* | darwin1.[012])
16919          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16920          ;;
16921        *) # Darwin 1.3 on
16922          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16923            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16924          else
16925            case ${MACOSX_DEPLOYMENT_TARGET} in
16926              10.[012])
16927                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16928                ;;
16929              10.*)
16930                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16931                ;;
16932            esac
16933          fi
16934          ;;
16935       esac
16936       archive_cmds_need_lc_GCJ=no
16937       hardcode_direct_GCJ=no
16938       hardcode_automatic_GCJ=yes
16939       hardcode_shlibpath_var_GCJ=unsupported
16940       whole_archive_flag_spec_GCJ=''
16941       link_all_deplibs_GCJ=yes
16942     if test "$GCC" = yes ; then
16943         output_verbose_link_cmd='echo'
16944         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16945       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16946       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16947       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16948       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}'
16949     else
16950       case $cc_basename in
16951         xlc*)
16952          output_verbose_link_cmd='echo'
16953          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16954          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16955           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16956          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16957           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}'
16958           ;;
16959        *)
16960          ld_shlibs_GCJ=no
16961           ;;
16962       esac
16963     fi
16964       ;;
16965
16966     dgux*)
16967       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16968       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16969       hardcode_shlibpath_var_GCJ=no
16970       ;;
16971
16972     freebsd1.*)
16973       ld_shlibs_GCJ=no
16974       ;;
16975
16976     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16977     # support.  Future versions do this automatically, but an explicit c++rt0.o
16978     # does not break anything, and helps significantly (at the cost of a little
16979     # extra space).
16980     freebsd2.2*)
16981       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16982       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16983       hardcode_direct_GCJ=yes
16984       hardcode_shlibpath_var_GCJ=no
16985       ;;
16986
16987     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16988     freebsd2.*)
16989       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16990       hardcode_direct_GCJ=yes
16991       hardcode_minus_L_GCJ=yes
16992       hardcode_shlibpath_var_GCJ=no
16993       ;;
16994
16995     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16996     freebsd* | kfreebsd*-gnu | dragonfly*)
16997       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16998       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999       hardcode_direct_GCJ=yes
17000       hardcode_shlibpath_var_GCJ=no
17001       ;;
17002
17003     hpux9*)
17004       if test "$GCC" = yes; then
17005         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'
17006       else
17007         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'
17008       fi
17009       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17010       hardcode_libdir_separator_GCJ=:
17011       hardcode_direct_GCJ=yes
17012
17013       # hardcode_minus_L: Not really in the search PATH,
17014       # but as the default location of the library.
17015       hardcode_minus_L_GCJ=yes
17016       export_dynamic_flag_spec_GCJ='${wl}-E'
17017       ;;
17018
17019     hpux10*)
17020       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17021         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17022       else
17023         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17024       fi
17025       if test "$with_gnu_ld" = no; then
17026         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17027         hardcode_libdir_separator_GCJ=:
17028
17029         hardcode_direct_GCJ=yes
17030         export_dynamic_flag_spec_GCJ='${wl}-E'
17031
17032         # hardcode_minus_L: Not really in the search PATH,
17033         # but as the default location of the library.
17034         hardcode_minus_L_GCJ=yes
17035       fi
17036       ;;
17037
17038     hpux11*)
17039       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17040         case $host_cpu in
17041         hppa*64*)
17042           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043           ;;
17044         ia64*)
17045           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17046           ;;
17047         *)
17048           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17049           ;;
17050         esac
17051       else
17052         case $host_cpu in
17053         hppa*64*)
17054           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17055           ;;
17056         ia64*)
17057           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17058           ;;
17059         *)
17060           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17061           ;;
17062         esac
17063       fi
17064       if test "$with_gnu_ld" = no; then
17065         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17066         hardcode_libdir_separator_GCJ=:
17067
17068         case $host_cpu in
17069         hppa*64*|ia64*)
17070           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17071           hardcode_direct_GCJ=no
17072           hardcode_shlibpath_var_GCJ=no
17073           ;;
17074         *)
17075           hardcode_direct_GCJ=yes
17076           export_dynamic_flag_spec_GCJ='${wl}-E'
17077
17078           # hardcode_minus_L: Not really in the search PATH,
17079           # but as the default location of the library.
17080           hardcode_minus_L_GCJ=yes
17081           ;;
17082         esac
17083       fi
17084       ;;
17085
17086     irix5* | irix6* | nonstopux*)
17087       if test "$GCC" = yes; then
17088         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'
17089       else
17090         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'
17091         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17092       fi
17093       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17094       hardcode_libdir_separator_GCJ=:
17095       link_all_deplibs_GCJ=yes
17096       ;;
17097
17098     netbsd*)
17099       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17100         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17101       else
17102         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17103       fi
17104       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17105       hardcode_direct_GCJ=yes
17106       hardcode_shlibpath_var_GCJ=no
17107       ;;
17108
17109     newsos6)
17110       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17111       hardcode_direct_GCJ=yes
17112       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17113       hardcode_libdir_separator_GCJ=:
17114       hardcode_shlibpath_var_GCJ=no
17115       ;;
17116
17117     openbsd*)
17118       hardcode_direct_GCJ=yes
17119       hardcode_shlibpath_var_GCJ=no
17120       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17121         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17122         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17123         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17124         export_dynamic_flag_spec_GCJ='${wl}-E'
17125       else
17126        case $host_os in
17127          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17128            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17130            ;;
17131          *)
17132            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17133            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17134            ;;
17135        esac
17136       fi
17137       ;;
17138
17139     os2*)
17140       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141       hardcode_minus_L_GCJ=yes
17142       allow_undefined_flag_GCJ=unsupported
17143       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'
17144       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17145       ;;
17146
17147     osf3*)
17148       if test "$GCC" = yes; then
17149         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17150         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'
17151       else
17152         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17153         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'
17154       fi
17155       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17156       hardcode_libdir_separator_GCJ=:
17157       ;;
17158
17159     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17160       if test "$GCC" = yes; then
17161         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17162         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'
17163         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17164       else
17165         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17166         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'
17167         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~
17168         $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'
17169
17170         # Both c and cxx compiler support -rpath directly
17171         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17172       fi
17173       hardcode_libdir_separator_GCJ=:
17174       ;;
17175
17176     solaris*)
17177       no_undefined_flag_GCJ=' -z text'
17178       if test "$GCC" = yes; then
17179         wlarc='${wl}'
17180         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17181         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17182           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17183       else
17184         wlarc=''
17185         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17186         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17187         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17188       fi
17189       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17190       hardcode_shlibpath_var_GCJ=no
17191       case $host_os in
17192       solaris2.[0-5] | solaris2.[0-5].*) ;;
17193       *)
17194         # The compiler driver will combine linker options so we
17195         # cannot just pass the convience library names through
17196         # without $wl, iff we do not link with $LD.
17197         # Luckily, gcc supports the same syntax we need for Sun Studio.
17198         # Supported since Solaris 2.6 (maybe 2.5.1?)
17199         case $wlarc in
17200         '')
17201           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17202         *)
17203           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17204         esac ;;
17205       esac
17206       link_all_deplibs_GCJ=yes
17207       ;;
17208
17209     sunos4*)
17210       if test "x$host_vendor" = xsequent; then
17211         # Use $CC to link under sequent, because it throws in some extra .o
17212         # files that make .init and .fini sections work.
17213         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17214       else
17215         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17216       fi
17217       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17218       hardcode_direct_GCJ=yes
17219       hardcode_minus_L_GCJ=yes
17220       hardcode_shlibpath_var_GCJ=no
17221       ;;
17222
17223     sysv4)
17224       case $host_vendor in
17225         sni)
17226           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17227           hardcode_direct_GCJ=yes # is this really true???
17228         ;;
17229         siemens)
17230           ## LD is ld it makes a PLAMLIB
17231           ## CC just makes a GrossModule.
17232           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17233           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17234           hardcode_direct_GCJ=no
17235         ;;
17236         motorola)
17237           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17238           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17239         ;;
17240       esac
17241       runpath_var='LD_RUN_PATH'
17242       hardcode_shlibpath_var_GCJ=no
17243       ;;
17244
17245     sysv4.3*)
17246       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17247       hardcode_shlibpath_var_GCJ=no
17248       export_dynamic_flag_spec_GCJ='-Bexport'
17249       ;;
17250
17251     sysv4*MP*)
17252       if test -d /usr/nec; then
17253         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254         hardcode_shlibpath_var_GCJ=no
17255         runpath_var=LD_RUN_PATH
17256         hardcode_runpath_var=yes
17257         ld_shlibs_GCJ=yes
17258       fi
17259       ;;
17260
17261     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17262       no_undefined_flag_GCJ='${wl}-z,text'
17263       archive_cmds_need_lc_GCJ=no
17264       hardcode_shlibpath_var_GCJ=no
17265       runpath_var='LD_RUN_PATH'
17266
17267       if test "$GCC" = yes; then
17268         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17269         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17270       else
17271         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17272         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17273       fi
17274       ;;
17275
17276     sysv5* | sco3.2v5* | sco5v6*)
17277       # Note: We can NOT use -z defs as we might desire, because we do not
17278       # link with -lc, and that would cause any symbols used from libc to
17279       # always be unresolved, which means just about no library would
17280       # ever link correctly.  If we're not using GNU ld we use -z text
17281       # though, which does catch some bad symbols but isn't as heavy-handed
17282       # as -z defs.
17283       no_undefined_flag_GCJ='${wl}-z,text'
17284       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17285       archive_cmds_need_lc_GCJ=no
17286       hardcode_shlibpath_var_GCJ=no
17287       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17288       hardcode_libdir_separator_GCJ=':'
17289       link_all_deplibs_GCJ=yes
17290       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17291       runpath_var='LD_RUN_PATH'
17292
17293       if test "$GCC" = yes; then
17294         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17296       else
17297         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17298         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17299       fi
17300       ;;
17301
17302     uts4*)
17303       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17305       hardcode_shlibpath_var_GCJ=no
17306       ;;
17307
17308     *)
17309       ld_shlibs_GCJ=no
17310       ;;
17311     esac
17312   fi
17313
17314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17315 printf "%s\n" "$ld_shlibs_GCJ" >&6; }
17316 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17317
17318 #
17319 # Do we need to explicitly link libc?
17320 #
17321 case "x$archive_cmds_need_lc_GCJ" in
17322 x|xyes)
17323   # Assume -lc should be added
17324   archive_cmds_need_lc_GCJ=yes
17325
17326   if test "$enable_shared" = yes && test "$GCC" = yes; then
17327     case $archive_cmds_GCJ in
17328     *'~'*)
17329       # FIXME: we may have to deal with multi-command sequences.
17330       ;;
17331     '$CC '*)
17332       # Test whether the compiler implicitly links with -lc since on some
17333       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17334       # to ld, don't add -lc before -lgcc.
17335       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17336 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17337       $rm conftest*
17338       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17339
17340       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17341   (eval $ac_compile) 2>&5
17342   ac_status=$?
17343   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17344   test $ac_status = 0; } 2>conftest.err; then
17345         soname=conftest
17346         lib=conftest
17347         libobjs=conftest.$ac_objext
17348         deplibs=
17349         wl=$lt_prog_compiler_wl_GCJ
17350         pic_flag=$lt_prog_compiler_pic_GCJ
17351         compiler_flags=-v
17352         linker_flags=-v
17353         verstring=
17354         output_objdir=.
17355         libname=conftest
17356         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17357         allow_undefined_flag_GCJ=
17358         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17359   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17360   ac_status=$?
17361   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362   test $ac_status = 0; }
17363         then
17364           archive_cmds_need_lc_GCJ=no
17365         else
17366           archive_cmds_need_lc_GCJ=yes
17367         fi
17368         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17369       else
17370         cat conftest.err 1>&5
17371       fi
17372       $rm conftest*
17373       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17374 printf "%s\n" "$archive_cmds_need_lc_GCJ" >&6; }
17375       ;;
17376     esac
17377   fi
17378   ;;
17379 esac
17380
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17382 printf %s "checking dynamic linker characteristics... " >&6; }
17383 library_names_spec=
17384 libname_spec='lib$name'
17385 soname_spec=
17386 shrext_cmds=".so"
17387 postinstall_cmds=
17388 postuninstall_cmds=
17389 finish_cmds=
17390 finish_eval=
17391 shlibpath_var=
17392 shlibpath_overrides_runpath=unknown
17393 version_type=none
17394 dynamic_linker="$host_os ld.so"
17395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17396 if test "$GCC" = yes; then
17397   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17398   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17399     # if the path contains ";" then we assume it to be the separator
17400     # otherwise default to the standard path separator (i.e. ":") - it is
17401     # assumed that no part of a normal pathname contains ";" but that should
17402     # okay in the real world where ";" in dirpaths is itself problematic.
17403     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17404   else
17405     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17406   fi
17407 else
17408   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17409 fi
17410 need_lib_prefix=unknown
17411 hardcode_into_libs=no
17412
17413 # when you set need_version to no, make sure it does not cause -set_version
17414 # flags to be left without arguments
17415 need_version=unknown
17416
17417 case $host_os in
17418 aix3*)
17419   version_type=linux
17420   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17421   shlibpath_var=LIBPATH
17422
17423   # AIX 3 has no versioning support, so we append a major version to the name.
17424   soname_spec='${libname}${release}${shared_ext}$major'
17425   ;;
17426
17427 aix4* | aix5*)
17428   version_type=linux
17429   need_lib_prefix=no
17430   need_version=no
17431   hardcode_into_libs=yes
17432   if test "$host_cpu" = ia64; then
17433     # AIX 5 supports IA64
17434     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17435     shlibpath_var=LD_LIBRARY_PATH
17436   else
17437     # With GCC up to 2.95.x, collect2 would create an import file
17438     # for dependence libraries.  The import file would start with
17439     # the line `#! .'.  This would cause the generated library to
17440     # depend on `.', always an invalid library.  This was fixed in
17441     # development snapshots of GCC prior to 3.0.
17442     case $host_os in
17443       aix4 | aix4.[01] | aix4.[01].*)
17444       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17445            echo ' yes '
17446            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17447         :
17448       else
17449         can_build_shared=no
17450       fi
17451       ;;
17452     esac
17453     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17454     # soname into executable. Probably we can add versioning support to
17455     # collect2, so additional links can be useful in future.
17456     if test "$aix_use_runtimelinking" = yes; then
17457       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17458       # instead of lib<name>.a to let people know that these are not
17459       # typical AIX shared libraries.
17460       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461     else
17462       # We preserve .a as extension for shared libraries through AIX4.2
17463       # and later when we are not doing run time linking.
17464       library_names_spec='${libname}${release}.a $libname.a'
17465       soname_spec='${libname}${release}${shared_ext}$major'
17466     fi
17467     shlibpath_var=LIBPATH
17468   fi
17469   ;;
17470
17471 amigaos*)
17472   library_names_spec='$libname.ixlibrary $libname.a'
17473   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17474   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'
17475   ;;
17476
17477 beos*)
17478   library_names_spec='${libname}${shared_ext}'
17479   dynamic_linker="$host_os ld.so"
17480   shlibpath_var=LIBRARY_PATH
17481   ;;
17482
17483 bsdi[45]*)
17484   version_type=linux
17485   need_version=no
17486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487   soname_spec='${libname}${release}${shared_ext}$major'
17488   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17489   shlibpath_var=LD_LIBRARY_PATH
17490   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17491   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17492   # the default ld.so.conf also contains /usr/contrib/lib and
17493   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17494   # libtool to hard-code these into programs
17495   ;;
17496
17497 cygwin* | mingw* | pw32*)
17498   version_type=windows
17499   shrext_cmds=".dll"
17500   need_version=no
17501   need_lib_prefix=no
17502
17503   case $GCC,$host_os in
17504   yes,cygwin* | yes,mingw* | yes,pw32*)
17505     library_names_spec='$libname.dll.a'
17506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17507     postinstall_cmds='base_file=`basename \${file}`~
17508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17509       dldir=$destdir/`dirname \$dlpath`~
17510       test -d \$dldir || mkdir -p \$dldir~
17511       $install_prog $dir/$dlname \$dldir/$dlname~
17512       chmod a+x \$dldir/$dlname'
17513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17514       dlpath=$dir/\$dldll~
17515        $rm \$dlpath'
17516     shlibpath_overrides_runpath=yes
17517
17518     case $host_os in
17519     cygwin*)
17520       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17521       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17522       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17523       ;;
17524     mingw*)
17525       # MinGW DLLs use traditional 'lib' prefix
17526       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17527       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17528       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17529         # It is most probably a Windows format PATH printed by
17530         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17531         # path with ; separators, and with drive letters. We can handle the
17532         # drive letters (cygwin fileutils understands them), so leave them,
17533         # especially as we might pass files found there to a mingw objdump,
17534         # which wouldn't understand a cygwinified path. Ahh.
17535         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17536       else
17537         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17538       fi
17539       ;;
17540     pw32*)
17541       # pw32 DLLs use 'pw' prefix rather than 'lib'
17542       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17543       ;;
17544     esac
17545     ;;
17546
17547   *)
17548     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17549     ;;
17550   esac
17551   dynamic_linker='Win32 ld.exe'
17552   # FIXME: first we should search . and the directory the executable is in
17553   shlibpath_var=PATH
17554   ;;
17555
17556 darwin* | rhapsody*)
17557   dynamic_linker="$host_os dyld"
17558   version_type=darwin
17559   need_lib_prefix=no
17560   need_version=no
17561   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17562   soname_spec='${libname}${release}${major}$shared_ext'
17563   shlibpath_overrides_runpath=yes
17564   shlibpath_var=DYLD_LIBRARY_PATH
17565   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17566   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17567   if test "$GCC" = yes; then
17568     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17569   else
17570     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17571   fi
17572   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17573   ;;
17574
17575 dgux*)
17576   version_type=linux
17577   need_lib_prefix=no
17578   need_version=no
17579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17580   soname_spec='${libname}${release}${shared_ext}$major'
17581   shlibpath_var=LD_LIBRARY_PATH
17582   ;;
17583
17584 freebsd1.*)
17585   dynamic_linker=no
17586   ;;
17587
17588 kfreebsd*-gnu)
17589   version_type=linux
17590   need_lib_prefix=no
17591   need_version=no
17592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17593   soname_spec='${libname}${release}${shared_ext}$major'
17594   shlibpath_var=LD_LIBRARY_PATH
17595   shlibpath_overrides_runpath=no
17596   hardcode_into_libs=yes
17597   dynamic_linker='GNU ld.so'
17598   ;;
17599
17600 freebsd* | dragonfly*)
17601   # DragonFly does not have aout.  When/if they implement a new
17602   # versioning mechanism, adjust this.
17603   if test -x /usr/bin/objformat; then
17604     objformat=`/usr/bin/objformat`
17605   else
17606     case $host_os in
17607     freebsd[123]*) objformat=aout ;;
17608     *) objformat=elf ;;
17609     esac
17610   fi
17611   version_type=freebsd-$objformat
17612   case $version_type in
17613     freebsd-elf*)
17614       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17615       need_version=no
17616       need_lib_prefix=no
17617       ;;
17618     freebsd-*)
17619       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17620       need_version=yes
17621       ;;
17622   esac
17623   shlibpath_var=LD_LIBRARY_PATH
17624   case $host_os in
17625   freebsd2.*)
17626     shlibpath_overrides_runpath=yes
17627     ;;
17628   freebsd3.[01]* | freebsdelf3.[01]*)
17629     shlibpath_overrides_runpath=yes
17630     hardcode_into_libs=yes
17631     ;;
17632   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17633   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17634     shlibpath_overrides_runpath=no
17635     hardcode_into_libs=yes
17636     ;;
17637   freebsd*) # from 4.6 on
17638     shlibpath_overrides_runpath=yes
17639     hardcode_into_libs=yes
17640     ;;
17641   esac
17642   ;;
17643
17644 gnu*)
17645   version_type=linux
17646   need_lib_prefix=no
17647   need_version=no
17648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17649   soname_spec='${libname}${release}${shared_ext}$major'
17650   shlibpath_var=LD_LIBRARY_PATH
17651   hardcode_into_libs=yes
17652   ;;
17653
17654 hpux9* | hpux10* | hpux11*)
17655   # Give a soname corresponding to the major version so that dld.sl refuses to
17656   # link against other versions.
17657   version_type=sunos
17658   need_lib_prefix=no
17659   need_version=no
17660   case $host_cpu in
17661   ia64*)
17662     shrext_cmds='.so'
17663     hardcode_into_libs=yes
17664     dynamic_linker="$host_os dld.so"
17665     shlibpath_var=LD_LIBRARY_PATH
17666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668     soname_spec='${libname}${release}${shared_ext}$major'
17669     if test "X$HPUX_IA64_MODE" = X32; then
17670       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17671     else
17672       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17673     fi
17674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17675     ;;
17676    hppa*64*)
17677      shrext_cmds='.sl'
17678      hardcode_into_libs=yes
17679      dynamic_linker="$host_os dld.sl"
17680      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17681      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17683      soname_spec='${libname}${release}${shared_ext}$major'
17684      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17685      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17686      ;;
17687    *)
17688     shrext_cmds='.sl'
17689     dynamic_linker="$host_os dld.sl"
17690     shlibpath_var=SHLIB_PATH
17691     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693     soname_spec='${libname}${release}${shared_ext}$major'
17694     ;;
17695   esac
17696   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17697   postinstall_cmds='chmod 555 $lib'
17698   ;;
17699
17700 interix3*)
17701   version_type=linux
17702   need_lib_prefix=no
17703   need_version=no
17704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17705   soname_spec='${libname}${release}${shared_ext}$major'
17706   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17707   shlibpath_var=LD_LIBRARY_PATH
17708   shlibpath_overrides_runpath=no
17709   hardcode_into_libs=yes
17710   ;;
17711
17712 irix5* | irix6* | nonstopux*)
17713   case $host_os in
17714     nonstopux*) version_type=nonstopux ;;
17715     *)
17716         if test "$lt_cv_prog_gnu_ld" = yes; then
17717                 version_type=linux
17718         else
17719                 version_type=irix
17720         fi ;;
17721   esac
17722   need_lib_prefix=no
17723   need_version=no
17724   soname_spec='${libname}${release}${shared_ext}$major'
17725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17726   case $host_os in
17727   irix5* | nonstopux*)
17728     libsuff= shlibsuff=
17729     ;;
17730   *)
17731     case $LD in # libtool.m4 will add one of these switches to LD
17732     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17733       libsuff= shlibsuff= libmagic=32-bit;;
17734     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17735       libsuff=32 shlibsuff=N32 libmagic=N32;;
17736     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17737       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17738     *) libsuff= shlibsuff= libmagic=never-match;;
17739     esac
17740     ;;
17741   esac
17742   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17743   shlibpath_overrides_runpath=no
17744   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17745   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17746   hardcode_into_libs=yes
17747   ;;
17748
17749 # No shared lib support for Linux oldld, aout, or coff.
17750 linux*oldld* | linux*aout* | linux*coff*)
17751   dynamic_linker=no
17752   ;;
17753
17754 # This must be Linux ELF.
17755 linux*)
17756   version_type=linux
17757   need_lib_prefix=no
17758   need_version=no
17759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760   soname_spec='${libname}${release}${shared_ext}$major'
17761   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17762   shlibpath_var=LD_LIBRARY_PATH
17763   shlibpath_overrides_runpath=no
17764   # This implies no fast_install, which is unacceptable.
17765   # Some rework will be needed to allow for fast_install
17766   # before this can be enabled.
17767   hardcode_into_libs=yes
17768
17769   # Append ld.so.conf contents to the search path
17770   if test -f /etc/ld.so.conf; then
17771     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17772     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17773   fi
17774
17775   # We used to test for /lib/ld.so.1 and disable shared libraries on
17776   # powerpc, because MkLinux only supported shared libraries with the
17777   # GNU dynamic linker.  Since this was broken with cross compilers,
17778   # most powerpc-linux boxes support dynamic linking these days and
17779   # people can always --disable-shared, the test was removed, and we
17780   # assume the GNU/Linux dynamic linker is in use.
17781   dynamic_linker='GNU/Linux ld.so'
17782   ;;
17783
17784 knetbsd*-gnu)
17785   version_type=linux
17786   need_lib_prefix=no
17787   need_version=no
17788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17789   soname_spec='${libname}${release}${shared_ext}$major'
17790   shlibpath_var=LD_LIBRARY_PATH
17791   shlibpath_overrides_runpath=no
17792   hardcode_into_libs=yes
17793   dynamic_linker='GNU ld.so'
17794   ;;
17795
17796 netbsd*)
17797   version_type=sunos
17798   need_lib_prefix=no
17799   need_version=no
17800   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17802     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17803     dynamic_linker='NetBSD (a.out) ld.so'
17804   else
17805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17806     soname_spec='${libname}${release}${shared_ext}$major'
17807     dynamic_linker='NetBSD ld.elf_so'
17808   fi
17809   shlibpath_var=LD_LIBRARY_PATH
17810   shlibpath_overrides_runpath=yes
17811   hardcode_into_libs=yes
17812   ;;
17813
17814 newsos6)
17815   version_type=linux
17816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817   shlibpath_var=LD_LIBRARY_PATH
17818   shlibpath_overrides_runpath=yes
17819   ;;
17820
17821 nto-qnx*)
17822   version_type=linux
17823   need_lib_prefix=no
17824   need_version=no
17825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826   soname_spec='${libname}${release}${shared_ext}$major'
17827   shlibpath_var=LD_LIBRARY_PATH
17828   shlibpath_overrides_runpath=yes
17829   ;;
17830
17831 openbsd*)
17832   version_type=sunos
17833   sys_lib_dlsearch_path_spec="/usr/lib"
17834   need_lib_prefix=no
17835   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17836   case $host_os in
17837     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17838     *)                         need_version=no  ;;
17839   esac
17840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17841   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17842   shlibpath_var=LD_LIBRARY_PATH
17843   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17844     case $host_os in
17845       openbsd2.[89] | openbsd2.[89].*)
17846         shlibpath_overrides_runpath=no
17847         ;;
17848       *)
17849         shlibpath_overrides_runpath=yes
17850         ;;
17851       esac
17852   else
17853     shlibpath_overrides_runpath=yes
17854   fi
17855   ;;
17856
17857 os2*)
17858   libname_spec='$name'
17859   shrext_cmds=".dll"
17860   need_lib_prefix=no
17861   library_names_spec='$libname${shared_ext} $libname.a'
17862   dynamic_linker='OS/2 ld.exe'
17863   shlibpath_var=LIBPATH
17864   ;;
17865
17866 osf3* | osf4* | osf5*)
17867   version_type=osf
17868   need_lib_prefix=no
17869   need_version=no
17870   soname_spec='${libname}${release}${shared_ext}$major'
17871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872   shlibpath_var=LD_LIBRARY_PATH
17873   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17874   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17875   ;;
17876
17877 solaris*)
17878   version_type=linux
17879   need_lib_prefix=no
17880   need_version=no
17881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17882   soname_spec='${libname}${release}${shared_ext}$major'
17883   shlibpath_var=LD_LIBRARY_PATH
17884   shlibpath_overrides_runpath=yes
17885   hardcode_into_libs=yes
17886   # ldd complains unless libraries are executable
17887   postinstall_cmds='chmod +x $lib'
17888   ;;
17889
17890 sunos4*)
17891   version_type=sunos
17892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17893   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17894   shlibpath_var=LD_LIBRARY_PATH
17895   shlibpath_overrides_runpath=yes
17896   if test "$with_gnu_ld" = yes; then
17897     need_lib_prefix=no
17898   fi
17899   need_version=yes
17900   ;;
17901
17902 sysv4 | sysv4.3*)
17903   version_type=linux
17904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905   soname_spec='${libname}${release}${shared_ext}$major'
17906   shlibpath_var=LD_LIBRARY_PATH
17907   case $host_vendor in
17908     sni)
17909       shlibpath_overrides_runpath=no
17910       need_lib_prefix=no
17911       export_dynamic_flag_spec='${wl}-Blargedynsym'
17912       runpath_var=LD_RUN_PATH
17913       ;;
17914     siemens)
17915       need_lib_prefix=no
17916       ;;
17917     motorola)
17918       need_lib_prefix=no
17919       need_version=no
17920       shlibpath_overrides_runpath=no
17921       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17922       ;;
17923   esac
17924   ;;
17925
17926 sysv4*MP*)
17927   if test -d /usr/nec ;then
17928     version_type=linux
17929     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17930     soname_spec='$libname${shared_ext}.$major'
17931     shlibpath_var=LD_LIBRARY_PATH
17932   fi
17933   ;;
17934
17935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17936   version_type=freebsd-elf
17937   need_lib_prefix=no
17938   need_version=no
17939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17940   soname_spec='${libname}${release}${shared_ext}$major'
17941   shlibpath_var=LD_LIBRARY_PATH
17942   hardcode_into_libs=yes
17943   if test "$with_gnu_ld" = yes; then
17944     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17945     shlibpath_overrides_runpath=no
17946   else
17947     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17948     shlibpath_overrides_runpath=yes
17949     case $host_os in
17950       sco3.2v5*)
17951         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17952         ;;
17953     esac
17954   fi
17955   sys_lib_dlsearch_path_spec='/usr/lib'
17956   ;;
17957
17958 uts4*)
17959   version_type=linux
17960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17961   soname_spec='${libname}${release}${shared_ext}$major'
17962   shlibpath_var=LD_LIBRARY_PATH
17963   ;;
17964
17965 *)
17966   dynamic_linker=no
17967   ;;
17968 esac
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17970 printf "%s\n" "$dynamic_linker" >&6; }
17971 test "$dynamic_linker" = no && can_build_shared=no
17972
17973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17974 if test "$GCC" = yes; then
17975   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17976 fi
17977
17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17979 printf %s "checking how to hardcode library paths into programs... " >&6; }
17980 hardcode_action_GCJ=
17981 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17982    test -n "$runpath_var_GCJ" || \
17983    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17984
17985   # We can hardcode non-existant directories.
17986   if test "$hardcode_direct_GCJ" != no &&
17987      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17988      # have to relink, otherwise we might link with an installed library
17989      # when we should be linking with a yet-to-be-installed one
17990      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17991      test "$hardcode_minus_L_GCJ" != no; then
17992     # Linking always hardcodes the temporary library directory.
17993     hardcode_action_GCJ=relink
17994   else
17995     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17996     hardcode_action_GCJ=immediate
17997   fi
17998 else
17999   # We cannot hardcode anything, or else we can only hardcode existing
18000   # directories.
18001   hardcode_action_GCJ=unsupported
18002 fi
18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18004 printf "%s\n" "$hardcode_action_GCJ" >&6; }
18005
18006 if test "$hardcode_action_GCJ" = relink; then
18007   # Fast installation is not supported
18008   enable_fast_install=no
18009 elif test "$shlibpath_overrides_runpath" = yes ||
18010      test "$enable_shared" = no; then
18011   # Fast installation is not necessary
18012   enable_fast_install=needless
18013 fi
18014
18015
18016 # The else clause should only fire when bootstrapping the
18017 # libtool distribution, otherwise you forgot to ship ltmain.sh
18018 # with your package, and you will get complaints that there are
18019 # no rules to generate ltmain.sh.
18020 if test -f "$ltmain"; then
18021   # See if we are running on zsh, and set the options which allow our commands through
18022   # without removal of \ escapes.
18023   if test -n "${ZSH_VERSION+set}" ; then
18024     setopt NO_GLOB_SUBST
18025   fi
18026   # Now quote all the things that may contain metacharacters while being
18027   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18028   # variables and quote the copies for generation of the libtool script.
18029   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18030     SED SHELL STRIP \
18031     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18032     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18033     deplibs_check_method reload_flag reload_cmds need_locks \
18034     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18035     lt_cv_sys_global_symbol_to_c_name_address \
18036     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18037     old_postinstall_cmds old_postuninstall_cmds \
18038     compiler_GCJ \
18039     CC_GCJ \
18040     LD_GCJ \
18041     lt_prog_compiler_wl_GCJ \
18042     lt_prog_compiler_pic_GCJ \
18043     lt_prog_compiler_static_GCJ \
18044     lt_prog_compiler_no_builtin_flag_GCJ \
18045     export_dynamic_flag_spec_GCJ \
18046     thread_safe_flag_spec_GCJ \
18047     whole_archive_flag_spec_GCJ \
18048     enable_shared_with_static_runtimes_GCJ \
18049     old_archive_cmds_GCJ \
18050     old_archive_from_new_cmds_GCJ \
18051     predep_objects_GCJ \
18052     postdep_objects_GCJ \
18053     predeps_GCJ \
18054     postdeps_GCJ \
18055     compiler_lib_search_path_GCJ \
18056     archive_cmds_GCJ \
18057     archive_expsym_cmds_GCJ \
18058     postinstall_cmds_GCJ \
18059     postuninstall_cmds_GCJ \
18060     old_archive_from_expsyms_cmds_GCJ \
18061     allow_undefined_flag_GCJ \
18062     no_undefined_flag_GCJ \
18063     export_symbols_cmds_GCJ \
18064     hardcode_libdir_flag_spec_GCJ \
18065     hardcode_libdir_flag_spec_ld_GCJ \
18066     hardcode_libdir_separator_GCJ \
18067     hardcode_automatic_GCJ \
18068     module_cmds_GCJ \
18069     module_expsym_cmds_GCJ \
18070     lt_cv_prog_compiler_c_o_GCJ \
18071     exclude_expsyms_GCJ \
18072     include_expsyms_GCJ; do
18073
18074     case $var in
18075     old_archive_cmds_GCJ | \
18076     old_archive_from_new_cmds_GCJ | \
18077     archive_cmds_GCJ | \
18078     archive_expsym_cmds_GCJ | \
18079     module_cmds_GCJ | \
18080     module_expsym_cmds_GCJ | \
18081     old_archive_from_expsyms_cmds_GCJ | \
18082     export_symbols_cmds_GCJ | \
18083     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18084     postinstall_cmds | postuninstall_cmds | \
18085     old_postinstall_cmds | old_postuninstall_cmds | \
18086     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18087       # Double-quote double-evaled strings.
18088       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18089       ;;
18090     *)
18091       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18092       ;;
18093     esac
18094   done
18095
18096   case $lt_echo in
18097   *'\$0 --fallback-echo"')
18098     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18099     ;;
18100   esac
18101
18102 cfgfile="$ofile"
18103
18104   cat <<__EOF__ >> "$cfgfile"
18105 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18106
18107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18108
18109 # Shell to use when invoking shell scripts.
18110 SHELL=$lt_SHELL
18111
18112 # Whether or not to build shared libraries.
18113 build_libtool_libs=$enable_shared
18114
18115 # Whether or not to build static libraries.
18116 build_old_libs=$enable_static
18117
18118 # Whether or not to add -lc for building shared libraries.
18119 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18120
18121 # Whether or not to disallow shared libs when runtime libs are static
18122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18123
18124 # Whether or not to optimize for fast installation.
18125 fast_install=$enable_fast_install
18126
18127 # The host system.
18128 host_alias=$host_alias
18129 host=$host
18130 host_os=$host_os
18131
18132 # The build system.
18133 build_alias=$build_alias
18134 build=$build
18135 build_os=$build_os
18136
18137 # An echo program that does not interpret backslashes.
18138 echo=$lt_echo
18139
18140 # The archiver.
18141 AR=$lt_AR
18142 AR_FLAGS=$lt_AR_FLAGS
18143
18144 # A C compiler.
18145 LTCC=$lt_LTCC
18146
18147 # LTCC compiler flags.
18148 LTCFLAGS=$lt_LTCFLAGS
18149
18150 # A language-specific compiler.
18151 CC=$lt_compiler_GCJ
18152
18153 # Is the compiler the GNU C compiler?
18154 with_gcc=$GCC_GCJ
18155
18156 # An ERE matcher.
18157 EGREP=$lt_EGREP
18158
18159 # The linker used to build libraries.
18160 LD=$lt_LD_GCJ
18161
18162 # Whether we need hard or soft links.
18163 LN_S=$lt_LN_S
18164
18165 # A BSD-compatible nm program.
18166 NM=$lt_NM
18167
18168 # A symbol stripping program
18169 STRIP=$lt_STRIP
18170
18171 # Used to examine libraries when file_magic_cmd begins "file"
18172 MAGIC_CMD=$MAGIC_CMD
18173
18174 # Used on cygwin: DLL creation program.
18175 DLLTOOL="$DLLTOOL"
18176
18177 # Used on cygwin: object dumper.
18178 OBJDUMP="$OBJDUMP"
18179
18180 # Used on cygwin: assembler.
18181 AS="$AS"
18182
18183 # The name of the directory that contains temporary libtool files.
18184 objdir=$objdir
18185
18186 # How to create reloadable object files.
18187 reload_flag=$lt_reload_flag
18188 reload_cmds=$lt_reload_cmds
18189
18190 # How to pass a linker flag through the compiler.
18191 wl=$lt_lt_prog_compiler_wl_GCJ
18192
18193 # Object file suffix (normally "o").
18194 objext="$ac_objext"
18195
18196 # Old archive suffix (normally "a").
18197 libext="$libext"
18198
18199 # Shared library suffix (normally ".so").
18200 shrext_cmds='$shrext_cmds'
18201
18202 # Executable file suffix (normally "").
18203 exeext="$exeext"
18204
18205 # Additional compiler flags for building library objects.
18206 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18207 pic_mode=$pic_mode
18208
18209 # What is the maximum length of a command?
18210 max_cmd_len=$lt_cv_sys_max_cmd_len
18211
18212 # Does compiler simultaneously support -c and -o options?
18213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18214
18215 # Must we lock files when doing compilation?
18216 need_locks=$lt_need_locks
18217
18218 # Do we need the lib prefix for modules?
18219 need_lib_prefix=$need_lib_prefix
18220
18221 # Do we need a version for libraries?
18222 need_version=$need_version
18223
18224 # Whether dlopen is supported.
18225 dlopen_support=$enable_dlopen
18226
18227 # Whether dlopen of programs is supported.
18228 dlopen_self=$enable_dlopen_self
18229
18230 # Whether dlopen of statically linked programs is supported.
18231 dlopen_self_static=$enable_dlopen_self_static
18232
18233 # Compiler flag to prevent dynamic linking.
18234 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18235
18236 # Compiler flag to turn off builtin functions.
18237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18238
18239 # Compiler flag to allow reflexive dlopens.
18240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18241
18242 # Compiler flag to generate shared objects directly from archives.
18243 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18244
18245 # Compiler flag to generate thread-safe objects.
18246 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18247
18248 # Library versioning type.
18249 version_type=$version_type
18250
18251 # Format of library name prefix.
18252 libname_spec=$lt_libname_spec
18253
18254 # List of archive names.  First name is the real one, the rest are links.
18255 # The last name is the one that the linker finds with -lNAME.
18256 library_names_spec=$lt_library_names_spec
18257
18258 # The coded name of the library, if different from the real name.
18259 soname_spec=$lt_soname_spec
18260
18261 # Commands used to build and install an old-style archive.
18262 RANLIB=$lt_RANLIB
18263 old_archive_cmds=$lt_old_archive_cmds_GCJ
18264 old_postinstall_cmds=$lt_old_postinstall_cmds
18265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18266
18267 # Create an old-style archive from a shared archive.
18268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18269
18270 # Create a temporary old-style archive to link instead of a shared archive.
18271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18272
18273 # Commands used to build and install a shared archive.
18274 archive_cmds=$lt_archive_cmds_GCJ
18275 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18276 postinstall_cmds=$lt_postinstall_cmds
18277 postuninstall_cmds=$lt_postuninstall_cmds
18278
18279 # Commands used to build a loadable module (assumed same as above if empty)
18280 module_cmds=$lt_module_cmds_GCJ
18281 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18282
18283 # Commands to strip libraries.
18284 old_striplib=$lt_old_striplib
18285 striplib=$lt_striplib
18286
18287 # Dependencies to place before the objects being linked to create a
18288 # shared library.
18289 predep_objects=$lt_predep_objects_GCJ
18290
18291 # Dependencies to place after the objects being linked to create a
18292 # shared library.
18293 postdep_objects=$lt_postdep_objects_GCJ
18294
18295 # Dependencies to place before the objects being linked to create a
18296 # shared library.
18297 predeps=$lt_predeps_GCJ
18298
18299 # Dependencies to place after the objects being linked to create a
18300 # shared library.
18301 postdeps=$lt_postdeps_GCJ
18302
18303 # The library search path used internally by the compiler when linking
18304 # a shared library.
18305 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18306
18307 # Method to check whether dependent libraries are shared objects.
18308 deplibs_check_method=$lt_deplibs_check_method
18309
18310 # Command to use when deplibs_check_method == file_magic.
18311 file_magic_cmd=$lt_file_magic_cmd
18312
18313 # Flag that allows shared libraries with undefined symbols to be built.
18314 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18315
18316 # Flag that forces no undefined symbols.
18317 no_undefined_flag=$lt_no_undefined_flag_GCJ
18318
18319 # Commands used to finish a libtool library installation in a directory.
18320 finish_cmds=$lt_finish_cmds
18321
18322 # Same as above, but a single script fragment to be evaled but not shown.
18323 finish_eval=$lt_finish_eval
18324
18325 # Take the output of nm and produce a listing of raw symbols and C names.
18326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18327
18328 # Transform the output of nm in a proper C declaration
18329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18330
18331 # Transform the output of nm in a C name address pair
18332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18333
18334 # This is the shared library runtime path variable.
18335 runpath_var=$runpath_var
18336
18337 # This is the shared library path variable.
18338 shlibpath_var=$shlibpath_var
18339
18340 # Is shlibpath searched before the hard-coded library search path?
18341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18342
18343 # How to hardcode a shared library path into an executable.
18344 hardcode_action=$hardcode_action_GCJ
18345
18346 # Whether we should hardcode library paths into libraries.
18347 hardcode_into_libs=$hardcode_into_libs
18348
18349 # Flag to hardcode \$libdir into a binary during linking.
18350 # This must work even if \$libdir does not exist.
18351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18352
18353 # If ld is used when linking, flag to hardcode \$libdir into
18354 # a binary during linking. This must work even if \$libdir does
18355 # not exist.
18356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18357
18358 # Whether we need a single -rpath flag with a separated argument.
18359 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18360
18361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18362 # resulting binary.
18363 hardcode_direct=$hardcode_direct_GCJ
18364
18365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18366 # resulting binary.
18367 hardcode_minus_L=$hardcode_minus_L_GCJ
18368
18369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18370 # the resulting binary.
18371 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18372
18373 # Set to yes if building a shared library automatically hardcodes DIR into the library
18374 # and all subsequent libraries and executables linked against it.
18375 hardcode_automatic=$hardcode_automatic_GCJ
18376
18377 # Variables whose values should be saved in libtool wrapper scripts and
18378 # restored at relink time.
18379 variables_saved_for_relink="$variables_saved_for_relink"
18380
18381 # Whether libtool must link a program against all its dependency libraries.
18382 link_all_deplibs=$link_all_deplibs_GCJ
18383
18384 # Compile-time system search path for libraries
18385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18386
18387 # Run-time system search path for libraries
18388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18389
18390 # Fix the shell variable \$srcfile for the compiler.
18391 fix_srcfile_path="$fix_srcfile_path_GCJ"
18392
18393 # Set to yes if exported symbols are required.
18394 always_export_symbols=$always_export_symbols_GCJ
18395
18396 # The commands to list exported symbols.
18397 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18398
18399 # The commands to extract the exported symbol list from a shared archive.
18400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18401
18402 # Symbols that should not be listed in the preloaded symbols.
18403 exclude_expsyms=$lt_exclude_expsyms_GCJ
18404
18405 # Symbols that must always be exported.
18406 include_expsyms=$lt_include_expsyms_GCJ
18407
18408 # ### END LIBTOOL TAG CONFIG: $tagname
18409
18410 __EOF__
18411
18412
18413 else
18414   # If there is no Makefile yet, we rely on a make rule to execute
18415   # `config.status --recheck' to rerun these tests and create the
18416   # libtool script then.
18417   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18418   if test -f "$ltmain_in"; then
18419     test -f Makefile && make "$ltmain"
18420   fi
18421 fi
18422
18423
18424 ac_ext=c
18425 ac_cpp='$CPP $CPPFLAGS'
18426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18429
18430 CC="$lt_save_CC"
18431
18432         else
18433           tagname=""
18434         fi
18435         ;;
18436
18437       RC)
18438
18439
18440 # Source file extension for RC test sources.
18441 ac_ext=rc
18442
18443 # Object file extension for compiled RC test sources.
18444 objext=o
18445 objext_RC=$objext
18446
18447 # Code to be used in simple compile tests
18448 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18449
18450 # Code to be used in simple link tests
18451 lt_simple_link_test_code="$lt_simple_compile_test_code"
18452
18453 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18454
18455 # If no C compiler was specified, use CC.
18456 LTCC=${LTCC-"$CC"}
18457
18458 # If no C compiler flags were specified, use CFLAGS.
18459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18460
18461 # Allow CC to be a program name with arguments.
18462 compiler=$CC
18463
18464
18465 # save warnings/boilerplate of simple test code
18466 ac_outfile=conftest.$ac_objext
18467 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18469 _lt_compiler_boilerplate=`cat conftest.err`
18470 $rm conftest*
18471
18472 ac_outfile=conftest.$ac_objext
18473 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18475 _lt_linker_boilerplate=`cat conftest.err`
18476 $rm conftest*
18477
18478
18479 # Allow CC to be a program name with arguments.
18480 lt_save_CC="$CC"
18481 CC=${RC-"windres"}
18482 compiler=$CC
18483 compiler_RC=$CC
18484 for cc_temp in $compiler""; do
18485   case $cc_temp in
18486     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18487     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18488     \-*) ;;
18489     *) break;;
18490   esac
18491 done
18492 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18493
18494 lt_cv_prog_compiler_c_o_RC=yes
18495
18496 # The else clause should only fire when bootstrapping the
18497 # libtool distribution, otherwise you forgot to ship ltmain.sh
18498 # with your package, and you will get complaints that there are
18499 # no rules to generate ltmain.sh.
18500 if test -f "$ltmain"; then
18501   # See if we are running on zsh, and set the options which allow our commands through
18502   # without removal of \ escapes.
18503   if test -n "${ZSH_VERSION+set}" ; then
18504     setopt NO_GLOB_SUBST
18505   fi
18506   # Now quote all the things that may contain metacharacters while being
18507   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18508   # variables and quote the copies for generation of the libtool script.
18509   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18510     SED SHELL STRIP \
18511     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18512     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18513     deplibs_check_method reload_flag reload_cmds need_locks \
18514     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18515     lt_cv_sys_global_symbol_to_c_name_address \
18516     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18517     old_postinstall_cmds old_postuninstall_cmds \
18518     compiler_RC \
18519     CC_RC \
18520     LD_RC \
18521     lt_prog_compiler_wl_RC \
18522     lt_prog_compiler_pic_RC \
18523     lt_prog_compiler_static_RC \
18524     lt_prog_compiler_no_builtin_flag_RC \
18525     export_dynamic_flag_spec_RC \
18526     thread_safe_flag_spec_RC \
18527     whole_archive_flag_spec_RC \
18528     enable_shared_with_static_runtimes_RC \
18529     old_archive_cmds_RC \
18530     old_archive_from_new_cmds_RC \
18531     predep_objects_RC \
18532     postdep_objects_RC \
18533     predeps_RC \
18534     postdeps_RC \
18535     compiler_lib_search_path_RC \
18536     archive_cmds_RC \
18537     archive_expsym_cmds_RC \
18538     postinstall_cmds_RC \
18539     postuninstall_cmds_RC \
18540     old_archive_from_expsyms_cmds_RC \
18541     allow_undefined_flag_RC \
18542     no_undefined_flag_RC \
18543     export_symbols_cmds_RC \
18544     hardcode_libdir_flag_spec_RC \
18545     hardcode_libdir_flag_spec_ld_RC \
18546     hardcode_libdir_separator_RC \
18547     hardcode_automatic_RC \
18548     module_cmds_RC \
18549     module_expsym_cmds_RC \
18550     lt_cv_prog_compiler_c_o_RC \
18551     exclude_expsyms_RC \
18552     include_expsyms_RC; do
18553
18554     case $var in
18555     old_archive_cmds_RC | \
18556     old_archive_from_new_cmds_RC | \
18557     archive_cmds_RC | \
18558     archive_expsym_cmds_RC | \
18559     module_cmds_RC | \
18560     module_expsym_cmds_RC | \
18561     old_archive_from_expsyms_cmds_RC | \
18562     export_symbols_cmds_RC | \
18563     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18564     postinstall_cmds | postuninstall_cmds | \
18565     old_postinstall_cmds | old_postuninstall_cmds | \
18566     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18567       # Double-quote double-evaled strings.
18568       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18569       ;;
18570     *)
18571       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18572       ;;
18573     esac
18574   done
18575
18576   case $lt_echo in
18577   *'\$0 --fallback-echo"')
18578     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18579     ;;
18580   esac
18581
18582 cfgfile="$ofile"
18583
18584   cat <<__EOF__ >> "$cfgfile"
18585 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18586
18587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18588
18589 # Shell to use when invoking shell scripts.
18590 SHELL=$lt_SHELL
18591
18592 # Whether or not to build shared libraries.
18593 build_libtool_libs=$enable_shared
18594
18595 # Whether or not to build static libraries.
18596 build_old_libs=$enable_static
18597
18598 # Whether or not to add -lc for building shared libraries.
18599 build_libtool_need_lc=$archive_cmds_need_lc_RC
18600
18601 # Whether or not to disallow shared libs when runtime libs are static
18602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18603
18604 # Whether or not to optimize for fast installation.
18605 fast_install=$enable_fast_install
18606
18607 # The host system.
18608 host_alias=$host_alias
18609 host=$host
18610 host_os=$host_os
18611
18612 # The build system.
18613 build_alias=$build_alias
18614 build=$build
18615 build_os=$build_os
18616
18617 # An echo program that does not interpret backslashes.
18618 echo=$lt_echo
18619
18620 # The archiver.
18621 AR=$lt_AR
18622 AR_FLAGS=$lt_AR_FLAGS
18623
18624 # A C compiler.
18625 LTCC=$lt_LTCC
18626
18627 # LTCC compiler flags.
18628 LTCFLAGS=$lt_LTCFLAGS
18629
18630 # A language-specific compiler.
18631 CC=$lt_compiler_RC
18632
18633 # Is the compiler the GNU C compiler?
18634 with_gcc=$GCC_RC
18635
18636 # An ERE matcher.
18637 EGREP=$lt_EGREP
18638
18639 # The linker used to build libraries.
18640 LD=$lt_LD_RC
18641
18642 # Whether we need hard or soft links.
18643 LN_S=$lt_LN_S
18644
18645 # A BSD-compatible nm program.
18646 NM=$lt_NM
18647
18648 # A symbol stripping program
18649 STRIP=$lt_STRIP
18650
18651 # Used to examine libraries when file_magic_cmd begins "file"
18652 MAGIC_CMD=$MAGIC_CMD
18653
18654 # Used on cygwin: DLL creation program.
18655 DLLTOOL="$DLLTOOL"
18656
18657 # Used on cygwin: object dumper.
18658 OBJDUMP="$OBJDUMP"
18659
18660 # Used on cygwin: assembler.
18661 AS="$AS"
18662
18663 # The name of the directory that contains temporary libtool files.
18664 objdir=$objdir
18665
18666 # How to create reloadable object files.
18667 reload_flag=$lt_reload_flag
18668 reload_cmds=$lt_reload_cmds
18669
18670 # How to pass a linker flag through the compiler.
18671 wl=$lt_lt_prog_compiler_wl_RC
18672
18673 # Object file suffix (normally "o").
18674 objext="$ac_objext"
18675
18676 # Old archive suffix (normally "a").
18677 libext="$libext"
18678
18679 # Shared library suffix (normally ".so").
18680 shrext_cmds='$shrext_cmds'
18681
18682 # Executable file suffix (normally "").
18683 exeext="$exeext"
18684
18685 # Additional compiler flags for building library objects.
18686 pic_flag=$lt_lt_prog_compiler_pic_RC
18687 pic_mode=$pic_mode
18688
18689 # What is the maximum length of a command?
18690 max_cmd_len=$lt_cv_sys_max_cmd_len
18691
18692 # Does compiler simultaneously support -c and -o options?
18693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18694
18695 # Must we lock files when doing compilation?
18696 need_locks=$lt_need_locks
18697
18698 # Do we need the lib prefix for modules?
18699 need_lib_prefix=$need_lib_prefix
18700
18701 # Do we need a version for libraries?
18702 need_version=$need_version
18703
18704 # Whether dlopen is supported.
18705 dlopen_support=$enable_dlopen
18706
18707 # Whether dlopen of programs is supported.
18708 dlopen_self=$enable_dlopen_self
18709
18710 # Whether dlopen of statically linked programs is supported.
18711 dlopen_self_static=$enable_dlopen_self_static
18712
18713 # Compiler flag to prevent dynamic linking.
18714 link_static_flag=$lt_lt_prog_compiler_static_RC
18715
18716 # Compiler flag to turn off builtin functions.
18717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18718
18719 # Compiler flag to allow reflexive dlopens.
18720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18721
18722 # Compiler flag to generate shared objects directly from archives.
18723 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18724
18725 # Compiler flag to generate thread-safe objects.
18726 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18727
18728 # Library versioning type.
18729 version_type=$version_type
18730
18731 # Format of library name prefix.
18732 libname_spec=$lt_libname_spec
18733
18734 # List of archive names.  First name is the real one, the rest are links.
18735 # The last name is the one that the linker finds with -lNAME.
18736 library_names_spec=$lt_library_names_spec
18737
18738 # The coded name of the library, if different from the real name.
18739 soname_spec=$lt_soname_spec
18740
18741 # Commands used to build and install an old-style archive.
18742 RANLIB=$lt_RANLIB
18743 old_archive_cmds=$lt_old_archive_cmds_RC
18744 old_postinstall_cmds=$lt_old_postinstall_cmds
18745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18746
18747 # Create an old-style archive from a shared archive.
18748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18749
18750 # Create a temporary old-style archive to link instead of a shared archive.
18751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18752
18753 # Commands used to build and install a shared archive.
18754 archive_cmds=$lt_archive_cmds_RC
18755 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18756 postinstall_cmds=$lt_postinstall_cmds
18757 postuninstall_cmds=$lt_postuninstall_cmds
18758
18759 # Commands used to build a loadable module (assumed same as above if empty)
18760 module_cmds=$lt_module_cmds_RC
18761 module_expsym_cmds=$lt_module_expsym_cmds_RC
18762
18763 # Commands to strip libraries.
18764 old_striplib=$lt_old_striplib
18765 striplib=$lt_striplib
18766
18767 # Dependencies to place before the objects being linked to create a
18768 # shared library.
18769 predep_objects=$lt_predep_objects_RC
18770
18771 # Dependencies to place after the objects being linked to create a
18772 # shared library.
18773 postdep_objects=$lt_postdep_objects_RC
18774
18775 # Dependencies to place before the objects being linked to create a
18776 # shared library.
18777 predeps=$lt_predeps_RC
18778
18779 # Dependencies to place after the objects being linked to create a
18780 # shared library.
18781 postdeps=$lt_postdeps_RC
18782
18783 # The library search path used internally by the compiler when linking
18784 # a shared library.
18785 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18786
18787 # Method to check whether dependent libraries are shared objects.
18788 deplibs_check_method=$lt_deplibs_check_method
18789
18790 # Command to use when deplibs_check_method == file_magic.
18791 file_magic_cmd=$lt_file_magic_cmd
18792
18793 # Flag that allows shared libraries with undefined symbols to be built.
18794 allow_undefined_flag=$lt_allow_undefined_flag_RC
18795
18796 # Flag that forces no undefined symbols.
18797 no_undefined_flag=$lt_no_undefined_flag_RC
18798
18799 # Commands used to finish a libtool library installation in a directory.
18800 finish_cmds=$lt_finish_cmds
18801
18802 # Same as above, but a single script fragment to be evaled but not shown.
18803 finish_eval=$lt_finish_eval
18804
18805 # Take the output of nm and produce a listing of raw symbols and C names.
18806 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18807
18808 # Transform the output of nm in a proper C declaration
18809 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18810
18811 # Transform the output of nm in a C name address pair
18812 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18813
18814 # This is the shared library runtime path variable.
18815 runpath_var=$runpath_var
18816
18817 # This is the shared library path variable.
18818 shlibpath_var=$shlibpath_var
18819
18820 # Is shlibpath searched before the hard-coded library search path?
18821 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18822
18823 # How to hardcode a shared library path into an executable.
18824 hardcode_action=$hardcode_action_RC
18825
18826 # Whether we should hardcode library paths into libraries.
18827 hardcode_into_libs=$hardcode_into_libs
18828
18829 # Flag to hardcode \$libdir into a binary during linking.
18830 # This must work even if \$libdir does not exist.
18831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18832
18833 # If ld is used when linking, flag to hardcode \$libdir into
18834 # a binary during linking. This must work even if \$libdir does
18835 # not exist.
18836 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18837
18838 # Whether we need a single -rpath flag with a separated argument.
18839 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18840
18841 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18842 # resulting binary.
18843 hardcode_direct=$hardcode_direct_RC
18844
18845 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18846 # resulting binary.
18847 hardcode_minus_L=$hardcode_minus_L_RC
18848
18849 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18850 # the resulting binary.
18851 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18852
18853 # Set to yes if building a shared library automatically hardcodes DIR into the library
18854 # and all subsequent libraries and executables linked against it.
18855 hardcode_automatic=$hardcode_automatic_RC
18856
18857 # Variables whose values should be saved in libtool wrapper scripts and
18858 # restored at relink time.
18859 variables_saved_for_relink="$variables_saved_for_relink"
18860
18861 # Whether libtool must link a program against all its dependency libraries.
18862 link_all_deplibs=$link_all_deplibs_RC
18863
18864 # Compile-time system search path for libraries
18865 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18866
18867 # Run-time system search path for libraries
18868 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18869
18870 # Fix the shell variable \$srcfile for the compiler.
18871 fix_srcfile_path="$fix_srcfile_path_RC"
18872
18873 # Set to yes if exported symbols are required.
18874 always_export_symbols=$always_export_symbols_RC
18875
18876 # The commands to list exported symbols.
18877 export_symbols_cmds=$lt_export_symbols_cmds_RC
18878
18879 # The commands to extract the exported symbol list from a shared archive.
18880 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18881
18882 # Symbols that should not be listed in the preloaded symbols.
18883 exclude_expsyms=$lt_exclude_expsyms_RC
18884
18885 # Symbols that must always be exported.
18886 include_expsyms=$lt_include_expsyms_RC
18887
18888 # ### END LIBTOOL TAG CONFIG: $tagname
18889
18890 __EOF__
18891
18892
18893 else
18894   # If there is no Makefile yet, we rely on a make rule to execute
18895   # `config.status --recheck' to rerun these tests and create the
18896   # libtool script then.
18897   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18898   if test -f "$ltmain_in"; then
18899     test -f Makefile && make "$ltmain"
18900   fi
18901 fi
18902
18903
18904 ac_ext=c
18905 ac_cpp='$CPP $CPPFLAGS'
18906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18909
18910 CC="$lt_save_CC"
18911
18912         ;;
18913
18914       *)
18915         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18916         ;;
18917       esac
18918
18919       # Append the new tag name to the list of available tags.
18920       if test -n "$tagname" ; then
18921       available_tags="$available_tags $tagname"
18922     fi
18923     fi
18924   done
18925   IFS="$lt_save_ifs"
18926
18927   # Now substitute the updated list of available tags.
18928   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18929     mv "${ofile}T" "$ofile"
18930     chmod +x "$ofile"
18931   else
18932     rm -f "${ofile}T"
18933     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18934   fi
18935 fi
18936
18937
18938
18939 # This can be used to rebuild libtool when needed
18940 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18941
18942 # Always use our own libtool.
18943 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18944
18945 # Prevent multiple expansion
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971 ac_ext=c
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18976 if test -n "$ac_tool_prefix"; then
18977   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18980 printf %s "checking for $ac_word... " >&6; }
18981 if test ${ac_cv_prog_CC+y}
18982 then :
18983   printf %s "(cached) " >&6
18984 else $as_nop
18985   if test -n "$CC"; then
18986   ac_cv_prog_CC="$CC" # Let the user override the test.
18987 else
18988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18989 for as_dir in $PATH
18990 do
18991   IFS=$as_save_IFS
18992   case $as_dir in #(((
18993     '') as_dir=./ ;;
18994     */) ;;
18995     *) as_dir=$as_dir/ ;;
18996   esac
18997     for ac_exec_ext in '' $ac_executable_extensions; do
18998   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18999     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19000     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19001     break 2
19002   fi
19003 done
19004   done
19005 IFS=$as_save_IFS
19006
19007 fi
19008 fi
19009 CC=$ac_cv_prog_CC
19010 if test -n "$CC"; then
19011   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19012 printf "%s\n" "$CC" >&6; }
19013 else
19014   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015 printf "%s\n" "no" >&6; }
19016 fi
19017
19018
19019 fi
19020 if test -z "$ac_cv_prog_CC"; then
19021   ac_ct_CC=$CC
19022   # Extract the first word of "gcc", so it can be a program name with args.
19023 set dummy gcc; ac_word=$2
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19025 printf %s "checking for $ac_word... " >&6; }
19026 if test ${ac_cv_prog_ac_ct_CC+y}
19027 then :
19028   printf %s "(cached) " >&6
19029 else $as_nop
19030   if test -n "$ac_ct_CC"; then
19031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19032 else
19033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19035 do
19036   IFS=$as_save_IFS
19037   case $as_dir in #(((
19038     '') as_dir=./ ;;
19039     */) ;;
19040     *) as_dir=$as_dir/ ;;
19041   esac
19042     for ac_exec_ext in '' $ac_executable_extensions; do
19043   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19044     ac_cv_prog_ac_ct_CC="gcc"
19045     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19046     break 2
19047   fi
19048 done
19049   done
19050 IFS=$as_save_IFS
19051
19052 fi
19053 fi
19054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19055 if test -n "$ac_ct_CC"; then
19056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19057 printf "%s\n" "$ac_ct_CC" >&6; }
19058 else
19059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 printf "%s\n" "no" >&6; }
19061 fi
19062
19063   if test "x$ac_ct_CC" = x; then
19064     CC=""
19065   else
19066     case $cross_compiling:$ac_tool_warned in
19067 yes:)
19068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19070 ac_tool_warned=yes ;;
19071 esac
19072     CC=$ac_ct_CC
19073   fi
19074 else
19075   CC="$ac_cv_prog_CC"
19076 fi
19077
19078 if test -z "$CC"; then
19079           if test -n "$ac_tool_prefix"; then
19080     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19081 set dummy ${ac_tool_prefix}cc; ac_word=$2
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19083 printf %s "checking for $ac_word... " >&6; }
19084 if test ${ac_cv_prog_CC+y}
19085 then :
19086   printf %s "(cached) " >&6
19087 else $as_nop
19088   if test -n "$CC"; then
19089   ac_cv_prog_CC="$CC" # Let the user override the test.
19090 else
19091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19092 for as_dir in $PATH
19093 do
19094   IFS=$as_save_IFS
19095   case $as_dir in #(((
19096     '') as_dir=./ ;;
19097     */) ;;
19098     *) as_dir=$as_dir/ ;;
19099   esac
19100     for ac_exec_ext in '' $ac_executable_extensions; do
19101   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19102     ac_cv_prog_CC="${ac_tool_prefix}cc"
19103     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19104     break 2
19105   fi
19106 done
19107   done
19108 IFS=$as_save_IFS
19109
19110 fi
19111 fi
19112 CC=$ac_cv_prog_CC
19113 if test -n "$CC"; then
19114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19115 printf "%s\n" "$CC" >&6; }
19116 else
19117   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118 printf "%s\n" "no" >&6; }
19119 fi
19120
19121
19122   fi
19123 fi
19124 if test -z "$CC"; then
19125   # Extract the first word of "cc", so it can be a program name with args.
19126 set dummy cc; ac_word=$2
19127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19128 printf %s "checking for $ac_word... " >&6; }
19129 if test ${ac_cv_prog_CC+y}
19130 then :
19131   printf %s "(cached) " >&6
19132 else $as_nop
19133   if test -n "$CC"; then
19134   ac_cv_prog_CC="$CC" # Let the user override the test.
19135 else
19136   ac_prog_rejected=no
19137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19139 do
19140   IFS=$as_save_IFS
19141   case $as_dir in #(((
19142     '') as_dir=./ ;;
19143     */) ;;
19144     *) as_dir=$as_dir/ ;;
19145   esac
19146     for ac_exec_ext in '' $ac_executable_extensions; do
19147   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19148     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19149        ac_prog_rejected=yes
19150        continue
19151      fi
19152     ac_cv_prog_CC="cc"
19153     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19154     break 2
19155   fi
19156 done
19157   done
19158 IFS=$as_save_IFS
19159
19160 if test $ac_prog_rejected = yes; then
19161   # We found a bogon in the path, so make sure we never use it.
19162   set dummy $ac_cv_prog_CC
19163   shift
19164   if test $# != 0; then
19165     # We chose a different compiler from the bogus one.
19166     # However, it has the same basename, so the bogon will be chosen
19167     # first if we set CC to just the basename; use the full file name.
19168     shift
19169     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
19170   fi
19171 fi
19172 fi
19173 fi
19174 CC=$ac_cv_prog_CC
19175 if test -n "$CC"; then
19176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19177 printf "%s\n" "$CC" >&6; }
19178 else
19179   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 printf "%s\n" "no" >&6; }
19181 fi
19182
19183
19184 fi
19185 if test -z "$CC"; then
19186   if test -n "$ac_tool_prefix"; then
19187   for ac_prog in cl.exe
19188   do
19189     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19192 printf %s "checking for $ac_word... " >&6; }
19193 if test ${ac_cv_prog_CC+y}
19194 then :
19195   printf %s "(cached) " >&6
19196 else $as_nop
19197   if test -n "$CC"; then
19198   ac_cv_prog_CC="$CC" # Let the user override the test.
19199 else
19200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19201 for as_dir in $PATH
19202 do
19203   IFS=$as_save_IFS
19204   case $as_dir in #(((
19205     '') as_dir=./ ;;
19206     */) ;;
19207     *) as_dir=$as_dir/ ;;
19208   esac
19209     for ac_exec_ext in '' $ac_executable_extensions; do
19210   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19212     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19213     break 2
19214   fi
19215 done
19216   done
19217 IFS=$as_save_IFS
19218
19219 fi
19220 fi
19221 CC=$ac_cv_prog_CC
19222 if test -n "$CC"; then
19223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19224 printf "%s\n" "$CC" >&6; }
19225 else
19226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 printf "%s\n" "no" >&6; }
19228 fi
19229
19230
19231     test -n "$CC" && break
19232   done
19233 fi
19234 if test -z "$CC"; then
19235   ac_ct_CC=$CC
19236   for ac_prog in cl.exe
19237 do
19238   # Extract the first word of "$ac_prog", so it can be a program name with args.
19239 set dummy $ac_prog; ac_word=$2
19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19241 printf %s "checking for $ac_word... " >&6; }
19242 if test ${ac_cv_prog_ac_ct_CC+y}
19243 then :
19244   printf %s "(cached) " >&6
19245 else $as_nop
19246   if test -n "$ac_ct_CC"; then
19247   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19248 else
19249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19251 do
19252   IFS=$as_save_IFS
19253   case $as_dir in #(((
19254     '') as_dir=./ ;;
19255     */) ;;
19256     *) as_dir=$as_dir/ ;;
19257   esac
19258     for ac_exec_ext in '' $ac_executable_extensions; do
19259   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19260     ac_cv_prog_ac_ct_CC="$ac_prog"
19261     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19262     break 2
19263   fi
19264 done
19265   done
19266 IFS=$as_save_IFS
19267
19268 fi
19269 fi
19270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19271 if test -n "$ac_ct_CC"; then
19272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19273 printf "%s\n" "$ac_ct_CC" >&6; }
19274 else
19275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276 printf "%s\n" "no" >&6; }
19277 fi
19278
19279
19280   test -n "$ac_ct_CC" && break
19281 done
19282
19283   if test "x$ac_ct_CC" = x; then
19284     CC=""
19285   else
19286     case $cross_compiling:$ac_tool_warned in
19287 yes:)
19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19290 ac_tool_warned=yes ;;
19291 esac
19292     CC=$ac_ct_CC
19293   fi
19294 fi
19295
19296 fi
19297 if test -z "$CC"; then
19298   if test -n "$ac_tool_prefix"; then
19299   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
19300 set dummy ${ac_tool_prefix}clang; ac_word=$2
19301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19302 printf %s "checking for $ac_word... " >&6; }
19303 if test ${ac_cv_prog_CC+y}
19304 then :
19305   printf %s "(cached) " >&6
19306 else $as_nop
19307   if test -n "$CC"; then
19308   ac_cv_prog_CC="$CC" # Let the user override the test.
19309 else
19310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19311 for as_dir in $PATH
19312 do
19313   IFS=$as_save_IFS
19314   case $as_dir in #(((
19315     '') as_dir=./ ;;
19316     */) ;;
19317     *) as_dir=$as_dir/ ;;
19318   esac
19319     for ac_exec_ext in '' $ac_executable_extensions; do
19320   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19321     ac_cv_prog_CC="${ac_tool_prefix}clang"
19322     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19323     break 2
19324   fi
19325 done
19326   done
19327 IFS=$as_save_IFS
19328
19329 fi
19330 fi
19331 CC=$ac_cv_prog_CC
19332 if test -n "$CC"; then
19333   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19334 printf "%s\n" "$CC" >&6; }
19335 else
19336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337 printf "%s\n" "no" >&6; }
19338 fi
19339
19340
19341 fi
19342 if test -z "$ac_cv_prog_CC"; then
19343   ac_ct_CC=$CC
19344   # Extract the first word of "clang", so it can be a program name with args.
19345 set dummy clang; ac_word=$2
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19347 printf %s "checking for $ac_word... " >&6; }
19348 if test ${ac_cv_prog_ac_ct_CC+y}
19349 then :
19350   printf %s "(cached) " >&6
19351 else $as_nop
19352   if test -n "$ac_ct_CC"; then
19353   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19354 else
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19357 do
19358   IFS=$as_save_IFS
19359   case $as_dir in #(((
19360     '') as_dir=./ ;;
19361     */) ;;
19362     *) as_dir=$as_dir/ ;;
19363   esac
19364     for ac_exec_ext in '' $ac_executable_extensions; do
19365   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19366     ac_cv_prog_ac_ct_CC="clang"
19367     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19368     break 2
19369   fi
19370 done
19371   done
19372 IFS=$as_save_IFS
19373
19374 fi
19375 fi
19376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19377 if test -n "$ac_ct_CC"; then
19378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19379 printf "%s\n" "$ac_ct_CC" >&6; }
19380 else
19381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382 printf "%s\n" "no" >&6; }
19383 fi
19384
19385   if test "x$ac_ct_CC" = x; then
19386     CC=""
19387   else
19388     case $cross_compiling:$ac_tool_warned in
19389 yes:)
19390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19392 ac_tool_warned=yes ;;
19393 esac
19394     CC=$ac_ct_CC
19395   fi
19396 else
19397   CC="$ac_cv_prog_CC"
19398 fi
19399
19400 fi
19401
19402
19403 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19404 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19405 as_fn_error $? "no acceptable C compiler found in \$PATH
19406 See \`config.log' for more details" "$LINENO" 5; }
19407
19408 # Provide some information about the compiler.
19409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19410 set X $ac_compile
19411 ac_compiler=$2
19412 for ac_option in --version -v -V -qversion -version; do
19413   { { ac_try="$ac_compiler $ac_option >&5"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19419 printf "%s\n" "$ac_try_echo"; } >&5
19420   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19421   ac_status=$?
19422   if test -s conftest.err; then
19423     sed '10a\
19424 ... rest of stderr output deleted ...
19425          10q' conftest.err >conftest.er1
19426     cat conftest.er1 >&5
19427   fi
19428   rm -f conftest.er1 conftest.err
19429   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430   test $ac_status = 0; }
19431 done
19432
19433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
19434 printf %s "checking whether the compiler supports GNU C... " >&6; }
19435 if test ${ac_cv_c_compiler_gnu+y}
19436 then :
19437   printf %s "(cached) " >&6
19438 else $as_nop
19439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h.  */
19441
19442 int
19443 main (void)
19444 {
19445 #ifndef __GNUC__
19446        choke me
19447 #endif
19448
19449   ;
19450   return 0;
19451 }
19452 _ACEOF
19453 if ac_fn_c_try_compile "$LINENO"
19454 then :
19455   ac_compiler_gnu=yes
19456 else $as_nop
19457   ac_compiler_gnu=no
19458 fi
19459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19461
19462 fi
19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19464 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
19465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19466
19467 if test $ac_compiler_gnu = yes; then
19468   GCC=yes
19469 else
19470   GCC=
19471 fi
19472 ac_test_CFLAGS=${CFLAGS+y}
19473 ac_save_CFLAGS=$CFLAGS
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19475 printf %s "checking whether $CC accepts -g... " >&6; }
19476 if test ${ac_cv_prog_cc_g+y}
19477 then :
19478   printf %s "(cached) " >&6
19479 else $as_nop
19480   ac_save_c_werror_flag=$ac_c_werror_flag
19481    ac_c_werror_flag=yes
19482    ac_cv_prog_cc_g=no
19483    CFLAGS="-g"
19484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h.  */
19486
19487 int
19488 main (void)
19489 {
19490
19491   ;
19492   return 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_compile "$LINENO"
19496 then :
19497   ac_cv_prog_cc_g=yes
19498 else $as_nop
19499   CFLAGS=""
19500       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h.  */
19502
19503 int
19504 main (void)
19505 {
19506
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 if ac_fn_c_try_compile "$LINENO"
19512 then :
19513
19514 else $as_nop
19515   ac_c_werror_flag=$ac_save_c_werror_flag
19516          CFLAGS="-g"
19517          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h.  */
19519
19520 int
19521 main (void)
19522 {
19523
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 if ac_fn_c_try_compile "$LINENO"
19529 then :
19530   ac_cv_prog_cc_g=yes
19531 fi
19532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19533 fi
19534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19535 fi
19536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19537    ac_c_werror_flag=$ac_save_c_werror_flag
19538 fi
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19540 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
19541 if test $ac_test_CFLAGS; then
19542   CFLAGS=$ac_save_CFLAGS
19543 elif test $ac_cv_prog_cc_g = yes; then
19544   if test "$GCC" = yes; then
19545     CFLAGS="-g -O2"
19546   else
19547     CFLAGS="-g"
19548   fi
19549 else
19550   if test "$GCC" = yes; then
19551     CFLAGS="-O2"
19552   else
19553     CFLAGS=
19554   fi
19555 fi
19556 ac_prog_cc_stdc=no
19557 if test x$ac_prog_cc_stdc = xno
19558 then :
19559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
19560 printf %s "checking for $CC option to enable C11 features... " >&6; }
19561 if test ${ac_cv_prog_cc_c11+y}
19562 then :
19563   printf %s "(cached) " >&6
19564 else $as_nop
19565   ac_cv_prog_cc_c11=no
19566 ac_save_CC=$CC
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h.  */
19569 $ac_c_conftest_c11_program
19570 _ACEOF
19571 for ac_arg in '' -std=gnu11
19572 do
19573   CC="$ac_save_CC $ac_arg"
19574   if ac_fn_c_try_compile "$LINENO"
19575 then :
19576   ac_cv_prog_cc_c11=$ac_arg
19577 fi
19578 rm -f core conftest.err conftest.$ac_objext conftest.beam
19579   test "x$ac_cv_prog_cc_c11" != "xno" && break
19580 done
19581 rm -f conftest.$ac_ext
19582 CC=$ac_save_CC
19583 fi
19584
19585 if test "x$ac_cv_prog_cc_c11" = xno
19586 then :
19587   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19588 printf "%s\n" "unsupported" >&6; }
19589 else $as_nop
19590   if test "x$ac_cv_prog_cc_c11" = x
19591 then :
19592   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19593 printf "%s\n" "none needed" >&6; }
19594 else $as_nop
19595   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
19596 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
19597      CC="$CC $ac_cv_prog_cc_c11"
19598 fi
19599   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
19600   ac_prog_cc_stdc=c11
19601 fi
19602 fi
19603 if test x$ac_prog_cc_stdc = xno
19604 then :
19605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
19606 printf %s "checking for $CC option to enable C99 features... " >&6; }
19607 if test ${ac_cv_prog_cc_c99+y}
19608 then :
19609   printf %s "(cached) " >&6
19610 else $as_nop
19611   ac_cv_prog_cc_c99=no
19612 ac_save_CC=$CC
19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h.  */
19615 $ac_c_conftest_c99_program
19616 _ACEOF
19617 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
19618 do
19619   CC="$ac_save_CC $ac_arg"
19620   if ac_fn_c_try_compile "$LINENO"
19621 then :
19622   ac_cv_prog_cc_c99=$ac_arg
19623 fi
19624 rm -f core conftest.err conftest.$ac_objext conftest.beam
19625   test "x$ac_cv_prog_cc_c99" != "xno" && break
19626 done
19627 rm -f conftest.$ac_ext
19628 CC=$ac_save_CC
19629 fi
19630
19631 if test "x$ac_cv_prog_cc_c99" = xno
19632 then :
19633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19634 printf "%s\n" "unsupported" >&6; }
19635 else $as_nop
19636   if test "x$ac_cv_prog_cc_c99" = x
19637 then :
19638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19639 printf "%s\n" "none needed" >&6; }
19640 else $as_nop
19641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
19642 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
19643      CC="$CC $ac_cv_prog_cc_c99"
19644 fi
19645   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
19646   ac_prog_cc_stdc=c99
19647 fi
19648 fi
19649 if test x$ac_prog_cc_stdc = xno
19650 then :
19651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
19652 printf %s "checking for $CC option to enable C89 features... " >&6; }
19653 if test ${ac_cv_prog_cc_c89+y}
19654 then :
19655   printf %s "(cached) " >&6
19656 else $as_nop
19657   ac_cv_prog_cc_c89=no
19658 ac_save_CC=$CC
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h.  */
19661 $ac_c_conftest_c89_program
19662 _ACEOF
19663 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19664 do
19665   CC="$ac_save_CC $ac_arg"
19666   if ac_fn_c_try_compile "$LINENO"
19667 then :
19668   ac_cv_prog_cc_c89=$ac_arg
19669 fi
19670 rm -f core conftest.err conftest.$ac_objext conftest.beam
19671   test "x$ac_cv_prog_cc_c89" != "xno" && break
19672 done
19673 rm -f conftest.$ac_ext
19674 CC=$ac_save_CC
19675 fi
19676
19677 if test "x$ac_cv_prog_cc_c89" = xno
19678 then :
19679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19680 printf "%s\n" "unsupported" >&6; }
19681 else $as_nop
19682   if test "x$ac_cv_prog_cc_c89" = x
19683 then :
19684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19685 printf "%s\n" "none needed" >&6; }
19686 else $as_nop
19687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19688 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
19689      CC="$CC $ac_cv_prog_cc_c89"
19690 fi
19691   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
19692   ac_prog_cc_stdc=c89
19693 fi
19694 fi
19695
19696 ac_ext=c
19697 ac_cpp='$CPP $CPPFLAGS'
19698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19701
19702
19703   # Find a good install program.  We prefer a C program (faster),
19704 # so one script is as good as another.  But avoid the broken or
19705 # incompatible versions:
19706 # SysV /etc/install, /usr/sbin/install
19707 # SunOS /usr/etc/install
19708 # IRIX /sbin/install
19709 # AIX /bin/install
19710 # AmigaOS /C/install, which installs bootblocks on floppy discs
19711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19714 # OS/2's system install, which has a completely different semantic
19715 # ./install, which can be erroneously created by make from ./install.sh.
19716 # Reject install programs that cannot install multiple files.
19717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19718 printf %s "checking for a BSD-compatible install... " >&6; }
19719 if test -z "$INSTALL"; then
19720 if test ${ac_cv_path_install+y}
19721 then :
19722   printf %s "(cached) " >&6
19723 else $as_nop
19724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19725 for as_dir in $PATH
19726 do
19727   IFS=$as_save_IFS
19728   case $as_dir in #(((
19729     '') as_dir=./ ;;
19730     */) ;;
19731     *) as_dir=$as_dir/ ;;
19732   esac
19733     # Account for fact that we put trailing slashes in our PATH walk.
19734 case $as_dir in #((
19735   ./ | /[cC]/* | \
19736   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19737   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19738   /usr/ucb/* ) ;;
19739   *)
19740     # OSF1 and SCO ODT 3.0 have their own names for install.
19741     # Don't use installbsd from OSF since it installs stuff as root
19742     # by default.
19743     for ac_prog in ginstall scoinst install; do
19744       for ac_exec_ext in '' $ac_executable_extensions; do
19745         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
19746           if test $ac_prog = install &&
19747             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19748             # AIX install.  It has an incompatible calling convention.
19749             :
19750           elif test $ac_prog = install &&
19751             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19752             # program-specific install script used by HP pwplus--don't use.
19753             :
19754           else
19755             rm -rf conftest.one conftest.two conftest.dir
19756             echo one > conftest.one
19757             echo two > conftest.two
19758             mkdir conftest.dir
19759             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
19760               test -s conftest.one && test -s conftest.two &&
19761               test -s conftest.dir/conftest.one &&
19762               test -s conftest.dir/conftest.two
19763             then
19764               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
19765               break 3
19766             fi
19767           fi
19768         fi
19769       done
19770     done
19771     ;;
19772 esac
19773
19774   done
19775 IFS=$as_save_IFS
19776
19777 rm -rf conftest.one conftest.two conftest.dir
19778
19779 fi
19780   if test ${ac_cv_path_install+y}; then
19781     INSTALL=$ac_cv_path_install
19782   else
19783     # As a last resort, use the slow shell script.  Don't cache a
19784     # value for INSTALL within a source directory, because that will
19785     # break other packages using the cache if that directory is
19786     # removed, or if the value is a relative name.
19787     INSTALL=$ac_install_sh
19788   fi
19789 fi
19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19791 printf "%s\n" "$INSTALL" >&6; }
19792
19793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19794 # It thinks the first close brace ends the variable substitution.
19795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19796
19797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19798
19799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19800
19801
19802 if test "$GCC" = yes ; then
19803                         OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
19804     CFLAGS="$OLDCFLAGS -fexceptions"
19805     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
19806 printf %s "checking whether $CC accepts -fexceptions... " >&6; }
19807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h.  */
19809
19810 int
19811 main (void)
19812 {
19813
19814   ;
19815   return 0;
19816 }
19817 _ACEOF
19818 if ac_fn_c_try_link "$LINENO"
19819 then :
19820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19821 printf "%s\n" "yes" >&6; }
19822 else $as_nop
19823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 printf "%s\n" "no" >&6; }; CFLAGS="$OLDCFLAGS"
19825 fi
19826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19827     conftest$ac_exeext conftest.$ac_ext
19828     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
19829 fi
19830
19831 # Autoupdate added the next two lines to ensure that your configure
19832 # script's behavior did not change.  They are probably safe to remove.
19833
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
19835 printf %s "checking for egrep... " >&6; }
19836 if test ${ac_cv_path_EGREP+y}
19837 then :
19838   printf %s "(cached) " >&6
19839 else $as_nop
19840   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
19841    then ac_cv_path_EGREP="$GREP -E"
19842    else
19843      if test -z "$EGREP"; then
19844   ac_path_EGREP_found=false
19845   # Loop through the user's path and test for each of PROGNAME-LIST
19846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
19848 do
19849   IFS=$as_save_IFS
19850   case $as_dir in #(((
19851     '') as_dir=./ ;;
19852     */) ;;
19853     *) as_dir=$as_dir/ ;;
19854   esac
19855     for ac_prog in egrep
19856    do
19857     for ac_exec_ext in '' $ac_executable_extensions; do
19858       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
19859       as_fn_executable_p "$ac_path_EGREP" || continue
19860 # Check for GNU ac_path_EGREP and select it if it is found.
19861   # Check for GNU $ac_path_EGREP
19862 case `"$ac_path_EGREP" --version 2>&1` in
19863 *GNU*)
19864   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
19865 *)
19866   ac_count=0
19867   printf %s 0123456789 >"conftest.in"
19868   while :
19869   do
19870     cat "conftest.in" "conftest.in" >"conftest.tmp"
19871     mv "conftest.tmp" "conftest.in"
19872     cp "conftest.in" "conftest.nl"
19873     printf "%s\n" 'EGREP' >> "conftest.nl"
19874     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19875     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19876     as_fn_arith $ac_count + 1 && ac_count=$as_val
19877     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
19878       # Best one so far, save it but keep looking for a better one
19879       ac_cv_path_EGREP="$ac_path_EGREP"
19880       ac_path_EGREP_max=$ac_count
19881     fi
19882     # 10*(2^10) chars as input seems more than enough
19883     test $ac_count -gt 10 && break
19884   done
19885   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19886 esac
19887
19888       $ac_path_EGREP_found && break 3
19889     done
19890   done
19891   done
19892 IFS=$as_save_IFS
19893   if test -z "$ac_cv_path_EGREP"; then
19894     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19895   fi
19896 else
19897   ac_cv_path_EGREP=$EGREP
19898 fi
19899
19900    fi
19901 fi
19902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
19903 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
19904  EGREP="$ac_cv_path_EGREP"
19905
19906
19907
19908
19909 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
19910 if test "x$ac_cv_header_sys_mman_h" = xyes
19911 then :
19912   CFLAGS="$CFLAGS -D HAVE_MMAP"
19913 fi
19914
19915
19916 # Check whether --with-with_zlib was given.
19917 if test ${with_with_zlib+y}
19918 then :
19919   withval=$with_with_zlib;
19920 fi
19921
19922 if test "x$with_zlib" != xno ; then
19923                for ac_header in zlib.h
19924 do :
19925   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19926 if test "x$ac_cv_header_zlib_h" = xyes
19927 then :
19928   printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
19929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
19930 printf %s "checking for zlibVersion in -lz... " >&6; }
19931 if test ${ac_cv_lib_z_zlibVersion+y}
19932 then :
19933   printf %s "(cached) " >&6
19934 else $as_nop
19935   ac_check_lib_save_LIBS=$LIBS
19936 LIBS="-lz  $LIBS"
19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h.  */
19939
19940 /* Override any GCC internal prototype to avoid an error.
19941    Use char because int might match the return type of a GCC
19942    builtin and then its argument prototype would still apply.  */
19943 char zlibVersion ();
19944 int
19945 main (void)
19946 {
19947 return zlibVersion ();
19948   ;
19949   return 0;
19950 }
19951 _ACEOF
19952 if ac_fn_c_try_link "$LINENO"
19953 then :
19954   ac_cv_lib_z_zlibVersion=yes
19955 else $as_nop
19956   ac_cv_lib_z_zlibVersion=no
19957 fi
19958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19959     conftest$ac_exeext conftest.$ac_ext
19960 LIBS=$ac_check_lib_save_LIBS
19961 fi
19962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
19963 printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
19964 if test "x$ac_cv_lib_z_zlibVersion" = xyes
19965 then :
19966   ok_zlib=yes
19967 fi
19968
19969 fi
19970
19971 done
19972 fi
19973
19974 if test "x$ok_zlib" = xyes ; then
19975         LIBS="-lz $LIBS"
19976
19977 printf "%s\n" "#define HAVE_ZLIB /**/" >>confdefs.h
19978
19979 fi
19980
19981 ac_fn_c_check_header_compile "$LINENO" "CUnit/CUnit.h" "ac_cv_header_CUnit_CUnit_h" "$ac_includes_default"
19982 if test "x$ac_cv_header_CUnit_CUnit_h" = xyes
19983 then :
19984
19985 printf "%s\n" "#define ENABLE_TESTS /**/" >>confdefs.h
19986
19987 fi
19988
19989
19990 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
19991 if test "x$ac_cv_header_sys_sendfile_h" = xyes
19992 then :
19993
19994 printf "%s\n" "#define LINUX_SENDFILE /**/" >>confdefs.h
19995
19996 fi
19997
19998
19999
20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether your system knows about splice()" >&5
20001 printf %s "checking whether your system knows about splice()... " >&6; }
20002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20003 /* end confdefs.h.  */
20004
20005 #define _GNU_SOURCE
20006 #include <unistd.h>
20007 #include <fcntl.h>
20008
20009 int
20010 main (void)
20011 {
20012
20013         ssize_t sent, pipesize;
20014         int fd, SplicePipe[2];
20015         pipesize = splice(fd, NULL,
20016                           SplicePipe[1], NULL,
20017                           1,
20018                           SPLICE_F_MORE | SPLICE_F_MOVE|SPLICE_F_NONBLOCK);
20019
20020   ;
20021   return 0;
20022 }
20023 _ACEOF
20024 if ac_fn_c_try_compile "$LINENO"
20025 then :
20026
20027                   ok_splice=yes
20028
20029 printf "%s\n" "#define LINUX_SPLICE /**/" >>confdefs.h
20030
20031                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20032 printf "%s\n" "yes" >&6; }
20033
20034 else $as_nop
20035
20036                   ok_splice=no
20037                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 printf "%s\n" "no" >&6; }
20039
20040
20041 fi
20042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20043
20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether your system likes memcpy + HKEY" >&5
20045 printf %s "checking whether your system likes memcpy + HKEY... " >&6; }
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h.  */
20048
20049 #define _GNU_SOURCE
20050 #include <ctype.h>
20051 #include <errno.h>
20052 #include <string.h>
20053 #include <unistd.h>
20054 #include <string.h>
20055 #include <stdio.h>
20056 #include <sys/select.h>
20057 #include <fcntl.h>
20058 #include <sys/types.h>
20059
20060 #include "lib/libcitadel.h"
20061
20062 int
20063 main (void)
20064 {
20065
20066         char foo[22];
20067         memcpy(foo, HKEY("foo"));
20068
20069
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 if ac_fn_c_try_compile "$LINENO"
20075 then :
20076
20077
20078                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20079 printf "%s\n" "yes" >&6; }
20080
20081 else $as_nop
20082
20083
20084 printf "%s\n" "#define UNDEF_MEMCPY /**/" >>confdefs.h
20085
20086                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20087 printf "%s\n" "no" >&6; }
20088
20089
20090 fi
20091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20092
20093
20094 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
20095 if test "x$ac_cv_header_iconv_h" = xyes
20096 then :
20097   printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
20098
20099 fi
20100
20101
20102
20103 # Check whether --enable-iconv was given.
20104 if test ${enable_iconv+y}
20105 then :
20106   enableval=$enable_iconv; ok_iconv=no
20107 else $as_nop
20108   ok_iconv=yes
20109 fi
20110
20111
20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking to see if your system supports iconv" >&5
20113 printf %s "checking Checking to see if your system supports iconv... " >&6; }
20114 if test "$cross_compiling" = yes
20115 then :
20116   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20118 as_fn_error $? "cannot run test program while cross compiling
20119 See \`config.log' for more details" "$LINENO" 5; }
20120 else $as_nop
20121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h.  */
20123
20124         #include <iconv.h>
20125         main() {
20126                 iconv_t ic = (iconv_t)(-1) ;
20127                 ic = iconv_open("UTF-8", "us-ascii");
20128                 iconv_close(ic);
20129                 exit(0);
20130         }
20131
20132 _ACEOF
20133 if ac_fn_c_try_run "$LINENO"
20134 then :
20135
20136                   ok_iconv=yes
20137                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20138 printf "%s\n" "yes" >&6; }
20139
20140 else $as_nop
20141
20142                   ok_iconv=no
20143                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20144 printf "%s\n" "no" >&6; }
20145
20146
20147 fi
20148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20149   conftest.$ac_objext conftest.beam conftest.$ac_ext
20150 fi
20151
20152
20153 if test "$ok_iconv" = no; then
20154         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking for an external libiconv" >&5
20155 printf %s "checking Checking for an external libiconv... " >&6; }
20156         OLD_LDFLAGS="$LDFLAGS"
20157         LDFLAGS="$LDFLAGS -liconv"
20158         if test "$cross_compiling" = yes
20159 then :
20160   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20161 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20162 as_fn_error $? "cannot run test program while cross compiling
20163 See \`config.log' for more details" "$LINENO" 5; }
20164 else $as_nop
20165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h.  */
20167
20168                         #include <iconv.h>
20169                         main() {
20170                                 iconv_t ic = (iconv_t)(-1) ;
20171                                 ic = iconv_open("UTF-8", "us-ascii");
20172                                 iconv_close(ic);
20173                         }
20174
20175 _ACEOF
20176 if ac_fn_c_try_run "$LINENO"
20177 then :
20178
20179                           ok_iconv=yes
20180                           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20181 printf "%s\n" "yes" >&6; }
20182
20183 else $as_nop
20184
20185                           ok_iconv=no
20186                           LDFLAGS="$OLD_LDFLAGS"
20187                           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 printf "%s\n" "no" >&6; }
20189
20190
20191 fi
20192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20193   conftest.$ac_objext conftest.beam conftest.$ac_ext
20194 fi
20195
20196 fi
20197 if test "$ok_iconv" != "no"; then
20198         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libcitadel will be built with character set conversion." >&5
20199 printf "%s\n" "libcitadel will be built with character set conversion." >&6; }
20200
20201 printf "%s\n" "#define HAVE_ICONV /**/" >>confdefs.h
20202
20203 else
20204         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libcitadel will be built without character set conversion." >&5
20205 printf "%s\n" "libcitadel will be built without character set conversion." >&6; }
20206 fi
20207
20208
20209 # Check whether --with-backtrace was given.
20210 if test ${with_backtrace+y}
20211 then :
20212   withval=$with_backtrace;  if test "x$withval" != "xno" ; then
20213                              CFLAGS="$CFLAGS  -rdynamic "
20214                              LDFLAGS="$LDFLAGS  -rdynamic "
20215                              ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
20216 if test "x$ac_cv_func_backtrace" = xyes
20217 then :
20218   printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
20219
20220 fi
20221
20222                           fi
20223
20224
20225 fi
20226
20227
20228
20229
20230 # Check whether --with-with_zlib was given.
20231 if test ${with_with_zlib+y}
20232 then :
20233   withval=$with_with_zlib;
20234 fi
20235
20236 if test "x$with_zlib" != xno ; then
20237                for ac_header in zlib.h
20238 do :
20239   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20240 if test "x$ac_cv_header_zlib_h" = xyes
20241 then :
20242   printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
20244 printf %s "checking for zlibVersion in -lz... " >&6; }
20245 if test ${ac_cv_lib_z_zlibVersion+y}
20246 then :
20247   printf %s "(cached) " >&6
20248 else $as_nop
20249   ac_check_lib_save_LIBS=$LIBS
20250 LIBS="-lz  $LIBS"
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h.  */
20253
20254 /* Override any GCC internal prototype to avoid an error.
20255    Use char because int might match the return type of a GCC
20256    builtin and then its argument prototype would still apply.  */
20257 char zlibVersion ();
20258 int
20259 main (void)
20260 {
20261 return zlibVersion ();
20262   ;
20263   return 0;
20264 }
20265 _ACEOF
20266 if ac_fn_c_try_link "$LINENO"
20267 then :
20268   ac_cv_lib_z_zlibVersion=yes
20269 else $as_nop
20270   ac_cv_lib_z_zlibVersion=no
20271 fi
20272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20273     conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20275 fi
20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
20277 printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
20278 if test "x$ac_cv_lib_z_zlibVersion" = xyes
20279 then :
20280   ok_zlib=yes
20281 fi
20282
20283 fi
20284
20285 done
20286 fi
20287
20288 if test "x$ok_zlib" = xyes ; then
20289         LIBS="-lz $LIBS"
20290
20291 printf "%s\n" "#define HAVE_ZLIB /**/" >>confdefs.h
20292
20293 fi
20294
20295
20296
20297
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20299 printf %s "checking for an ANSI C-conforming const... " >&6; }
20300 if test ${ac_cv_c_const+y}
20301 then :
20302   printf %s "(cached) " >&6
20303 else $as_nop
20304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h.  */
20306
20307 int
20308 main (void)
20309 {
20310
20311 #ifndef __cplusplus
20312   /* Ultrix mips cc rejects this sort of thing.  */
20313   typedef int charset[2];
20314   const charset cs = { 0, 0 };
20315   /* SunOS 4.1.1 cc rejects this.  */
20316   char const *const *pcpcc;
20317   char **ppc;
20318   /* NEC SVR4.0.2 mips cc rejects this.  */
20319   struct point {int x, y;};
20320   static struct point const zero = {0,0};
20321   /* IBM XL C 1.02.0.0 rejects this.
20322      It does not let you subtract one const X* pointer from another in
20323      an arm of an if-expression whose if-part is not a constant
20324      expression */
20325   const char *g = "string";
20326   pcpcc = &g + (g ? g-g : 0);
20327   /* HPUX 7.0 cc rejects these. */
20328   ++pcpcc;
20329   ppc = (char**) pcpcc;
20330   pcpcc = (char const *const *) ppc;
20331   { /* SCO 3.2v4 cc rejects this sort of thing.  */
20332     char tx;
20333     char *t = &tx;
20334     char const *s = 0 ? (char *) 0 : (char const *) 0;
20335
20336     *t++ = 0;
20337     if (s) return 0;
20338   }
20339   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20340     int x[] = {25, 17};
20341     const int *foo = &x[0];
20342     ++foo;
20343   }
20344   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20345     typedef const int *iptr;
20346     iptr p = 0;
20347     ++p;
20348   }
20349   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
20350        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20351     struct s { int j; const int *ap[3]; } bx;
20352     struct s *b = &bx; b->j = 5;
20353   }
20354   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20355     const int foo = 10;
20356     if (!foo) return 0;
20357   }
20358   return !cs[0] && !zero.x;
20359 #endif
20360
20361   ;
20362   return 0;
20363 }
20364 _ACEOF
20365 if ac_fn_c_try_compile "$LINENO"
20366 then :
20367   ac_cv_c_const=yes
20368 else $as_nop
20369   ac_cv_c_const=no
20370 fi
20371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20372 fi
20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20374 printf "%s\n" "$ac_cv_c_const" >&6; }
20375 if test $ac_cv_c_const = no; then
20376
20377 printf "%s\n" "#define const /**/" >>confdefs.h
20378
20379 fi
20380
20381 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20382 if test "x$ac_cv_type_size_t" = xyes
20383 then :
20384
20385 else $as_nop
20386
20387 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
20388
20389 fi
20390
20391 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20392 if test "x$ac_cv_func_memmove" = xyes
20393 then :
20394   printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
20395
20396 fi
20397 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
20398 if test "x$ac_cv_func_bcopy" = xyes
20399 then :
20400   printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
20401
20402 fi
20403
20404
20405 ac_config_files="$ac_config_files Makefile libcitadel.pc"
20406
20407 ac_config_headers="$ac_config_headers sysdep.h"
20408
20409 cat >confcache <<\_ACEOF
20410 # This file is a shell script that caches the results of configure
20411 # tests run on this system so they can be shared between configure
20412 # scripts and configure runs, see configure's option --config-cache.
20413 # It is not useful on other systems.  If it contains results you don't
20414 # want to keep, you may remove or edit it.
20415 #
20416 # config.status only pays attention to the cache file if you give it
20417 # the --recheck option to rerun configure.
20418 #
20419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20421 # following values.
20422
20423 _ACEOF
20424
20425 # The following way of writing the cache mishandles newlines in values,
20426 # but we know of no workaround that is simple, portable, and efficient.
20427 # So, we kill variables containing newlines.
20428 # Ultrix sh set writes to stderr and can't be redirected directly,
20429 # and sets the high bit in the cache file unless we assign to the vars.
20430 (
20431   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20432     eval ac_val=\$$ac_var
20433     case $ac_val in #(
20434     *${as_nl}*)
20435       case $ac_var in #(
20436       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20437 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20438       esac
20439       case $ac_var in #(
20440       _ | IFS | as_nl) ;; #(
20441       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20442       *) { eval $ac_var=; unset $ac_var;} ;;
20443       esac ;;
20444     esac
20445   done
20446
20447   (set) 2>&1 |
20448     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20449     *${as_nl}ac_space=\ *)
20450       # `set' does not quote correctly, so add quotes: double-quote
20451       # substitution turns \\\\ into \\, and sed turns \\ into \.
20452       sed -n \
20453         "s/'/'\\\\''/g;
20454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20455       ;; #(
20456     *)
20457       # `set' quotes correctly as required by POSIX, so do not add quotes.
20458       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20459       ;;
20460     esac |
20461     sort
20462 ) |
20463   sed '
20464      /^ac_cv_env_/b end
20465      t clear
20466      :clear
20467      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20468      t end
20469      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20470      :end' >>confcache
20471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20472   if test -w "$cache_file"; then
20473     if test "x$cache_file" != "x/dev/null"; then
20474       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20475 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20476       if test ! -f "$cache_file" || test -h "$cache_file"; then
20477         cat confcache >"$cache_file"
20478       else
20479         case $cache_file in #(
20480         */* | ?:*)
20481           mv -f confcache "$cache_file"$$ &&
20482           mv -f "$cache_file"$$ "$cache_file" ;; #(
20483         *)
20484           mv -f confcache "$cache_file" ;;
20485         esac
20486       fi
20487     fi
20488   else
20489     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20490 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20491   fi
20492 fi
20493 rm -f confcache
20494
20495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20496 # Let make expand exec_prefix.
20497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20498
20499 DEFS=-DHAVE_CONFIG_H
20500
20501 ac_libobjs=
20502 ac_ltlibobjs=
20503 U=
20504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20505   # 1. Remove the extension, and $U if already installed.
20506   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20507   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20508   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20509   #    will be set to the directory where LIBOBJS objects are built.
20510   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20511   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20512 done
20513 LIBOBJS=$ac_libobjs
20514
20515 LTLIBOBJS=$ac_ltlibobjs
20516
20517
20518
20519 : "${CONFIG_STATUS=./config.status}"
20520 ac_write_fail=0
20521 ac_clean_files_save=$ac_clean_files
20522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20524 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20525 as_write_fail=0
20526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20527 #! $SHELL
20528 # Generated by $as_me.
20529 # Run this file to recreate the current configuration.
20530 # Compiler output produced by configure, useful for debugging
20531 # configure, is in config.log if it exists.
20532
20533 debug=false
20534 ac_cs_recheck=false
20535 ac_cs_silent=false
20536
20537 SHELL=\${CONFIG_SHELL-$SHELL}
20538 export SHELL
20539 _ASEOF
20540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20541 ## -------------------- ##
20542 ## M4sh Initialization. ##
20543 ## -------------------- ##
20544
20545 # Be more Bourne compatible
20546 DUALCASE=1; export DUALCASE # for MKS sh
20547 as_nop=:
20548 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20549 then :
20550   emulate sh
20551   NULLCMD=:
20552   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20553   # is contrary to our usage.  Disable this feature.
20554   alias -g '${1+"$@"}'='"$@"'
20555   setopt NO_GLOB_SUBST
20556 else $as_nop
20557   case `(set -o) 2>/dev/null` in #(
20558   *posix*) :
20559     set -o posix ;; #(
20560   *) :
20561      ;;
20562 esac
20563 fi
20564
20565
20566
20567 # Reset variables that may have inherited troublesome values from
20568 # the environment.
20569
20570 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20571 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20572 # side effect of setting IFS to empty, thus disabling word splitting.)
20573 # Quoting is to prevent editors from complaining about space-tab.
20574 as_nl='
20575 '
20576 export as_nl
20577 IFS=" ""        $as_nl"
20578
20579 PS1='$ '
20580 PS2='> '
20581 PS4='+ '
20582
20583 # Ensure predictable behavior from utilities with locale-dependent output.
20584 LC_ALL=C
20585 export LC_ALL
20586 LANGUAGE=C
20587 export LANGUAGE
20588
20589 # We cannot yet rely on "unset" to work, but we need these variables
20590 # to be unset--not just set to an empty or harmless value--now, to
20591 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20592 # also avoids known problems related to "unset" and subshell syntax
20593 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20594 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20595 do eval test \${$as_var+y} \
20596   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20597 done
20598
20599 # Ensure that fds 0, 1, and 2 are open.
20600 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20601 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20602 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20603
20604 # The user is always right.
20605 if ${PATH_SEPARATOR+false} :; then
20606   PATH_SEPARATOR=:
20607   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20608     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20609       PATH_SEPARATOR=';'
20610   }
20611 fi
20612
20613
20614 # Find who we are.  Look in the path if we contain no directory separator.
20615 as_myself=
20616 case $0 in #((
20617   *[\\/]* ) as_myself=$0 ;;
20618   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20619 for as_dir in $PATH
20620 do
20621   IFS=$as_save_IFS
20622   case $as_dir in #(((
20623     '') as_dir=./ ;;
20624     */) ;;
20625     *) as_dir=$as_dir/ ;;
20626   esac
20627     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20628   done
20629 IFS=$as_save_IFS
20630
20631      ;;
20632 esac
20633 # We did not find ourselves, most probably we were run as `sh COMMAND'
20634 # in which case we are not to be found in the path.
20635 if test "x$as_myself" = x; then
20636   as_myself=$0
20637 fi
20638 if test ! -f "$as_myself"; then
20639   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20640   exit 1
20641 fi
20642
20643
20644
20645 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20646 # ----------------------------------------
20647 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20648 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20649 # script with STATUS, using 1 if that was 0.
20650 as_fn_error ()
20651 {
20652   as_status=$1; test $as_status -eq 0 && as_status=1
20653   if test "$4"; then
20654     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20655     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20656   fi
20657   printf "%s\n" "$as_me: error: $2" >&2
20658   as_fn_exit $as_status
20659 } # as_fn_error
20660
20661
20662
20663 # as_fn_set_status STATUS
20664 # -----------------------
20665 # Set $? to STATUS, without forking.
20666 as_fn_set_status ()
20667 {
20668   return $1
20669 } # as_fn_set_status
20670
20671 # as_fn_exit STATUS
20672 # -----------------
20673 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20674 as_fn_exit ()
20675 {
20676   set +e
20677   as_fn_set_status $1
20678   exit $1
20679 } # as_fn_exit
20680
20681 # as_fn_unset VAR
20682 # ---------------
20683 # Portably unset VAR.
20684 as_fn_unset ()
20685 {
20686   { eval $1=; unset $1;}
20687 }
20688 as_unset=as_fn_unset
20689
20690 # as_fn_append VAR VALUE
20691 # ----------------------
20692 # Append the text in VALUE to the end of the definition contained in VAR. Take
20693 # advantage of any shell optimizations that allow amortized linear growth over
20694 # repeated appends, instead of the typical quadratic growth present in naive
20695 # implementations.
20696 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20697 then :
20698   eval 'as_fn_append ()
20699   {
20700     eval $1+=\$2
20701   }'
20702 else $as_nop
20703   as_fn_append ()
20704   {
20705     eval $1=\$$1\$2
20706   }
20707 fi # as_fn_append
20708
20709 # as_fn_arith ARG...
20710 # ------------------
20711 # Perform arithmetic evaluation on the ARGs, and store the result in the
20712 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20713 # must be portable across $(()) and expr.
20714 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20715 then :
20716   eval 'as_fn_arith ()
20717   {
20718     as_val=$(( $* ))
20719   }'
20720 else $as_nop
20721   as_fn_arith ()
20722   {
20723     as_val=`expr "$@" || test $? -eq 1`
20724   }
20725 fi # as_fn_arith
20726
20727
20728 if expr a : '\(a\)' >/dev/null 2>&1 &&
20729    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20730   as_expr=expr
20731 else
20732   as_expr=false
20733 fi
20734
20735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20736   as_basename=basename
20737 else
20738   as_basename=false
20739 fi
20740
20741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20742   as_dirname=dirname
20743 else
20744   as_dirname=false
20745 fi
20746
20747 as_me=`$as_basename -- "$0" ||
20748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20749          X"$0" : 'X\(//\)$' \| \
20750          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20751 printf "%s\n" X/"$0" |
20752     sed '/^.*\/\([^/][^/]*\)\/*$/{
20753             s//\1/
20754             q
20755           }
20756           /^X\/\(\/\/\)$/{
20757             s//\1/
20758             q
20759           }
20760           /^X\/\(\/\).*/{
20761             s//\1/
20762             q
20763           }
20764           s/.*/./; q'`
20765
20766 # Avoid depending upon Character Ranges.
20767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20770 as_cr_digits='0123456789'
20771 as_cr_alnum=$as_cr_Letters$as_cr_digits
20772
20773
20774 # Determine whether it's possible to make 'echo' print without a newline.
20775 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20776 # for compatibility with existing Makefiles.
20777 ECHO_C= ECHO_N= ECHO_T=
20778 case `echo -n x` in #(((((
20779 -n*)
20780   case `echo 'xy\c'` in
20781   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20782   xy)  ECHO_C='\c';;
20783   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20784        ECHO_T=' ';;
20785   esac;;
20786 *)
20787   ECHO_N='-n';;
20788 esac
20789
20790 # For backward compatibility with old third-party macros, we provide
20791 # the shell variables $as_echo and $as_echo_n.  New code should use
20792 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20793 as_echo='printf %s\n'
20794 as_echo_n='printf %s'
20795
20796 rm -f conf$$ conf$$.exe conf$$.file
20797 if test -d conf$$.dir; then
20798   rm -f conf$$.dir/conf$$.file
20799 else
20800   rm -f conf$$.dir
20801   mkdir conf$$.dir 2>/dev/null
20802 fi
20803 if (echo >conf$$.file) 2>/dev/null; then
20804   if ln -s conf$$.file conf$$ 2>/dev/null; then
20805     as_ln_s='ln -s'
20806     # ... but there are two gotchas:
20807     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20808     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20809     # In both cases, we have to default to `cp -pR'.
20810     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20811       as_ln_s='cp -pR'
20812   elif ln conf$$.file conf$$ 2>/dev/null; then
20813     as_ln_s=ln
20814   else
20815     as_ln_s='cp -pR'
20816   fi
20817 else
20818   as_ln_s='cp -pR'
20819 fi
20820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20821 rmdir conf$$.dir 2>/dev/null
20822
20823
20824 # as_fn_mkdir_p
20825 # -------------
20826 # Create "$as_dir" as a directory, including parents if necessary.
20827 as_fn_mkdir_p ()
20828 {
20829
20830   case $as_dir in #(
20831   -*) as_dir=./$as_dir;;
20832   esac
20833   test -d "$as_dir" || eval $as_mkdir_p || {
20834     as_dirs=
20835     while :; do
20836       case $as_dir in #(
20837       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20838       *) as_qdir=$as_dir;;
20839       esac
20840       as_dirs="'$as_qdir' $as_dirs"
20841       as_dir=`$as_dirname -- "$as_dir" ||
20842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20843          X"$as_dir" : 'X\(//\)[^/]' \| \
20844          X"$as_dir" : 'X\(//\)$' \| \
20845          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20846 printf "%s\n" X"$as_dir" |
20847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20848             s//\1/
20849             q
20850           }
20851           /^X\(\/\/\)[^/].*/{
20852             s//\1/
20853             q
20854           }
20855           /^X\(\/\/\)$/{
20856             s//\1/
20857             q
20858           }
20859           /^X\(\/\).*/{
20860             s//\1/
20861             q
20862           }
20863           s/.*/./; q'`
20864       test -d "$as_dir" && break
20865     done
20866     test -z "$as_dirs" || eval "mkdir $as_dirs"
20867   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20868
20869
20870 } # as_fn_mkdir_p
20871 if mkdir -p . 2>/dev/null; then
20872   as_mkdir_p='mkdir -p "$as_dir"'
20873 else
20874   test -d ./-p && rmdir ./-p
20875   as_mkdir_p=false
20876 fi
20877
20878
20879 # as_fn_executable_p FILE
20880 # -----------------------
20881 # Test if FILE is an executable regular file.
20882 as_fn_executable_p ()
20883 {
20884   test -f "$1" && test -x "$1"
20885 } # as_fn_executable_p
20886 as_test_x='test -x'
20887 as_executable_p=as_fn_executable_p
20888
20889 # Sed expression to map a string onto a valid CPP name.
20890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20891
20892 # Sed expression to map a string onto a valid variable name.
20893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20894
20895
20896 exec 6>&1
20897 ## ----------------------------------- ##
20898 ## Main body of $CONFIG_STATUS script. ##
20899 ## ----------------------------------- ##
20900 _ASEOF
20901 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20902
20903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20904 # Save the log message, to keep $0 and so on meaningful, and to
20905 # report actual input values of CONFIG_FILES etc. instead of their
20906 # values after options handling.
20907 ac_log="
20908 This file was extended by libcitadel $as_me #define LIBCITADEL_VERSION_NUMBER 996, which was
20909 generated by GNU Autoconf 2.71.  Invocation command line was
20910
20911   CONFIG_FILES    = $CONFIG_FILES
20912   CONFIG_HEADERS  = $CONFIG_HEADERS
20913   CONFIG_LINKS    = $CONFIG_LINKS
20914   CONFIG_COMMANDS = $CONFIG_COMMANDS
20915   $ $0 $@
20916
20917 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20918 "
20919
20920 _ACEOF
20921
20922 case $ac_config_files in *"
20923 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20924 esac
20925
20926 case $ac_config_headers in *"
20927 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20928 esac
20929
20930
20931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20932 # Files that config.status was made for.
20933 config_files="$ac_config_files"
20934 config_headers="$ac_config_headers"
20935
20936 _ACEOF
20937
20938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20939 ac_cs_usage="\
20940 \`$as_me' instantiates files and other configuration actions
20941 from templates according to the current configuration.  Unless the files
20942 and actions are specified as TAGs, all are instantiated by default.
20943
20944 Usage: $0 [OPTION]... [TAG]...
20945
20946   -h, --help       print this help, then exit
20947   -V, --version    print version number and configuration settings, then exit
20948       --config     print configuration, then exit
20949   -q, --quiet, --silent
20950                    do not print progress messages
20951   -d, --debug      don't remove temporary files
20952       --recheck    update $as_me by reconfiguring in the same conditions
20953       --file=FILE[:TEMPLATE]
20954                    instantiate the configuration file FILE
20955       --header=FILE[:TEMPLATE]
20956                    instantiate the configuration header FILE
20957
20958 Configuration files:
20959 $config_files
20960
20961 Configuration headers:
20962 $config_headers
20963
20964 Report bugs to <http://uncensored.citadel.org>."
20965
20966 _ACEOF
20967 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20968 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20970 ac_cs_config='$ac_cs_config_escaped'
20971 ac_cs_version="\\
20972 libcitadel config.status #define LIBCITADEL_VERSION_NUMBER 996
20973 configured by $0, generated by GNU Autoconf 2.71,
20974   with options \\"\$ac_cs_config\\"
20975
20976 Copyright (C) 2021 Free Software Foundation, Inc.
20977 This config.status script is free software; the Free Software Foundation
20978 gives unlimited permission to copy, distribute and modify it."
20979
20980 ac_pwd='$ac_pwd'
20981 srcdir='$srcdir'
20982 INSTALL='$INSTALL'
20983 test -n "\$AWK" || AWK=awk
20984 _ACEOF
20985
20986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20987 # The default lists apply if the user does not specify any file.
20988 ac_need_defaults=:
20989 while test $# != 0
20990 do
20991   case $1 in
20992   --*=?*)
20993     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20994     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20995     ac_shift=:
20996     ;;
20997   --*=)
20998     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20999     ac_optarg=
21000     ac_shift=:
21001     ;;
21002   *)
21003     ac_option=$1
21004     ac_optarg=$2
21005     ac_shift=shift
21006     ;;
21007   esac
21008
21009   case $ac_option in
21010   # Handling of the options.
21011   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21012     ac_cs_recheck=: ;;
21013   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21014     printf "%s\n" "$ac_cs_version"; exit ;;
21015   --config | --confi | --conf | --con | --co | --c )
21016     printf "%s\n" "$ac_cs_config"; exit ;;
21017   --debug | --debu | --deb | --de | --d | -d )
21018     debug=: ;;
21019   --file | --fil | --fi | --f )
21020     $ac_shift
21021     case $ac_optarg in
21022     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21023     '') as_fn_error $? "missing file argument" ;;
21024     esac
21025     as_fn_append CONFIG_FILES " '$ac_optarg'"
21026     ac_need_defaults=false;;
21027   --header | --heade | --head | --hea )
21028     $ac_shift
21029     case $ac_optarg in
21030     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21031     esac
21032     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21033     ac_need_defaults=false;;
21034   --he | --h)
21035     # Conflict between --help and --header
21036     as_fn_error $? "ambiguous option: \`$1'
21037 Try \`$0 --help' for more information.";;
21038   --help | --hel | -h )
21039     printf "%s\n" "$ac_cs_usage"; exit ;;
21040   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21041   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21042     ac_cs_silent=: ;;
21043
21044   # This is an error.
21045   -*) as_fn_error $? "unrecognized option: \`$1'
21046 Try \`$0 --help' for more information." ;;
21047
21048   *) as_fn_append ac_config_targets " $1"
21049      ac_need_defaults=false ;;
21050
21051   esac
21052   shift
21053 done
21054
21055 ac_configure_extra_args=
21056
21057 if $ac_cs_silent; then
21058   exec 6>/dev/null
21059   ac_configure_extra_args="$ac_configure_extra_args --silent"
21060 fi
21061
21062 _ACEOF
21063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21064 if \$ac_cs_recheck; then
21065   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21066   shift
21067   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21068   CONFIG_SHELL='$SHELL'
21069   export CONFIG_SHELL
21070   exec "\$@"
21071 fi
21072
21073 _ACEOF
21074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21075 exec 5>>config.log
21076 {
21077   echo
21078   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21079 ## Running $as_me. ##
21080 _ASBOX
21081   printf "%s\n" "$ac_log"
21082 } >&5
21083
21084 _ACEOF
21085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21086 _ACEOF
21087
21088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21089
21090 # Handling of arguments.
21091 for ac_config_target in $ac_config_targets
21092 do
21093   case $ac_config_target in
21094     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21095     "libcitadel.pc") CONFIG_FILES="$CONFIG_FILES libcitadel.pc" ;;
21096     "sysdep.h") CONFIG_HEADERS="$CONFIG_HEADERS sysdep.h" ;;
21097
21098   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21099   esac
21100 done
21101
21102
21103 # If the user did not use the arguments to specify the items to instantiate,
21104 # then the envvar interface is used.  Set only those that are not.
21105 # We use the long form for the default assignment because of an extremely
21106 # bizarre bug on SunOS 4.1.3.
21107 if $ac_need_defaults; then
21108   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21109   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21110 fi
21111
21112 # Have a temporary directory for convenience.  Make it in the build tree
21113 # simply because there is no reason against having it here, and in addition,
21114 # creating and moving files from /tmp can sometimes cause problems.
21115 # Hook for its removal unless debugging.
21116 # Note that there is a small window in which the directory will not be cleaned:
21117 # after its creation but before its name has been assigned to `$tmp'.
21118 $debug ||
21119 {
21120   tmp= ac_tmp=
21121   trap 'exit_status=$?
21122   : "${ac_tmp:=$tmp}"
21123   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21124 ' 0
21125   trap 'as_fn_exit 1' 1 2 13 15
21126 }
21127 # Create a (secure) tmp directory for tmp files.
21128
21129 {
21130   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21131   test -d "$tmp"
21132 }  ||
21133 {
21134   tmp=./conf$$-$RANDOM
21135   (umask 077 && mkdir "$tmp")
21136 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21137 ac_tmp=$tmp
21138
21139 # Set up the scripts for CONFIG_FILES section.
21140 # No need to generate them if there are no CONFIG_FILES.
21141 # This happens for instance with `./config.status config.h'.
21142 if test -n "$CONFIG_FILES"; then
21143
21144
21145 ac_cr=`echo X | tr X '\015'`
21146 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21147 # But we know of no other shell where ac_cr would be empty at this
21148 # point, so we can use a bashism as a fallback.
21149 if test "x$ac_cr" = x; then
21150   eval ac_cr=\$\'\\r\'
21151 fi
21152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21154   ac_cs_awk_cr='\\r'
21155 else
21156   ac_cs_awk_cr=$ac_cr
21157 fi
21158
21159 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21160 _ACEOF
21161
21162
21163 {
21164   echo "cat >conf$$subs.awk <<_ACEOF" &&
21165   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21166   echo "_ACEOF"
21167 } >conf$$subs.sh ||
21168   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21170 ac_delim='%!_!# '
21171 for ac_last_try in false false false false false :; do
21172   . ./conf$$subs.sh ||
21173     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21174
21175   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21176   if test $ac_delim_n = $ac_delim_num; then
21177     break
21178   elif $ac_last_try; then
21179     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21180   else
21181     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21182   fi
21183 done
21184 rm -f conf$$subs.sh
21185
21186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21188 _ACEOF
21189 sed -n '
21190 h
21191 s/^/S["/; s/!.*/"]=/
21192 p
21193 g
21194 s/^[^!]*!//
21195 :repl
21196 t repl
21197 s/'"$ac_delim"'$//
21198 t delim
21199 :nl
21200 h
21201 s/\(.\{148\}\)..*/\1/
21202 t more1
21203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21204 p
21205 n
21206 b repl
21207 :more1
21208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21209 p
21210 g
21211 s/.\{148\}//
21212 t nl
21213 :delim
21214 h
21215 s/\(.\{148\}\)..*/\1/
21216 t more2
21217 s/["\\]/\\&/g; s/^/"/; s/$/"/
21218 p
21219 b
21220 :more2
21221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21222 p
21223 g
21224 s/.\{148\}//
21225 t delim
21226 ' <conf$$subs.awk | sed '
21227 /^[^""]/{
21228   N
21229   s/\n//
21230 }
21231 ' >>$CONFIG_STATUS || ac_write_fail=1
21232 rm -f conf$$subs.awk
21233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21234 _ACAWK
21235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21236   for (key in S) S_is_set[key] = 1
21237   FS = "\a"
21238
21239 }
21240 {
21241   line = $ 0
21242   nfields = split(line, field, "@")
21243   substed = 0
21244   len = length(field[1])
21245   for (i = 2; i < nfields; i++) {
21246     key = field[i]
21247     keylen = length(key)
21248     if (S_is_set[key]) {
21249       value = S[key]
21250       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21251       len += length(value) + length(field[++i])
21252       substed = 1
21253     } else
21254       len += 1 + keylen
21255   }
21256
21257   print line
21258 }
21259
21260 _ACAWK
21261 _ACEOF
21262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21264   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21265 else
21266   cat
21267 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21268   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21269 _ACEOF
21270
21271 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21272 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21273 # trailing colons and then remove the whole line if VPATH becomes empty
21274 # (actually we leave an empty line to preserve line numbers).
21275 if test "x$srcdir" = x.; then
21276   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21277 h
21278 s///
21279 s/^/:/
21280 s/[      ]*$/:/
21281 s/:\$(srcdir):/:/g
21282 s/:\${srcdir}:/:/g
21283 s/:@srcdir@:/:/g
21284 s/^:*//
21285 s/:*$//
21286 x
21287 s/\(=[   ]*\).*/\1/
21288 G
21289 s/\n//
21290 s/^[^=]*=[       ]*$//
21291 }'
21292 fi
21293
21294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21295 fi # test -n "$CONFIG_FILES"
21296
21297 # Set up the scripts for CONFIG_HEADERS section.
21298 # No need to generate them if there are no CONFIG_HEADERS.
21299 # This happens for instance with `./config.status Makefile'.
21300 if test -n "$CONFIG_HEADERS"; then
21301 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21302 BEGIN {
21303 _ACEOF
21304
21305 # Transform confdefs.h into an awk script `defines.awk', embedded as
21306 # here-document in config.status, that substitutes the proper values into
21307 # config.h.in to produce config.h.
21308
21309 # Create a delimiter string that does not exist in confdefs.h, to ease
21310 # handling of long lines.
21311 ac_delim='%!_!# '
21312 for ac_last_try in false false :; do
21313   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21314   if test -z "$ac_tt"; then
21315     break
21316   elif $ac_last_try; then
21317     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21318   else
21319     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21320   fi
21321 done
21322
21323 # For the awk script, D is an array of macro values keyed by name,
21324 # likewise P contains macro parameters if any.  Preserve backslash
21325 # newline sequences.
21326
21327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21328 sed -n '
21329 s/.\{148\}/&'"$ac_delim"'/g
21330 t rset
21331 :rset
21332 s/^[     ]*#[    ]*define[       ][      ]*/ /
21333 t def
21334 d
21335 :def
21336 s/\\$//
21337 t bsnl
21338 s/["\\]/\\&/g
21339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21340 D["\1"]=" \3"/p
21341 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21342 d
21343 :bsnl
21344 s/["\\]/\\&/g
21345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21346 D["\1"]=" \3\\\\\\n"\\/p
21347 t cont
21348 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21349 t cont
21350 d
21351 :cont
21352 n
21353 s/.\{148\}/&'"$ac_delim"'/g
21354 t clear
21355 :clear
21356 s/\\$//
21357 t bsnlc
21358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21359 d
21360 :bsnlc
21361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21362 b cont
21363 ' <confdefs.h | sed '
21364 s/'"$ac_delim"'/"\\\
21365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21366
21367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21368   for (key in D) D_is_set[key] = 1
21369   FS = "\a"
21370 }
21371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21372   line = \$ 0
21373   split(line, arg, " ")
21374   if (arg[1] == "#") {
21375     defundef = arg[2]
21376     mac1 = arg[3]
21377   } else {
21378     defundef = substr(arg[1], 2)
21379     mac1 = arg[2]
21380   }
21381   split(mac1, mac2, "(") #)
21382   macro = mac2[1]
21383   prefix = substr(line, 1, index(line, defundef) - 1)
21384   if (D_is_set[macro]) {
21385     # Preserve the white space surrounding the "#".
21386     print prefix "define", macro P[macro] D[macro]
21387     next
21388   } else {
21389     # Replace #undef with comments.  This is necessary, for example,
21390     # in the case of _POSIX_SOURCE, which is predefined and required
21391     # on some systems where configure will not decide to define it.
21392     if (defundef == "undef") {
21393       print "/*", prefix defundef, macro, "*/"
21394       next
21395     }
21396   }
21397 }
21398 { print }
21399 _ACAWK
21400 _ACEOF
21401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21402   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21403 fi # test -n "$CONFIG_HEADERS"
21404
21405
21406 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
21407 shift
21408 for ac_tag
21409 do
21410   case $ac_tag in
21411   :[FHLC]) ac_mode=$ac_tag; continue;;
21412   esac
21413   case $ac_mode$ac_tag in
21414   :[FHL]*:*);;
21415   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21416   :[FH]-) ac_tag=-:-;;
21417   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21418   esac
21419   ac_save_IFS=$IFS
21420   IFS=:
21421   set x $ac_tag
21422   IFS=$ac_save_IFS
21423   shift
21424   ac_file=$1
21425   shift
21426
21427   case $ac_mode in
21428   :L) ac_source=$1;;
21429   :[FH])
21430     ac_file_inputs=
21431     for ac_f
21432     do
21433       case $ac_f in
21434       -) ac_f="$ac_tmp/stdin";;
21435       *) # Look for the file first in the build tree, then in the source tree
21436          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21437          # because $ac_f cannot contain `:'.
21438          test -f "$ac_f" ||
21439            case $ac_f in
21440            [\\/$]*) false;;
21441            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21442            esac ||
21443            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21444       esac
21445       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21446       as_fn_append ac_file_inputs " '$ac_f'"
21447     done
21448
21449     # Let's still pretend it is `configure' which instantiates (i.e., don't
21450     # use $as_me), people would be surprised to read:
21451     #    /* config.h.  Generated by config.status.  */
21452     configure_input='Generated from '`
21453           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21454         `' by configure.'
21455     if test x"$ac_file" != x-; then
21456       configure_input="$ac_file.  $configure_input"
21457       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21458 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21459     fi
21460     # Neutralize special characters interpreted by sed in replacement strings.
21461     case $configure_input in #(
21462     *\&* | *\|* | *\\* )
21463        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21464        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21465     *) ac_sed_conf_input=$configure_input;;
21466     esac
21467
21468     case $ac_tag in
21469     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21470       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21471     esac
21472     ;;
21473   esac
21474
21475   ac_dir=`$as_dirname -- "$ac_file" ||
21476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21477          X"$ac_file" : 'X\(//\)[^/]' \| \
21478          X"$ac_file" : 'X\(//\)$' \| \
21479          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21480 printf "%s\n" X"$ac_file" |
21481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21482             s//\1/
21483             q
21484           }
21485           /^X\(\/\/\)[^/].*/{
21486             s//\1/
21487             q
21488           }
21489           /^X\(\/\/\)$/{
21490             s//\1/
21491             q
21492           }
21493           /^X\(\/\).*/{
21494             s//\1/
21495             q
21496           }
21497           s/.*/./; q'`
21498   as_dir="$ac_dir"; as_fn_mkdir_p
21499   ac_builddir=.
21500
21501 case "$ac_dir" in
21502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21503 *)
21504   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21505   # A ".." for each directory in $ac_dir_suffix.
21506   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21507   case $ac_top_builddir_sub in
21508   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21509   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21510   esac ;;
21511 esac
21512 ac_abs_top_builddir=$ac_pwd
21513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21514 # for backward compatibility:
21515 ac_top_builddir=$ac_top_build_prefix
21516
21517 case $srcdir in
21518   .)  # We are building in place.
21519     ac_srcdir=.
21520     ac_top_srcdir=$ac_top_builddir_sub
21521     ac_abs_top_srcdir=$ac_pwd ;;
21522   [\\/]* | ?:[\\/]* )  # Absolute name.
21523     ac_srcdir=$srcdir$ac_dir_suffix;
21524     ac_top_srcdir=$srcdir
21525     ac_abs_top_srcdir=$srcdir ;;
21526   *) # Relative name.
21527     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21528     ac_top_srcdir=$ac_top_build_prefix$srcdir
21529     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21530 esac
21531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21532
21533
21534   case $ac_mode in
21535   :F)
21536   #
21537   # CONFIG_FILE
21538   #
21539
21540   case $INSTALL in
21541   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21542   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21543   esac
21544 _ACEOF
21545
21546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21547 # If the template does not know about datarootdir, expand it.
21548 # FIXME: This hack should be removed a few years after 2.60.
21549 ac_datarootdir_hack=; ac_datarootdir_seen=
21550 ac_sed_dataroot='
21551 /datarootdir/ {
21552   p
21553   q
21554 }
21555 /@datadir@/p
21556 /@docdir@/p
21557 /@infodir@/p
21558 /@localedir@/p
21559 /@mandir@/p'
21560 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21561 *datarootdir*) ac_datarootdir_seen=yes;;
21562 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21563   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21564 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21565 _ACEOF
21566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21567   ac_datarootdir_hack='
21568   s&@datadir@&$datadir&g
21569   s&@docdir@&$docdir&g
21570   s&@infodir@&$infodir&g
21571   s&@localedir@&$localedir&g
21572   s&@mandir@&$mandir&g
21573   s&\\\${datarootdir}&$datarootdir&g' ;;
21574 esac
21575 _ACEOF
21576
21577 # Neutralize VPATH when `$srcdir' = `.'.
21578 # Shell code in configure.ac might set extrasub.
21579 # FIXME: do we really want to maintain this feature?
21580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21581 ac_sed_extra="$ac_vpsub
21582 $extrasub
21583 _ACEOF
21584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21585 :t
21586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21587 s|@configure_input@|$ac_sed_conf_input|;t t
21588 s&@top_builddir@&$ac_top_builddir_sub&;t t
21589 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21590 s&@srcdir@&$ac_srcdir&;t t
21591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21592 s&@top_srcdir@&$ac_top_srcdir&;t t
21593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21594 s&@builddir@&$ac_builddir&;t t
21595 s&@abs_builddir@&$ac_abs_builddir&;t t
21596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21597 s&@INSTALL@&$ac_INSTALL&;t t
21598 $ac_datarootdir_hack
21599 "
21600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21601   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21602
21603 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21604   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21605   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21606       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21608 which seems to be undefined.  Please make sure it is defined" >&5
21609 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21610 which seems to be undefined.  Please make sure it is defined" >&2;}
21611
21612   rm -f "$ac_tmp/stdin"
21613   case $ac_file in
21614   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21615   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21616   esac \
21617   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21618  ;;
21619   :H)
21620   #
21621   # CONFIG_HEADER
21622   #
21623   if test x"$ac_file" != x-; then
21624     {
21625       printf "%s\n" "/* $configure_input  */" >&1 \
21626       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21627     } >"$ac_tmp/config.h" \
21628       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21629     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21630       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21631 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21632     else
21633       rm -f "$ac_file"
21634       mv "$ac_tmp/config.h" "$ac_file" \
21635         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21636     fi
21637   else
21638     printf "%s\n" "/* $configure_input  */" >&1 \
21639       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21640       || as_fn_error $? "could not create -" "$LINENO" 5
21641   fi
21642  ;;
21643
21644
21645   esac
21646
21647 done # for ac_tag
21648
21649
21650 as_fn_exit 0
21651 _ACEOF
21652 ac_clean_files=$ac_clean_files_save
21653
21654 test $ac_write_fail = 0 ||
21655   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21656
21657
21658 # configure is writing to config.log, and then calls config.status.
21659 # config.status does its own redirection, appending to config.log.
21660 # Unfortunately, on DOS this fails, as config.log is still kept open
21661 # by configure, so config.status won't be able to write to it; its
21662 # output is simply discarded.  So we exec the FD to /dev/null,
21663 # effectively closing config.log, so it can be properly (re)opened and
21664 # appended to by config.status.  When coming back to configure, we
21665 # need to make the FD available again.
21666 if test "$no_create" != yes; then
21667   ac_cs_success=:
21668   ac_config_status_args=
21669   test "$silent" = yes &&
21670     ac_config_status_args="$ac_config_status_args --quiet"
21671   exec 5>/dev/null
21672   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21673   exec 5>>config.log
21674   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21675   # would make configure fail if this is the last instruction.
21676   $ac_cs_success || as_fn_exit 1
21677 fi
21678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21680 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21681 fi
21682
21683
21684 abs_srcdir="`cd $srcdir && pwd`"
21685 abs_builddir="`pwd`"
21686 if test "$abs_srcdir" != "$abs_builddir"; then
21687   make mkdir-init
21688 fi
21689 echo 'zlib compression:                ' $ok_zlib
21690 echo 'Character set conversion support:' $ok_iconv
21691