OSDN Git Service

* Fixed bug.
[modchxj/mod_chxj.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.8.3-1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='mod_chxj'
728 PACKAGE_TARNAME='mod_chxj'
729 PACKAGE_VERSION='0.8.3-1'
730 PACKAGE_STRING='mod_chxj 0.8.3-1'
731 PACKAGE_BUGREPORT=''
732
733 ac_unique_file="src/mod_chxj.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 build
808 build_cpu
809 build_vendor
810 build_os
811 host
812 host_cpu
813 host_vendor
814 host_os
815 target
816 target_cpu
817 target_vendor
818 target_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 CC
841 CFLAGS
842 LDFLAGS
843 CPPFLAGS
844 ac_ct_CC
845 EXEEXT
846 OBJEXT
847 DEPDIR
848 am__include
849 am__quote
850 AMDEP_TRUE
851 AMDEP_FALSE
852 AMDEPBACKSLASH
853 CCDEPMODE
854 am__fastdepCC_TRUE
855 am__fastdepCC_FALSE
856 GREP
857 EGREP
858 LN_S
859 ECHO
860 AR
861 RANLIB
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 APXS
875 WAND_CONFIG
876 APR_CONFIG
877 APR_1_CONFIG
878 APU_CONFIG
879 APU_1_CONFIG
880 with_apache_header
881 QDEFS
882 DDEFS
883 LIBOBJS
884 LTLIBOBJS'
885 ac_subst_files=''
886       ac_precious_vars='build_alias
887 host_alias
888 target_alias
889 CC
890 CFLAGS
891 LDFLAGS
892 LIBS
893 CPPFLAGS
894 CPP
895 CXX
896 CXXFLAGS
897 CCC
898 CXXCPP
899 F77
900 FFLAGS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
959
960   case $ac_option in
961   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *)    ac_optarg=yes ;;
963   esac
964
965   # Accept the important Cygnus configure options, so we can diagnose typos.
966
967   case $ac_dashdash$ac_option in
968   --)
969     ac_dashdash=yes ;;
970
971   -bindir | --bindir | --bindi | --bind | --bin | --bi)
972     ac_prev=bindir ;;
973   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974     bindir=$ac_optarg ;;
975
976   -build | --build | --buil | --bui | --bu)
977     ac_prev=build_alias ;;
978   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979     build_alias=$ac_optarg ;;
980
981   -cache-file | --cache-file | --cache-fil | --cache-fi \
982   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983     ac_prev=cache_file ;;
984   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986     cache_file=$ac_optarg ;;
987
988   --config-cache | -C)
989     cache_file=config.cache ;;
990
991   -datadir | --datadir | --datadi | --datad)
992     ac_prev=datadir ;;
993   -datadir=* | --datadir=* | --datadi=* | --datad=*)
994     datadir=$ac_optarg ;;
995
996   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997   | --dataroo | --dataro | --datar)
998     ac_prev=datarootdir ;;
999   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001     datarootdir=$ac_optarg ;;
1002
1003   -disable-* | --disable-*)
1004     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008    { (exit 1); exit 1; }; }
1009     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010     eval enable_$ac_feature=no ;;
1011
1012   -docdir | --docdir | --docdi | --doc | --do)
1013     ac_prev=docdir ;;
1014   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015     docdir=$ac_optarg ;;
1016
1017   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018     ac_prev=dvidir ;;
1019   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020     dvidir=$ac_optarg ;;
1021
1022   -enable-* | --enable-*)
1023     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027    { (exit 1); exit 1; }; }
1028     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029     eval enable_$ac_feature=\$ac_optarg ;;
1030
1031   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033   | --exec | --exe | --ex)
1034     ac_prev=exec_prefix ;;
1035   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037   | --exec=* | --exe=* | --ex=*)
1038     exec_prefix=$ac_optarg ;;
1039
1040   -gas | --gas | --ga | --g)
1041     # Obsolete; use --with-gas.
1042     with_gas=yes ;;
1043
1044   -help | --help | --hel | --he | -h)
1045     ac_init_help=long ;;
1046   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047     ac_init_help=recursive ;;
1048   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049     ac_init_help=short ;;
1050
1051   -host | --host | --hos | --ho)
1052     ac_prev=host_alias ;;
1053   -host=* | --host=* | --hos=* | --ho=*)
1054     host_alias=$ac_optarg ;;
1055
1056   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057     ac_prev=htmldir ;;
1058   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059   | --ht=*)
1060     htmldir=$ac_optarg ;;
1061
1062   -includedir | --includedir | --includedi | --included | --include \
1063   | --includ | --inclu | --incl | --inc)
1064     ac_prev=includedir ;;
1065   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066   | --includ=* | --inclu=* | --incl=* | --inc=*)
1067     includedir=$ac_optarg ;;
1068
1069   -infodir | --infodir | --infodi | --infod | --info | --inf)
1070     ac_prev=infodir ;;
1071   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072     infodir=$ac_optarg ;;
1073
1074   -libdir | --libdir | --libdi | --libd)
1075     ac_prev=libdir ;;
1076   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077     libdir=$ac_optarg ;;
1078
1079   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080   | --libexe | --libex | --libe)
1081     ac_prev=libexecdir ;;
1082   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083   | --libexe=* | --libex=* | --libe=*)
1084     libexecdir=$ac_optarg ;;
1085
1086   -localedir | --localedir | --localedi | --localed | --locale)
1087     ac_prev=localedir ;;
1088   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089     localedir=$ac_optarg ;;
1090
1091   -localstatedir | --localstatedir | --localstatedi | --localstated \
1092   | --localstate | --localstat | --localsta | --localst | --locals)
1093     ac_prev=localstatedir ;;
1094   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096     localstatedir=$ac_optarg ;;
1097
1098   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099     ac_prev=mandir ;;
1100   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101     mandir=$ac_optarg ;;
1102
1103   -nfp | --nfp | --nf)
1104     # Obsolete; use --without-fp.
1105     with_fp=no ;;
1106
1107   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108   | --no-cr | --no-c | -n)
1109     no_create=yes ;;
1110
1111   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113     no_recursion=yes ;;
1114
1115   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117   | --oldin | --oldi | --old | --ol | --o)
1118     ac_prev=oldincludedir ;;
1119   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122     oldincludedir=$ac_optarg ;;
1123
1124   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125     ac_prev=prefix ;;
1126   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127     prefix=$ac_optarg ;;
1128
1129   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130   | --program-pre | --program-pr | --program-p)
1131     ac_prev=program_prefix ;;
1132   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134     program_prefix=$ac_optarg ;;
1135
1136   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137   | --program-suf | --program-su | --program-s)
1138     ac_prev=program_suffix ;;
1139   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141     program_suffix=$ac_optarg ;;
1142
1143   -program-transform-name | --program-transform-name \
1144   | --program-transform-nam | --program-transform-na \
1145   | --program-transform-n | --program-transform- \
1146   | --program-transform | --program-transfor \
1147   | --program-transfo | --program-transf \
1148   | --program-trans | --program-tran \
1149   | --progr-tra | --program-tr | --program-t)
1150     ac_prev=program_transform_name ;;
1151   -program-transform-name=* | --program-transform-name=* \
1152   | --program-transform-nam=* | --program-transform-na=* \
1153   | --program-transform-n=* | --program-transform-=* \
1154   | --program-transform=* | --program-transfor=* \
1155   | --program-transfo=* | --program-transf=* \
1156   | --program-trans=* | --program-tran=* \
1157   | --progr-tra=* | --program-tr=* | --program-t=*)
1158     program_transform_name=$ac_optarg ;;
1159
1160   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161     ac_prev=pdfdir ;;
1162   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163     pdfdir=$ac_optarg ;;
1164
1165   -psdir | --psdir | --psdi | --psd | --ps)
1166     ac_prev=psdir ;;
1167   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168     psdir=$ac_optarg ;;
1169
1170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171   | -silent | --silent | --silen | --sile | --sil)
1172     silent=yes ;;
1173
1174   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175     ac_prev=sbindir ;;
1176   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177   | --sbi=* | --sb=*)
1178     sbindir=$ac_optarg ;;
1179
1180   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182   | --sharedst | --shareds | --shared | --share | --shar \
1183   | --sha | --sh)
1184     ac_prev=sharedstatedir ;;
1185   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188   | --sha=* | --sh=*)
1189     sharedstatedir=$ac_optarg ;;
1190
1191   -site | --site | --sit)
1192     ac_prev=site ;;
1193   -site=* | --site=* | --sit=*)
1194     site=$ac_optarg ;;
1195
1196   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197     ac_prev=srcdir ;;
1198   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199     srcdir=$ac_optarg ;;
1200
1201   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202   | --syscon | --sysco | --sysc | --sys | --sy)
1203     ac_prev=sysconfdir ;;
1204   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206     sysconfdir=$ac_optarg ;;
1207
1208   -target | --target | --targe | --targ | --tar | --ta | --t)
1209     ac_prev=target_alias ;;
1210   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211     target_alias=$ac_optarg ;;
1212
1213   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214     verbose=yes ;;
1215
1216   -version | --version | --versio | --versi | --vers | -V)
1217     ac_init_version=: ;;
1218
1219   -with-* | --with-*)
1220     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       { echo "$as_me: error: invalid package name: $ac_package" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226     eval with_$ac_package=\$ac_optarg ;;
1227
1228   -without-* | --without-*)
1229     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       { echo "$as_me: error: invalid package name: $ac_package" >&2
1233    { (exit 1); exit 1; }; }
1234     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235     eval with_$ac_package=no ;;
1236
1237   --x)
1238     # Obsolete; use --with-x.
1239     with_x=yes ;;
1240
1241   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242   | --x-incl | --x-inc | --x-in | --x-i)
1243     ac_prev=x_includes ;;
1244   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246     x_includes=$ac_optarg ;;
1247
1248   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250     ac_prev=x_libraries ;;
1251   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253     x_libraries=$ac_optarg ;;
1254
1255   -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257    { (exit 1); exit 1; }; }
1258     ;;
1259
1260   *=*)
1261     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265    { (exit 1); exit 1; }; }
1266     eval $ac_envvar=\$ac_optarg
1267     export $ac_envvar ;;
1268
1269   *)
1270     # FIXME: should be removed in autoconf 3.0.
1271     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275     ;;
1276
1277   esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282   { echo "$as_me: error: missing argument to $ac_option" >&2
1283    { (exit 1); exit 1; }; }
1284 fi
1285
1286 # Be sure to have absolute directory names.
1287 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288                 datadir sysconfdir sharedstatedir localstatedir includedir \
1289                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290                 libdir localedir mandir
1291 do
1292   eval ac_val=\$$ac_var
1293   case $ac_val in
1294     [\\/$]* | ?:[\\/]* )  continue;;
1295     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296   esac
1297   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298    { (exit 1); exit 1; }; }
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310   if test "x$build_alias" = x; then
1311     cross_compiling=maybe
1312     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313     If a cross compiler is detected then cross compile mode will be used." >&2
1314   elif test "x$build_alias" != "x$host_alias"; then
1315     cross_compiling=yes
1316   fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328   { echo "$as_me: error: Working directory cannot be determined" >&2
1329    { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331   { echo "$as_me: error: pwd does not report name of working directory" >&2
1332    { (exit 1); exit 1; }; }
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337   ac_srcdir_defaulted=yes
1338   # Try the directory containing this script, then the parent directory.
1339   ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341          X"$0" : 'X\(//\)[^/]' \| \
1342          X"$0" : 'X\(//\)$' \| \
1343          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 echo X"$0" |
1345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)[^/].*/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\).*/{
1358             s//\1/
1359             q
1360           }
1361           s/.*/./; q'`
1362   srcdir=$ac_confdir
1363   if test ! -r "$srcdir/$ac_unique_file"; then
1364     srcdir=..
1365   fi
1366 else
1367   ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372    { (exit 1); exit 1; }; }
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377    { (exit 1); exit 1; }; }
1378         pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381   srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_env_${ac_var}_value=\$${ac_var}
1392   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400   # Omit some internal or obsolete options to make the list less imposing.
1401   # This message is too long to be a string in the A/UX 3.1 sh.
1402   cat <<_ACEOF
1403 \`configure' configures mod_chxj 0.8.3-1 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413   -h, --help              display this help and exit
1414       --help=short        display options specific to this package
1415       --help=recursive    display the short help of all the included packages
1416   -V, --version           display version information and exit
1417   -q, --quiet, --silent   do not print \`checking...' messages
1418       --cache-file=FILE   cache test results in FILE [disabled]
1419   -C, --config-cache      alias for \`--cache-file=config.cache'
1420   -n, --no-create         do not create output files
1421       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424   --prefix=PREFIX         install architecture-independent files in PREFIX
1425                           [$ac_default_prefix]
1426   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                           [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437   --bindir=DIR           user executables [EPREFIX/bin]
1438   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1439   --libexecdir=DIR       program executables [EPREFIX/libexec]
1440   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1441   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1442   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1443   --libdir=DIR           object code libraries [EPREFIX/lib]
1444   --includedir=DIR       C header files [PREFIX/include]
1445   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1446   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1447   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1448   --infodir=DIR          info documentation [DATAROOTDIR/info]
1449   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1450   --mandir=DIR           man documentation [DATAROOTDIR/man]
1451   --docdir=DIR           documentation root [DATAROOTDIR/doc/mod_chxj]
1452   --htmldir=DIR          html documentation [DOCDIR]
1453   --dvidir=DIR           dvi documentation [DOCDIR]
1454   --pdfdir=DIR           pdf documentation [DOCDIR]
1455   --psdir=DIR            ps documentation [DOCDIR]
1456 _ACEOF
1457
1458   cat <<\_ACEOF
1459
1460 Program names:
1461   --program-prefix=PREFIX            prepend PREFIX to installed program names
1462   --program-suffix=SUFFIX            append SUFFIX to installed program names
1463   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464
1465 System types:
1466   --build=BUILD     configure for building on BUILD [guessed]
1467   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1468   --target=TARGET   configure for building compilers for TARGET [HOST]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473   case $ac_init_help in
1474      short | recursive ) echo "Configuration of mod_chxj 0.8.3-1:";;
1475    esac
1476   cat <<\_ACEOF
1477
1478 Optional Features:
1479   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481   --disable-dependency-tracking  speeds up one-time build
1482   --enable-dependency-tracking   do not reject slow dependency extractors
1483   --enable-shared[=PKGS]  build shared libraries [default=yes]
1484   --enable-static[=PKGS]  build static libraries [default=yes]
1485   --enable-fast-install[=PKGS]
1486                           optimize for fast installation [default=yes]
1487   --disable-libtool-lock  avoid locking (might break parallel builds)
1488   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1489 source by the automatic operation.
1490   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1491
1492 Optional Packages:
1493   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1494   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1495   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1496   --with-pic              try to use only PIC/non-PIC objects [default=use
1497                           both]
1498   --with-tags[=TAGS]      include additional configurations [automatic]
1499   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1500   --with-apxs=ARG Path of apxs program file.
1501   --with-apr-config=ARG  Path of apr-config program file.
1502   --with-apu-config=ARG  Path of apu-config program file.
1503   --with-iconv=ARG  specify the place of the libiconv directory.
1504   --with-iconv_hook=ARG  specify the place of the libiconv_hook directory.
1505
1506 Some influential environment variables:
1507   CC          C compiler command
1508   CFLAGS      C compiler flags
1509   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1510               nonstandard directory <lib dir>
1511   LIBS        libraries to pass to the linker, e.g. -l<library>
1512   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513               you have headers in a nonstandard directory <include dir>
1514   CPP         C preprocessor
1515   CXX         C++ compiler command
1516   CXXFLAGS    C++ compiler flags
1517   CXXCPP      C++ preprocessor
1518   F77         Fortran 77 compiler command
1519   FFLAGS      Fortran 77 compiler flags
1520
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1523
1524 _ACEOF
1525 ac_status=$?
1526 fi
1527
1528 if test "$ac_init_help" = "recursive"; then
1529   # If there are subdirs, report their specific --help.
1530   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531     test -d "$ac_dir" || continue
1532     ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1538   # A ".." for each directory in $ac_dir_suffix.
1539   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1540   case $ac_top_builddir_sub in
1541   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543   esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551   .)  # We are building in place.
1552     ac_srcdir=.
1553     ac_top_srcdir=$ac_top_builddir_sub
1554     ac_abs_top_srcdir=$ac_pwd ;;
1555   [\\/]* | ?:[\\/]* )  # Absolute name.
1556     ac_srcdir=$srcdir$ac_dir_suffix;
1557     ac_top_srcdir=$srcdir
1558     ac_abs_top_srcdir=$srcdir ;;
1559   *) # Relative name.
1560     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561     ac_top_srcdir=$ac_top_build_prefix$srcdir
1562     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566     cd "$ac_dir" || { ac_status=$?; continue; }
1567     # Check for guested configure.
1568     if test -f "$ac_srcdir/configure.gnu"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571     elif test -f "$ac_srcdir/configure"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure" --help=recursive
1574     else
1575       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576     fi || ac_status=$?
1577     cd "$ac_pwd" || { ac_status=$?; break; }
1578   done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583   cat <<\_ACEOF
1584 mod_chxj configure 0.8.3-1
1585 generated by GNU Autoconf 2.61
1586
1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1588 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591 _ACEOF
1592   exit
1593 fi
1594 cat >config.log <<_ACEOF
1595 This file contains any messages produced by compilers while
1596 running configure, to aid debugging if configure makes a mistake.
1597
1598 It was created by mod_chxj $as_me 0.8.3-1, which was
1599 generated by GNU Autoconf 2.61.  Invocation command line was
1600
1601   $ $0 $@
1602
1603 _ACEOF
1604 exec 5>>config.log
1605 {
1606 cat <<_ASUNAME
1607 ## --------- ##
1608 ## Platform. ##
1609 ## --------- ##
1610
1611 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1612 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1613 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1614 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1615 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616
1617 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1618 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1619
1620 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1621 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1622 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1623 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1624 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1625 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1626 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1627
1628 _ASUNAME
1629
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   echo "PATH: $as_dir"
1636 done
1637 IFS=$as_save_IFS
1638
1639 } >&5
1640
1641 cat >&5 <<_ACEOF
1642
1643
1644 ## ----------- ##
1645 ## Core tests. ##
1646 ## ----------- ##
1647
1648 _ACEOF
1649
1650
1651 # Keep a trace of the command line.
1652 # Strip out --no-create and --no-recursion so they do not pile up.
1653 # Strip out --silent because we don't want to record it for future runs.
1654 # Also quote any args containing shell meta-characters.
1655 # Make two passes to allow for proper duplicate-argument suppression.
1656 ac_configure_args=
1657 ac_configure_args0=
1658 ac_configure_args1=
1659 ac_must_keep_next=false
1660 for ac_pass in 1 2
1661 do
1662   for ac_arg
1663   do
1664     case $ac_arg in
1665     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1666     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1667     | -silent | --silent | --silen | --sile | --sil)
1668       continue ;;
1669     *\'*)
1670       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1671     esac
1672     case $ac_pass in
1673     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674     2)
1675       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1676       if test $ac_must_keep_next = true; then
1677         ac_must_keep_next=false # Got value, back to normal.
1678       else
1679         case $ac_arg in
1680           *=* | --config-cache | -C | -disable-* | --disable-* \
1681           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1682           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1683           | -with-* | --with-* | -without-* | --without-* | --x)
1684             case "$ac_configure_args0 " in
1685               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686             esac
1687             ;;
1688           -* ) ac_must_keep_next=true ;;
1689         esac
1690       fi
1691       ac_configure_args="$ac_configure_args '$ac_arg'"
1692       ;;
1693     esac
1694   done
1695 done
1696 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1697 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698
1699 # When interrupted or exit'd, cleanup temporary files, and complete
1700 # config.log.  We remove comments because anyway the quotes in there
1701 # would cause problems or look ugly.
1702 # WARNING: Use '\'' to represent an apostrophe within the trap.
1703 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1704 trap 'exit_status=$?
1705   # Save into config.log some information that might help in debugging.
1706   {
1707     echo
1708
1709     cat <<\_ASBOX
1710 ## ---------------- ##
1711 ## Cache variables. ##
1712 ## ---------------- ##
1713 _ASBOX
1714     echo
1715     # The following way of writing the cache mishandles newlines in values,
1716 (
1717   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1718     eval ac_val=\$$ac_var
1719     case $ac_val in #(
1720     *${as_nl}*)
1721       case $ac_var in #(
1722       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1723 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1724       esac
1725       case $ac_var in #(
1726       _ | IFS | as_nl) ;; #(
1727       *) $as_unset $ac_var ;;
1728       esac ;;
1729     esac
1730   done
1731   (set) 2>&1 |
1732     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1733     *${as_nl}ac_space=\ *)
1734       sed -n \
1735         "s/'\''/'\''\\\\'\'''\''/g;
1736           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1737       ;; #(
1738     *)
1739       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1740       ;;
1741     esac |
1742     sort
1743 )
1744     echo
1745
1746     cat <<\_ASBOX
1747 ## ----------------- ##
1748 ## Output variables. ##
1749 ## ----------------- ##
1750 _ASBOX
1751     echo
1752     for ac_var in $ac_subst_vars
1753     do
1754       eval ac_val=\$$ac_var
1755       case $ac_val in
1756       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757       esac
1758       echo "$ac_var='\''$ac_val'\''"
1759     done | sort
1760     echo
1761
1762     if test -n "$ac_subst_files"; then
1763       cat <<\_ASBOX
1764 ## ------------------- ##
1765 ## File substitutions. ##
1766 ## ------------------- ##
1767 _ASBOX
1768       echo
1769       for ac_var in $ac_subst_files
1770       do
1771         eval ac_val=\$$ac_var
1772         case $ac_val in
1773         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774         esac
1775         echo "$ac_var='\''$ac_val'\''"
1776       done | sort
1777       echo
1778     fi
1779
1780     if test -s confdefs.h; then
1781       cat <<\_ASBOX
1782 ## ----------- ##
1783 ## confdefs.h. ##
1784 ## ----------- ##
1785 _ASBOX
1786       echo
1787       cat confdefs.h
1788       echo
1789     fi
1790     test "$ac_signal" != 0 &&
1791       echo "$as_me: caught signal $ac_signal"
1792     echo "$as_me: exit $exit_status"
1793   } >&5
1794   rm -f core *.core core.conftest.* &&
1795     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1796     exit $exit_status
1797 ' 0
1798 for ac_signal in 1 2 13 15; do
1799   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1800 done
1801 ac_signal=0
1802
1803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1804 rm -f -r conftest* confdefs.h
1805
1806 # Predefined preprocessor variables.
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_NAME "$PACKAGE_NAME"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_STRING "$PACKAGE_STRING"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1830 _ACEOF
1831
1832
1833 # Let the site file select an alternate cache file if it wants to.
1834 # Prefer explicitly selected file to automatically selected ones.
1835 if test -n "$CONFIG_SITE"; then
1836   set x "$CONFIG_SITE"
1837 elif test "x$prefix" != xNONE; then
1838   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 else
1840   set x "$ac_default_prefix/share/config.site" \
1841         "$ac_default_prefix/etc/config.site"
1842 fi
1843 shift
1844 for ac_site_file
1845 do
1846   if test -r "$ac_site_file"; then
1847     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1848 echo "$as_me: loading site script $ac_site_file" >&6;}
1849     sed 's/^/| /' "$ac_site_file" >&5
1850     . "$ac_site_file"
1851   fi
1852 done
1853
1854 if test -r "$cache_file"; then
1855   # Some versions of bash will fail to source /dev/null (special
1856   # files actually), so we avoid doing that.
1857   if test -f "$cache_file"; then
1858     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1859 echo "$as_me: loading cache $cache_file" >&6;}
1860     case $cache_file in
1861       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1862       *)                      . "./$cache_file";;
1863     esac
1864   fi
1865 else
1866   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1867 echo "$as_me: creating cache $cache_file" >&6;}
1868   >$cache_file
1869 fi
1870
1871 # Check that the precious variables saved in the cache have kept the same
1872 # value.
1873 ac_cache_corrupted=false
1874 for ac_var in $ac_precious_vars; do
1875   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1876   eval ac_new_set=\$ac_env_${ac_var}_set
1877   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1878   eval ac_new_val=\$ac_env_${ac_var}_value
1879   case $ac_old_set,$ac_new_set in
1880     set,)
1881       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1883       ac_cache_corrupted=: ;;
1884     ,set)
1885       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1887       ac_cache_corrupted=: ;;
1888     ,);;
1889     *)
1890       if test "x$ac_old_val" != "x$ac_new_val"; then
1891         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1892 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1893         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1894 echo "$as_me:   former value:  $ac_old_val" >&2;}
1895         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1896 echo "$as_me:   current value: $ac_new_val" >&2;}
1897         ac_cache_corrupted=:
1898       fi;;
1899   esac
1900   # Pass precious variables to config.status.
1901   if test "$ac_new_set" = set; then
1902     case $ac_new_val in
1903     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1904     *) ac_arg=$ac_var=$ac_new_val ;;
1905     esac
1906     case " $ac_configure_args " in
1907       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1908       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1909     esac
1910   fi
1911 done
1912 if $ac_cache_corrupted; then
1913   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1914 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1915   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1916 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1917    { (exit 1); exit 1; }; }
1918 fi
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951
1952
1953 ac_aux_dir=
1954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1955   if test -f "$ac_dir/install-sh"; then
1956     ac_aux_dir=$ac_dir
1957     ac_install_sh="$ac_aux_dir/install-sh -c"
1958     break
1959   elif test -f "$ac_dir/install.sh"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/install.sh -c"
1962     break
1963   elif test -f "$ac_dir/shtool"; then
1964     ac_aux_dir=$ac_dir
1965     ac_install_sh="$ac_aux_dir/shtool install -c"
1966     break
1967   fi
1968 done
1969 if test -z "$ac_aux_dir"; then
1970   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1971 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1972    { (exit 1); exit 1; }; }
1973 fi
1974
1975 # These three variables are undocumented and unsupported,
1976 # and are intended to be withdrawn in a future Autoconf release.
1977 # They can cause serious problems if a builder's source tree is in a directory
1978 # whose full name contains unusual characters.
1979 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1980 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1981 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1982
1983
1984 # Make sure we can run config.sub.
1985 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1986   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1987 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1988    { (exit 1); exit 1; }; }
1989
1990 { echo "$as_me:$LINENO: checking build system type" >&5
1991 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1992 if test "${ac_cv_build+set}" = set; then
1993   echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995   ac_build_alias=$build_alias
1996 test "x$ac_build_alias" = x &&
1997   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1998 test "x$ac_build_alias" = x &&
1999   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2000 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2001    { (exit 1); exit 1; }; }
2002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2003   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2004 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2005    { (exit 1); exit 1; }; }
2006
2007 fi
2008 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2009 echo "${ECHO_T}$ac_cv_build" >&6; }
2010 case $ac_cv_build in
2011 *-*-*) ;;
2012 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2013 echo "$as_me: error: invalid value of canonical build" >&2;}
2014    { (exit 1); exit 1; }; };;
2015 esac
2016 build=$ac_cv_build
2017 ac_save_IFS=$IFS; IFS='-'
2018 set x $ac_cv_build
2019 shift
2020 build_cpu=$1
2021 build_vendor=$2
2022 shift; shift
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2025 build_os=$*
2026 IFS=$ac_save_IFS
2027 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2028
2029
2030 { echo "$as_me:$LINENO: checking host system type" >&5
2031 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2032 if test "${ac_cv_host+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test "x$host_alias" = x; then
2036   ac_cv_host=$ac_cv_build
2037 else
2038   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2039     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 fi
2045 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2046 echo "${ECHO_T}$ac_cv_host" >&6; }
2047 case $ac_cv_host in
2048 *-*-*) ;;
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2050 echo "$as_me: error: invalid value of canonical host" >&2;}
2051    { (exit 1); exit 1; }; };;
2052 esac
2053 host=$ac_cv_host
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_host
2056 shift
2057 host_cpu=$1
2058 host_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 host_os=$*
2063 IFS=$ac_save_IFS
2064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2065
2066
2067 { echo "$as_me:$LINENO: checking target system type" >&5
2068 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_target+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test "x$target_alias" = x; then
2073   ac_cv_target=$ac_cv_host
2074 else
2075   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2076     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081 fi
2082 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2083 echo "${ECHO_T}$ac_cv_target" >&6; }
2084 case $ac_cv_target in
2085 *-*-*) ;;
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2087 echo "$as_me: error: invalid value of canonical target" >&2;}
2088    { (exit 1); exit 1; }; };;
2089 esac
2090 target=$ac_cv_target
2091 ac_save_IFS=$IFS; IFS='-'
2092 set x $ac_cv_target
2093 shift
2094 target_cpu=$1
2095 target_vendor=$2
2096 shift; shift
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2099 target_os=$*
2100 IFS=$ac_save_IFS
2101 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2102
2103
2104 # The aliases save the names the user supplied, while $host etc.
2105 # will get canonicalized.
2106 test -n "$target_alias" &&
2107   test "$program_prefix$program_suffix$program_transform_name" = \
2108     NONENONEs,x,x, &&
2109   program_prefix=${target_alias}-
2110 am__api_version="1.9"
2111 # Find a good install program.  We prefer a C program (faster),
2112 # so one script is as good as another.  But avoid the broken or
2113 # incompatible versions:
2114 # SysV /etc/install, /usr/sbin/install
2115 # SunOS /usr/etc/install
2116 # IRIX /sbin/install
2117 # AIX /bin/install
2118 # AmigaOS /C/install, which installs bootblocks on floppy discs
2119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2122 # OS/2's system install, which has a completely different semantic
2123 # ./install, which can be erroneously created by make from ./install.sh.
2124 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2125 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2126 if test -z "$INSTALL"; then
2127 if test "${ac_cv_path_install+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133   IFS=$as_save_IFS
2134   test -z "$as_dir" && as_dir=.
2135   # Account for people who put trailing slashes in PATH elements.
2136 case $as_dir/ in
2137   ./ | .// | /cC/* | \
2138   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2139   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2140   /usr/ucb/* ) ;;
2141   *)
2142     # OSF1 and SCO ODT 3.0 have their own names for install.
2143     # Don't use installbsd from OSF since it installs stuff as root
2144     # by default.
2145     for ac_prog in ginstall scoinst install; do
2146       for ac_exec_ext in '' $ac_executable_extensions; do
2147         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2148           if test $ac_prog = install &&
2149             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150             # AIX install.  It has an incompatible calling convention.
2151             :
2152           elif test $ac_prog = install &&
2153             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154             # program-specific install script used by HP pwplus--don't use.
2155             :
2156           else
2157             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2158             break 3
2159           fi
2160         fi
2161       done
2162     done
2163     ;;
2164 esac
2165 done
2166 IFS=$as_save_IFS
2167
2168
2169 fi
2170   if test "${ac_cv_path_install+set}" = set; then
2171     INSTALL=$ac_cv_path_install
2172   else
2173     # As a last resort, use the slow shell script.  Don't cache a
2174     # value for INSTALL within a source directory, because that will
2175     # break other packages using the cache if that directory is
2176     # removed, or if the value is a relative name.
2177     INSTALL=$ac_install_sh
2178   fi
2179 fi
2180 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2181 echo "${ECHO_T}$INSTALL" >&6; }
2182
2183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2184 # It thinks the first close brace ends the variable substitution.
2185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2186
2187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2188
2189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2190
2191 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2192 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2193 # Just in case
2194 sleep 1
2195 echo timestamp > conftest.file
2196 # Do `set' in a subshell so we don't clobber the current shell's
2197 # arguments.  Must try -L first in case configure is actually a
2198 # symlink; some systems play weird games with the mod time of symlinks
2199 # (eg FreeBSD returns the mod time of the symlink's containing
2200 # directory).
2201 if (
2202    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2203    if test "$*" = "X"; then
2204       # -L didn't work.
2205       set X `ls -t $srcdir/configure conftest.file`
2206    fi
2207    rm -f conftest.file
2208    if test "$*" != "X $srcdir/configure conftest.file" \
2209       && test "$*" != "X conftest.file $srcdir/configure"; then
2210
2211       # If neither matched, then we have a broken ls.  This can happen
2212       # if, for instance, CONFIG_SHELL is bash and it inherits a
2213       # broken ls alias from the environment.  This has actually
2214       # happened.  Such a system could not be considered "sane".
2215       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2216 alias in your environment" >&5
2217 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2218 alias in your environment" >&2;}
2219    { (exit 1); exit 1; }; }
2220    fi
2221
2222    test "$2" = conftest.file
2223    )
2224 then
2225    # Ok.
2226    :
2227 else
2228    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2229 Check your system clock" >&5
2230 echo "$as_me: error: newly created file is older than distributed files!
2231 Check your system clock" >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2236 test "$program_prefix" != NONE &&
2237   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2238 # Use a double $ so make ignores it.
2239 test "$program_suffix" != NONE &&
2240   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2241 # Double any \ or $.  echo might interpret backslashes.
2242 # By default was `s,x,x', remove it if useless.
2243 cat <<\_ACEOF >conftest.sed
2244 s/[\\$]/&&/g;s/;s,x,x,$//
2245 _ACEOF
2246 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2247 rm -f conftest.sed
2248
2249 # expand $ac_aux_dir to an absolute path
2250 am_aux_dir=`cd $ac_aux_dir && pwd`
2251
2252 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2253 # Use eval to expand $SHELL
2254 if eval "$MISSING --run true"; then
2255   am_missing_run="$MISSING --run "
2256 else
2257   am_missing_run=
2258   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2259 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2260 fi
2261
2262 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2263   # We used to keeping the `.' as first argument, in order to
2264   # allow $(mkdir_p) to be used without argument.  As in
2265   #   $(mkdir_p) $(somedir)
2266   # where $(somedir) is conditionally defined.  However this is wrong
2267   # for two reasons:
2268   #  1. if the package is installed by a user who cannot write `.'
2269   #     make install will fail,
2270   #  2. the above comment should most certainly read
2271   #     $(mkdir_p) $(DESTDIR)$(somedir)
2272   #     so it does not work when $(somedir) is undefined and
2273   #     $(DESTDIR) is not.
2274   #  To support the latter case, we have to write
2275   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2276   #  so the `.' trick is pointless.
2277   mkdir_p='mkdir -p --'
2278 else
2279   # On NextStep and OpenStep, the `mkdir' command does not
2280   # recognize any option.  It will interpret all options as
2281   # directories to create, and then abort because `.' already
2282   # exists.
2283   for d in ./-p ./--version;
2284   do
2285     test -d $d && rmdir $d
2286   done
2287   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2288   if test -f "$ac_aux_dir/mkinstalldirs"; then
2289     mkdir_p='$(mkinstalldirs)'
2290   else
2291     mkdir_p='$(install_sh) -d'
2292   fi
2293 fi
2294
2295 for ac_prog in gawk mawk nawk awk
2296 do
2297   # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_AWK+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   if test -n "$AWK"; then
2305   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310   IFS=$as_save_IFS
2311   test -z "$as_dir" && as_dir=.
2312   for ac_exec_ext in '' $ac_executable_extensions; do
2313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314     ac_cv_prog_AWK="$ac_prog"
2315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316     break 2
2317   fi
2318 done
2319 done
2320 IFS=$as_save_IFS
2321
2322 fi
2323 fi
2324 AWK=$ac_cv_prog_AWK
2325 if test -n "$AWK"; then
2326   { echo "$as_me:$LINENO: result: $AWK" >&5
2327 echo "${ECHO_T}$AWK" >&6; }
2328 else
2329   { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2331 fi
2332
2333
2334   test -n "$AWK" && break
2335 done
2336
2337 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2338 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2339 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2340 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   cat >conftest.make <<\_ACEOF
2344 SHELL = /bin/sh
2345 all:
2346         @echo '@@@%%%=$(MAKE)=@@@%%%'
2347 _ACEOF
2348 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2349 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2350   *@@@%%%=?*=@@@%%%*)
2351     eval ac_cv_prog_make_${ac_make}_set=yes;;
2352   *)
2353     eval ac_cv_prog_make_${ac_make}_set=no;;
2354 esac
2355 rm -f conftest.make
2356 fi
2357 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2358   { echo "$as_me:$LINENO: result: yes" >&5
2359 echo "${ECHO_T}yes" >&6; }
2360   SET_MAKE=
2361 else
2362   { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364   SET_MAKE="MAKE=${MAKE-make}"
2365 fi
2366
2367 rm -rf .tst 2>/dev/null
2368 mkdir .tst 2>/dev/null
2369 if test -d .tst; then
2370   am__leading_dot=.
2371 else
2372   am__leading_dot=_
2373 fi
2374 rmdir .tst 2>/dev/null
2375
2376 # test to see if srcdir already configured
2377 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2378    test -f $srcdir/config.status; then
2379   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2380 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2381    { (exit 1); exit 1; }; }
2382 fi
2383
2384 # test whether we have cygpath
2385 if test -z "$CYGPATH_W"; then
2386   if (cygpath --version) >/dev/null 2>/dev/null; then
2387     CYGPATH_W='cygpath -w'
2388   else
2389     CYGPATH_W=echo
2390   fi
2391 fi
2392
2393
2394 # Define the identity of the package.
2395  PACKAGE=mod_chxj
2396  VERSION=0.8.3-1
2397
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE "$PACKAGE"
2401 _ACEOF
2402
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define VERSION "$VERSION"
2406 _ACEOF
2407
2408 # Some tools Automake needs.
2409
2410 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2411
2412
2413 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2414
2415
2416 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2417
2418
2419 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2420
2421
2422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2423
2424 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2425
2426 # Installed binaries are usually stripped using `strip' when the user
2427 # run `make install-strip'.  However `strip' might not be the right
2428 # tool to use in cross-compilation environments, therefore Automake
2429 # will honor the `STRIP' environment variable to overrule this program.
2430 if test "$cross_compiling" != no; then
2431   if test -n "$ac_tool_prefix"; then
2432   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}strip; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_STRIP+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$STRIP"; then
2440   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 STRIP=$ac_cv_prog_STRIP
2460 if test -n "$STRIP"; then
2461   { echo "$as_me:$LINENO: result: $STRIP" >&5
2462 echo "${ECHO_T}$STRIP" >&6; }
2463 else
2464   { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2466 fi
2467
2468
2469 fi
2470 if test -z "$ac_cv_prog_STRIP"; then
2471   ac_ct_STRIP=$STRIP
2472   # Extract the first word of "strip", so it can be a program name with args.
2473 set dummy strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$ac_ct_STRIP"; then
2480   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489     ac_cv_prog_ac_ct_STRIP="strip"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2500 if test -n "$ac_ct_STRIP"; then
2501   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2502 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2503 else
2504   { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2506 fi
2507
2508   if test "x$ac_ct_STRIP" = x; then
2509     STRIP=":"
2510   else
2511     case $cross_compiling:$ac_tool_warned in
2512 yes:)
2513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet.  If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&5
2516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2519 ac_tool_warned=yes ;;
2520 esac
2521     STRIP=$ac_ct_STRIP
2522   fi
2523 else
2524   STRIP="$ac_cv_prog_STRIP"
2525 fi
2526
2527 fi
2528 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2529
2530 # We need awk for the "check" target.  The system "awk" is bad on
2531 # some platforms.
2532 # Always define AMTAR for backward compatibility.
2533
2534 AMTAR=${AMTAR-"${am_missing_run}tar"}
2535
2536 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2537
2538
2539
2540
2541
2542 ac_config_headers="$ac_config_headers include/config.h"
2543
2544
2545
2546 # Checks for programs.
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test -n "$CC"; then
2561   ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_exec_ext in '' $ac_executable_extensions; do
2569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582   { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2584 else
2585   { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2587 fi
2588
2589
2590 fi
2591 if test -z "$ac_cv_prog_CC"; then
2592   ac_ct_CC=$CC
2593   # Extract the first word of "gcc", so it can be a program name with args.
2594 set dummy gcc; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$ac_ct_CC"; then
2601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_ac_ct_CC="gcc"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629   if test "x$ac_ct_CC" = x; then
2630     CC=""
2631   else
2632     case $cross_compiling:$ac_tool_warned in
2633 yes:)
2634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet.  If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&5
2637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet.  If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2640 ac_tool_warned=yes ;;
2641 esac
2642     CC=$ac_ct_CC
2643   fi
2644 else
2645   CC="$ac_cv_prog_CC"
2646 fi
2647
2648 if test -z "$CC"; then
2649           if test -n "$ac_tool_prefix"; then
2650     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}cc; ac_word=$2
2652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   if test -n "$CC"; then
2658   ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665   for ac_exec_ext in '' $ac_executable_extensions; do
2666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667     ac_cv_prog_CC="${ac_tool_prefix}cc"
2668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669     break 2
2670   fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679   { echo "$as_me:$LINENO: result: $CC" >&5
2680 echo "${ECHO_T}$CC" >&6; }
2681 else
2682   { echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6; }
2684 fi
2685
2686
2687   fi
2688 fi
2689 if test -z "$CC"; then
2690   # Extract the first word of "cc", so it can be a program name with args.
2691 set dummy cc; ac_word=$2
2692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   if test -n "$CC"; then
2698   ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700   ac_prog_rejected=no
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706   for ac_exec_ext in '' $ac_executable_extensions; do
2707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709        ac_prog_rejected=yes
2710        continue
2711      fi
2712     ac_cv_prog_CC="cc"
2713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 if test $ac_prog_rejected = yes; then
2721   # We found a bogon in the path, so make sure we never use it.
2722   set dummy $ac_cv_prog_CC
2723   shift
2724   if test $# != 0; then
2725     # We chose a different compiler from the bogus one.
2726     # However, it has the same basename, so the bogon will be chosen
2727     # first if we set CC to just the basename; use the full file name.
2728     shift
2729     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2730   fi
2731 fi
2732 fi
2733 fi
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736   { echo "$as_me:$LINENO: result: $CC" >&5
2737 echo "${ECHO_T}$CC" >&6; }
2738 else
2739   { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2741 fi
2742
2743
2744 fi
2745 if test -z "$CC"; then
2746   if test -n "$ac_tool_prefix"; then
2747   for ac_prog in cl.exe
2748   do
2749     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   if test -n "$CC"; then
2757   ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764   for ac_exec_ext in '' $ac_executable_extensions; do
2765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769   fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778   { echo "$as_me:$LINENO: result: $CC" >&5
2779 echo "${ECHO_T}$CC" >&6; }
2780 else
2781   { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2783 fi
2784
2785
2786     test -n "$CC" && break
2787   done
2788 fi
2789 if test -z "$CC"; then
2790   ac_ct_CC=$CC
2791   for ac_prog in cl.exe
2792 do
2793   # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798   echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800   if test -n "$ac_ct_CC"; then
2801   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808   for ac_exec_ext in '' $ac_executable_extensions; do
2809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810     ac_cv_prog_ac_ct_CC="$ac_prog"
2811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812     break 2
2813   fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823 echo "${ECHO_T}$ac_ct_CC" >&6; }
2824 else
2825   { echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6; }
2827 fi
2828
2829
2830   test -n "$ac_ct_CC" && break
2831 done
2832
2833   if test "x$ac_ct_CC" = x; then
2834     CC=""
2835   else
2836     case $cross_compiling:$ac_tool_warned in
2837 yes:)
2838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2839 whose name does not start with the host triplet.  If you think this
2840 configuration is useful to you, please write to autoconf@gnu.org." >&5
2841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2842 whose name does not start with the host triplet.  If you think this
2843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2844 ac_tool_warned=yes ;;
2845 esac
2846     CC=$ac_ct_CC
2847   fi
2848 fi
2849
2850 fi
2851
2852
2853 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&5
2855 echo "$as_me: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&2;}
2857    { (exit 1); exit 1; }; }
2858
2859 # Provide some information about the compiler.
2860 echo "$as_me:$LINENO: checking for C compiler version" >&5
2861 ac_compiler=`set X $ac_compile; echo $2`
2862 { (ac_try="$ac_compiler --version >&5"
2863 case "(($ac_try" in
2864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865   *) ac_try_echo=$ac_try;;
2866 esac
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868   (eval "$ac_compiler --version >&5") 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }
2872 { (ac_try="$ac_compiler -v >&5"
2873 case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_compiler -v >&5") 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }
2882 { (ac_try="$ac_compiler -V >&5"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compiler -V >&5") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899
2900 int
2901 main ()
2902 {
2903
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
2908 ac_clean_files_save=$ac_clean_files
2909 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2912 # of exeext.
2913 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2914 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2915 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2916 #
2917 # List of possible output files, starting from the most likely.
2918 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2919 # only as a last resort.  b.out is created by i960 compilers.
2920 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2921 #
2922 # The IRIX 6 linker writes into existing files which may not be
2923 # executable, retaining their permissions.  Remove them first so a
2924 # subsequent execution test works.
2925 ac_rmfiles=
2926 for ac_file in $ac_files
2927 do
2928   case $ac_file in
2929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2931   esac
2932 done
2933 rm -f $ac_rmfiles
2934
2935 if { (ac_try="$ac_link_default"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_link_default") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; then
2945   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2949 # Autoconf.
2950 for ac_file in $ac_files ''
2951 do
2952   test -f "$ac_file" || continue
2953   case $ac_file in
2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2955         ;;
2956     [ab].out )
2957         # We found the default executable, but exeext='' is most
2958         # certainly right.
2959         break;;
2960     *.* )
2961         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962         then :; else
2963            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964         fi
2965         # We set ac_cv_exeext here because the later test for it is not
2966         # safe: cross compilers may not add the suffix if given an `-o'
2967         # argument, so we may need to know it at that point already.
2968         # Even if this section looks crufty: it has the advantage of
2969         # actually working.
2970         break;;
2971     * )
2972         break;;
2973   esac
2974 done
2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976
2977 else
2978   ac_file=''
2979 fi
2980
2981 { echo "$as_me:$LINENO: result: $ac_file" >&5
2982 echo "${ECHO_T}$ac_file" >&6; }
2983 if test -z "$ac_file"; then
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: C compiler cannot create executables
2990 See \`config.log' for more details." >&2;}
2991    { (exit 77); exit 77; }; }
2992 fi
2993
2994 ac_exeext=$ac_cv_exeext
2995
2996 # Check that the compiler produces executables we can run.  If not, either
2997 # the compiler is broken, or we cross compile.
2998 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2999 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3000 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3001 # If not cross compiling, check that we can run a simple program.
3002 if test "$cross_compiling" != yes; then
3003   if { ac_try='./$ac_file'
3004   { (case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_try") 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; }; then
3013     cross_compiling=no
3014   else
3015     if test "$cross_compiling" = maybe; then
3016         cross_compiling=yes
3017     else
3018         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3019 If you meant to cross compile, use \`--host'.
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: cannot run C compiled programs.
3022 If you meant to cross compile, use \`--host'.
3023 See \`config.log' for more details." >&2;}
3024    { (exit 1); exit 1; }; }
3025     fi
3026   fi
3027 fi
3028 { echo "$as_me:$LINENO: result: yes" >&5
3029 echo "${ECHO_T}yes" >&6; }
3030
3031 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3032 ac_clean_files=$ac_clean_files_save
3033 # Check that the compiler produces executables we can run.  If not, either
3034 # the compiler is broken, or we cross compile.
3035 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3036 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3037 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3038 echo "${ECHO_T}$cross_compiling" >&6; }
3039
3040 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3041 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3042 if { (ac_try="$ac_link"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_link") 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; then
3052   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3055 # `rm'.
3056 for ac_file in conftest.exe conftest conftest.*; do
3057   test -f "$ac_file" || continue
3058   case $ac_file in
3059     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3060     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061           break;;
3062     * ) break;;
3063   esac
3064 done
3065 else
3066   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070    { (exit 1); exit 1; }; }
3071 fi
3072
3073 rm -f conftest$ac_cv_exeext
3074 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3076
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3079 ac_exeext=$EXEEXT
3080 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_compile") 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; then
3111   for ac_file in conftest.o conftest.obj conftest.*; do
3112   test -f "$ac_file" || continue;
3113   case $ac_file in
3114     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3115     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3116        break;;
3117   esac
3118 done
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3126 See \`config.log' for more details." >&2;}
3127    { (exit 1); exit 1; }; }
3128 fi
3129
3130 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3131 fi
3132 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3133 echo "${ECHO_T}$ac_cv_objext" >&6; }
3134 OBJEXT=$ac_cv_objext
3135 ac_objext=$OBJEXT
3136 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3137 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3138 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151 #ifndef __GNUC__
3152        choke me
3153 #endif
3154
3155   ;
3156   return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_compile") 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } && {
3173          test -z "$ac_c_werror_flag" ||
3174          test ! -s conftest.err
3175        } && test -s conftest.$ac_objext; then
3176   ac_compiler_gnu=yes
3177 else
3178   echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181         ac_compiler_gnu=no
3182 fi
3183
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186
3187 fi
3188 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3189 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3190 GCC=`test $ac_compiler_gnu = yes && echo yes`
3191 ac_test_CFLAGS=${CFLAGS+set}
3192 ac_save_CFLAGS=$CFLAGS
3193 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3194 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3195 if test "${ac_cv_prog_cc_g+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   ac_save_c_werror_flag=$ac_c_werror_flag
3199    ac_c_werror_flag=yes
3200    ac_cv_prog_cc_g=no
3201    CFLAGS="-g"
3202    cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_compile") 2>conftest.er1
3225   ac_status=$?
3226   grep -v '^ *+' conftest.er1 >conftest.err
3227   rm -f conftest.er1
3228   cat conftest.err >&5
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } && {
3231          test -z "$ac_c_werror_flag" ||
3232          test ! -s conftest.err
3233        } && test -s conftest.$ac_objext; then
3234   ac_cv_prog_cc_g=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239         CFLAGS=""
3240       cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3257 case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262   (eval "$ac_compile") 2>conftest.er1
3263   ac_status=$?
3264   grep -v '^ *+' conftest.er1 >conftest.err
3265   rm -f conftest.er1
3266   cat conftest.err >&5
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); } && {
3269          test -z "$ac_c_werror_flag" ||
3270          test ! -s conftest.err
3271        } && test -s conftest.$ac_objext; then
3272   :
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277         ac_c_werror_flag=$ac_save_c_werror_flag
3278          CFLAGS="-g"
3279          cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285
3286 int
3287 main ()
3288 {
3289
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_compile") 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } && {
3308          test -z "$ac_c_werror_flag" ||
3309          test ! -s conftest.err
3310        } && test -s conftest.$ac_objext; then
3311   ac_cv_prog_cc_g=yes
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316
3317 fi
3318
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 fi
3321
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 fi
3324
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326    ac_c_werror_flag=$ac_save_c_werror_flag
3327 fi
3328 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3330 if test "$ac_test_CFLAGS" = set; then
3331   CFLAGS=$ac_save_CFLAGS
3332 elif test $ac_cv_prog_cc_g = yes; then
3333   if test "$GCC" = yes; then
3334     CFLAGS="-g -O2"
3335   else
3336     CFLAGS="-g"
3337   fi
3338 else
3339   if test "$GCC" = yes; then
3340     CFLAGS="-O2"
3341   else
3342     CFLAGS=
3343   fi
3344 fi
3345 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3346 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_cc_c89+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   ac_cv_prog_cc_c89=no
3351 ac_save_CC=$CC
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #include <stdarg.h>
3359 #include <stdio.h>
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3366      char **p;
3367      int i;
3368 {
3369   return p[i];
3370 }
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3372 {
3373   char *s;
3374   va_list v;
3375   va_start (v,p);
3376   s = g (p, va_arg (v,int));
3377   va_end (v);
3378   return s;
3379 }
3380
3381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3382    function prototypes and stuff, but not '\xHH' hex character constants.
3383    These don't provoke an error unfortunately, instead are silently treated
3384    as 'x'.  The following induces an error, until -std is added to get
3385    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3386    array size at least.  It's necessary to write '\x00'==0 to get something
3387    that's true only with -std.  */
3388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3389
3390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3391    inside strings and character constants.  */
3392 #define FOO(x) 'x'
3393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3394
3395 int test (int i, double x);
3396 struct s1 {int (*f) (int a);};
3397 struct s2 {int (*f) (double a);};
3398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3399 int argc;
3400 char **argv;
3401 int
3402 main ()
3403 {
3404 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3411 do
3412   CC="$ac_save_CC $ac_arg"
3413   rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420   (eval "$ac_compile") 2>conftest.er1
3421   ac_status=$?
3422   grep -v '^ *+' conftest.er1 >conftest.err
3423   rm -f conftest.er1
3424   cat conftest.err >&5
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); } && {
3427          test -z "$ac_c_werror_flag" ||
3428          test ! -s conftest.err
3429        } && test -s conftest.$ac_objext; then
3430   ac_cv_prog_cc_c89=$ac_arg
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435
3436 fi
3437
3438 rm -f core conftest.err conftest.$ac_objext
3439   test "x$ac_cv_prog_cc_c89" != "xno" && break
3440 done
3441 rm -f conftest.$ac_ext
3442 CC=$ac_save_CC
3443
3444 fi
3445 # AC_CACHE_VAL
3446 case "x$ac_cv_prog_cc_c89" in
3447   x)
3448     { echo "$as_me:$LINENO: result: none needed" >&5
3449 echo "${ECHO_T}none needed" >&6; } ;;
3450   xno)
3451     { echo "$as_me:$LINENO: result: unsupported" >&5
3452 echo "${ECHO_T}unsupported" >&6; } ;;
3453   *)
3454     CC="$CC $ac_cv_prog_cc_c89"
3455     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3456 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3457 esac
3458
3459
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 DEPDIR="${am__leading_dot}deps"
3466
3467 ac_config_commands="$ac_config_commands depfiles"
3468
3469
3470 am_make=${MAKE-make}
3471 cat > confinc << 'END'
3472 am__doit:
3473         @echo done
3474 .PHONY: am__doit
3475 END
3476 # If we don't find an include directive, just comment out the code.
3477 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3478 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3479 am__include="#"
3480 am__quote=
3481 _am_result=none
3482 # First try GNU make style include.
3483 echo "include confinc" > confmf
3484 # We grep out `Entering directory' and `Leaving directory'
3485 # messages which can occur if `w' ends up in MAKEFLAGS.
3486 # In particular we don't look at `^make:' because GNU make might
3487 # be invoked under some other name (usually "gmake"), in which
3488 # case it prints its new name instead of `make'.
3489 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3490    am__include=include
3491    am__quote=
3492    _am_result=GNU
3493 fi
3494 # Now try BSD make style include.
3495 if test "$am__include" = "#"; then
3496    echo '.include "confinc"' > confmf
3497    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3498       am__include=.include
3499       am__quote="\""
3500       _am_result=BSD
3501    fi
3502 fi
3503
3504
3505 { echo "$as_me:$LINENO: result: $_am_result" >&5
3506 echo "${ECHO_T}$_am_result" >&6; }
3507 rm -f confinc confmf
3508
3509 # Check whether --enable-dependency-tracking was given.
3510 if test "${enable_dependency_tracking+set}" = set; then
3511   enableval=$enable_dependency_tracking;
3512 fi
3513
3514 if test "x$enable_dependency_tracking" != xno; then
3515   am_depcomp="$ac_aux_dir/depcomp"
3516   AMDEPBACKSLASH='\'
3517 fi
3518
3519
3520 if test "x$enable_dependency_tracking" != xno; then
3521   AMDEP_TRUE=
3522   AMDEP_FALSE='#'
3523 else
3524   AMDEP_TRUE='#'
3525   AMDEP_FALSE=
3526 fi
3527
3528
3529
3530
3531 depcc="$CC"   am_compiler_list=
3532
3533 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3534 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3535 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3539   # We make a subdir and do the tests there.  Otherwise we can end up
3540   # making bogus files that we don't know about and never remove.  For
3541   # instance it was reported that on HP-UX the gcc test will end up
3542   # making a dummy file named `D' -- because `-MD' means `put the output
3543   # in D'.
3544   mkdir conftest.dir
3545   # Copy depcomp to subdir because otherwise we won't find it if we're
3546   # using a relative directory.
3547   cp "$am_depcomp" conftest.dir
3548   cd conftest.dir
3549   # We will build objects and dependencies in a subdirectory because
3550   # it helps to detect inapplicable dependency modes.  For instance
3551   # both Tru64's cc and ICC support -MD to output dependencies as a
3552   # side effect of compilation, but ICC will put the dependencies in
3553   # the current directory while Tru64 will put them in the object
3554   # directory.
3555   mkdir sub
3556
3557   am_cv_CC_dependencies_compiler_type=none
3558   if test "$am_compiler_list" = ""; then
3559      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3560   fi
3561   for depmode in $am_compiler_list; do
3562     # Setup a source with many dependencies, because some compilers
3563     # like to wrap large dependency lists on column 80 (with \), and
3564     # we should not choose a depcomp mode which is confused by this.
3565     #
3566     # We need to recreate these files for each test, as the compiler may
3567     # overwrite some of them when testing with obscure command lines.
3568     # This happens at least with the AIX C compiler.
3569     : > sub/conftest.c
3570     for i in 1 2 3 4 5 6; do
3571       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3572       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3573       # Solaris 8's {/usr,}/bin/sh.
3574       touch sub/conftst$i.h
3575     done
3576     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3577
3578     case $depmode in
3579     nosideeffect)
3580       # after this tag, mechanisms are not by side-effect, so they'll
3581       # only be used when explicitly requested
3582       if test "x$enable_dependency_tracking" = xyes; then
3583         continue
3584       else
3585         break
3586       fi
3587       ;;
3588     none) break ;;
3589     esac
3590     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3591     # mode.  It turns out that the SunPro C++ compiler does not properly
3592     # handle `-M -o', and we need to detect this.
3593     if depmode=$depmode \
3594        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3595        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3596        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3597          >/dev/null 2>conftest.err &&
3598        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3599        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3600        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3601       # icc doesn't choke on unknown options, it will just issue warnings
3602       # or remarks (even with -Werror).  So we grep stderr for any message
3603       # that says an option was ignored or not supported.
3604       # When given -MP, icc 7.0 and 7.1 complain thusly:
3605       #   icc: Command line warning: ignoring option '-M'; no argument required
3606       # The diagnosis changed in icc 8.0:
3607       #   icc: Command line remark: option '-MP' not supported
3608       if (grep 'ignoring option' conftest.err ||
3609           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3610         am_cv_CC_dependencies_compiler_type=$depmode
3611         break
3612       fi
3613     fi
3614   done
3615
3616   cd ..
3617   rm -rf conftest.dir
3618 else
3619   am_cv_CC_dependencies_compiler_type=none
3620 fi
3621
3622 fi
3623 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3624 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3625 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3626
3627
3628
3629 if
3630   test "x$enable_dependency_tracking" != xno \
3631   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3632   am__fastdepCC_TRUE=
3633   am__fastdepCC_FALSE='#'
3634 else
3635   am__fastdepCC_TRUE='#'
3636   am__fastdepCC_FALSE=
3637 fi
3638
3639
3640 # Find a good install program.  We prefer a C program (faster),
3641 # so one script is as good as another.  But avoid the broken or
3642 # incompatible versions:
3643 # SysV /etc/install, /usr/sbin/install
3644 # SunOS /usr/etc/install
3645 # IRIX /sbin/install
3646 # AIX /bin/install
3647 # AmigaOS /C/install, which installs bootblocks on floppy discs
3648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3651 # OS/2's system install, which has a completely different semantic
3652 # ./install, which can be erroneously created by make from ./install.sh.
3653 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3655 if test -z "$INSTALL"; then
3656 if test "${ac_cv_path_install+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   # Account for people who put trailing slashes in PATH elements.
3665 case $as_dir/ in
3666   ./ | .// | /cC/* | \
3667   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3669   /usr/ucb/* ) ;;
3670   *)
3671     # OSF1 and SCO ODT 3.0 have their own names for install.
3672     # Don't use installbsd from OSF since it installs stuff as root
3673     # by default.
3674     for ac_prog in ginstall scoinst install; do
3675       for ac_exec_ext in '' $ac_executable_extensions; do
3676         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3677           if test $ac_prog = install &&
3678             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679             # AIX install.  It has an incompatible calling convention.
3680             :
3681           elif test $ac_prog = install &&
3682             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683             # program-specific install script used by HP pwplus--don't use.
3684             :
3685           else
3686             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3687             break 3
3688           fi
3689         fi
3690       done
3691     done
3692     ;;
3693 esac
3694 done
3695 IFS=$as_save_IFS
3696
3697
3698 fi
3699   if test "${ac_cv_path_install+set}" = set; then
3700     INSTALL=$ac_cv_path_install
3701   else
3702     # As a last resort, use the slow shell script.  Don't cache a
3703     # value for INSTALL within a source directory, because that will
3704     # break other packages using the cache if that directory is
3705     # removed, or if the value is a relative name.
3706     INSTALL=$ac_install_sh
3707   fi
3708 fi
3709 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3710 echo "${ECHO_T}$INSTALL" >&6; }
3711
3712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3713 # It thinks the first close brace ends the variable substitution.
3714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3715
3716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3717
3718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3719
3720 # Check whether --enable-shared was given.
3721 if test "${enable_shared+set}" = set; then
3722   enableval=$enable_shared; p=${PACKAGE-default}
3723     case $enableval in
3724     yes) enable_shared=yes ;;
3725     no) enable_shared=no ;;
3726     *)
3727       enable_shared=no
3728       # Look at the argument we got.  We use all the common list separators.
3729       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3730       for pkg in $enableval; do
3731         IFS="$lt_save_ifs"
3732         if test "X$pkg" = "X$p"; then
3733           enable_shared=yes
3734         fi
3735       done
3736       IFS="$lt_save_ifs"
3737       ;;
3738     esac
3739 else
3740   enable_shared=yes
3741 fi
3742
3743
3744 # Check whether --enable-static was given.
3745 if test "${enable_static+set}" = set; then
3746   enableval=$enable_static; p=${PACKAGE-default}
3747     case $enableval in
3748     yes) enable_static=yes ;;
3749     no) enable_static=no ;;
3750     *)
3751      enable_static=no
3752       # Look at the argument we got.  We use all the common list separators.
3753       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3754       for pkg in $enableval; do
3755         IFS="$lt_save_ifs"
3756         if test "X$pkg" = "X$p"; then
3757           enable_static=yes
3758         fi
3759       done
3760       IFS="$lt_save_ifs"
3761       ;;
3762     esac
3763 else
3764   enable_static=yes
3765 fi
3766
3767
3768 # Check whether --enable-fast-install was given.
3769 if test "${enable_fast_install+set}" = set; then
3770   enableval=$enable_fast_install; p=${PACKAGE-default}
3771     case $enableval in
3772     yes) enable_fast_install=yes ;;
3773     no) enable_fast_install=no ;;
3774     *)
3775       enable_fast_install=no
3776       # Look at the argument we got.  We use all the common list separators.
3777       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3778       for pkg in $enableval; do
3779         IFS="$lt_save_ifs"
3780         if test "X$pkg" = "X$p"; then
3781           enable_fast_install=yes
3782         fi
3783       done
3784       IFS="$lt_save_ifs"
3785       ;;
3786     esac
3787 else
3788   enable_fast_install=yes
3789 fi
3790
3791
3792 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3793 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3794 if test "${lt_cv_path_SED+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   # Loop through the user's path and test for sed and gsed.
3798 # Then use that list of sed's as ones to test for truncation.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804   for lt_ac_prog in sed gsed; do
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3807         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3808       fi
3809     done
3810   done
3811 done
3812 lt_ac_max=0
3813 lt_ac_count=0
3814 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3815 # along with /bin/sed that truncates output.
3816 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3817   test ! -f $lt_ac_sed && continue
3818   cat /dev/null > conftest.in
3819   lt_ac_count=0
3820   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3821   # Check for GNU sed and select it if it is found.
3822   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3823     lt_cv_path_SED=$lt_ac_sed
3824     break
3825   fi
3826   while true; do
3827     cat conftest.in conftest.in >conftest.tmp
3828     mv conftest.tmp conftest.in
3829     cp conftest.in conftest.nl
3830     echo >>conftest.nl
3831     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3832     cmp -s conftest.out conftest.nl || break
3833     # 10000 chars as input seems more than enough
3834     test $lt_ac_count -gt 10 && break
3835     lt_ac_count=`expr $lt_ac_count + 1`
3836     if test $lt_ac_count -gt $lt_ac_max; then
3837       lt_ac_max=$lt_ac_count
3838       lt_cv_path_SED=$lt_ac_sed
3839     fi
3840   done
3841 done
3842
3843 fi
3844
3845 SED=$lt_cv_path_SED
3846 { echo "$as_me:$LINENO: result: $SED" >&5
3847 echo "${ECHO_T}$SED" >&6; }
3848
3849 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3850 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3851 if test "${ac_cv_path_GREP+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   # Extract the first word of "grep ggrep" to use in msg output
3855 if test -z "$GREP"; then
3856 set dummy grep ggrep; ac_prog_name=$2
3857 if test "${ac_cv_path_GREP+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   ac_path_GREP_found=false
3861 # Loop through the user's path and test for each of PROGNAME-LIST
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867   for ac_prog in grep ggrep; do
3868   for ac_exec_ext in '' $ac_executable_extensions; do
3869     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3870     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3871     # Check for GNU ac_path_GREP and select it if it is found.
3872   # Check for GNU $ac_path_GREP
3873 case `"$ac_path_GREP" --version 2>&1` in
3874 *GNU*)
3875   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3876 *)
3877   ac_count=0
3878   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3879   while :
3880   do
3881     cat "conftest.in" "conftest.in" >"conftest.tmp"
3882     mv "conftest.tmp" "conftest.in"
3883     cp "conftest.in" "conftest.nl"
3884     echo 'GREP' >> "conftest.nl"
3885     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887     ac_count=`expr $ac_count + 1`
3888     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3889       # Best one so far, save it but keep looking for a better one
3890       ac_cv_path_GREP="$ac_path_GREP"
3891       ac_path_GREP_max=$ac_count
3892     fi
3893     # 10*(2^10) chars as input seems more than enough
3894     test $ac_count -gt 10 && break
3895   done
3896   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897 esac
3898
3899
3900     $ac_path_GREP_found && break 3
3901   done
3902 done
3903
3904 done
3905 IFS=$as_save_IFS
3906
3907
3908 fi
3909
3910 GREP="$ac_cv_path_GREP"
3911 if test -z "$GREP"; then
3912   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3913 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3914    { (exit 1); exit 1; }; }
3915 fi
3916
3917 else
3918   ac_cv_path_GREP=$GREP
3919 fi
3920
3921
3922 fi
3923 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3924 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3925  GREP="$ac_cv_path_GREP"
3926
3927
3928 { echo "$as_me:$LINENO: checking for egrep" >&5
3929 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_EGREP+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3934    then ac_cv_path_EGREP="$GREP -E"
3935    else
3936      # Extract the first word of "egrep" to use in msg output
3937 if test -z "$EGREP"; then
3938 set dummy egrep; ac_prog_name=$2
3939 if test "${ac_cv_path_EGREP+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   ac_path_EGREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949   for ac_prog in egrep; do
3950   for ac_exec_ext in '' $ac_executable_extensions; do
3951     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3952     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3953     # Check for GNU ac_path_EGREP and select it if it is found.
3954   # Check for GNU $ac_path_EGREP
3955 case `"$ac_path_EGREP" --version 2>&1` in
3956 *GNU*)
3957   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3958 *)
3959   ac_count=0
3960   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3961   while :
3962   do
3963     cat "conftest.in" "conftest.in" >"conftest.tmp"
3964     mv "conftest.tmp" "conftest.in"
3965     cp "conftest.in" "conftest.nl"
3966     echo 'EGREP' >> "conftest.nl"
3967     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969     ac_count=`expr $ac_count + 1`
3970     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3971       # Best one so far, save it but keep looking for a better one
3972       ac_cv_path_EGREP="$ac_path_EGREP"
3973       ac_path_EGREP_max=$ac_count
3974     fi
3975     # 10*(2^10) chars as input seems more than enough
3976     test $ac_count -gt 10 && break
3977   done
3978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 esac
3980
3981
3982     $ac_path_EGREP_found && break 3
3983   done
3984 done
3985
3986 done
3987 IFS=$as_save_IFS
3988
3989
3990 fi
3991
3992 EGREP="$ac_cv_path_EGREP"
3993 if test -z "$EGREP"; then
3994   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996    { (exit 1); exit 1; }; }
3997 fi
3998
3999 else
4000   ac_cv_path_EGREP=$EGREP
4001 fi
4002
4003
4004    fi
4005 fi
4006 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4007 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4008  EGREP="$ac_cv_path_EGREP"
4009
4010
4011
4012 # Check whether --with-gnu-ld was given.
4013 if test "${with_gnu_ld+set}" = set; then
4014   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4015 else
4016   with_gnu_ld=no
4017 fi
4018
4019 ac_prog=ld
4020 if test "$GCC" = yes; then
4021   # Check if gcc -print-prog-name=ld gives a path.
4022   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4023 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4024   case $host in
4025   *-*-mingw*)
4026     # gcc leaves a trailing carriage return which upsets mingw
4027     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4028   *)
4029     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4030   esac
4031   case $ac_prog in
4032     # Accept absolute paths.
4033     [\\/]* | ?:[\\/]*)
4034       re_direlt='/[^/][^/]*/\.\./'
4035       # Canonicalize the pathname of ld
4036       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4037       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4038         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4039       done
4040       test -z "$LD" && LD="$ac_prog"
4041       ;;
4042   "")
4043     # If it fails, then pretend we aren't using GCC.
4044     ac_prog=ld
4045     ;;
4046   *)
4047     # If it is relative, then search for the first ld in PATH.
4048     with_gnu_ld=unknown
4049     ;;
4050   esac
4051 elif test "$with_gnu_ld" = yes; then
4052   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4053 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4054 else
4055   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4056 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4057 fi
4058 if test "${lt_cv_path_LD+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   if test -z "$LD"; then
4062   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4063   for ac_dir in $PATH; do
4064     IFS="$lt_save_ifs"
4065     test -z "$ac_dir" && ac_dir=.
4066     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4067       lt_cv_path_LD="$ac_dir/$ac_prog"
4068       # Check to see if the program is GNU ld.  I'd rather use --version,
4069       # but apparently some variants of GNU ld only accept -v.
4070       # Break only if it was the GNU/non-GNU ld that we prefer.
4071       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4072       *GNU* | *'with BFD'*)
4073         test "$with_gnu_ld" != no && break
4074         ;;
4075       *)
4076         test "$with_gnu_ld" != yes && break
4077         ;;
4078       esac
4079     fi
4080   done
4081   IFS="$lt_save_ifs"
4082 else
4083   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4084 fi
4085 fi
4086
4087 LD="$lt_cv_path_LD"
4088 if test -n "$LD"; then
4089   { echo "$as_me:$LINENO: result: $LD" >&5
4090 echo "${ECHO_T}$LD" >&6; }
4091 else
4092   { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4094 fi
4095 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4096 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4097    { (exit 1); exit 1; }; }
4098 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4099 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4100 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4104 case `$LD -v 2>&1 </dev/null` in
4105 *GNU* | *'with BFD'*)
4106   lt_cv_prog_gnu_ld=yes
4107   ;;
4108 *)
4109   lt_cv_prog_gnu_ld=no
4110   ;;
4111 esac
4112 fi
4113 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4114 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4115 with_gnu_ld=$lt_cv_prog_gnu_ld
4116
4117
4118 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4119 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4120 if test "${lt_cv_ld_reload_flag+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   lt_cv_ld_reload_flag='-r'
4124 fi
4125 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4126 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4127 reload_flag=$lt_cv_ld_reload_flag
4128 case $reload_flag in
4129 "" | " "*) ;;
4130 *) reload_flag=" $reload_flag" ;;
4131 esac
4132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4133 case $host_os in
4134   darwin*)
4135     if test "$GCC" = yes; then
4136       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4137     else
4138       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4139     fi
4140     ;;
4141 esac
4142
4143 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4144 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4145 if test "${lt_cv_path_NM+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   if test -n "$NM"; then
4149   # Let the user override the test.
4150   lt_cv_path_NM="$NM"
4151 else
4152   lt_nm_to_check="${ac_tool_prefix}nm"
4153   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4154     lt_nm_to_check="$lt_nm_to_check nm"
4155   fi
4156   for lt_tmp_nm in $lt_nm_to_check; do
4157     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4158     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4159       IFS="$lt_save_ifs"
4160       test -z "$ac_dir" && ac_dir=.
4161       tmp_nm="$ac_dir/$lt_tmp_nm"
4162       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4163         # Check to see if the nm accepts a BSD-compat flag.
4164         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4165         #   nm: unknown option "B" ignored
4166         # Tru64's nm complains that /dev/null is an invalid object file
4167         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4168         */dev/null* | *'Invalid file or object type'*)
4169           lt_cv_path_NM="$tmp_nm -B"
4170           break
4171           ;;
4172         *)
4173           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4174           */dev/null*)
4175             lt_cv_path_NM="$tmp_nm -p"
4176             break
4177             ;;
4178           *)
4179             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4180             continue # so that we can try to find one that supports BSD flags
4181             ;;
4182           esac
4183           ;;
4184         esac
4185       fi
4186     done
4187     IFS="$lt_save_ifs"
4188   done
4189   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4190 fi
4191 fi
4192 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4193 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4194 NM="$lt_cv_path_NM"
4195
4196 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4197 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4198 LN_S=$as_ln_s
4199 if test "$LN_S" = "ln -s"; then
4200   { echo "$as_me:$LINENO: result: yes" >&5
4201 echo "${ECHO_T}yes" >&6; }
4202 else
4203   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4204 echo "${ECHO_T}no, using $LN_S" >&6; }
4205 fi
4206
4207 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4208 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4209 if test "${lt_cv_deplibs_check_method+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   lt_cv_file_magic_cmd='$MAGIC_CMD'
4213 lt_cv_file_magic_test_file=
4214 lt_cv_deplibs_check_method='unknown'
4215 # Need to set the preceding variable on all platforms that support
4216 # interlibrary dependencies.
4217 # 'none' -- dependencies not supported.
4218 # `unknown' -- same as none, but documents that we really don't know.
4219 # 'pass_all' -- all dependencies passed with no checks.
4220 # 'test_compile' -- check by making test program.
4221 # 'file_magic [[regex]]' -- check by looking for files in library path
4222 # which responds to the $file_magic_cmd with a given extended regex.
4223 # If you have `file' or equivalent on your system and you're not sure
4224 # whether `pass_all' will *always* work, you probably want this one.
4225
4226 case $host_os in
4227 aix4* | aix5*)
4228   lt_cv_deplibs_check_method=pass_all
4229   ;;
4230
4231 beos*)
4232   lt_cv_deplibs_check_method=pass_all
4233   ;;
4234
4235 bsdi[45]*)
4236   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4237   lt_cv_file_magic_cmd='/usr/bin/file -L'
4238   lt_cv_file_magic_test_file=/shlib/libc.so
4239   ;;
4240
4241 cygwin*)
4242   # func_win32_libid is a shell function defined in ltmain.sh
4243   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4244   lt_cv_file_magic_cmd='func_win32_libid'
4245   ;;
4246
4247 mingw* | pw32*)
4248   # Base MSYS/MinGW do not provide the 'file' command needed by
4249   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4250   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4251   lt_cv_file_magic_cmd='$OBJDUMP -f'
4252   ;;
4253
4254 darwin* | rhapsody*)
4255   lt_cv_deplibs_check_method=pass_all
4256   ;;
4257
4258 freebsd* | dragonfly*)
4259   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4260     case $host_cpu in
4261     i*86 )
4262       # Not sure whether the presence of OpenBSD here was a mistake.
4263       # Let's accept both of them until this is cleared up.
4264       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4265       lt_cv_file_magic_cmd=/usr/bin/file
4266       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4267       ;;
4268     esac
4269   else
4270     lt_cv_deplibs_check_method=pass_all
4271   fi
4272   ;;
4273
4274 gnu*)
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4277
4278 hpux10.20* | hpux11*)
4279   lt_cv_file_magic_cmd=/usr/bin/file
4280   case $host_cpu in
4281   ia64*)
4282     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4284     ;;
4285   hppa*64*)
4286     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]'
4287     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4288     ;;
4289   *)
4290     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4291     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4292     ;;
4293   esac
4294   ;;
4295
4296 interix3*)
4297   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4299   ;;
4300
4301 irix5* | irix6* | nonstopux*)
4302   case $LD in
4303   *-32|*"-32 ") libmagic=32-bit;;
4304   *-n32|*"-n32 ") libmagic=N32;;
4305   *-64|*"-64 ") libmagic=64-bit;;
4306   *) libmagic=never-match;;
4307   esac
4308   lt_cv_deplibs_check_method=pass_all
4309   ;;
4310
4311 # This must be Linux ELF.
4312 linux* | k*bsd*-gnu)
4313   lt_cv_deplibs_check_method=pass_all
4314   ;;
4315
4316 netbsd* | netbsdelf*-gnu)
4317   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319   else
4320     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4321   fi
4322   ;;
4323
4324 newos6*)
4325   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326   lt_cv_file_magic_cmd=/usr/bin/file
4327   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4328   ;;
4329
4330 nto-qnx*)
4331   lt_cv_deplibs_check_method=unknown
4332   ;;
4333
4334 openbsd*)
4335   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4337   else
4338     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4339   fi
4340   ;;
4341
4342 osf3* | osf4* | osf5*)
4343   lt_cv_deplibs_check_method=pass_all
4344   ;;
4345
4346 solaris*)
4347   lt_cv_deplibs_check_method=pass_all
4348   ;;
4349
4350 sysv4 | sysv4.3*)
4351   case $host_vendor in
4352   motorola)
4353     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]'
4354     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4355     ;;
4356   ncr)
4357     lt_cv_deplibs_check_method=pass_all
4358     ;;
4359   sequent)
4360     lt_cv_file_magic_cmd='/bin/file'
4361     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4362     ;;
4363   sni)
4364     lt_cv_file_magic_cmd='/bin/file'
4365     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4366     lt_cv_file_magic_test_file=/lib/libc.so
4367     ;;
4368   siemens)
4369     lt_cv_deplibs_check_method=pass_all
4370     ;;
4371   pc)
4372     lt_cv_deplibs_check_method=pass_all
4373     ;;
4374   esac
4375   ;;
4376
4377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4378   lt_cv_deplibs_check_method=pass_all
4379   ;;
4380 esac
4381
4382 fi
4383 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4384 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4385 file_magic_cmd=$lt_cv_file_magic_cmd
4386 deplibs_check_method=$lt_cv_deplibs_check_method
4387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4388
4389
4390
4391
4392 # If no C compiler was specified, use CC.
4393 LTCC=${LTCC-"$CC"}
4394
4395 # If no C compiler flags were specified, use CFLAGS.
4396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4397
4398 # Allow CC to be a program name with arguments.
4399 compiler=$CC
4400
4401
4402 # Check whether --enable-libtool-lock was given.
4403 if test "${enable_libtool_lock+set}" = set; then
4404   enableval=$enable_libtool_lock;
4405 fi
4406
4407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4408
4409 # Some flags need to be propagated to the compiler or linker for good
4410 # libtool support.
4411 case $host in
4412 ia64-*-hpux*)
4413   # Find out which ABI we are using.
4414   echo 'int i;' > conftest.$ac_ext
4415   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416   (eval $ac_compile) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; then
4420     case `/usr/bin/file conftest.$ac_objext` in
4421     *ELF-32*)
4422       HPUX_IA64_MODE="32"
4423       ;;
4424     *ELF-64*)
4425       HPUX_IA64_MODE="64"
4426       ;;
4427     esac
4428   fi
4429   rm -rf conftest*
4430   ;;
4431 *-*-irix6*)
4432   # Find out which ABI we are using.
4433   echo '#line 4433 "configure"' > conftest.$ac_ext
4434   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435   (eval $ac_compile) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; then
4439    if test "$lt_cv_prog_gnu_ld" = yes; then
4440     case `/usr/bin/file conftest.$ac_objext` in
4441     *32-bit*)
4442       LD="${LD-ld} -melf32bsmip"
4443       ;;
4444     *N32*)
4445       LD="${LD-ld} -melf32bmipn32"
4446       ;;
4447     *64-bit*)
4448       LD="${LD-ld} -melf64bmip"
4449       ;;
4450     esac
4451    else
4452     case `/usr/bin/file conftest.$ac_objext` in
4453     *32-bit*)
4454       LD="${LD-ld} -32"
4455       ;;
4456     *N32*)
4457       LD="${LD-ld} -n32"
4458       ;;
4459     *64-bit*)
4460       LD="${LD-ld} -64"
4461       ;;
4462     esac
4463    fi
4464   fi
4465   rm -rf conftest*
4466   ;;
4467
4468 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4469   # Find out which ABI we are using.
4470   echo 'int i;' > conftest.$ac_ext
4471   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472   (eval $ac_compile) 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); }; then
4476     case `/usr/bin/file conftest.o` in
4477     *32-bit*)
4478       case $host in
4479         x86_64-*linux*)
4480           LD="${LD-ld} -m elf_i386"
4481           ;;
4482         ppc64-*linux*|powerpc64-*linux*)
4483           LD="${LD-ld} -m elf32ppclinux"
4484           ;;
4485         s390x-*linux*)
4486           LD="${LD-ld} -m elf_s390"
4487           ;;
4488         sparc64-*linux*)
4489           LD="${LD-ld} -m elf32_sparc"
4490           ;;
4491       esac
4492       ;;
4493     *64-bit*)
4494       case $host in
4495         x86_64-*linux*)
4496           LD="${LD-ld} -m elf_x86_64"
4497           ;;
4498         ppc*-*linux*|powerpc*-*linux*)
4499           LD="${LD-ld} -m elf64ppc"
4500           ;;
4501         s390*-*linux*)
4502           LD="${LD-ld} -m elf64_s390"
4503           ;;
4504         sparc*-*linux*)
4505           LD="${LD-ld} -m elf64_sparc"
4506           ;;
4507       esac
4508       ;;
4509     esac
4510   fi
4511   rm -rf conftest*
4512   ;;
4513
4514 *-*-sco3.2v5*)
4515   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4516   SAVE_CFLAGS="$CFLAGS"
4517   CFLAGS="$CFLAGS -belf"
4518   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4519 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4520 if test "${lt_cv_cc_needs_belf+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529      cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535
4536 int
4537 main ()
4538 {
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext conftest$ac_exeext
4545 if { (ac_try="$ac_link"
4546 case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_link") 2>conftest.er1
4552   ac_status=$?
4553   grep -v '^ *+' conftest.er1 >conftest.err
4554   rm -f conftest.er1
4555   cat conftest.err >&5
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } && {
4558          test -z "$ac_c_werror_flag" ||
4559          test ! -s conftest.err
4560        } && test -s conftest$ac_exeext &&
4561        $as_test_x conftest$ac_exeext; then
4562   lt_cv_cc_needs_belf=yes
4563 else
4564   echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567         lt_cv_cc_needs_belf=no
4568 fi
4569
4570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4571       conftest$ac_exeext conftest.$ac_ext
4572      ac_ext=c
4573 ac_cpp='$CPP $CPPFLAGS'
4574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577
4578 fi
4579 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4580 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4581   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4582     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4583     CFLAGS="$SAVE_CFLAGS"
4584   fi
4585   ;;
4586 sparc*-*solaris*)
4587   # Find out which ABI we are using.
4588   echo 'int i;' > conftest.$ac_ext
4589   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590   (eval $ac_compile) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; then
4594     case `/usr/bin/file conftest.o` in
4595     *64-bit*)
4596       case $lt_cv_prog_gnu_ld in
4597       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4598       *)    LD="${LD-ld} -64" ;;
4599       esac
4600       ;;
4601     esac
4602   fi
4603   rm -rf conftest*
4604   ;;
4605
4606
4607 esac
4608
4609 need_locks="$enable_libtool_lock"
4610
4611
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4618 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4619 # On Suns, sometimes $CPP names a directory.
4620 if test -n "$CPP" && test -d "$CPP"; then
4621   CPP=
4622 fi
4623 if test -z "$CPP"; then
4624   if test "${ac_cv_prog_CPP+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627       # Double quotes because CPP needs to be expanded
4628     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4629     do
4630       ac_preproc_ok=false
4631 for ac_c_preproc_warn_flag in '' yes
4632 do
4633   # Use a header file that comes with gcc, so configuring glibc
4634   # with a fresh cross-compiler works.
4635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636   # <limits.h> exists even on freestanding compilers.
4637   # On the NeXT, cc -E runs the code through the compiler's parser,
4638   # not just through cpp. "Syntax error" is here to catch this case.
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650                      Syntax error
4651 _ACEOF
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } >/dev/null && {
4665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666          test ! -s conftest.err
4667        }; then
4668   :
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673   # Broken: fails on valid input.
4674 continue
4675 fi
4676
4677 rm -f conftest.err conftest.$ac_ext
4678
4679   # OK, works on sane cases.  Now check whether nonexistent headers
4680   # can be detected and how.
4681   cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687 #include <ac_nonexistent.h>
4688 _ACEOF
4689 if { (ac_try="$ac_cpp conftest.$ac_ext"
4690 case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } >/dev/null && {
4702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703          test ! -s conftest.err
4704        }; then
4705   # Broken: success on invalid input.
4706 continue
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711   # Passes both tests.
4712 ac_preproc_ok=:
4713 break
4714 fi
4715
4716 rm -f conftest.err conftest.$ac_ext
4717
4718 done
4719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4720 rm -f conftest.err conftest.$ac_ext
4721 if $ac_preproc_ok; then
4722   break
4723 fi
4724
4725     done
4726     ac_cv_prog_CPP=$CPP
4727
4728 fi
4729   CPP=$ac_cv_prog_CPP
4730 else
4731   ac_cv_prog_CPP=$CPP
4732 fi
4733 { echo "$as_me:$LINENO: result: $CPP" >&5
4734 echo "${ECHO_T}$CPP" >&6; }
4735 ac_preproc_ok=false
4736 for ac_c_preproc_warn_flag in '' yes
4737 do
4738   # Use a header file that comes with gcc, so configuring glibc
4739   # with a fresh cross-compiler works.
4740   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741   # <limits.h> exists even on freestanding compilers.
4742   # On the NeXT, cc -E runs the code through the compiler's parser,
4743   # not just through cpp. "Syntax error" is here to catch this case.
4744   cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750 #ifdef __STDC__
4751 # include <limits.h>
4752 #else
4753 # include <assert.h>
4754 #endif
4755                      Syntax error
4756 _ACEOF
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4758 case "(($ac_try" in
4759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760   *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4764   ac_status=$?
4765   grep -v '^ *+' conftest.er1 >conftest.err
4766   rm -f conftest.er1
4767   cat conftest.err >&5
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } >/dev/null && {
4770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771          test ! -s conftest.err
4772        }; then
4773   :
4774 else
4775   echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778   # Broken: fails on valid input.
4779 continue
4780 fi
4781
4782 rm -f conftest.err conftest.$ac_ext
4783
4784   # OK, works on sane cases.  Now check whether nonexistent headers
4785   # can be detected and how.
4786   cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792 #include <ac_nonexistent.h>
4793 _ACEOF
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } >/dev/null && {
4807          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808          test ! -s conftest.err
4809        }; then
4810   # Broken: success on invalid input.
4811 continue
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816   # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4819 fi
4820
4821 rm -f conftest.err conftest.$ac_ext
4822
4823 done
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.$ac_ext
4826 if $ac_preproc_ok; then
4827   :
4828 else
4829   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4832 See \`config.log' for more details." >&2;}
4833    { (exit 1); exit 1; }; }
4834 fi
4835
4836 ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841
4842
4843 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4845 if test "${ac_cv_header_stdc+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 #include <stdlib.h>
4855 #include <stdarg.h>
4856 #include <string.h>
4857 #include <float.h>
4858
4859 int
4860 main ()
4861 {
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (ac_try="$ac_compile"
4869 case "(($ac_try" in
4870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871   *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874   (eval "$ac_compile") 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } && {
4881          test -z "$ac_c_werror_flag" ||
4882          test ! -s conftest.err
4883        } && test -s conftest.$ac_objext; then
4884   ac_cv_header_stdc=yes
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889         ac_cv_header_stdc=no
4890 fi
4891
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893
4894 if test $ac_cv_header_stdc = yes; then
4895   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4896   cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <string.h>
4903
4904 _ACEOF
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906   $EGREP "memchr" >/dev/null 2>&1; then
4907   :
4908 else
4909   ac_cv_header_stdc=no
4910 fi
4911 rm -f conftest*
4912
4913 fi
4914
4915 if test $ac_cv_header_stdc = yes; then
4916   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917   cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 #include <stdlib.h>
4924
4925 _ACEOF
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927   $EGREP "free" >/dev/null 2>&1; then
4928   :
4929 else
4930   ac_cv_header_stdc=no
4931 fi
4932 rm -f conftest*
4933
4934 fi
4935
4936 if test $ac_cv_header_stdc = yes; then
4937   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4938   if test "$cross_compiling" = yes; then
4939   :
4940 else
4941   cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 #include <ctype.h>
4948 #include <stdlib.h>
4949 #if ((' ' & 0x0FF) == 0x020)
4950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4952 #else
4953 # define ISLOWER(c) \
4954                    (('a' <= (c) && (c) <= 'i') \
4955                      || ('j' <= (c) && (c) <= 'r') \
4956                      || ('s' <= (c) && (c) <= 'z'))
4957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4958 #endif
4959
4960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4961 int
4962 main ()
4963 {
4964   int i;
4965   for (i = 0; i < 256; i++)
4966     if (XOR (islower (i), ISLOWER (i))
4967         || toupper (i) != TOUPPER (i))
4968       return 2;
4969   return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest$ac_exeext
4973 if { (ac_try="$ac_link"
4974 case "(($ac_try" in
4975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976   *) ac_try_echo=$ac_try;;
4977 esac
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979   (eval "$ac_link") 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4983   { (case "(($ac_try" in
4984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985   *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988   (eval "$ac_try") 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   :
4993 else
4994   echo "$as_me: program exited with status $ac_status" >&5
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 ( exit $ac_status )
4999 ac_cv_header_stdc=no
5000 fi
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5002 fi
5003
5004
5005 fi
5006 fi
5007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5008 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5009 if test $ac_cv_header_stdc = yes; then
5010
5011 cat >>confdefs.h <<\_ACEOF
5012 #define STDC_HEADERS 1
5013 _ACEOF
5014
5015 fi
5016
5017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5028                   inttypes.h stdint.h unistd.h
5029 do
5030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 $ac_includes_default
5043
5044 #include <$ac_header>
5045 _ACEOF
5046 rm -f conftest.$ac_objext
5047 if { (ac_try="$ac_compile"
5048 case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053   (eval "$ac_compile") 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } && {
5060          test -z "$ac_c_werror_flag" ||
5061          test ! -s conftest.err
5062        } && test -s conftest.$ac_objext; then
5063   eval "$as_ac_Header=yes"
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068         eval "$as_ac_Header=no"
5069 fi
5070
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 fi
5073 ac_res=`eval echo '${'$as_ac_Header'}'`
5074                { echo "$as_me:$LINENO: result: $ac_res" >&5
5075 echo "${ECHO_T}$ac_res" >&6; }
5076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5077   cat >>confdefs.h <<_ACEOF
5078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5079 _ACEOF
5080
5081 fi
5082
5083 done
5084
5085
5086
5087 for ac_header in dlfcn.h
5088 do
5089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5091   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 fi
5096 ac_res=`eval echo '${'$as_ac_Header'}'`
5097                { echo "$as_me:$LINENO: result: $ac_res" >&5
5098 echo "${ECHO_T}$ac_res" >&6; }
5099 else
5100   # Is the header compilable?
5101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 $ac_includes_default
5110 #include <$ac_header>
5111 _ACEOF
5112 rm -f conftest.$ac_objext
5113 if { (ac_try="$ac_compile"
5114 case "(($ac_try" in
5115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116   *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119   (eval "$ac_compile") 2>conftest.er1
5120   ac_status=$?
5121   grep -v '^ *+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } && {
5126          test -z "$ac_c_werror_flag" ||
5127          test ! -s conftest.err
5128        } && test -s conftest.$ac_objext; then
5129   ac_header_compiler=yes
5130 else
5131   echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134         ac_header_compiler=no
5135 fi
5136
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5139 echo "${ECHO_T}$ac_header_compiler" >&6; }
5140
5141 # Is the header present?
5142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h.  */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h.  */
5150 #include <$ac_header>
5151 _ACEOF
5152 if { (ac_try="$ac_cpp conftest.$ac_ext"
5153 case "(($ac_try" in
5154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155   *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5159   ac_status=$?
5160   grep -v '^ *+' conftest.er1 >conftest.err
5161   rm -f conftest.er1
5162   cat conftest.err >&5
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } >/dev/null && {
5165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5166          test ! -s conftest.err
5167        }; then
5168   ac_header_preproc=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173   ac_header_preproc=no
5174 fi
5175
5176 rm -f conftest.err conftest.$ac_ext
5177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5178 echo "${ECHO_T}$ac_header_preproc" >&6; }
5179
5180 # So?  What about this header?
5181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5182   yes:no: )
5183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5187     ac_header_preproc=yes
5188     ;;
5189   no:yes:* )
5190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5202
5203     ;;
5204 esac
5205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   eval "$as_ac_Header=\$ac_header_preproc"
5211 fi
5212 ac_res=`eval echo '${'$as_ac_Header'}'`
5213                { echo "$as_me:$LINENO: result: $ac_res" >&5
5214 echo "${ECHO_T}$ac_res" >&6; }
5215
5216 fi
5217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5218   cat >>confdefs.h <<_ACEOF
5219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5220 _ACEOF
5221
5222 fi
5223
5224 done
5225
5226 ac_ext=cpp
5227 ac_cpp='$CXXCPP $CPPFLAGS'
5228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5231 if test -z "$CXX"; then
5232   if test -n "$CCC"; then
5233     CXX=$CCC
5234   else
5235     if test -n "$ac_tool_prefix"; then
5236   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5237   do
5238     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5242 if test "${ac_cv_prog_CXX+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   if test -n "$CXX"; then
5246   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253   for ac_exec_ext in '' $ac_executable_extensions; do
5254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257     break 2
5258   fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 CXX=$ac_cv_prog_CXX
5266 if test -n "$CXX"; then
5267   { echo "$as_me:$LINENO: result: $CXX" >&5
5268 echo "${ECHO_T}$CXX" >&6; }
5269 else
5270   { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273
5274
5275     test -n "$CXX" && break
5276   done
5277 fi
5278 if test -z "$CXX"; then
5279   ac_ct_CXX=$CXX
5280   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5281 do
5282   # Extract the first word of "$ac_prog", so it can be a program name with args.
5283 set dummy $ac_prog; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   if test -n "$ac_ct_CXX"; then
5290   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295   IFS=$as_save_IFS
5296   test -z "$as_dir" && as_dir=.
5297   for ac_exec_ext in '' $ac_executable_extensions; do
5298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299     ac_cv_prog_ac_ct_CXX="$ac_prog"
5300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301     break 2
5302   fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307 fi
5308 fi
5309 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5310 if test -n "$ac_ct_CXX"; then
5311   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5312 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5313 else
5314   { echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6; }
5316 fi
5317
5318
5319   test -n "$ac_ct_CXX" && break
5320 done
5321
5322   if test "x$ac_ct_CXX" = x; then
5323     CXX="g++"
5324   else
5325     case $cross_compiling:$ac_tool_warned in
5326 yes:)
5327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5328 whose name does not start with the host triplet.  If you think this
5329 configuration is useful to you, please write to autoconf@gnu.org." >&5
5330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5331 whose name does not start with the host triplet.  If you think this
5332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5333 ac_tool_warned=yes ;;
5334 esac
5335     CXX=$ac_ct_CXX
5336   fi
5337 fi
5338
5339   fi
5340 fi
5341 # Provide some information about the compiler.
5342 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5343 ac_compiler=`set X $ac_compile; echo $2`
5344 { (ac_try="$ac_compiler --version >&5"
5345 case "(($ac_try" in
5346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347   *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350   (eval "$ac_compiler --version >&5") 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }
5354 { (ac_try="$ac_compiler -v >&5"
5355 case "(($ac_try" in
5356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357   *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360   (eval "$ac_compiler -v >&5") 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }
5364 { (ac_try="$ac_compiler -V >&5"
5365 case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_compiler -V >&5") 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }
5374
5375 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5376 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5377 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386
5387 int
5388 main ()
5389 {
5390 #ifndef __GNUC__
5391        choke me
5392 #endif
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_compile") 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } && {
5412          test -z "$ac_cxx_werror_flag" ||
5413          test ! -s conftest.err
5414        } && test -s conftest.$ac_objext; then
5415   ac_compiler_gnu=yes
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420         ac_compiler_gnu=no
5421 fi
5422
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5425
5426 fi
5427 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5428 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5429 GXX=`test $ac_compiler_gnu = yes && echo yes`
5430 ac_test_CXXFLAGS=${CXXFLAGS+set}
5431 ac_save_CXXFLAGS=$CXXFLAGS
5432 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5433 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5434 if test "${ac_cv_prog_cxx_g+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5438    ac_cxx_werror_flag=yes
5439    ac_cv_prog_cxx_g=no
5440    CXXFLAGS="-g"
5441    cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h.  */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h.  */
5447
5448 int
5449 main ()
5450 {
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5458 case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463   (eval "$ac_compile") 2>conftest.er1
5464   ac_status=$?
5465   grep -v '^ *+' conftest.er1 >conftest.err
5466   rm -f conftest.er1
5467   cat conftest.err >&5
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); } && {
5470          test -z "$ac_cxx_werror_flag" ||
5471          test ! -s conftest.err
5472        } && test -s conftest.$ac_objext; then
5473   ac_cv_prog_cxx_g=yes
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478         CXXFLAGS=""
5479       cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485
5486 int
5487 main ()
5488 {
5489
5490   ;
5491   return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5496 case "(($ac_try" in
5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498   *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501   (eval "$ac_compile") 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } && {
5508          test -z "$ac_cxx_werror_flag" ||
5509          test ! -s conftest.err
5510        } && test -s conftest.$ac_objext; then
5511   :
5512 else
5513   echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5517          CXXFLAGS="-g"
5518          cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524
5525 int
5526 main ()
5527 {
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537   *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540   (eval "$ac_compile") 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } && {
5547          test -z "$ac_cxx_werror_flag" ||
5548          test ! -s conftest.err
5549        } && test -s conftest.$ac_objext; then
5550   ac_cv_prog_cxx_g=yes
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555
5556 fi
5557
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 fi
5560
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5566 fi
5567 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5568 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5569 if test "$ac_test_CXXFLAGS" = set; then
5570   CXXFLAGS=$ac_save_CXXFLAGS
5571 elif test $ac_cv_prog_cxx_g = yes; then
5572   if test "$GXX" = yes; then
5573     CXXFLAGS="-g -O2"
5574   else
5575     CXXFLAGS="-g"
5576   fi
5577 else
5578   if test "$GXX" = yes; then
5579     CXXFLAGS="-O2"
5580   else
5581     CXXFLAGS=
5582   fi
5583 fi
5584 ac_ext=cpp
5585 ac_cpp='$CXXCPP $CPPFLAGS'
5586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5589
5590 depcc="$CXX"  am_compiler_list=
5591
5592 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5593 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5594 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5598   # We make a subdir and do the tests there.  Otherwise we can end up
5599   # making bogus files that we don't know about and never remove.  For
5600   # instance it was reported that on HP-UX the gcc test will end up
5601   # making a dummy file named `D' -- because `-MD' means `put the output
5602   # in D'.
5603   mkdir conftest.dir
5604   # Copy depcomp to subdir because otherwise we won't find it if we're
5605   # using a relative directory.
5606   cp "$am_depcomp" conftest.dir
5607   cd conftest.dir
5608   # We will build objects and dependencies in a subdirectory because
5609   # it helps to detect inapplicable dependency modes.  For instance
5610   # both Tru64's cc and ICC support -MD to output dependencies as a
5611   # side effect of compilation, but ICC will put the dependencies in
5612   # the current directory while Tru64 will put them in the object
5613   # directory.
5614   mkdir sub
5615
5616   am_cv_CXX_dependencies_compiler_type=none
5617   if test "$am_compiler_list" = ""; then
5618      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5619   fi
5620   for depmode in $am_compiler_list; do
5621     # Setup a source with many dependencies, because some compilers
5622     # like to wrap large dependency lists on column 80 (with \), and
5623     # we should not choose a depcomp mode which is confused by this.
5624     #
5625     # We need to recreate these files for each test, as the compiler may
5626     # overwrite some of them when testing with obscure command lines.
5627     # This happens at least with the AIX C compiler.
5628     : > sub/conftest.c
5629     for i in 1 2 3 4 5 6; do
5630       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5631       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5632       # Solaris 8's {/usr,}/bin/sh.
5633       touch sub/conftst$i.h
5634     done
5635     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5636
5637     case $depmode in
5638     nosideeffect)
5639       # after this tag, mechanisms are not by side-effect, so they'll
5640       # only be used when explicitly requested
5641       if test "x$enable_dependency_tracking" = xyes; then
5642         continue
5643       else
5644         break
5645       fi
5646       ;;
5647     none) break ;;
5648     esac
5649     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5650     # mode.  It turns out that the SunPro C++ compiler does not properly
5651     # handle `-M -o', and we need to detect this.
5652     if depmode=$depmode \
5653        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5654        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5655        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5656          >/dev/null 2>conftest.err &&
5657        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5658        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5659        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5660       # icc doesn't choke on unknown options, it will just issue warnings
5661       # or remarks (even with -Werror).  So we grep stderr for any message
5662       # that says an option was ignored or not supported.
5663       # When given -MP, icc 7.0 and 7.1 complain thusly:
5664       #   icc: Command line warning: ignoring option '-M'; no argument required
5665       # The diagnosis changed in icc 8.0:
5666       #   icc: Command line remark: option '-MP' not supported
5667       if (grep 'ignoring option' conftest.err ||
5668           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5669         am_cv_CXX_dependencies_compiler_type=$depmode
5670         break
5671       fi
5672     fi
5673   done
5674
5675   cd ..
5676   rm -rf conftest.dir
5677 else
5678   am_cv_CXX_dependencies_compiler_type=none
5679 fi
5680
5681 fi
5682 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5683 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5684 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5685
5686
5687
5688 if
5689   test "x$enable_dependency_tracking" != xno \
5690   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5691   am__fastdepCXX_TRUE=
5692   am__fastdepCXX_FALSE='#'
5693 else
5694   am__fastdepCXX_TRUE='#'
5695   am__fastdepCXX_FALSE=
5696 fi
5697
5698
5699
5700
5701 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5702     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5703     (test "X$CXX" != "Xg++"))) ; then
5704   ac_ext=cpp
5705 ac_cpp='$CXXCPP $CPPFLAGS'
5706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5709 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5710 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5711 if test -z "$CXXCPP"; then
5712   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715       # Double quotes because CXXCPP needs to be expanded
5716     for CXXCPP in "$CXX -E" "/lib/cpp"
5717     do
5718       ac_preproc_ok=false
5719 for ac_cxx_preproc_warn_flag in '' yes
5720 do
5721   # Use a header file that comes with gcc, so configuring glibc
5722   # with a fresh cross-compiler works.
5723   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724   # <limits.h> exists even on freestanding compilers.
5725   # On the NeXT, cc -E runs the code through the compiler's parser,
5726   # not just through cpp. "Syntax error" is here to catch this case.
5727   cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h.  */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h.  */
5733 #ifdef __STDC__
5734 # include <limits.h>
5735 #else
5736 # include <assert.h>
5737 #endif
5738                      Syntax error
5739 _ACEOF
5740 if { (ac_try="$ac_cpp conftest.$ac_ext"
5741 case "(($ac_try" in
5742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743   *) ac_try_echo=$ac_try;;
5744 esac
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5747   ac_status=$?
5748   grep -v '^ *+' conftest.er1 >conftest.err
5749   rm -f conftest.er1
5750   cat conftest.err >&5
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } >/dev/null && {
5753          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5754          test ! -s conftest.err
5755        }; then
5756   :
5757 else
5758   echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761   # Broken: fails on valid input.
5762 continue
5763 fi
5764
5765 rm -f conftest.err conftest.$ac_ext
5766
5767   # OK, works on sane cases.  Now check whether nonexistent headers
5768   # can be detected and how.
5769   cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775 #include <ac_nonexistent.h>
5776 _ACEOF
5777 if { (ac_try="$ac_cpp conftest.$ac_ext"
5778 case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } >/dev/null && {
5790          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5791          test ! -s conftest.err
5792        }; then
5793   # Broken: success on invalid input.
5794 continue
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799   # Passes both tests.
5800 ac_preproc_ok=:
5801 break
5802 fi
5803
5804 rm -f conftest.err conftest.$ac_ext
5805
5806 done
5807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808 rm -f conftest.err conftest.$ac_ext
5809 if $ac_preproc_ok; then
5810   break
5811 fi
5812
5813     done
5814     ac_cv_prog_CXXCPP=$CXXCPP
5815
5816 fi
5817   CXXCPP=$ac_cv_prog_CXXCPP
5818 else
5819   ac_cv_prog_CXXCPP=$CXXCPP
5820 fi
5821 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5822 echo "${ECHO_T}$CXXCPP" >&6; }
5823 ac_preproc_ok=false
5824 for ac_cxx_preproc_warn_flag in '' yes
5825 do
5826   # Use a header file that comes with gcc, so configuring glibc
5827   # with a fresh cross-compiler works.
5828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829   # <limits.h> exists even on freestanding compilers.
5830   # On the NeXT, cc -E runs the code through the compiler's parser,
5831   # not just through cpp. "Syntax error" is here to catch this case.
5832   cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h.  */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h.  */
5838 #ifdef __STDC__
5839 # include <limits.h>
5840 #else
5841 # include <assert.h>
5842 #endif
5843                      Syntax error
5844 _ACEOF
5845 if { (ac_try="$ac_cpp conftest.$ac_ext"
5846 case "(($ac_try" in
5847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848   *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5852   ac_status=$?
5853   grep -v '^ *+' conftest.er1 >conftest.err
5854   rm -f conftest.er1
5855   cat conftest.err >&5
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } >/dev/null && {
5858          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5859          test ! -s conftest.err
5860        }; then
5861   :
5862 else
5863   echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866   # Broken: fails on valid input.
5867 continue
5868 fi
5869
5870 rm -f conftest.err conftest.$ac_ext
5871
5872   # OK, works on sane cases.  Now check whether nonexistent headers
5873   # can be detected and how.
5874   cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h.  */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h.  */
5880 #include <ac_nonexistent.h>
5881 _ACEOF
5882 if { (ac_try="$ac_cpp conftest.$ac_ext"
5883 case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5889   ac_status=$?
5890   grep -v '^ *+' conftest.er1 >conftest.err
5891   rm -f conftest.er1
5892   cat conftest.err >&5
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); } >/dev/null && {
5895          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5896          test ! -s conftest.err
5897        }; then
5898   # Broken: success on invalid input.
5899 continue
5900 else
5901   echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904   # Passes both tests.
5905 ac_preproc_ok=:
5906 break
5907 fi
5908
5909 rm -f conftest.err conftest.$ac_ext
5910
5911 done
5912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5913 rm -f conftest.err conftest.$ac_ext
5914 if $ac_preproc_ok; then
5915   :
5916 else
5917   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5918 See \`config.log' for more details." >&5
5919 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5920 See \`config.log' for more details." >&2;}
5921    { (exit 1); exit 1; }; }
5922 fi
5923
5924 ac_ext=cpp
5925 ac_cpp='$CXXCPP $CPPFLAGS'
5926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5929
5930 fi
5931
5932
5933 ac_ext=f
5934 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5935 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5937 if test -n "$ac_tool_prefix"; then
5938   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 pgf95 lf95 ftn
5939   do
5940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_prog_F77+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   if test -n "$F77"; then
5948   ac_cv_prog_F77="$F77" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 F77=$ac_cv_prog_F77
5968 if test -n "$F77"; then
5969   { echo "$as_me:$LINENO: result: $F77" >&5
5970 echo "${ECHO_T}$F77" >&6; }
5971 else
5972   { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974 fi
5975
5976
5977     test -n "$F77" && break
5978   done
5979 fi
5980 if test -z "$F77"; then
5981   ac_ct_F77=$F77
5982   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 pgf95 lf95 ftn
5983 do
5984   # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   if test -n "$ac_ct_F77"; then
5992   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_prog_ac_ct_F77="$ac_prog"
6002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6012 if test -n "$ac_ct_F77"; then
6013   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6014 echo "${ECHO_T}$ac_ct_F77" >&6; }
6015 else
6016   { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6018 fi
6019
6020
6021   test -n "$ac_ct_F77" && break
6022 done
6023
6024   if test "x$ac_ct_F77" = x; then
6025     F77=""
6026   else
6027     case $cross_compiling:$ac_tool_warned in
6028 yes:)
6029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6030 whose name does not start with the host triplet.  If you think this
6031 configuration is useful to you, please write to autoconf@gnu.org." >&5
6032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet.  If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6035 ac_tool_warned=yes ;;
6036 esac
6037     F77=$ac_ct_F77
6038   fi
6039 fi
6040
6041
6042 # Provide some information about the compiler.
6043 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6044 ac_compiler=`set X $ac_compile; echo $2`
6045 { (ac_try="$ac_compiler --version >&5"
6046 case "(($ac_try" in
6047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048   *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051   (eval "$ac_compiler --version >&5") 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }
6055 { (ac_try="$ac_compiler -v >&5"
6056 case "(($ac_try" in
6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058   *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061   (eval "$ac_compiler -v >&5") 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }
6065 { (ac_try="$ac_compiler -V >&5"
6066 case "(($ac_try" in
6067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068   *) ac_try_echo=$ac_try;;
6069 esac
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071   (eval "$ac_compiler -V >&5") 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }
6075 rm -f a.out
6076
6077 # If we don't use `.F' as extension, the preprocessor is not run on the
6078 # input file.  (Note that this only needs to work for GNU compilers.)
6079 ac_save_ext=$ac_ext
6080 ac_ext=F
6081 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6082 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6083 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   cat >conftest.$ac_ext <<_ACEOF
6087       program main
6088 #ifndef __GNUC__
6089        choke me
6090 #endif
6091
6092       end
6093 _ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (ac_try="$ac_compile"
6096 case "(($ac_try" in
6097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098   *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101   (eval "$ac_compile") 2>conftest.er1
6102   ac_status=$?
6103   grep -v '^ *+' conftest.er1 >conftest.err
6104   rm -f conftest.er1
6105   cat conftest.err >&5
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); } && {
6108          test -z "$ac_f77_werror_flag" ||
6109          test ! -s conftest.err
6110        } && test -s conftest.$ac_objext; then
6111   ac_compiler_gnu=yes
6112 else
6113   echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116         ac_compiler_gnu=no
6117 fi
6118
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6121
6122 fi
6123 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6124 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6125 ac_ext=$ac_save_ext
6126 ac_test_FFLAGS=${FFLAGS+set}
6127 ac_save_FFLAGS=$FFLAGS
6128 FFLAGS=
6129 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6130 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_f77_g+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   FFLAGS=-g
6135 cat >conftest.$ac_ext <<_ACEOF
6136       program main
6137
6138       end
6139 _ACEOF
6140 rm -f conftest.$ac_objext
6141 if { (ac_try="$ac_compile"
6142 case "(($ac_try" in
6143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144   *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147   (eval "$ac_compile") 2>conftest.er1
6148   ac_status=$?
6149   grep -v '^ *+' conftest.er1 >conftest.err
6150   rm -f conftest.er1
6151   cat conftest.err >&5
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } && {
6154          test -z "$ac_f77_werror_flag" ||
6155          test ! -s conftest.err
6156        } && test -s conftest.$ac_objext; then
6157   ac_cv_prog_f77_g=yes
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162         ac_cv_prog_f77_g=no
6163 fi
6164
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166
6167 fi
6168 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6169 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6170 if test "$ac_test_FFLAGS" = set; then
6171   FFLAGS=$ac_save_FFLAGS
6172 elif test $ac_cv_prog_f77_g = yes; then
6173   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6174     FFLAGS="-g -O2"
6175   else
6176     FFLAGS="-g"
6177   fi
6178 else
6179   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6180     FFLAGS="-O2"
6181   else
6182     FFLAGS=
6183   fi
6184 fi
6185
6186 G77=`test $ac_compiler_gnu = yes && echo yes`
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194
6195 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6196
6197 # find the maximum length of command line arguments
6198 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6199 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6200 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203     i=0
6204   teststring="ABCD"
6205
6206   case $build_os in
6207   msdosdjgpp*)
6208     # On DJGPP, this test can blow up pretty badly due to problems in libc
6209     # (any single argument exceeding 2000 bytes causes a buffer overrun
6210     # during glob expansion).  Even if it were fixed, the result of this
6211     # check would be larger than it should be.
6212     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6213     ;;
6214
6215   gnu*)
6216     # Under GNU Hurd, this test is not required because there is
6217     # no limit to the length of command line arguments.
6218     # Libtool will interpret -1 as no limit whatsoever
6219     lt_cv_sys_max_cmd_len=-1;
6220     ;;
6221
6222   cygwin* | mingw*)
6223     # On Win9x/ME, this test blows up -- it succeeds, but takes
6224     # about 5 minutes as the teststring grows exponentially.
6225     # Worse, since 9x/ME are not pre-emptively multitasking,
6226     # you end up with a "frozen" computer, even though with patience
6227     # the test eventually succeeds (with a max line length of 256k).
6228     # Instead, let's just punt: use the minimum linelength reported by
6229     # all of the supported platforms: 8192 (on NT/2K/XP).
6230     lt_cv_sys_max_cmd_len=8192;
6231     ;;
6232
6233   amigaos*)
6234     # On AmigaOS with pdksh, this test takes hours, literally.
6235     # So we just punt and use a minimum line length of 8192.
6236     lt_cv_sys_max_cmd_len=8192;
6237     ;;
6238
6239   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6240     # This has been around since 386BSD, at least.  Likely further.
6241     if test -x /sbin/sysctl; then
6242       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6243     elif test -x /usr/sbin/sysctl; then
6244       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6245     else
6246       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6247     fi
6248     # And add a safety zone
6249     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251     ;;
6252
6253   interix*)
6254     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6255     lt_cv_sys_max_cmd_len=196608
6256     ;;
6257
6258   osf*)
6259     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6260     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6261     # nice to cause kernel panics so lets avoid the loop below.
6262     # First set a reasonable default.
6263     lt_cv_sys_max_cmd_len=16384
6264     #
6265     if test -x /sbin/sysconfig; then
6266       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6267         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6268       esac
6269     fi
6270     ;;
6271   sco3.2v5*)
6272     lt_cv_sys_max_cmd_len=102400
6273     ;;
6274   sysv5* | sco5v6* | sysv4.2uw2*)
6275     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6276     if test -n "$kargmax"; then
6277       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6278     else
6279       lt_cv_sys_max_cmd_len=32768
6280     fi
6281     ;;
6282   *)
6283     # If test is not a shell built-in, we'll probably end up computing a
6284     # maximum length that is only half of the actual maximum length, but
6285     # we can't tell.
6286     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6287     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6288                = "XX$teststring") >/dev/null 2>&1 &&
6289             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6290             lt_cv_sys_max_cmd_len=$new_result &&
6291             test $i != 17 # 1/2 MB should be enough
6292     do
6293       i=`expr $i + 1`
6294       teststring=$teststring$teststring
6295     done
6296     teststring=
6297     # Add a significant safety factor because C++ compilers can tack on massive
6298     # amounts of additional arguments before passing them to the linker.
6299     # It appears as though 1/2 is a usable value.
6300     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6301     ;;
6302   esac
6303
6304 fi
6305
6306 if test -n $lt_cv_sys_max_cmd_len ; then
6307   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6308 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6309 else
6310   { echo "$as_me:$LINENO: result: none" >&5
6311 echo "${ECHO_T}none" >&6; }
6312 fi
6313
6314
6315
6316
6317 # Check for command to grab the raw symbol name followed by C symbol from nm.
6318 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6319 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323
6324 # These are sane defaults that work on at least a few old systems.
6325 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6326
6327 # Character class describing NM global symbol codes.
6328 symcode='[BCDEGRST]'
6329
6330 # Regexp to match symbols that can be accessed directly from C.
6331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6332
6333 # Transform an extracted symbol line into a proper C declaration
6334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6335
6336 # Transform an extracted symbol line into symbol name and symbol address
6337 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'"
6338
6339 # Define system-specific variables.
6340 case $host_os in
6341 aix*)
6342   symcode='[BCDT]'
6343   ;;
6344 cygwin* | mingw* | pw32*)
6345   symcode='[ABCDGISTW]'
6346   ;;
6347 hpux*) # Its linker distinguishes data from code symbols
6348   if test "$host_cpu" = ia64; then
6349     symcode='[ABCDEGRST]'
6350   fi
6351   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6352   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'"
6353   ;;
6354 linux* | k*bsd*-gnu)
6355   if test "$host_cpu" = ia64; then
6356     symcode='[ABCDGIRSTW]'
6357     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358     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'"
6359   fi
6360   ;;
6361 irix* | nonstopux*)
6362   symcode='[BCDEGRST]'
6363   ;;
6364 osf*)
6365   symcode='[BCDEGQRST]'
6366   ;;
6367 solaris*)
6368   symcode='[BDRT]'
6369   ;;
6370 sco3.2v5*)
6371   symcode='[DT]'
6372   ;;
6373 sysv4.2uw2*)
6374   symcode='[DT]'
6375   ;;
6376 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6377   symcode='[ABDT]'
6378   ;;
6379 sysv4)
6380   symcode='[DFNSTU]'
6381   ;;
6382 esac
6383
6384 # Handle CRLF in mingw tool chain
6385 opt_cr=
6386 case $build_os in
6387 mingw*)
6388   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6389   ;;
6390 esac
6391
6392 # If we're using GNU nm, then use its standard symbol codes.
6393 case `$NM -V 2>&1` in
6394 *GNU* | *'with BFD'*)
6395   symcode='[ABCDGIRSTW]' ;;
6396 esac
6397
6398 # Try without a prefix undercore, then with it.
6399 for ac_symprfx in "" "_"; do
6400
6401   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6402   symxfrm="\\1 $ac_symprfx\\2 \\2"
6403
6404   # Write the raw and C identifiers.
6405   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6406
6407   # Check to see that the pipe works correctly.
6408   pipe_works=no
6409
6410   rm -f conftest*
6411   cat > conftest.$ac_ext <<EOF
6412 #ifdef __cplusplus
6413 extern "C" {
6414 #endif
6415 char nm_test_var;
6416 void nm_test_func(){}
6417 #ifdef __cplusplus
6418 }
6419 #endif
6420 int main(){nm_test_var='a';nm_test_func();return(0);}
6421 EOF
6422
6423   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424   (eval $ac_compile) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; then
6428     # Now try to grab the symbols.
6429     nlist=conftest.nm
6430     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6431   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } && test -s "$nlist"; then
6435       # Try sorting and uniquifying the output.
6436       if sort "$nlist" | uniq > "$nlist"T; then
6437         mv -f "$nlist"T "$nlist"
6438       else
6439         rm -f "$nlist"T
6440       fi
6441
6442       # Make sure that we snagged all the symbols we need.
6443       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6444         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6445           cat <<EOF > conftest.$ac_ext
6446 #ifdef __cplusplus
6447 extern "C" {
6448 #endif
6449
6450 EOF
6451           # Now generate the symbol file.
6452           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6453
6454           cat <<EOF >> conftest.$ac_ext
6455 #if defined (__STDC__) && __STDC__
6456 # define lt_ptr_t void *
6457 #else
6458 # define lt_ptr_t char *
6459 # define const
6460 #endif
6461
6462 /* The mapping between symbol names and symbols. */
6463 const struct {
6464   const char *name;
6465   lt_ptr_t address;
6466 }
6467 lt_preloaded_symbols[] =
6468 {
6469 EOF
6470           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6471           cat <<\EOF >> conftest.$ac_ext
6472   {0, (lt_ptr_t) 0}
6473 };
6474
6475 #ifdef __cplusplus
6476 }
6477 #endif
6478 EOF
6479           # Now try linking the two files.
6480           mv conftest.$ac_objext conftstm.$ac_objext
6481           lt_save_LIBS="$LIBS"
6482           lt_save_CFLAGS="$CFLAGS"
6483           LIBS="conftstm.$ac_objext"
6484           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6485           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486   (eval $ac_link) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6490             pipe_works=yes
6491           fi
6492           LIBS="$lt_save_LIBS"
6493           CFLAGS="$lt_save_CFLAGS"
6494         else
6495           echo "cannot find nm_test_func in $nlist" >&5
6496         fi
6497       else
6498         echo "cannot find nm_test_var in $nlist" >&5
6499       fi
6500     else
6501       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6502     fi
6503   else
6504     echo "$progname: failed program was:" >&5
6505     cat conftest.$ac_ext >&5
6506   fi
6507   rm -f conftest* conftst*
6508
6509   # Do not use the global_symbol_pipe unless it works.
6510   if test "$pipe_works" = yes; then
6511     break
6512   else
6513     lt_cv_sys_global_symbol_pipe=
6514   fi
6515 done
6516
6517 fi
6518
6519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6520   lt_cv_sys_global_symbol_to_cdecl=
6521 fi
6522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6523   { echo "$as_me:$LINENO: result: failed" >&5
6524 echo "${ECHO_T}failed" >&6; }
6525 else
6526   { echo "$as_me:$LINENO: result: ok" >&5
6527 echo "${ECHO_T}ok" >&6; }
6528 fi
6529
6530 { echo "$as_me:$LINENO: checking for objdir" >&5
6531 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6532 if test "${lt_cv_objdir+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   rm -f .libs 2>/dev/null
6536 mkdir .libs 2>/dev/null
6537 if test -d .libs; then
6538   lt_cv_objdir=.libs
6539 else
6540   # MS-DOS does not allow filenames that begin with a dot.
6541   lt_cv_objdir=_libs
6542 fi
6543 rmdir .libs 2>/dev/null
6544 fi
6545 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6546 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6547 objdir=$lt_cv_objdir
6548
6549
6550
6551
6552
6553 case $host_os in
6554 aix3*)
6555   # AIX sometimes has problems with the GCC collect2 program.  For some
6556   # reason, if we set the COLLECT_NAMES environment variable, the problems
6557   # vanish in a puff of smoke.
6558   if test "X${COLLECT_NAMES+set}" != Xset; then
6559     COLLECT_NAMES=
6560     export COLLECT_NAMES
6561   fi
6562   ;;
6563 esac
6564
6565 # Sed substitution that helps us do robust quoting.  It backslashifies
6566 # metacharacters that are still active within double-quoted strings.
6567 Xsed='sed -e 1s/^X//'
6568 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6569
6570 # Same as above, but do not quote variable references.
6571 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6572
6573 # Sed substitution to delay expansion of an escaped shell variable in a
6574 # double_quote_subst'ed string.
6575 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6576
6577 # Sed substitution to avoid accidental globbing in evaled expressions
6578 no_glob_subst='s/\*/\\\*/g'
6579
6580 # Constants:
6581 rm="rm -f"
6582
6583 # Global variables:
6584 default_ofile=libtool
6585 can_build_shared=yes
6586
6587 # All known linkers require a `.a' archive for static linking (except MSVC,
6588 # which needs '.lib').
6589 libext=a
6590 ltmain="$ac_aux_dir/ltmain.sh"
6591 ofile="$default_ofile"
6592 with_gnu_ld="$lt_cv_prog_gnu_ld"
6593
6594 if test -n "$ac_tool_prefix"; then
6595   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}ar; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_prog_AR+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   if test -n "$AR"; then
6603   ac_cv_prog_AR="$AR" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_prog_AR="${ac_tool_prefix}ar"
6613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 AR=$ac_cv_prog_AR
6623 if test -n "$AR"; then
6624   { echo "$as_me:$LINENO: result: $AR" >&5
6625 echo "${ECHO_T}$AR" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631
6632 fi
6633 if test -z "$ac_cv_prog_AR"; then
6634   ac_ct_AR=$AR
6635   # Extract the first word of "ar", so it can be a program name with args.
6636 set dummy ar; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   if test -n "$ac_ct_AR"; then
6643   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650   for ac_exec_ext in '' $ac_executable_extensions; do
6651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652     ac_cv_prog_ac_ct_AR="ar"
6653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657 done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6663 if test -n "$ac_ct_AR"; then
6664   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6665 echo "${ECHO_T}$ac_ct_AR" >&6; }
6666 else
6667   { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6669 fi
6670
6671   if test "x$ac_ct_AR" = x; then
6672     AR="false"
6673   else
6674     case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet.  If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&5
6679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet.  If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6682 ac_tool_warned=yes ;;
6683 esac
6684     AR=$ac_ct_AR
6685   fi
6686 else
6687   AR="$ac_cv_prog_AR"
6688 fi
6689
6690 if test -n "$ac_tool_prefix"; then
6691   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_prog_RANLIB+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   if test -n "$RANLIB"; then
6699   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706   for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 RANLIB=$ac_cv_prog_RANLIB
6719 if test -n "$RANLIB"; then
6720   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6721 echo "${ECHO_T}$RANLIB" >&6; }
6722 else
6723   { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_RANLIB"; then
6730   ac_ct_RANLIB=$RANLIB
6731   # Extract the first word of "ranlib", so it can be a program name with args.
6732 set dummy ranlib; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738   if test -n "$ac_ct_RANLIB"; then
6739   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746   for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_prog_ac_ct_RANLIB="ranlib"
6749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6759 if test -n "$ac_ct_RANLIB"; then
6760   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6761 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6762 else
6763   { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6766
6767   if test "x$ac_ct_RANLIB" = x; then
6768     RANLIB=":"
6769   else
6770     case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6773 whose name does not start with the host triplet.  If you think this
6774 configuration is useful to you, please write to autoconf@gnu.org." >&5
6775 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6776 whose name does not start with the host triplet.  If you think this
6777 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780     RANLIB=$ac_ct_RANLIB
6781   fi
6782 else
6783   RANLIB="$ac_cv_prog_RANLIB"
6784 fi
6785
6786 if test -n "$ac_tool_prefix"; then
6787   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}strip; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_STRIP+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   if test -n "$STRIP"; then
6795   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 STRIP=$ac_cv_prog_STRIP
6815 if test -n "$STRIP"; then
6816   { echo "$as_me:$LINENO: result: $STRIP" >&5
6817 echo "${ECHO_T}$STRIP" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_STRIP"; then
6826   ac_ct_STRIP=$STRIP
6827   # Extract the first word of "strip", so it can be a program name with args.
6828 set dummy strip; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   if test -n "$ac_ct_STRIP"; then
6835   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842   for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_prog_ac_ct_STRIP="strip"
6845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6855 if test -n "$ac_ct_STRIP"; then
6856   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6857 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6858 else
6859   { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6861 fi
6862
6863   if test "x$ac_ct_STRIP" = x; then
6864     STRIP=":"
6865   else
6866     case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869 whose name does not start with the host triplet.  If you think this
6870 configuration is useful to you, please write to autoconf@gnu.org." >&5
6871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet.  If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876     STRIP=$ac_ct_STRIP
6877   fi
6878 else
6879   STRIP="$ac_cv_prog_STRIP"
6880 fi
6881
6882
6883 old_CC="$CC"
6884 old_CFLAGS="$CFLAGS"
6885
6886 # Set sane defaults for various variables
6887 test -z "$AR" && AR=ar
6888 test -z "$AR_FLAGS" && AR_FLAGS=cru
6889 test -z "$AS" && AS=as
6890 test -z "$CC" && CC=cc
6891 test -z "$LTCC" && LTCC=$CC
6892 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6893 test -z "$DLLTOOL" && DLLTOOL=dlltool
6894 test -z "$LD" && LD=ld
6895 test -z "$LN_S" && LN_S="ln -s"
6896 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6897 test -z "$NM" && NM=nm
6898 test -z "$SED" && SED=sed
6899 test -z "$OBJDUMP" && OBJDUMP=objdump
6900 test -z "$RANLIB" && RANLIB=:
6901 test -z "$STRIP" && STRIP=:
6902 test -z "$ac_objext" && ac_objext=o
6903
6904 # Determine commands to create old-style static archives.
6905 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6906 old_postinstall_cmds='chmod 644 $oldlib'
6907 old_postuninstall_cmds=
6908
6909 if test -n "$RANLIB"; then
6910   case $host_os in
6911   openbsd*)
6912     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6913     ;;
6914   *)
6915     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6916     ;;
6917   esac
6918   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6919 fi
6920
6921 for cc_temp in $compiler""; do
6922   case $cc_temp in
6923     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6924     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6925     \-*) ;;
6926     *) break;;
6927   esac
6928 done
6929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6930
6931
6932 # Only perform the check for file, if the check method requires it
6933 case $deplibs_check_method in
6934 file_magic*)
6935   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6936     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6937 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6938 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   case $MAGIC_CMD in
6942 [\\/*] |  ?:[\\/]*)
6943   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6944   ;;
6945 *)
6946   lt_save_MAGIC_CMD="$MAGIC_CMD"
6947   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6948   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6949   for ac_dir in $ac_dummy; do
6950     IFS="$lt_save_ifs"
6951     test -z "$ac_dir" && ac_dir=.
6952     if test -f $ac_dir/${ac_tool_prefix}file; then
6953       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6954       if test -n "$file_magic_test_file"; then
6955         case $deplibs_check_method in
6956         "file_magic "*)
6957           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6958           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6959           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6960             $EGREP "$file_magic_regex" > /dev/null; then
6961             :
6962           else
6963             cat <<EOF 1>&2
6964
6965 *** Warning: the command libtool uses to detect shared libraries,
6966 *** $file_magic_cmd, produces output that libtool cannot recognize.
6967 *** The result is that libtool may fail to recognize shared libraries
6968 *** as such.  This will affect the creation of libtool libraries that
6969 *** depend on shared libraries, but programs linked with such libtool
6970 *** libraries will work regardless of this problem.  Nevertheless, you
6971 *** may want to report the problem to your system manager and/or to
6972 *** bug-libtool@gnu.org
6973
6974 EOF
6975           fi ;;
6976         esac
6977       fi
6978       break
6979     fi
6980   done
6981   IFS="$lt_save_ifs"
6982   MAGIC_CMD="$lt_save_MAGIC_CMD"
6983   ;;
6984 esac
6985 fi
6986
6987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988 if test -n "$MAGIC_CMD"; then
6989   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6990 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6991 else
6992   { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6994 fi
6995
6996 if test -z "$lt_cv_path_MAGIC_CMD"; then
6997   if test -n "$ac_tool_prefix"; then
6998     { echo "$as_me:$LINENO: checking for file" >&5
6999 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   case $MAGIC_CMD in
7004 [\\/*] |  ?:[\\/]*)
7005   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7006   ;;
7007 *)
7008   lt_save_MAGIC_CMD="$MAGIC_CMD"
7009   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7010   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7011   for ac_dir in $ac_dummy; do
7012     IFS="$lt_save_ifs"
7013     test -z "$ac_dir" && ac_dir=.
7014     if test -f $ac_dir/file; then
7015       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7016       if test -n "$file_magic_test_file"; then
7017         case $deplibs_check_method in
7018         "file_magic "*)
7019           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7020           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7021           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7022             $EGREP "$file_magic_regex" > /dev/null; then
7023             :
7024           else
7025             cat <<EOF 1>&2
7026
7027 *** Warning: the command libtool uses to detect shared libraries,
7028 *** $file_magic_cmd, produces output that libtool cannot recognize.
7029 *** The result is that libtool may fail to recognize shared libraries
7030 *** as such.  This will affect the creation of libtool libraries that
7031 *** depend on shared libraries, but programs linked with such libtool
7032 *** libraries will work regardless of this problem.  Nevertheless, you
7033 *** may want to report the problem to your system manager and/or to
7034 *** bug-libtool@gnu.org
7035
7036 EOF
7037           fi ;;
7038         esac
7039       fi
7040       break
7041     fi
7042   done
7043   IFS="$lt_save_ifs"
7044   MAGIC_CMD="$lt_save_MAGIC_CMD"
7045   ;;
7046 esac
7047 fi
7048
7049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7050 if test -n "$MAGIC_CMD"; then
7051   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7052 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7053 else
7054   { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7056 fi
7057
7058   else
7059     MAGIC_CMD=:
7060   fi
7061 fi
7062
7063   fi
7064   ;;
7065 esac
7066
7067 enable_dlopen=no
7068 enable_win32_dll=no
7069
7070 # Check whether --enable-libtool-lock was given.
7071 if test "${enable_libtool_lock+set}" = set; then
7072   enableval=$enable_libtool_lock;
7073 fi
7074
7075 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7076
7077
7078 # Check whether --with-pic was given.
7079 if test "${with_pic+set}" = set; then
7080   withval=$with_pic; pic_mode="$withval"
7081 else
7082   pic_mode=default
7083 fi
7084
7085 test -z "$pic_mode" && pic_mode=default
7086
7087 # Use C for the default configuration in the libtool script
7088 tagname=
7089 lt_save_CC="$CC"
7090 ac_ext=c
7091 ac_cpp='$CPP $CPPFLAGS'
7092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095
7096
7097 # Source file extension for C test sources.
7098 ac_ext=c
7099
7100 # Object file extension for compiled C test sources.
7101 objext=o
7102 objext=$objext
7103
7104 # Code to be used in simple compile tests
7105 lt_simple_compile_test_code="int some_variable = 0;\n"
7106
7107 # Code to be used in simple link tests
7108 lt_simple_link_test_code='int main(){return(0);}\n'
7109
7110
7111 # If no C compiler was specified, use CC.
7112 LTCC=${LTCC-"$CC"}
7113
7114 # If no C compiler flags were specified, use CFLAGS.
7115 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7116
7117 # Allow CC to be a program name with arguments.
7118 compiler=$CC
7119
7120
7121 # save warnings/boilerplate of simple test code
7122 ac_outfile=conftest.$ac_objext
7123 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7124 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7125 _lt_compiler_boilerplate=`cat conftest.err`
7126 $rm conftest*
7127
7128 ac_outfile=conftest.$ac_objext
7129 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7130 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7131 _lt_linker_boilerplate=`cat conftest.err`
7132 $rm conftest*
7133
7134
7135
7136 lt_prog_compiler_no_builtin_flag=
7137
7138 if test "$GCC" = yes; then
7139   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7140
7141
7142 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7143 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7144 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   lt_cv_prog_compiler_rtti_exceptions=no
7148   ac_outfile=conftest.$ac_objext
7149    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7150    lt_compiler_flag="-fno-rtti -fno-exceptions"
7151    # Insert the option either (1) after the last *FLAGS variable, or
7152    # (2) before a word containing "conftest.", or (3) at the end.
7153    # Note that $ac_compile itself does not contain backslashes and begins
7154    # with a dollar sign (not a hyphen), so the echo should work correctly.
7155    # The option is referenced via a variable to avoid confusing sed.
7156    lt_compile=`echo "$ac_compile" | $SED \
7157    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7158    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7159    -e 's:$: $lt_compiler_flag:'`
7160    (eval echo "\"\$as_me:7160: $lt_compile\"" >&5)
7161    (eval "$lt_compile" 2>conftest.err)
7162    ac_status=$?
7163    cat conftest.err >&5
7164    echo "$as_me:7164: \$? = $ac_status" >&5
7165    if (exit $ac_status) && test -s "$ac_outfile"; then
7166      # The compiler can only warn and ignore the option if not recognized
7167      # So say no if there are warnings other than the usual output.
7168      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7169      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7170      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7171        lt_cv_prog_compiler_rtti_exceptions=yes
7172      fi
7173    fi
7174    $rm conftest*
7175
7176 fi
7177 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7178 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7179
7180 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7181     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7182 else
7183     :
7184 fi
7185
7186 fi
7187
7188 lt_prog_compiler_wl=
7189 lt_prog_compiler_pic=
7190 lt_prog_compiler_static=
7191
7192 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7193 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7194
7195   if test "$GCC" = yes; then
7196     lt_prog_compiler_wl='-Wl,'
7197     lt_prog_compiler_static='-static'
7198
7199     case $host_os in
7200       aix*)
7201       # All AIX code is PIC.
7202       if test "$host_cpu" = ia64; then
7203         # AIX 5 now supports IA64 processor
7204         lt_prog_compiler_static='-Bstatic'
7205       fi
7206       ;;
7207
7208     amigaos*)
7209       # FIXME: we need at least 68020 code to build shared libraries, but
7210       # adding the `-m68020' flag to GCC prevents building anything better,
7211       # like `-m68040'.
7212       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7213       ;;
7214
7215     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7216       # PIC is the default for these OSes.
7217       ;;
7218
7219     mingw* | pw32* | os2*)
7220       # This hack is so that the source file can tell whether it is being
7221       # built for inclusion in a dll (and should export symbols for example).
7222       lt_prog_compiler_pic='-DDLL_EXPORT'
7223       ;;
7224
7225     darwin* | rhapsody*)
7226       # PIC is the default on this platform
7227       # Common symbols not allowed in MH_DYLIB files
7228       lt_prog_compiler_pic='-fno-common'
7229       ;;
7230
7231     interix3*)
7232       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7233       # Instead, we relocate shared libraries at runtime.
7234       ;;
7235
7236     msdosdjgpp*)
7237       # Just because we use GCC doesn't mean we suddenly get shared libraries
7238       # on systems that don't support them.
7239       lt_prog_compiler_can_build_shared=no
7240       enable_shared=no
7241       ;;
7242
7243     sysv4*MP*)
7244       if test -d /usr/nec; then
7245         lt_prog_compiler_pic=-Kconform_pic
7246       fi
7247       ;;
7248
7249     hpux*)
7250       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7251       # not for PA HP-UX.
7252       case $host_cpu in
7253       hppa*64*|ia64*)
7254         # +Z the default
7255         ;;
7256       *)
7257         lt_prog_compiler_pic='-fPIC'
7258         ;;
7259       esac
7260       ;;
7261
7262     *)
7263       lt_prog_compiler_pic='-fPIC'
7264       ;;
7265     esac
7266   else
7267     # PORTME Check for flag to pass linker flags through the system compiler.
7268     case $host_os in
7269     aix*)
7270       lt_prog_compiler_wl='-Wl,'
7271       if test "$host_cpu" = ia64; then
7272         # AIX 5 now supports IA64 processor
7273         lt_prog_compiler_static='-Bstatic'
7274       else
7275         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7276       fi
7277       ;;
7278       darwin*)
7279         # PIC is the default on this platform
7280         # Common symbols not allowed in MH_DYLIB files
7281        case $cc_basename in
7282          xlc*)
7283          lt_prog_compiler_pic='-qnocommon'
7284          lt_prog_compiler_wl='-Wl,'
7285          ;;
7286        esac
7287        ;;
7288
7289     mingw* | pw32* | os2*)
7290       # This hack is so that the source file can tell whether it is being
7291       # built for inclusion in a dll (and should export symbols for example).
7292       lt_prog_compiler_pic='-DDLL_EXPORT'
7293       ;;
7294
7295     hpux9* | hpux10* | hpux11*)
7296       lt_prog_compiler_wl='-Wl,'
7297       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7298       # not for PA HP-UX.
7299       case $host_cpu in
7300       hppa*64*|ia64*)
7301         # +Z the default
7302         ;;
7303       *)
7304         lt_prog_compiler_pic='+Z'
7305         ;;
7306       esac
7307       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7308       lt_prog_compiler_static='${wl}-a ${wl}archive'
7309       ;;
7310
7311     irix5* | irix6* | nonstopux*)
7312       lt_prog_compiler_wl='-Wl,'
7313       # PIC (with -KPIC) is the default.
7314       lt_prog_compiler_static='-non_shared'
7315       ;;
7316
7317     newsos6)
7318       lt_prog_compiler_pic='-KPIC'
7319       lt_prog_compiler_static='-Bstatic'
7320       ;;
7321
7322     linux* | k*bsd*-gnu)
7323       case $cc_basename in
7324       icc* | ecc*)
7325         lt_prog_compiler_wl='-Wl,'
7326         lt_prog_compiler_pic='-KPIC'
7327         lt_prog_compiler_static='-static'
7328         ;;
7329       pgcc* | pgf77* | pgf90* | pgf95*)
7330         # Portland Group compilers (*not* the Pentium gcc compiler,
7331         # which looks to be a dead project)
7332         lt_prog_compiler_wl='-Wl,'
7333         lt_prog_compiler_pic='-fpic'
7334         lt_prog_compiler_static='-Bstatic'
7335         ;;
7336       ccc*)
7337         lt_prog_compiler_wl='-Wl,'
7338         # All Alpha code is PIC.
7339         lt_prog_compiler_static='-non_shared'
7340         ;;
7341       esac
7342       ;;
7343
7344     osf3* | osf4* | osf5*)
7345       lt_prog_compiler_wl='-Wl,'
7346       # All OSF/1 code is PIC.
7347       lt_prog_compiler_static='-non_shared'
7348       ;;
7349
7350     solaris*)
7351       lt_prog_compiler_pic='-KPIC'
7352       lt_prog_compiler_static='-Bstatic'
7353       case $cc_basename in
7354       f77* | f90* | f95*)
7355         lt_prog_compiler_wl='-Qoption ld ';;
7356       *)
7357         lt_prog_compiler_wl='-Wl,';;
7358       esac
7359       ;;
7360
7361     sunos4*)
7362       lt_prog_compiler_wl='-Qoption ld '
7363       lt_prog_compiler_pic='-PIC'
7364       lt_prog_compiler_static='-Bstatic'
7365       ;;
7366
7367     sysv4 | sysv4.2uw2* | sysv4.3*)
7368       lt_prog_compiler_wl='-Wl,'
7369       lt_prog_compiler_pic='-KPIC'
7370       lt_prog_compiler_static='-Bstatic'
7371       ;;
7372
7373     sysv4*MP*)
7374       if test -d /usr/nec ;then
7375         lt_prog_compiler_pic='-Kconform_pic'
7376         lt_prog_compiler_static='-Bstatic'
7377       fi
7378       ;;
7379
7380     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7381       lt_prog_compiler_wl='-Wl,'
7382       lt_prog_compiler_pic='-KPIC'
7383       lt_prog_compiler_static='-Bstatic'
7384       ;;
7385
7386     unicos*)
7387       lt_prog_compiler_wl='-Wl,'
7388       lt_prog_compiler_can_build_shared=no
7389       ;;
7390
7391     uts4*)
7392       lt_prog_compiler_pic='-pic'
7393       lt_prog_compiler_static='-Bstatic'
7394       ;;
7395
7396     *)
7397       lt_prog_compiler_can_build_shared=no
7398       ;;
7399     esac
7400   fi
7401
7402 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7403 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7404
7405 #
7406 # Check to make sure the PIC flag actually works.
7407 #
7408 if test -n "$lt_prog_compiler_pic"; then
7409
7410 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7411 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7412 if test "${lt_prog_compiler_pic_works+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   lt_prog_compiler_pic_works=no
7416   ac_outfile=conftest.$ac_objext
7417    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7418    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7419    # Insert the option either (1) after the last *FLAGS variable, or
7420    # (2) before a word containing "conftest.", or (3) at the end.
7421    # Note that $ac_compile itself does not contain backslashes and begins
7422    # with a dollar sign (not a hyphen), so the echo should work correctly.
7423    # The option is referenced via a variable to avoid confusing sed.
7424    lt_compile=`echo "$ac_compile" | $SED \
7425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7427    -e 's:$: $lt_compiler_flag:'`
7428    (eval echo "\"\$as_me:7428: $lt_compile\"" >&5)
7429    (eval "$lt_compile" 2>conftest.err)
7430    ac_status=$?
7431    cat conftest.err >&5
7432    echo "$as_me:7432: \$? = $ac_status" >&5
7433    if (exit $ac_status) && test -s "$ac_outfile"; then
7434      # The compiler can only warn and ignore the option if not recognized
7435      # So say no if there are warnings other than the usual output.
7436      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7439        lt_prog_compiler_pic_works=yes
7440      fi
7441    fi
7442    $rm conftest*
7443
7444 fi
7445 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7446 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7447
7448 if test x"$lt_prog_compiler_pic_works" = xyes; then
7449     case $lt_prog_compiler_pic in
7450      "" | " "*) ;;
7451      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7452      esac
7453 else
7454     lt_prog_compiler_pic=
7455      lt_prog_compiler_can_build_shared=no
7456 fi
7457
7458 fi
7459 case $host_os in
7460   # For platforms which do not support PIC, -DPIC is meaningless:
7461   *djgpp*)
7462     lt_prog_compiler_pic=
7463     ;;
7464   *)
7465     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7466     ;;
7467 esac
7468
7469 #
7470 # Check to make sure the static flag actually works.
7471 #
7472 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7473 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7474 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7475 if test "${lt_prog_compiler_static_works+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   lt_prog_compiler_static_works=no
7479    save_LDFLAGS="$LDFLAGS"
7480    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7481    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7482    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7483      # The linker can only warn and ignore the option if not recognized
7484      # So say no if there are warnings
7485      if test -s conftest.err; then
7486        # Append any errors to the config.log.
7487        cat conftest.err 1>&5
7488        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7489        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7490        if diff conftest.exp conftest.er2 >/dev/null; then
7491          lt_prog_compiler_static_works=yes
7492        fi
7493      else
7494        lt_prog_compiler_static_works=yes
7495      fi
7496    fi
7497    $rm conftest*
7498    LDFLAGS="$save_LDFLAGS"
7499
7500 fi
7501 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7502 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7503
7504 if test x"$lt_prog_compiler_static_works" = xyes; then
7505     :
7506 else
7507     lt_prog_compiler_static=
7508 fi
7509
7510
7511 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7512 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7513 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   lt_cv_prog_compiler_c_o=no
7517    $rm -r conftest 2>/dev/null
7518    mkdir conftest
7519    cd conftest
7520    mkdir out
7521    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7522
7523    lt_compiler_flag="-o out/conftest2.$ac_objext"
7524    # Insert the option either (1) after the last *FLAGS variable, or
7525    # (2) before a word containing "conftest.", or (3) at the end.
7526    # Note that $ac_compile itself does not contain backslashes and begins
7527    # with a dollar sign (not a hyphen), so the echo should work correctly.
7528    lt_compile=`echo "$ac_compile" | $SED \
7529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7531    -e 's:$: $lt_compiler_flag:'`
7532    (eval echo "\"\$as_me:7532: $lt_compile\"" >&5)
7533    (eval "$lt_compile" 2>out/conftest.err)
7534    ac_status=$?
7535    cat out/conftest.err >&5
7536    echo "$as_me:7536: \$? = $ac_status" >&5
7537    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7538    then
7539      # The compiler can only warn and ignore the option if not recognized
7540      # So say no if there are warnings
7541      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7542      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7543      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7544        lt_cv_prog_compiler_c_o=yes
7545      fi
7546    fi
7547    chmod u+w . 2>&5
7548    $rm conftest*
7549    # SGI C++ compiler will create directory out/ii_files/ for
7550    # template instantiation
7551    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7552    $rm out/* && rmdir out
7553    cd ..
7554    rmdir conftest
7555    $rm conftest*
7556
7557 fi
7558 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7559 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7560
7561
7562 hard_links="nottested"
7563 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7564   # do not overwrite the value of need_locks provided by the user
7565   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7566 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7567   hard_links=yes
7568   $rm conftest*
7569   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7570   touch conftest.a
7571   ln conftest.a conftest.b 2>&5 || hard_links=no
7572   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7573   { echo "$as_me:$LINENO: result: $hard_links" >&5
7574 echo "${ECHO_T}$hard_links" >&6; }
7575   if test "$hard_links" = no; then
7576     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7577 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7578     need_locks=warn
7579   fi
7580 else
7581   need_locks=no
7582 fi
7583
7584 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7585 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7586
7587   runpath_var=
7588   allow_undefined_flag=
7589   enable_shared_with_static_runtimes=no
7590   archive_cmds=
7591   archive_expsym_cmds=
7592   old_archive_From_new_cmds=
7593   old_archive_from_expsyms_cmds=
7594   export_dynamic_flag_spec=
7595   whole_archive_flag_spec=
7596   thread_safe_flag_spec=
7597   hardcode_libdir_flag_spec=
7598   hardcode_libdir_flag_spec_ld=
7599   hardcode_libdir_separator=
7600   hardcode_direct=no
7601   hardcode_minus_L=no
7602   hardcode_shlibpath_var=unsupported
7603   link_all_deplibs=unknown
7604   hardcode_automatic=no
7605   module_cmds=
7606   module_expsym_cmds=
7607   always_export_symbols=no
7608   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7609   # include_expsyms should be a list of space-separated symbols to be *always*
7610   # included in the symbol list
7611   include_expsyms=
7612   # exclude_expsyms can be an extended regexp of symbols to exclude
7613   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7614   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7615   # as well as any symbol that contains `d'.
7616   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7617   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7618   # platforms (ab)use it in PIC code, but their linkers get confused if
7619   # the symbol is explicitly referenced.  Since portable code cannot
7620   # rely on this symbol name, it's probably fine to never include it in
7621   # preloaded symbol tables.
7622   extract_expsyms_cmds=
7623   # Just being paranoid about ensuring that cc_basename is set.
7624   for cc_temp in $compiler""; do
7625   case $cc_temp in
7626     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7627     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7628     \-*) ;;
7629     *) break;;
7630   esac
7631 done
7632 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7633
7634   case $host_os in
7635   cygwin* | mingw* | pw32*)
7636     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7637     # When not using gcc, we currently assume that we are using
7638     # Microsoft Visual C++.
7639     if test "$GCC" != yes; then
7640       with_gnu_ld=no
7641     fi
7642     ;;
7643   interix*)
7644     # we just hope/assume this is gcc and not c89 (= MSVC++)
7645     with_gnu_ld=yes
7646     ;;
7647   openbsd*)
7648     with_gnu_ld=no
7649     ;;
7650   esac
7651
7652   ld_shlibs=yes
7653   if test "$with_gnu_ld" = yes; then
7654     # If archive_cmds runs LD, not CC, wlarc should be empty
7655     wlarc='${wl}'
7656
7657     # Set some defaults for GNU ld with shared library support. These
7658     # are reset later if shared libraries are not supported. Putting them
7659     # here allows them to be overridden if necessary.
7660     runpath_var=LD_RUN_PATH
7661     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7662     export_dynamic_flag_spec='${wl}--export-dynamic'
7663     # ancient GNU ld didn't support --whole-archive et. al.
7664     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7665         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7666       else
7667         whole_archive_flag_spec=
7668     fi
7669     supports_anon_versioning=no
7670     case `$LD -v 2>/dev/null` in
7671       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7672       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7673       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7674       *\ 2.11.*) ;; # other 2.11 versions
7675       *) supports_anon_versioning=yes ;;
7676     esac
7677
7678     # See if GNU ld supports shared libraries.
7679     case $host_os in
7680     aix3* | aix4* | aix5*)
7681       # On AIX/PPC, the GNU linker is very broken
7682       if test "$host_cpu" != ia64; then
7683         ld_shlibs=no
7684         cat <<EOF 1>&2
7685
7686 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7687 *** to be unable to reliably create shared libraries on AIX.
7688 *** Therefore, libtool is disabling shared libraries support.  If you
7689 *** really care for shared libraries, you may want to modify your PATH
7690 *** so that a non-GNU linker is found, and then restart.
7691
7692 EOF
7693       fi
7694       ;;
7695
7696     amigaos*)
7697       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)'
7698       hardcode_libdir_flag_spec='-L$libdir'
7699       hardcode_minus_L=yes
7700
7701       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7702       # that the semantics of dynamic libraries on AmigaOS, at least up
7703       # to version 4, is to share data among multiple programs linked
7704       # with the same dynamic library.  Since this doesn't match the
7705       # behavior of shared libraries on other platforms, we can't use
7706       # them.
7707       ld_shlibs=no
7708       ;;
7709
7710     beos*)
7711       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712         allow_undefined_flag=unsupported
7713         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7714         # support --undefined.  This deserves some investigation.  FIXME
7715         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716       else
7717         ld_shlibs=no
7718       fi
7719       ;;
7720
7721     cygwin* | mingw* | pw32*)
7722       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7723       # as there is no search path for DLLs.
7724       hardcode_libdir_flag_spec='-L$libdir'
7725       allow_undefined_flag=unsupported
7726       always_export_symbols=no
7727       enable_shared_with_static_runtimes=yes
7728       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7729
7730       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7731         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7732         # If the export-symbols file already is a .def file (1st line
7733         # is EXPORTS), use it as is; otherwise, prepend...
7734         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7735           cp $export_symbols $output_objdir/$soname.def;
7736         else
7737           echo EXPORTS > $output_objdir/$soname.def;
7738           cat $export_symbols >> $output_objdir/$soname.def;
7739         fi~
7740         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7741       else
7742         ld_shlibs=no
7743       fi
7744       ;;
7745
7746     interix3*)
7747       hardcode_direct=no
7748       hardcode_shlibpath_var=no
7749       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7750       export_dynamic_flag_spec='${wl}-E'
7751       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7752       # Instead, shared libraries are loaded at an image base (0x10000000 by
7753       # default) and relocated if they conflict, which is a slow very memory
7754       # consuming and fragmenting process.  To avoid this, we pick a random,
7755       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7756       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7757       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7758       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'
7759       ;;
7760
7761     linux* | k*bsd*-gnu)
7762       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7763         tmp_addflag=
7764         case $cc_basename,$host_cpu in
7765         pgcc*)                          # Portland Group C compiler
7766           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'
7767           tmp_addflag=' $pic_flag'
7768           ;;
7769         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7770           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'
7771           tmp_addflag=' $pic_flag -Mnomain' ;;
7772         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7773           tmp_addflag=' -i_dynamic' ;;
7774         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7775           tmp_addflag=' -i_dynamic -nofor_main' ;;
7776         ifc* | ifort*)                  # Intel Fortran compiler
7777           tmp_addflag=' -nofor_main' ;;
7778         esac
7779         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780
7781         if test $supports_anon_versioning = yes; then
7782           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7783   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7784   $echo "local: *; };" >> $output_objdir/$libname.ver~
7785           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7786         fi
7787         link_all_deplibs=no
7788       else
7789         ld_shlibs=no
7790       fi
7791       ;;
7792
7793     netbsd* | netbsdelf*-gnu)
7794       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7795         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7796         wlarc=
7797       else
7798         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7800       fi
7801       ;;
7802
7803     solaris*)
7804       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7805         ld_shlibs=no
7806         cat <<EOF 1>&2
7807
7808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7809 *** create shared libraries on Solaris systems.  Therefore, libtool
7810 *** is disabling shared libraries support.  We urge you to upgrade GNU
7811 *** binutils to release 2.9.1 or newer.  Another option is to modify
7812 *** your PATH or compiler configuration so that the native linker is
7813 *** used, and then restart.
7814
7815 EOF
7816       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7817         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7818         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7819       else
7820         ld_shlibs=no
7821       fi
7822       ;;
7823
7824     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7825       case `$LD -v 2>&1` in
7826         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7827         ld_shlibs=no
7828         cat <<_LT_EOF 1>&2
7829
7830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7831 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7832 *** is disabling shared libraries support.  We urge you to upgrade GNU
7833 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7834 *** your PATH or compiler configuration so that the native linker is
7835 *** used, and then restart.
7836
7837 _LT_EOF
7838         ;;
7839         *)
7840           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7841             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7842             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7843             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7844           else
7845             ld_shlibs=no
7846           fi
7847         ;;
7848       esac
7849       ;;
7850
7851     sunos4*)
7852       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7853       wlarc=
7854       hardcode_direct=yes
7855       hardcode_shlibpath_var=no
7856       ;;
7857
7858     *)
7859       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7860         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7862       else
7863         ld_shlibs=no
7864       fi
7865       ;;
7866     esac
7867
7868     if test "$ld_shlibs" = no; then
7869       runpath_var=
7870       hardcode_libdir_flag_spec=
7871       export_dynamic_flag_spec=
7872       whole_archive_flag_spec=
7873     fi
7874   else
7875     # PORTME fill in a description of your system's linker (not GNU ld)
7876     case $host_os in
7877     aix3*)
7878       allow_undefined_flag=unsupported
7879       always_export_symbols=yes
7880       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'
7881       # Note: this linker hardcodes the directories in LIBPATH if there
7882       # are no directories specified by -L.
7883       hardcode_minus_L=yes
7884       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7885         # Neither direct hardcoding nor static linking is supported with a
7886         # broken collect2.
7887         hardcode_direct=unsupported
7888       fi
7889       ;;
7890
7891     aix4* | aix5*)
7892       if test "$host_cpu" = ia64; then
7893         # On IA64, the linker does run time linking by default, so we don't
7894         # have to do anything special.
7895         aix_use_runtimelinking=no
7896         exp_sym_flag='-Bexport'
7897         no_entry_flag=""
7898       else
7899         # If we're using GNU nm, then we don't want the "-C" option.
7900         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7901         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7902           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'
7903         else
7904           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'
7905         fi
7906         aix_use_runtimelinking=no
7907
7908         # Test if we are trying to use run time linking or normal
7909         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7910         # need to do runtime linking.
7911         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7912           for ld_flag in $LDFLAGS; do
7913           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7914             aix_use_runtimelinking=yes
7915             break
7916           fi
7917           done
7918           ;;
7919         esac
7920
7921         exp_sym_flag='-bexport'
7922         no_entry_flag='-bnoentry'
7923       fi
7924
7925       # When large executables or shared objects are built, AIX ld can
7926       # have problems creating the table of contents.  If linking a library
7927       # or program results in "error TOC overflow" add -mminimal-toc to
7928       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7929       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7930
7931       archive_cmds=''
7932       hardcode_direct=yes
7933       hardcode_libdir_separator=':'
7934       link_all_deplibs=yes
7935
7936       if test "$GCC" = yes; then
7937         case $host_os in aix4.[012]|aix4.[012].*)
7938         # We only want to do this on AIX 4.2 and lower, the check
7939         # below for broken collect2 doesn't work under 4.3+
7940           collect2name=`${CC} -print-prog-name=collect2`
7941           if test -f "$collect2name" && \
7942            strings "$collect2name" | grep resolve_lib_name >/dev/null
7943           then
7944           # We have reworked collect2
7945           hardcode_direct=yes
7946           else
7947           # We have old collect2
7948           hardcode_direct=unsupported
7949           # It fails to find uninstalled libraries when the uninstalled
7950           # path is not listed in the libpath.  Setting hardcode_minus_L
7951           # to unsupported forces relinking
7952           hardcode_minus_L=yes
7953           hardcode_libdir_flag_spec='-L$libdir'
7954           hardcode_libdir_separator=
7955           fi
7956           ;;
7957         esac
7958         shared_flag='-shared'
7959         if test "$aix_use_runtimelinking" = yes; then
7960           shared_flag="$shared_flag "'${wl}-G'
7961         fi
7962       else
7963         # not using gcc
7964         if test "$host_cpu" = ia64; then
7965         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7966         # chokes on -Wl,-G. The following line is correct:
7967           shared_flag='-G'
7968         else
7969           if test "$aix_use_runtimelinking" = yes; then
7970             shared_flag='${wl}-G'
7971           else
7972             shared_flag='${wl}-bM:SRE'
7973           fi
7974         fi
7975       fi
7976
7977       # It seems that -bexpall does not export symbols beginning with
7978       # underscore (_), so it is better to generate a list of symbols to export.
7979       always_export_symbols=yes
7980       if test "$aix_use_runtimelinking" = yes; then
7981         # Warning - without using the other runtime loading flags (-brtl),
7982         # -berok will link without error, but may produce a broken library.
7983         allow_undefined_flag='-berok'
7984        # Determine the default libpath from the value encoded in an empty executable.
7985        cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h.  */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h.  */
7991
7992 int
7993 main ()
7994 {
7995
7996   ;
7997   return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8002 case "(($ac_try" in
8003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004   *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007   (eval "$ac_link") 2>conftest.er1
8008   ac_status=$?
8009   grep -v '^ *+' conftest.er1 >conftest.err
8010   rm -f conftest.er1
8011   cat conftest.err >&5
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } && {
8014          test -z "$ac_c_werror_flag" ||
8015          test ! -s conftest.err
8016        } && test -s conftest$ac_exeext &&
8017        $as_test_x conftest$ac_exeext; then
8018
8019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8020 }'`
8021 # Check for a 64-bit object if we didn't find anything.
8022 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; }
8023 }'`; fi
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028
8029 fi
8030
8031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8032       conftest$ac_exeext conftest.$ac_ext
8033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8034
8035        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8036         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"
8037        else
8038         if test "$host_cpu" = ia64; then
8039           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8040           allow_undefined_flag="-z nodefs"
8041           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"
8042         else
8043          # Determine the default libpath from the value encoded in an empty executable.
8044          cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050
8051 int
8052 main ()
8053 {
8054
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (ac_try="$ac_link"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_link") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } && {
8073          test -z "$ac_c_werror_flag" ||
8074          test ! -s conftest.err
8075        } && test -s conftest$ac_exeext &&
8076        $as_test_x conftest$ac_exeext; then
8077
8078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8079 }'`
8080 # Check for a 64-bit object if we didn't find anything.
8081 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; }
8082 }'`; fi
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091       conftest$ac_exeext conftest.$ac_ext
8092 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8093
8094          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8095           # Warning - without using the other run time loading flags,
8096           # -berok will link without error, but may produce a broken library.
8097           no_undefined_flag=' ${wl}-bernotok'
8098           allow_undefined_flag=' ${wl}-berok'
8099           # Exported symbols can be pulled into shared objects from archives
8100           whole_archive_flag_spec='$convenience'
8101           archive_cmds_need_lc=yes
8102           # This is similar to how AIX traditionally builds its shared libraries.
8103           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'
8104         fi
8105       fi
8106       ;;
8107
8108     amigaos*)
8109       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)'
8110       hardcode_libdir_flag_spec='-L$libdir'
8111       hardcode_minus_L=yes
8112       # see comment about different semantics on the GNU ld section
8113       ld_shlibs=no
8114       ;;
8115
8116     bsdi[45]*)
8117       export_dynamic_flag_spec=-rdynamic
8118       ;;
8119
8120     cygwin* | mingw* | pw32*)
8121       # When not using gcc, we currently assume that we are using
8122       # Microsoft Visual C++.
8123       # hardcode_libdir_flag_spec is actually meaningless, as there is
8124       # no search path for DLLs.
8125       hardcode_libdir_flag_spec=' '
8126       allow_undefined_flag=unsupported
8127       # Tell ltmain to make .lib files, not .a files.
8128       libext=lib
8129       # Tell ltmain to make .dll files, not .so files.
8130       shrext_cmds=".dll"
8131       # FIXME: Setting linknames here is a bad hack.
8132       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8133       # The linker will automatically build a .lib file if we build a DLL.
8134       old_archive_From_new_cmds='true'
8135       # FIXME: Should let the user specify the lib program.
8136       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8137       fix_srcfile_path='`cygpath -w "$srcfile"`'
8138       enable_shared_with_static_runtimes=yes
8139       ;;
8140
8141     darwin* | rhapsody*)
8142       case $host_os in
8143         rhapsody* | darwin1.[012])
8144          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8145          ;;
8146        *) # Darwin 1.3 on
8147          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8148            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8149          else
8150            case ${MACOSX_DEPLOYMENT_TARGET} in
8151              10.[012])
8152                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8153                ;;
8154              10.*)
8155                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8156                ;;
8157            esac
8158          fi
8159          ;;
8160       esac
8161       archive_cmds_need_lc=no
8162       hardcode_direct=no
8163       hardcode_automatic=yes
8164       hardcode_shlibpath_var=unsupported
8165       whole_archive_flag_spec=''
8166       link_all_deplibs=yes
8167     if test "$GCC" = yes ; then
8168         output_verbose_link_cmd='echo'
8169         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8170       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8171       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8172       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}'
8173       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}'
8174     else
8175       case $cc_basename in
8176         xlc*)
8177          output_verbose_link_cmd='echo'
8178          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8179          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8180           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8181          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}'
8182           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}'
8183           ;;
8184        *)
8185          ld_shlibs=no
8186           ;;
8187       esac
8188     fi
8189       ;;
8190
8191     dgux*)
8192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8193       hardcode_libdir_flag_spec='-L$libdir'
8194       hardcode_shlibpath_var=no
8195       ;;
8196
8197     freebsd1*)
8198       ld_shlibs=no
8199       ;;
8200
8201     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8202     # support.  Future versions do this automatically, but an explicit c++rt0.o
8203     # does not break anything, and helps significantly (at the cost of a little
8204     # extra space).
8205     freebsd2.2*)
8206       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8207       hardcode_libdir_flag_spec='-R$libdir'
8208       hardcode_direct=yes
8209       hardcode_shlibpath_var=no
8210       ;;
8211
8212     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8213     freebsd2*)
8214       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8215       hardcode_direct=yes
8216       hardcode_minus_L=yes
8217       hardcode_shlibpath_var=no
8218       ;;
8219
8220     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8221     freebsd* | dragonfly*)
8222       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8223       hardcode_libdir_flag_spec='-R$libdir'
8224       hardcode_direct=yes
8225       hardcode_shlibpath_var=no
8226       ;;
8227
8228     hpux9*)
8229       if test "$GCC" = yes; then
8230         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'
8231       else
8232         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'
8233       fi
8234       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8235       hardcode_libdir_separator=:
8236       hardcode_direct=yes
8237
8238       # hardcode_minus_L: Not really in the search PATH,
8239       # but as the default location of the library.
8240       hardcode_minus_L=yes
8241       export_dynamic_flag_spec='${wl}-E'
8242       ;;
8243
8244     hpux10*)
8245       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8246         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8247       else
8248         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8249       fi
8250       if test "$with_gnu_ld" = no; then
8251         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8252         hardcode_libdir_separator=:
8253
8254         hardcode_direct=yes
8255         export_dynamic_flag_spec='${wl}-E'
8256
8257         # hardcode_minus_L: Not really in the search PATH,
8258         # but as the default location of the library.
8259         hardcode_minus_L=yes
8260       fi
8261       ;;
8262
8263     hpux11*)
8264       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8265         case $host_cpu in
8266         hppa*64*)
8267           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8268           ;;
8269         ia64*)
8270           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8271           ;;
8272         *)
8273           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8274           ;;
8275         esac
8276       else
8277         case $host_cpu in
8278         hppa*64*)
8279           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8280           ;;
8281         ia64*)
8282           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8283           ;;
8284         *)
8285           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8286           ;;
8287         esac
8288       fi
8289       if test "$with_gnu_ld" = no; then
8290         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8291         hardcode_libdir_separator=:
8292
8293         case $host_cpu in
8294         hppa*64*|ia64*)
8295           hardcode_libdir_flag_spec_ld='+b $libdir'
8296           hardcode_direct=no
8297           hardcode_shlibpath_var=no
8298           ;;
8299         *)
8300           hardcode_direct=yes
8301           export_dynamic_flag_spec='${wl}-E'
8302
8303           # hardcode_minus_L: Not really in the search PATH,
8304           # but as the default location of the library.
8305           hardcode_minus_L=yes
8306           ;;
8307         esac
8308       fi
8309       ;;
8310
8311     irix5* | irix6* | nonstopux*)
8312       if test "$GCC" = yes; then
8313         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'
8314       else
8315         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'
8316         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8317       fi
8318       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319       hardcode_libdir_separator=:
8320       link_all_deplibs=yes
8321       ;;
8322
8323     netbsd* | netbsdelf*-gnu)
8324       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8325         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8326       else
8327         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8328       fi
8329       hardcode_libdir_flag_spec='-R$libdir'
8330       hardcode_direct=yes
8331       hardcode_shlibpath_var=no
8332       ;;
8333
8334     newsos6)
8335       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336       hardcode_direct=yes
8337       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338       hardcode_libdir_separator=:
8339       hardcode_shlibpath_var=no
8340       ;;
8341
8342     openbsd*)
8343       hardcode_direct=yes
8344       hardcode_shlibpath_var=no
8345       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8346         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8347         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8348         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8349         export_dynamic_flag_spec='${wl}-E'
8350       else
8351        case $host_os in
8352          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8353            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8354            hardcode_libdir_flag_spec='-R$libdir'
8355            ;;
8356          *)
8357            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8358            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8359            ;;
8360        esac
8361       fi
8362       ;;
8363
8364     os2*)
8365       hardcode_libdir_flag_spec='-L$libdir'
8366       hardcode_minus_L=yes
8367       allow_undefined_flag=unsupported
8368       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'
8369       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8370       ;;
8371
8372     osf3*)
8373       if test "$GCC" = yes; then
8374         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8375         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'
8376       else
8377         allow_undefined_flag=' -expect_unresolved \*'
8378         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'
8379       fi
8380       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381       hardcode_libdir_separator=:
8382       ;;
8383
8384     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8385       if test "$GCC" = yes; then
8386         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8387         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'
8388         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8389       else
8390         allow_undefined_flag=' -expect_unresolved \*'
8391         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'
8392         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8393         $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'
8394
8395         # Both c and cxx compiler support -rpath directly
8396         hardcode_libdir_flag_spec='-rpath $libdir'
8397       fi
8398       hardcode_libdir_separator=:
8399       ;;
8400
8401     solaris*)
8402       no_undefined_flag=' -z text'
8403       if test "$GCC" = yes; then
8404         wlarc='${wl}'
8405         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8406         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8407           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8408       else
8409         wlarc=''
8410         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8412         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8413       fi
8414       hardcode_libdir_flag_spec='-R$libdir'
8415       hardcode_shlibpath_var=no
8416       case $host_os in
8417       solaris2.[0-5] | solaris2.[0-5].*) ;;
8418       *)
8419         # The compiler driver will combine linker options so we
8420         # cannot just pass the convience library names through
8421         # without $wl, iff we do not link with $LD.
8422         # Luckily, gcc supports the same syntax we need for Sun Studio.
8423         # Supported since Solaris 2.6 (maybe 2.5.1?)
8424         case $wlarc in
8425         '')
8426           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8427         *)
8428           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' ;;
8429         esac ;;
8430       esac
8431       link_all_deplibs=yes
8432       ;;
8433
8434     sunos4*)
8435       if test "x$host_vendor" = xsequent; then
8436         # Use $CC to link under sequent, because it throws in some extra .o
8437         # files that make .init and .fini sections work.
8438         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8439       else
8440         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8441       fi
8442       hardcode_libdir_flag_spec='-L$libdir'
8443       hardcode_direct=yes
8444       hardcode_minus_L=yes
8445       hardcode_shlibpath_var=no
8446       ;;
8447
8448     sysv4)
8449       case $host_vendor in
8450         sni)
8451           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452           hardcode_direct=yes # is this really true???
8453         ;;
8454         siemens)
8455           ## LD is ld it makes a PLAMLIB
8456           ## CC just makes a GrossModule.
8457           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8458           reload_cmds='$CC -r -o $output$reload_objs'
8459           hardcode_direct=no
8460         ;;
8461         motorola)
8462           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8463           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8464         ;;
8465       esac
8466       runpath_var='LD_RUN_PATH'
8467       hardcode_shlibpath_var=no
8468       ;;
8469
8470     sysv4.3*)
8471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472       hardcode_shlibpath_var=no
8473       export_dynamic_flag_spec='-Bexport'
8474       ;;
8475
8476     sysv4*MP*)
8477       if test -d /usr/nec; then
8478         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479         hardcode_shlibpath_var=no
8480         runpath_var=LD_RUN_PATH
8481         hardcode_runpath_var=yes
8482         ld_shlibs=yes
8483       fi
8484       ;;
8485
8486     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8487       no_undefined_flag='${wl}-z,text'
8488       archive_cmds_need_lc=no
8489       hardcode_shlibpath_var=no
8490       runpath_var='LD_RUN_PATH'
8491
8492       if test "$GCC" = yes; then
8493         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8495       else
8496         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8497         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8498       fi
8499       ;;
8500
8501     sysv5* | sco3.2v5* | sco5v6*)
8502       # Note: We can NOT use -z defs as we might desire, because we do not
8503       # link with -lc, and that would cause any symbols used from libc to
8504       # always be unresolved, which means just about no library would
8505       # ever link correctly.  If we're not using GNU ld we use -z text
8506       # though, which does catch some bad symbols but isn't as heavy-handed
8507       # as -z defs.
8508       no_undefined_flag='${wl}-z,text'
8509       allow_undefined_flag='${wl}-z,nodefs'
8510       archive_cmds_need_lc=no
8511       hardcode_shlibpath_var=no
8512       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8513       hardcode_libdir_separator=':'
8514       link_all_deplibs=yes
8515       export_dynamic_flag_spec='${wl}-Bexport'
8516       runpath_var='LD_RUN_PATH'
8517
8518       if test "$GCC" = yes; then
8519         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521       else
8522         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8523         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8524       fi
8525       ;;
8526
8527     uts4*)
8528       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8529       hardcode_libdir_flag_spec='-L$libdir'
8530       hardcode_shlibpath_var=no
8531       ;;
8532
8533     *)
8534       ld_shlibs=no
8535       ;;
8536     esac
8537   fi
8538
8539 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8540 echo "${ECHO_T}$ld_shlibs" >&6; }
8541 test "$ld_shlibs" = no && can_build_shared=no
8542
8543 #
8544 # Do we need to explicitly link libc?
8545 #
8546 case "x$archive_cmds_need_lc" in
8547 x|xyes)
8548   # Assume -lc should be added
8549   archive_cmds_need_lc=yes
8550
8551   if test "$enable_shared" = yes && test "$GCC" = yes; then
8552     case $archive_cmds in
8553     *'~'*)
8554       # FIXME: we may have to deal with multi-command sequences.
8555       ;;
8556     '$CC '*)
8557       # Test whether the compiler implicitly links with -lc since on some
8558       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8559       # to ld, don't add -lc before -lgcc.
8560       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8561 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8562       $rm conftest*
8563       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8564
8565       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566   (eval $ac_compile) 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); } 2>conftest.err; then
8570         soname=conftest
8571         lib=conftest
8572         libobjs=conftest.$ac_objext
8573         deplibs=
8574         wl=$lt_prog_compiler_wl
8575         pic_flag=$lt_prog_compiler_pic
8576         compiler_flags=-v
8577         linker_flags=-v
8578         verstring=
8579         output_objdir=.
8580         libname=conftest
8581         lt_save_allow_undefined_flag=$allow_undefined_flag
8582         allow_undefined_flag=
8583         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8584   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }
8588         then
8589           archive_cmds_need_lc=no
8590         else
8591           archive_cmds_need_lc=yes
8592         fi
8593         allow_undefined_flag=$lt_save_allow_undefined_flag
8594       else
8595         cat conftest.err 1>&5
8596       fi
8597       $rm conftest*
8598       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8599 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8600       ;;
8601     esac
8602   fi
8603   ;;
8604 esac
8605
8606 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8607 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8608 library_names_spec=
8609 libname_spec='lib$name'
8610 soname_spec=
8611 shrext_cmds=".so"
8612 postinstall_cmds=
8613 postuninstall_cmds=
8614 finish_cmds=
8615 finish_eval=
8616 shlibpath_var=
8617 shlibpath_overrides_runpath=unknown
8618 version_type=none
8619 dynamic_linker="$host_os ld.so"
8620 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8621 if test "$GCC" = yes; then
8622   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8624     # if the path contains ";" then we assume it to be the separator
8625     # otherwise default to the standard path separator (i.e. ":") - it is
8626     # assumed that no part of a normal pathname contains ";" but that should
8627     # okay in the real world where ";" in dirpaths is itself problematic.
8628     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8629   else
8630     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8631   fi
8632 else
8633   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8634 fi
8635 need_lib_prefix=unknown
8636 hardcode_into_libs=no
8637
8638 # when you set need_version to no, make sure it does not cause -set_version
8639 # flags to be left without arguments
8640 need_version=unknown
8641
8642 case $host_os in
8643 aix3*)
8644   version_type=linux
8645   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8646   shlibpath_var=LIBPATH
8647
8648   # AIX 3 has no versioning support, so we append a major version to the name.
8649   soname_spec='${libname}${release}${shared_ext}$major'
8650   ;;
8651
8652 aix4* | aix5*)
8653   version_type=linux
8654   need_lib_prefix=no
8655   need_version=no
8656   hardcode_into_libs=yes
8657   if test "$host_cpu" = ia64; then
8658     # AIX 5 supports IA64
8659     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8660     shlibpath_var=LD_LIBRARY_PATH
8661   else
8662     # With GCC up to 2.95.x, collect2 would create an import file
8663     # for dependence libraries.  The import file would start with
8664     # the line `#! .'.  This would cause the generated library to
8665     # depend on `.', always an invalid library.  This was fixed in
8666     # development snapshots of GCC prior to 3.0.
8667     case $host_os in
8668       aix4 | aix4.[01] | aix4.[01].*)
8669       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8670            echo ' yes '
8671            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8672         :
8673       else
8674         can_build_shared=no
8675       fi
8676       ;;
8677     esac
8678     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8679     # soname into executable. Probably we can add versioning support to
8680     # collect2, so additional links can be useful in future.
8681     if test "$aix_use_runtimelinking" = yes; then
8682       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8683       # instead of lib<name>.a to let people know that these are not
8684       # typical AIX shared libraries.
8685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8686     else
8687       # We preserve .a as extension for shared libraries through AIX4.2
8688       # and later when we are not doing run time linking.
8689       library_names_spec='${libname}${release}.a $libname.a'
8690       soname_spec='${libname}${release}${shared_ext}$major'
8691     fi
8692     shlibpath_var=LIBPATH
8693   fi
8694   ;;
8695
8696 amigaos*)
8697   library_names_spec='$libname.ixlibrary $libname.a'
8698   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8699   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'
8700   ;;
8701
8702 beos*)
8703   library_names_spec='${libname}${shared_ext}'
8704   dynamic_linker="$host_os ld.so"
8705   shlibpath_var=LIBRARY_PATH
8706   ;;
8707
8708 bsdi[45]*)
8709   version_type=linux
8710   need_version=no
8711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712   soname_spec='${libname}${release}${shared_ext}$major'
8713   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8714   shlibpath_var=LD_LIBRARY_PATH
8715   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8716   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8717   # the default ld.so.conf also contains /usr/contrib/lib and
8718   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8719   # libtool to hard-code these into programs
8720   ;;
8721
8722 cygwin* | mingw* | pw32*)
8723   version_type=windows
8724   shrext_cmds=".dll"
8725   need_version=no
8726   need_lib_prefix=no
8727
8728   case $GCC,$host_os in
8729   yes,cygwin* | yes,mingw* | yes,pw32*)
8730     library_names_spec='$libname.dll.a'
8731     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8732     postinstall_cmds='base_file=`basename \${file}`~
8733       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8734       dldir=$destdir/`dirname \$dlpath`~
8735       test -d \$dldir || mkdir -p \$dldir~
8736       $install_prog $dir/$dlname \$dldir/$dlname~
8737       chmod a+x \$dldir/$dlname'
8738     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8739       dlpath=$dir/\$dldll~
8740        $rm \$dlpath'
8741     shlibpath_overrides_runpath=yes
8742
8743     case $host_os in
8744     cygwin*)
8745       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8746       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8748       ;;
8749     mingw*)
8750       # MinGW DLLs use traditional 'lib' prefix
8751       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8754         # It is most probably a Windows format PATH printed by
8755         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8756         # path with ; separators, and with drive letters. We can handle the
8757         # drive letters (cygwin fileutils understands them), so leave them,
8758         # especially as we might pass files found there to a mingw objdump,
8759         # which wouldn't understand a cygwinified path. Ahh.
8760         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8761       else
8762         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8763       fi
8764       ;;
8765     pw32*)
8766       # pw32 DLLs use 'pw' prefix rather than 'lib'
8767       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768       ;;
8769     esac
8770     ;;
8771
8772   *)
8773     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8774     ;;
8775   esac
8776   dynamic_linker='Win32 ld.exe'
8777   # FIXME: first we should search . and the directory the executable is in
8778   shlibpath_var=PATH
8779   ;;
8780
8781 darwin* | rhapsody*)
8782   dynamic_linker="$host_os dyld"
8783   version_type=darwin
8784   need_lib_prefix=no
8785   need_version=no
8786   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8787   soname_spec='${libname}${release}${major}$shared_ext'
8788   shlibpath_overrides_runpath=yes
8789   shlibpath_var=DYLD_LIBRARY_PATH
8790   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8791   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8792   if test "$GCC" = yes; then
8793     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"`
8794   else
8795     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8796   fi
8797   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8798   ;;
8799
8800 dgux*)
8801   version_type=linux
8802   need_lib_prefix=no
8803   need_version=no
8804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8805   soname_spec='${libname}${release}${shared_ext}$major'
8806   shlibpath_var=LD_LIBRARY_PATH
8807   ;;
8808
8809 freebsd1*)
8810   dynamic_linker=no
8811   ;;
8812
8813 freebsd* | dragonfly*)
8814   # DragonFly does not have aout.  When/if they implement a new
8815   # versioning mechanism, adjust this.
8816   if test -x /usr/bin/objformat; then
8817     objformat=`/usr/bin/objformat`
8818   else
8819     case $host_os in
8820     freebsd[123]*) objformat=aout ;;
8821     *) objformat=elf ;;
8822     esac
8823   fi
8824   version_type=freebsd-$objformat
8825   case $version_type in
8826     freebsd-elf*)
8827       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8828       need_version=no
8829       need_lib_prefix=no
8830       ;;
8831     freebsd-*)
8832       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8833       need_version=yes
8834       ;;
8835   esac
8836   shlibpath_var=LD_LIBRARY_PATH
8837   case $host_os in
8838   freebsd2*)
8839     shlibpath_overrides_runpath=yes
8840     ;;
8841   freebsd3.[01]* | freebsdelf3.[01]*)
8842     shlibpath_overrides_runpath=yes
8843     hardcode_into_libs=yes
8844     ;;
8845   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8846   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8847     shlibpath_overrides_runpath=no
8848     hardcode_into_libs=yes
8849     ;;
8850   freebsd*) # from 4.6 on
8851     shlibpath_overrides_runpath=yes
8852     hardcode_into_libs=yes
8853     ;;
8854   esac
8855   ;;
8856
8857 gnu*)
8858   version_type=linux
8859   need_lib_prefix=no
8860   need_version=no
8861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8862   soname_spec='${libname}${release}${shared_ext}$major'
8863   shlibpath_var=LD_LIBRARY_PATH
8864   hardcode_into_libs=yes
8865   ;;
8866
8867 hpux9* | hpux10* | hpux11*)
8868   # Give a soname corresponding to the major version so that dld.sl refuses to
8869   # link against other versions.
8870   version_type=sunos
8871   need_lib_prefix=no
8872   need_version=no
8873   case $host_cpu in
8874   ia64*)
8875     shrext_cmds='.so'
8876     hardcode_into_libs=yes
8877     dynamic_linker="$host_os dld.so"
8878     shlibpath_var=LD_LIBRARY_PATH
8879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881     soname_spec='${libname}${release}${shared_ext}$major'
8882     if test "X$HPUX_IA64_MODE" = X32; then
8883       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8884     else
8885       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8886     fi
8887     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8888     ;;
8889    hppa*64*)
8890      shrext_cmds='.sl'
8891      hardcode_into_libs=yes
8892      dynamic_linker="$host_os dld.sl"
8893      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8894      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896      soname_spec='${libname}${release}${shared_ext}$major'
8897      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8898      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899      ;;
8900    *)
8901     shrext_cmds='.sl'
8902     dynamic_linker="$host_os dld.sl"
8903     shlibpath_var=SHLIB_PATH
8904     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906     soname_spec='${libname}${release}${shared_ext}$major'
8907     ;;
8908   esac
8909   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8910   postinstall_cmds='chmod 555 $lib'
8911   ;;
8912
8913 interix3*)
8914   version_type=linux
8915   need_lib_prefix=no
8916   need_version=no
8917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918   soname_spec='${libname}${release}${shared_ext}$major'
8919   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8920   shlibpath_var=LD_LIBRARY_PATH
8921   shlibpath_overrides_runpath=no
8922   hardcode_into_libs=yes
8923   ;;
8924
8925 irix5* | irix6* | nonstopux*)
8926   case $host_os in
8927     nonstopux*) version_type=nonstopux ;;
8928     *)
8929         if test "$lt_cv_prog_gnu_ld" = yes; then
8930                 version_type=linux
8931         else
8932                 version_type=irix
8933         fi ;;
8934   esac
8935   need_lib_prefix=no
8936   need_version=no
8937   soname_spec='${libname}${release}${shared_ext}$major'
8938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8939   case $host_os in
8940   irix5* | nonstopux*)
8941     libsuff= shlibsuff=
8942     ;;
8943   *)
8944     case $LD in # libtool.m4 will add one of these switches to LD
8945     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8946       libsuff= shlibsuff= libmagic=32-bit;;
8947     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8948       libsuff=32 shlibsuff=N32 libmagic=N32;;
8949     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8950       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8951     *) libsuff= shlibsuff= libmagic=never-match;;
8952     esac
8953     ;;
8954   esac
8955   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8956   shlibpath_overrides_runpath=no
8957   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8958   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8959   hardcode_into_libs=yes
8960   ;;
8961
8962 # No shared lib support for Linux oldld, aout, or coff.
8963 linux*oldld* | linux*aout* | linux*coff*)
8964   dynamic_linker=no
8965   ;;
8966
8967 # This must be Linux ELF.
8968 linux* | k*bsd*-gnu)
8969   version_type=linux
8970   need_lib_prefix=no
8971   need_version=no
8972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973   soname_spec='${libname}${release}${shared_ext}$major'
8974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8975   shlibpath_var=LD_LIBRARY_PATH
8976   shlibpath_overrides_runpath=no
8977   # This implies no fast_install, which is unacceptable.
8978   # Some rework will be needed to allow for fast_install
8979   # before this can be enabled.
8980   hardcode_into_libs=yes
8981
8982   # Append ld.so.conf contents to the search path
8983   if test -f /etc/ld.so.conf; then
8984     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' ' '`
8985     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8986   fi
8987
8988   # We used to test for /lib/ld.so.1 and disable shared libraries on
8989   # powerpc, because MkLinux only supported shared libraries with the
8990   # GNU dynamic linker.  Since this was broken with cross compilers,
8991   # most powerpc-linux boxes support dynamic linking these days and
8992   # people can always --disable-shared, the test was removed, and we
8993   # assume the GNU/Linux dynamic linker is in use.
8994   dynamic_linker='GNU/Linux ld.so'
8995   ;;
8996
8997 netbsdelf*-gnu)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002   soname_spec='${libname}${release}${shared_ext}$major'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   shlibpath_overrides_runpath=no
9005   hardcode_into_libs=yes
9006   dynamic_linker='NetBSD ld.elf_so'
9007   ;;
9008
9009 netbsd*)
9010   version_type=sunos
9011   need_lib_prefix=no
9012   need_version=no
9013   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016     dynamic_linker='NetBSD (a.out) ld.so'
9017   else
9018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019     soname_spec='${libname}${release}${shared_ext}$major'
9020     dynamic_linker='NetBSD ld.elf_so'
9021   fi
9022   shlibpath_var=LD_LIBRARY_PATH
9023   shlibpath_overrides_runpath=yes
9024   hardcode_into_libs=yes
9025   ;;
9026
9027 newsos6)
9028   version_type=linux
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   shlibpath_overrides_runpath=yes
9032   ;;
9033
9034 nto-qnx*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   shlibpath_overrides_runpath=yes
9042   ;;
9043
9044 openbsd*)
9045   version_type=sunos
9046   sys_lib_dlsearch_path_spec="/usr/lib"
9047   need_lib_prefix=no
9048   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9049   case $host_os in
9050     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051     *)                         need_version=no  ;;
9052   esac
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9057     case $host_os in
9058       openbsd2.[89] | openbsd2.[89].*)
9059         shlibpath_overrides_runpath=no
9060         ;;
9061       *)
9062         shlibpath_overrides_runpath=yes
9063         ;;
9064       esac
9065   else
9066     shlibpath_overrides_runpath=yes
9067   fi
9068   ;;
9069
9070 os2*)
9071   libname_spec='$name'
9072   shrext_cmds=".dll"
9073   need_lib_prefix=no
9074   library_names_spec='$libname${shared_ext} $libname.a'
9075   dynamic_linker='OS/2 ld.exe'
9076   shlibpath_var=LIBPATH
9077   ;;
9078
9079 osf3* | osf4* | osf5*)
9080   version_type=osf
9081   need_lib_prefix=no
9082   need_version=no
9083   soname_spec='${libname}${release}${shared_ext}$major'
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085   shlibpath_var=LD_LIBRARY_PATH
9086   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9088   ;;
9089
9090 solaris*)
9091   version_type=linux
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   shlibpath_overrides_runpath=yes
9098   hardcode_into_libs=yes
9099   # ldd complains unless libraries are executable
9100   postinstall_cmds='chmod +x $lib'
9101   ;;
9102
9103 sunos4*)
9104   version_type=sunos
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   shlibpath_overrides_runpath=yes
9109   if test "$with_gnu_ld" = yes; then
9110     need_lib_prefix=no
9111   fi
9112   need_version=yes
9113   ;;
9114
9115 sysv4 | sysv4.3*)
9116   version_type=linux
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   shlibpath_var=LD_LIBRARY_PATH
9120   case $host_vendor in
9121     sni)
9122       shlibpath_overrides_runpath=no
9123       need_lib_prefix=no
9124       export_dynamic_flag_spec='${wl}-Blargedynsym'
9125       runpath_var=LD_RUN_PATH
9126       ;;
9127     siemens)
9128       need_lib_prefix=no
9129       ;;
9130     motorola)
9131       need_lib_prefix=no
9132       need_version=no
9133       shlibpath_overrides_runpath=no
9134       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9135       ;;
9136   esac
9137   ;;
9138
9139 sysv4*MP*)
9140   if test -d /usr/nec ;then
9141     version_type=linux
9142     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9143     soname_spec='$libname${shared_ext}.$major'
9144     shlibpath_var=LD_LIBRARY_PATH
9145   fi
9146   ;;
9147
9148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9149   version_type=freebsd-elf
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   hardcode_into_libs=yes
9156   if test "$with_gnu_ld" = yes; then
9157     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9158     shlibpath_overrides_runpath=no
9159   else
9160     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9161     shlibpath_overrides_runpath=yes
9162     case $host_os in
9163       sco3.2v5*)
9164         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9165         ;;
9166     esac
9167   fi
9168   sys_lib_dlsearch_path_spec='/usr/lib'
9169   ;;
9170
9171 uts4*)
9172   version_type=linux
9173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174   soname_spec='${libname}${release}${shared_ext}$major'
9175   shlibpath_var=LD_LIBRARY_PATH
9176   ;;
9177
9178 *)
9179   dynamic_linker=no
9180   ;;
9181 esac
9182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9183 echo "${ECHO_T}$dynamic_linker" >&6; }
9184 test "$dynamic_linker" = no && can_build_shared=no
9185
9186 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9187 if test "$GCC" = yes; then
9188   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9189 fi
9190
9191 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9192 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9193 hardcode_action=
9194 if test -n "$hardcode_libdir_flag_spec" || \
9195    test -n "$runpath_var" || \
9196    test "X$hardcode_automatic" = "Xyes" ; then
9197
9198   # We can hardcode non-existant directories.
9199   if test "$hardcode_direct" != no &&
9200      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9201      # have to relink, otherwise we might link with an installed library
9202      # when we should be linking with a yet-to-be-installed one
9203      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9204      test "$hardcode_minus_L" != no; then
9205     # Linking always hardcodes the temporary library directory.
9206     hardcode_action=relink
9207   else
9208     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9209     hardcode_action=immediate
9210   fi
9211 else
9212   # We cannot hardcode anything, or else we can only hardcode existing
9213   # directories.
9214   hardcode_action=unsupported
9215 fi
9216 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9217 echo "${ECHO_T}$hardcode_action" >&6; }
9218
9219 if test "$hardcode_action" = relink; then
9220   # Fast installation is not supported
9221   enable_fast_install=no
9222 elif test "$shlibpath_overrides_runpath" = yes ||
9223      test "$enable_shared" = no; then
9224   # Fast installation is not necessary
9225   enable_fast_install=needless
9226 fi
9227
9228 striplib=
9229 old_striplib=
9230 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9231 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9232 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9233   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9234   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9235   { echo "$as_me:$LINENO: result: yes" >&5
9236 echo "${ECHO_T}yes" >&6; }
9237 else
9238 # FIXME - insert some real tests, host_os isn't really good enough
9239   case $host_os in
9240    darwin*)
9241        if test -n "$STRIP" ; then
9242          striplib="$STRIP -x"
9243          { echo "$as_me:$LINENO: result: yes" >&5
9244 echo "${ECHO_T}yes" >&6; }
9245        else
9246   { echo "$as_me:$LINENO: result: no" >&5
9247 echo "${ECHO_T}no" >&6; }
9248 fi
9249        ;;
9250    *)
9251   { echo "$as_me:$LINENO: result: no" >&5
9252 echo "${ECHO_T}no" >&6; }
9253     ;;
9254   esac
9255 fi
9256
9257 if test "x$enable_dlopen" != xyes; then
9258   enable_dlopen=unknown
9259   enable_dlopen_self=unknown
9260   enable_dlopen_self_static=unknown
9261 else
9262   lt_cv_dlopen=no
9263   lt_cv_dlopen_libs=
9264
9265   case $host_os in
9266   beos*)
9267     lt_cv_dlopen="load_add_on"
9268     lt_cv_dlopen_libs=
9269     lt_cv_dlopen_self=yes
9270     ;;
9271
9272   mingw* | pw32*)
9273     lt_cv_dlopen="LoadLibrary"
9274     lt_cv_dlopen_libs=
9275    ;;
9276
9277   cygwin*)
9278     lt_cv_dlopen="dlopen"
9279     lt_cv_dlopen_libs=
9280    ;;
9281
9282   darwin*)
9283   # if libdl is installed we need to link against it
9284     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9285 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   ac_check_lib_save_LIBS=$LIBS
9290 LIBS="-ldl  $LIBS"
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299    Use char because int might match the return type of a GCC
9300    builtin and then its argument prototype would still apply.  */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char dlopen ();
9305 int
9306 main ()
9307 {
9308 return dlopen ();
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9315 case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320   (eval "$ac_link") 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } && {
9327          test -z "$ac_c_werror_flag" ||
9328          test ! -s conftest.err
9329        } && test -s conftest$ac_exeext &&
9330        $as_test_x conftest$ac_exeext; then
9331   ac_cv_lib_dl_dlopen=yes
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336         ac_cv_lib_dl_dlopen=no
9337 fi
9338
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340       conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9342 fi
9343 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9344 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9345 if test $ac_cv_lib_dl_dlopen = yes; then
9346   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9347 else
9348
9349     lt_cv_dlopen="dyld"
9350     lt_cv_dlopen_libs=
9351     lt_cv_dlopen_self=yes
9352
9353 fi
9354
9355    ;;
9356
9357   *)
9358     { echo "$as_me:$LINENO: checking for shl_load" >&5
9359 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9360 if test "${ac_cv_func_shl_load+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9371 #define shl_load innocuous_shl_load
9372
9373 /* System header to define __stub macros and hopefully few prototypes,
9374     which can conflict with char shl_load (); below.
9375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9376     <limits.h> exists even on freestanding compilers.  */
9377
9378 #ifdef __STDC__
9379 # include <limits.h>
9380 #else
9381 # include <assert.h>
9382 #endif
9383
9384 #undef shl_load
9385
9386 /* Override any GCC internal prototype to avoid an error.
9387    Use char because int might match the return type of a GCC
9388    builtin and then its argument prototype would still apply.  */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 char shl_load ();
9393 /* The GNU C library defines this for functions which it implements
9394     to always fail with ENOSYS.  Some functions are actually named
9395     something starting with __ and the normal name is an alias.  */
9396 #if defined __stub_shl_load || defined __stub___shl_load
9397 choke me
9398 #endif
9399
9400 int
9401 main ()
9402 {
9403 return shl_load ();
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9410 case "(($ac_try" in
9411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412   *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415   (eval "$ac_link") 2>conftest.er1
9416   ac_status=$?
9417   grep -v '^ *+' conftest.er1 >conftest.err
9418   rm -f conftest.er1
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } && {
9422          test -z "$ac_c_werror_flag" ||
9423          test ! -s conftest.err
9424        } && test -s conftest$ac_exeext &&
9425        $as_test_x conftest$ac_exeext; then
9426   ac_cv_func_shl_load=yes
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431         ac_cv_func_shl_load=no
9432 fi
9433
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435       conftest$ac_exeext conftest.$ac_ext
9436 fi
9437 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9438 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9439 if test $ac_cv_func_shl_load = yes; then
9440   lt_cv_dlopen="shl_load"
9441 else
9442   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9443 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9444 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   ac_check_lib_save_LIBS=$LIBS
9448 LIBS="-ldld  $LIBS"
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h.  */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h.  */
9455
9456 /* Override any GCC internal prototype to avoid an error.
9457    Use char because int might match the return type of a GCC
9458    builtin and then its argument prototype would still apply.  */
9459 #ifdef __cplusplus
9460 extern "C"
9461 #endif
9462 char shl_load ();
9463 int
9464 main ()
9465 {
9466 return shl_load ();
9467   ;
9468   return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9473 case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_link") 2>conftest.er1
9479   ac_status=$?
9480   grep -v '^ *+' conftest.er1 >conftest.err
9481   rm -f conftest.er1
9482   cat conftest.err >&5
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } && {
9485          test -z "$ac_c_werror_flag" ||
9486          test ! -s conftest.err
9487        } && test -s conftest$ac_exeext &&
9488        $as_test_x conftest$ac_exeext; then
9489   ac_cv_lib_dld_shl_load=yes
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494         ac_cv_lib_dld_shl_load=no
9495 fi
9496
9497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9498       conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9500 fi
9501 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9502 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9503 if test $ac_cv_lib_dld_shl_load = yes; then
9504   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9505 else
9506   { echo "$as_me:$LINENO: checking for dlopen" >&5
9507 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9508 if test "${ac_cv_func_dlopen+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9517 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9519 #define dlopen innocuous_dlopen
9520
9521 /* System header to define __stub macros and hopefully few prototypes,
9522     which can conflict with char dlopen (); below.
9523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9524     <limits.h> exists even on freestanding compilers.  */
9525
9526 #ifdef __STDC__
9527 # include <limits.h>
9528 #else
9529 # include <assert.h>
9530 #endif
9531
9532 #undef dlopen
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535    Use char because int might match the return type of a GCC
9536    builtin and then its argument prototype would still apply.  */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char dlopen ();
9541 /* The GNU C library defines this for functions which it implements
9542     to always fail with ENOSYS.  Some functions are actually named
9543     something starting with __ and the normal name is an alias.  */
9544 #if defined __stub_dlopen || defined __stub___dlopen
9545 choke me
9546 #endif
9547
9548 int
9549 main ()
9550 {
9551 return dlopen ();
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (ac_try="$ac_link"
9558 case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563   (eval "$ac_link") 2>conftest.er1
9564   ac_status=$?
9565   grep -v '^ *+' conftest.er1 >conftest.err
9566   rm -f conftest.er1
9567   cat conftest.err >&5
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } && {
9570          test -z "$ac_c_werror_flag" ||
9571          test ! -s conftest.err
9572        } && test -s conftest$ac_exeext &&
9573        $as_test_x conftest$ac_exeext; then
9574   ac_cv_func_dlopen=yes
9575 else
9576   echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9578
9579         ac_cv_func_dlopen=no
9580 fi
9581
9582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583       conftest$ac_exeext conftest.$ac_ext
9584 fi
9585 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9586 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9587 if test $ac_cv_func_dlopen = yes; then
9588   lt_cv_dlopen="dlopen"
9589 else
9590   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9591 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595   ac_check_lib_save_LIBS=$LIBS
9596 LIBS="-ldl  $LIBS"
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h.  */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h.  */
9603
9604 /* Override any GCC internal prototype to avoid an error.
9605    Use char because int might match the return type of a GCC
9606    builtin and then its argument prototype would still apply.  */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char dlopen ();
9611 int
9612 main ()
9613 {
9614 return dlopen ();
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9621 case "(($ac_try" in
9622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623   *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626   (eval "$ac_link") 2>conftest.er1
9627   ac_status=$?
9628   grep -v '^ *+' conftest.er1 >conftest.err
9629   rm -f conftest.er1
9630   cat conftest.err >&5
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } && {
9633          test -z "$ac_c_werror_flag" ||
9634          test ! -s conftest.err
9635        } && test -s conftest$ac_exeext &&
9636        $as_test_x conftest$ac_exeext; then
9637   ac_cv_lib_dl_dlopen=yes
9638 else
9639   echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642         ac_cv_lib_dl_dlopen=no
9643 fi
9644
9645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9646       conftest$ac_exeext conftest.$ac_ext
9647 LIBS=$ac_check_lib_save_LIBS
9648 fi
9649 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9650 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9651 if test $ac_cv_lib_dl_dlopen = yes; then
9652   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9653 else
9654   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9655 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9656 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   ac_check_lib_save_LIBS=$LIBS
9660 LIBS="-lsvld  $LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669    Use char because int might match the return type of a GCC
9670    builtin and then its argument prototype would still apply.  */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char dlopen ();
9675 int
9676 main ()
9677 {
9678 return dlopen ();
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687   *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690   (eval "$ac_link") 2>conftest.er1
9691   ac_status=$?
9692   grep -v '^ *+' conftest.er1 >conftest.err
9693   rm -f conftest.er1
9694   cat conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } && {
9697          test -z "$ac_c_werror_flag" ||
9698          test ! -s conftest.err
9699        } && test -s conftest$ac_exeext &&
9700        $as_test_x conftest$ac_exeext; then
9701   ac_cv_lib_svld_dlopen=yes
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706         ac_cv_lib_svld_dlopen=no
9707 fi
9708
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710       conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9712 fi
9713 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9714 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9715 if test $ac_cv_lib_svld_dlopen = yes; then
9716   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9717 else
9718   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9719 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9720 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   ac_check_lib_save_LIBS=$LIBS
9724 LIBS="-ldld  $LIBS"
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731
9732 /* Override any GCC internal prototype to avoid an error.
9733    Use char because int might match the return type of a GCC
9734    builtin and then its argument prototype would still apply.  */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 char dld_link ();
9739 int
9740 main ()
9741 {
9742 return dld_link ();
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_link") 2>conftest.er1
9755   ac_status=$?
9756   grep -v '^ *+' conftest.er1 >conftest.err
9757   rm -f conftest.er1
9758   cat conftest.err >&5
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); } && {
9761          test -z "$ac_c_werror_flag" ||
9762          test ! -s conftest.err
9763        } && test -s conftest$ac_exeext &&
9764        $as_test_x conftest$ac_exeext; then
9765   ac_cv_lib_dld_dld_link=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770         ac_cv_lib_dld_dld_link=no
9771 fi
9772
9773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774       conftest$ac_exeext conftest.$ac_ext
9775 LIBS=$ac_check_lib_save_LIBS
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9778 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9779 if test $ac_cv_lib_dld_dld_link = yes; then
9780   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9781 fi
9782
9783
9784 fi
9785
9786
9787 fi
9788
9789
9790 fi
9791
9792
9793 fi
9794
9795
9796 fi
9797
9798     ;;
9799   esac
9800
9801   if test "x$lt_cv_dlopen" != xno; then
9802     enable_dlopen=yes
9803   else
9804     enable_dlopen=no
9805   fi
9806
9807   case $lt_cv_dlopen in
9808   dlopen)
9809     save_CPPFLAGS="$CPPFLAGS"
9810     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9811
9812     save_LDFLAGS="$LDFLAGS"
9813     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9814
9815     save_LIBS="$LIBS"
9816     LIBS="$lt_cv_dlopen_libs $LIBS"
9817
9818     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9819 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9820 if test "${lt_cv_dlopen_self+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823           if test "$cross_compiling" = yes; then :
9824   lt_cv_dlopen_self=cross
9825 else
9826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9827   lt_status=$lt_dlunknown
9828   cat > conftest.$ac_ext <<EOF
9829 #line 9829 "configure"
9830 #include "confdefs.h"
9831
9832 #if HAVE_DLFCN_H
9833 #include <dlfcn.h>
9834 #endif
9835
9836 #include <stdio.h>
9837
9838 #ifdef RTLD_GLOBAL
9839 #  define LT_DLGLOBAL           RTLD_GLOBAL
9840 #else
9841 #  ifdef DL_GLOBAL
9842 #    define LT_DLGLOBAL         DL_GLOBAL
9843 #  else
9844 #    define LT_DLGLOBAL         0
9845 #  endif
9846 #endif
9847
9848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9849    find out it does not work in some platform. */
9850 #ifndef LT_DLLAZY_OR_NOW
9851 #  ifdef RTLD_LAZY
9852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9853 #  else
9854 #    ifdef DL_LAZY
9855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9856 #    else
9857 #      ifdef RTLD_NOW
9858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9859 #      else
9860 #        ifdef DL_NOW
9861 #          define LT_DLLAZY_OR_NOW      DL_NOW
9862 #        else
9863 #          define LT_DLLAZY_OR_NOW      0
9864 #        endif
9865 #      endif
9866 #    endif
9867 #  endif
9868 #endif
9869
9870 #ifdef __cplusplus
9871 extern "C" void exit (int);
9872 #endif
9873
9874 void fnord() { int i=42;}
9875 int main ()
9876 {
9877   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9878   int status = $lt_dlunknown;
9879
9880   if (self)
9881     {
9882       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9883       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9884       /* dlclose (self); */
9885     }
9886   else
9887     puts (dlerror ());
9888
9889     exit (status);
9890 }
9891 EOF
9892   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893   (eval $ac_link) 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9897     (./conftest; exit; ) >&5 2>/dev/null
9898     lt_status=$?
9899     case x$lt_status in
9900       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9901       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9902       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9903     esac
9904   else :
9905     # compilation failed
9906     lt_cv_dlopen_self=no
9907   fi
9908 fi
9909 rm -fr conftest*
9910
9911
9912 fi
9913 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9914 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9915
9916     if test "x$lt_cv_dlopen_self" = xyes; then
9917       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9918       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9919 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9920 if test "${lt_cv_dlopen_self_static+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923           if test "$cross_compiling" = yes; then :
9924   lt_cv_dlopen_self_static=cross
9925 else
9926   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9927   lt_status=$lt_dlunknown
9928   cat > conftest.$ac_ext <<EOF
9929 #line 9929 "configure"
9930 #include "confdefs.h"
9931
9932 #if HAVE_DLFCN_H
9933 #include <dlfcn.h>
9934 #endif
9935
9936 #include <stdio.h>
9937
9938 #ifdef RTLD_GLOBAL
9939 #  define LT_DLGLOBAL           RTLD_GLOBAL
9940 #else
9941 #  ifdef DL_GLOBAL
9942 #    define LT_DLGLOBAL         DL_GLOBAL
9943 #  else
9944 #    define LT_DLGLOBAL         0
9945 #  endif
9946 #endif
9947
9948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9949    find out it does not work in some platform. */
9950 #ifndef LT_DLLAZY_OR_NOW
9951 #  ifdef RTLD_LAZY
9952 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9953 #  else
9954 #    ifdef DL_LAZY
9955 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9956 #    else
9957 #      ifdef RTLD_NOW
9958 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9959 #      else
9960 #        ifdef DL_NOW
9961 #          define LT_DLLAZY_OR_NOW      DL_NOW
9962 #        else
9963 #          define LT_DLLAZY_OR_NOW      0
9964 #        endif
9965 #      endif
9966 #    endif
9967 #  endif
9968 #endif
9969
9970 #ifdef __cplusplus
9971 extern "C" void exit (int);
9972 #endif
9973
9974 void fnord() { int i=42;}
9975 int main ()
9976 {
9977   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9978   int status = $lt_dlunknown;
9979
9980   if (self)
9981     {
9982       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9983       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9984       /* dlclose (self); */
9985     }
9986   else
9987     puts (dlerror ());
9988
9989     exit (status);
9990 }
9991 EOF
9992   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993   (eval $ac_link) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9997     (./conftest; exit; ) >&5 2>/dev/null
9998     lt_status=$?
9999     case x$lt_status in
10000       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10001       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10002       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10003     esac
10004   else :
10005     # compilation failed
10006     lt_cv_dlopen_self_static=no
10007   fi
10008 fi
10009 rm -fr conftest*
10010
10011
10012 fi
10013 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10014 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10015     fi
10016
10017     CPPFLAGS="$save_CPPFLAGS"
10018     LDFLAGS="$save_LDFLAGS"
10019     LIBS="$save_LIBS"
10020     ;;
10021   esac
10022
10023   case $lt_cv_dlopen_self in
10024   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10025   *) enable_dlopen_self=unknown ;;
10026   esac
10027
10028   case $lt_cv_dlopen_self_static in
10029   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10030   *) enable_dlopen_self_static=unknown ;;
10031   esac
10032 fi
10033
10034
10035 # Report which library types will actually be built
10036 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10037 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10038 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10039 echo "${ECHO_T}$can_build_shared" >&6; }
10040
10041 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10042 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10043 test "$can_build_shared" = "no" && enable_shared=no
10044
10045 # On AIX, shared libraries and static libraries use the same namespace, and
10046 # are all built from PIC.
10047 case $host_os in
10048 aix3*)
10049   test "$enable_shared" = yes && enable_static=no
10050   if test -n "$RANLIB"; then
10051     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10052     postinstall_cmds='$RANLIB $lib'
10053   fi
10054   ;;
10055
10056 aix4* | aix5*)
10057   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10058     test "$enable_shared" = yes && enable_static=no
10059   fi
10060     ;;
10061 esac
10062 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10063 echo "${ECHO_T}$enable_shared" >&6; }
10064
10065 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10066 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10067 # Make sure either enable_shared or enable_static is yes.
10068 test "$enable_shared" = yes || enable_static=yes
10069 { echo "$as_me:$LINENO: result: $enable_static" >&5
10070 echo "${ECHO_T}$enable_static" >&6; }
10071
10072 # The else clause should only fire when bootstrapping the
10073 # libtool distribution, otherwise you forgot to ship ltmain.sh
10074 # with your package, and you will get complaints that there are
10075 # no rules to generate ltmain.sh.
10076 if test -f "$ltmain"; then
10077   # See if we are running on zsh, and set the options which allow our commands through
10078   # without removal of \ escapes.
10079   if test -n "${ZSH_VERSION+set}" ; then
10080     setopt NO_GLOB_SUBST
10081   fi
10082   # Now quote all the things that may contain metacharacters while being
10083   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10084   # variables and quote the copies for generation of the libtool script.
10085   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10086     SED SHELL STRIP \
10087     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10088     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10089     deplibs_check_method reload_flag reload_cmds need_locks \
10090     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10091     lt_cv_sys_global_symbol_to_c_name_address \
10092     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10093     old_postinstall_cmds old_postuninstall_cmds \
10094     compiler \
10095     CC \
10096     LD \
10097     lt_prog_compiler_wl \
10098     lt_prog_compiler_pic \
10099     lt_prog_compiler_static \
10100     lt_prog_compiler_no_builtin_flag \
10101     export_dynamic_flag_spec \
10102     thread_safe_flag_spec \
10103     whole_archive_flag_spec \
10104     enable_shared_with_static_runtimes \
10105     old_archive_cmds \
10106     old_archive_from_new_cmds \
10107     predep_objects \
10108     postdep_objects \
10109     predeps \
10110     postdeps \
10111     compiler_lib_search_path \
10112     archive_cmds \
10113     archive_expsym_cmds \
10114     postinstall_cmds \
10115     postuninstall_cmds \
10116     old_archive_from_expsyms_cmds \
10117     allow_undefined_flag \
10118     no_undefined_flag \
10119     export_symbols_cmds \
10120     hardcode_libdir_flag_spec \
10121     hardcode_libdir_flag_spec_ld \
10122     hardcode_libdir_separator \
10123     hardcode_automatic \
10124     module_cmds \
10125     module_expsym_cmds \
10126     lt_cv_prog_compiler_c_o \
10127     exclude_expsyms \
10128     include_expsyms; do
10129
10130     case $var in
10131     old_archive_cmds | \
10132     old_archive_from_new_cmds | \
10133     archive_cmds | \
10134     archive_expsym_cmds | \
10135     module_cmds | \
10136     module_expsym_cmds | \
10137     old_archive_from_expsyms_cmds | \
10138     export_symbols_cmds | \
10139     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10140     postinstall_cmds | postuninstall_cmds | \
10141     old_postinstall_cmds | old_postuninstall_cmds | \
10142     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10143       # Double-quote double-evaled strings.
10144       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10145       ;;
10146     *)
10147       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10148       ;;
10149     esac
10150   done
10151
10152   case $lt_echo in
10153   *'\$0 --fallback-echo"')
10154     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10155     ;;
10156   esac
10157
10158 cfgfile="${ofile}T"
10159   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10160   $rm -f "$cfgfile"
10161   { echo "$as_me:$LINENO: creating $ofile" >&5
10162 echo "$as_me: creating $ofile" >&6;}
10163
10164   cat <<__EOF__ >> "$cfgfile"
10165 #! $SHELL
10166
10167 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10168 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10170 #
10171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10172 # Free Software Foundation, Inc.
10173 #
10174 # This file is part of GNU Libtool:
10175 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10176 #
10177 # This program is free software; you can redistribute it and/or modify
10178 # it under the terms of the GNU General Public License as published by
10179 # the Free Software Foundation; either version 2 of the License, or
10180 # (at your option) any later version.
10181 #
10182 # This program is distributed in the hope that it will be useful, but
10183 # WITHOUT ANY WARRANTY; without even the implied warranty of
10184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10185 # General Public License for more details.
10186 #
10187 # You should have received a copy of the GNU General Public License
10188 # along with this program; if not, write to the Free Software
10189 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10190 #
10191 # As a special exception to the GNU General Public License, if you
10192 # distribute this file as part of a program that contains a
10193 # configuration script generated by Autoconf, you may include it under
10194 # the same distribution terms that you use for the rest of that program.
10195
10196 # A sed program that does not truncate output.
10197 SED=$lt_SED
10198
10199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10200 Xsed="$SED -e 1s/^X//"
10201
10202 # The HP-UX ksh and POSIX shell print the target directory to stdout
10203 # if CDPATH is set.
10204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10205
10206 # The names of the tagged configurations supported by this script.
10207 available_tags=
10208
10209 # ### BEGIN LIBTOOL CONFIG
10210
10211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10212
10213 # Shell to use when invoking shell scripts.
10214 SHELL=$lt_SHELL
10215
10216 # Whether or not to build shared libraries.
10217 build_libtool_libs=$enable_shared
10218
10219 # Whether or not to build static libraries.
10220 build_old_libs=$enable_static
10221
10222 # Whether or not to add -lc for building shared libraries.
10223 build_libtool_need_lc=$archive_cmds_need_lc
10224
10225 # Whether or not to disallow shared libs when runtime libs are static
10226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10227
10228 # Whether or not to optimize for fast installation.
10229 fast_install=$enable_fast_install
10230
10231 # The host system.
10232 host_alias=$host_alias
10233 host=$host
10234 host_os=$host_os
10235
10236 # The build system.
10237 build_alias=$build_alias
10238 build=$build
10239 build_os=$build_os
10240
10241 # An echo program that does not interpret backslashes.
10242 echo=$lt_echo
10243
10244 # The archiver.
10245 AR=$lt_AR
10246 AR_FLAGS=$lt_AR_FLAGS
10247
10248 # A C compiler.
10249 LTCC=$lt_LTCC
10250
10251 # LTCC compiler flags.
10252 LTCFLAGS=$lt_LTCFLAGS
10253
10254 # A language-specific compiler.
10255 CC=$lt_compiler
10256
10257 # Is the compiler the GNU C compiler?
10258 with_gcc=$GCC
10259
10260 # An ERE matcher.
10261 EGREP=$lt_EGREP
10262
10263 # The linker used to build libraries.
10264 LD=$lt_LD
10265
10266 # Whether we need hard or soft links.
10267 LN_S=$lt_LN_S
10268
10269 # A BSD-compatible nm program.
10270 NM=$lt_NM
10271
10272 # A symbol stripping program
10273 STRIP=$lt_STRIP
10274
10275 # Used to examine libraries when file_magic_cmd begins "file"
10276 MAGIC_CMD=$MAGIC_CMD
10277
10278 # Used on cygwin: DLL creation program.
10279 DLLTOOL="$DLLTOOL"
10280
10281 # Used on cygwin: object dumper.
10282 OBJDUMP="$OBJDUMP"
10283
10284 # Used on cygwin: assembler.
10285 AS="$AS"
10286
10287 # The name of the directory that contains temporary libtool files.
10288 objdir=$objdir
10289
10290 # How to create reloadable object files.
10291 reload_flag=$lt_reload_flag
10292 reload_cmds=$lt_reload_cmds
10293
10294 # How to pass a linker flag through the compiler.
10295 wl=$lt_lt_prog_compiler_wl
10296
10297 # Object file suffix (normally "o").
10298 objext="$ac_objext"
10299
10300 # Old archive suffix (normally "a").
10301 libext="$libext"
10302
10303 # Shared library suffix (normally ".so").
10304 shrext_cmds='$shrext_cmds'
10305
10306 # Executable file suffix (normally "").
10307 exeext="$exeext"
10308
10309 # Additional compiler flags for building library objects.
10310 pic_flag=$lt_lt_prog_compiler_pic
10311 pic_mode=$pic_mode
10312
10313 # What is the maximum length of a command?
10314 max_cmd_len=$lt_cv_sys_max_cmd_len
10315
10316 # Does compiler simultaneously support -c and -o options?
10317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10318
10319 # Must we lock files when doing compilation?
10320 need_locks=$lt_need_locks
10321
10322 # Do we need the lib prefix for modules?
10323 need_lib_prefix=$need_lib_prefix
10324
10325 # Do we need a version for libraries?
10326 need_version=$need_version
10327
10328 # Whether dlopen is supported.
10329 dlopen_support=$enable_dlopen
10330
10331 # Whether dlopen of programs is supported.
10332 dlopen_self=$enable_dlopen_self
10333
10334 # Whether dlopen of statically linked programs is supported.
10335 dlopen_self_static=$enable_dlopen_self_static
10336
10337 # Compiler flag to prevent dynamic linking.
10338 link_static_flag=$lt_lt_prog_compiler_static
10339
10340 # Compiler flag to turn off builtin functions.
10341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10342
10343 # Compiler flag to allow reflexive dlopens.
10344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10345
10346 # Compiler flag to generate shared objects directly from archives.
10347 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10348
10349 # Compiler flag to generate thread-safe objects.
10350 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10351
10352 # Library versioning type.
10353 version_type=$version_type
10354
10355 # Format of library name prefix.
10356 libname_spec=$lt_libname_spec
10357
10358 # List of archive names.  First name is the real one, the rest are links.
10359 # The last name is the one that the linker finds with -lNAME.
10360 library_names_spec=$lt_library_names_spec
10361
10362 # The coded name of the library, if different from the real name.
10363 soname_spec=$lt_soname_spec
10364
10365 # Commands used to build and install an old-style archive.
10366 RANLIB=$lt_RANLIB
10367 old_archive_cmds=$lt_old_archive_cmds
10368 old_postinstall_cmds=$lt_old_postinstall_cmds
10369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10370
10371 # Create an old-style archive from a shared archive.
10372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10373
10374 # Create a temporary old-style archive to link instead of a shared archive.
10375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10376
10377 # Commands used to build and install a shared archive.
10378 archive_cmds=$lt_archive_cmds
10379 archive_expsym_cmds=$lt_archive_expsym_cmds
10380 postinstall_cmds=$lt_postinstall_cmds
10381 postuninstall_cmds=$lt_postuninstall_cmds
10382
10383 # Commands used to build a loadable module (assumed same as above if empty)
10384 module_cmds=$lt_module_cmds
10385 module_expsym_cmds=$lt_module_expsym_cmds
10386
10387 # Commands to strip libraries.
10388 old_striplib=$lt_old_striplib
10389 striplib=$lt_striplib
10390
10391 # Dependencies to place before the objects being linked to create a
10392 # shared library.
10393 predep_objects=$lt_predep_objects
10394
10395 # Dependencies to place after the objects being linked to create a
10396 # shared library.
10397 postdep_objects=$lt_postdep_objects
10398
10399 # Dependencies to place before the objects being linked to create a
10400 # shared library.
10401 predeps=$lt_predeps
10402
10403 # Dependencies to place after the objects being linked to create a
10404 # shared library.
10405 postdeps=$lt_postdeps
10406
10407 # The library search path used internally by the compiler when linking
10408 # a shared library.
10409 compiler_lib_search_path=$lt_compiler_lib_search_path
10410
10411 # Method to check whether dependent libraries are shared objects.
10412 deplibs_check_method=$lt_deplibs_check_method
10413
10414 # Command to use when deplibs_check_method == file_magic.
10415 file_magic_cmd=$lt_file_magic_cmd
10416
10417 # Flag that allows shared libraries with undefined symbols to be built.
10418 allow_undefined_flag=$lt_allow_undefined_flag
10419
10420 # Flag that forces no undefined symbols.
10421 no_undefined_flag=$lt_no_undefined_flag
10422
10423 # Commands used to finish a libtool library installation in a directory.
10424 finish_cmds=$lt_finish_cmds
10425
10426 # Same as above, but a single script fragment to be evaled but not shown.
10427 finish_eval=$lt_finish_eval
10428
10429 # Take the output of nm and produce a listing of raw symbols and C names.
10430 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10431
10432 # Transform the output of nm in a proper C declaration
10433 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10434
10435 # Transform the output of nm in a C name address pair
10436 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10437
10438 # This is the shared library runtime path variable.
10439 runpath_var=$runpath_var
10440
10441 # This is the shared library path variable.
10442 shlibpath_var=$shlibpath_var
10443
10444 # Is shlibpath searched before the hard-coded library search path?
10445 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10446
10447 # How to hardcode a shared library path into an executable.
10448 hardcode_action=$hardcode_action
10449
10450 # Whether we should hardcode library paths into libraries.
10451 hardcode_into_libs=$hardcode_into_libs
10452
10453 # Flag to hardcode \$libdir into a binary during linking.
10454 # This must work even if \$libdir does not exist.
10455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10456
10457 # If ld is used when linking, flag to hardcode \$libdir into
10458 # a binary during linking. This must work even if \$libdir does
10459 # not exist.
10460 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10461
10462 # Whether we need a single -rpath flag with a separated argument.
10463 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10464
10465 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10466 # resulting binary.
10467 hardcode_direct=$hardcode_direct
10468
10469 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10470 # resulting binary.
10471 hardcode_minus_L=$hardcode_minus_L
10472
10473 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10474 # the resulting binary.
10475 hardcode_shlibpath_var=$hardcode_shlibpath_var
10476
10477 # Set to yes if building a shared library automatically hardcodes DIR into the library
10478 # and all subsequent libraries and executables linked against it.
10479 hardcode_automatic=$hardcode_automatic
10480
10481 # Variables whose values should be saved in libtool wrapper scripts and
10482 # restored at relink time.
10483 variables_saved_for_relink="$variables_saved_for_relink"
10484
10485 # Whether libtool must link a program against all its dependency libraries.
10486 link_all_deplibs=$link_all_deplibs
10487
10488 # Compile-time system search path for libraries
10489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10490
10491 # Run-time system search path for libraries
10492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10493
10494 # Fix the shell variable \$srcfile for the compiler.
10495 fix_srcfile_path="$fix_srcfile_path"
10496
10497 # Set to yes if exported symbols are required.
10498 always_export_symbols=$always_export_symbols
10499
10500 # The commands to list exported symbols.
10501 export_symbols_cmds=$lt_export_symbols_cmds
10502
10503 # The commands to extract the exported symbol list from a shared archive.
10504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10505
10506 # Symbols that should not be listed in the preloaded symbols.
10507 exclude_expsyms=$lt_exclude_expsyms
10508
10509 # Symbols that must always be exported.
10510 include_expsyms=$lt_include_expsyms
10511
10512 # ### END LIBTOOL CONFIG
10513
10514 __EOF__
10515
10516
10517   case $host_os in
10518   aix3*)
10519     cat <<\EOF >> "$cfgfile"
10520
10521 # AIX sometimes has problems with the GCC collect2 program.  For some
10522 # reason, if we set the COLLECT_NAMES environment variable, the problems
10523 # vanish in a puff of smoke.
10524 if test "X${COLLECT_NAMES+set}" != Xset; then
10525   COLLECT_NAMES=
10526   export COLLECT_NAMES
10527 fi
10528 EOF
10529     ;;
10530   esac
10531
10532   # We use sed instead of cat because bash on DJGPP gets confused if
10533   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10534   # text mode, it properly converts lines to CR/LF.  This bash problem
10535   # is reportedly fixed, but why not run on old versions too?
10536   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10537
10538   mv -f "$cfgfile" "$ofile" || \
10539     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10540   chmod +x "$ofile"
10541
10542 else
10543   # If there is no Makefile yet, we rely on a make rule to execute
10544   # `config.status --recheck' to rerun these tests and create the
10545   # libtool script then.
10546   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10547   if test -f "$ltmain_in"; then
10548     test -f Makefile && make "$ltmain"
10549   fi
10550 fi
10551
10552
10553 ac_ext=c
10554 ac_cpp='$CPP $CPPFLAGS'
10555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10558
10559 CC="$lt_save_CC"
10560
10561
10562 # Check whether --with-tags was given.
10563 if test "${with_tags+set}" = set; then
10564   withval=$with_tags; tagnames="$withval"
10565 fi
10566
10567
10568 if test -f "$ltmain" && test -n "$tagnames"; then
10569   if test ! -f "${ofile}"; then
10570     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10571 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10572   fi
10573
10574   if test -z "$LTCC"; then
10575     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10576     if test -z "$LTCC"; then
10577       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10578 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10579     else
10580       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10581 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10582     fi
10583   fi
10584   if test -z "$LTCFLAGS"; then
10585     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10586   fi
10587
10588   # Extract list of available tagged configurations in $ofile.
10589   # Note that this assumes the entire list is on one line.
10590   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10591
10592   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10593   for tagname in $tagnames; do
10594     IFS="$lt_save_ifs"
10595     # Check whether tagname contains only valid characters
10596     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10597     "") ;;
10598     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10599 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10600    { (exit 1); exit 1; }; }
10601         ;;
10602     esac
10603
10604     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10605     then
10606       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10607 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10608    { (exit 1); exit 1; }; }
10609     fi
10610
10611     # Update the list of available tags.
10612     if test -n "$tagname"; then
10613       echo appending configuration tag \"$tagname\" to $ofile
10614
10615       case $tagname in
10616       CXX)
10617         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10618             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10619             (test "X$CXX" != "Xg++"))) ; then
10620           ac_ext=cpp
10621 ac_cpp='$CXXCPP $CPPFLAGS'
10622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10625
10626
10627
10628
10629 archive_cmds_need_lc_CXX=no
10630 allow_undefined_flag_CXX=
10631 always_export_symbols_CXX=no
10632 archive_expsym_cmds_CXX=
10633 export_dynamic_flag_spec_CXX=
10634 hardcode_direct_CXX=no
10635 hardcode_libdir_flag_spec_CXX=
10636 hardcode_libdir_flag_spec_ld_CXX=
10637 hardcode_libdir_separator_CXX=
10638 hardcode_minus_L_CXX=no
10639 hardcode_shlibpath_var_CXX=unsupported
10640 hardcode_automatic_CXX=no
10641 module_cmds_CXX=
10642 module_expsym_cmds_CXX=
10643 link_all_deplibs_CXX=unknown
10644 old_archive_cmds_CXX=$old_archive_cmds
10645 no_undefined_flag_CXX=
10646 whole_archive_flag_spec_CXX=
10647 enable_shared_with_static_runtimes_CXX=no
10648
10649 # Dependencies to place before and after the object being linked:
10650 predep_objects_CXX=
10651 postdep_objects_CXX=
10652 predeps_CXX=
10653 postdeps_CXX=
10654 compiler_lib_search_path_CXX=
10655
10656 # Source file extension for C++ test sources.
10657 ac_ext=cpp
10658
10659 # Object file extension for compiled C++ test sources.
10660 objext=o
10661 objext_CXX=$objext
10662
10663 # Code to be used in simple compile tests
10664 lt_simple_compile_test_code="int some_variable = 0;\n"
10665
10666 # Code to be used in simple link tests
10667 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10668
10669 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10670
10671 # If no C compiler was specified, use CC.
10672 LTCC=${LTCC-"$CC"}
10673
10674 # If no C compiler flags were specified, use CFLAGS.
10675 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10676
10677 # Allow CC to be a program name with arguments.
10678 compiler=$CC
10679
10680
10681 # save warnings/boilerplate of simple test code
10682 ac_outfile=conftest.$ac_objext
10683 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10684 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10685 _lt_compiler_boilerplate=`cat conftest.err`
10686 $rm conftest*
10687
10688 ac_outfile=conftest.$ac_objext
10689 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10690 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10691 _lt_linker_boilerplate=`cat conftest.err`
10692 $rm conftest*
10693
10694
10695 # Allow CC to be a program name with arguments.
10696 lt_save_CC=$CC
10697 lt_save_LD=$LD
10698 lt_save_GCC=$GCC
10699 GCC=$GXX
10700 lt_save_with_gnu_ld=$with_gnu_ld
10701 lt_save_path_LD=$lt_cv_path_LD
10702 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10703   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10704 else
10705   $as_unset lt_cv_prog_gnu_ld
10706 fi
10707 if test -n "${lt_cv_path_LDCXX+set}"; then
10708   lt_cv_path_LD=$lt_cv_path_LDCXX
10709 else
10710   $as_unset lt_cv_path_LD
10711 fi
10712 test -z "${LDCXX+set}" || LD=$LDCXX
10713 CC=${CXX-"c++"}
10714 compiler=$CC
10715 compiler_CXX=$CC
10716 for cc_temp in $compiler""; do
10717   case $cc_temp in
10718     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10719     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10720     \-*) ;;
10721     *) break;;
10722   esac
10723 done
10724 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10725
10726
10727 # We don't want -fno-exception wen compiling C++ code, so set the
10728 # no_builtin_flag separately
10729 if test "$GXX" = yes; then
10730   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10731 else
10732   lt_prog_compiler_no_builtin_flag_CXX=
10733 fi
10734
10735 if test "$GXX" = yes; then
10736   # Set up default GNU C++ configuration
10737
10738
10739 # Check whether --with-gnu-ld was given.
10740 if test "${with_gnu_ld+set}" = set; then
10741   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10742 else
10743   with_gnu_ld=no
10744 fi
10745
10746 ac_prog=ld
10747 if test "$GCC" = yes; then
10748   # Check if gcc -print-prog-name=ld gives a path.
10749   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10750 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10751   case $host in
10752   *-*-mingw*)
10753     # gcc leaves a trailing carriage return which upsets mingw
10754     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10755   *)
10756     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10757   esac
10758   case $ac_prog in
10759     # Accept absolute paths.
10760     [\\/]* | ?:[\\/]*)
10761       re_direlt='/[^/][^/]*/\.\./'
10762       # Canonicalize the pathname of ld
10763       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10764       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10765         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10766       done
10767       test -z "$LD" && LD="$ac_prog"
10768       ;;
10769   "")
10770     # If it fails, then pretend we aren't using GCC.
10771     ac_prog=ld
10772     ;;
10773   *)
10774     # If it is relative, then search for the first ld in PATH.
10775     with_gnu_ld=unknown
10776     ;;
10777   esac
10778 elif test "$with_gnu_ld" = yes; then
10779   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10780 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10781 else
10782   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10783 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10784 fi
10785 if test "${lt_cv_path_LD+set}" = set; then
10786   echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788   if test -z "$LD"; then
10789   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10790   for ac_dir in $PATH; do
10791     IFS="$lt_save_ifs"
10792     test -z "$ac_dir" && ac_dir=.
10793     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10794       lt_cv_path_LD="$ac_dir/$ac_prog"
10795       # Check to see if the program is GNU ld.  I'd rather use --version,
10796       # but apparently some variants of GNU ld only accept -v.
10797       # Break only if it was the GNU/non-GNU ld that we prefer.
10798       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10799       *GNU* | *'with BFD'*)
10800         test "$with_gnu_ld" != no && break
10801         ;;
10802       *)
10803         test "$with_gnu_ld" != yes && break
10804         ;;
10805       esac
10806     fi
10807   done
10808   IFS="$lt_save_ifs"
10809 else
10810   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10811 fi
10812 fi
10813
10814 LD="$lt_cv_path_LD"
10815 if test -n "$LD"; then
10816   { echo "$as_me:$LINENO: result: $LD" >&5
10817 echo "${ECHO_T}$LD" >&6; }
10818 else
10819   { echo "$as_me:$LINENO: result: no" >&5
10820 echo "${ECHO_T}no" >&6; }
10821 fi
10822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10824    { (exit 1); exit 1; }; }
10825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10827 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10831 case `$LD -v 2>&1 </dev/null` in
10832 *GNU* | *'with BFD'*)
10833   lt_cv_prog_gnu_ld=yes
10834   ;;
10835 *)
10836   lt_cv_prog_gnu_ld=no
10837   ;;
10838 esac
10839 fi
10840 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10841 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10842 with_gnu_ld=$lt_cv_prog_gnu_ld
10843
10844
10845
10846   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10847   # archiving commands below assume that GNU ld is being used.
10848   if test "$with_gnu_ld" = yes; then
10849     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850     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'
10851
10852     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10853     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10854
10855     # If archive_cmds runs LD, not CC, wlarc should be empty
10856     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10857     #     investigate it a little bit more. (MM)
10858     wlarc='${wl}'
10859
10860     # ancient GNU ld didn't support --whole-archive et. al.
10861     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10862         grep 'no-whole-archive' > /dev/null; then
10863       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10864     else
10865       whole_archive_flag_spec_CXX=
10866     fi
10867   else
10868     with_gnu_ld=no
10869     wlarc=
10870
10871     # A generic and very simple default shared library creation
10872     # command for GNU C++ for the case where it uses the native
10873     # linker, instead of GNU ld.  If possible, this setting should
10874     # overridden to take advantage of the native linker features on
10875     # the platform it is being used on.
10876     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10877   fi
10878
10879   # Commands to make compiler produce verbose output that lists
10880   # what "hidden" libraries, object files and flags are used when
10881   # linking a shared library.
10882   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10883
10884 else
10885   GXX=no
10886   with_gnu_ld=no
10887   wlarc=
10888 fi
10889
10890 # PORTME: fill in a description of your system's C++ link characteristics
10891 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10892 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10893 ld_shlibs_CXX=yes
10894 case $host_os in
10895   aix3*)
10896     # FIXME: insert proper C++ library support
10897     ld_shlibs_CXX=no
10898     ;;
10899   aix4* | aix5*)
10900     if test "$host_cpu" = ia64; then
10901       # On IA64, the linker does run time linking by default, so we don't
10902       # have to do anything special.
10903       aix_use_runtimelinking=no
10904       exp_sym_flag='-Bexport'
10905       no_entry_flag=""
10906     else
10907       aix_use_runtimelinking=no
10908
10909       # Test if we are trying to use run time linking or normal
10910       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10911       # need to do runtime linking.
10912       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10913         for ld_flag in $LDFLAGS; do
10914           case $ld_flag in
10915           *-brtl*)
10916             aix_use_runtimelinking=yes
10917             break
10918             ;;
10919           esac
10920         done
10921         ;;
10922       esac
10923
10924       exp_sym_flag='-bexport'
10925       no_entry_flag='-bnoentry'
10926     fi
10927
10928     # When large executables or shared objects are built, AIX ld can
10929     # have problems creating the table of contents.  If linking a library
10930     # or program results in "error TOC overflow" add -mminimal-toc to
10931     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10932     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10933
10934     archive_cmds_CXX=''
10935     hardcode_direct_CXX=yes
10936     hardcode_libdir_separator_CXX=':'
10937     link_all_deplibs_CXX=yes
10938
10939     if test "$GXX" = yes; then
10940       case $host_os in aix4.[012]|aix4.[012].*)
10941       # We only want to do this on AIX 4.2 and lower, the check
10942       # below for broken collect2 doesn't work under 4.3+
10943         collect2name=`${CC} -print-prog-name=collect2`
10944         if test -f "$collect2name" && \
10945            strings "$collect2name" | grep resolve_lib_name >/dev/null
10946         then
10947           # We have reworked collect2
10948           hardcode_direct_CXX=yes
10949         else
10950           # We have old collect2
10951           hardcode_direct_CXX=unsupported
10952           # It fails to find uninstalled libraries when the uninstalled
10953           # path is not listed in the libpath.  Setting hardcode_minus_L
10954           # to unsupported forces relinking
10955           hardcode_minus_L_CXX=yes
10956           hardcode_libdir_flag_spec_CXX='-L$libdir'
10957           hardcode_libdir_separator_CXX=
10958         fi
10959         ;;
10960       esac
10961       shared_flag='-shared'
10962       if test "$aix_use_runtimelinking" = yes; then
10963         shared_flag="$shared_flag "'${wl}-G'
10964       fi
10965     else
10966       # not using gcc
10967       if test "$host_cpu" = ia64; then
10968         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10969         # chokes on -Wl,-G. The following line is correct:
10970         shared_flag='-G'
10971       else
10972         if test "$aix_use_runtimelinking" = yes; then
10973           shared_flag='${wl}-G'
10974         else
10975           shared_flag='${wl}-bM:SRE'
10976         fi
10977       fi
10978     fi
10979
10980     # It seems that -bexpall does not export symbols beginning with
10981     # underscore (_), so it is better to generate a list of symbols to export.
10982     always_export_symbols_CXX=yes
10983     if test "$aix_use_runtimelinking" = yes; then
10984       # Warning - without using the other runtime loading flags (-brtl),
10985       # -berok will link without error, but may produce a broken library.
10986       allow_undefined_flag_CXX='-berok'
10987       # Determine the default libpath from the value encoded in an empty executable.
10988       cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994
10995 int
10996 main ()
10997 {
10998
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (ac_try="$ac_link"
11005 case "(($ac_try" in
11006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007   *) ac_try_echo=$ac_try;;
11008 esac
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010   (eval "$ac_link") 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } && {
11017          test -z "$ac_cxx_werror_flag" ||
11018          test ! -s conftest.err
11019        } && test -s conftest$ac_exeext &&
11020        $as_test_x conftest$ac_exeext; then
11021
11022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11023 }'`
11024 # Check for a 64-bit object if we didn't find anything.
11025 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; }
11026 }'`; fi
11027 else
11028   echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031
11032 fi
11033
11034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035       conftest$ac_exeext conftest.$ac_ext
11036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11037
11038       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11039
11040       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"
11041      else
11042       if test "$host_cpu" = ia64; then
11043         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11044         allow_undefined_flag_CXX="-z nodefs"
11045         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"
11046       else
11047         # Determine the default libpath from the value encoded in an empty executable.
11048         cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054
11055 int
11056 main ()
11057 {
11058
11059   ;
11060   return 0;
11061 }
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067   *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070   (eval "$ac_link") 2>conftest.er1
11071   ac_status=$?
11072   grep -v '^ *+' conftest.er1 >conftest.err
11073   rm -f conftest.er1
11074   cat conftest.err >&5
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); } && {
11077          test -z "$ac_cxx_werror_flag" ||
11078          test ! -s conftest.err
11079        } && test -s conftest$ac_exeext &&
11080        $as_test_x conftest$ac_exeext; then
11081
11082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11083 }'`
11084 # Check for a 64-bit object if we didn't find anything.
11085 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; }
11086 }'`; fi
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091
11092 fi
11093
11094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11095       conftest$ac_exeext conftest.$ac_ext
11096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11097
11098         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11099         # Warning - without using the other run time loading flags,
11100         # -berok will link without error, but may produce a broken library.
11101         no_undefined_flag_CXX=' ${wl}-bernotok'
11102         allow_undefined_flag_CXX=' ${wl}-berok'
11103         # Exported symbols can be pulled into shared objects from archives
11104         whole_archive_flag_spec_CXX='$convenience'
11105         archive_cmds_need_lc_CXX=yes
11106         # This is similar to how AIX traditionally builds its shared libraries.
11107         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'
11108       fi
11109     fi
11110     ;;
11111
11112   beos*)
11113     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11114       allow_undefined_flag_CXX=unsupported
11115       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11116       # support --undefined.  This deserves some investigation.  FIXME
11117       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118     else
11119       ld_shlibs_CXX=no
11120     fi
11121     ;;
11122
11123   chorus*)
11124     case $cc_basename in
11125       *)
11126         # FIXME: insert proper C++ library support
11127         ld_shlibs_CXX=no
11128         ;;
11129     esac
11130     ;;
11131
11132   cygwin* | mingw* | pw32*)
11133     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11134     # as there is no search path for DLLs.
11135     hardcode_libdir_flag_spec_CXX='-L$libdir'
11136     allow_undefined_flag_CXX=unsupported
11137     always_export_symbols_CXX=no
11138     enable_shared_with_static_runtimes_CXX=yes
11139
11140     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11141       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'
11142       # If the export-symbols file already is a .def file (1st line
11143       # is EXPORTS), use it as is; otherwise, prepend...
11144       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11145         cp $export_symbols $output_objdir/$soname.def;
11146       else
11147         echo EXPORTS > $output_objdir/$soname.def;
11148         cat $export_symbols >> $output_objdir/$soname.def;
11149       fi~
11150       $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'
11151     else
11152       ld_shlibs_CXX=no
11153     fi
11154   ;;
11155       darwin* | rhapsody*)
11156         case $host_os in
11157         rhapsody* | darwin1.[012])
11158          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11159          ;;
11160        *) # Darwin 1.3 on
11161          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11162            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11163          else
11164            case ${MACOSX_DEPLOYMENT_TARGET} in
11165              10.[012])
11166                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11167                ;;
11168              10.*)
11169                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11170                ;;
11171            esac
11172          fi
11173          ;;
11174         esac
11175       archive_cmds_need_lc_CXX=no
11176       hardcode_direct_CXX=no
11177       hardcode_automatic_CXX=yes
11178       hardcode_shlibpath_var_CXX=unsupported
11179       whole_archive_flag_spec_CXX=''
11180       link_all_deplibs_CXX=yes
11181
11182     if test "$GXX" = yes ; then
11183       lt_int_apple_cc_single_mod=no
11184       output_verbose_link_cmd='echo'
11185       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11186        lt_int_apple_cc_single_mod=yes
11187       fi
11188       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11189        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11190       else
11191           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'
11192         fi
11193         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11194         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11195           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11196             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}'
11197           else
11198             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}'
11199           fi
11200             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}'
11201       else
11202       case $cc_basename in
11203         xlc*)
11204          output_verbose_link_cmd='echo'
11205           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'
11206           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11207           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11208           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}'
11209           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}'
11210           ;;
11211        *)
11212          ld_shlibs_CXX=no
11213           ;;
11214       esac
11215       fi
11216         ;;
11217
11218   dgux*)
11219     case $cc_basename in
11220       ec++*)
11221         # FIXME: insert proper C++ library support
11222         ld_shlibs_CXX=no
11223         ;;
11224       ghcx*)
11225         # Green Hills C++ Compiler
11226         # FIXME: insert proper C++ library support
11227         ld_shlibs_CXX=no
11228         ;;
11229       *)
11230         # FIXME: insert proper C++ library support
11231         ld_shlibs_CXX=no
11232         ;;
11233     esac
11234     ;;
11235   freebsd[12]*)
11236     # C++ shared libraries reported to be fairly broken before switch to ELF
11237     ld_shlibs_CXX=no
11238     ;;
11239   freebsd-elf*)
11240     archive_cmds_need_lc_CXX=no
11241     ;;
11242   freebsd* | dragonfly*)
11243     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11244     # conventions
11245     ld_shlibs_CXX=yes
11246     ;;
11247   gnu*)
11248     ;;
11249   hpux9*)
11250     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11251     hardcode_libdir_separator_CXX=:
11252     export_dynamic_flag_spec_CXX='${wl}-E'
11253     hardcode_direct_CXX=yes
11254     hardcode_minus_L_CXX=yes # Not in the search PATH,
11255                                 # but as the default
11256                                 # location of the library.
11257
11258     case $cc_basename in
11259     CC*)
11260       # FIXME: insert proper C++ library support
11261       ld_shlibs_CXX=no
11262       ;;
11263     aCC*)
11264       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'
11265       # Commands to make compiler produce verbose output that lists
11266       # what "hidden" libraries, object files and flags are used when
11267       # linking a shared library.
11268       #
11269       # There doesn't appear to be a way to prevent this compiler from
11270       # explicitly linking system object files so we need to strip them
11271       # from the output so that they don't get included in the library
11272       # dependencies.
11273       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'
11274       ;;
11275     *)
11276       if test "$GXX" = yes; then
11277         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'
11278       else
11279         # FIXME: insert proper C++ library support
11280         ld_shlibs_CXX=no
11281       fi
11282       ;;
11283     esac
11284     ;;
11285   hpux10*|hpux11*)
11286     if test $with_gnu_ld = no; then
11287       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11288       hardcode_libdir_separator_CXX=:
11289
11290       case $host_cpu in
11291       hppa*64*|ia64*)
11292         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11293         ;;
11294       *)
11295         export_dynamic_flag_spec_CXX='${wl}-E'
11296         ;;
11297       esac
11298     fi
11299     case $host_cpu in
11300     hppa*64*|ia64*)
11301       hardcode_direct_CXX=no
11302       hardcode_shlibpath_var_CXX=no
11303       ;;
11304     *)
11305       hardcode_direct_CXX=yes
11306       hardcode_minus_L_CXX=yes # Not in the search PATH,
11307                                               # but as the default
11308                                               # location of the library.
11309       ;;
11310     esac
11311
11312     case $cc_basename in
11313       CC*)
11314         # FIXME: insert proper C++ library support
11315         ld_shlibs_CXX=no
11316         ;;
11317       aCC*)
11318         case $host_cpu in
11319         hppa*64*)
11320           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321           ;;
11322         ia64*)
11323           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324           ;;
11325         *)
11326           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327           ;;
11328         esac
11329         # Commands to make compiler produce verbose output that lists
11330         # what "hidden" libraries, object files and flags are used when
11331         # linking a shared library.
11332         #
11333         # There doesn't appear to be a way to prevent this compiler from
11334         # explicitly linking system object files so we need to strip them
11335         # from the output so that they don't get included in the library
11336         # dependencies.
11337         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'
11338         ;;
11339       *)
11340         if test "$GXX" = yes; then
11341           if test $with_gnu_ld = no; then
11342             case $host_cpu in
11343             hppa*64*)
11344               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11345               ;;
11346             ia64*)
11347               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11348               ;;
11349             *)
11350               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'
11351               ;;
11352             esac
11353           fi
11354         else
11355           # FIXME: insert proper C++ library support
11356           ld_shlibs_CXX=no
11357         fi
11358         ;;
11359     esac
11360     ;;
11361   interix3*)
11362     hardcode_direct_CXX=no
11363     hardcode_shlibpath_var_CXX=no
11364     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11365     export_dynamic_flag_spec_CXX='${wl}-E'
11366     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11367     # Instead, shared libraries are loaded at an image base (0x10000000 by
11368     # default) and relocated if they conflict, which is a slow very memory
11369     # consuming and fragmenting process.  To avoid this, we pick a random,
11370     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11371     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11372     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'
11373     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'
11374     ;;
11375   irix5* | irix6*)
11376     case $cc_basename in
11377       CC*)
11378         # SGI C++
11379         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'
11380
11381         # Archives containing C++ object files must be created using
11382         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11383         # necessary to make sure instantiated templates are included
11384         # in the archive.
11385         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11386         ;;
11387       *)
11388         if test "$GXX" = yes; then
11389           if test "$with_gnu_ld" = no; then
11390             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'
11391           else
11392             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'
11393           fi
11394         fi
11395         link_all_deplibs_CXX=yes
11396         ;;
11397     esac
11398     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11399     hardcode_libdir_separator_CXX=:
11400     ;;
11401   linux* | k*bsd*-gnu)
11402     case $cc_basename in
11403       KCC*)
11404         # Kuck and Associates, Inc. (KAI) C++ Compiler
11405
11406         # KCC will only create a shared library if the output file
11407         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11408         # to its proper name (with version) after linking.
11409         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'
11410         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'
11411         # Commands to make compiler produce verbose output that lists
11412         # what "hidden" libraries, object files and flags are used when
11413         # linking a shared library.
11414         #
11415         # There doesn't appear to be a way to prevent this compiler from
11416         # explicitly linking system object files so we need to strip them
11417         # from the output so that they don't get included in the library
11418         # dependencies.
11419         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'
11420
11421         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11422         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423
11424         # Archives containing C++ object files must be created using
11425         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11426         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11427         ;;
11428       icpc*)
11429         # Intel C++
11430         with_gnu_ld=yes
11431         # version 8.0 and above of icpc choke on multiply defined symbols
11432         # if we add $predep_objects and $postdep_objects, however 7.1 and
11433         # earlier do not add the objects themselves.
11434         case `$CC -V 2>&1` in
11435         *"Version 7."*)
11436           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437           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'
11438           ;;
11439         *)  # Version 8.0 or newer
11440           tmp_idyn=
11441           case $host_cpu in
11442             ia64*) tmp_idyn=' -i_dynamic';;
11443           esac
11444           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11445           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'
11446           ;;
11447         esac
11448         archive_cmds_need_lc_CXX=no
11449         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11450         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11451         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11452         ;;
11453       pgCC*)
11454         # Portland Group C++ compiler
11455         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11456         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'
11457
11458         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11459         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11460         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'
11461         ;;
11462       cxx*)
11463         # Compaq C++
11464         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465         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'
11466
11467         runpath_var=LD_RUN_PATH
11468         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11469         hardcode_libdir_separator_CXX=:
11470
11471         # Commands to make compiler produce verbose output that lists
11472         # what "hidden" libraries, object files and flags are used when
11473         # linking a shared library.
11474         #
11475         # There doesn't appear to be a way to prevent this compiler from
11476         # explicitly linking system object files so we need to strip them
11477         # from the output so that they don't get included in the library
11478         # dependencies.
11479         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'
11480         ;;
11481     esac
11482     ;;
11483   lynxos*)
11484     # FIXME: insert proper C++ library support
11485     ld_shlibs_CXX=no
11486     ;;
11487   m88k*)
11488     # FIXME: insert proper C++ library support
11489     ld_shlibs_CXX=no
11490     ;;
11491   mvs*)
11492     case $cc_basename in
11493       cxx*)
11494         # FIXME: insert proper C++ library support
11495         ld_shlibs_CXX=no
11496         ;;
11497       *)
11498         # FIXME: insert proper C++ library support
11499         ld_shlibs_CXX=no
11500         ;;
11501     esac
11502     ;;
11503   netbsd* | netbsdelf*-gnu)
11504     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11505       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11506       wlarc=
11507       hardcode_libdir_flag_spec_CXX='-R$libdir'
11508       hardcode_direct_CXX=yes
11509       hardcode_shlibpath_var_CXX=no
11510     fi
11511     # Workaround some broken pre-1.5 toolchains
11512     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11513     ;;
11514   openbsd2*)
11515     # C++ shared libraries are fairly broken
11516     ld_shlibs_CXX=no
11517     ;;
11518   openbsd*)
11519     hardcode_direct_CXX=yes
11520     hardcode_shlibpath_var_CXX=no
11521     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11522     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11524       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11525       export_dynamic_flag_spec_CXX='${wl}-E'
11526       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11527     fi
11528     output_verbose_link_cmd='echo'
11529     ;;
11530   osf3*)
11531     case $cc_basename in
11532       KCC*)
11533         # Kuck and Associates, Inc. (KAI) C++ Compiler
11534
11535         # KCC will only create a shared library if the output file
11536         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11537         # to its proper name (with version) after linking.
11538         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'
11539
11540         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11541         hardcode_libdir_separator_CXX=:
11542
11543         # Archives containing C++ object files must be created using
11544         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11545         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11546
11547         ;;
11548       RCC*)
11549         # Rational C++ 2.4.1
11550         # FIXME: insert proper C++ library support
11551         ld_shlibs_CXX=no
11552         ;;
11553       cxx*)
11554         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11555         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'
11556
11557         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11558         hardcode_libdir_separator_CXX=:
11559
11560         # Commands to make compiler produce verbose output that lists
11561         # what "hidden" libraries, object files and flags are used when
11562         # linking a shared library.
11563         #
11564         # There doesn't appear to be a way to prevent this compiler from
11565         # explicitly linking system object files so we need to strip them
11566         # from the output so that they don't get included in the library
11567         # dependencies.
11568         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'
11569         ;;
11570       *)
11571         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11572           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11573           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'
11574
11575           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576           hardcode_libdir_separator_CXX=:
11577
11578           # Commands to make compiler produce verbose output that lists
11579           # what "hidden" libraries, object files and flags are used when
11580           # linking a shared library.
11581           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11582
11583         else
11584           # FIXME: insert proper C++ library support
11585           ld_shlibs_CXX=no
11586         fi
11587         ;;
11588     esac
11589     ;;
11590   osf4* | osf5*)
11591     case $cc_basename in
11592       KCC*)
11593         # Kuck and Associates, Inc. (KAI) C++ Compiler
11594
11595         # KCC will only create a shared library if the output file
11596         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11597         # to its proper name (with version) after linking.
11598         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'
11599
11600         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11601         hardcode_libdir_separator_CXX=:
11602
11603         # Archives containing C++ object files must be created using
11604         # the KAI C++ compiler.
11605         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11606         ;;
11607       RCC*)
11608         # Rational C++ 2.4.1
11609         # FIXME: insert proper C++ library support
11610         ld_shlibs_CXX=no
11611         ;;
11612       cxx*)
11613         allow_undefined_flag_CXX=' -expect_unresolved \*'
11614         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'
11615         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11616           echo "-hidden">> $lib.exp~
11617           $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~
11618           $rm $lib.exp'
11619
11620         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11621         hardcode_libdir_separator_CXX=:
11622
11623         # Commands to make compiler produce verbose output that lists
11624         # what "hidden" libraries, object files and flags are used when
11625         # linking a shared library.
11626         #
11627         # There doesn't appear to be a way to prevent this compiler from
11628         # explicitly linking system object files so we need to strip them
11629         # from the output so that they don't get included in the library
11630         # dependencies.
11631         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'
11632         ;;
11633       *)
11634         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11635           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11636          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'
11637
11638           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11639           hardcode_libdir_separator_CXX=:
11640
11641           # Commands to make compiler produce verbose output that lists
11642           # what "hidden" libraries, object files and flags are used when
11643           # linking a shared library.
11644           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11645
11646         else
11647           # FIXME: insert proper C++ library support
11648           ld_shlibs_CXX=no
11649         fi
11650         ;;
11651     esac
11652     ;;
11653   psos*)
11654     # FIXME: insert proper C++ library support
11655     ld_shlibs_CXX=no
11656     ;;
11657   sunos4*)
11658     case $cc_basename in
11659       CC*)
11660         # Sun C++ 4.x
11661         # FIXME: insert proper C++ library support
11662         ld_shlibs_CXX=no
11663         ;;
11664       lcc*)
11665         # Lucid
11666         # FIXME: insert proper C++ library support
11667         ld_shlibs_CXX=no
11668         ;;
11669       *)
11670         # FIXME: insert proper C++ library support
11671         ld_shlibs_CXX=no
11672         ;;
11673     esac
11674     ;;
11675   solaris*)
11676     case $cc_basename in
11677       CC*)
11678         # Sun C++ 4.2, 5.x and Centerline C++
11679         archive_cmds_need_lc_CXX=yes
11680         no_undefined_flag_CXX=' -zdefs'
11681         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11682         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11683         $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'
11684
11685         hardcode_libdir_flag_spec_CXX='-R$libdir'
11686         hardcode_shlibpath_var_CXX=no
11687         case $host_os in
11688           solaris2.[0-5] | solaris2.[0-5].*) ;;
11689           *)
11690             # The C++ compiler is used as linker so we must use $wl
11691             # flag to pass the commands to the underlying system
11692             # linker. We must also pass each convience library through
11693             # to the system linker between allextract/defaultextract.
11694             # The C++ compiler will combine linker options so we
11695             # cannot just pass the convience library names through
11696             # without $wl.
11697             # Supported since Solaris 2.6 (maybe 2.5.1?)
11698             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'
11699             ;;
11700         esac
11701         link_all_deplibs_CXX=yes
11702
11703         output_verbose_link_cmd='echo'
11704
11705         # Archives containing C++ object files must be created using
11706         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11707         # necessary to make sure instantiated templates are included
11708         # in the archive.
11709         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11710         ;;
11711       gcx*)
11712         # Green Hills C++ Compiler
11713         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11714
11715         # The C++ compiler must be used to create the archive.
11716         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11717         ;;
11718       *)
11719         # GNU C++ compiler with Solaris linker
11720         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11722           if $CC --version | grep -v '^2\.7' > /dev/null; then
11723             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11724             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11725                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11726
11727             # Commands to make compiler produce verbose output that lists
11728             # what "hidden" libraries, object files and flags are used when
11729             # linking a shared library.
11730             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11731           else
11732             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11733             # platform.
11734             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11735             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11736                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11737
11738             # Commands to make compiler produce verbose output that lists
11739             # what "hidden" libraries, object files and flags are used when
11740             # linking a shared library.
11741             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11742           fi
11743
11744           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11745         fi
11746         ;;
11747     esac
11748     ;;
11749   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11750     no_undefined_flag_CXX='${wl}-z,text'
11751     archive_cmds_need_lc_CXX=no
11752     hardcode_shlibpath_var_CXX=no
11753     runpath_var='LD_RUN_PATH'
11754
11755     case $cc_basename in
11756       CC*)
11757         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759         ;;
11760       *)
11761         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763         ;;
11764     esac
11765     ;;
11766   sysv5* | sco3.2v5* | sco5v6*)
11767     # Note: We can NOT use -z defs as we might desire, because we do not
11768     # link with -lc, and that would cause any symbols used from libc to
11769     # always be unresolved, which means just about no library would
11770     # ever link correctly.  If we're not using GNU ld we use -z text
11771     # though, which does catch some bad symbols but isn't as heavy-handed
11772     # as -z defs.
11773     # For security reasons, it is highly recommended that you always
11774     # use absolute paths for naming shared libraries, and exclude the
11775     # DT_RUNPATH tag from executables and libraries.  But doing so
11776     # requires that you compile everything twice, which is a pain.
11777     # So that behaviour is only enabled if SCOABSPATH is set to a
11778     # non-empty value in the environment.  Most likely only useful for
11779     # creating official distributions of packages.
11780     # This is a hack until libtool officially supports absolute path
11781     # names for shared libraries.
11782     no_undefined_flag_CXX='${wl}-z,text'
11783     allow_undefined_flag_CXX='${wl}-z,nodefs'
11784     archive_cmds_need_lc_CXX=no
11785     hardcode_shlibpath_var_CXX=no
11786     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11787     hardcode_libdir_separator_CXX=':'
11788     link_all_deplibs_CXX=yes
11789     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11790     runpath_var='LD_RUN_PATH'
11791
11792     case $cc_basename in
11793       CC*)
11794         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11795         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11796         ;;
11797       *)
11798         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11799         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11800         ;;
11801     esac
11802     ;;
11803   tandem*)
11804     case $cc_basename in
11805       NCC*)
11806         # NonStop-UX NCC 3.20
11807         # FIXME: insert proper C++ library support
11808         ld_shlibs_CXX=no
11809         ;;
11810       *)
11811         # FIXME: insert proper C++ library support
11812         ld_shlibs_CXX=no
11813         ;;
11814     esac
11815     ;;
11816   vxworks*)
11817     # FIXME: insert proper C++ library support
11818     ld_shlibs_CXX=no
11819     ;;
11820   *)
11821     # FIXME: insert proper C++ library support
11822     ld_shlibs_CXX=no
11823     ;;
11824 esac
11825 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11826 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11827 test "$ld_shlibs_CXX" = no && can_build_shared=no
11828
11829 GCC_CXX="$GXX"
11830 LD_CXX="$LD"
11831
11832
11833 cat > conftest.$ac_ext <<EOF
11834 class Foo
11835 {
11836 public:
11837   Foo (void) { a = 0; }
11838 private:
11839   int a;
11840 };
11841 EOF
11842
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844   (eval $ac_compile) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; then
11848   # Parse the compiler output and extract the necessary
11849   # objects, libraries and library flags.
11850
11851   # Sentinel used to keep track of whether or not we are before
11852   # the conftest object file.
11853   pre_test_object_deps_done=no
11854
11855   # The `*' in the case matches for architectures that use `case' in
11856   # $output_verbose_cmd can trigger glob expansion during the loop
11857   # eval without this substitution.
11858   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11859
11860   for p in `eval $output_verbose_link_cmd`; do
11861     case $p in
11862
11863     -L* | -R* | -l*)
11864        # Some compilers place space between "-{L,R}" and the path.
11865        # Remove the space.
11866        if test $p = "-L" \
11867           || test $p = "-R"; then
11868          prev=$p
11869          continue
11870        else
11871          prev=
11872        fi
11873
11874        if test "$pre_test_object_deps_done" = no; then
11875          case $p in
11876          -L* | -R*)
11877            # Internal compiler library paths should come after those
11878            # provided the user.  The postdeps already come after the
11879            # user supplied libs so there is no need to process them.
11880            if test -z "$compiler_lib_search_path_CXX"; then
11881              compiler_lib_search_path_CXX="${prev}${p}"
11882            else
11883              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11884            fi
11885            ;;
11886          # The "-l" case would never come before the object being
11887          # linked, so don't bother handling this case.
11888          esac
11889        else
11890          if test -z "$postdeps_CXX"; then
11891            postdeps_CXX="${prev}${p}"
11892          else
11893            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11894          fi
11895        fi
11896        ;;
11897
11898     *.$objext)
11899        # This assumes that the test object file only shows up
11900        # once in the compiler output.
11901        if test "$p" = "conftest.$objext"; then
11902          pre_test_object_deps_done=yes
11903          continue
11904        fi
11905
11906        if test "$pre_test_object_deps_done" = no; then
11907          if test -z "$predep_objects_CXX"; then
11908            predep_objects_CXX="$p"
11909          else
11910            predep_objects_CXX="$predep_objects_CXX $p"
11911          fi
11912        else
11913          if test -z "$postdep_objects_CXX"; then
11914            postdep_objects_CXX="$p"
11915          else
11916            postdep_objects_CXX="$postdep_objects_CXX $p"
11917          fi
11918        fi
11919        ;;
11920
11921     *) ;; # Ignore the rest.
11922
11923     esac
11924   done
11925
11926   # Clean up.
11927   rm -f a.out a.exe
11928 else
11929   echo "libtool.m4: error: problem compiling CXX test program"
11930 fi
11931
11932 $rm -f confest.$objext
11933
11934 # PORTME: override above test on systems where it is broken
11935 case $host_os in
11936 interix3*)
11937   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11938   # hack all around it, let's just trust "g++" to DTRT.
11939   predep_objects_CXX=
11940   postdep_objects_CXX=
11941   postdeps_CXX=
11942   ;;
11943
11944 solaris*)
11945   case $cc_basename in
11946   CC*)
11947     # Adding this requires a known-good setup of shared libraries for
11948     # Sun compiler versions before 5.6, else PIC objects from an old
11949     # archive will be linked into the output, leading to subtle bugs.
11950     postdeps_CXX='-lCstd -lCrun'
11951     ;;
11952   esac
11953   ;;
11954 esac
11955
11956
11957 case " $postdeps_CXX " in
11958 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11959 esac
11960
11961 lt_prog_compiler_wl_CXX=
11962 lt_prog_compiler_pic_CXX=
11963 lt_prog_compiler_static_CXX=
11964
11965 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11966 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11967
11968   # C++ specific cases for pic, static, wl, etc.
11969   if test "$GXX" = yes; then
11970     lt_prog_compiler_wl_CXX='-Wl,'
11971     lt_prog_compiler_static_CXX='-static'
11972
11973     case $host_os in
11974     aix*)
11975       # All AIX code is PIC.
11976       if test "$host_cpu" = ia64; then
11977         # AIX 5 now supports IA64 processor
11978         lt_prog_compiler_static_CXX='-Bstatic'
11979       fi
11980       ;;
11981     amigaos*)
11982       # FIXME: we need at least 68020 code to build shared libraries, but
11983       # adding the `-m68020' flag to GCC prevents building anything better,
11984       # like `-m68040'.
11985       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11986       ;;
11987     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11988       # PIC is the default for these OSes.
11989       ;;
11990     mingw* | os2* | pw32*)
11991       # This hack is so that the source file can tell whether it is being
11992       # built for inclusion in a dll (and should export symbols for example).
11993       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11994       ;;
11995     darwin* | rhapsody*)
11996       # PIC is the default on this platform
11997       # Common symbols not allowed in MH_DYLIB files
11998       lt_prog_compiler_pic_CXX='-fno-common'
11999       ;;
12000     *djgpp*)
12001       # DJGPP does not support shared libraries at all
12002       lt_prog_compiler_pic_CXX=
12003       ;;
12004     interix3*)
12005       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12006       # Instead, we relocate shared libraries at runtime.
12007       ;;
12008     sysv4*MP*)
12009       if test -d /usr/nec; then
12010         lt_prog_compiler_pic_CXX=-Kconform_pic
12011       fi
12012       ;;
12013     hpux*)
12014       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12015       # not for PA HP-UX.
12016       case $host_cpu in
12017       hppa*64*|ia64*)
12018         ;;
12019       *)
12020         lt_prog_compiler_pic_CXX='-fPIC'
12021         ;;
12022       esac
12023       ;;
12024     *)
12025       lt_prog_compiler_pic_CXX='-fPIC'
12026       ;;
12027     esac
12028   else
12029     case $host_os in
12030       aix4* | aix5*)
12031         # All AIX code is PIC.
12032         if test "$host_cpu" = ia64; then
12033           # AIX 5 now supports IA64 processor
12034           lt_prog_compiler_static_CXX='-Bstatic'
12035         else
12036           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12037         fi
12038         ;;
12039       chorus*)
12040         case $cc_basename in
12041         cxch68*)
12042           # Green Hills C++ Compiler
12043           # _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"
12044           ;;
12045         esac
12046         ;;
12047        darwin*)
12048          # PIC is the default on this platform
12049          # Common symbols not allowed in MH_DYLIB files
12050          case $cc_basename in
12051            xlc*)
12052            lt_prog_compiler_pic_CXX='-qnocommon'
12053            lt_prog_compiler_wl_CXX='-Wl,'
12054            ;;
12055          esac
12056        ;;
12057       dgux*)
12058         case $cc_basename in
12059           ec++*)
12060             lt_prog_compiler_pic_CXX='-KPIC'
12061             ;;
12062           ghcx*)
12063             # Green Hills C++ Compiler
12064             lt_prog_compiler_pic_CXX='-pic'
12065             ;;
12066           *)
12067             ;;
12068         esac
12069         ;;
12070       freebsd* | dragonfly*)
12071         # FreeBSD uses GNU C++
12072         ;;
12073       hpux9* | hpux10* | hpux11*)
12074         case $cc_basename in
12075           CC*)
12076             lt_prog_compiler_wl_CXX='-Wl,'
12077             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12078             if test "$host_cpu" != ia64; then
12079               lt_prog_compiler_pic_CXX='+Z'
12080             fi
12081             ;;
12082           aCC*)
12083             lt_prog_compiler_wl_CXX='-Wl,'
12084             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12085             case $host_cpu in
12086             hppa*64*|ia64*)
12087               # +Z the default
12088               ;;
12089             *)
12090               lt_prog_compiler_pic_CXX='+Z'
12091               ;;
12092             esac
12093             ;;
12094           *)
12095             ;;
12096         esac
12097         ;;
12098       interix*)
12099         # This is c89, which is MS Visual C++ (no shared libs)
12100         # Anyone wants to do a port?
12101         ;;
12102       irix5* | irix6* | nonstopux*)
12103         case $cc_basename in
12104           CC*)
12105             lt_prog_compiler_wl_CXX='-Wl,'
12106             lt_prog_compiler_static_CXX='-non_shared'
12107             # CC pic flag -KPIC is the default.
12108             ;;
12109           *)
12110             ;;
12111         esac
12112         ;;
12113       linux* | k*bsd*-gnu)
12114         case $cc_basename in
12115           KCC*)
12116             # KAI C++ Compiler
12117             lt_prog_compiler_wl_CXX='--backend -Wl,'
12118             lt_prog_compiler_pic_CXX='-fPIC'
12119             ;;
12120           icpc* | ecpc*)
12121             # Intel C++
12122             lt_prog_compiler_wl_CXX='-Wl,'
12123             lt_prog_compiler_pic_CXX='-KPIC'
12124             lt_prog_compiler_static_CXX='-static'
12125             ;;
12126           pgCC*)
12127             # Portland Group C++ compiler.
12128             lt_prog_compiler_wl_CXX='-Wl,'
12129             lt_prog_compiler_pic_CXX='-fpic'
12130             lt_prog_compiler_static_CXX='-Bstatic'
12131             ;;
12132           cxx*)
12133             # Compaq C++
12134             # Make sure the PIC flag is empty.  It appears that all Alpha
12135             # Linux and Compaq Tru64 Unix objects are PIC.
12136             lt_prog_compiler_pic_CXX=
12137             lt_prog_compiler_static_CXX='-non_shared'
12138             ;;
12139           *)
12140             ;;
12141         esac
12142         ;;
12143       lynxos*)
12144         ;;
12145       m88k*)
12146         ;;
12147       mvs*)
12148         case $cc_basename in
12149           cxx*)
12150             lt_prog_compiler_pic_CXX='-W c,exportall'
12151             ;;
12152           *)
12153             ;;
12154         esac
12155         ;;
12156       netbsd* | netbsdelf*-gnu)
12157         ;;
12158       osf3* | osf4* | osf5*)
12159         case $cc_basename in
12160           KCC*)
12161             lt_prog_compiler_wl_CXX='--backend -Wl,'
12162             ;;
12163           RCC*)
12164             # Rational C++ 2.4.1
12165             lt_prog_compiler_pic_CXX='-pic'
12166             ;;
12167           cxx*)
12168             # Digital/Compaq C++
12169             lt_prog_compiler_wl_CXX='-Wl,'
12170             # Make sure the PIC flag is empty.  It appears that all Alpha
12171             # Linux and Compaq Tru64 Unix objects are PIC.
12172             lt_prog_compiler_pic_CXX=
12173             lt_prog_compiler_static_CXX='-non_shared'
12174             ;;
12175           *)
12176             ;;
12177         esac
12178         ;;
12179       psos*)
12180         ;;
12181       solaris*)
12182         case $cc_basename in
12183           CC*)
12184             # Sun C++ 4.2, 5.x and Centerline C++
12185             lt_prog_compiler_pic_CXX='-KPIC'
12186             lt_prog_compiler_static_CXX='-Bstatic'
12187             lt_prog_compiler_wl_CXX='-Qoption ld '
12188             ;;
12189           gcx*)
12190             # Green Hills C++ Compiler
12191             lt_prog_compiler_pic_CXX='-PIC'
12192             ;;
12193           *)
12194             ;;
12195         esac
12196         ;;
12197       sunos4*)
12198         case $cc_basename in
12199           CC*)
12200             # Sun C++ 4.x
12201             lt_prog_compiler_pic_CXX='-pic'
12202             lt_prog_compiler_static_CXX='-Bstatic'
12203             ;;
12204           lcc*)
12205             # Lucid
12206             lt_prog_compiler_pic_CXX='-pic'
12207             ;;
12208           *)
12209             ;;
12210         esac
12211         ;;
12212       tandem*)
12213         case $cc_basename in
12214           NCC*)
12215             # NonStop-UX NCC 3.20
12216             lt_prog_compiler_pic_CXX='-KPIC'
12217             ;;
12218           *)
12219             ;;
12220         esac
12221         ;;
12222       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12223         case $cc_basename in
12224           CC*)
12225             lt_prog_compiler_wl_CXX='-Wl,'
12226             lt_prog_compiler_pic_CXX='-KPIC'
12227             lt_prog_compiler_static_CXX='-Bstatic'
12228             ;;
12229         esac
12230         ;;
12231       vxworks*)
12232         ;;
12233       *)
12234         lt_prog_compiler_can_build_shared_CXX=no
12235         ;;
12236     esac
12237   fi
12238
12239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12240 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12241
12242 #
12243 # Check to make sure the PIC flag actually works.
12244 #
12245 if test -n "$lt_prog_compiler_pic_CXX"; then
12246
12247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12249 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   lt_prog_compiler_pic_works_CXX=no
12253   ac_outfile=conftest.$ac_objext
12254    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12255    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12256    # Insert the option either (1) after the last *FLAGS variable, or
12257    # (2) before a word containing "conftest.", or (3) at the end.
12258    # Note that $ac_compile itself does not contain backslashes and begins
12259    # with a dollar sign (not a hyphen), so the echo should work correctly.
12260    # The option is referenced via a variable to avoid confusing sed.
12261    lt_compile=`echo "$ac_compile" | $SED \
12262    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12263    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12264    -e 's:$: $lt_compiler_flag:'`
12265    (eval echo "\"\$as_me:12265: $lt_compile\"" >&5)
12266    (eval "$lt_compile" 2>conftest.err)
12267    ac_status=$?
12268    cat conftest.err >&5
12269    echo "$as_me:12269: \$? = $ac_status" >&5
12270    if (exit $ac_status) && test -s "$ac_outfile"; then
12271      # The compiler can only warn and ignore the option if not recognized
12272      # So say no if there are warnings other than the usual output.
12273      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12274      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12275      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12276        lt_prog_compiler_pic_works_CXX=yes
12277      fi
12278    fi
12279    $rm conftest*
12280
12281 fi
12282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12283 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12284
12285 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12286     case $lt_prog_compiler_pic_CXX in
12287      "" | " "*) ;;
12288      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12289      esac
12290 else
12291     lt_prog_compiler_pic_CXX=
12292      lt_prog_compiler_can_build_shared_CXX=no
12293 fi
12294
12295 fi
12296 case $host_os in
12297   # For platforms which do not support PIC, -DPIC is meaningless:
12298   *djgpp*)
12299     lt_prog_compiler_pic_CXX=
12300     ;;
12301   *)
12302     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12303     ;;
12304 esac
12305
12306 #
12307 # Check to make sure the static flag actually works.
12308 #
12309 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12312 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   lt_prog_compiler_static_works_CXX=no
12316    save_LDFLAGS="$LDFLAGS"
12317    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12318    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12319    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12320      # The linker can only warn and ignore the option if not recognized
12321      # So say no if there are warnings
12322      if test -s conftest.err; then
12323        # Append any errors to the config.log.
12324        cat conftest.err 1>&5
12325        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12326        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12327        if diff conftest.exp conftest.er2 >/dev/null; then
12328          lt_prog_compiler_static_works_CXX=yes
12329        fi
12330      else
12331        lt_prog_compiler_static_works_CXX=yes
12332      fi
12333    fi
12334    $rm conftest*
12335    LDFLAGS="$save_LDFLAGS"
12336
12337 fi
12338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12339 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12340
12341 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12342     :
12343 else
12344     lt_prog_compiler_static_CXX=
12345 fi
12346
12347
12348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12350 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12351   echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353   lt_cv_prog_compiler_c_o_CXX=no
12354    $rm -r conftest 2>/dev/null
12355    mkdir conftest
12356    cd conftest
12357    mkdir out
12358    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12359
12360    lt_compiler_flag="-o out/conftest2.$ac_objext"
12361    # Insert the option either (1) after the last *FLAGS variable, or
12362    # (2) before a word containing "conftest.", or (3) at the end.
12363    # Note that $ac_compile itself does not contain backslashes and begins
12364    # with a dollar sign (not a hyphen), so the echo should work correctly.
12365    lt_compile=`echo "$ac_compile" | $SED \
12366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12368    -e 's:$: $lt_compiler_flag:'`
12369    (eval echo "\"\$as_me:12369: $lt_compile\"" >&5)
12370    (eval "$lt_compile" 2>out/conftest.err)
12371    ac_status=$?
12372    cat out/conftest.err >&5
12373    echo "$as_me:12373: \$? = $ac_status" >&5
12374    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12375    then
12376      # The compiler can only warn and ignore the option if not recognized
12377      # So say no if there are warnings
12378      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12379      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12380      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12381        lt_cv_prog_compiler_c_o_CXX=yes
12382      fi
12383    fi
12384    chmod u+w . 2>&5
12385    $rm conftest*
12386    # SGI C++ compiler will create directory out/ii_files/ for
12387    # template instantiation
12388    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12389    $rm out/* && rmdir out
12390    cd ..
12391    rmdir conftest
12392    $rm conftest*
12393
12394 fi
12395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12397
12398
12399 hard_links="nottested"
12400 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12401   # do not overwrite the value of need_locks provided by the user
12402   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12404   hard_links=yes
12405   $rm conftest*
12406   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12407   touch conftest.a
12408   ln conftest.a conftest.b 2>&5 || hard_links=no
12409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12410   { echo "$as_me:$LINENO: result: $hard_links" >&5
12411 echo "${ECHO_T}$hard_links" >&6; }
12412   if test "$hard_links" = no; then
12413     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12415     need_locks=warn
12416   fi
12417 else
12418   need_locks=no
12419 fi
12420
12421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12423
12424   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12425   case $host_os in
12426   aix4* | aix5*)
12427     # If we're using GNU nm, then we don't want the "-C" option.
12428     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12429     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12430       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'
12431     else
12432       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'
12433     fi
12434     ;;
12435   pw32*)
12436     export_symbols_cmds_CXX="$ltdll_cmds"
12437   ;;
12438   cygwin* | mingw*)
12439     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'
12440   ;;
12441   linux* | k*bsd*-gnu)
12442     link_all_deplibs_CXX=no
12443   ;;
12444   *)
12445     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12446   ;;
12447   esac
12448
12449 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12450 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12451 test "$ld_shlibs_CXX" = no && can_build_shared=no
12452
12453 #
12454 # Do we need to explicitly link libc?
12455 #
12456 case "x$archive_cmds_need_lc_CXX" in
12457 x|xyes)
12458   # Assume -lc should be added
12459   archive_cmds_need_lc_CXX=yes
12460
12461   if test "$enable_shared" = yes && test "$GCC" = yes; then
12462     case $archive_cmds_CXX in
12463     *'~'*)
12464       # FIXME: we may have to deal with multi-command sequences.
12465       ;;
12466     '$CC '*)
12467       # Test whether the compiler implicitly links with -lc since on some
12468       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12469       # to ld, don't add -lc before -lgcc.
12470       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12471 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12472       $rm conftest*
12473       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12474
12475       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } 2>conftest.err; then
12480         soname=conftest
12481         lib=conftest
12482         libobjs=conftest.$ac_objext
12483         deplibs=
12484         wl=$lt_prog_compiler_wl_CXX
12485         pic_flag=$lt_prog_compiler_pic_CXX
12486         compiler_flags=-v
12487         linker_flags=-v
12488         verstring=
12489         output_objdir=.
12490         libname=conftest
12491         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12492         allow_undefined_flag_CXX=
12493         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12494   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); }
12498         then
12499           archive_cmds_need_lc_CXX=no
12500         else
12501           archive_cmds_need_lc_CXX=yes
12502         fi
12503         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12504       else
12505         cat conftest.err 1>&5
12506       fi
12507       $rm conftest*
12508       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12509 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12510       ;;
12511     esac
12512   fi
12513   ;;
12514 esac
12515
12516 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12517 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12518 library_names_spec=
12519 libname_spec='lib$name'
12520 soname_spec=
12521 shrext_cmds=".so"
12522 postinstall_cmds=
12523 postuninstall_cmds=
12524 finish_cmds=
12525 finish_eval=
12526 shlibpath_var=
12527 shlibpath_overrides_runpath=unknown
12528 version_type=none
12529 dynamic_linker="$host_os ld.so"
12530 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12531 if test "$GCC" = yes; then
12532   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12533   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12534     # if the path contains ";" then we assume it to be the separator
12535     # otherwise default to the standard path separator (i.e. ":") - it is
12536     # assumed that no part of a normal pathname contains ";" but that should
12537     # okay in the real world where ";" in dirpaths is itself problematic.
12538     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12539   else
12540     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12541   fi
12542 else
12543   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12544 fi
12545 need_lib_prefix=unknown
12546 hardcode_into_libs=no
12547
12548 # when you set need_version to no, make sure it does not cause -set_version
12549 # flags to be left without arguments
12550 need_version=unknown
12551
12552 case $host_os in
12553 aix3*)
12554   version_type=linux
12555   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12556   shlibpath_var=LIBPATH
12557
12558   # AIX 3 has no versioning support, so we append a major version to the name.
12559   soname_spec='${libname}${release}${shared_ext}$major'
12560   ;;
12561
12562 aix4* | aix5*)
12563   version_type=linux
12564   need_lib_prefix=no
12565   need_version=no
12566   hardcode_into_libs=yes
12567   if test "$host_cpu" = ia64; then
12568     # AIX 5 supports IA64
12569     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12570     shlibpath_var=LD_LIBRARY_PATH
12571   else
12572     # With GCC up to 2.95.x, collect2 would create an import file
12573     # for dependence libraries.  The import file would start with
12574     # the line `#! .'.  This would cause the generated library to
12575     # depend on `.', always an invalid library.  This was fixed in
12576     # development snapshots of GCC prior to 3.0.
12577     case $host_os in
12578       aix4 | aix4.[01] | aix4.[01].*)
12579       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12580            echo ' yes '
12581            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12582         :
12583       else
12584         can_build_shared=no
12585       fi
12586       ;;
12587     esac
12588     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12589     # soname into executable. Probably we can add versioning support to
12590     # collect2, so additional links can be useful in future.
12591     if test "$aix_use_runtimelinking" = yes; then
12592       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12593       # instead of lib<name>.a to let people know that these are not
12594       # typical AIX shared libraries.
12595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12596     else
12597       # We preserve .a as extension for shared libraries through AIX4.2
12598       # and later when we are not doing run time linking.
12599       library_names_spec='${libname}${release}.a $libname.a'
12600       soname_spec='${libname}${release}${shared_ext}$major'
12601     fi
12602     shlibpath_var=LIBPATH
12603   fi
12604   ;;
12605
12606 amigaos*)
12607   library_names_spec='$libname.ixlibrary $libname.a'
12608   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12609   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'
12610   ;;
12611
12612 beos*)
12613   library_names_spec='${libname}${shared_ext}'
12614   dynamic_linker="$host_os ld.so"
12615   shlibpath_var=LIBRARY_PATH
12616   ;;
12617
12618 bsdi[45]*)
12619   version_type=linux
12620   need_version=no
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622   soname_spec='${libname}${release}${shared_ext}$major'
12623   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12626   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12627   # the default ld.so.conf also contains /usr/contrib/lib and
12628   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12629   # libtool to hard-code these into programs
12630   ;;
12631
12632 cygwin* | mingw* | pw32*)
12633   version_type=windows
12634   shrext_cmds=".dll"
12635   need_version=no
12636   need_lib_prefix=no
12637
12638   case $GCC,$host_os in
12639   yes,cygwin* | yes,mingw* | yes,pw32*)
12640     library_names_spec='$libname.dll.a'
12641     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12642     postinstall_cmds='base_file=`basename \${file}`~
12643       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12644       dldir=$destdir/`dirname \$dlpath`~
12645       test -d \$dldir || mkdir -p \$dldir~
12646       $install_prog $dir/$dlname \$dldir/$dlname~
12647       chmod a+x \$dldir/$dlname'
12648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12649       dlpath=$dir/\$dldll~
12650        $rm \$dlpath'
12651     shlibpath_overrides_runpath=yes
12652
12653     case $host_os in
12654     cygwin*)
12655       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12656       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12657       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12658       ;;
12659     mingw*)
12660       # MinGW DLLs use traditional 'lib' prefix
12661       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12662       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12663       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12664         # It is most probably a Windows format PATH printed by
12665         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12666         # path with ; separators, and with drive letters. We can handle the
12667         # drive letters (cygwin fileutils understands them), so leave them,
12668         # especially as we might pass files found there to a mingw objdump,
12669         # which wouldn't understand a cygwinified path. Ahh.
12670         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12671       else
12672         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12673       fi
12674       ;;
12675     pw32*)
12676       # pw32 DLLs use 'pw' prefix rather than 'lib'
12677       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12678       ;;
12679     esac
12680     ;;
12681
12682   *)
12683     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12684     ;;
12685   esac
12686   dynamic_linker='Win32 ld.exe'
12687   # FIXME: first we should search . and the directory the executable is in
12688   shlibpath_var=PATH
12689   ;;
12690
12691 darwin* | rhapsody*)
12692   dynamic_linker="$host_os dyld"
12693   version_type=darwin
12694   need_lib_prefix=no
12695   need_version=no
12696   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12697   soname_spec='${libname}${release}${major}$shared_ext'
12698   shlibpath_overrides_runpath=yes
12699   shlibpath_var=DYLD_LIBRARY_PATH
12700   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12701   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12702   if test "$GCC" = yes; then
12703     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"`
12704   else
12705     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12706   fi
12707   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12708   ;;
12709
12710 dgux*)
12711   version_type=linux
12712   need_lib_prefix=no
12713   need_version=no
12714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12715   soname_spec='${libname}${release}${shared_ext}$major'
12716   shlibpath_var=LD_LIBRARY_PATH
12717   ;;
12718
12719 freebsd1*)
12720   dynamic_linker=no
12721   ;;
12722
12723 freebsd* | dragonfly*)
12724   # DragonFly does not have aout.  When/if they implement a new
12725   # versioning mechanism, adjust this.
12726   if test -x /usr/bin/objformat; then
12727     objformat=`/usr/bin/objformat`
12728   else
12729     case $host_os in
12730     freebsd[123]*) objformat=aout ;;
12731     *) objformat=elf ;;
12732     esac
12733   fi
12734   version_type=freebsd-$objformat
12735   case $version_type in
12736     freebsd-elf*)
12737       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12738       need_version=no
12739       need_lib_prefix=no
12740       ;;
12741     freebsd-*)
12742       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12743       need_version=yes
12744       ;;
12745   esac
12746   shlibpath_var=LD_LIBRARY_PATH
12747   case $host_os in
12748   freebsd2*)
12749     shlibpath_overrides_runpath=yes
12750     ;;
12751   freebsd3.[01]* | freebsdelf3.[01]*)
12752     shlibpath_overrides_runpath=yes
12753     hardcode_into_libs=yes
12754     ;;
12755   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12756   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12757     shlibpath_overrides_runpath=no
12758     hardcode_into_libs=yes
12759     ;;
12760   freebsd*) # from 4.6 on
12761     shlibpath_overrides_runpath=yes
12762     hardcode_into_libs=yes
12763     ;;
12764   esac
12765   ;;
12766
12767 gnu*)
12768   version_type=linux
12769   need_lib_prefix=no
12770   need_version=no
12771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12772   soname_spec='${libname}${release}${shared_ext}$major'
12773   shlibpath_var=LD_LIBRARY_PATH
12774   hardcode_into_libs=yes
12775   ;;
12776
12777 hpux9* | hpux10* | hpux11*)
12778   # Give a soname corresponding to the major version so that dld.sl refuses to
12779   # link against other versions.
12780   version_type=sunos
12781   need_lib_prefix=no
12782   need_version=no
12783   case $host_cpu in
12784   ia64*)
12785     shrext_cmds='.so'
12786     hardcode_into_libs=yes
12787     dynamic_linker="$host_os dld.so"
12788     shlibpath_var=LD_LIBRARY_PATH
12789     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791     soname_spec='${libname}${release}${shared_ext}$major'
12792     if test "X$HPUX_IA64_MODE" = X32; then
12793       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12794     else
12795       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12796     fi
12797     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12798     ;;
12799    hppa*64*)
12800      shrext_cmds='.sl'
12801      hardcode_into_libs=yes
12802      dynamic_linker="$host_os dld.sl"
12803      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12804      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12805      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806      soname_spec='${libname}${release}${shared_ext}$major'
12807      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12808      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12809      ;;
12810    *)
12811     shrext_cmds='.sl'
12812     dynamic_linker="$host_os dld.sl"
12813     shlibpath_var=SHLIB_PATH
12814     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816     soname_spec='${libname}${release}${shared_ext}$major'
12817     ;;
12818   esac
12819   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12820   postinstall_cmds='chmod 555 $lib'
12821   ;;
12822
12823 interix3*)
12824   version_type=linux
12825   need_lib_prefix=no
12826   need_version=no
12827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12828   soname_spec='${libname}${release}${shared_ext}$major'
12829   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12830   shlibpath_var=LD_LIBRARY_PATH
12831   shlibpath_overrides_runpath=no
12832   hardcode_into_libs=yes
12833   ;;
12834
12835 irix5* | irix6* | nonstopux*)
12836   case $host_os in
12837     nonstopux*) version_type=nonstopux ;;
12838     *)
12839         if test "$lt_cv_prog_gnu_ld" = yes; then
12840                 version_type=linux
12841         else
12842                 version_type=irix
12843         fi ;;
12844   esac
12845   need_lib_prefix=no
12846   need_version=no
12847   soname_spec='${libname}${release}${shared_ext}$major'
12848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12849   case $host_os in
12850   irix5* | nonstopux*)
12851     libsuff= shlibsuff=
12852     ;;
12853   *)
12854     case $LD in # libtool.m4 will add one of these switches to LD
12855     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12856       libsuff= shlibsuff= libmagic=32-bit;;
12857     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12858       libsuff=32 shlibsuff=N32 libmagic=N32;;
12859     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12860       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12861     *) libsuff= shlibsuff= libmagic=never-match;;
12862     esac
12863     ;;
12864   esac
12865   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12866   shlibpath_overrides_runpath=no
12867   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12868   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12869   hardcode_into_libs=yes
12870   ;;
12871
12872 # No shared lib support for Linux oldld, aout, or coff.
12873 linux*oldld* | linux*aout* | linux*coff*)
12874   dynamic_linker=no
12875   ;;
12876
12877 # This must be Linux ELF.
12878 linux* | k*bsd*-gnu)
12879   version_type=linux
12880   need_lib_prefix=no
12881   need_version=no
12882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12883   soname_spec='${libname}${release}${shared_ext}$major'
12884   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12885   shlibpath_var=LD_LIBRARY_PATH
12886   shlibpath_overrides_runpath=no
12887   # This implies no fast_install, which is unacceptable.
12888   # Some rework will be needed to allow for fast_install
12889   # before this can be enabled.
12890   hardcode_into_libs=yes
12891
12892   # Append ld.so.conf contents to the search path
12893   if test -f /etc/ld.so.conf; then
12894     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' ' '`
12895     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12896   fi
12897
12898   # We used to test for /lib/ld.so.1 and disable shared libraries on
12899   # powerpc, because MkLinux only supported shared libraries with the
12900   # GNU dynamic linker.  Since this was broken with cross compilers,
12901   # most powerpc-linux boxes support dynamic linking these days and
12902   # people can always --disable-shared, the test was removed, and we
12903   # assume the GNU/Linux dynamic linker is in use.
12904   dynamic_linker='GNU/Linux ld.so'
12905   ;;
12906
12907 netbsdelf*-gnu)
12908   version_type=linux
12909   need_lib_prefix=no
12910   need_version=no
12911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12912   soname_spec='${libname}${release}${shared_ext}$major'
12913   shlibpath_var=LD_LIBRARY_PATH
12914   shlibpath_overrides_runpath=no
12915   hardcode_into_libs=yes
12916   dynamic_linker='NetBSD ld.elf_so'
12917   ;;
12918
12919 netbsd*)
12920   version_type=sunos
12921   need_lib_prefix=no
12922   need_version=no
12923   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12925     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12926     dynamic_linker='NetBSD (a.out) ld.so'
12927   else
12928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12929     soname_spec='${libname}${release}${shared_ext}$major'
12930     dynamic_linker='NetBSD ld.elf_so'
12931   fi
12932   shlibpath_var=LD_LIBRARY_PATH
12933   shlibpath_overrides_runpath=yes
12934   hardcode_into_libs=yes
12935   ;;
12936
12937 newsos6)
12938   version_type=linux
12939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12940   shlibpath_var=LD_LIBRARY_PATH
12941   shlibpath_overrides_runpath=yes
12942   ;;
12943
12944 nto-qnx*)
12945   version_type=linux
12946   need_lib_prefix=no
12947   need_version=no
12948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949   soname_spec='${libname}${release}${shared_ext}$major'
12950   shlibpath_var=LD_LIBRARY_PATH
12951   shlibpath_overrides_runpath=yes
12952   ;;
12953
12954 openbsd*)
12955   version_type=sunos
12956   sys_lib_dlsearch_path_spec="/usr/lib"
12957   need_lib_prefix=no
12958   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12959   case $host_os in
12960     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12961     *)                         need_version=no  ;;
12962   esac
12963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12964   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12965   shlibpath_var=LD_LIBRARY_PATH
12966   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12967     case $host_os in
12968       openbsd2.[89] | openbsd2.[89].*)
12969         shlibpath_overrides_runpath=no
12970         ;;
12971       *)
12972         shlibpath_overrides_runpath=yes
12973         ;;
12974       esac
12975   else
12976     shlibpath_overrides_runpath=yes
12977   fi
12978   ;;
12979
12980 os2*)
12981   libname_spec='$name'
12982   shrext_cmds=".dll"
12983   need_lib_prefix=no
12984   library_names_spec='$libname${shared_ext} $libname.a'
12985   dynamic_linker='OS/2 ld.exe'
12986   shlibpath_var=LIBPATH
12987   ;;
12988
12989 osf3* | osf4* | osf5*)
12990   version_type=osf
12991   need_lib_prefix=no
12992   need_version=no
12993   soname_spec='${libname}${release}${shared_ext}$major'
12994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995   shlibpath_var=LD_LIBRARY_PATH
12996   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12997   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12998   ;;
12999
13000 solaris*)
13001   version_type=linux
13002   need_lib_prefix=no
13003   need_version=no
13004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005   soname_spec='${libname}${release}${shared_ext}$major'
13006   shlibpath_var=LD_LIBRARY_PATH
13007   shlibpath_overrides_runpath=yes
13008   hardcode_into_libs=yes
13009   # ldd complains unless libraries are executable
13010   postinstall_cmds='chmod +x $lib'
13011   ;;
13012
13013 sunos4*)
13014   version_type=sunos
13015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13017   shlibpath_var=LD_LIBRARY_PATH
13018   shlibpath_overrides_runpath=yes
13019   if test "$with_gnu_ld" = yes; then
13020     need_lib_prefix=no
13021   fi
13022   need_version=yes
13023   ;;
13024
13025 sysv4 | sysv4.3*)
13026   version_type=linux
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028   soname_spec='${libname}${release}${shared_ext}$major'
13029   shlibpath_var=LD_LIBRARY_PATH
13030   case $host_vendor in
13031     sni)
13032       shlibpath_overrides_runpath=no
13033       need_lib_prefix=no
13034       export_dynamic_flag_spec='${wl}-Blargedynsym'
13035       runpath_var=LD_RUN_PATH
13036       ;;
13037     siemens)
13038       need_lib_prefix=no
13039       ;;
13040     motorola)
13041       need_lib_prefix=no
13042       need_version=no
13043       shlibpath_overrides_runpath=no
13044       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13045       ;;
13046   esac
13047   ;;
13048
13049 sysv4*MP*)
13050   if test -d /usr/nec ;then
13051     version_type=linux
13052     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13053     soname_spec='$libname${shared_ext}.$major'
13054     shlibpath_var=LD_LIBRARY_PATH
13055   fi
13056   ;;
13057
13058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13059   version_type=freebsd-elf
13060   need_lib_prefix=no
13061   need_version=no
13062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13063   soname_spec='${libname}${release}${shared_ext}$major'
13064   shlibpath_var=LD_LIBRARY_PATH
13065   hardcode_into_libs=yes
13066   if test "$with_gnu_ld" = yes; then
13067     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13068     shlibpath_overrides_runpath=no
13069   else
13070     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13071     shlibpath_overrides_runpath=yes
13072     case $host_os in
13073       sco3.2v5*)
13074         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13075         ;;
13076     esac
13077   fi
13078   sys_lib_dlsearch_path_spec='/usr/lib'
13079   ;;
13080
13081 uts4*)
13082   version_type=linux
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084   soname_spec='${libname}${release}${shared_ext}$major'
13085   shlibpath_var=LD_LIBRARY_PATH
13086   ;;
13087
13088 *)
13089   dynamic_linker=no
13090   ;;
13091 esac
13092 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13093 echo "${ECHO_T}$dynamic_linker" >&6; }
13094 test "$dynamic_linker" = no && can_build_shared=no
13095
13096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13097 if test "$GCC" = yes; then
13098   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13099 fi
13100
13101 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13103 hardcode_action_CXX=
13104 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13105    test -n "$runpath_var_CXX" || \
13106    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13107
13108   # We can hardcode non-existant directories.
13109   if test "$hardcode_direct_CXX" != no &&
13110      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13111      # have to relink, otherwise we might link with an installed library
13112      # when we should be linking with a yet-to-be-installed one
13113      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13114      test "$hardcode_minus_L_CXX" != no; then
13115     # Linking always hardcodes the temporary library directory.
13116     hardcode_action_CXX=relink
13117   else
13118     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13119     hardcode_action_CXX=immediate
13120   fi
13121 else
13122   # We cannot hardcode anything, or else we can only hardcode existing
13123   # directories.
13124   hardcode_action_CXX=unsupported
13125 fi
13126 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13127 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13128
13129 if test "$hardcode_action_CXX" = relink; then
13130   # Fast installation is not supported
13131   enable_fast_install=no
13132 elif test "$shlibpath_overrides_runpath" = yes ||
13133      test "$enable_shared" = no; then
13134   # Fast installation is not necessary
13135   enable_fast_install=needless
13136 fi
13137
13138
13139 # The else clause should only fire when bootstrapping the
13140 # libtool distribution, otherwise you forgot to ship ltmain.sh
13141 # with your package, and you will get complaints that there are
13142 # no rules to generate ltmain.sh.
13143 if test -f "$ltmain"; then
13144   # See if we are running on zsh, and set the options which allow our commands through
13145   # without removal of \ escapes.
13146   if test -n "${ZSH_VERSION+set}" ; then
13147     setopt NO_GLOB_SUBST
13148   fi
13149   # Now quote all the things that may contain metacharacters while being
13150   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13151   # variables and quote the copies for generation of the libtool script.
13152   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13153     SED SHELL STRIP \
13154     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13155     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13156     deplibs_check_method reload_flag reload_cmds need_locks \
13157     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13158     lt_cv_sys_global_symbol_to_c_name_address \
13159     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13160     old_postinstall_cmds old_postuninstall_cmds \
13161     compiler_CXX \
13162     CC_CXX \
13163     LD_CXX \
13164     lt_prog_compiler_wl_CXX \
13165     lt_prog_compiler_pic_CXX \
13166     lt_prog_compiler_static_CXX \
13167     lt_prog_compiler_no_builtin_flag_CXX \
13168     export_dynamic_flag_spec_CXX \
13169     thread_safe_flag_spec_CXX \
13170     whole_archive_flag_spec_CXX \
13171     enable_shared_with_static_runtimes_CXX \
13172     old_archive_cmds_CXX \
13173     old_archive_from_new_cmds_CXX \
13174     predep_objects_CXX \
13175     postdep_objects_CXX \
13176     predeps_CXX \
13177     postdeps_CXX \
13178     compiler_lib_search_path_CXX \
13179     archive_cmds_CXX \
13180     archive_expsym_cmds_CXX \
13181     postinstall_cmds_CXX \
13182     postuninstall_cmds_CXX \
13183     old_archive_from_expsyms_cmds_CXX \
13184     allow_undefined_flag_CXX \
13185     no_undefined_flag_CXX \
13186     export_symbols_cmds_CXX \
13187     hardcode_libdir_flag_spec_CXX \
13188     hardcode_libdir_flag_spec_ld_CXX \
13189     hardcode_libdir_separator_CXX \
13190     hardcode_automatic_CXX \
13191     module_cmds_CXX \
13192     module_expsym_cmds_CXX \
13193     lt_cv_prog_compiler_c_o_CXX \
13194     exclude_expsyms_CXX \
13195     include_expsyms_CXX; do
13196
13197     case $var in
13198     old_archive_cmds_CXX | \
13199     old_archive_from_new_cmds_CXX | \
13200     archive_cmds_CXX | \
13201     archive_expsym_cmds_CXX | \
13202     module_cmds_CXX | \
13203     module_expsym_cmds_CXX | \
13204     old_archive_from_expsyms_cmds_CXX | \
13205     export_symbols_cmds_CXX | \
13206     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13207     postinstall_cmds | postuninstall_cmds | \
13208     old_postinstall_cmds | old_postuninstall_cmds | \
13209     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13210       # Double-quote double-evaled strings.
13211       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13212       ;;
13213     *)
13214       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13215       ;;
13216     esac
13217   done
13218
13219   case $lt_echo in
13220   *'\$0 --fallback-echo"')
13221     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13222     ;;
13223   esac
13224
13225 cfgfile="$ofile"
13226
13227   cat <<__EOF__ >> "$cfgfile"
13228 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13229
13230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13231
13232 # Shell to use when invoking shell scripts.
13233 SHELL=$lt_SHELL
13234
13235 # Whether or not to build shared libraries.
13236 build_libtool_libs=$enable_shared
13237
13238 # Whether or not to build static libraries.
13239 build_old_libs=$enable_static
13240
13241 # Whether or not to add -lc for building shared libraries.
13242 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13243
13244 # Whether or not to disallow shared libs when runtime libs are static
13245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13246
13247 # Whether or not to optimize for fast installation.
13248 fast_install=$enable_fast_install
13249
13250 # The host system.
13251 host_alias=$host_alias
13252 host=$host
13253 host_os=$host_os
13254
13255 # The build system.
13256 build_alias=$build_alias
13257 build=$build
13258 build_os=$build_os
13259
13260 # An echo program that does not interpret backslashes.
13261 echo=$lt_echo
13262
13263 # The archiver.
13264 AR=$lt_AR
13265 AR_FLAGS=$lt_AR_FLAGS
13266
13267 # A C compiler.
13268 LTCC=$lt_LTCC
13269
13270 # LTCC compiler flags.
13271 LTCFLAGS=$lt_LTCFLAGS
13272
13273 # A language-specific compiler.
13274 CC=$lt_compiler_CXX
13275
13276 # Is the compiler the GNU C compiler?
13277 with_gcc=$GCC_CXX
13278
13279 # An ERE matcher.
13280 EGREP=$lt_EGREP
13281
13282 # The linker used to build libraries.
13283 LD=$lt_LD_CXX
13284
13285 # Whether we need hard or soft links.
13286 LN_S=$lt_LN_S
13287
13288 # A BSD-compatible nm program.
13289 NM=$lt_NM
13290
13291 # A symbol stripping program
13292 STRIP=$lt_STRIP
13293
13294 # Used to examine libraries when file_magic_cmd begins "file"
13295 MAGIC_CMD=$MAGIC_CMD
13296
13297 # Used on cygwin: DLL creation program.
13298 DLLTOOL="$DLLTOOL"
13299
13300 # Used on cygwin: object dumper.
13301 OBJDUMP="$OBJDUMP"
13302
13303 # Used on cygwin: assembler.
13304 AS="$AS"
13305
13306 # The name of the directory that contains temporary libtool files.
13307 objdir=$objdir
13308
13309 # How to create reloadable object files.
13310 reload_flag=$lt_reload_flag
13311 reload_cmds=$lt_reload_cmds
13312
13313 # How to pass a linker flag through the compiler.
13314 wl=$lt_lt_prog_compiler_wl_CXX
13315
13316 # Object file suffix (normally "o").
13317 objext="$ac_objext"
13318
13319 # Old archive suffix (normally "a").
13320 libext="$libext"
13321
13322 # Shared library suffix (normally ".so").
13323 shrext_cmds='$shrext_cmds'
13324
13325 # Executable file suffix (normally "").
13326 exeext="$exeext"
13327
13328 # Additional compiler flags for building library objects.
13329 pic_flag=$lt_lt_prog_compiler_pic_CXX
13330 pic_mode=$pic_mode
13331
13332 # What is the maximum length of a command?
13333 max_cmd_len=$lt_cv_sys_max_cmd_len
13334
13335 # Does compiler simultaneously support -c and -o options?
13336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13337
13338 # Must we lock files when doing compilation?
13339 need_locks=$lt_need_locks
13340
13341 # Do we need the lib prefix for modules?
13342 need_lib_prefix=$need_lib_prefix
13343
13344 # Do we need a version for libraries?
13345 need_version=$need_version
13346
13347 # Whether dlopen is supported.
13348 dlopen_support=$enable_dlopen
13349
13350 # Whether dlopen of programs is supported.
13351 dlopen_self=$enable_dlopen_self
13352
13353 # Whether dlopen of statically linked programs is supported.
13354 dlopen_self_static=$enable_dlopen_self_static
13355
13356 # Compiler flag to prevent dynamic linking.
13357 link_static_flag=$lt_lt_prog_compiler_static_CXX
13358
13359 # Compiler flag to turn off builtin functions.
13360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13361
13362 # Compiler flag to allow reflexive dlopens.
13363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13364
13365 # Compiler flag to generate shared objects directly from archives.
13366 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13367
13368 # Compiler flag to generate thread-safe objects.
13369 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13370
13371 # Library versioning type.
13372 version_type=$version_type
13373
13374 # Format of library name prefix.
13375 libname_spec=$lt_libname_spec
13376
13377 # List of archive names.  First name is the real one, the rest are links.
13378 # The last name is the one that the linker finds with -lNAME.
13379 library_names_spec=$lt_library_names_spec
13380
13381 # The coded name of the library, if different from the real name.
13382 soname_spec=$lt_soname_spec
13383
13384 # Commands used to build and install an old-style archive.
13385 RANLIB=$lt_RANLIB
13386 old_archive_cmds=$lt_old_archive_cmds_CXX
13387 old_postinstall_cmds=$lt_old_postinstall_cmds
13388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13389
13390 # Create an old-style archive from a shared archive.
13391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13392
13393 # Create a temporary old-style archive to link instead of a shared archive.
13394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13395
13396 # Commands used to build and install a shared archive.
13397 archive_cmds=$lt_archive_cmds_CXX
13398 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13399 postinstall_cmds=$lt_postinstall_cmds
13400 postuninstall_cmds=$lt_postuninstall_cmds
13401
13402 # Commands used to build a loadable module (assumed same as above if empty)
13403 module_cmds=$lt_module_cmds_CXX
13404 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13405
13406 # Commands to strip libraries.
13407 old_striplib=$lt_old_striplib
13408 striplib=$lt_striplib
13409
13410 # Dependencies to place before the objects being linked to create a
13411 # shared library.
13412 predep_objects=$lt_predep_objects_CXX
13413
13414 # Dependencies to place after the objects being linked to create a
13415 # shared library.
13416 postdep_objects=$lt_postdep_objects_CXX
13417
13418 # Dependencies to place before the objects being linked to create a
13419 # shared library.
13420 predeps=$lt_predeps_CXX
13421
13422 # Dependencies to place after the objects being linked to create a
13423 # shared library.
13424 postdeps=$lt_postdeps_CXX
13425
13426 # The library search path used internally by the compiler when linking
13427 # a shared library.
13428 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13429
13430 # Method to check whether dependent libraries are shared objects.
13431 deplibs_check_method=$lt_deplibs_check_method
13432
13433 # Command to use when deplibs_check_method == file_magic.
13434 file_magic_cmd=$lt_file_magic_cmd
13435
13436 # Flag that allows shared libraries with undefined symbols to be built.
13437 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13438
13439 # Flag that forces no undefined symbols.
13440 no_undefined_flag=$lt_no_undefined_flag_CXX
13441
13442 # Commands used to finish a libtool library installation in a directory.
13443 finish_cmds=$lt_finish_cmds
13444
13445 # Same as above, but a single script fragment to be evaled but not shown.
13446 finish_eval=$lt_finish_eval
13447
13448 # Take the output of nm and produce a listing of raw symbols and C names.
13449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13450
13451 # Transform the output of nm in a proper C declaration
13452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13453
13454 # Transform the output of nm in a C name address pair
13455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13456
13457 # This is the shared library runtime path variable.
13458 runpath_var=$runpath_var
13459
13460 # This is the shared library path variable.
13461 shlibpath_var=$shlibpath_var
13462
13463 # Is shlibpath searched before the hard-coded library search path?
13464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13465
13466 # How to hardcode a shared library path into an executable.
13467 hardcode_action=$hardcode_action_CXX
13468
13469 # Whether we should hardcode library paths into libraries.
13470 hardcode_into_libs=$hardcode_into_libs
13471
13472 # Flag to hardcode \$libdir into a binary during linking.
13473 # This must work even if \$libdir does not exist.
13474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13475
13476 # If ld is used when linking, flag to hardcode \$libdir into
13477 # a binary during linking. This must work even if \$libdir does
13478 # not exist.
13479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13480
13481 # Whether we need a single -rpath flag with a separated argument.
13482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13483
13484 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13485 # resulting binary.
13486 hardcode_direct=$hardcode_direct_CXX
13487
13488 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13489 # resulting binary.
13490 hardcode_minus_L=$hardcode_minus_L_CXX
13491
13492 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13493 # the resulting binary.
13494 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13495
13496 # Set to yes if building a shared library automatically hardcodes DIR into the library
13497 # and all subsequent libraries and executables linked against it.
13498 hardcode_automatic=$hardcode_automatic_CXX
13499
13500 # Variables whose values should be saved in libtool wrapper scripts and
13501 # restored at relink time.
13502 variables_saved_for_relink="$variables_saved_for_relink"
13503
13504 # Whether libtool must link a program against all its dependency libraries.
13505 link_all_deplibs=$link_all_deplibs_CXX
13506
13507 # Compile-time system search path for libraries
13508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13509
13510 # Run-time system search path for libraries
13511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13512
13513 # Fix the shell variable \$srcfile for the compiler.
13514 fix_srcfile_path="$fix_srcfile_path_CXX"
13515
13516 # Set to yes if exported symbols are required.
13517 always_export_symbols=$always_export_symbols_CXX
13518
13519 # The commands to list exported symbols.
13520 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13521
13522 # The commands to extract the exported symbol list from a shared archive.
13523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13524
13525 # Symbols that should not be listed in the preloaded symbols.
13526 exclude_expsyms=$lt_exclude_expsyms_CXX
13527
13528 # Symbols that must always be exported.
13529 include_expsyms=$lt_include_expsyms_CXX
13530
13531 # ### END LIBTOOL TAG CONFIG: $tagname
13532
13533 __EOF__
13534
13535
13536 else
13537   # If there is no Makefile yet, we rely on a make rule to execute
13538   # `config.status --recheck' to rerun these tests and create the
13539   # libtool script then.
13540   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13541   if test -f "$ltmain_in"; then
13542     test -f Makefile && make "$ltmain"
13543   fi
13544 fi
13545
13546
13547 ac_ext=c
13548 ac_cpp='$CPP $CPPFLAGS'
13549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13552
13553 CC=$lt_save_CC
13554 LDCXX=$LD
13555 LD=$lt_save_LD
13556 GCC=$lt_save_GCC
13557 with_gnu_ldcxx=$with_gnu_ld
13558 with_gnu_ld=$lt_save_with_gnu_ld
13559 lt_cv_path_LDCXX=$lt_cv_path_LD
13560 lt_cv_path_LD=$lt_save_path_LD
13561 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13562 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13563
13564         else
13565           tagname=""
13566         fi
13567         ;;
13568
13569       F77)
13570         if test -n "$F77" && test "X$F77" != "Xno"; then
13571
13572 ac_ext=f
13573 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13574 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13576
13577
13578 archive_cmds_need_lc_F77=no
13579 allow_undefined_flag_F77=
13580 always_export_symbols_F77=no
13581 archive_expsym_cmds_F77=
13582 export_dynamic_flag_spec_F77=
13583 hardcode_direct_F77=no
13584 hardcode_libdir_flag_spec_F77=
13585 hardcode_libdir_flag_spec_ld_F77=
13586 hardcode_libdir_separator_F77=
13587 hardcode_minus_L_F77=no
13588 hardcode_automatic_F77=no
13589 module_cmds_F77=
13590 module_expsym_cmds_F77=
13591 link_all_deplibs_F77=unknown
13592 old_archive_cmds_F77=$old_archive_cmds
13593 no_undefined_flag_F77=
13594 whole_archive_flag_spec_F77=
13595 enable_shared_with_static_runtimes_F77=no
13596
13597 # Source file extension for f77 test sources.
13598 ac_ext=f
13599
13600 # Object file extension for compiled f77 test sources.
13601 objext=o
13602 objext_F77=$objext
13603
13604 # Code to be used in simple compile tests
13605 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13606
13607 # Code to be used in simple link tests
13608 lt_simple_link_test_code="      program t\n      end\n"
13609
13610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13611
13612 # If no C compiler was specified, use CC.
13613 LTCC=${LTCC-"$CC"}
13614
13615 # If no C compiler flags were specified, use CFLAGS.
13616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13617
13618 # Allow CC to be a program name with arguments.
13619 compiler=$CC
13620
13621
13622 # save warnings/boilerplate of simple test code
13623 ac_outfile=conftest.$ac_objext
13624 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13626 _lt_compiler_boilerplate=`cat conftest.err`
13627 $rm conftest*
13628
13629 ac_outfile=conftest.$ac_objext
13630 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13632 _lt_linker_boilerplate=`cat conftest.err`
13633 $rm conftest*
13634
13635
13636 # Allow CC to be a program name with arguments.
13637 lt_save_CC="$CC"
13638 CC=${F77-"f77"}
13639 compiler=$CC
13640 compiler_F77=$CC
13641 for cc_temp in $compiler""; do
13642   case $cc_temp in
13643     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13644     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13645     \-*) ;;
13646     *) break;;
13647   esac
13648 done
13649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13650
13651
13652 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13653 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13654 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13655 echo "${ECHO_T}$can_build_shared" >&6; }
13656
13657 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13658 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13659 test "$can_build_shared" = "no" && enable_shared=no
13660
13661 # On AIX, shared libraries and static libraries use the same namespace, and
13662 # are all built from PIC.
13663 case $host_os in
13664 aix3*)
13665   test "$enable_shared" = yes && enable_static=no
13666   if test -n "$RANLIB"; then
13667     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13668     postinstall_cmds='$RANLIB $lib'
13669   fi
13670   ;;
13671 aix4* | aix5*)
13672   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13673     test "$enable_shared" = yes && enable_static=no
13674   fi
13675   ;;
13676 esac
13677 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13678 echo "${ECHO_T}$enable_shared" >&6; }
13679
13680 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13681 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13682 # Make sure either enable_shared or enable_static is yes.
13683 test "$enable_shared" = yes || enable_static=yes
13684 { echo "$as_me:$LINENO: result: $enable_static" >&5
13685 echo "${ECHO_T}$enable_static" >&6; }
13686
13687 GCC_F77="$G77"
13688 LD_F77="$LD"
13689
13690 lt_prog_compiler_wl_F77=
13691 lt_prog_compiler_pic_F77=
13692 lt_prog_compiler_static_F77=
13693
13694 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13695 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13696
13697   if test "$GCC" = yes; then
13698     lt_prog_compiler_wl_F77='-Wl,'
13699     lt_prog_compiler_static_F77='-static'
13700
13701     case $host_os in
13702       aix*)
13703       # All AIX code is PIC.
13704       if test "$host_cpu" = ia64; then
13705         # AIX 5 now supports IA64 processor
13706         lt_prog_compiler_static_F77='-Bstatic'
13707       fi
13708       ;;
13709
13710     amigaos*)
13711       # FIXME: we need at least 68020 code to build shared libraries, but
13712       # adding the `-m68020' flag to GCC prevents building anything better,
13713       # like `-m68040'.
13714       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13715       ;;
13716
13717     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13718       # PIC is the default for these OSes.
13719       ;;
13720
13721     mingw* | pw32* | os2*)
13722       # This hack is so that the source file can tell whether it is being
13723       # built for inclusion in a dll (and should export symbols for example).
13724       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13725       ;;
13726
13727     darwin* | rhapsody*)
13728       # PIC is the default on this platform
13729       # Common symbols not allowed in MH_DYLIB files
13730       lt_prog_compiler_pic_F77='-fno-common'
13731       ;;
13732
13733     interix3*)
13734       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13735       # Instead, we relocate shared libraries at runtime.
13736       ;;
13737
13738     msdosdjgpp*)
13739       # Just because we use GCC doesn't mean we suddenly get shared libraries
13740       # on systems that don't support them.
13741       lt_prog_compiler_can_build_shared_F77=no
13742       enable_shared=no
13743       ;;
13744
13745     sysv4*MP*)
13746       if test -d /usr/nec; then
13747         lt_prog_compiler_pic_F77=-Kconform_pic
13748       fi
13749       ;;
13750
13751     hpux*)
13752       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13753       # not for PA HP-UX.
13754       case $host_cpu in
13755       hppa*64*|ia64*)
13756         # +Z the default
13757         ;;
13758       *)
13759         lt_prog_compiler_pic_F77='-fPIC'
13760         ;;
13761       esac
13762       ;;
13763
13764     *)
13765       lt_prog_compiler_pic_F77='-fPIC'
13766       ;;
13767     esac
13768   else
13769     # PORTME Check for flag to pass linker flags through the system compiler.
13770     case $host_os in
13771     aix*)
13772       lt_prog_compiler_wl_F77='-Wl,'
13773       if test "$host_cpu" = ia64; then
13774         # AIX 5 now supports IA64 processor
13775         lt_prog_compiler_static_F77='-Bstatic'
13776       else
13777         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13778       fi
13779       ;;
13780       darwin*)
13781         # PIC is the default on this platform
13782         # Common symbols not allowed in MH_DYLIB files
13783        case $cc_basename in
13784          xlc*)
13785          lt_prog_compiler_pic_F77='-qnocommon'
13786          lt_prog_compiler_wl_F77='-Wl,'
13787          ;;
13788        esac
13789        ;;
13790
13791     mingw* | pw32* | os2*)
13792       # This hack is so that the source file can tell whether it is being
13793       # built for inclusion in a dll (and should export symbols for example).
13794       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13795       ;;
13796
13797     hpux9* | hpux10* | hpux11*)
13798       lt_prog_compiler_wl_F77='-Wl,'
13799       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13800       # not for PA HP-UX.
13801       case $host_cpu in
13802       hppa*64*|ia64*)
13803         # +Z the default
13804         ;;
13805       *)
13806         lt_prog_compiler_pic_F77='+Z'
13807         ;;
13808       esac
13809       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13810       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13811       ;;
13812
13813     irix5* | irix6* | nonstopux*)
13814       lt_prog_compiler_wl_F77='-Wl,'
13815       # PIC (with -KPIC) is the default.
13816       lt_prog_compiler_static_F77='-non_shared'
13817       ;;
13818
13819     newsos6)
13820       lt_prog_compiler_pic_F77='-KPIC'
13821       lt_prog_compiler_static_F77='-Bstatic'
13822       ;;
13823
13824     linux* | k*bsd*-gnu)
13825       case $cc_basename in
13826       icc* | ecc*)
13827         lt_prog_compiler_wl_F77='-Wl,'
13828         lt_prog_compiler_pic_F77='-KPIC'
13829         lt_prog_compiler_static_F77='-static'
13830         ;;
13831       pgcc* | pgf77* | pgf90* | pgf95*)
13832         # Portland Group compilers (*not* the Pentium gcc compiler,
13833         # which looks to be a dead project)
13834         lt_prog_compiler_wl_F77='-Wl,'
13835         lt_prog_compiler_pic_F77='-fpic'
13836         lt_prog_compiler_static_F77='-Bstatic'
13837         ;;
13838       ccc*)
13839         lt_prog_compiler_wl_F77='-Wl,'
13840         # All Alpha code is PIC.
13841         lt_prog_compiler_static_F77='-non_shared'
13842         ;;
13843       esac
13844       ;;
13845
13846     osf3* | osf4* | osf5*)
13847       lt_prog_compiler_wl_F77='-Wl,'
13848       # All OSF/1 code is PIC.
13849       lt_prog_compiler_static_F77='-non_shared'
13850       ;;
13851
13852     solaris*)
13853       lt_prog_compiler_pic_F77='-KPIC'
13854       lt_prog_compiler_static_F77='-Bstatic'
13855       case $cc_basename in
13856       f77* | f90* | f95*)
13857         lt_prog_compiler_wl_F77='-Qoption ld ';;
13858       *)
13859         lt_prog_compiler_wl_F77='-Wl,';;
13860       esac
13861       ;;
13862
13863     sunos4*)
13864       lt_prog_compiler_wl_F77='-Qoption ld '
13865       lt_prog_compiler_pic_F77='-PIC'
13866       lt_prog_compiler_static_F77='-Bstatic'
13867       ;;
13868
13869     sysv4 | sysv4.2uw2* | sysv4.3*)
13870       lt_prog_compiler_wl_F77='-Wl,'
13871       lt_prog_compiler_pic_F77='-KPIC'
13872       lt_prog_compiler_static_F77='-Bstatic'
13873       ;;
13874
13875     sysv4*MP*)
13876       if test -d /usr/nec ;then
13877         lt_prog_compiler_pic_F77='-Kconform_pic'
13878         lt_prog_compiler_static_F77='-Bstatic'
13879       fi
13880       ;;
13881
13882     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13883       lt_prog_compiler_wl_F77='-Wl,'
13884       lt_prog_compiler_pic_F77='-KPIC'
13885       lt_prog_compiler_static_F77='-Bstatic'
13886       ;;
13887
13888     unicos*)
13889       lt_prog_compiler_wl_F77='-Wl,'
13890       lt_prog_compiler_can_build_shared_F77=no
13891       ;;
13892
13893     uts4*)
13894       lt_prog_compiler_pic_F77='-pic'
13895       lt_prog_compiler_static_F77='-Bstatic'
13896       ;;
13897
13898     *)
13899       lt_prog_compiler_can_build_shared_F77=no
13900       ;;
13901     esac
13902   fi
13903
13904 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13905 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13906
13907 #
13908 # Check to make sure the PIC flag actually works.
13909 #
13910 if test -n "$lt_prog_compiler_pic_F77"; then
13911
13912 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13914 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13915   echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917   lt_prog_compiler_pic_works_F77=no
13918   ac_outfile=conftest.$ac_objext
13919    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13920    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13921    # Insert the option either (1) after the last *FLAGS variable, or
13922    # (2) before a word containing "conftest.", or (3) at the end.
13923    # Note that $ac_compile itself does not contain backslashes and begins
13924    # with a dollar sign (not a hyphen), so the echo should work correctly.
13925    # The option is referenced via a variable to avoid confusing sed.
13926    lt_compile=`echo "$ac_compile" | $SED \
13927    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13929    -e 's:$: $lt_compiler_flag:'`
13930    (eval echo "\"\$as_me:13930: $lt_compile\"" >&5)
13931    (eval "$lt_compile" 2>conftest.err)
13932    ac_status=$?
13933    cat conftest.err >&5
13934    echo "$as_me:13934: \$? = $ac_status" >&5
13935    if (exit $ac_status) && test -s "$ac_outfile"; then
13936      # The compiler can only warn and ignore the option if not recognized
13937      # So say no if there are warnings other than the usual output.
13938      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13939      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13940      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13941        lt_prog_compiler_pic_works_F77=yes
13942      fi
13943    fi
13944    $rm conftest*
13945
13946 fi
13947 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13948 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13949
13950 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13951     case $lt_prog_compiler_pic_F77 in
13952      "" | " "*) ;;
13953      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13954      esac
13955 else
13956     lt_prog_compiler_pic_F77=
13957      lt_prog_compiler_can_build_shared_F77=no
13958 fi
13959
13960 fi
13961 case $host_os in
13962   # For platforms which do not support PIC, -DPIC is meaningless:
13963   *djgpp*)
13964     lt_prog_compiler_pic_F77=
13965     ;;
13966   *)
13967     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13968     ;;
13969 esac
13970
13971 #
13972 # Check to make sure the static flag actually works.
13973 #
13974 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13975 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13976 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13977 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   lt_prog_compiler_static_works_F77=no
13981    save_LDFLAGS="$LDFLAGS"
13982    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13983    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13984    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13985      # The linker can only warn and ignore the option if not recognized
13986      # So say no if there are warnings
13987      if test -s conftest.err; then
13988        # Append any errors to the config.log.
13989        cat conftest.err 1>&5
13990        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13991        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13992        if diff conftest.exp conftest.er2 >/dev/null; then
13993          lt_prog_compiler_static_works_F77=yes
13994        fi
13995      else
13996        lt_prog_compiler_static_works_F77=yes
13997      fi
13998    fi
13999    $rm conftest*
14000    LDFLAGS="$save_LDFLAGS"
14001
14002 fi
14003 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14004 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14005
14006 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14007     :
14008 else
14009     lt_prog_compiler_static_F77=
14010 fi
14011
14012
14013 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14014 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14015 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   lt_cv_prog_compiler_c_o_F77=no
14019    $rm -r conftest 2>/dev/null
14020    mkdir conftest
14021    cd conftest
14022    mkdir out
14023    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14024
14025    lt_compiler_flag="-o out/conftest2.$ac_objext"
14026    # Insert the option either (1) after the last *FLAGS variable, or
14027    # (2) before a word containing "conftest.", or (3) at the end.
14028    # Note that $ac_compile itself does not contain backslashes and begins
14029    # with a dollar sign (not a hyphen), so the echo should work correctly.
14030    lt_compile=`echo "$ac_compile" | $SED \
14031    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14032    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14033    -e 's:$: $lt_compiler_flag:'`
14034    (eval echo "\"\$as_me:14034: $lt_compile\"" >&5)
14035    (eval "$lt_compile" 2>out/conftest.err)
14036    ac_status=$?
14037    cat out/conftest.err >&5
14038    echo "$as_me:14038: \$? = $ac_status" >&5
14039    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14040    then
14041      # The compiler can only warn and ignore the option if not recognized
14042      # So say no if there are warnings
14043      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14044      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14045      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14046        lt_cv_prog_compiler_c_o_F77=yes
14047      fi
14048    fi
14049    chmod u+w . 2>&5
14050    $rm conftest*
14051    # SGI C++ compiler will create directory out/ii_files/ for
14052    # template instantiation
14053    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14054    $rm out/* && rmdir out
14055    cd ..
14056    rmdir conftest
14057    $rm conftest*
14058
14059 fi
14060 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14061 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14062
14063
14064 hard_links="nottested"
14065 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14066   # do not overwrite the value of need_locks provided by the user
14067   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14068 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14069   hard_links=yes
14070   $rm conftest*
14071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14072   touch conftest.a
14073   ln conftest.a conftest.b 2>&5 || hard_links=no
14074   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14075   { echo "$as_me:$LINENO: result: $hard_links" >&5
14076 echo "${ECHO_T}$hard_links" >&6; }
14077   if test "$hard_links" = no; then
14078     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14079 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14080     need_locks=warn
14081   fi
14082 else
14083   need_locks=no
14084 fi
14085
14086 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14088
14089   runpath_var=
14090   allow_undefined_flag_F77=
14091   enable_shared_with_static_runtimes_F77=no
14092   archive_cmds_F77=
14093   archive_expsym_cmds_F77=
14094   old_archive_From_new_cmds_F77=
14095   old_archive_from_expsyms_cmds_F77=
14096   export_dynamic_flag_spec_F77=
14097   whole_archive_flag_spec_F77=
14098   thread_safe_flag_spec_F77=
14099   hardcode_libdir_flag_spec_F77=
14100   hardcode_libdir_flag_spec_ld_F77=
14101   hardcode_libdir_separator_F77=
14102   hardcode_direct_F77=no
14103   hardcode_minus_L_F77=no
14104   hardcode_shlibpath_var_F77=unsupported
14105   link_all_deplibs_F77=unknown
14106   hardcode_automatic_F77=no
14107   module_cmds_F77=
14108   module_expsym_cmds_F77=
14109   always_export_symbols_F77=no
14110   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14111   # include_expsyms should be a list of space-separated symbols to be *always*
14112   # included in the symbol list
14113   include_expsyms_F77=
14114   # exclude_expsyms can be an extended regexp of symbols to exclude
14115   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14116   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14117   # as well as any symbol that contains `d'.
14118   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14119   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14120   # platforms (ab)use it in PIC code, but their linkers get confused if
14121   # the symbol is explicitly referenced.  Since portable code cannot
14122   # rely on this symbol name, it's probably fine to never include it in
14123   # preloaded symbol tables.
14124   extract_expsyms_cmds=
14125   # Just being paranoid about ensuring that cc_basename is set.
14126   for cc_temp in $compiler""; do
14127   case $cc_temp in
14128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14130     \-*) ;;
14131     *) break;;
14132   esac
14133 done
14134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14135
14136   case $host_os in
14137   cygwin* | mingw* | pw32*)
14138     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14139     # When not using gcc, we currently assume that we are using
14140     # Microsoft Visual C++.
14141     if test "$GCC" != yes; then
14142       with_gnu_ld=no
14143     fi
14144     ;;
14145   interix*)
14146     # we just hope/assume this is gcc and not c89 (= MSVC++)
14147     with_gnu_ld=yes
14148     ;;
14149   openbsd*)
14150     with_gnu_ld=no
14151     ;;
14152   esac
14153
14154   ld_shlibs_F77=yes
14155   if test "$with_gnu_ld" = yes; then
14156     # If archive_cmds runs LD, not CC, wlarc should be empty
14157     wlarc='${wl}'
14158
14159     # Set some defaults for GNU ld with shared library support. These
14160     # are reset later if shared libraries are not supported. Putting them
14161     # here allows them to be overridden if necessary.
14162     runpath_var=LD_RUN_PATH
14163     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14164     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14165     # ancient GNU ld didn't support --whole-archive et. al.
14166     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14167         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14168       else
14169         whole_archive_flag_spec_F77=
14170     fi
14171     supports_anon_versioning=no
14172     case `$LD -v 2>/dev/null` in
14173       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14174       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14175       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14176       *\ 2.11.*) ;; # other 2.11 versions
14177       *) supports_anon_versioning=yes ;;
14178     esac
14179
14180     # See if GNU ld supports shared libraries.
14181     case $host_os in
14182     aix3* | aix4* | aix5*)
14183       # On AIX/PPC, the GNU linker is very broken
14184       if test "$host_cpu" != ia64; then
14185         ld_shlibs_F77=no
14186         cat <<EOF 1>&2
14187
14188 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14189 *** to be unable to reliably create shared libraries on AIX.
14190 *** Therefore, libtool is disabling shared libraries support.  If you
14191 *** really care for shared libraries, you may want to modify your PATH
14192 *** so that a non-GNU linker is found, and then restart.
14193
14194 EOF
14195       fi
14196       ;;
14197
14198     amigaos*)
14199       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)'
14200       hardcode_libdir_flag_spec_F77='-L$libdir'
14201       hardcode_minus_L_F77=yes
14202
14203       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14204       # that the semantics of dynamic libraries on AmigaOS, at least up
14205       # to version 4, is to share data among multiple programs linked
14206       # with the same dynamic library.  Since this doesn't match the
14207       # behavior of shared libraries on other platforms, we can't use
14208       # them.
14209       ld_shlibs_F77=no
14210       ;;
14211
14212     beos*)
14213       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14214         allow_undefined_flag_F77=unsupported
14215         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14216         # support --undefined.  This deserves some investigation.  FIXME
14217         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218       else
14219         ld_shlibs_F77=no
14220       fi
14221       ;;
14222
14223     cygwin* | mingw* | pw32*)
14224       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14225       # as there is no search path for DLLs.
14226       hardcode_libdir_flag_spec_F77='-L$libdir'
14227       allow_undefined_flag_F77=unsupported
14228       always_export_symbols_F77=no
14229       enable_shared_with_static_runtimes_F77=yes
14230       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14231
14232       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14233         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14234         # If the export-symbols file already is a .def file (1st line
14235         # is EXPORTS), use it as is; otherwise, prepend...
14236         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14237           cp $export_symbols $output_objdir/$soname.def;
14238         else
14239           echo EXPORTS > $output_objdir/$soname.def;
14240           cat $export_symbols >> $output_objdir/$soname.def;
14241         fi~
14242         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14243       else
14244         ld_shlibs_F77=no
14245       fi
14246       ;;
14247
14248     interix3*)
14249       hardcode_direct_F77=no
14250       hardcode_shlibpath_var_F77=no
14251       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14252       export_dynamic_flag_spec_F77='${wl}-E'
14253       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14254       # Instead, shared libraries are loaded at an image base (0x10000000 by
14255       # default) and relocated if they conflict, which is a slow very memory
14256       # consuming and fragmenting process.  To avoid this, we pick a random,
14257       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14258       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14259       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'
14260       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'
14261       ;;
14262
14263     linux* | k*bsd*-gnu)
14264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265         tmp_addflag=
14266         case $cc_basename,$host_cpu in
14267         pgcc*)                          # Portland Group C compiler
14268           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'
14269           tmp_addflag=' $pic_flag'
14270           ;;
14271         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14272           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'
14273           tmp_addflag=' $pic_flag -Mnomain' ;;
14274         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14275           tmp_addflag=' -i_dynamic' ;;
14276         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14277           tmp_addflag=' -i_dynamic -nofor_main' ;;
14278         ifc* | ifort*)                  # Intel Fortran compiler
14279           tmp_addflag=' -nofor_main' ;;
14280         esac
14281         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14282
14283         if test $supports_anon_versioning = yes; then
14284           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14285   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14286   $echo "local: *; };" >> $output_objdir/$libname.ver~
14287           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14288         fi
14289         link_all_deplibs_F77=no
14290       else
14291         ld_shlibs_F77=no
14292       fi
14293       ;;
14294
14295     netbsd* | netbsdelf*-gnu)
14296       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14297         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14298         wlarc=
14299       else
14300         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14302       fi
14303       ;;
14304
14305     solaris*)
14306       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14307         ld_shlibs_F77=no
14308         cat <<EOF 1>&2
14309
14310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14311 *** create shared libraries on Solaris systems.  Therefore, libtool
14312 *** is disabling shared libraries support.  We urge you to upgrade GNU
14313 *** binutils to release 2.9.1 or newer.  Another option is to modify
14314 *** your PATH or compiler configuration so that the native linker is
14315 *** used, and then restart.
14316
14317 EOF
14318       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14319         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14321       else
14322         ld_shlibs_F77=no
14323       fi
14324       ;;
14325
14326     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14327       case `$LD -v 2>&1` in
14328         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14329         ld_shlibs_F77=no
14330         cat <<_LT_EOF 1>&2
14331
14332 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14333 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14334 *** is disabling shared libraries support.  We urge you to upgrade GNU
14335 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14336 *** your PATH or compiler configuration so that the native linker is
14337 *** used, and then restart.
14338
14339 _LT_EOF
14340         ;;
14341         *)
14342           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14343             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14344             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14345             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14346           else
14347             ld_shlibs_F77=no
14348           fi
14349         ;;
14350       esac
14351       ;;
14352
14353     sunos4*)
14354       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14355       wlarc=
14356       hardcode_direct_F77=yes
14357       hardcode_shlibpath_var_F77=no
14358       ;;
14359
14360     *)
14361       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14362         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14363         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14364       else
14365         ld_shlibs_F77=no
14366       fi
14367       ;;
14368     esac
14369
14370     if test "$ld_shlibs_F77" = no; then
14371       runpath_var=
14372       hardcode_libdir_flag_spec_F77=
14373       export_dynamic_flag_spec_F77=
14374       whole_archive_flag_spec_F77=
14375     fi
14376   else
14377     # PORTME fill in a description of your system's linker (not GNU ld)
14378     case $host_os in
14379     aix3*)
14380       allow_undefined_flag_F77=unsupported
14381       always_export_symbols_F77=yes
14382       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'
14383       # Note: this linker hardcodes the directories in LIBPATH if there
14384       # are no directories specified by -L.
14385       hardcode_minus_L_F77=yes
14386       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14387         # Neither direct hardcoding nor static linking is supported with a
14388         # broken collect2.
14389         hardcode_direct_F77=unsupported
14390       fi
14391       ;;
14392
14393     aix4* | aix5*)
14394       if test "$host_cpu" = ia64; then
14395         # On IA64, the linker does run time linking by default, so we don't
14396         # have to do anything special.
14397         aix_use_runtimelinking=no
14398         exp_sym_flag='-Bexport'
14399         no_entry_flag=""
14400       else
14401         # If we're using GNU nm, then we don't want the "-C" option.
14402         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14403         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14404           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'
14405         else
14406           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'
14407         fi
14408         aix_use_runtimelinking=no
14409
14410         # Test if we are trying to use run time linking or normal
14411         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14412         # need to do runtime linking.
14413         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14414           for ld_flag in $LDFLAGS; do
14415           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14416             aix_use_runtimelinking=yes
14417             break
14418           fi
14419           done
14420           ;;
14421         esac
14422
14423         exp_sym_flag='-bexport'
14424         no_entry_flag='-bnoentry'
14425       fi
14426
14427       # When large executables or shared objects are built, AIX ld can
14428       # have problems creating the table of contents.  If linking a library
14429       # or program results in "error TOC overflow" add -mminimal-toc to
14430       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14431       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14432
14433       archive_cmds_F77=''
14434       hardcode_direct_F77=yes
14435       hardcode_libdir_separator_F77=':'
14436       link_all_deplibs_F77=yes
14437
14438       if test "$GCC" = yes; then
14439         case $host_os in aix4.[012]|aix4.[012].*)
14440         # We only want to do this on AIX 4.2 and lower, the check
14441         # below for broken collect2 doesn't work under 4.3+
14442           collect2name=`${CC} -print-prog-name=collect2`
14443           if test -f "$collect2name" && \
14444            strings "$collect2name" | grep resolve_lib_name >/dev/null
14445           then
14446           # We have reworked collect2
14447           hardcode_direct_F77=yes
14448           else
14449           # We have old collect2
14450           hardcode_direct_F77=unsupported
14451           # It fails to find uninstalled libraries when the uninstalled
14452           # path is not listed in the libpath.  Setting hardcode_minus_L
14453           # to unsupported forces relinking
14454           hardcode_minus_L_F77=yes
14455           hardcode_libdir_flag_spec_F77='-L$libdir'
14456           hardcode_libdir_separator_F77=
14457           fi
14458           ;;
14459         esac
14460         shared_flag='-shared'
14461         if test "$aix_use_runtimelinking" = yes; then
14462           shared_flag="$shared_flag "'${wl}-G'
14463         fi
14464       else
14465         # not using gcc
14466         if test "$host_cpu" = ia64; then
14467         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14468         # chokes on -Wl,-G. The following line is correct:
14469           shared_flag='-G'
14470         else
14471           if test "$aix_use_runtimelinking" = yes; then
14472             shared_flag='${wl}-G'
14473           else
14474             shared_flag='${wl}-bM:SRE'
14475           fi
14476         fi
14477       fi
14478
14479       # It seems that -bexpall does not export symbols beginning with
14480       # underscore (_), so it is better to generate a list of symbols to export.
14481       always_export_symbols_F77=yes
14482       if test "$aix_use_runtimelinking" = yes; then
14483         # Warning - without using the other runtime loading flags (-brtl),
14484         # -berok will link without error, but may produce a broken library.
14485         allow_undefined_flag_F77='-berok'
14486        # Determine the default libpath from the value encoded in an empty executable.
14487        cat >conftest.$ac_ext <<_ACEOF
14488       program main
14489
14490       end
14491 _ACEOF
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496   *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499   (eval "$ac_link") 2>conftest.er1
14500   ac_status=$?
14501   grep -v '^ *+' conftest.er1 >conftest.err
14502   rm -f conftest.er1
14503   cat conftest.err >&5
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); } && {
14506          test -z "$ac_f77_werror_flag" ||
14507          test ! -s conftest.err
14508        } && test -s conftest$ac_exeext &&
14509        $as_test_x conftest$ac_exeext; then
14510
14511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14512 }'`
14513 # Check for a 64-bit object if we didn't find anything.
14514 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; }
14515 }'`; fi
14516 else
14517   echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14519
14520
14521 fi
14522
14523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14524       conftest$ac_exeext conftest.$ac_ext
14525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14526
14527        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14528         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"
14529        else
14530         if test "$host_cpu" = ia64; then
14531           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14532           allow_undefined_flag_F77="-z nodefs"
14533           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"
14534         else
14535          # Determine the default libpath from the value encoded in an empty executable.
14536          cat >conftest.$ac_ext <<_ACEOF
14537       program main
14538
14539       end
14540 _ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (ac_try="$ac_link"
14543 case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_link") 2>conftest.er1
14549   ac_status=$?
14550   grep -v '^ *+' conftest.er1 >conftest.err
14551   rm -f conftest.er1
14552   cat conftest.err >&5
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); } && {
14555          test -z "$ac_f77_werror_flag" ||
14556          test ! -s conftest.err
14557        } && test -s conftest$ac_exeext &&
14558        $as_test_x conftest$ac_exeext; then
14559
14560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14561 }'`
14562 # Check for a 64-bit object if we didn't find anything.
14563 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; }
14564 }'`; fi
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569
14570 fi
14571
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573       conftest$ac_exeext conftest.$ac_ext
14574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14575
14576          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14577           # Warning - without using the other run time loading flags,
14578           # -berok will link without error, but may produce a broken library.
14579           no_undefined_flag_F77=' ${wl}-bernotok'
14580           allow_undefined_flag_F77=' ${wl}-berok'
14581           # Exported symbols can be pulled into shared objects from archives
14582           whole_archive_flag_spec_F77='$convenience'
14583           archive_cmds_need_lc_F77=yes
14584           # This is similar to how AIX traditionally builds its shared libraries.
14585           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'
14586         fi
14587       fi
14588       ;;
14589
14590     amigaos*)
14591       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)'
14592       hardcode_libdir_flag_spec_F77='-L$libdir'
14593       hardcode_minus_L_F77=yes
14594       # see comment about different semantics on the GNU ld section
14595       ld_shlibs_F77=no
14596       ;;
14597
14598     bsdi[45]*)
14599       export_dynamic_flag_spec_F77=-rdynamic
14600       ;;
14601
14602     cygwin* | mingw* | pw32*)
14603       # When not using gcc, we currently assume that we are using
14604       # Microsoft Visual C++.
14605       # hardcode_libdir_flag_spec is actually meaningless, as there is
14606       # no search path for DLLs.
14607       hardcode_libdir_flag_spec_F77=' '
14608       allow_undefined_flag_F77=unsupported
14609       # Tell ltmain to make .lib files, not .a files.
14610       libext=lib
14611       # Tell ltmain to make .dll files, not .so files.
14612       shrext_cmds=".dll"
14613       # FIXME: Setting linknames here is a bad hack.
14614       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14615       # The linker will automatically build a .lib file if we build a DLL.
14616       old_archive_From_new_cmds_F77='true'
14617       # FIXME: Should let the user specify the lib program.
14618       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14619       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14620       enable_shared_with_static_runtimes_F77=yes
14621       ;;
14622
14623     darwin* | rhapsody*)
14624       case $host_os in
14625         rhapsody* | darwin1.[012])
14626          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14627          ;;
14628        *) # Darwin 1.3 on
14629          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14630            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14631          else
14632            case ${MACOSX_DEPLOYMENT_TARGET} in
14633              10.[012])
14634                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14635                ;;
14636              10.*)
14637                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14638                ;;
14639            esac
14640          fi
14641          ;;
14642       esac
14643       archive_cmds_need_lc_F77=no
14644       hardcode_direct_F77=no
14645       hardcode_automatic_F77=yes
14646       hardcode_shlibpath_var_F77=unsupported
14647       whole_archive_flag_spec_F77=''
14648       link_all_deplibs_F77=yes
14649     if test "$GCC" = yes ; then
14650         output_verbose_link_cmd='echo'
14651         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14652       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14653       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14654       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}'
14655       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}'
14656     else
14657       case $cc_basename in
14658         xlc*)
14659          output_verbose_link_cmd='echo'
14660          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14661          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14662           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14663          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}'
14664           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}'
14665           ;;
14666        *)
14667          ld_shlibs_F77=no
14668           ;;
14669       esac
14670     fi
14671       ;;
14672
14673     dgux*)
14674       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14675       hardcode_libdir_flag_spec_F77='-L$libdir'
14676       hardcode_shlibpath_var_F77=no
14677       ;;
14678
14679     freebsd1*)
14680       ld_shlibs_F77=no
14681       ;;
14682
14683     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14684     # support.  Future versions do this automatically, but an explicit c++rt0.o
14685     # does not break anything, and helps significantly (at the cost of a little
14686     # extra space).
14687     freebsd2.2*)
14688       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14689       hardcode_libdir_flag_spec_F77='-R$libdir'
14690       hardcode_direct_F77=yes
14691       hardcode_shlibpath_var_F77=no
14692       ;;
14693
14694     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14695     freebsd2*)
14696       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14697       hardcode_direct_F77=yes
14698       hardcode_minus_L_F77=yes
14699       hardcode_shlibpath_var_F77=no
14700       ;;
14701
14702     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14703     freebsd* | dragonfly*)
14704       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14705       hardcode_libdir_flag_spec_F77='-R$libdir'
14706       hardcode_direct_F77=yes
14707       hardcode_shlibpath_var_F77=no
14708       ;;
14709
14710     hpux9*)
14711       if test "$GCC" = yes; then
14712         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'
14713       else
14714         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'
14715       fi
14716       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14717       hardcode_libdir_separator_F77=:
14718       hardcode_direct_F77=yes
14719
14720       # hardcode_minus_L: Not really in the search PATH,
14721       # but as the default location of the library.
14722       hardcode_minus_L_F77=yes
14723       export_dynamic_flag_spec_F77='${wl}-E'
14724       ;;
14725
14726     hpux10*)
14727       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14728         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14729       else
14730         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14731       fi
14732       if test "$with_gnu_ld" = no; then
14733         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14734         hardcode_libdir_separator_F77=:
14735
14736         hardcode_direct_F77=yes
14737         export_dynamic_flag_spec_F77='${wl}-E'
14738
14739         # hardcode_minus_L: Not really in the search PATH,
14740         # but as the default location of the library.
14741         hardcode_minus_L_F77=yes
14742       fi
14743       ;;
14744
14745     hpux11*)
14746       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14747         case $host_cpu in
14748         hppa*64*)
14749           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14750           ;;
14751         ia64*)
14752           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14753           ;;
14754         *)
14755           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14756           ;;
14757         esac
14758       else
14759         case $host_cpu in
14760         hppa*64*)
14761           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14762           ;;
14763         ia64*)
14764           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14765           ;;
14766         *)
14767           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14768           ;;
14769         esac
14770       fi
14771       if test "$with_gnu_ld" = no; then
14772         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14773         hardcode_libdir_separator_F77=:
14774
14775         case $host_cpu in
14776         hppa*64*|ia64*)
14777           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14778           hardcode_direct_F77=no
14779           hardcode_shlibpath_var_F77=no
14780           ;;
14781         *)
14782           hardcode_direct_F77=yes
14783           export_dynamic_flag_spec_F77='${wl}-E'
14784
14785           # hardcode_minus_L: Not really in the search PATH,
14786           # but as the default location of the library.
14787           hardcode_minus_L_F77=yes
14788           ;;
14789         esac
14790       fi
14791       ;;
14792
14793     irix5* | irix6* | nonstopux*)
14794       if test "$GCC" = yes; then
14795         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'
14796       else
14797         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'
14798         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14799       fi
14800       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14801       hardcode_libdir_separator_F77=:
14802       link_all_deplibs_F77=yes
14803       ;;
14804
14805     netbsd* | netbsdelf*-gnu)
14806       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14807         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14808       else
14809         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14810       fi
14811       hardcode_libdir_flag_spec_F77='-R$libdir'
14812       hardcode_direct_F77=yes
14813       hardcode_shlibpath_var_F77=no
14814       ;;
14815
14816     newsos6)
14817       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818       hardcode_direct_F77=yes
14819       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14820       hardcode_libdir_separator_F77=:
14821       hardcode_shlibpath_var_F77=no
14822       ;;
14823
14824     openbsd*)
14825       hardcode_direct_F77=yes
14826       hardcode_shlibpath_var_F77=no
14827       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14828         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14829         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14830         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14831         export_dynamic_flag_spec_F77='${wl}-E'
14832       else
14833        case $host_os in
14834          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14835            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14836            hardcode_libdir_flag_spec_F77='-R$libdir'
14837            ;;
14838          *)
14839            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14840            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14841            ;;
14842        esac
14843       fi
14844       ;;
14845
14846     os2*)
14847       hardcode_libdir_flag_spec_F77='-L$libdir'
14848       hardcode_minus_L_F77=yes
14849       allow_undefined_flag_F77=unsupported
14850       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'
14851       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14852       ;;
14853
14854     osf3*)
14855       if test "$GCC" = yes; then
14856         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14857         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'
14858       else
14859         allow_undefined_flag_F77=' -expect_unresolved \*'
14860         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'
14861       fi
14862       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14863       hardcode_libdir_separator_F77=:
14864       ;;
14865
14866     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14867       if test "$GCC" = yes; then
14868         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14869         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'
14870         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14871       else
14872         allow_undefined_flag_F77=' -expect_unresolved \*'
14873         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'
14874         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~
14875         $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'
14876
14877         # Both c and cxx compiler support -rpath directly
14878         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14879       fi
14880       hardcode_libdir_separator_F77=:
14881       ;;
14882
14883     solaris*)
14884       no_undefined_flag_F77=' -z text'
14885       if test "$GCC" = yes; then
14886         wlarc='${wl}'
14887         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14888         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14889           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14890       else
14891         wlarc=''
14892         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14893         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14894         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14895       fi
14896       hardcode_libdir_flag_spec_F77='-R$libdir'
14897       hardcode_shlibpath_var_F77=no
14898       case $host_os in
14899       solaris2.[0-5] | solaris2.[0-5].*) ;;
14900       *)
14901         # The compiler driver will combine linker options so we
14902         # cannot just pass the convience library names through
14903         # without $wl, iff we do not link with $LD.
14904         # Luckily, gcc supports the same syntax we need for Sun Studio.
14905         # Supported since Solaris 2.6 (maybe 2.5.1?)
14906         case $wlarc in
14907         '')
14908           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14909         *)
14910           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' ;;
14911         esac ;;
14912       esac
14913       link_all_deplibs_F77=yes
14914       ;;
14915
14916     sunos4*)
14917       if test "x$host_vendor" = xsequent; then
14918         # Use $CC to link under sequent, because it throws in some extra .o
14919         # files that make .init and .fini sections work.
14920         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14921       else
14922         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14923       fi
14924       hardcode_libdir_flag_spec_F77='-L$libdir'
14925       hardcode_direct_F77=yes
14926       hardcode_minus_L_F77=yes
14927       hardcode_shlibpath_var_F77=no
14928       ;;
14929
14930     sysv4)
14931       case $host_vendor in
14932         sni)
14933           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934           hardcode_direct_F77=yes # is this really true???
14935         ;;
14936         siemens)
14937           ## LD is ld it makes a PLAMLIB
14938           ## CC just makes a GrossModule.
14939           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14940           reload_cmds_F77='$CC -r -o $output$reload_objs'
14941           hardcode_direct_F77=no
14942         ;;
14943         motorola)
14944           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14945           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14946         ;;
14947       esac
14948       runpath_var='LD_RUN_PATH'
14949       hardcode_shlibpath_var_F77=no
14950       ;;
14951
14952     sysv4.3*)
14953       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14954       hardcode_shlibpath_var_F77=no
14955       export_dynamic_flag_spec_F77='-Bexport'
14956       ;;
14957
14958     sysv4*MP*)
14959       if test -d /usr/nec; then
14960         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961         hardcode_shlibpath_var_F77=no
14962         runpath_var=LD_RUN_PATH
14963         hardcode_runpath_var=yes
14964         ld_shlibs_F77=yes
14965       fi
14966       ;;
14967
14968     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14969       no_undefined_flag_F77='${wl}-z,text'
14970       archive_cmds_need_lc_F77=no
14971       hardcode_shlibpath_var_F77=no
14972       runpath_var='LD_RUN_PATH'
14973
14974       if test "$GCC" = yes; then
14975         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14976         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14977       else
14978         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980       fi
14981       ;;
14982
14983     sysv5* | sco3.2v5* | sco5v6*)
14984       # Note: We can NOT use -z defs as we might desire, because we do not
14985       # link with -lc, and that would cause any symbols used from libc to
14986       # always be unresolved, which means just about no library would
14987       # ever link correctly.  If we're not using GNU ld we use -z text
14988       # though, which does catch some bad symbols but isn't as heavy-handed
14989       # as -z defs.
14990       no_undefined_flag_F77='${wl}-z,text'
14991       allow_undefined_flag_F77='${wl}-z,nodefs'
14992       archive_cmds_need_lc_F77=no
14993       hardcode_shlibpath_var_F77=no
14994       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14995       hardcode_libdir_separator_F77=':'
14996       link_all_deplibs_F77=yes
14997       export_dynamic_flag_spec_F77='${wl}-Bexport'
14998       runpath_var='LD_RUN_PATH'
14999
15000       if test "$GCC" = yes; then
15001         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15002         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15003       else
15004         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15005         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15006       fi
15007       ;;
15008
15009     uts4*)
15010       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15011       hardcode_libdir_flag_spec_F77='-L$libdir'
15012       hardcode_shlibpath_var_F77=no
15013       ;;
15014
15015     *)
15016       ld_shlibs_F77=no
15017       ;;
15018     esac
15019   fi
15020
15021 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15022 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15023 test "$ld_shlibs_F77" = no && can_build_shared=no
15024
15025 #
15026 # Do we need to explicitly link libc?
15027 #
15028 case "x$archive_cmds_need_lc_F77" in
15029 x|xyes)
15030   # Assume -lc should be added
15031   archive_cmds_need_lc_F77=yes
15032
15033   if test "$enable_shared" = yes && test "$GCC" = yes; then
15034     case $archive_cmds_F77 in
15035     *'~'*)
15036       # FIXME: we may have to deal with multi-command sequences.
15037       ;;
15038     '$CC '*)
15039       # Test whether the compiler implicitly links with -lc since on some
15040       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15041       # to ld, don't add -lc before -lgcc.
15042       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15044       $rm conftest*
15045       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15046
15047       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15048   (eval $ac_compile) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); } 2>conftest.err; then
15052         soname=conftest
15053         lib=conftest
15054         libobjs=conftest.$ac_objext
15055         deplibs=
15056         wl=$lt_prog_compiler_wl_F77
15057         pic_flag=$lt_prog_compiler_pic_F77
15058         compiler_flags=-v
15059         linker_flags=-v
15060         verstring=
15061         output_objdir=.
15062         libname=conftest
15063         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15064         allow_undefined_flag_F77=
15065         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15066   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }
15070         then
15071           archive_cmds_need_lc_F77=no
15072         else
15073           archive_cmds_need_lc_F77=yes
15074         fi
15075         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15076       else
15077         cat conftest.err 1>&5
15078       fi
15079       $rm conftest*
15080       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15081 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15082       ;;
15083     esac
15084   fi
15085   ;;
15086 esac
15087
15088 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15089 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15090 library_names_spec=
15091 libname_spec='lib$name'
15092 soname_spec=
15093 shrext_cmds=".so"
15094 postinstall_cmds=
15095 postuninstall_cmds=
15096 finish_cmds=
15097 finish_eval=
15098 shlibpath_var=
15099 shlibpath_overrides_runpath=unknown
15100 version_type=none
15101 dynamic_linker="$host_os ld.so"
15102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15103 if test "$GCC" = yes; then
15104   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15105   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15106     # if the path contains ";" then we assume it to be the separator
15107     # otherwise default to the standard path separator (i.e. ":") - it is
15108     # assumed that no part of a normal pathname contains ";" but that should
15109     # okay in the real world where ";" in dirpaths is itself problematic.
15110     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15111   else
15112     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15113   fi
15114 else
15115   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15116 fi
15117 need_lib_prefix=unknown
15118 hardcode_into_libs=no
15119
15120 # when you set need_version to no, make sure it does not cause -set_version
15121 # flags to be left without arguments
15122 need_version=unknown
15123
15124 case $host_os in
15125 aix3*)
15126   version_type=linux
15127   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15128   shlibpath_var=LIBPATH
15129
15130   # AIX 3 has no versioning support, so we append a major version to the name.
15131   soname_spec='${libname}${release}${shared_ext}$major'
15132   ;;
15133
15134 aix4* | aix5*)
15135   version_type=linux
15136   need_lib_prefix=no
15137   need_version=no
15138   hardcode_into_libs=yes
15139   if test "$host_cpu" = ia64; then
15140     # AIX 5 supports IA64
15141     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15142     shlibpath_var=LD_LIBRARY_PATH
15143   else
15144     # With GCC up to 2.95.x, collect2 would create an import file
15145     # for dependence libraries.  The import file would start with
15146     # the line `#! .'.  This would cause the generated library to
15147     # depend on `.', always an invalid library.  This was fixed in
15148     # development snapshots of GCC prior to 3.0.
15149     case $host_os in
15150       aix4 | aix4.[01] | aix4.[01].*)
15151       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15152            echo ' yes '
15153            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15154         :
15155       else
15156         can_build_shared=no
15157       fi
15158       ;;
15159     esac
15160     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15161     # soname into executable. Probably we can add versioning support to
15162     # collect2, so additional links can be useful in future.
15163     if test "$aix_use_runtimelinking" = yes; then
15164       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15165       # instead of lib<name>.a to let people know that these are not
15166       # typical AIX shared libraries.
15167       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168     else
15169       # We preserve .a as extension for shared libraries through AIX4.2
15170       # and later when we are not doing run time linking.
15171       library_names_spec='${libname}${release}.a $libname.a'
15172       soname_spec='${libname}${release}${shared_ext}$major'
15173     fi
15174     shlibpath_var=LIBPATH
15175   fi
15176   ;;
15177
15178 amigaos*)
15179   library_names_spec='$libname.ixlibrary $libname.a'
15180   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15181   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'
15182   ;;
15183
15184 beos*)
15185   library_names_spec='${libname}${shared_ext}'
15186   dynamic_linker="$host_os ld.so"
15187   shlibpath_var=LIBRARY_PATH
15188   ;;
15189
15190 bsdi[45]*)
15191   version_type=linux
15192   need_version=no
15193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194   soname_spec='${libname}${release}${shared_ext}$major'
15195   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15196   shlibpath_var=LD_LIBRARY_PATH
15197   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15198   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15199   # the default ld.so.conf also contains /usr/contrib/lib and
15200   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15201   # libtool to hard-code these into programs
15202   ;;
15203
15204 cygwin* | mingw* | pw32*)
15205   version_type=windows
15206   shrext_cmds=".dll"
15207   need_version=no
15208   need_lib_prefix=no
15209
15210   case $GCC,$host_os in
15211   yes,cygwin* | yes,mingw* | yes,pw32*)
15212     library_names_spec='$libname.dll.a'
15213     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15214     postinstall_cmds='base_file=`basename \${file}`~
15215       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15216       dldir=$destdir/`dirname \$dlpath`~
15217       test -d \$dldir || mkdir -p \$dldir~
15218       $install_prog $dir/$dlname \$dldir/$dlname~
15219       chmod a+x \$dldir/$dlname'
15220     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15221       dlpath=$dir/\$dldll~
15222        $rm \$dlpath'
15223     shlibpath_overrides_runpath=yes
15224
15225     case $host_os in
15226     cygwin*)
15227       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15228       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15229       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15230       ;;
15231     mingw*)
15232       # MinGW DLLs use traditional 'lib' prefix
15233       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15234       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15235       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15236         # It is most probably a Windows format PATH printed by
15237         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15238         # path with ; separators, and with drive letters. We can handle the
15239         # drive letters (cygwin fileutils understands them), so leave them,
15240         # especially as we might pass files found there to a mingw objdump,
15241         # which wouldn't understand a cygwinified path. Ahh.
15242         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15243       else
15244         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15245       fi
15246       ;;
15247     pw32*)
15248       # pw32 DLLs use 'pw' prefix rather than 'lib'
15249       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15250       ;;
15251     esac
15252     ;;
15253
15254   *)
15255     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15256     ;;
15257   esac
15258   dynamic_linker='Win32 ld.exe'
15259   # FIXME: first we should search . and the directory the executable is in
15260   shlibpath_var=PATH
15261   ;;
15262
15263 darwin* | rhapsody*)
15264   dynamic_linker="$host_os dyld"
15265   version_type=darwin
15266   need_lib_prefix=no
15267   need_version=no
15268   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15269   soname_spec='${libname}${release}${major}$shared_ext'
15270   shlibpath_overrides_runpath=yes
15271   shlibpath_var=DYLD_LIBRARY_PATH
15272   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15273   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15274   if test "$GCC" = yes; then
15275     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"`
15276   else
15277     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15278   fi
15279   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15280   ;;
15281
15282 dgux*)
15283   version_type=linux
15284   need_lib_prefix=no
15285   need_version=no
15286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15287   soname_spec='${libname}${release}${shared_ext}$major'
15288   shlibpath_var=LD_LIBRARY_PATH
15289   ;;
15290
15291 freebsd1*)
15292   dynamic_linker=no
15293   ;;
15294
15295 freebsd* | dragonfly*)
15296   # DragonFly does not have aout.  When/if they implement a new
15297   # versioning mechanism, adjust this.
15298   if test -x /usr/bin/objformat; then
15299     objformat=`/usr/bin/objformat`
15300   else
15301     case $host_os in
15302     freebsd[123]*) objformat=aout ;;
15303     *) objformat=elf ;;
15304     esac
15305   fi
15306   version_type=freebsd-$objformat
15307   case $version_type in
15308     freebsd-elf*)
15309       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15310       need_version=no
15311       need_lib_prefix=no
15312       ;;
15313     freebsd-*)
15314       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15315       need_version=yes
15316       ;;
15317   esac
15318   shlibpath_var=LD_LIBRARY_PATH
15319   case $host_os in
15320   freebsd2*)
15321     shlibpath_overrides_runpath=yes
15322     ;;
15323   freebsd3.[01]* | freebsdelf3.[01]*)
15324     shlibpath_overrides_runpath=yes
15325     hardcode_into_libs=yes
15326     ;;
15327   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15328   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15329     shlibpath_overrides_runpath=no
15330     hardcode_into_libs=yes
15331     ;;
15332   freebsd*) # from 4.6 on
15333     shlibpath_overrides_runpath=yes
15334     hardcode_into_libs=yes
15335     ;;
15336   esac
15337   ;;
15338
15339 gnu*)
15340   version_type=linux
15341   need_lib_prefix=no
15342   need_version=no
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15344   soname_spec='${libname}${release}${shared_ext}$major'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   hardcode_into_libs=yes
15347   ;;
15348
15349 hpux9* | hpux10* | hpux11*)
15350   # Give a soname corresponding to the major version so that dld.sl refuses to
15351   # link against other versions.
15352   version_type=sunos
15353   need_lib_prefix=no
15354   need_version=no
15355   case $host_cpu in
15356   ia64*)
15357     shrext_cmds='.so'
15358     hardcode_into_libs=yes
15359     dynamic_linker="$host_os dld.so"
15360     shlibpath_var=LD_LIBRARY_PATH
15361     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363     soname_spec='${libname}${release}${shared_ext}$major'
15364     if test "X$HPUX_IA64_MODE" = X32; then
15365       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15366     else
15367       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15368     fi
15369     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15370     ;;
15371    hppa*64*)
15372      shrext_cmds='.sl'
15373      hardcode_into_libs=yes
15374      dynamic_linker="$host_os dld.sl"
15375      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15376      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378      soname_spec='${libname}${release}${shared_ext}$major'
15379      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15380      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15381      ;;
15382    *)
15383     shrext_cmds='.sl'
15384     dynamic_linker="$host_os dld.sl"
15385     shlibpath_var=SHLIB_PATH
15386     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388     soname_spec='${libname}${release}${shared_ext}$major'
15389     ;;
15390   esac
15391   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15392   postinstall_cmds='chmod 555 $lib'
15393   ;;
15394
15395 interix3*)
15396   version_type=linux
15397   need_lib_prefix=no
15398   need_version=no
15399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15400   soname_spec='${libname}${release}${shared_ext}$major'
15401   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15402   shlibpath_var=LD_LIBRARY_PATH
15403   shlibpath_overrides_runpath=no
15404   hardcode_into_libs=yes
15405   ;;
15406
15407 irix5* | irix6* | nonstopux*)
15408   case $host_os in
15409     nonstopux*) version_type=nonstopux ;;
15410     *)
15411         if test "$lt_cv_prog_gnu_ld" = yes; then
15412                 version_type=linux
15413         else
15414                 version_type=irix
15415         fi ;;
15416   esac
15417   need_lib_prefix=no
15418   need_version=no
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15421   case $host_os in
15422   irix5* | nonstopux*)
15423     libsuff= shlibsuff=
15424     ;;
15425   *)
15426     case $LD in # libtool.m4 will add one of these switches to LD
15427     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15428       libsuff= shlibsuff= libmagic=32-bit;;
15429     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15430       libsuff=32 shlibsuff=N32 libmagic=N32;;
15431     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15432       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15433     *) libsuff= shlibsuff= libmagic=never-match;;
15434     esac
15435     ;;
15436   esac
15437   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15438   shlibpath_overrides_runpath=no
15439   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15440   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15441   hardcode_into_libs=yes
15442   ;;
15443
15444 # No shared lib support for Linux oldld, aout, or coff.
15445 linux*oldld* | linux*aout* | linux*coff*)
15446   dynamic_linker=no
15447   ;;
15448
15449 # This must be Linux ELF.
15450 linux* | k*bsd*-gnu)
15451   version_type=linux
15452   need_lib_prefix=no
15453   need_version=no
15454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455   soname_spec='${libname}${release}${shared_ext}$major'
15456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15457   shlibpath_var=LD_LIBRARY_PATH
15458   shlibpath_overrides_runpath=no
15459   # This implies no fast_install, which is unacceptable.
15460   # Some rework will be needed to allow for fast_install
15461   # before this can be enabled.
15462   hardcode_into_libs=yes
15463
15464   # Append ld.so.conf contents to the search path
15465   if test -f /etc/ld.so.conf; then
15466     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' ' '`
15467     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15468   fi
15469
15470   # We used to test for /lib/ld.so.1 and disable shared libraries on
15471   # powerpc, because MkLinux only supported shared libraries with the
15472   # GNU dynamic linker.  Since this was broken with cross compilers,
15473   # most powerpc-linux boxes support dynamic linking these days and
15474   # people can always --disable-shared, the test was removed, and we
15475   # assume the GNU/Linux dynamic linker is in use.
15476   dynamic_linker='GNU/Linux ld.so'
15477   ;;
15478
15479 netbsdelf*-gnu)
15480   version_type=linux
15481   need_lib_prefix=no
15482   need_version=no
15483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15484   soname_spec='${libname}${release}${shared_ext}$major'
15485   shlibpath_var=LD_LIBRARY_PATH
15486   shlibpath_overrides_runpath=no
15487   hardcode_into_libs=yes
15488   dynamic_linker='NetBSD ld.elf_so'
15489   ;;
15490
15491 netbsd*)
15492   version_type=sunos
15493   need_lib_prefix=no
15494   need_version=no
15495   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15497     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15498     dynamic_linker='NetBSD (a.out) ld.so'
15499   else
15500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15501     soname_spec='${libname}${release}${shared_ext}$major'
15502     dynamic_linker='NetBSD ld.elf_so'
15503   fi
15504   shlibpath_var=LD_LIBRARY_PATH
15505   shlibpath_overrides_runpath=yes
15506   hardcode_into_libs=yes
15507   ;;
15508
15509 newsos6)
15510   version_type=linux
15511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512   shlibpath_var=LD_LIBRARY_PATH
15513   shlibpath_overrides_runpath=yes
15514   ;;
15515
15516 nto-qnx*)
15517   version_type=linux
15518   need_lib_prefix=no
15519   need_version=no
15520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521   soname_spec='${libname}${release}${shared_ext}$major'
15522   shlibpath_var=LD_LIBRARY_PATH
15523   shlibpath_overrides_runpath=yes
15524   ;;
15525
15526 openbsd*)
15527   version_type=sunos
15528   sys_lib_dlsearch_path_spec="/usr/lib"
15529   need_lib_prefix=no
15530   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15531   case $host_os in
15532     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15533     *)                         need_version=no  ;;
15534   esac
15535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15537   shlibpath_var=LD_LIBRARY_PATH
15538   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15539     case $host_os in
15540       openbsd2.[89] | openbsd2.[89].*)
15541         shlibpath_overrides_runpath=no
15542         ;;
15543       *)
15544         shlibpath_overrides_runpath=yes
15545         ;;
15546       esac
15547   else
15548     shlibpath_overrides_runpath=yes
15549   fi
15550   ;;
15551
15552 os2*)
15553   libname_spec='$name'
15554   shrext_cmds=".dll"
15555   need_lib_prefix=no
15556   library_names_spec='$libname${shared_ext} $libname.a'
15557   dynamic_linker='OS/2 ld.exe'
15558   shlibpath_var=LIBPATH
15559   ;;
15560
15561 osf3* | osf4* | osf5*)
15562   version_type=osf
15563   need_lib_prefix=no
15564   need_version=no
15565   soname_spec='${libname}${release}${shared_ext}$major'
15566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567   shlibpath_var=LD_LIBRARY_PATH
15568   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15569   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15570   ;;
15571
15572 solaris*)
15573   version_type=linux
15574   need_lib_prefix=no
15575   need_version=no
15576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577   soname_spec='${libname}${release}${shared_ext}$major'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   shlibpath_overrides_runpath=yes
15580   hardcode_into_libs=yes
15581   # ldd complains unless libraries are executable
15582   postinstall_cmds='chmod +x $lib'
15583   ;;
15584
15585 sunos4*)
15586   version_type=sunos
15587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15588   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15589   shlibpath_var=LD_LIBRARY_PATH
15590   shlibpath_overrides_runpath=yes
15591   if test "$with_gnu_ld" = yes; then
15592     need_lib_prefix=no
15593   fi
15594   need_version=yes
15595   ;;
15596
15597 sysv4 | sysv4.3*)
15598   version_type=linux
15599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600   soname_spec='${libname}${release}${shared_ext}$major'
15601   shlibpath_var=LD_LIBRARY_PATH
15602   case $host_vendor in
15603     sni)
15604       shlibpath_overrides_runpath=no
15605       need_lib_prefix=no
15606       export_dynamic_flag_spec='${wl}-Blargedynsym'
15607       runpath_var=LD_RUN_PATH
15608       ;;
15609     siemens)
15610       need_lib_prefix=no
15611       ;;
15612     motorola)
15613       need_lib_prefix=no
15614       need_version=no
15615       shlibpath_overrides_runpath=no
15616       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15617       ;;
15618   esac
15619   ;;
15620
15621 sysv4*MP*)
15622   if test -d /usr/nec ;then
15623     version_type=linux
15624     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15625     soname_spec='$libname${shared_ext}.$major'
15626     shlibpath_var=LD_LIBRARY_PATH
15627   fi
15628   ;;
15629
15630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15631   version_type=freebsd-elf
15632   need_lib_prefix=no
15633   need_version=no
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15635   soname_spec='${libname}${release}${shared_ext}$major'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   hardcode_into_libs=yes
15638   if test "$with_gnu_ld" = yes; then
15639     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15640     shlibpath_overrides_runpath=no
15641   else
15642     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15643     shlibpath_overrides_runpath=yes
15644     case $host_os in
15645       sco3.2v5*)
15646         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15647         ;;
15648     esac
15649   fi
15650   sys_lib_dlsearch_path_spec='/usr/lib'
15651   ;;
15652
15653 uts4*)
15654   version_type=linux
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656   soname_spec='${libname}${release}${shared_ext}$major'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   ;;
15659
15660 *)
15661   dynamic_linker=no
15662   ;;
15663 esac
15664 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15665 echo "${ECHO_T}$dynamic_linker" >&6; }
15666 test "$dynamic_linker" = no && can_build_shared=no
15667
15668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15669 if test "$GCC" = yes; then
15670   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15671 fi
15672
15673 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15675 hardcode_action_F77=
15676 if test -n "$hardcode_libdir_flag_spec_F77" || \
15677    test -n "$runpath_var_F77" || \
15678    test "X$hardcode_automatic_F77" = "Xyes" ; then
15679
15680   # We can hardcode non-existant directories.
15681   if test "$hardcode_direct_F77" != no &&
15682      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15683      # have to relink, otherwise we might link with an installed library
15684      # when we should be linking with a yet-to-be-installed one
15685      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15686      test "$hardcode_minus_L_F77" != no; then
15687     # Linking always hardcodes the temporary library directory.
15688     hardcode_action_F77=relink
15689   else
15690     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15691     hardcode_action_F77=immediate
15692   fi
15693 else
15694   # We cannot hardcode anything, or else we can only hardcode existing
15695   # directories.
15696   hardcode_action_F77=unsupported
15697 fi
15698 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15699 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15700
15701 if test "$hardcode_action_F77" = relink; then
15702   # Fast installation is not supported
15703   enable_fast_install=no
15704 elif test "$shlibpath_overrides_runpath" = yes ||
15705      test "$enable_shared" = no; then
15706   # Fast installation is not necessary
15707   enable_fast_install=needless
15708 fi
15709
15710
15711 # The else clause should only fire when bootstrapping the
15712 # libtool distribution, otherwise you forgot to ship ltmain.sh
15713 # with your package, and you will get complaints that there are
15714 # no rules to generate ltmain.sh.
15715 if test -f "$ltmain"; then
15716   # See if we are running on zsh, and set the options which allow our commands through
15717   # without removal of \ escapes.
15718   if test -n "${ZSH_VERSION+set}" ; then
15719     setopt NO_GLOB_SUBST
15720   fi
15721   # Now quote all the things that may contain metacharacters while being
15722   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15723   # variables and quote the copies for generation of the libtool script.
15724   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15725     SED SHELL STRIP \
15726     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15727     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15728     deplibs_check_method reload_flag reload_cmds need_locks \
15729     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15730     lt_cv_sys_global_symbol_to_c_name_address \
15731     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15732     old_postinstall_cmds old_postuninstall_cmds \
15733     compiler_F77 \
15734     CC_F77 \
15735     LD_F77 \
15736     lt_prog_compiler_wl_F77 \
15737     lt_prog_compiler_pic_F77 \
15738     lt_prog_compiler_static_F77 \
15739     lt_prog_compiler_no_builtin_flag_F77 \
15740     export_dynamic_flag_spec_F77 \
15741     thread_safe_flag_spec_F77 \
15742     whole_archive_flag_spec_F77 \
15743     enable_shared_with_static_runtimes_F77 \
15744     old_archive_cmds_F77 \
15745     old_archive_from_new_cmds_F77 \
15746     predep_objects_F77 \
15747     postdep_objects_F77 \
15748     predeps_F77 \
15749     postdeps_F77 \
15750     compiler_lib_search_path_F77 \
15751     archive_cmds_F77 \
15752     archive_expsym_cmds_F77 \
15753     postinstall_cmds_F77 \
15754     postuninstall_cmds_F77 \
15755     old_archive_from_expsyms_cmds_F77 \
15756     allow_undefined_flag_F77 \
15757     no_undefined_flag_F77 \
15758     export_symbols_cmds_F77 \
15759     hardcode_libdir_flag_spec_F77 \
15760     hardcode_libdir_flag_spec_ld_F77 \
15761     hardcode_libdir_separator_F77 \
15762     hardcode_automatic_F77 \
15763     module_cmds_F77 \
15764     module_expsym_cmds_F77 \
15765     lt_cv_prog_compiler_c_o_F77 \
15766     exclude_expsyms_F77 \
15767     include_expsyms_F77; do
15768
15769     case $var in
15770     old_archive_cmds_F77 | \
15771     old_archive_from_new_cmds_F77 | \
15772     archive_cmds_F77 | \
15773     archive_expsym_cmds_F77 | \
15774     module_cmds_F77 | \
15775     module_expsym_cmds_F77 | \
15776     old_archive_from_expsyms_cmds_F77 | \
15777     export_symbols_cmds_F77 | \
15778     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15779     postinstall_cmds | postuninstall_cmds | \
15780     old_postinstall_cmds | old_postuninstall_cmds | \
15781     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15782       # Double-quote double-evaled strings.
15783       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15784       ;;
15785     *)
15786       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15787       ;;
15788     esac
15789   done
15790
15791   case $lt_echo in
15792   *'\$0 --fallback-echo"')
15793     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15794     ;;
15795   esac
15796
15797 cfgfile="$ofile"
15798
15799   cat <<__EOF__ >> "$cfgfile"
15800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15801
15802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15803
15804 # Shell to use when invoking shell scripts.
15805 SHELL=$lt_SHELL
15806
15807 # Whether or not to build shared libraries.
15808 build_libtool_libs=$enable_shared
15809
15810 # Whether or not to build static libraries.
15811 build_old_libs=$enable_static
15812
15813 # Whether or not to add -lc for building shared libraries.
15814 build_libtool_need_lc=$archive_cmds_need_lc_F77
15815
15816 # Whether or not to disallow shared libs when runtime libs are static
15817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15818
15819 # Whether or not to optimize for fast installation.
15820 fast_install=$enable_fast_install
15821
15822 # The host system.
15823 host_alias=$host_alias
15824 host=$host
15825 host_os=$host_os
15826
15827 # The build system.
15828 build_alias=$build_alias
15829 build=$build
15830 build_os=$build_os
15831
15832 # An echo program that does not interpret backslashes.
15833 echo=$lt_echo
15834
15835 # The archiver.
15836 AR=$lt_AR
15837 AR_FLAGS=$lt_AR_FLAGS
15838
15839 # A C compiler.
15840 LTCC=$lt_LTCC
15841
15842 # LTCC compiler flags.
15843 LTCFLAGS=$lt_LTCFLAGS
15844
15845 # A language-specific compiler.
15846 CC=$lt_compiler_F77
15847
15848 # Is the compiler the GNU C compiler?
15849 with_gcc=$GCC_F77
15850
15851 # An ERE matcher.
15852 EGREP=$lt_EGREP
15853
15854 # The linker used to build libraries.
15855 LD=$lt_LD_F77
15856
15857 # Whether we need hard or soft links.
15858 LN_S=$lt_LN_S
15859
15860 # A BSD-compatible nm program.
15861 NM=$lt_NM
15862
15863 # A symbol stripping program
15864 STRIP=$lt_STRIP
15865
15866 # Used to examine libraries when file_magic_cmd begins "file"
15867 MAGIC_CMD=$MAGIC_CMD
15868
15869 # Used on cygwin: DLL creation program.
15870 DLLTOOL="$DLLTOOL"
15871
15872 # Used on cygwin: object dumper.
15873 OBJDUMP="$OBJDUMP"
15874
15875 # Used on cygwin: assembler.
15876 AS="$AS"
15877
15878 # The name of the directory that contains temporary libtool files.
15879 objdir=$objdir
15880
15881 # How to create reloadable object files.
15882 reload_flag=$lt_reload_flag
15883 reload_cmds=$lt_reload_cmds
15884
15885 # How to pass a linker flag through the compiler.
15886 wl=$lt_lt_prog_compiler_wl_F77
15887
15888 # Object file suffix (normally "o").
15889 objext="$ac_objext"
15890
15891 # Old archive suffix (normally "a").
15892 libext="$libext"
15893
15894 # Shared library suffix (normally ".so").
15895 shrext_cmds='$shrext_cmds'
15896
15897 # Executable file suffix (normally "").
15898 exeext="$exeext"
15899
15900 # Additional compiler flags for building library objects.
15901 pic_flag=$lt_lt_prog_compiler_pic_F77
15902 pic_mode=$pic_mode
15903
15904 # What is the maximum length of a command?
15905 max_cmd_len=$lt_cv_sys_max_cmd_len
15906
15907 # Does compiler simultaneously support -c and -o options?
15908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15909
15910 # Must we lock files when doing compilation?
15911 need_locks=$lt_need_locks
15912
15913 # Do we need the lib prefix for modules?
15914 need_lib_prefix=$need_lib_prefix
15915
15916 # Do we need a version for libraries?
15917 need_version=$need_version
15918
15919 # Whether dlopen is supported.
15920 dlopen_support=$enable_dlopen
15921
15922 # Whether dlopen of programs is supported.
15923 dlopen_self=$enable_dlopen_self
15924
15925 # Whether dlopen of statically linked programs is supported.
15926 dlopen_self_static=$enable_dlopen_self_static
15927
15928 # Compiler flag to prevent dynamic linking.
15929 link_static_flag=$lt_lt_prog_compiler_static_F77
15930
15931 # Compiler flag to turn off builtin functions.
15932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15933
15934 # Compiler flag to allow reflexive dlopens.
15935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15936
15937 # Compiler flag to generate shared objects directly from archives.
15938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15939
15940 # Compiler flag to generate thread-safe objects.
15941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15942
15943 # Library versioning type.
15944 version_type=$version_type
15945
15946 # Format of library name prefix.
15947 libname_spec=$lt_libname_spec
15948
15949 # List of archive names.  First name is the real one, the rest are links.
15950 # The last name is the one that the linker finds with -lNAME.
15951 library_names_spec=$lt_library_names_spec
15952
15953 # The coded name of the library, if different from the real name.
15954 soname_spec=$lt_soname_spec
15955
15956 # Commands used to build and install an old-style archive.
15957 RANLIB=$lt_RANLIB
15958 old_archive_cmds=$lt_old_archive_cmds_F77
15959 old_postinstall_cmds=$lt_old_postinstall_cmds
15960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15961
15962 # Create an old-style archive from a shared archive.
15963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15964
15965 # Create a temporary old-style archive to link instead of a shared archive.
15966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15967
15968 # Commands used to build and install a shared archive.
15969 archive_cmds=$lt_archive_cmds_F77
15970 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15971 postinstall_cmds=$lt_postinstall_cmds
15972 postuninstall_cmds=$lt_postuninstall_cmds
15973
15974 # Commands used to build a loadable module (assumed same as above if empty)
15975 module_cmds=$lt_module_cmds_F77
15976 module_expsym_cmds=$lt_module_expsym_cmds_F77
15977
15978 # Commands to strip libraries.
15979 old_striplib=$lt_old_striplib
15980 striplib=$lt_striplib
15981
15982 # Dependencies to place before the objects being linked to create a
15983 # shared library.
15984 predep_objects=$lt_predep_objects_F77
15985
15986 # Dependencies to place after the objects being linked to create a
15987 # shared library.
15988 postdep_objects=$lt_postdep_objects_F77
15989
15990 # Dependencies to place before the objects being linked to create a
15991 # shared library.
15992 predeps=$lt_predeps_F77
15993
15994 # Dependencies to place after the objects being linked to create a
15995 # shared library.
15996 postdeps=$lt_postdeps_F77
15997
15998 # The library search path used internally by the compiler when linking
15999 # a shared library.
16000 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16001
16002 # Method to check whether dependent libraries are shared objects.
16003 deplibs_check_method=$lt_deplibs_check_method
16004
16005 # Command to use when deplibs_check_method == file_magic.
16006 file_magic_cmd=$lt_file_magic_cmd
16007
16008 # Flag that allows shared libraries with undefined symbols to be built.
16009 allow_undefined_flag=$lt_allow_undefined_flag_F77
16010
16011 # Flag that forces no undefined symbols.
16012 no_undefined_flag=$lt_no_undefined_flag_F77
16013
16014 # Commands used to finish a libtool library installation in a directory.
16015 finish_cmds=$lt_finish_cmds
16016
16017 # Same as above, but a single script fragment to be evaled but not shown.
16018 finish_eval=$lt_finish_eval
16019
16020 # Take the output of nm and produce a listing of raw symbols and C names.
16021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16022
16023 # Transform the output of nm in a proper C declaration
16024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16025
16026 # Transform the output of nm in a C name address pair
16027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16028
16029 # This is the shared library runtime path variable.
16030 runpath_var=$runpath_var
16031
16032 # This is the shared library path variable.
16033 shlibpath_var=$shlibpath_var
16034
16035 # Is shlibpath searched before the hard-coded library search path?
16036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16037
16038 # How to hardcode a shared library path into an executable.
16039 hardcode_action=$hardcode_action_F77
16040
16041 # Whether we should hardcode library paths into libraries.
16042 hardcode_into_libs=$hardcode_into_libs
16043
16044 # Flag to hardcode \$libdir into a binary during linking.
16045 # This must work even if \$libdir does not exist.
16046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16047
16048 # If ld is used when linking, flag to hardcode \$libdir into
16049 # a binary during linking. This must work even if \$libdir does
16050 # not exist.
16051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16052
16053 # Whether we need a single -rpath flag with a separated argument.
16054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16055
16056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16057 # resulting binary.
16058 hardcode_direct=$hardcode_direct_F77
16059
16060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16061 # resulting binary.
16062 hardcode_minus_L=$hardcode_minus_L_F77
16063
16064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16065 # the resulting binary.
16066 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16067
16068 # Set to yes if building a shared library automatically hardcodes DIR into the library
16069 # and all subsequent libraries and executables linked against it.
16070 hardcode_automatic=$hardcode_automatic_F77
16071
16072 # Variables whose values should be saved in libtool wrapper scripts and
16073 # restored at relink time.
16074 variables_saved_for_relink="$variables_saved_for_relink"
16075
16076 # Whether libtool must link a program against all its dependency libraries.
16077 link_all_deplibs=$link_all_deplibs_F77
16078
16079 # Compile-time system search path for libraries
16080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16081
16082 # Run-time system search path for libraries
16083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16084
16085 # Fix the shell variable \$srcfile for the compiler.
16086 fix_srcfile_path="$fix_srcfile_path_F77"
16087
16088 # Set to yes if exported symbols are required.
16089 always_export_symbols=$always_export_symbols_F77
16090
16091 # The commands to list exported symbols.
16092 export_symbols_cmds=$lt_export_symbols_cmds_F77
16093
16094 # The commands to extract the exported symbol list from a shared archive.
16095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16096
16097 # Symbols that should not be listed in the preloaded symbols.
16098 exclude_expsyms=$lt_exclude_expsyms_F77
16099
16100 # Symbols that must always be exported.
16101 include_expsyms=$lt_include_expsyms_F77
16102
16103 # ### END LIBTOOL TAG CONFIG: $tagname
16104
16105 __EOF__
16106
16107
16108 else
16109   # If there is no Makefile yet, we rely on a make rule to execute
16110   # `config.status --recheck' to rerun these tests and create the
16111   # libtool script then.
16112   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16113   if test -f "$ltmain_in"; then
16114     test -f Makefile && make "$ltmain"
16115   fi
16116 fi
16117
16118
16119 ac_ext=c
16120 ac_cpp='$CPP $CPPFLAGS'
16121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16124
16125 CC="$lt_save_CC"
16126
16127         else
16128           tagname=""
16129         fi
16130         ;;
16131
16132       GCJ)
16133         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16134
16135
16136 # Source file extension for Java test sources.
16137 ac_ext=java
16138
16139 # Object file extension for compiled Java test sources.
16140 objext=o
16141 objext_GCJ=$objext
16142
16143 # Code to be used in simple compile tests
16144 lt_simple_compile_test_code="class foo {}\n"
16145
16146 # Code to be used in simple link tests
16147 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16148
16149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16150
16151 # If no C compiler was specified, use CC.
16152 LTCC=${LTCC-"$CC"}
16153
16154 # If no C compiler flags were specified, use CFLAGS.
16155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16156
16157 # Allow CC to be a program name with arguments.
16158 compiler=$CC
16159
16160
16161 # save warnings/boilerplate of simple test code
16162 ac_outfile=conftest.$ac_objext
16163 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16164 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16165 _lt_compiler_boilerplate=`cat conftest.err`
16166 $rm conftest*
16167
16168 ac_outfile=conftest.$ac_objext
16169 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16170 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16171 _lt_linker_boilerplate=`cat conftest.err`
16172 $rm conftest*
16173
16174
16175 # Allow CC to be a program name with arguments.
16176 lt_save_CC="$CC"
16177 CC=${GCJ-"gcj"}
16178 compiler=$CC
16179 compiler_GCJ=$CC
16180 for cc_temp in $compiler""; do
16181   case $cc_temp in
16182     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16183     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16184     \-*) ;;
16185     *) break;;
16186   esac
16187 done
16188 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16189
16190
16191 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16192 archive_cmds_need_lc_GCJ=no
16193
16194 old_archive_cmds_GCJ=$old_archive_cmds
16195
16196
16197 lt_prog_compiler_no_builtin_flag_GCJ=
16198
16199 if test "$GCC" = yes; then
16200   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16201
16202
16203 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16204 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16205 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208   lt_cv_prog_compiler_rtti_exceptions=no
16209   ac_outfile=conftest.$ac_objext
16210    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16211    lt_compiler_flag="-fno-rtti -fno-exceptions"
16212    # Insert the option either (1) after the last *FLAGS variable, or
16213    # (2) before a word containing "conftest.", or (3) at the end.
16214    # Note that $ac_compile itself does not contain backslashes and begins
16215    # with a dollar sign (not a hyphen), so the echo should work correctly.
16216    # The option is referenced via a variable to avoid confusing sed.
16217    lt_compile=`echo "$ac_compile" | $SED \
16218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16220    -e 's:$: $lt_compiler_flag:'`
16221    (eval echo "\"\$as_me:16221: $lt_compile\"" >&5)
16222    (eval "$lt_compile" 2>conftest.err)
16223    ac_status=$?
16224    cat conftest.err >&5
16225    echo "$as_me:16225: \$? = $ac_status" >&5
16226    if (exit $ac_status) && test -s "$ac_outfile"; then
16227      # The compiler can only warn and ignore the option if not recognized
16228      # So say no if there are warnings other than the usual output.
16229      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16230      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16231      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16232        lt_cv_prog_compiler_rtti_exceptions=yes
16233      fi
16234    fi
16235    $rm conftest*
16236
16237 fi
16238 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16239 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16240
16241 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16242     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16243 else
16244     :
16245 fi
16246
16247 fi
16248
16249 lt_prog_compiler_wl_GCJ=
16250 lt_prog_compiler_pic_GCJ=
16251 lt_prog_compiler_static_GCJ=
16252
16253 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16255
16256   if test "$GCC" = yes; then
16257     lt_prog_compiler_wl_GCJ='-Wl,'
16258     lt_prog_compiler_static_GCJ='-static'
16259
16260     case $host_os in
16261       aix*)
16262       # All AIX code is PIC.
16263       if test "$host_cpu" = ia64; then
16264         # AIX 5 now supports IA64 processor
16265         lt_prog_compiler_static_GCJ='-Bstatic'
16266       fi
16267       ;;
16268
16269     amigaos*)
16270       # FIXME: we need at least 68020 code to build shared libraries, but
16271       # adding the `-m68020' flag to GCC prevents building anything better,
16272       # like `-m68040'.
16273       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16274       ;;
16275
16276     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16277       # PIC is the default for these OSes.
16278       ;;
16279
16280     mingw* | pw32* | os2*)
16281       # This hack is so that the source file can tell whether it is being
16282       # built for inclusion in a dll (and should export symbols for example).
16283       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16284       ;;
16285
16286     darwin* | rhapsody*)
16287       # PIC is the default on this platform
16288       # Common symbols not allowed in MH_DYLIB files
16289       lt_prog_compiler_pic_GCJ='-fno-common'
16290       ;;
16291
16292     interix3*)
16293       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16294       # Instead, we relocate shared libraries at runtime.
16295       ;;
16296
16297     msdosdjgpp*)
16298       # Just because we use GCC doesn't mean we suddenly get shared libraries
16299       # on systems that don't support them.
16300       lt_prog_compiler_can_build_shared_GCJ=no
16301       enable_shared=no
16302       ;;
16303
16304     sysv4*MP*)
16305       if test -d /usr/nec; then
16306         lt_prog_compiler_pic_GCJ=-Kconform_pic
16307       fi
16308       ;;
16309
16310     hpux*)
16311       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16312       # not for PA HP-UX.
16313       case $host_cpu in
16314       hppa*64*|ia64*)
16315         # +Z the default
16316         ;;
16317       *)
16318         lt_prog_compiler_pic_GCJ='-fPIC'
16319         ;;
16320       esac
16321       ;;
16322
16323     *)
16324       lt_prog_compiler_pic_GCJ='-fPIC'
16325       ;;
16326     esac
16327   else
16328     # PORTME Check for flag to pass linker flags through the system compiler.
16329     case $host_os in
16330     aix*)
16331       lt_prog_compiler_wl_GCJ='-Wl,'
16332       if test "$host_cpu" = ia64; then
16333         # AIX 5 now supports IA64 processor
16334         lt_prog_compiler_static_GCJ='-Bstatic'
16335       else
16336         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16337       fi
16338       ;;
16339       darwin*)
16340         # PIC is the default on this platform
16341         # Common symbols not allowed in MH_DYLIB files
16342        case $cc_basename in
16343          xlc*)
16344          lt_prog_compiler_pic_GCJ='-qnocommon'
16345          lt_prog_compiler_wl_GCJ='-Wl,'
16346          ;;
16347        esac
16348        ;;
16349
16350     mingw* | pw32* | os2*)
16351       # This hack is so that the source file can tell whether it is being
16352       # built for inclusion in a dll (and should export symbols for example).
16353       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16354       ;;
16355
16356     hpux9* | hpux10* | hpux11*)
16357       lt_prog_compiler_wl_GCJ='-Wl,'
16358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16359       # not for PA HP-UX.
16360       case $host_cpu in
16361       hppa*64*|ia64*)
16362         # +Z the default
16363         ;;
16364       *)
16365         lt_prog_compiler_pic_GCJ='+Z'
16366         ;;
16367       esac
16368       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16369       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16370       ;;
16371
16372     irix5* | irix6* | nonstopux*)
16373       lt_prog_compiler_wl_GCJ='-Wl,'
16374       # PIC (with -KPIC) is the default.
16375       lt_prog_compiler_static_GCJ='-non_shared'
16376       ;;
16377
16378     newsos6)
16379       lt_prog_compiler_pic_GCJ='-KPIC'
16380       lt_prog_compiler_static_GCJ='-Bstatic'
16381       ;;
16382
16383     linux* | k*bsd*-gnu)
16384       case $cc_basename in
16385       icc* | ecc*)
16386         lt_prog_compiler_wl_GCJ='-Wl,'
16387         lt_prog_compiler_pic_GCJ='-KPIC'
16388         lt_prog_compiler_static_GCJ='-static'
16389         ;;
16390       pgcc* | pgf77* | pgf90* | pgf95*)
16391         # Portland Group compilers (*not* the Pentium gcc compiler,
16392         # which looks to be a dead project)
16393         lt_prog_compiler_wl_GCJ='-Wl,'
16394         lt_prog_compiler_pic_GCJ='-fpic'
16395         lt_prog_compiler_static_GCJ='-Bstatic'
16396         ;;
16397       ccc*)
16398         lt_prog_compiler_wl_GCJ='-Wl,'
16399         # All Alpha code is PIC.
16400         lt_prog_compiler_static_GCJ='-non_shared'
16401         ;;
16402       esac
16403       ;;
16404
16405     osf3* | osf4* | osf5*)
16406       lt_prog_compiler_wl_GCJ='-Wl,'
16407       # All OSF/1 code is PIC.
16408       lt_prog_compiler_static_GCJ='-non_shared'
16409       ;;
16410
16411     solaris*)
16412       lt_prog_compiler_pic_GCJ='-KPIC'
16413       lt_prog_compiler_static_GCJ='-Bstatic'
16414       case $cc_basename in
16415       f77* | f90* | f95*)
16416         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16417       *)
16418         lt_prog_compiler_wl_GCJ='-Wl,';;
16419       esac
16420       ;;
16421
16422     sunos4*)
16423       lt_prog_compiler_wl_GCJ='-Qoption ld '
16424       lt_prog_compiler_pic_GCJ='-PIC'
16425       lt_prog_compiler_static_GCJ='-Bstatic'
16426       ;;
16427
16428     sysv4 | sysv4.2uw2* | sysv4.3*)
16429       lt_prog_compiler_wl_GCJ='-Wl,'
16430       lt_prog_compiler_pic_GCJ='-KPIC'
16431       lt_prog_compiler_static_GCJ='-Bstatic'
16432       ;;
16433
16434     sysv4*MP*)
16435       if test -d /usr/nec ;then
16436         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16437         lt_prog_compiler_static_GCJ='-Bstatic'
16438       fi
16439       ;;
16440
16441     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16442       lt_prog_compiler_wl_GCJ='-Wl,'
16443       lt_prog_compiler_pic_GCJ='-KPIC'
16444       lt_prog_compiler_static_GCJ='-Bstatic'
16445       ;;
16446
16447     unicos*)
16448       lt_prog_compiler_wl_GCJ='-Wl,'
16449       lt_prog_compiler_can_build_shared_GCJ=no
16450       ;;
16451
16452     uts4*)
16453       lt_prog_compiler_pic_GCJ='-pic'
16454       lt_prog_compiler_static_GCJ='-Bstatic'
16455       ;;
16456
16457     *)
16458       lt_prog_compiler_can_build_shared_GCJ=no
16459       ;;
16460     esac
16461   fi
16462
16463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16464 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16465
16466 #
16467 # Check to make sure the PIC flag actually works.
16468 #
16469 if test -n "$lt_prog_compiler_pic_GCJ"; then
16470
16471 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16472 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16473 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16474   echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476   lt_prog_compiler_pic_works_GCJ=no
16477   ac_outfile=conftest.$ac_objext
16478    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16479    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16480    # Insert the option either (1) after the last *FLAGS variable, or
16481    # (2) before a word containing "conftest.", or (3) at the end.
16482    # Note that $ac_compile itself does not contain backslashes and begins
16483    # with a dollar sign (not a hyphen), so the echo should work correctly.
16484    # The option is referenced via a variable to avoid confusing sed.
16485    lt_compile=`echo "$ac_compile" | $SED \
16486    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16488    -e 's:$: $lt_compiler_flag:'`
16489    (eval echo "\"\$as_me:16489: $lt_compile\"" >&5)
16490    (eval "$lt_compile" 2>conftest.err)
16491    ac_status=$?
16492    cat conftest.err >&5
16493    echo "$as_me:16493: \$? = $ac_status" >&5
16494    if (exit $ac_status) && test -s "$ac_outfile"; then
16495      # The compiler can only warn and ignore the option if not recognized
16496      # So say no if there are warnings other than the usual output.
16497      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16498      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16499      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16500        lt_prog_compiler_pic_works_GCJ=yes
16501      fi
16502    fi
16503    $rm conftest*
16504
16505 fi
16506 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16507 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16508
16509 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16510     case $lt_prog_compiler_pic_GCJ in
16511      "" | " "*) ;;
16512      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16513      esac
16514 else
16515     lt_prog_compiler_pic_GCJ=
16516      lt_prog_compiler_can_build_shared_GCJ=no
16517 fi
16518
16519 fi
16520 case $host_os in
16521   # For platforms which do not support PIC, -DPIC is meaningless:
16522   *djgpp*)
16523     lt_prog_compiler_pic_GCJ=
16524     ;;
16525   *)
16526     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16527     ;;
16528 esac
16529
16530 #
16531 # Check to make sure the static flag actually works.
16532 #
16533 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16534 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16535 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16536 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539   lt_prog_compiler_static_works_GCJ=no
16540    save_LDFLAGS="$LDFLAGS"
16541    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16542    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16543    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16544      # The linker can only warn and ignore the option if not recognized
16545      # So say no if there are warnings
16546      if test -s conftest.err; then
16547        # Append any errors to the config.log.
16548        cat conftest.err 1>&5
16549        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16550        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16551        if diff conftest.exp conftest.er2 >/dev/null; then
16552          lt_prog_compiler_static_works_GCJ=yes
16553        fi
16554      else
16555        lt_prog_compiler_static_works_GCJ=yes
16556      fi
16557    fi
16558    $rm conftest*
16559    LDFLAGS="$save_LDFLAGS"
16560
16561 fi
16562 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16563 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16564
16565 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16566     :
16567 else
16568     lt_prog_compiler_static_GCJ=
16569 fi
16570
16571
16572 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16573 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16574 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   lt_cv_prog_compiler_c_o_GCJ=no
16578    $rm -r conftest 2>/dev/null
16579    mkdir conftest
16580    cd conftest
16581    mkdir out
16582    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16583
16584    lt_compiler_flag="-o out/conftest2.$ac_objext"
16585    # Insert the option either (1) after the last *FLAGS variable, or
16586    # (2) before a word containing "conftest.", or (3) at the end.
16587    # Note that $ac_compile itself does not contain backslashes and begins
16588    # with a dollar sign (not a hyphen), so the echo should work correctly.
16589    lt_compile=`echo "$ac_compile" | $SED \
16590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16592    -e 's:$: $lt_compiler_flag:'`
16593    (eval echo "\"\$as_me:16593: $lt_compile\"" >&5)
16594    (eval "$lt_compile" 2>out/conftest.err)
16595    ac_status=$?
16596    cat out/conftest.err >&5
16597    echo "$as_me:16597: \$? = $ac_status" >&5
16598    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16599    then
16600      # The compiler can only warn and ignore the option if not recognized
16601      # So say no if there are warnings
16602      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16603      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16604      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16605        lt_cv_prog_compiler_c_o_GCJ=yes
16606      fi
16607    fi
16608    chmod u+w . 2>&5
16609    $rm conftest*
16610    # SGI C++ compiler will create directory out/ii_files/ for
16611    # template instantiation
16612    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16613    $rm out/* && rmdir out
16614    cd ..
16615    rmdir conftest
16616    $rm conftest*
16617
16618 fi
16619 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16621
16622
16623 hard_links="nottested"
16624 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16625   # do not overwrite the value of need_locks provided by the user
16626   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16628   hard_links=yes
16629   $rm conftest*
16630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631   touch conftest.a
16632   ln conftest.a conftest.b 2>&5 || hard_links=no
16633   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16634   { echo "$as_me:$LINENO: result: $hard_links" >&5
16635 echo "${ECHO_T}$hard_links" >&6; }
16636   if test "$hard_links" = no; then
16637     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16639     need_locks=warn
16640   fi
16641 else
16642   need_locks=no
16643 fi
16644
16645 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16647
16648   runpath_var=
16649   allow_undefined_flag_GCJ=
16650   enable_shared_with_static_runtimes_GCJ=no
16651   archive_cmds_GCJ=
16652   archive_expsym_cmds_GCJ=
16653   old_archive_From_new_cmds_GCJ=
16654   old_archive_from_expsyms_cmds_GCJ=
16655   export_dynamic_flag_spec_GCJ=
16656   whole_archive_flag_spec_GCJ=
16657   thread_safe_flag_spec_GCJ=
16658   hardcode_libdir_flag_spec_GCJ=
16659   hardcode_libdir_flag_spec_ld_GCJ=
16660   hardcode_libdir_separator_GCJ=
16661   hardcode_direct_GCJ=no
16662   hardcode_minus_L_GCJ=no
16663   hardcode_shlibpath_var_GCJ=unsupported
16664   link_all_deplibs_GCJ=unknown
16665   hardcode_automatic_GCJ=no
16666   module_cmds_GCJ=
16667   module_expsym_cmds_GCJ=
16668   always_export_symbols_GCJ=no
16669   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16670   # include_expsyms should be a list of space-separated symbols to be *always*
16671   # included in the symbol list
16672   include_expsyms_GCJ=
16673   # exclude_expsyms can be an extended regexp of symbols to exclude
16674   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16675   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16676   # as well as any symbol that contains `d'.
16677   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16678   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16679   # platforms (ab)use it in PIC code, but their linkers get confused if
16680   # the symbol is explicitly referenced.  Since portable code cannot
16681   # rely on this symbol name, it's probably fine to never include it in
16682   # preloaded symbol tables.
16683   extract_expsyms_cmds=
16684   # Just being paranoid about ensuring that cc_basename is set.
16685   for cc_temp in $compiler""; do
16686   case $cc_temp in
16687     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16688     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16689     \-*) ;;
16690     *) break;;
16691   esac
16692 done
16693 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16694
16695   case $host_os in
16696   cygwin* | mingw* | pw32*)
16697     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16698     # When not using gcc, we currently assume that we are using
16699     # Microsoft Visual C++.
16700     if test "$GCC" != yes; then
16701       with_gnu_ld=no
16702     fi
16703     ;;
16704   interix*)
16705     # we just hope/assume this is gcc and not c89 (= MSVC++)
16706     with_gnu_ld=yes
16707     ;;
16708   openbsd*)
16709     with_gnu_ld=no
16710     ;;
16711   esac
16712
16713   ld_shlibs_GCJ=yes
16714   if test "$with_gnu_ld" = yes; then
16715     # If archive_cmds runs LD, not CC, wlarc should be empty
16716     wlarc='${wl}'
16717
16718     # Set some defaults for GNU ld with shared library support. These
16719     # are reset later if shared libraries are not supported. Putting them
16720     # here allows them to be overridden if necessary.
16721     runpath_var=LD_RUN_PATH
16722     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16723     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16724     # ancient GNU ld didn't support --whole-archive et. al.
16725     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16726         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16727       else
16728         whole_archive_flag_spec_GCJ=
16729     fi
16730     supports_anon_versioning=no
16731     case `$LD -v 2>/dev/null` in
16732       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16733       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16734       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16735       *\ 2.11.*) ;; # other 2.11 versions
16736       *) supports_anon_versioning=yes ;;
16737     esac
16738
16739     # See if GNU ld supports shared libraries.
16740     case $host_os in
16741     aix3* | aix4* | aix5*)
16742       # On AIX/PPC, the GNU linker is very broken
16743       if test "$host_cpu" != ia64; then
16744         ld_shlibs_GCJ=no
16745         cat <<EOF 1>&2
16746
16747 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16748 *** to be unable to reliably create shared libraries on AIX.
16749 *** Therefore, libtool is disabling shared libraries support.  If you
16750 *** really care for shared libraries, you may want to modify your PATH
16751 *** so that a non-GNU linker is found, and then restart.
16752
16753 EOF
16754       fi
16755       ;;
16756
16757     amigaos*)
16758       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)'
16759       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16760       hardcode_minus_L_GCJ=yes
16761
16762       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16763       # that the semantics of dynamic libraries on AmigaOS, at least up
16764       # to version 4, is to share data among multiple programs linked
16765       # with the same dynamic library.  Since this doesn't match the
16766       # behavior of shared libraries on other platforms, we can't use
16767       # them.
16768       ld_shlibs_GCJ=no
16769       ;;
16770
16771     beos*)
16772       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16773         allow_undefined_flag_GCJ=unsupported
16774         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16775         # support --undefined.  This deserves some investigation.  FIXME
16776         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16777       else
16778         ld_shlibs_GCJ=no
16779       fi
16780       ;;
16781
16782     cygwin* | mingw* | pw32*)
16783       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16784       # as there is no search path for DLLs.
16785       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16786       allow_undefined_flag_GCJ=unsupported
16787       always_export_symbols_GCJ=no
16788       enable_shared_with_static_runtimes_GCJ=yes
16789       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16790
16791       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16792         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16793         # If the export-symbols file already is a .def file (1st line
16794         # is EXPORTS), use it as is; otherwise, prepend...
16795         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16796           cp $export_symbols $output_objdir/$soname.def;
16797         else
16798           echo EXPORTS > $output_objdir/$soname.def;
16799           cat $export_symbols >> $output_objdir/$soname.def;
16800         fi~
16801         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16802       else
16803         ld_shlibs_GCJ=no
16804       fi
16805       ;;
16806
16807     interix3*)
16808       hardcode_direct_GCJ=no
16809       hardcode_shlibpath_var_GCJ=no
16810       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16811       export_dynamic_flag_spec_GCJ='${wl}-E'
16812       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16813       # Instead, shared libraries are loaded at an image base (0x10000000 by
16814       # default) and relocated if they conflict, which is a slow very memory
16815       # consuming and fragmenting process.  To avoid this, we pick a random,
16816       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16817       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16818       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'
16819       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'
16820       ;;
16821
16822     linux* | k*bsd*-gnu)
16823       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16824         tmp_addflag=
16825         case $cc_basename,$host_cpu in
16826         pgcc*)                          # Portland Group C compiler
16827           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'
16828           tmp_addflag=' $pic_flag'
16829           ;;
16830         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16831           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'
16832           tmp_addflag=' $pic_flag -Mnomain' ;;
16833         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16834           tmp_addflag=' -i_dynamic' ;;
16835         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16836           tmp_addflag=' -i_dynamic -nofor_main' ;;
16837         ifc* | ifort*)                  # Intel Fortran compiler
16838           tmp_addflag=' -nofor_main' ;;
16839         esac
16840         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16841
16842         if test $supports_anon_versioning = yes; then
16843           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16844   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16845   $echo "local: *; };" >> $output_objdir/$libname.ver~
16846           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16847         fi
16848         link_all_deplibs_GCJ=no
16849       else
16850         ld_shlibs_GCJ=no
16851       fi
16852       ;;
16853
16854     netbsd* | netbsdelf*-gnu)
16855       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16856         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16857         wlarc=
16858       else
16859         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16860         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16861       fi
16862       ;;
16863
16864     solaris*)
16865       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16866         ld_shlibs_GCJ=no
16867         cat <<EOF 1>&2
16868
16869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16870 *** create shared libraries on Solaris systems.  Therefore, libtool
16871 *** is disabling shared libraries support.  We urge you to upgrade GNU
16872 *** binutils to release 2.9.1 or newer.  Another option is to modify
16873 *** your PATH or compiler configuration so that the native linker is
16874 *** used, and then restart.
16875
16876 EOF
16877       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16878         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16879         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16880       else
16881         ld_shlibs_GCJ=no
16882       fi
16883       ;;
16884
16885     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16886       case `$LD -v 2>&1` in
16887         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16888         ld_shlibs_GCJ=no
16889         cat <<_LT_EOF 1>&2
16890
16891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16892 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16893 *** is disabling shared libraries support.  We urge you to upgrade GNU
16894 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16895 *** your PATH or compiler configuration so that the native linker is
16896 *** used, and then restart.
16897
16898 _LT_EOF
16899         ;;
16900         *)
16901           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16902             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16903             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16904             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16905           else
16906             ld_shlibs_GCJ=no
16907           fi
16908         ;;
16909       esac
16910       ;;
16911
16912     sunos4*)
16913       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16914       wlarc=
16915       hardcode_direct_GCJ=yes
16916       hardcode_shlibpath_var_GCJ=no
16917       ;;
16918
16919     *)
16920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16921         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16922         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16923       else
16924         ld_shlibs_GCJ=no
16925       fi
16926       ;;
16927     esac
16928
16929     if test "$ld_shlibs_GCJ" = no; then
16930       runpath_var=
16931       hardcode_libdir_flag_spec_GCJ=
16932       export_dynamic_flag_spec_GCJ=
16933       whole_archive_flag_spec_GCJ=
16934     fi
16935   else
16936     # PORTME fill in a description of your system's linker (not GNU ld)
16937     case $host_os in
16938     aix3*)
16939       allow_undefined_flag_GCJ=unsupported
16940       always_export_symbols_GCJ=yes
16941       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'
16942       # Note: this linker hardcodes the directories in LIBPATH if there
16943       # are no directories specified by -L.
16944       hardcode_minus_L_GCJ=yes
16945       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16946         # Neither direct hardcoding nor static linking is supported with a
16947         # broken collect2.
16948         hardcode_direct_GCJ=unsupported
16949       fi
16950       ;;
16951
16952     aix4* | aix5*)
16953       if test "$host_cpu" = ia64; then
16954         # On IA64, the linker does run time linking by default, so we don't
16955         # have to do anything special.
16956         aix_use_runtimelinking=no
16957         exp_sym_flag='-Bexport'
16958         no_entry_flag=""
16959       else
16960         # If we're using GNU nm, then we don't want the "-C" option.
16961         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16962         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16963           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'
16964         else
16965           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'
16966         fi
16967         aix_use_runtimelinking=no
16968
16969         # Test if we are trying to use run time linking or normal
16970         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16971         # need to do runtime linking.
16972         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16973           for ld_flag in $LDFLAGS; do
16974           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16975             aix_use_runtimelinking=yes
16976             break
16977           fi
16978           done
16979           ;;
16980         esac
16981
16982         exp_sym_flag='-bexport'
16983         no_entry_flag='-bnoentry'
16984       fi
16985
16986       # When large executables or shared objects are built, AIX ld can
16987       # have problems creating the table of contents.  If linking a library
16988       # or program results in "error TOC overflow" add -mminimal-toc to
16989       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16990       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16991
16992       archive_cmds_GCJ=''
16993       hardcode_direct_GCJ=yes
16994       hardcode_libdir_separator_GCJ=':'
16995       link_all_deplibs_GCJ=yes
16996
16997       if test "$GCC" = yes; then
16998         case $host_os in aix4.[012]|aix4.[012].*)
16999         # We only want to do this on AIX 4.2 and lower, the check
17000         # below for broken collect2 doesn't work under 4.3+
17001           collect2name=`${CC} -print-prog-name=collect2`
17002           if test -f "$collect2name" && \
17003            strings "$collect2name" | grep resolve_lib_name >/dev/null
17004           then
17005           # We have reworked collect2
17006           hardcode_direct_GCJ=yes
17007           else
17008           # We have old collect2
17009           hardcode_direct_GCJ=unsupported
17010           # It fails to find uninstalled libraries when the uninstalled
17011           # path is not listed in the libpath.  Setting hardcode_minus_L
17012           # to unsupported forces relinking
17013           hardcode_minus_L_GCJ=yes
17014           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17015           hardcode_libdir_separator_GCJ=
17016           fi
17017           ;;
17018         esac
17019         shared_flag='-shared'
17020         if test "$aix_use_runtimelinking" = yes; then
17021           shared_flag="$shared_flag "'${wl}-G'
17022         fi
17023       else
17024         # not using gcc
17025         if test "$host_cpu" = ia64; then
17026         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17027         # chokes on -Wl,-G. The following line is correct:
17028           shared_flag='-G'
17029         else
17030           if test "$aix_use_runtimelinking" = yes; then
17031             shared_flag='${wl}-G'
17032           else
17033             shared_flag='${wl}-bM:SRE'
17034           fi
17035         fi
17036       fi
17037
17038       # It seems that -bexpall does not export symbols beginning with
17039       # underscore (_), so it is better to generate a list of symbols to export.
17040       always_export_symbols_GCJ=yes
17041       if test "$aix_use_runtimelinking" = yes; then
17042         # Warning - without using the other runtime loading flags (-brtl),
17043         # -berok will link without error, but may produce a broken library.
17044         allow_undefined_flag_GCJ='-berok'
17045        # Determine the default libpath from the value encoded in an empty executable.
17046        cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052
17053 int
17054 main ()
17055 {
17056
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_link") 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } && {
17075          test -z "$ac_c_werror_flag" ||
17076          test ! -s conftest.err
17077        } && test -s conftest$ac_exeext &&
17078        $as_test_x conftest$ac_exeext; then
17079
17080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17081 }'`
17082 # Check for a 64-bit object if we didn't find anything.
17083 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; }
17084 }'`; fi
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17093       conftest$ac_exeext conftest.$ac_ext
17094 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17095
17096        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17097         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"
17098        else
17099         if test "$host_cpu" = ia64; then
17100           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17101           allow_undefined_flag_GCJ="-z nodefs"
17102           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"
17103         else
17104          # Determine the default libpath from the value encoded in an empty executable.
17105          cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111
17112 int
17113 main ()
17114 {
17115
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124   *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127   (eval "$ac_link") 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } && {
17134          test -z "$ac_c_werror_flag" ||
17135          test ! -s conftest.err
17136        } && test -s conftest$ac_exeext &&
17137        $as_test_x conftest$ac_exeext; then
17138
17139 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17140 }'`
17141 # Check for a 64-bit object if we didn't find anything.
17142 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; }
17143 }'`; fi
17144 else
17145   echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148
17149 fi
17150
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152       conftest$ac_exeext conftest.$ac_ext
17153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17154
17155          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17156           # Warning - without using the other run time loading flags,
17157           # -berok will link without error, but may produce a broken library.
17158           no_undefined_flag_GCJ=' ${wl}-bernotok'
17159           allow_undefined_flag_GCJ=' ${wl}-berok'
17160           # Exported symbols can be pulled into shared objects from archives
17161           whole_archive_flag_spec_GCJ='$convenience'
17162           archive_cmds_need_lc_GCJ=yes
17163           # This is similar to how AIX traditionally builds its shared libraries.
17164           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'
17165         fi
17166       fi
17167       ;;
17168
17169     amigaos*)
17170       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)'
17171       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17172       hardcode_minus_L_GCJ=yes
17173       # see comment about different semantics on the GNU ld section
17174       ld_shlibs_GCJ=no
17175       ;;
17176
17177     bsdi[45]*)
17178       export_dynamic_flag_spec_GCJ=-rdynamic
17179       ;;
17180
17181     cygwin* | mingw* | pw32*)
17182       # When not using gcc, we currently assume that we are using
17183       # Microsoft Visual C++.
17184       # hardcode_libdir_flag_spec is actually meaningless, as there is
17185       # no search path for DLLs.
17186       hardcode_libdir_flag_spec_GCJ=' '
17187       allow_undefined_flag_GCJ=unsupported
17188       # Tell ltmain to make .lib files, not .a files.
17189       libext=lib
17190       # Tell ltmain to make .dll files, not .so files.
17191       shrext_cmds=".dll"
17192       # FIXME: Setting linknames here is a bad hack.
17193       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17194       # The linker will automatically build a .lib file if we build a DLL.
17195       old_archive_From_new_cmds_GCJ='true'
17196       # FIXME: Should let the user specify the lib program.
17197       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17198       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17199       enable_shared_with_static_runtimes_GCJ=yes
17200       ;;
17201
17202     darwin* | rhapsody*)
17203       case $host_os in
17204         rhapsody* | darwin1.[012])
17205          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17206          ;;
17207        *) # Darwin 1.3 on
17208          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17209            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17210          else
17211            case ${MACOSX_DEPLOYMENT_TARGET} in
17212              10.[012])
17213                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17214                ;;
17215              10.*)
17216                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17217                ;;
17218            esac
17219          fi
17220          ;;
17221       esac
17222       archive_cmds_need_lc_GCJ=no
17223       hardcode_direct_GCJ=no
17224       hardcode_automatic_GCJ=yes
17225       hardcode_shlibpath_var_GCJ=unsupported
17226       whole_archive_flag_spec_GCJ=''
17227       link_all_deplibs_GCJ=yes
17228     if test "$GCC" = yes ; then
17229         output_verbose_link_cmd='echo'
17230         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17231       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17232       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17233       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}'
17234       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}'
17235     else
17236       case $cc_basename in
17237         xlc*)
17238          output_verbose_link_cmd='echo'
17239          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17240          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17241           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17242          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}'
17243           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}'
17244           ;;
17245        *)
17246          ld_shlibs_GCJ=no
17247           ;;
17248       esac
17249     fi
17250       ;;
17251
17252     dgux*)
17253       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17255       hardcode_shlibpath_var_GCJ=no
17256       ;;
17257
17258     freebsd1*)
17259       ld_shlibs_GCJ=no
17260       ;;
17261
17262     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17263     # support.  Future versions do this automatically, but an explicit c++rt0.o
17264     # does not break anything, and helps significantly (at the cost of a little
17265     # extra space).
17266     freebsd2.2*)
17267       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17268       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17269       hardcode_direct_GCJ=yes
17270       hardcode_shlibpath_var_GCJ=no
17271       ;;
17272
17273     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17274     freebsd2*)
17275       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17276       hardcode_direct_GCJ=yes
17277       hardcode_minus_L_GCJ=yes
17278       hardcode_shlibpath_var_GCJ=no
17279       ;;
17280
17281     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17282     freebsd* | dragonfly*)
17283       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17284       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17285       hardcode_direct_GCJ=yes
17286       hardcode_shlibpath_var_GCJ=no
17287       ;;
17288
17289     hpux9*)
17290       if test "$GCC" = yes; then
17291         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'
17292       else
17293         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'
17294       fi
17295       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17296       hardcode_libdir_separator_GCJ=:
17297       hardcode_direct_GCJ=yes
17298
17299       # hardcode_minus_L: Not really in the search PATH,
17300       # but as the default location of the library.
17301       hardcode_minus_L_GCJ=yes
17302       export_dynamic_flag_spec_GCJ='${wl}-E'
17303       ;;
17304
17305     hpux10*)
17306       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17307         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17308       else
17309         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17310       fi
17311       if test "$with_gnu_ld" = no; then
17312         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17313         hardcode_libdir_separator_GCJ=:
17314
17315         hardcode_direct_GCJ=yes
17316         export_dynamic_flag_spec_GCJ='${wl}-E'
17317
17318         # hardcode_minus_L: Not really in the search PATH,
17319         # but as the default location of the library.
17320         hardcode_minus_L_GCJ=yes
17321       fi
17322       ;;
17323
17324     hpux11*)
17325       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17326         case $host_cpu in
17327         hppa*64*)
17328           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17329           ;;
17330         ia64*)
17331           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17332           ;;
17333         *)
17334           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17335           ;;
17336         esac
17337       else
17338         case $host_cpu in
17339         hppa*64*)
17340           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17341           ;;
17342         ia64*)
17343           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17344           ;;
17345         *)
17346           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17347           ;;
17348         esac
17349       fi
17350       if test "$with_gnu_ld" = no; then
17351         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17352         hardcode_libdir_separator_GCJ=:
17353
17354         case $host_cpu in
17355         hppa*64*|ia64*)
17356           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17357           hardcode_direct_GCJ=no
17358           hardcode_shlibpath_var_GCJ=no
17359           ;;
17360         *)
17361           hardcode_direct_GCJ=yes
17362           export_dynamic_flag_spec_GCJ='${wl}-E'
17363
17364           # hardcode_minus_L: Not really in the search PATH,
17365           # but as the default location of the library.
17366           hardcode_minus_L_GCJ=yes
17367           ;;
17368         esac
17369       fi
17370       ;;
17371
17372     irix5* | irix6* | nonstopux*)
17373       if test "$GCC" = yes; then
17374         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'
17375       else
17376         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'
17377         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17378       fi
17379       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17380       hardcode_libdir_separator_GCJ=:
17381       link_all_deplibs_GCJ=yes
17382       ;;
17383
17384     netbsd* | netbsdelf*-gnu)
17385       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17386         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17387       else
17388         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17389       fi
17390       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17391       hardcode_direct_GCJ=yes
17392       hardcode_shlibpath_var_GCJ=no
17393       ;;
17394
17395     newsos6)
17396       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17397       hardcode_direct_GCJ=yes
17398       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17399       hardcode_libdir_separator_GCJ=:
17400       hardcode_shlibpath_var_GCJ=no
17401       ;;
17402
17403     openbsd*)
17404       hardcode_direct_GCJ=yes
17405       hardcode_shlibpath_var_GCJ=no
17406       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17407         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17408         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17409         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17410         export_dynamic_flag_spec_GCJ='${wl}-E'
17411       else
17412        case $host_os in
17413          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17414            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17415            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17416            ;;
17417          *)
17418            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17419            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17420            ;;
17421        esac
17422       fi
17423       ;;
17424
17425     os2*)
17426       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17427       hardcode_minus_L_GCJ=yes
17428       allow_undefined_flag_GCJ=unsupported
17429       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'
17430       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17431       ;;
17432
17433     osf3*)
17434       if test "$GCC" = yes; then
17435         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17436         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'
17437       else
17438         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17439         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'
17440       fi
17441       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17442       hardcode_libdir_separator_GCJ=:
17443       ;;
17444
17445     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17446       if test "$GCC" = yes; then
17447         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17448         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'
17449         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17450       else
17451         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17452         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'
17453         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~
17454         $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'
17455
17456         # Both c and cxx compiler support -rpath directly
17457         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17458       fi
17459       hardcode_libdir_separator_GCJ=:
17460       ;;
17461
17462     solaris*)
17463       no_undefined_flag_GCJ=' -z text'
17464       if test "$GCC" = yes; then
17465         wlarc='${wl}'
17466         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17467         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17468           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17469       else
17470         wlarc=''
17471         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17472         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17474       fi
17475       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17476       hardcode_shlibpath_var_GCJ=no
17477       case $host_os in
17478       solaris2.[0-5] | solaris2.[0-5].*) ;;
17479       *)
17480         # The compiler driver will combine linker options so we
17481         # cannot just pass the convience library names through
17482         # without $wl, iff we do not link with $LD.
17483         # Luckily, gcc supports the same syntax we need for Sun Studio.
17484         # Supported since Solaris 2.6 (maybe 2.5.1?)
17485         case $wlarc in
17486         '')
17487           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17488         *)
17489           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' ;;
17490         esac ;;
17491       esac
17492       link_all_deplibs_GCJ=yes
17493       ;;
17494
17495     sunos4*)
17496       if test "x$host_vendor" = xsequent; then
17497         # Use $CC to link under sequent, because it throws in some extra .o
17498         # files that make .init and .fini sections work.
17499         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17500       else
17501         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17502       fi
17503       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17504       hardcode_direct_GCJ=yes
17505       hardcode_minus_L_GCJ=yes
17506       hardcode_shlibpath_var_GCJ=no
17507       ;;
17508
17509     sysv4)
17510       case $host_vendor in
17511         sni)
17512           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17513           hardcode_direct_GCJ=yes # is this really true???
17514         ;;
17515         siemens)
17516           ## LD is ld it makes a PLAMLIB
17517           ## CC just makes a GrossModule.
17518           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17519           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17520           hardcode_direct_GCJ=no
17521         ;;
17522         motorola)
17523           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17524           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17525         ;;
17526       esac
17527       runpath_var='LD_RUN_PATH'
17528       hardcode_shlibpath_var_GCJ=no
17529       ;;
17530
17531     sysv4.3*)
17532       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533       hardcode_shlibpath_var_GCJ=no
17534       export_dynamic_flag_spec_GCJ='-Bexport'
17535       ;;
17536
17537     sysv4*MP*)
17538       if test -d /usr/nec; then
17539         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17540         hardcode_shlibpath_var_GCJ=no
17541         runpath_var=LD_RUN_PATH
17542         hardcode_runpath_var=yes
17543         ld_shlibs_GCJ=yes
17544       fi
17545       ;;
17546
17547     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17548       no_undefined_flag_GCJ='${wl}-z,text'
17549       archive_cmds_need_lc_GCJ=no
17550       hardcode_shlibpath_var_GCJ=no
17551       runpath_var='LD_RUN_PATH'
17552
17553       if test "$GCC" = yes; then
17554         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17555         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17556       else
17557         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17558         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17559       fi
17560       ;;
17561
17562     sysv5* | sco3.2v5* | sco5v6*)
17563       # Note: We can NOT use -z defs as we might desire, because we do not
17564       # link with -lc, and that would cause any symbols used from libc to
17565       # always be unresolved, which means just about no library would
17566       # ever link correctly.  If we're not using GNU ld we use -z text
17567       # though, which does catch some bad symbols but isn't as heavy-handed
17568       # as -z defs.
17569       no_undefined_flag_GCJ='${wl}-z,text'
17570       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17571       archive_cmds_need_lc_GCJ=no
17572       hardcode_shlibpath_var_GCJ=no
17573       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17574       hardcode_libdir_separator_GCJ=':'
17575       link_all_deplibs_GCJ=yes
17576       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17577       runpath_var='LD_RUN_PATH'
17578
17579       if test "$GCC" = yes; then
17580         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17582       else
17583         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17584         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17585       fi
17586       ;;
17587
17588     uts4*)
17589       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17591       hardcode_shlibpath_var_GCJ=no
17592       ;;
17593
17594     *)
17595       ld_shlibs_GCJ=no
17596       ;;
17597     esac
17598   fi
17599
17600 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17601 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17602 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17603
17604 #
17605 # Do we need to explicitly link libc?
17606 #
17607 case "x$archive_cmds_need_lc_GCJ" in
17608 x|xyes)
17609   # Assume -lc should be added
17610   archive_cmds_need_lc_GCJ=yes
17611
17612   if test "$enable_shared" = yes && test "$GCC" = yes; then
17613     case $archive_cmds_GCJ in
17614     *'~'*)
17615       # FIXME: we may have to deal with multi-command sequences.
17616       ;;
17617     '$CC '*)
17618       # Test whether the compiler implicitly links with -lc since on some
17619       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17620       # to ld, don't add -lc before -lgcc.
17621       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17622 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17623       $rm conftest*
17624       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17625
17626       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17627   (eval $ac_compile) 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); } 2>conftest.err; then
17631         soname=conftest
17632         lib=conftest
17633         libobjs=conftest.$ac_objext
17634         deplibs=
17635         wl=$lt_prog_compiler_wl_GCJ
17636         pic_flag=$lt_prog_compiler_pic_GCJ
17637         compiler_flags=-v
17638         linker_flags=-v
17639         verstring=
17640         output_objdir=.
17641         libname=conftest
17642         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17643         allow_undefined_flag_GCJ=
17644         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17645   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }
17649         then
17650           archive_cmds_need_lc_GCJ=no
17651         else
17652           archive_cmds_need_lc_GCJ=yes
17653         fi
17654         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17655       else
17656         cat conftest.err 1>&5
17657       fi
17658       $rm conftest*
17659       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17660 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17661       ;;
17662     esac
17663   fi
17664   ;;
17665 esac
17666
17667 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17669 library_names_spec=
17670 libname_spec='lib$name'
17671 soname_spec=
17672 shrext_cmds=".so"
17673 postinstall_cmds=
17674 postuninstall_cmds=
17675 finish_cmds=
17676 finish_eval=
17677 shlibpath_var=
17678 shlibpath_overrides_runpath=unknown
17679 version_type=none
17680 dynamic_linker="$host_os ld.so"
17681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17682 if test "$GCC" = yes; then
17683   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17684   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17685     # if the path contains ";" then we assume it to be the separator
17686     # otherwise default to the standard path separator (i.e. ":") - it is
17687     # assumed that no part of a normal pathname contains ";" but that should
17688     # okay in the real world where ";" in dirpaths is itself problematic.
17689     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17690   else
17691     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17692   fi
17693 else
17694   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17695 fi
17696 need_lib_prefix=unknown
17697 hardcode_into_libs=no
17698
17699 # when you set need_version to no, make sure it does not cause -set_version
17700 # flags to be left without arguments
17701 need_version=unknown
17702
17703 case $host_os in
17704 aix3*)
17705   version_type=linux
17706   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17707   shlibpath_var=LIBPATH
17708
17709   # AIX 3 has no versioning support, so we append a major version to the name.
17710   soname_spec='${libname}${release}${shared_ext}$major'
17711   ;;
17712
17713 aix4* | aix5*)
17714   version_type=linux
17715   need_lib_prefix=no
17716   need_version=no
17717   hardcode_into_libs=yes
17718   if test "$host_cpu" = ia64; then
17719     # AIX 5 supports IA64
17720     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17721     shlibpath_var=LD_LIBRARY_PATH
17722   else
17723     # With GCC up to 2.95.x, collect2 would create an import file
17724     # for dependence libraries.  The import file would start with
17725     # the line `#! .'.  This would cause the generated library to
17726     # depend on `.', always an invalid library.  This was fixed in
17727     # development snapshots of GCC prior to 3.0.
17728     case $host_os in
17729       aix4 | aix4.[01] | aix4.[01].*)
17730       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17731            echo ' yes '
17732            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17733         :
17734       else
17735         can_build_shared=no
17736       fi
17737       ;;
17738     esac
17739     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17740     # soname into executable. Probably we can add versioning support to
17741     # collect2, so additional links can be useful in future.
17742     if test "$aix_use_runtimelinking" = yes; then
17743       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17744       # instead of lib<name>.a to let people know that these are not
17745       # typical AIX shared libraries.
17746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17747     else
17748       # We preserve .a as extension for shared libraries through AIX4.2
17749       # and later when we are not doing run time linking.
17750       library_names_spec='${libname}${release}.a $libname.a'
17751       soname_spec='${libname}${release}${shared_ext}$major'
17752     fi
17753     shlibpath_var=LIBPATH
17754   fi
17755   ;;
17756
17757 amigaos*)
17758   library_names_spec='$libname.ixlibrary $libname.a'
17759   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17760   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'
17761   ;;
17762
17763 beos*)
17764   library_names_spec='${libname}${shared_ext}'
17765   dynamic_linker="$host_os ld.so"
17766   shlibpath_var=LIBRARY_PATH
17767   ;;
17768
17769 bsdi[45]*)
17770   version_type=linux
17771   need_version=no
17772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773   soname_spec='${libname}${release}${shared_ext}$major'
17774   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17775   shlibpath_var=LD_LIBRARY_PATH
17776   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17777   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17778   # the default ld.so.conf also contains /usr/contrib/lib and
17779   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17780   # libtool to hard-code these into programs
17781   ;;
17782
17783 cygwin* | mingw* | pw32*)
17784   version_type=windows
17785   shrext_cmds=".dll"
17786   need_version=no
17787   need_lib_prefix=no
17788
17789   case $GCC,$host_os in
17790   yes,cygwin* | yes,mingw* | yes,pw32*)
17791     library_names_spec='$libname.dll.a'
17792     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17793     postinstall_cmds='base_file=`basename \${file}`~
17794       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17795       dldir=$destdir/`dirname \$dlpath`~
17796       test -d \$dldir || mkdir -p \$dldir~
17797       $install_prog $dir/$dlname \$dldir/$dlname~
17798       chmod a+x \$dldir/$dlname'
17799     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17800       dlpath=$dir/\$dldll~
17801        $rm \$dlpath'
17802     shlibpath_overrides_runpath=yes
17803
17804     case $host_os in
17805     cygwin*)
17806       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17807       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17808       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17809       ;;
17810     mingw*)
17811       # MinGW DLLs use traditional 'lib' prefix
17812       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17813       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17814       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17815         # It is most probably a Windows format PATH printed by
17816         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17817         # path with ; separators, and with drive letters. We can handle the
17818         # drive letters (cygwin fileutils understands them), so leave them,
17819         # especially as we might pass files found there to a mingw objdump,
17820         # which wouldn't understand a cygwinified path. Ahh.
17821         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17822       else
17823         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17824       fi
17825       ;;
17826     pw32*)
17827       # pw32 DLLs use 'pw' prefix rather than 'lib'
17828       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17829       ;;
17830     esac
17831     ;;
17832
17833   *)
17834     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17835     ;;
17836   esac
17837   dynamic_linker='Win32 ld.exe'
17838   # FIXME: first we should search . and the directory the executable is in
17839   shlibpath_var=PATH
17840   ;;
17841
17842 darwin* | rhapsody*)
17843   dynamic_linker="$host_os dyld"
17844   version_type=darwin
17845   need_lib_prefix=no
17846   need_version=no
17847   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17848   soname_spec='${libname}${release}${major}$shared_ext'
17849   shlibpath_overrides_runpath=yes
17850   shlibpath_var=DYLD_LIBRARY_PATH
17851   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17852   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17853   if test "$GCC" = yes; then
17854     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"`
17855   else
17856     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17857   fi
17858   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17859   ;;
17860
17861 dgux*)
17862   version_type=linux
17863   need_lib_prefix=no
17864   need_version=no
17865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17866   soname_spec='${libname}${release}${shared_ext}$major'
17867   shlibpath_var=LD_LIBRARY_PATH
17868   ;;
17869
17870 freebsd1*)
17871   dynamic_linker=no
17872   ;;
17873
17874 freebsd* | dragonfly*)
17875   # DragonFly does not have aout.  When/if they implement a new
17876   # versioning mechanism, adjust this.
17877   if test -x /usr/bin/objformat; then
17878     objformat=`/usr/bin/objformat`
17879   else
17880     case $host_os in
17881     freebsd[123]*) objformat=aout ;;
17882     *) objformat=elf ;;
17883     esac
17884   fi
17885   version_type=freebsd-$objformat
17886   case $version_type in
17887     freebsd-elf*)
17888       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17889       need_version=no
17890       need_lib_prefix=no
17891       ;;
17892     freebsd-*)
17893       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17894       need_version=yes
17895       ;;
17896   esac
17897   shlibpath_var=LD_LIBRARY_PATH
17898   case $host_os in
17899   freebsd2*)
17900     shlibpath_overrides_runpath=yes
17901     ;;
17902   freebsd3.[01]* | freebsdelf3.[01]*)
17903     shlibpath_overrides_runpath=yes
17904     hardcode_into_libs=yes
17905     ;;
17906   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17907   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17908     shlibpath_overrides_runpath=no
17909     hardcode_into_libs=yes
17910     ;;
17911   freebsd*) # from 4.6 on
17912     shlibpath_overrides_runpath=yes
17913     hardcode_into_libs=yes
17914     ;;
17915   esac
17916   ;;
17917
17918 gnu*)
17919   version_type=linux
17920   need_lib_prefix=no
17921   need_version=no
17922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17923   soname_spec='${libname}${release}${shared_ext}$major'
17924   shlibpath_var=LD_LIBRARY_PATH
17925   hardcode_into_libs=yes
17926   ;;
17927
17928 hpux9* | hpux10* | hpux11*)
17929   # Give a soname corresponding to the major version so that dld.sl refuses to
17930   # link against other versions.
17931   version_type=sunos
17932   need_lib_prefix=no
17933   need_version=no
17934   case $host_cpu in
17935   ia64*)
17936     shrext_cmds='.so'
17937     hardcode_into_libs=yes
17938     dynamic_linker="$host_os dld.so"
17939     shlibpath_var=LD_LIBRARY_PATH
17940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942     soname_spec='${libname}${release}${shared_ext}$major'
17943     if test "X$HPUX_IA64_MODE" = X32; then
17944       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17945     else
17946       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17947     fi
17948     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17949     ;;
17950    hppa*64*)
17951      shrext_cmds='.sl'
17952      hardcode_into_libs=yes
17953      dynamic_linker="$host_os dld.sl"
17954      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17955      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17956      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957      soname_spec='${libname}${release}${shared_ext}$major'
17958      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17959      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17960      ;;
17961    *)
17962     shrext_cmds='.sl'
17963     dynamic_linker="$host_os dld.sl"
17964     shlibpath_var=SHLIB_PATH
17965     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967     soname_spec='${libname}${release}${shared_ext}$major'
17968     ;;
17969   esac
17970   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17971   postinstall_cmds='chmod 555 $lib'
17972   ;;
17973
17974 interix3*)
17975   version_type=linux
17976   need_lib_prefix=no
17977   need_version=no
17978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17979   soname_spec='${libname}${release}${shared_ext}$major'
17980   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   shlibpath_overrides_runpath=no
17983   hardcode_into_libs=yes
17984   ;;
17985
17986 irix5* | irix6* | nonstopux*)
17987   case $host_os in
17988     nonstopux*) version_type=nonstopux ;;
17989     *)
17990         if test "$lt_cv_prog_gnu_ld" = yes; then
17991                 version_type=linux
17992         else
17993                 version_type=irix
17994         fi ;;
17995   esac
17996   need_lib_prefix=no
17997   need_version=no
17998   soname_spec='${libname}${release}${shared_ext}$major'
17999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18000   case $host_os in
18001   irix5* | nonstopux*)
18002     libsuff= shlibsuff=
18003     ;;
18004   *)
18005     case $LD in # libtool.m4 will add one of these switches to LD
18006     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18007       libsuff= shlibsuff= libmagic=32-bit;;
18008     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18009       libsuff=32 shlibsuff=N32 libmagic=N32;;
18010     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18011       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18012     *) libsuff= shlibsuff= libmagic=never-match;;
18013     esac
18014     ;;
18015   esac
18016   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18017   shlibpath_overrides_runpath=no
18018   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18019   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18020   hardcode_into_libs=yes
18021   ;;
18022
18023 # No shared lib support for Linux oldld, aout, or coff.
18024 linux*oldld* | linux*aout* | linux*coff*)
18025   dynamic_linker=no
18026   ;;
18027
18028 # This must be Linux ELF.
18029 linux* | k*bsd*-gnu)
18030   version_type=linux
18031   need_lib_prefix=no
18032   need_version=no
18033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034   soname_spec='${libname}${release}${shared_ext}$major'
18035   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18036   shlibpath_var=LD_LIBRARY_PATH
18037   shlibpath_overrides_runpath=no
18038   # This implies no fast_install, which is unacceptable.
18039   # Some rework will be needed to allow for fast_install
18040   # before this can be enabled.
18041   hardcode_into_libs=yes
18042
18043   # Append ld.so.conf contents to the search path
18044   if test -f /etc/ld.so.conf; then
18045     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' ' '`
18046     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18047   fi
18048
18049   # We used to test for /lib/ld.so.1 and disable shared libraries on
18050   # powerpc, because MkLinux only supported shared libraries with the
18051   # GNU dynamic linker.  Since this was broken with cross compilers,
18052   # most powerpc-linux boxes support dynamic linking these days and
18053   # people can always --disable-shared, the test was removed, and we
18054   # assume the GNU/Linux dynamic linker is in use.
18055   dynamic_linker='GNU/Linux ld.so'
18056   ;;
18057
18058 netbsdelf*-gnu)
18059   version_type=linux
18060   need_lib_prefix=no
18061   need_version=no
18062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18063   soname_spec='${libname}${release}${shared_ext}$major'
18064   shlibpath_var=LD_LIBRARY_PATH
18065   shlibpath_overrides_runpath=no
18066   hardcode_into_libs=yes
18067   dynamic_linker='NetBSD ld.elf_so'
18068   ;;
18069
18070 netbsd*)
18071   version_type=sunos
18072   need_lib_prefix=no
18073   need_version=no
18074   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18076     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18077     dynamic_linker='NetBSD (a.out) ld.so'
18078   else
18079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18080     soname_spec='${libname}${release}${shared_ext}$major'
18081     dynamic_linker='NetBSD ld.elf_so'
18082   fi
18083   shlibpath_var=LD_LIBRARY_PATH
18084   shlibpath_overrides_runpath=yes
18085   hardcode_into_libs=yes
18086   ;;
18087
18088 newsos6)
18089   version_type=linux
18090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091   shlibpath_var=LD_LIBRARY_PATH
18092   shlibpath_overrides_runpath=yes
18093   ;;
18094
18095 nto-qnx*)
18096   version_type=linux
18097   need_lib_prefix=no
18098   need_version=no
18099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100   soname_spec='${libname}${release}${shared_ext}$major'
18101   shlibpath_var=LD_LIBRARY_PATH
18102   shlibpath_overrides_runpath=yes
18103   ;;
18104
18105 openbsd*)
18106   version_type=sunos
18107   sys_lib_dlsearch_path_spec="/usr/lib"
18108   need_lib_prefix=no
18109   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18110   case $host_os in
18111     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18112     *)                         need_version=no  ;;
18113   esac
18114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18116   shlibpath_var=LD_LIBRARY_PATH
18117   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18118     case $host_os in
18119       openbsd2.[89] | openbsd2.[89].*)
18120         shlibpath_overrides_runpath=no
18121         ;;
18122       *)
18123         shlibpath_overrides_runpath=yes
18124         ;;
18125       esac
18126   else
18127     shlibpath_overrides_runpath=yes
18128   fi
18129   ;;
18130
18131 os2*)
18132   libname_spec='$name'
18133   shrext_cmds=".dll"
18134   need_lib_prefix=no
18135   library_names_spec='$libname${shared_ext} $libname.a'
18136   dynamic_linker='OS/2 ld.exe'
18137   shlibpath_var=LIBPATH
18138   ;;
18139
18140 osf3* | osf4* | osf5*)
18141   version_type=osf
18142   need_lib_prefix=no
18143   need_version=no
18144   soname_spec='${libname}${release}${shared_ext}$major'
18145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146   shlibpath_var=LD_LIBRARY_PATH
18147   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18148   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18149   ;;
18150
18151 solaris*)
18152   version_type=linux
18153   need_lib_prefix=no
18154   need_version=no
18155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156   soname_spec='${libname}${release}${shared_ext}$major'
18157   shlibpath_var=LD_LIBRARY_PATH
18158   shlibpath_overrides_runpath=yes
18159   hardcode_into_libs=yes
18160   # ldd complains unless libraries are executable
18161   postinstall_cmds='chmod +x $lib'
18162   ;;
18163
18164 sunos4*)
18165   version_type=sunos
18166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18167   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18168   shlibpath_var=LD_LIBRARY_PATH
18169   shlibpath_overrides_runpath=yes
18170   if test "$with_gnu_ld" = yes; then
18171     need_lib_prefix=no
18172   fi
18173   need_version=yes
18174   ;;
18175
18176 sysv4 | sysv4.3*)
18177   version_type=linux
18178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179   soname_spec='${libname}${release}${shared_ext}$major'
18180   shlibpath_var=LD_LIBRARY_PATH
18181   case $host_vendor in
18182     sni)
18183       shlibpath_overrides_runpath=no
18184       need_lib_prefix=no
18185       export_dynamic_flag_spec='${wl}-Blargedynsym'
18186       runpath_var=LD_RUN_PATH
18187       ;;
18188     siemens)
18189       need_lib_prefix=no
18190       ;;
18191     motorola)
18192       need_lib_prefix=no
18193       need_version=no
18194       shlibpath_overrides_runpath=no
18195       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18196       ;;
18197   esac
18198   ;;
18199
18200 sysv4*MP*)
18201   if test -d /usr/nec ;then
18202     version_type=linux
18203     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18204     soname_spec='$libname${shared_ext}.$major'
18205     shlibpath_var=LD_LIBRARY_PATH
18206   fi
18207   ;;
18208
18209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18210   version_type=freebsd-elf
18211   need_lib_prefix=no
18212   need_version=no
18213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18214   soname_spec='${libname}${release}${shared_ext}$major'
18215   shlibpath_var=LD_LIBRARY_PATH
18216   hardcode_into_libs=yes
18217   if test "$with_gnu_ld" = yes; then
18218     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18219     shlibpath_overrides_runpath=no
18220   else
18221     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18222     shlibpath_overrides_runpath=yes
18223     case $host_os in
18224       sco3.2v5*)
18225         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18226         ;;
18227     esac
18228   fi
18229   sys_lib_dlsearch_path_spec='/usr/lib'
18230   ;;
18231
18232 uts4*)
18233   version_type=linux
18234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235   soname_spec='${libname}${release}${shared_ext}$major'
18236   shlibpath_var=LD_LIBRARY_PATH
18237   ;;
18238
18239 *)
18240   dynamic_linker=no
18241   ;;
18242 esac
18243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18244 echo "${ECHO_T}$dynamic_linker" >&6; }
18245 test "$dynamic_linker" = no && can_build_shared=no
18246
18247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18248 if test "$GCC" = yes; then
18249   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18250 fi
18251
18252 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18254 hardcode_action_GCJ=
18255 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18256    test -n "$runpath_var_GCJ" || \
18257    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18258
18259   # We can hardcode non-existant directories.
18260   if test "$hardcode_direct_GCJ" != no &&
18261      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18262      # have to relink, otherwise we might link with an installed library
18263      # when we should be linking with a yet-to-be-installed one
18264      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18265      test "$hardcode_minus_L_GCJ" != no; then
18266     # Linking always hardcodes the temporary library directory.
18267     hardcode_action_GCJ=relink
18268   else
18269     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18270     hardcode_action_GCJ=immediate
18271   fi
18272 else
18273   # We cannot hardcode anything, or else we can only hardcode existing
18274   # directories.
18275   hardcode_action_GCJ=unsupported
18276 fi
18277 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18278 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18279
18280 if test "$hardcode_action_GCJ" = relink; then
18281   # Fast installation is not supported
18282   enable_fast_install=no
18283 elif test "$shlibpath_overrides_runpath" = yes ||
18284      test "$enable_shared" = no; then
18285   # Fast installation is not necessary
18286   enable_fast_install=needless
18287 fi
18288
18289
18290 # The else clause should only fire when bootstrapping the
18291 # libtool distribution, otherwise you forgot to ship ltmain.sh
18292 # with your package, and you will get complaints that there are
18293 # no rules to generate ltmain.sh.
18294 if test -f "$ltmain"; then
18295   # See if we are running on zsh, and set the options which allow our commands through
18296   # without removal of \ escapes.
18297   if test -n "${ZSH_VERSION+set}" ; then
18298     setopt NO_GLOB_SUBST
18299   fi
18300   # Now quote all the things that may contain metacharacters while being
18301   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18302   # variables and quote the copies for generation of the libtool script.
18303   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18304     SED SHELL STRIP \
18305     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18306     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18307     deplibs_check_method reload_flag reload_cmds need_locks \
18308     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18309     lt_cv_sys_global_symbol_to_c_name_address \
18310     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18311     old_postinstall_cmds old_postuninstall_cmds \
18312     compiler_GCJ \
18313     CC_GCJ \
18314     LD_GCJ \
18315     lt_prog_compiler_wl_GCJ \
18316     lt_prog_compiler_pic_GCJ \
18317     lt_prog_compiler_static_GCJ \
18318     lt_prog_compiler_no_builtin_flag_GCJ \
18319     export_dynamic_flag_spec_GCJ \
18320     thread_safe_flag_spec_GCJ \
18321     whole_archive_flag_spec_GCJ \
18322     enable_shared_with_static_runtimes_GCJ \
18323     old_archive_cmds_GCJ \
18324     old_archive_from_new_cmds_GCJ \
18325     predep_objects_GCJ \
18326     postdep_objects_GCJ \
18327     predeps_GCJ \
18328     postdeps_GCJ \
18329     compiler_lib_search_path_GCJ \
18330     archive_cmds_GCJ \
18331     archive_expsym_cmds_GCJ \
18332     postinstall_cmds_GCJ \
18333     postuninstall_cmds_GCJ \
18334     old_archive_from_expsyms_cmds_GCJ \
18335     allow_undefined_flag_GCJ \
18336     no_undefined_flag_GCJ \
18337     export_symbols_cmds_GCJ \
18338     hardcode_libdir_flag_spec_GCJ \
18339     hardcode_libdir_flag_spec_ld_GCJ \
18340     hardcode_libdir_separator_GCJ \
18341     hardcode_automatic_GCJ \
18342     module_cmds_GCJ \
18343     module_expsym_cmds_GCJ \
18344     lt_cv_prog_compiler_c_o_GCJ \
18345     exclude_expsyms_GCJ \
18346     include_expsyms_GCJ; do
18347
18348     case $var in
18349     old_archive_cmds_GCJ | \
18350     old_archive_from_new_cmds_GCJ | \
18351     archive_cmds_GCJ | \
18352     archive_expsym_cmds_GCJ | \
18353     module_cmds_GCJ | \
18354     module_expsym_cmds_GCJ | \
18355     old_archive_from_expsyms_cmds_GCJ | \
18356     export_symbols_cmds_GCJ | \
18357     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18358     postinstall_cmds | postuninstall_cmds | \
18359     old_postinstall_cmds | old_postuninstall_cmds | \
18360     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18361       # Double-quote double-evaled strings.
18362       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18363       ;;
18364     *)
18365       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18366       ;;
18367     esac
18368   done
18369
18370   case $lt_echo in
18371   *'\$0 --fallback-echo"')
18372     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18373     ;;
18374   esac
18375
18376 cfgfile="$ofile"
18377
18378   cat <<__EOF__ >> "$cfgfile"
18379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18380
18381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18382
18383 # Shell to use when invoking shell scripts.
18384 SHELL=$lt_SHELL
18385
18386 # Whether or not to build shared libraries.
18387 build_libtool_libs=$enable_shared
18388
18389 # Whether or not to build static libraries.
18390 build_old_libs=$enable_static
18391
18392 # Whether or not to add -lc for building shared libraries.
18393 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18394
18395 # Whether or not to disallow shared libs when runtime libs are static
18396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18397
18398 # Whether or not to optimize for fast installation.
18399 fast_install=$enable_fast_install
18400
18401 # The host system.
18402 host_alias=$host_alias
18403 host=$host
18404 host_os=$host_os
18405
18406 # The build system.
18407 build_alias=$build_alias
18408 build=$build
18409 build_os=$build_os
18410
18411 # An echo program that does not interpret backslashes.
18412 echo=$lt_echo
18413
18414 # The archiver.
18415 AR=$lt_AR
18416 AR_FLAGS=$lt_AR_FLAGS
18417
18418 # A C compiler.
18419 LTCC=$lt_LTCC
18420
18421 # LTCC compiler flags.
18422 LTCFLAGS=$lt_LTCFLAGS
18423
18424 # A language-specific compiler.
18425 CC=$lt_compiler_GCJ
18426
18427 # Is the compiler the GNU C compiler?
18428 with_gcc=$GCC_GCJ
18429
18430 # An ERE matcher.
18431 EGREP=$lt_EGREP
18432
18433 # The linker used to build libraries.
18434 LD=$lt_LD_GCJ
18435
18436 # Whether we need hard or soft links.
18437 LN_S=$lt_LN_S
18438
18439 # A BSD-compatible nm program.
18440 NM=$lt_NM
18441
18442 # A symbol stripping program
18443 STRIP=$lt_STRIP
18444
18445 # Used to examine libraries when file_magic_cmd begins "file"
18446 MAGIC_CMD=$MAGIC_CMD
18447
18448 # Used on cygwin: DLL creation program.
18449 DLLTOOL="$DLLTOOL"
18450
18451 # Used on cygwin: object dumper.
18452 OBJDUMP="$OBJDUMP"
18453
18454 # Used on cygwin: assembler.
18455 AS="$AS"
18456
18457 # The name of the directory that contains temporary libtool files.
18458 objdir=$objdir
18459
18460 # How to create reloadable object files.
18461 reload_flag=$lt_reload_flag
18462 reload_cmds=$lt_reload_cmds
18463
18464 # How to pass a linker flag through the compiler.
18465 wl=$lt_lt_prog_compiler_wl_GCJ
18466
18467 # Object file suffix (normally "o").
18468 objext="$ac_objext"
18469
18470 # Old archive suffix (normally "a").
18471 libext="$libext"
18472
18473 # Shared library suffix (normally ".so").
18474 shrext_cmds='$shrext_cmds'
18475
18476 # Executable file suffix (normally "").
18477 exeext="$exeext"
18478
18479 # Additional compiler flags for building library objects.
18480 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18481 pic_mode=$pic_mode
18482
18483 # What is the maximum length of a command?
18484 max_cmd_len=$lt_cv_sys_max_cmd_len
18485
18486 # Does compiler simultaneously support -c and -o options?
18487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18488
18489 # Must we lock files when doing compilation?
18490 need_locks=$lt_need_locks
18491
18492 # Do we need the lib prefix for modules?
18493 need_lib_prefix=$need_lib_prefix
18494
18495 # Do we need a version for libraries?
18496 need_version=$need_version
18497
18498 # Whether dlopen is supported.
18499 dlopen_support=$enable_dlopen
18500
18501 # Whether dlopen of programs is supported.
18502 dlopen_self=$enable_dlopen_self
18503
18504 # Whether dlopen of statically linked programs is supported.
18505 dlopen_self_static=$enable_dlopen_self_static
18506
18507 # Compiler flag to prevent dynamic linking.
18508 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18509
18510 # Compiler flag to turn off builtin functions.
18511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18512
18513 # Compiler flag to allow reflexive dlopens.
18514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18515
18516 # Compiler flag to generate shared objects directly from archives.
18517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18518
18519 # Compiler flag to generate thread-safe objects.
18520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18521
18522 # Library versioning type.
18523 version_type=$version_type
18524
18525 # Format of library name prefix.
18526 libname_spec=$lt_libname_spec
18527
18528 # List of archive names.  First name is the real one, the rest are links.
18529 # The last name is the one that the linker finds with -lNAME.
18530 library_names_spec=$lt_library_names_spec
18531
18532 # The coded name of the library, if different from the real name.
18533 soname_spec=$lt_soname_spec
18534
18535 # Commands used to build and install an old-style archive.
18536 RANLIB=$lt_RANLIB
18537 old_archive_cmds=$lt_old_archive_cmds_GCJ
18538 old_postinstall_cmds=$lt_old_postinstall_cmds
18539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18540
18541 # Create an old-style archive from a shared archive.
18542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18543
18544 # Create a temporary old-style archive to link instead of a shared archive.
18545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18546
18547 # Commands used to build and install a shared archive.
18548 archive_cmds=$lt_archive_cmds_GCJ
18549 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18550 postinstall_cmds=$lt_postinstall_cmds
18551 postuninstall_cmds=$lt_postuninstall_cmds
18552
18553 # Commands used to build a loadable module (assumed same as above if empty)
18554 module_cmds=$lt_module_cmds_GCJ
18555 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18556
18557 # Commands to strip libraries.
18558 old_striplib=$lt_old_striplib
18559 striplib=$lt_striplib
18560
18561 # Dependencies to place before the objects being linked to create a
18562 # shared library.
18563 predep_objects=$lt_predep_objects_GCJ
18564
18565 # Dependencies to place after the objects being linked to create a
18566 # shared library.
18567 postdep_objects=$lt_postdep_objects_GCJ
18568
18569 # Dependencies to place before the objects being linked to create a
18570 # shared library.
18571 predeps=$lt_predeps_GCJ
18572
18573 # Dependencies to place after the objects being linked to create a
18574 # shared library.
18575 postdeps=$lt_postdeps_GCJ
18576
18577 # The library search path used internally by the compiler when linking
18578 # a shared library.
18579 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18580
18581 # Method to check whether dependent libraries are shared objects.
18582 deplibs_check_method=$lt_deplibs_check_method
18583
18584 # Command to use when deplibs_check_method == file_magic.
18585 file_magic_cmd=$lt_file_magic_cmd
18586
18587 # Flag that allows shared libraries with undefined symbols to be built.
18588 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18589
18590 # Flag that forces no undefined symbols.
18591 no_undefined_flag=$lt_no_undefined_flag_GCJ
18592
18593 # Commands used to finish a libtool library installation in a directory.
18594 finish_cmds=$lt_finish_cmds
18595
18596 # Same as above, but a single script fragment to be evaled but not shown.
18597 finish_eval=$lt_finish_eval
18598
18599 # Take the output of nm and produce a listing of raw symbols and C names.
18600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18601
18602 # Transform the output of nm in a proper C declaration
18603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18604
18605 # Transform the output of nm in a C name address pair
18606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18607
18608 # This is the shared library runtime path variable.
18609 runpath_var=$runpath_var
18610
18611 # This is the shared library path variable.
18612 shlibpath_var=$shlibpath_var
18613
18614 # Is shlibpath searched before the hard-coded library search path?
18615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18616
18617 # How to hardcode a shared library path into an executable.
18618 hardcode_action=$hardcode_action_GCJ
18619
18620 # Whether we should hardcode library paths into libraries.
18621 hardcode_into_libs=$hardcode_into_libs
18622
18623 # Flag to hardcode \$libdir into a binary during linking.
18624 # This must work even if \$libdir does not exist.
18625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18626
18627 # If ld is used when linking, flag to hardcode \$libdir into
18628 # a binary during linking. This must work even if \$libdir does
18629 # not exist.
18630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18631
18632 # Whether we need a single -rpath flag with a separated argument.
18633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18634
18635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18636 # resulting binary.
18637 hardcode_direct=$hardcode_direct_GCJ
18638
18639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18640 # resulting binary.
18641 hardcode_minus_L=$hardcode_minus_L_GCJ
18642
18643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18644 # the resulting binary.
18645 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18646
18647 # Set to yes if building a shared library automatically hardcodes DIR into the library
18648 # and all subsequent libraries and executables linked against it.
18649 hardcode_automatic=$hardcode_automatic_GCJ
18650
18651 # Variables whose values should be saved in libtool wrapper scripts and
18652 # restored at relink time.
18653 variables_saved_for_relink="$variables_saved_for_relink"
18654
18655 # Whether libtool must link a program against all its dependency libraries.
18656 link_all_deplibs=$link_all_deplibs_GCJ
18657
18658 # Compile-time system search path for libraries
18659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18660
18661 # Run-time system search path for libraries
18662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18663
18664 # Fix the shell variable \$srcfile for the compiler.
18665 fix_srcfile_path="$fix_srcfile_path_GCJ"
18666
18667 # Set to yes if exported symbols are required.
18668 always_export_symbols=$always_export_symbols_GCJ
18669
18670 # The commands to list exported symbols.
18671 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18672
18673 # The commands to extract the exported symbol list from a shared archive.
18674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18675
18676 # Symbols that should not be listed in the preloaded symbols.
18677 exclude_expsyms=$lt_exclude_expsyms_GCJ
18678
18679 # Symbols that must always be exported.
18680 include_expsyms=$lt_include_expsyms_GCJ
18681
18682 # ### END LIBTOOL TAG CONFIG: $tagname
18683
18684 __EOF__
18685
18686
18687 else
18688   # If there is no Makefile yet, we rely on a make rule to execute
18689   # `config.status --recheck' to rerun these tests and create the
18690   # libtool script then.
18691   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18692   if test -f "$ltmain_in"; then
18693     test -f Makefile && make "$ltmain"
18694   fi
18695 fi
18696
18697
18698 ac_ext=c
18699 ac_cpp='$CPP $CPPFLAGS'
18700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703
18704 CC="$lt_save_CC"
18705
18706         else
18707           tagname=""
18708         fi
18709         ;;
18710
18711       RC)
18712
18713
18714 # Source file extension for RC test sources.
18715 ac_ext=rc
18716
18717 # Object file extension for compiled RC test sources.
18718 objext=o
18719 objext_RC=$objext
18720
18721 # Code to be used in simple compile tests
18722 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18723
18724 # Code to be used in simple link tests
18725 lt_simple_link_test_code="$lt_simple_compile_test_code"
18726
18727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18728
18729 # If no C compiler was specified, use CC.
18730 LTCC=${LTCC-"$CC"}
18731
18732 # If no C compiler flags were specified, use CFLAGS.
18733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18734
18735 # Allow CC to be a program name with arguments.
18736 compiler=$CC
18737
18738
18739 # save warnings/boilerplate of simple test code
18740 ac_outfile=conftest.$ac_objext
18741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18743 _lt_compiler_boilerplate=`cat conftest.err`
18744 $rm conftest*
18745
18746 ac_outfile=conftest.$ac_objext
18747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18749 _lt_linker_boilerplate=`cat conftest.err`
18750 $rm conftest*
18751
18752
18753 # Allow CC to be a program name with arguments.
18754 lt_save_CC="$CC"
18755 CC=${RC-"windres"}
18756 compiler=$CC
18757 compiler_RC=$CC
18758 for cc_temp in $compiler""; do
18759   case $cc_temp in
18760     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18761     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18762     \-*) ;;
18763     *) break;;
18764   esac
18765 done
18766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18767
18768 lt_cv_prog_compiler_c_o_RC=yes
18769
18770 # The else clause should only fire when bootstrapping the
18771 # libtool distribution, otherwise you forgot to ship ltmain.sh
18772 # with your package, and you will get complaints that there are
18773 # no rules to generate ltmain.sh.
18774 if test -f "$ltmain"; then
18775   # See if we are running on zsh, and set the options which allow our commands through
18776   # without removal of \ escapes.
18777   if test -n "${ZSH_VERSION+set}" ; then
18778     setopt NO_GLOB_SUBST
18779   fi
18780   # Now quote all the things that may contain metacharacters while being
18781   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18782   # variables and quote the copies for generation of the libtool script.
18783   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18784     SED SHELL STRIP \
18785     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18786     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18787     deplibs_check_method reload_flag reload_cmds need_locks \
18788     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18789     lt_cv_sys_global_symbol_to_c_name_address \
18790     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18791     old_postinstall_cmds old_postuninstall_cmds \
18792     compiler_RC \
18793     CC_RC \
18794     LD_RC \
18795     lt_prog_compiler_wl_RC \
18796     lt_prog_compiler_pic_RC \
18797     lt_prog_compiler_static_RC \
18798     lt_prog_compiler_no_builtin_flag_RC \
18799     export_dynamic_flag_spec_RC \
18800     thread_safe_flag_spec_RC \
18801     whole_archive_flag_spec_RC \
18802     enable_shared_with_static_runtimes_RC \
18803     old_archive_cmds_RC \
18804     old_archive_from_new_cmds_RC \
18805     predep_objects_RC \
18806     postdep_objects_RC \
18807     predeps_RC \
18808     postdeps_RC \
18809     compiler_lib_search_path_RC \
18810     archive_cmds_RC \
18811     archive_expsym_cmds_RC \
18812     postinstall_cmds_RC \
18813     postuninstall_cmds_RC \
18814     old_archive_from_expsyms_cmds_RC \
18815     allow_undefined_flag_RC \
18816     no_undefined_flag_RC \
18817     export_symbols_cmds_RC \
18818     hardcode_libdir_flag_spec_RC \
18819     hardcode_libdir_flag_spec_ld_RC \
18820     hardcode_libdir_separator_RC \
18821     hardcode_automatic_RC \
18822     module_cmds_RC \
18823     module_expsym_cmds_RC \
18824     lt_cv_prog_compiler_c_o_RC \
18825     exclude_expsyms_RC \
18826     include_expsyms_RC; do
18827
18828     case $var in
18829     old_archive_cmds_RC | \
18830     old_archive_from_new_cmds_RC | \
18831     archive_cmds_RC | \
18832     archive_expsym_cmds_RC | \
18833     module_cmds_RC | \
18834     module_expsym_cmds_RC | \
18835     old_archive_from_expsyms_cmds_RC | \
18836     export_symbols_cmds_RC | \
18837     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18838     postinstall_cmds | postuninstall_cmds | \
18839     old_postinstall_cmds | old_postuninstall_cmds | \
18840     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18841       # Double-quote double-evaled strings.
18842       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18843       ;;
18844     *)
18845       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18846       ;;
18847     esac
18848   done
18849
18850   case $lt_echo in
18851   *'\$0 --fallback-echo"')
18852     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18853     ;;
18854   esac
18855
18856 cfgfile="$ofile"
18857
18858   cat <<__EOF__ >> "$cfgfile"
18859 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18860
18861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18862
18863 # Shell to use when invoking shell scripts.
18864 SHELL=$lt_SHELL
18865
18866 # Whether or not to build shared libraries.
18867 build_libtool_libs=$enable_shared
18868
18869 # Whether or not to build static libraries.
18870 build_old_libs=$enable_static
18871
18872 # Whether or not to add -lc for building shared libraries.
18873 build_libtool_need_lc=$archive_cmds_need_lc_RC
18874
18875 # Whether or not to disallow shared libs when runtime libs are static
18876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18877
18878 # Whether or not to optimize for fast installation.
18879 fast_install=$enable_fast_install
18880
18881 # The host system.
18882 host_alias=$host_alias
18883 host=$host
18884 host_os=$host_os
18885
18886 # The build system.
18887 build_alias=$build_alias
18888 build=$build
18889 build_os=$build_os
18890
18891 # An echo program that does not interpret backslashes.
18892 echo=$lt_echo
18893
18894 # The archiver.
18895 AR=$lt_AR
18896 AR_FLAGS=$lt_AR_FLAGS
18897
18898 # A C compiler.
18899 LTCC=$lt_LTCC
18900
18901 # LTCC compiler flags.
18902 LTCFLAGS=$lt_LTCFLAGS
18903
18904 # A language-specific compiler.
18905 CC=$lt_compiler_RC
18906
18907 # Is the compiler the GNU C compiler?
18908 with_gcc=$GCC_RC
18909
18910 # An ERE matcher.
18911 EGREP=$lt_EGREP
18912
18913 # The linker used to build libraries.
18914 LD=$lt_LD_RC
18915
18916 # Whether we need hard or soft links.
18917 LN_S=$lt_LN_S
18918
18919 # A BSD-compatible nm program.
18920 NM=$lt_NM
18921
18922 # A symbol stripping program
18923 STRIP=$lt_STRIP
18924
18925 # Used to examine libraries when file_magic_cmd begins "file"
18926 MAGIC_CMD=$MAGIC_CMD
18927
18928 # Used on cygwin: DLL creation program.
18929 DLLTOOL="$DLLTOOL"
18930
18931 # Used on cygwin: object dumper.
18932 OBJDUMP="$OBJDUMP"
18933
18934 # Used on cygwin: assembler.
18935 AS="$AS"
18936
18937 # The name of the directory that contains temporary libtool files.
18938 objdir=$objdir
18939
18940 # How to create reloadable object files.
18941 reload_flag=$lt_reload_flag
18942 reload_cmds=$lt_reload_cmds
18943
18944 # How to pass a linker flag through the compiler.
18945 wl=$lt_lt_prog_compiler_wl_RC
18946
18947 # Object file suffix (normally "o").
18948 objext="$ac_objext"
18949
18950 # Old archive suffix (normally "a").
18951 libext="$libext"
18952
18953 # Shared library suffix (normally ".so").
18954 shrext_cmds='$shrext_cmds'
18955
18956 # Executable file suffix (normally "").
18957 exeext="$exeext"
18958
18959 # Additional compiler flags for building library objects.
18960 pic_flag=$lt_lt_prog_compiler_pic_RC
18961 pic_mode=$pic_mode
18962
18963 # What is the maximum length of a command?
18964 max_cmd_len=$lt_cv_sys_max_cmd_len
18965
18966 # Does compiler simultaneously support -c and -o options?
18967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18968
18969 # Must we lock files when doing compilation?
18970 need_locks=$lt_need_locks
18971
18972 # Do we need the lib prefix for modules?
18973 need_lib_prefix=$need_lib_prefix
18974
18975 # Do we need a version for libraries?
18976 need_version=$need_version
18977
18978 # Whether dlopen is supported.
18979 dlopen_support=$enable_dlopen
18980
18981 # Whether dlopen of programs is supported.
18982 dlopen_self=$enable_dlopen_self
18983
18984 # Whether dlopen of statically linked programs is supported.
18985 dlopen_self_static=$enable_dlopen_self_static
18986
18987 # Compiler flag to prevent dynamic linking.
18988 link_static_flag=$lt_lt_prog_compiler_static_RC
18989
18990 # Compiler flag to turn off builtin functions.
18991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18992
18993 # Compiler flag to allow reflexive dlopens.
18994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18995
18996 # Compiler flag to generate shared objects directly from archives.
18997 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18998
18999 # Compiler flag to generate thread-safe objects.
19000 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19001
19002 # Library versioning type.
19003 version_type=$version_type
19004
19005 # Format of library name prefix.
19006 libname_spec=$lt_libname_spec
19007
19008 # List of archive names.  First name is the real one, the rest are links.
19009 # The last name is the one that the linker finds with -lNAME.
19010 library_names_spec=$lt_library_names_spec
19011
19012 # The coded name of the library, if different from the real name.
19013 soname_spec=$lt_soname_spec
19014
19015 # Commands used to build and install an old-style archive.
19016 RANLIB=$lt_RANLIB
19017 old_archive_cmds=$lt_old_archive_cmds_RC
19018 old_postinstall_cmds=$lt_old_postinstall_cmds
19019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19020
19021 # Create an old-style archive from a shared archive.
19022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19023
19024 # Create a temporary old-style archive to link instead of a shared archive.
19025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19026
19027 # Commands used to build and install a shared archive.
19028 archive_cmds=$lt_archive_cmds_RC
19029 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19030 postinstall_cmds=$lt_postinstall_cmds
19031 postuninstall_cmds=$lt_postuninstall_cmds
19032
19033 # Commands used to build a loadable module (assumed same as above if empty)
19034 module_cmds=$lt_module_cmds_RC
19035 module_expsym_cmds=$lt_module_expsym_cmds_RC
19036
19037 # Commands to strip libraries.
19038 old_striplib=$lt_old_striplib
19039 striplib=$lt_striplib
19040
19041 # Dependencies to place before the objects being linked to create a
19042 # shared library.
19043 predep_objects=$lt_predep_objects_RC
19044
19045 # Dependencies to place after the objects being linked to create a
19046 # shared library.
19047 postdep_objects=$lt_postdep_objects_RC
19048
19049 # Dependencies to place before the objects being linked to create a
19050 # shared library.
19051 predeps=$lt_predeps_RC
19052
19053 # Dependencies to place after the objects being linked to create a
19054 # shared library.
19055 postdeps=$lt_postdeps_RC
19056
19057 # The library search path used internally by the compiler when linking
19058 # a shared library.
19059 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19060
19061 # Method to check whether dependent libraries are shared objects.
19062 deplibs_check_method=$lt_deplibs_check_method
19063
19064 # Command to use when deplibs_check_method == file_magic.
19065 file_magic_cmd=$lt_file_magic_cmd
19066
19067 # Flag that allows shared libraries with undefined symbols to be built.
19068 allow_undefined_flag=$lt_allow_undefined_flag_RC
19069
19070 # Flag that forces no undefined symbols.
19071 no_undefined_flag=$lt_no_undefined_flag_RC
19072
19073 # Commands used to finish a libtool library installation in a directory.
19074 finish_cmds=$lt_finish_cmds
19075
19076 # Same as above, but a single script fragment to be evaled but not shown.
19077 finish_eval=$lt_finish_eval
19078
19079 # Take the output of nm and produce a listing of raw symbols and C names.
19080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19081
19082 # Transform the output of nm in a proper C declaration
19083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19084
19085 # Transform the output of nm in a C name address pair
19086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19087
19088 # This is the shared library runtime path variable.
19089 runpath_var=$runpath_var
19090
19091 # This is the shared library path variable.
19092 shlibpath_var=$shlibpath_var
19093
19094 # Is shlibpath searched before the hard-coded library search path?
19095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19096
19097 # How to hardcode a shared library path into an executable.
19098 hardcode_action=$hardcode_action_RC
19099
19100 # Whether we should hardcode library paths into libraries.
19101 hardcode_into_libs=$hardcode_into_libs
19102
19103 # Flag to hardcode \$libdir into a binary during linking.
19104 # This must work even if \$libdir does not exist.
19105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19106
19107 # If ld is used when linking, flag to hardcode \$libdir into
19108 # a binary during linking. This must work even if \$libdir does
19109 # not exist.
19110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19111
19112 # Whether we need a single -rpath flag with a separated argument.
19113 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19114
19115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19116 # resulting binary.
19117 hardcode_direct=$hardcode_direct_RC
19118
19119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19120 # resulting binary.
19121 hardcode_minus_L=$hardcode_minus_L_RC
19122
19123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19124 # the resulting binary.
19125 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19126
19127 # Set to yes if building a shared library automatically hardcodes DIR into the library
19128 # and all subsequent libraries and executables linked against it.
19129 hardcode_automatic=$hardcode_automatic_RC
19130
19131 # Variables whose values should be saved in libtool wrapper scripts and
19132 # restored at relink time.
19133 variables_saved_for_relink="$variables_saved_for_relink"
19134
19135 # Whether libtool must link a program against all its dependency libraries.
19136 link_all_deplibs=$link_all_deplibs_RC
19137
19138 # Compile-time system search path for libraries
19139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19140
19141 # Run-time system search path for libraries
19142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19143
19144 # Fix the shell variable \$srcfile for the compiler.
19145 fix_srcfile_path="$fix_srcfile_path_RC"
19146
19147 # Set to yes if exported symbols are required.
19148 always_export_symbols=$always_export_symbols_RC
19149
19150 # The commands to list exported symbols.
19151 export_symbols_cmds=$lt_export_symbols_cmds_RC
19152
19153 # The commands to extract the exported symbol list from a shared archive.
19154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19155
19156 # Symbols that should not be listed in the preloaded symbols.
19157 exclude_expsyms=$lt_exclude_expsyms_RC
19158
19159 # Symbols that must always be exported.
19160 include_expsyms=$lt_include_expsyms_RC
19161
19162 # ### END LIBTOOL TAG CONFIG: $tagname
19163
19164 __EOF__
19165
19166
19167 else
19168   # If there is no Makefile yet, we rely on a make rule to execute
19169   # `config.status --recheck' to rerun these tests and create the
19170   # libtool script then.
19171   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19172   if test -f "$ltmain_in"; then
19173     test -f Makefile && make "$ltmain"
19174   fi
19175 fi
19176
19177
19178 ac_ext=c
19179 ac_cpp='$CPP $CPPFLAGS'
19180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183
19184 CC="$lt_save_CC"
19185
19186         ;;
19187
19188       *)
19189         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19190 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19191    { (exit 1); exit 1; }; }
19192         ;;
19193       esac
19194
19195       # Append the new tag name to the list of available tags.
19196       if test -n "$tagname" ; then
19197       available_tags="$available_tags $tagname"
19198     fi
19199     fi
19200   done
19201   IFS="$lt_save_ifs"
19202
19203   # Now substitute the updated list of available tags.
19204   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19205     mv "${ofile}T" "$ofile"
19206     chmod +x "$ofile"
19207   else
19208     rm -f "${ofile}T"
19209     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19210 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19211    { (exit 1); exit 1; }; }
19212   fi
19213 fi
19214
19215
19216
19217 # This can be used to rebuild libtool when needed
19218 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19219
19220 # Always use our own libtool.
19221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19222
19223 # Prevent multiple expansion
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245 # Checks for libraries.
19246
19247 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19248 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19249 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252   ac_check_lib_save_LIBS=$LIBS
19253 LIBS="-lapr-1  $LIBS"
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h.  */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h.  */
19260
19261
19262 int
19263 main ()
19264 {
19265 return main ();
19266   ;
19267   return 0;
19268 }
19269 _ACEOF
19270 rm -f conftest.$ac_objext conftest$ac_exeext
19271 if { (ac_try="$ac_link"
19272 case "(($ac_try" in
19273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274   *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277   (eval "$ac_link") 2>conftest.er1
19278   ac_status=$?
19279   grep -v '^ *+' conftest.er1 >conftest.err
19280   rm -f conftest.er1
19281   cat conftest.err >&5
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); } && {
19284          test -z "$ac_c_werror_flag" ||
19285          test ! -s conftest.err
19286        } && test -s conftest$ac_exeext &&
19287        $as_test_x conftest$ac_exeext; then
19288   ac_cv_lib_apr_1_main=yes
19289 else
19290   echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19292
19293         ac_cv_lib_apr_1_main=no
19294 fi
19295
19296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19297       conftest$ac_exeext conftest.$ac_ext
19298 LIBS=$ac_check_lib_save_LIBS
19299 fi
19300 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19301 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19302 if test $ac_cv_lib_apr_1_main = yes; then
19303   cat >>confdefs.h <<_ACEOF
19304 #define HAVE_LIBAPR_1 1
19305 _ACEOF
19306
19307   LIBS="-lapr-1 $LIBS"
19308
19309 fi
19310
19311
19312
19313 # Check whether --with-apache-header was given.
19314 if test "${with_apache_header+set}" = set; then
19315   withval=$with_apache_header;
19316 fi
19317
19318 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
19319 if test "x$with_apache_header" = "x"; then
19320     { { echo "$as_me:$LINENO: error:
19321 Please specify the --with-apache-header option.
19322 " >&5
19323 echo "$as_me: error:
19324 Please specify the --with-apache-header option.
19325 " >&2;}
19326    { (exit 1); exit 1; }; }
19327 fi
19328 if test "x$with_apache_header" = "xyes"; then
19329     { { echo "$as_me:$LINENO: error:
19330 Please specify the --with-apache-header option. And, please specify the place of the header file.
19331
19332 " >&5
19333 echo "$as_me: error:
19334 Please specify the --with-apache-header option. And, please specify the place of the header file.
19335
19336 " >&2;}
19337    { (exit 1); exit 1; }; }
19338 fi
19339
19340
19341 # Check whether --with-apxs was given.
19342 if test "${with_apxs+set}" = set; then
19343   withval=$with_apxs;
19344 fi
19345
19346 if test "x$with_apxs" = "x" ; then
19347   APXS=""
19348 fi
19349 if test "x$with_apxs" = "xyes" ; then
19350     { { echo "$as_me:$LINENO: error:
19351 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19352 " >&5
19353 echo "$as_me: error:
19354 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19355 " >&2;}
19356    { (exit 1); exit 1; }; }
19357 fi
19358
19359
19360 # Check whether --with-apr-config was given.
19361 if test "${with_apr_config+set}" = set; then
19362   withval=$with_apr_config;
19363 fi
19364
19365 if test "x$with_apr_config" = "xyes" ; then
19366     { { echo "$as_me:$LINENO: error:
19367 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19368 " >&5
19369 echo "$as_me: error:
19370 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19371 " >&2;}
19372    { (exit 1); exit 1; }; }
19373 fi
19374
19375
19376 # Check whether --with-apu-config was given.
19377 if test "${with_apu_config+set}" = set; then
19378   withval=$with_apu_config;
19379 fi
19380
19381 if test "x$with_apu_config" = "xyes" ; then
19382     { { echo "$as_me:$LINENO: error:
19383 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19384 " >&5
19385 echo "$as_me: error:
19386 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19387 " >&2;}
19388    { (exit 1); exit 1; }; }
19389 fi
19390
19391
19392 # Check whether --enable-img-conv-f was given.
19393 if test "${enable_img_conv_f+set}" = set; then
19394   enableval=$enable_img_conv_f;
19395 fi
19396
19397 if test "x$enable_img_conv_f" = "xyes"; then
19398   QDEFS=""
19399 else
19400   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19401 fi
19402
19403 # Check whether --enable-dump-log was given.
19404 if test "${enable_dump_log+set}" = set; then
19405   enableval=$enable_dump_log;
19406 fi
19407
19408 if test "x$enable_dump_log" = "xyes"; then
19409   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19410 else
19411     if test "x$enable_dump_log" != "x" ; then
19412         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19413     fi
19414 fi
19415
19416
19417 if test "x$with_apxs" = "x" ; then
19418   # Extract the first word of "apxs", so it can be a program name with args.
19419 set dummy apxs; ac_word=$2
19420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19422 if test "${ac_cv_path_APXS+set}" = set; then
19423   echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425   case $APXS in
19426   [\\/]* | ?:[\\/]*)
19427   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19428   ;;
19429   *)
19430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19431 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19432 for as_dir in $as_dummy
19433 do
19434   IFS=$as_save_IFS
19435   test -z "$as_dir" && as_dir=.
19436   for ac_exec_ext in '' $ac_executable_extensions; do
19437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19438     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19440     break 2
19441   fi
19442 done
19443 done
19444 IFS=$as_save_IFS
19445
19446   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19447   ;;
19448 esac
19449 fi
19450 APXS=$ac_cv_path_APXS
19451 if test -n "$APXS"; then
19452   { echo "$as_me:$LINENO: result: $APXS" >&5
19453 echo "${ECHO_T}$APXS" >&6; }
19454 else
19455   { echo "$as_me:$LINENO: result: no" >&5
19456 echo "${ECHO_T}no" >&6; }
19457 fi
19458
19459
19460   if test "x$APXS" = "xno"; then
19461       { { echo "$as_me:$LINENO: error: apxs not found." >&5
19462 echo "$as_me: error: apxs not found." >&2;}
19463    { (exit 1); exit 1; }; }
19464   fi
19465 fi
19466 if test "x$with_apxs" != "x" ; then
19467   APXS=$with_apxs
19468 fi
19469
19470 # Extract the first word of "libtool", so it can be a program name with args.
19471 set dummy libtool; ac_word=$2
19472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19474 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19475   echo $ECHO_N "(cached) $ECHO_C" >&6
19476 else
19477   case $LIBTOOL in
19478   [\\/]* | ?:[\\/]*)
19479   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19480   ;;
19481   *)
19482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19483 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19484 for as_dir in $as_dummy
19485 do
19486   IFS=$as_save_IFS
19487   test -z "$as_dir" && as_dir=.
19488   for ac_exec_ext in '' $ac_executable_extensions; do
19489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19490     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19492     break 2
19493   fi
19494 done
19495 done
19496 IFS=$as_save_IFS
19497
19498   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19499   ;;
19500 esac
19501 fi
19502 LIBTOOL=$ac_cv_path_LIBTOOL
19503 if test -n "$LIBTOOL"; then
19504   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19505 echo "${ECHO_T}$LIBTOOL" >&6; }
19506 else
19507   { echo "$as_me:$LINENO: result: no" >&5
19508 echo "${ECHO_T}no" >&6; }
19509 fi
19510
19511
19512 if test "x$LIBTOOL" = "xno"; then
19513     { { echo "$as_me:$LINENO: error: libtool not found." >&5
19514 echo "$as_me: error: libtool not found." >&2;}
19515    { (exit 1); exit 1; }; }
19516 fi
19517
19518
19519 # Extract the first word of "Wand-config", so it can be a program name with args.
19520 set dummy Wand-config; ac_word=$2
19521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   case $WAND_CONFIG in
19527   [\\/]* | ?:[\\/]*)
19528   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19529   ;;
19530   *)
19531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19533 for as_dir in $as_dummy
19534 do
19535   IFS=$as_save_IFS
19536   test -z "$as_dir" && as_dir=.
19537   for ac_exec_ext in '' $ac_executable_extensions; do
19538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19539     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19541     break 2
19542   fi
19543 done
19544 done
19545 IFS=$as_save_IFS
19546
19547   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19548   ;;
19549 esac
19550 fi
19551 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19552 if test -n "$WAND_CONFIG"; then
19553   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19554 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19555 else
19556   { echo "$as_me:$LINENO: result: no" >&5
19557 echo "${ECHO_T}no" >&6; }
19558 fi
19559
19560
19561 if test "x$WAND_CONFIG" = "xno" ; then
19562     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19563 echo "$as_me: error: wand-config not found." >&2;}
19564    { (exit 1); exit 1; }; }
19565 fi
19566
19567 if test "x$with_apr_config" = "x" ; then
19568   # Extract the first word of "apr-config", so it can be a program name with args.
19569 set dummy apr-config; ac_word=$2
19570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19572 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   case $APR_CONFIG in
19576   [\\/]* | ?:[\\/]*)
19577   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19578   ;;
19579   *)
19580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19581 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19582 for as_dir in $as_dummy
19583 do
19584   IFS=$as_save_IFS
19585   test -z "$as_dir" && as_dir=.
19586   for ac_exec_ext in '' $ac_executable_extensions; do
19587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19588     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19590     break 2
19591   fi
19592 done
19593 done
19594 IFS=$as_save_IFS
19595
19596   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19597   ;;
19598 esac
19599 fi
19600 APR_CONFIG=$ac_cv_path_APR_CONFIG
19601 if test -n "$APR_CONFIG"; then
19602   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19603 echo "${ECHO_T}$APR_CONFIG" >&6; }
19604 else
19605   { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19607 fi
19608
19609
19610   if test "x$APR_CONFIG" = "xno" ; then
19611     # Extract the first word of "apr-1-config", so it can be a program name with args.
19612 set dummy apr-1-config; ac_word=$2
19613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19615 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   case $APR_1_CONFIG in
19619   [\\/]* | ?:[\\/]*)
19620   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19621   ;;
19622   *)
19623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19624 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19625 for as_dir in $as_dummy
19626 do
19627   IFS=$as_save_IFS
19628   test -z "$as_dir" && as_dir=.
19629   for ac_exec_ext in '' $ac_executable_extensions; do
19630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19631     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19633     break 2
19634   fi
19635 done
19636 done
19637 IFS=$as_save_IFS
19638
19639   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19640   ;;
19641 esac
19642 fi
19643 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19644 if test -n "$APR_1_CONFIG"; then
19645   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19646 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19647 else
19648   { echo "$as_me:$LINENO: result: no" >&5
19649 echo "${ECHO_T}no" >&6; }
19650 fi
19651
19652
19653     if test "x$APR_1_CONFIG" = "xno" ; then
19654       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19655 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19656    { (exit 1); exit 1; }; }
19657     else
19658       APR_CONFIG="$APR_1_CONFIG"
19659     fi
19660   fi
19661 fi
19662 if test "x$with_apr_config" != "x" ; then
19663   APR_CONFIG=$with_apr_config
19664 fi
19665 if test "x$with_apu_config" = "x" ; then
19666   # Extract the first word of "apu-config", so it can be a program name with args.
19667 set dummy apu-config; ac_word=$2
19668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19670 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19671   echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673   case $APU_CONFIG in
19674   [\\/]* | ?:[\\/]*)
19675   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19676   ;;
19677   *)
19678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19680 for as_dir in $as_dummy
19681 do
19682   IFS=$as_save_IFS
19683   test -z "$as_dir" && as_dir=.
19684   for ac_exec_ext in '' $ac_executable_extensions; do
19685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19686     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19688     break 2
19689   fi
19690 done
19691 done
19692 IFS=$as_save_IFS
19693
19694   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19695   ;;
19696 esac
19697 fi
19698 APU_CONFIG=$ac_cv_path_APU_CONFIG
19699 if test -n "$APU_CONFIG"; then
19700   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19701 echo "${ECHO_T}$APU_CONFIG" >&6; }
19702 else
19703   { echo "$as_me:$LINENO: result: no" >&5
19704 echo "${ECHO_T}no" >&6; }
19705 fi
19706
19707
19708   if test "x$APU_CONFIG" = "xno" ; then
19709     # Extract the first word of "apu-1-config", so it can be a program name with args.
19710 set dummy apu-1-config; ac_word=$2
19711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19713 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19714   echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716   case $APU_1_CONFIG in
19717   [\\/]* | ?:[\\/]*)
19718   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19719   ;;
19720   *)
19721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19723 for as_dir in $as_dummy
19724 do
19725   IFS=$as_save_IFS
19726   test -z "$as_dir" && as_dir=.
19727   for ac_exec_ext in '' $ac_executable_extensions; do
19728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19729     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19731     break 2
19732   fi
19733 done
19734 done
19735 IFS=$as_save_IFS
19736
19737   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19738   ;;
19739 esac
19740 fi
19741 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19742 if test -n "$APU_1_CONFIG"; then
19743   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19744 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19745 else
19746   { echo "$as_me:$LINENO: result: no" >&5
19747 echo "${ECHO_T}no" >&6; }
19748 fi
19749
19750
19751     if test "x$APU_1_CONFIG" = "xno" ; then
19752       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19753 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19754    { (exit 1); exit 1; }; }
19755     else
19756       APU_CONFIG="$APU_1_CONFIG"
19757     fi
19758   fi
19759 fi
19760 if test "x$with_apu_config" != "x" ; then
19761   APU_CONFIG=$with_apu_config
19762 fi
19763
19764
19765 # Check whether --with-iconv was given.
19766 if test "${with_iconv+set}" = set; then
19767   withval=$with_iconv;
19768 fi
19769
19770
19771 # Check whether --with-iconv_hook was given.
19772 if test "${with_iconv_hook+set}" = set; then
19773   withval=$with_iconv_hook;
19774 fi
19775
19776 if test "x$with_iconv" = "x" -a "x$with_iconv_hook" = "x" ; then
19777   { echo "$as_me:$LINENO: checking for iconv_open in -liconv_hook" >&5
19778 echo $ECHO_N "checking for iconv_open in -liconv_hook... $ECHO_C" >&6; }
19779 if test "${ac_cv_lib_iconv_hook_iconv_open+set}" = set; then
19780   echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782   ac_check_lib_save_LIBS=$LIBS
19783 LIBS="-liconv_hook  $LIBS"
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h.  */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h.  */
19790
19791 /* Override any GCC internal prototype to avoid an error.
19792    Use char because int might match the return type of a GCC
19793    builtin and then its argument prototype would still apply.  */
19794 #ifdef __cplusplus
19795 extern "C"
19796 #endif
19797 char iconv_open ();
19798 int
19799 main ()
19800 {
19801 return iconv_open ();
19802   ;
19803   return 0;
19804 }
19805 _ACEOF
19806 rm -f conftest.$ac_objext conftest$ac_exeext
19807 if { (ac_try="$ac_link"
19808 case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_link") 2>conftest.er1
19814   ac_status=$?
19815   grep -v '^ *+' conftest.er1 >conftest.err
19816   rm -f conftest.er1
19817   cat conftest.err >&5
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } && {
19820          test -z "$ac_c_werror_flag" ||
19821          test ! -s conftest.err
19822        } && test -s conftest$ac_exeext &&
19823        $as_test_x conftest$ac_exeext; then
19824   ac_cv_lib_iconv_hook_iconv_open=yes
19825 else
19826   echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829         ac_cv_lib_iconv_hook_iconv_open=no
19830 fi
19831
19832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19833       conftest$ac_exeext conftest.$ac_ext
19834 LIBS=$ac_check_lib_save_LIBS
19835 fi
19836 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_hook_iconv_open" >&5
19837 echo "${ECHO_T}$ac_cv_lib_iconv_hook_iconv_open" >&6; }
19838 if test $ac_cv_lib_iconv_hook_iconv_open = yes; then
19839
19840       with_iconv="ok"
19841
19842 cat >>confdefs.h <<\_ACEOF
19843 #define HAVE_LIBICONV_HOOK
19844 _ACEOF
19845
19846       LIBS="${LIBS} -liconv_hook"
19847
19848 else
19849
19850     { echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
19851 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6; }
19852 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855   ac_check_lib_save_LIBS=$LIBS
19856 LIBS="-liconv  $LIBS"
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863
19864 /* Override any GCC internal prototype to avoid an error.
19865    Use char because int might match the return type of a GCC
19866    builtin and then its argument prototype would still apply.  */
19867 #ifdef __cplusplus
19868 extern "C"
19869 #endif
19870 char iconv_open ();
19871 int
19872 main ()
19873 {
19874 return iconv_open ();
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_link") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } && {
19893          test -z "$ac_c_werror_flag" ||
19894          test ! -s conftest.err
19895        } && test -s conftest$ac_exeext &&
19896        $as_test_x conftest$ac_exeext; then
19897   ac_cv_lib_iconv_iconv_open=yes
19898 else
19899   echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902         ac_cv_lib_iconv_iconv_open=no
19903 fi
19904
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906       conftest$ac_exeext conftest.$ac_ext
19907 LIBS=$ac_check_lib_save_LIBS
19908 fi
19909 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
19910 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6; }
19911 if test $ac_cv_lib_iconv_iconv_open = yes; then
19912
19913       with_iconv="ok"
19914
19915 cat >>confdefs.h <<\_ACEOF
19916 #define HAVE_LIBICONV
19917 _ACEOF
19918
19919       LIBS="${LIBS} -liconv"
19920
19921 else
19922
19923       witn_iconv=""
19924
19925 fi
19926
19927
19928 fi
19929
19930 fi
19931
19932 if test "x$with_iconv" != "xok" ; then
19933   if test "x$with_iconv" = "xyes" ; then
19934       { { echo "$as_me:$LINENO: error:
19935   Please specify the --with-iconv option. And, please specify the place of the libiconv program.
19936   " >&5
19937 echo "$as_me: error:
19938   Please specify the --with-iconv option. And, please specify the place of the libiconv program.
19939   " >&2;}
19940    { (exit 1); exit 1; }; }
19941   fi
19942   if test "x$with_iconv" != "x" ; then
19943     LIBS="${LIBS} -L$with_iconv -liconv "
19944
19945 cat >>confdefs.h <<\_ACEOF
19946 #define HAVE_LIBICONV
19947 _ACEOF
19948
19949   fi
19950 fi
19951 if test "x$with_iconv" = "x" ; then
19952   if test "x$with_iconv_hook" = "xyes" ; then
19953       { { echo "$as_me:$LINENO: error:
19954   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19955   " >&5
19956 echo "$as_me: error:
19957   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19958   " >&2;}
19959    { (exit 1); exit 1; }; }
19960   fi
19961   if test "x$with_iconv_hook" != "x" ; then
19962     LIBS="${LIBS} -L${with_iconv_hook} -liconv_hook "
19963
19964 cat >>confdefs.h <<\_ACEOF
19965 #define HAVE_LIBICONV_HOOK
19966 _ACEOF
19967
19968   fi
19969   if test "x$with_iconv_hook" = "x" ; then
19970       { { echo "$as_me:$LINENO: error:
19971   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19972   " >&5
19973 echo "$as_me: error:
19974   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19975   " >&2;}
19976    { (exit 1); exit 1; }; }
19977   fi
19978 fi
19979
19980
19981 case $host_os in
19982   freebsd*)
19983     CFLAGS="${CFLAGS} -I/usr/local/include "
19984     ;;
19985 esac
19986
19987
19988 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19989 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19990 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19991 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19992 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19993 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19994 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
19995
19996
19997
19998
19999
20000
20001
20002 # Checks for header files.
20003 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20005 if test "${ac_cv_header_stdc+set}" = set; then
20006   echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008   cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h.  */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h.  */
20014 #include <stdlib.h>
20015 #include <stdarg.h>
20016 #include <string.h>
20017 #include <float.h>
20018
20019 int
20020 main ()
20021 {
20022
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031   *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034   (eval "$ac_compile") 2>conftest.er1
20035   ac_status=$?
20036   grep -v '^ *+' conftest.er1 >conftest.err
20037   rm -f conftest.er1
20038   cat conftest.err >&5
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } && {
20041          test -z "$ac_c_werror_flag" ||
20042          test ! -s conftest.err
20043        } && test -s conftest.$ac_objext; then
20044   ac_cv_header_stdc=yes
20045 else
20046   echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20048
20049         ac_cv_header_stdc=no
20050 fi
20051
20052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053
20054 if test $ac_cv_header_stdc = yes; then
20055   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20056   cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 #include <string.h>
20063
20064 _ACEOF
20065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20066   $EGREP "memchr" >/dev/null 2>&1; then
20067   :
20068 else
20069   ac_cv_header_stdc=no
20070 fi
20071 rm -f conftest*
20072
20073 fi
20074
20075 if test $ac_cv_header_stdc = yes; then
20076   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20077   cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 #include <stdlib.h>
20084
20085 _ACEOF
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087   $EGREP "free" >/dev/null 2>&1; then
20088   :
20089 else
20090   ac_cv_header_stdc=no
20091 fi
20092 rm -f conftest*
20093
20094 fi
20095
20096 if test $ac_cv_header_stdc = yes; then
20097   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20098   if test "$cross_compiling" = yes; then
20099   :
20100 else
20101   cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107 #include <ctype.h>
20108 #include <stdlib.h>
20109 #if ((' ' & 0x0FF) == 0x020)
20110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20112 #else
20113 # define ISLOWER(c) \
20114                    (('a' <= (c) && (c) <= 'i') \
20115                      || ('j' <= (c) && (c) <= 'r') \
20116                      || ('s' <= (c) && (c) <= 'z'))
20117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20118 #endif
20119
20120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20121 int
20122 main ()
20123 {
20124   int i;
20125   for (i = 0; i < 256; i++)
20126     if (XOR (islower (i), ISLOWER (i))
20127         || toupper (i) != TOUPPER (i))
20128       return 2;
20129   return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest$ac_exeext
20133 if { (ac_try="$ac_link"
20134 case "(($ac_try" in
20135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136   *) ac_try_echo=$ac_try;;
20137 esac
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139   (eval "$ac_link") 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143   { (case "(($ac_try" in
20144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145   *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148   (eval "$ac_try") 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   :
20153 else
20154   echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 ( exit $ac_status )
20159 ac_cv_header_stdc=no
20160 fi
20161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20162 fi
20163
20164
20165 fi
20166 fi
20167 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20168 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20169 if test $ac_cv_header_stdc = yes; then
20170
20171 cat >>confdefs.h <<\_ACEOF
20172 #define STDC_HEADERS 1
20173 _ACEOF
20174
20175 fi
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20186 do
20187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20189   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20192   echo $ECHO_N "(cached) $ECHO_C" >&6
20193 fi
20194 ac_res=`eval echo '${'$as_ac_Header'}'`
20195                { echo "$as_me:$LINENO: result: $ac_res" >&5
20196 echo "${ECHO_T}$ac_res" >&6; }
20197 else
20198   # Is the header compilable?
20199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20201 cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207 $ac_includes_default
20208 #include <$ac_header>
20209 _ACEOF
20210 rm -f conftest.$ac_objext
20211 if { (ac_try="$ac_compile"
20212 case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_compile") 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } && {
20224          test -z "$ac_c_werror_flag" ||
20225          test ! -s conftest.err
20226        } && test -s conftest.$ac_objext; then
20227   ac_header_compiler=yes
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         ac_header_compiler=no
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20237 echo "${ECHO_T}$ac_header_compiler" >&6; }
20238
20239 # Is the header present?
20240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 #include <$ac_header>
20249 _ACEOF
20250 if { (ac_try="$ac_cpp conftest.$ac_ext"
20251 case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20257   ac_status=$?
20258   grep -v '^ *+' conftest.er1 >conftest.err
20259   rm -f conftest.er1
20260   cat conftest.err >&5
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } >/dev/null && {
20263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20264          test ! -s conftest.err
20265        }; then
20266   ac_header_preproc=yes
20267 else
20268   echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271   ac_header_preproc=no
20272 fi
20273
20274 rm -f conftest.err conftest.$ac_ext
20275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20276 echo "${ECHO_T}$ac_header_preproc" >&6; }
20277
20278 # So?  What about this header?
20279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20280   yes:no: )
20281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20285     ac_header_preproc=yes
20286     ;;
20287   no:yes:* )
20288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20300
20301     ;;
20302 esac
20303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   eval "$as_ac_Header=\$ac_header_preproc"
20309 fi
20310 ac_res=`eval echo '${'$as_ac_Header'}'`
20311                { echo "$as_me:$LINENO: result: $ac_res" >&5
20312 echo "${ECHO_T}$ac_res" >&6; }
20313
20314 fi
20315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20316   cat >>confdefs.h <<_ACEOF
20317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20318 _ACEOF
20319
20320 fi
20321
20322 done
20323
20324 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20325
20326
20327 for ac_header in apr_shm.h apr_global_mutex.h
20328 do
20329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20334   echo $ECHO_N "(cached) $ECHO_C" >&6
20335 fi
20336 ac_res=`eval echo '${'$as_ac_Header'}'`
20337                { echo "$as_me:$LINENO: result: $ac_res" >&5
20338 echo "${ECHO_T}$ac_res" >&6; }
20339 else
20340   # Is the header compilable?
20341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h.  */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h.  */
20349 $ac_includes_default
20350 #include <$ac_header>
20351 _ACEOF
20352 rm -f conftest.$ac_objext
20353 if { (ac_try="$ac_compile"
20354 case "(($ac_try" in
20355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356   *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359   (eval "$ac_compile") 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } && {
20366          test -z "$ac_c_werror_flag" ||
20367          test ! -s conftest.err
20368        } && test -s conftest.$ac_objext; then
20369   ac_header_compiler=yes
20370 else
20371   echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374         ac_header_compiler=no
20375 fi
20376
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20379 echo "${ECHO_T}$ac_header_compiler" >&6; }
20380
20381 # Is the header present?
20382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20384 cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 #include <$ac_header>
20391 _ACEOF
20392 if { (ac_try="$ac_cpp conftest.$ac_ext"
20393 case "(($ac_try" in
20394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395   *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20399   ac_status=$?
20400   grep -v '^ *+' conftest.er1 >conftest.err
20401   rm -f conftest.er1
20402   cat conftest.err >&5
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } >/dev/null && {
20405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20406          test ! -s conftest.err
20407        }; then
20408   ac_header_preproc=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413   ac_header_preproc=no
20414 fi
20415
20416 rm -f conftest.err conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6; }
20419
20420 # So?  What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20422   yes:no: )
20423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20427     ac_header_preproc=yes
20428     ;;
20429   no:yes:* )
20430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20442
20443     ;;
20444 esac
20445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20448   echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450   eval "$as_ac_Header=\$ac_header_preproc"
20451 fi
20452 ac_res=`eval echo '${'$as_ac_Header'}'`
20453                { echo "$as_me:$LINENO: result: $ac_res" >&5
20454 echo "${ECHO_T}$ac_res" >&6; }
20455
20456 fi
20457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20458   cat >>confdefs.h <<_ACEOF
20459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20460 _ACEOF
20461
20462 fi
20463
20464 done
20465
20466
20467 for ac_header in apr.h
20468 do
20469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20471   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 fi
20476 ac_res=`eval echo '${'$as_ac_Header'}'`
20477                { echo "$as_me:$LINENO: result: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20479 else
20480   # Is the header compilable?
20481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h.  */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h.  */
20489 $ac_includes_default
20490 #include <$ac_header>
20491 _ACEOF
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_compile") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } && {
20506          test -z "$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        } && test -s conftest.$ac_objext; then
20509   ac_header_compiler=yes
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514         ac_header_compiler=no
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20519 echo "${ECHO_T}$ac_header_compiler" >&6; }
20520
20521 # Is the header present?
20522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20524 cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530 #include <$ac_header>
20531 _ACEOF
20532 if { (ac_try="$ac_cpp conftest.$ac_ext"
20533 case "(($ac_try" in
20534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535   *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20539   ac_status=$?
20540   grep -v '^ *+' conftest.er1 >conftest.err
20541   rm -f conftest.er1
20542   cat conftest.err >&5
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } >/dev/null && {
20545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20546          test ! -s conftest.err
20547        }; then
20548   ac_header_preproc=yes
20549 else
20550   echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553   ac_header_preproc=no
20554 fi
20555
20556 rm -f conftest.err conftest.$ac_ext
20557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20558 echo "${ECHO_T}$ac_header_preproc" >&6; }
20559
20560 # So?  What about this header?
20561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20562   yes:no: )
20563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20567     ac_header_preproc=yes
20568     ;;
20569   no:yes:* )
20570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20582
20583     ;;
20584 esac
20585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590   eval "$as_ac_Header=\$ac_header_preproc"
20591 fi
20592 ac_res=`eval echo '${'$as_ac_Header'}'`
20593                { echo "$as_me:$LINENO: result: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20595
20596 fi
20597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20598   cat >>confdefs.h <<_ACEOF
20599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20600 _ACEOF
20601
20602 fi
20603
20604 done
20605
20606
20607 for ac_header in ap_config.h
20608 do
20609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20611   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20614   echo $ECHO_N "(cached) $ECHO_C" >&6
20615 fi
20616 ac_res=`eval echo '${'$as_ac_Header'}'`
20617                { echo "$as_me:$LINENO: result: $ac_res" >&5
20618 echo "${ECHO_T}$ac_res" >&6; }
20619 else
20620   # Is the header compilable?
20621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629 $ac_includes_default
20630 #include <$ac_header>
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_compile") 2>conftest.er1
20640   ac_status=$?
20641   grep -v '^ *+' conftest.er1 >conftest.err
20642   rm -f conftest.er1
20643   cat conftest.err >&5
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } && {
20646          test -z "$ac_c_werror_flag" ||
20647          test ! -s conftest.err
20648        } && test -s conftest.$ac_objext; then
20649   ac_header_compiler=yes
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654         ac_header_compiler=no
20655 fi
20656
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20659 echo "${ECHO_T}$ac_header_compiler" >&6; }
20660
20661 # Is the header present?
20662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 #include <$ac_header>
20671 _ACEOF
20672 if { (ac_try="$ac_cpp conftest.$ac_ext"
20673 case "(($ac_try" in
20674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675   *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } >/dev/null && {
20685          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20686          test ! -s conftest.err
20687        }; then
20688   ac_header_preproc=yes
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693   ac_header_preproc=no
20694 fi
20695
20696 rm -f conftest.err conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698 echo "${ECHO_T}$ac_header_preproc" >&6; }
20699
20700 # So?  What about this header?
20701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20702   yes:no: )
20703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20707     ac_header_preproc=yes
20708     ;;
20709   no:yes:* )
20710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20722
20723     ;;
20724 esac
20725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20728   echo $ECHO_N "(cached) $ECHO_C" >&6
20729 else
20730   eval "$as_ac_Header=\$ac_header_preproc"
20731 fi
20732 ac_res=`eval echo '${'$as_ac_Header'}'`
20733                { echo "$as_me:$LINENO: result: $ac_res" >&5
20734 echo "${ECHO_T}$ac_res" >&6; }
20735
20736 fi
20737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20738   cat >>confdefs.h <<_ACEOF
20739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20740 _ACEOF
20741
20742 fi
20743
20744 done
20745
20746
20747 for ac_header in ap_regex.h
20748 do
20749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20753   echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755   cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h.  */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h.  */
20761
20762 #ifdef HAVE_APR_H
20763 #include "apr.h"
20764 #endif
20765 #ifdef HAVE_AP_CONFIG_H
20766 #include "ap_config.h"
20767 #endif
20768
20769
20770 #include <$ac_header>
20771 _ACEOF
20772 rm -f conftest.$ac_objext
20773 if { (ac_try="$ac_compile"
20774 case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_compile") 2>conftest.er1
20780   ac_status=$?
20781   grep -v '^ *+' conftest.er1 >conftest.err
20782   rm -f conftest.er1
20783   cat conftest.err >&5
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } && {
20786          test -z "$ac_c_werror_flag" ||
20787          test ! -s conftest.err
20788        } && test -s conftest.$ac_objext; then
20789   eval "$as_ac_Header=yes"
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794         eval "$as_ac_Header=no"
20795 fi
20796
20797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798 fi
20799 ac_res=`eval echo '${'$as_ac_Header'}'`
20800                { echo "$as_me:$LINENO: result: $ac_res" >&5
20801 echo "${ECHO_T}$ac_res" >&6; }
20802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20803   cat >>confdefs.h <<_ACEOF
20804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20805 _ACEOF
20806
20807 cat >>confdefs.h <<\_ACEOF
20808 #define HAVE_AP_REGEX_H
20809 _ACEOF
20810
20811 fi
20812
20813 done
20814
20815
20816 # Checks for typedefs, structures, and compiler characteristics.
20817 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20819 if test "${ac_cv_c_const+set}" = set; then
20820   echo $ECHO_N "(cached) $ECHO_C" >&6
20821 else
20822   cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828
20829 int
20830 main ()
20831 {
20832 /* FIXME: Include the comments suggested by Paul. */
20833 #ifndef __cplusplus
20834   /* Ultrix mips cc rejects this.  */
20835   typedef int charset[2];
20836   const charset cs;
20837   /* SunOS 4.1.1 cc rejects this.  */
20838   char const *const *pcpcc;
20839   char **ppc;
20840   /* NEC SVR4.0.2 mips cc rejects this.  */
20841   struct point {int x, y;};
20842   static struct point const zero = {0,0};
20843   /* AIX XL C 1.02.0.0 rejects this.
20844      It does not let you subtract one const X* pointer from another in
20845      an arm of an if-expression whose if-part is not a constant
20846      expression */
20847   const char *g = "string";
20848   pcpcc = &g + (g ? g-g : 0);
20849   /* HPUX 7.0 cc rejects these. */
20850   ++pcpcc;
20851   ppc = (char**) pcpcc;
20852   pcpcc = (char const *const *) ppc;
20853   { /* SCO 3.2v4 cc rejects this.  */
20854     char *t;
20855     char const *s = 0 ? (char *) 0 : (char const *) 0;
20856
20857     *t++ = 0;
20858     if (s) return 0;
20859   }
20860   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20861     int x[] = {25, 17};
20862     const int *foo = &x[0];
20863     ++foo;
20864   }
20865   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20866     typedef const int *iptr;
20867     iptr p = 0;
20868     ++p;
20869   }
20870   { /* AIX XL C 1.02.0.0 rejects this saying
20871        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20872     struct s { int j; const int *ap[3]; };
20873     struct s *b; b->j = 5;
20874   }
20875   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20876     const int foo = 10;
20877     if (!foo) return 0;
20878   }
20879   return !cs[0] && !zero.x;
20880 #endif
20881
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_compile") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest.$ac_objext; then
20903   ac_cv_c_const=yes
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_cv_c_const=no
20909 fi
20910
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 fi
20913 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20914 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20915 if test $ac_cv_c_const = no; then
20916
20917 cat >>confdefs.h <<\_ACEOF
20918 #define const
20919 _ACEOF
20920
20921 fi
20922
20923
20924 # Checks for library functions.
20925
20926 for ac_header in stdlib.h
20927 do
20928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20933   echo $ECHO_N "(cached) $ECHO_C" >&6
20934 fi
20935 ac_res=`eval echo '${'$as_ac_Header'}'`
20936                { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20938 else
20939   # Is the header compilable?
20940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 $ac_includes_default
20949 #include <$ac_header>
20950 _ACEOF
20951 rm -f conftest.$ac_objext
20952 if { (ac_try="$ac_compile"
20953 case "(($ac_try" in
20954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955   *) ac_try_echo=$ac_try;;
20956 esac
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958   (eval "$ac_compile") 2>conftest.er1
20959   ac_status=$?
20960   grep -v '^ *+' conftest.er1 >conftest.err
20961   rm -f conftest.er1
20962   cat conftest.err >&5
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); } && {
20965          test -z "$ac_c_werror_flag" ||
20966          test ! -s conftest.err
20967        } && test -s conftest.$ac_objext; then
20968   ac_header_compiler=yes
20969 else
20970   echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973         ac_header_compiler=no
20974 fi
20975
20976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20978 echo "${ECHO_T}$ac_header_compiler" >&6; }
20979
20980 # Is the header present?
20981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20983 cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989 #include <$ac_header>
20990 _ACEOF
20991 if { (ac_try="$ac_cpp conftest.$ac_ext"
20992 case "(($ac_try" in
20993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994   *) ac_try_echo=$ac_try;;
20995 esac
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } >/dev/null && {
21004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21005          test ! -s conftest.err
21006        }; then
21007   ac_header_preproc=yes
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012   ac_header_preproc=no
21013 fi
21014
21015 rm -f conftest.err conftest.$ac_ext
21016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21017 echo "${ECHO_T}$ac_header_preproc" >&6; }
21018
21019 # So?  What about this header?
21020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21021   yes:no: )
21022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21026     ac_header_preproc=yes
21027     ;;
21028   no:yes:* )
21029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21041
21042     ;;
21043 esac
21044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21047   echo $ECHO_N "(cached) $ECHO_C" >&6
21048 else
21049   eval "$as_ac_Header=\$ac_header_preproc"
21050 fi
21051 ac_res=`eval echo '${'$as_ac_Header'}'`
21052                { echo "$as_me:$LINENO: result: $ac_res" >&5
21053 echo "${ECHO_T}$ac_res" >&6; }
21054
21055 fi
21056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21057   cat >>confdefs.h <<_ACEOF
21058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21059 _ACEOF
21060
21061 fi
21062
21063 done
21064
21065 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21066 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21067 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21068   echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070   if test "$cross_compiling" = yes; then
21071   ac_cv_func_malloc_0_nonnull=no
21072 else
21073   cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21080 # include <stdlib.h>
21081 #else
21082 char *malloc ();
21083 #endif
21084
21085 int
21086 main ()
21087 {
21088 return ! malloc (0);
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_link") 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21104   { (case "(($ac_try" in
21105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106   *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109   (eval "$ac_try") 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   ac_cv_func_malloc_0_nonnull=yes
21114 else
21115   echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ( exit $ac_status )
21120 ac_cv_func_malloc_0_nonnull=no
21121 fi
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21123 fi
21124
21125
21126 fi
21127 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21128 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21129 if test $ac_cv_func_malloc_0_nonnull = yes; then
21130
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_MALLOC 1
21133 _ACEOF
21134
21135 else
21136   cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_MALLOC 0
21138 _ACEOF
21139
21140    case " $LIBOBJS " in
21141   *" malloc.$ac_objext "* ) ;;
21142   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21143  ;;
21144 esac
21145
21146
21147 cat >>confdefs.h <<\_ACEOF
21148 #define malloc rpl_malloc
21149 _ACEOF
21150
21151 fi
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21164 do
21165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21169   echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171   cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h.  */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h.  */
21177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21179 #define $ac_func innocuous_$ac_func
21180
21181 /* System header to define __stub macros and hopefully few prototypes,
21182     which can conflict with char $ac_func (); below.
21183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21184     <limits.h> exists even on freestanding compilers.  */
21185
21186 #ifdef __STDC__
21187 # include <limits.h>
21188 #else
21189 # include <assert.h>
21190 #endif
21191
21192 #undef $ac_func
21193
21194 /* Override any GCC internal prototype to avoid an error.
21195    Use char because int might match the return type of a GCC
21196    builtin and then its argument prototype would still apply.  */
21197 #ifdef __cplusplus
21198 extern "C"
21199 #endif
21200 char $ac_func ();
21201 /* The GNU C library defines this for functions which it implements
21202     to always fail with ENOSYS.  Some functions are actually named
21203     something starting with __ and the normal name is an alias.  */
21204 #if defined __stub_$ac_func || defined __stub___$ac_func
21205 choke me
21206 #endif
21207
21208 int
21209 main ()
21210 {
21211 return $ac_func ();
21212   ;
21213   return 0;
21214 }
21215 _ACEOF
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (ac_try="$ac_link"
21218 case "(($ac_try" in
21219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220   *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223   (eval "$ac_link") 2>conftest.er1
21224   ac_status=$?
21225   grep -v '^ *+' conftest.er1 >conftest.err
21226   rm -f conftest.er1
21227   cat conftest.err >&5
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); } && {
21230          test -z "$ac_c_werror_flag" ||
21231          test ! -s conftest.err
21232        } && test -s conftest$ac_exeext &&
21233        $as_test_x conftest$ac_exeext; then
21234   eval "$as_ac_var=yes"
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239         eval "$as_ac_var=no"
21240 fi
21241
21242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21243       conftest$ac_exeext conftest.$ac_ext
21244 fi
21245 ac_res=`eval echo '${'$as_ac_var'}'`
21246                { echo "$as_me:$LINENO: result: $ac_res" >&5
21247 echo "${ECHO_T}$ac_res" >&6; }
21248 if test `eval echo '${'$as_ac_var'}'` = yes; then
21249   cat >>confdefs.h <<_ACEOF
21250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21251 _ACEOF
21252
21253 fi
21254 done
21255
21256
21257
21258
21259 ac_config_files="$ac_config_files Makefile src/Makefile"
21260
21261 cat >confcache <<\_ACEOF
21262 # This file is a shell script that caches the results of configure
21263 # tests run on this system so they can be shared between configure
21264 # scripts and configure runs, see configure's option --config-cache.
21265 # It is not useful on other systems.  If it contains results you don't
21266 # want to keep, you may remove or edit it.
21267 #
21268 # config.status only pays attention to the cache file if you give it
21269 # the --recheck option to rerun configure.
21270 #
21271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21273 # following values.
21274
21275 _ACEOF
21276
21277 # The following way of writing the cache mishandles newlines in values,
21278 # but we know of no workaround that is simple, portable, and efficient.
21279 # So, we kill variables containing newlines.
21280 # Ultrix sh set writes to stderr and can't be redirected directly,
21281 # and sets the high bit in the cache file unless we assign to the vars.
21282 (
21283   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21284     eval ac_val=\$$ac_var
21285     case $ac_val in #(
21286     *${as_nl}*)
21287       case $ac_var in #(
21288       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21289 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21290       esac
21291       case $ac_var in #(
21292       _ | IFS | as_nl) ;; #(
21293       *) $as_unset $ac_var ;;
21294       esac ;;
21295     esac
21296   done
21297
21298   (set) 2>&1 |
21299     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21300     *${as_nl}ac_space=\ *)
21301       # `set' does not quote correctly, so add quotes (double-quote
21302       # substitution turns \\\\ into \\, and sed turns \\ into \).
21303       sed -n \
21304         "s/'/'\\\\''/g;
21305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21306       ;; #(
21307     *)
21308       # `set' quotes correctly as required by POSIX, so do not add quotes.
21309       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21310       ;;
21311     esac |
21312     sort
21313 ) |
21314   sed '
21315      /^ac_cv_env_/b end
21316      t clear
21317      :clear
21318      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21319      t end
21320      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21321      :end' >>confcache
21322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21323   if test -w "$cache_file"; then
21324     test "x$cache_file" != "x/dev/null" &&
21325       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21326 echo "$as_me: updating cache $cache_file" >&6;}
21327     cat confcache >$cache_file
21328   else
21329     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21330 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21331   fi
21332 fi
21333 rm -f confcache
21334
21335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21336 # Let make expand exec_prefix.
21337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21338
21339 DEFS=-DHAVE_CONFIG_H
21340
21341 ac_libobjs=
21342 ac_ltlibobjs=
21343 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21344   # 1. Remove the extension, and $U if already installed.
21345   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21346   ac_i=`echo "$ac_i" | sed "$ac_script"`
21347   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21348   #    will be set to the directory where LIBOBJS objects are built.
21349   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21350   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21351 done
21352 LIBOBJS=$ac_libobjs
21353
21354 LTLIBOBJS=$ac_ltlibobjs
21355
21356
21357 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21358   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21359 Usually this means the macro was only invoked conditionally." >&5
21360 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21361 Usually this means the macro was only invoked conditionally." >&2;}
21362    { (exit 1); exit 1; }; }
21363 fi
21364 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21365   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21366 Usually this means the macro was only invoked conditionally." >&5
21367 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21368 Usually this means the macro was only invoked conditionally." >&2;}
21369    { (exit 1); exit 1; }; }
21370 fi
21371 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21372   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21373 Usually this means the macro was only invoked conditionally." >&5
21374 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21375 Usually this means the macro was only invoked conditionally." >&2;}
21376    { (exit 1); exit 1; }; }
21377 fi
21378
21379 : ${CONFIG_STATUS=./config.status}
21380 ac_clean_files_save=$ac_clean_files
21381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21382 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21383 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21384 cat >$CONFIG_STATUS <<_ACEOF
21385 #! $SHELL
21386 # Generated by $as_me.
21387 # Run this file to recreate the current configuration.
21388 # Compiler output produced by configure, useful for debugging
21389 # configure, is in config.log if it exists.
21390
21391 debug=false
21392 ac_cs_recheck=false
21393 ac_cs_silent=false
21394 SHELL=\${CONFIG_SHELL-$SHELL}
21395 _ACEOF
21396
21397 cat >>$CONFIG_STATUS <<\_ACEOF
21398 ## --------------------- ##
21399 ## M4sh Initialization.  ##
21400 ## --------------------- ##
21401
21402 # Be more Bourne compatible
21403 DUALCASE=1; export DUALCASE # for MKS sh
21404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21405   emulate sh
21406   NULLCMD=:
21407   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21408   # is contrary to our usage.  Disable this feature.
21409   alias -g '${1+"$@"}'='"$@"'
21410   setopt NO_GLOB_SUBST
21411 else
21412   case `(set -o) 2>/dev/null` in
21413   *posix*) set -o posix ;;
21414 esac
21415
21416 fi
21417
21418
21419
21420
21421 # PATH needs CR
21422 # Avoid depending upon Character Ranges.
21423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21426 as_cr_digits='0123456789'
21427 as_cr_alnum=$as_cr_Letters$as_cr_digits
21428
21429 # The user is always right.
21430 if test "${PATH_SEPARATOR+set}" != set; then
21431   echo "#! /bin/sh" >conf$$.sh
21432   echo  "exit 0"   >>conf$$.sh
21433   chmod +x conf$$.sh
21434   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21435     PATH_SEPARATOR=';'
21436   else
21437     PATH_SEPARATOR=:
21438   fi
21439   rm -f conf$$.sh
21440 fi
21441
21442 # Support unset when possible.
21443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21444   as_unset=unset
21445 else
21446   as_unset=false
21447 fi
21448
21449
21450 # IFS
21451 # We need space, tab and new line, in precisely that order.  Quoting is
21452 # there to prevent editors from complaining about space-tab.
21453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21454 # splitting by setting IFS to empty value.)
21455 as_nl='
21456 '
21457 IFS=" ""        $as_nl"
21458
21459 # Find who we are.  Look in the path if we contain no directory separator.
21460 case $0 in
21461   *[\\/]* ) as_myself=$0 ;;
21462   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21463 for as_dir in $PATH
21464 do
21465   IFS=$as_save_IFS
21466   test -z "$as_dir" && as_dir=.
21467   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21468 done
21469 IFS=$as_save_IFS
21470
21471      ;;
21472 esac
21473 # We did not find ourselves, most probably we were run as `sh COMMAND'
21474 # in which case we are not to be found in the path.
21475 if test "x$as_myself" = x; then
21476   as_myself=$0
21477 fi
21478 if test ! -f "$as_myself"; then
21479   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21480   { (exit 1); exit 1; }
21481 fi
21482
21483 # Work around bugs in pre-3.0 UWIN ksh.
21484 for as_var in ENV MAIL MAILPATH
21485 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21486 done
21487 PS1='$ '
21488 PS2='> '
21489 PS4='+ '
21490
21491 # NLS nuisances.
21492 for as_var in \
21493   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21494   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21495   LC_TELEPHONE LC_TIME
21496 do
21497   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21498     eval $as_var=C; export $as_var
21499   else
21500     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21501   fi
21502 done
21503
21504 # Required to use basename.
21505 if expr a : '\(a\)' >/dev/null 2>&1 &&
21506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21507   as_expr=expr
21508 else
21509   as_expr=false
21510 fi
21511
21512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21513   as_basename=basename
21514 else
21515   as_basename=false
21516 fi
21517
21518
21519 # Name of the executable.
21520 as_me=`$as_basename -- "$0" ||
21521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21522          X"$0" : 'X\(//\)$' \| \
21523          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21524 echo X/"$0" |
21525     sed '/^.*\/\([^/][^/]*\)\/*$/{
21526             s//\1/
21527             q
21528           }
21529           /^X\/\(\/\/\)$/{
21530             s//\1/
21531             q
21532           }
21533           /^X\/\(\/\).*/{
21534             s//\1/
21535             q
21536           }
21537           s/.*/./; q'`
21538
21539 # CDPATH.
21540 $as_unset CDPATH
21541
21542
21543
21544   as_lineno_1=$LINENO
21545   as_lineno_2=$LINENO
21546   test "x$as_lineno_1" != "x$as_lineno_2" &&
21547   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21548
21549   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21550   # uniformly replaced by the line number.  The first 'sed' inserts a
21551   # line-number line after each line using $LINENO; the second 'sed'
21552   # does the real work.  The second script uses 'N' to pair each
21553   # line-number line with the line containing $LINENO, and appends
21554   # trailing '-' during substitution so that $LINENO is not a special
21555   # case at line end.
21556   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21557   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21558   # E. McMahon (1931-1989) for sed's syntax.  :-)
21559   sed -n '
21560     p
21561     /[$]LINENO/=
21562   ' <$as_myself |
21563     sed '
21564       s/[$]LINENO.*/&-/
21565       t lineno
21566       b
21567       :lineno
21568       N
21569       :loop
21570       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21571       t loop
21572       s/-\n.*//
21573     ' >$as_me.lineno &&
21574   chmod +x "$as_me.lineno" ||
21575     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21576    { (exit 1); exit 1; }; }
21577
21578   # Don't try to exec as it changes $[0], causing all sort of problems
21579   # (the dirname of $[0] is not the place where we might find the
21580   # original and so on.  Autoconf is especially sensitive to this).
21581   . "./$as_me.lineno"
21582   # Exit status is that of the last command.
21583   exit
21584 }
21585
21586
21587 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21588   as_dirname=dirname
21589 else
21590   as_dirname=false
21591 fi
21592
21593 ECHO_C= ECHO_N= ECHO_T=
21594 case `echo -n x` in
21595 -n*)
21596   case `echo 'x\c'` in
21597   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21598   *)   ECHO_C='\c';;
21599   esac;;
21600 *)
21601   ECHO_N='-n';;
21602 esac
21603
21604 if expr a : '\(a\)' >/dev/null 2>&1 &&
21605    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21606   as_expr=expr
21607 else
21608   as_expr=false
21609 fi
21610
21611 rm -f conf$$ conf$$.exe conf$$.file
21612 if test -d conf$$.dir; then
21613   rm -f conf$$.dir/conf$$.file
21614 else
21615   rm -f conf$$.dir
21616   mkdir conf$$.dir
21617 fi
21618 echo >conf$$.file
21619 if ln -s conf$$.file conf$$ 2>/dev/null; then
21620   as_ln_s='ln -s'
21621   # ... but there are two gotchas:
21622   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21623   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21624   # In both cases, we have to default to `cp -p'.
21625   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21626     as_ln_s='cp -p'
21627 elif ln conf$$.file conf$$ 2>/dev/null; then
21628   as_ln_s=ln
21629 else
21630   as_ln_s='cp -p'
21631 fi
21632 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21633 rmdir conf$$.dir 2>/dev/null
21634
21635 if mkdir -p . 2>/dev/null; then
21636   as_mkdir_p=:
21637 else
21638   test -d ./-p && rmdir ./-p
21639   as_mkdir_p=false
21640 fi
21641
21642 if test -x / >/dev/null 2>&1; then
21643   as_test_x='test -x'
21644 else
21645   if ls -dL / >/dev/null 2>&1; then
21646     as_ls_L_option=L
21647   else
21648     as_ls_L_option=
21649   fi
21650   as_test_x='
21651     eval sh -c '\''
21652       if test -d "$1"; then
21653         test -d "$1/.";
21654       else
21655         case $1 in
21656         -*)set "./$1";;
21657         esac;
21658         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21659         ???[sx]*):;;*)false;;esac;fi
21660     '\'' sh
21661   '
21662 fi
21663 as_executable_p=$as_test_x
21664
21665 # Sed expression to map a string onto a valid CPP name.
21666 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21667
21668 # Sed expression to map a string onto a valid variable name.
21669 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21670
21671
21672 exec 6>&1
21673
21674 # Save the log message, to keep $[0] and so on meaningful, and to
21675 # report actual input values of CONFIG_FILES etc. instead of their
21676 # values after options handling.
21677 ac_log="
21678 This file was extended by mod_chxj $as_me 0.8.3-1, which was
21679 generated by GNU Autoconf 2.61.  Invocation command line was
21680
21681   CONFIG_FILES    = $CONFIG_FILES
21682   CONFIG_HEADERS  = $CONFIG_HEADERS
21683   CONFIG_LINKS    = $CONFIG_LINKS
21684   CONFIG_COMMANDS = $CONFIG_COMMANDS
21685   $ $0 $@
21686
21687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21688 "
21689
21690 _ACEOF
21691
21692 cat >>$CONFIG_STATUS <<_ACEOF
21693 # Files that config.status was made for.
21694 config_files="$ac_config_files"
21695 config_headers="$ac_config_headers"
21696 config_commands="$ac_config_commands"
21697
21698 _ACEOF
21699
21700 cat >>$CONFIG_STATUS <<\_ACEOF
21701 ac_cs_usage="\
21702 \`$as_me' instantiates files from templates according to the
21703 current configuration.
21704
21705 Usage: $0 [OPTIONS] [FILE]...
21706
21707   -h, --help       print this help, then exit
21708   -V, --version    print version number and configuration settings, then exit
21709   -q, --quiet      do not print progress messages
21710   -d, --debug      don't remove temporary files
21711       --recheck    update $as_me by reconfiguring in the same conditions
21712   --file=FILE[:TEMPLATE]
21713                    instantiate the configuration file FILE
21714   --header=FILE[:TEMPLATE]
21715                    instantiate the configuration header FILE
21716
21717 Configuration files:
21718 $config_files
21719
21720 Configuration headers:
21721 $config_headers
21722
21723 Configuration commands:
21724 $config_commands
21725
21726 Report bugs to <bug-autoconf@gnu.org>."
21727
21728 _ACEOF
21729 cat >>$CONFIG_STATUS <<_ACEOF
21730 ac_cs_version="\\
21731 mod_chxj config.status 0.8.3-1
21732 configured by $0, generated by GNU Autoconf 2.61,
21733   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21734
21735 Copyright (C) 2006 Free Software Foundation, Inc.
21736 This config.status script is free software; the Free Software Foundation
21737 gives unlimited permission to copy, distribute and modify it."
21738
21739 ac_pwd='$ac_pwd'
21740 srcdir='$srcdir'
21741 INSTALL='$INSTALL'
21742 _ACEOF
21743
21744 cat >>$CONFIG_STATUS <<\_ACEOF
21745 # If no file are specified by the user, then we need to provide default
21746 # value.  By we need to know if files were specified by the user.
21747 ac_need_defaults=:
21748 while test $# != 0
21749 do
21750   case $1 in
21751   --*=*)
21752     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21753     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21754     ac_shift=:
21755     ;;
21756   *)
21757     ac_option=$1
21758     ac_optarg=$2
21759     ac_shift=shift
21760     ;;
21761   esac
21762
21763   case $ac_option in
21764   # Handling of the options.
21765   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21766     ac_cs_recheck=: ;;
21767   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21768     echo "$ac_cs_version"; exit ;;
21769   --debug | --debu | --deb | --de | --d | -d )
21770     debug=: ;;
21771   --file | --fil | --fi | --f )
21772     $ac_shift
21773     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21774     ac_need_defaults=false;;
21775   --header | --heade | --head | --hea )
21776     $ac_shift
21777     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21778     ac_need_defaults=false;;
21779   --he | --h)
21780     # Conflict between --help and --header
21781     { echo "$as_me: error: ambiguous option: $1
21782 Try \`$0 --help' for more information." >&2
21783    { (exit 1); exit 1; }; };;
21784   --help | --hel | -h )
21785     echo "$ac_cs_usage"; exit ;;
21786   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21787   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21788     ac_cs_silent=: ;;
21789
21790   # This is an error.
21791   -*) { echo "$as_me: error: unrecognized option: $1
21792 Try \`$0 --help' for more information." >&2
21793    { (exit 1); exit 1; }; } ;;
21794
21795   *) ac_config_targets="$ac_config_targets $1"
21796      ac_need_defaults=false ;;
21797
21798   esac
21799   shift
21800 done
21801
21802 ac_configure_extra_args=
21803
21804 if $ac_cs_silent; then
21805   exec 6>/dev/null
21806   ac_configure_extra_args="$ac_configure_extra_args --silent"
21807 fi
21808
21809 _ACEOF
21810 cat >>$CONFIG_STATUS <<_ACEOF
21811 if \$ac_cs_recheck; then
21812   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21813   CONFIG_SHELL=$SHELL
21814   export CONFIG_SHELL
21815   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21816 fi
21817
21818 _ACEOF
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21820 exec 5>>config.log
21821 {
21822   echo
21823   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21824 ## Running $as_me. ##
21825 _ASBOX
21826   echo "$ac_log"
21827 } >&5
21828
21829 _ACEOF
21830 cat >>$CONFIG_STATUS <<_ACEOF
21831 #
21832 # INIT-COMMANDS
21833 #
21834 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21835
21836 _ACEOF
21837
21838 cat >>$CONFIG_STATUS <<\_ACEOF
21839
21840 # Handling of arguments.
21841 for ac_config_target in $ac_config_targets
21842 do
21843   case $ac_config_target in
21844     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21845     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21846     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21847     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21848
21849   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21850 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21851    { (exit 1); exit 1; }; };;
21852   esac
21853 done
21854
21855
21856 # If the user did not use the arguments to specify the items to instantiate,
21857 # then the envvar interface is used.  Set only those that are not.
21858 # We use the long form for the default assignment because of an extremely
21859 # bizarre bug on SunOS 4.1.3.
21860 if $ac_need_defaults; then
21861   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21862   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21863   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21864 fi
21865
21866 # Have a temporary directory for convenience.  Make it in the build tree
21867 # simply because there is no reason against having it here, and in addition,
21868 # creating and moving files from /tmp can sometimes cause problems.
21869 # Hook for its removal unless debugging.
21870 # Note that there is a small window in which the directory will not be cleaned:
21871 # after its creation but before its name has been assigned to `$tmp'.
21872 $debug ||
21873 {
21874   tmp=
21875   trap 'exit_status=$?
21876   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21877 ' 0
21878   trap '{ (exit 1); exit 1; }' 1 2 13 15
21879 }
21880 # Create a (secure) tmp directory for tmp files.
21881
21882 {
21883   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21884   test -n "$tmp" && test -d "$tmp"
21885 }  ||
21886 {
21887   tmp=./conf$$-$RANDOM
21888   (umask 077 && mkdir "$tmp")
21889 } ||
21890 {
21891    echo "$me: cannot create a temporary directory in ." >&2
21892    { (exit 1); exit 1; }
21893 }
21894
21895 #
21896 # Set up the sed scripts for CONFIG_FILES section.
21897 #
21898
21899 # No need to generate the scripts if there are no CONFIG_FILES.
21900 # This happens for instance when ./config.status config.h
21901 if test -n "$CONFIG_FILES"; then
21902
21903 _ACEOF
21904
21905
21906
21907 ac_delim='%!_!# '
21908 for ac_last_try in false false false false false :; do
21909   cat >conf$$subs.sed <<_ACEOF
21910 SHELL!$SHELL$ac_delim
21911 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21912 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21913 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21914 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21915 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21916 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21917 exec_prefix!$exec_prefix$ac_delim
21918 prefix!$prefix$ac_delim
21919 program_transform_name!$program_transform_name$ac_delim
21920 bindir!$bindir$ac_delim
21921 sbindir!$sbindir$ac_delim
21922 libexecdir!$libexecdir$ac_delim
21923 datarootdir!$datarootdir$ac_delim
21924 datadir!$datadir$ac_delim
21925 sysconfdir!$sysconfdir$ac_delim
21926 sharedstatedir!$sharedstatedir$ac_delim
21927 localstatedir!$localstatedir$ac_delim
21928 includedir!$includedir$ac_delim
21929 oldincludedir!$oldincludedir$ac_delim
21930 docdir!$docdir$ac_delim
21931 infodir!$infodir$ac_delim
21932 htmldir!$htmldir$ac_delim
21933 dvidir!$dvidir$ac_delim
21934 pdfdir!$pdfdir$ac_delim
21935 psdir!$psdir$ac_delim
21936 libdir!$libdir$ac_delim
21937 localedir!$localedir$ac_delim
21938 mandir!$mandir$ac_delim
21939 DEFS!$DEFS$ac_delim
21940 ECHO_C!$ECHO_C$ac_delim
21941 ECHO_N!$ECHO_N$ac_delim
21942 ECHO_T!$ECHO_T$ac_delim
21943 LIBS!$LIBS$ac_delim
21944 build_alias!$build_alias$ac_delim
21945 host_alias!$host_alias$ac_delim
21946 target_alias!$target_alias$ac_delim
21947 build!$build$ac_delim
21948 build_cpu!$build_cpu$ac_delim
21949 build_vendor!$build_vendor$ac_delim
21950 build_os!$build_os$ac_delim
21951 host!$host$ac_delim
21952 host_cpu!$host_cpu$ac_delim
21953 host_vendor!$host_vendor$ac_delim
21954 host_os!$host_os$ac_delim
21955 target!$target$ac_delim
21956 target_cpu!$target_cpu$ac_delim
21957 target_vendor!$target_vendor$ac_delim
21958 target_os!$target_os$ac_delim
21959 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21960 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21961 INSTALL_DATA!$INSTALL_DATA$ac_delim
21962 CYGPATH_W!$CYGPATH_W$ac_delim
21963 PACKAGE!$PACKAGE$ac_delim
21964 VERSION!$VERSION$ac_delim
21965 ACLOCAL!$ACLOCAL$ac_delim
21966 AUTOCONF!$AUTOCONF$ac_delim
21967 AUTOMAKE!$AUTOMAKE$ac_delim
21968 AUTOHEADER!$AUTOHEADER$ac_delim
21969 MAKEINFO!$MAKEINFO$ac_delim
21970 install_sh!$install_sh$ac_delim
21971 STRIP!$STRIP$ac_delim
21972 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21973 mkdir_p!$mkdir_p$ac_delim
21974 AWK!$AWK$ac_delim
21975 SET_MAKE!$SET_MAKE$ac_delim
21976 am__leading_dot!$am__leading_dot$ac_delim
21977 AMTAR!$AMTAR$ac_delim
21978 am__tar!$am__tar$ac_delim
21979 am__untar!$am__untar$ac_delim
21980 CC!$CC$ac_delim
21981 CFLAGS!$CFLAGS$ac_delim
21982 LDFLAGS!$LDFLAGS$ac_delim
21983 CPPFLAGS!$CPPFLAGS$ac_delim
21984 ac_ct_CC!$ac_ct_CC$ac_delim
21985 EXEEXT!$EXEEXT$ac_delim
21986 OBJEXT!$OBJEXT$ac_delim
21987 DEPDIR!$DEPDIR$ac_delim
21988 am__include!$am__include$ac_delim
21989 am__quote!$am__quote$ac_delim
21990 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21991 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21992 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21993 CCDEPMODE!$CCDEPMODE$ac_delim
21994 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21995 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21996 GREP!$GREP$ac_delim
21997 EGREP!$EGREP$ac_delim
21998 LN_S!$LN_S$ac_delim
21999 ECHO!$ECHO$ac_delim
22000 AR!$AR$ac_delim
22001 RANLIB!$RANLIB$ac_delim
22002 CPP!$CPP$ac_delim
22003 CXX!$CXX$ac_delim
22004 CXXFLAGS!$CXXFLAGS$ac_delim
22005 ac_ct_CXX!$ac_ct_CXX$ac_delim
22006 CXXDEPMODE!$CXXDEPMODE$ac_delim
22007 _ACEOF
22008
22009   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22010     break
22011   elif $ac_last_try; then
22012     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22013 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22014    { (exit 1); exit 1; }; }
22015   else
22016     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22017   fi
22018 done
22019
22020 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22021 if test -n "$ac_eof"; then
22022   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22023   ac_eof=`expr $ac_eof + 1`
22024 fi
22025
22026 cat >>$CONFIG_STATUS <<_ACEOF
22027 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22029 _ACEOF
22030 sed '
22031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22032 s/^/s,@/; s/!/@,|#_!!_#|/
22033 :n
22034 t n
22035 s/'"$ac_delim"'$/,g/; t
22036 s/$/\\/; p
22037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22038 ' >>$CONFIG_STATUS <conf$$subs.sed
22039 rm -f conf$$subs.sed
22040 cat >>$CONFIG_STATUS <<_ACEOF
22041 CEOF$ac_eof
22042 _ACEOF
22043
22044
22045 ac_delim='%!_!# '
22046 for ac_last_try in false false false false false :; do
22047   cat >conf$$subs.sed <<_ACEOF
22048 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22049 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22050 CXXCPP!$CXXCPP$ac_delim
22051 F77!$F77$ac_delim
22052 FFLAGS!$FFLAGS$ac_delim
22053 ac_ct_F77!$ac_ct_F77$ac_delim
22054 LIBTOOL!$LIBTOOL$ac_delim
22055 APXS!$APXS$ac_delim
22056 WAND_CONFIG!$WAND_CONFIG$ac_delim
22057 APR_CONFIG!$APR_CONFIG$ac_delim
22058 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22059 APU_CONFIG!$APU_CONFIG$ac_delim
22060 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22061 with_apache_header!$with_apache_header$ac_delim
22062 QDEFS!$QDEFS$ac_delim
22063 DDEFS!$DDEFS$ac_delim
22064 LIBOBJS!$LIBOBJS$ac_delim
22065 LTLIBOBJS!$LTLIBOBJS$ac_delim
22066 _ACEOF
22067
22068   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
22069     break
22070   elif $ac_last_try; then
22071     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22072 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22073    { (exit 1); exit 1; }; }
22074   else
22075     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22076   fi
22077 done
22078
22079 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22080 if test -n "$ac_eof"; then
22081   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22082   ac_eof=`expr $ac_eof + 1`
22083 fi
22084
22085 cat >>$CONFIG_STATUS <<_ACEOF
22086 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22088 _ACEOF
22089 sed '
22090 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22091 s/^/s,@/; s/!/@,|#_!!_#|/
22092 :n
22093 t n
22094 s/'"$ac_delim"'$/,g/; t
22095 s/$/\\/; p
22096 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22097 ' >>$CONFIG_STATUS <conf$$subs.sed
22098 rm -f conf$$subs.sed
22099 cat >>$CONFIG_STATUS <<_ACEOF
22100 :end
22101 s/|#_!!_#|//g
22102 CEOF$ac_eof
22103 _ACEOF
22104
22105
22106 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22107 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22108 # trailing colons and then remove the whole line if VPATH becomes empty
22109 # (actually we leave an empty line to preserve line numbers).
22110 if test "x$srcdir" = x.; then
22111   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22112 s/:*\$(srcdir):*/:/
22113 s/:*\${srcdir}:*/:/
22114 s/:*@srcdir@:*/:/
22115 s/^\([^=]*=[     ]*\):*/\1/
22116 s/:*$//
22117 s/^[^=]*=[       ]*$//
22118 }'
22119 fi
22120
22121 cat >>$CONFIG_STATUS <<\_ACEOF
22122 fi # test -n "$CONFIG_FILES"
22123
22124
22125 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22126 do
22127   case $ac_tag in
22128   :[FHLC]) ac_mode=$ac_tag; continue;;
22129   esac
22130   case $ac_mode$ac_tag in
22131   :[FHL]*:*);;
22132   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22133 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22134    { (exit 1); exit 1; }; };;
22135   :[FH]-) ac_tag=-:-;;
22136   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22137   esac
22138   ac_save_IFS=$IFS
22139   IFS=:
22140   set x $ac_tag
22141   IFS=$ac_save_IFS
22142   shift
22143   ac_file=$1
22144   shift
22145
22146   case $ac_mode in
22147   :L) ac_source=$1;;
22148   :[FH])
22149     ac_file_inputs=
22150     for ac_f
22151     do
22152       case $ac_f in
22153       -) ac_f="$tmp/stdin";;
22154       *) # Look for the file first in the build tree, then in the source tree
22155          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22156          # because $ac_f cannot contain `:'.
22157          test -f "$ac_f" ||
22158            case $ac_f in
22159            [\\/$]*) false;;
22160            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22161            esac ||
22162            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22163 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22164    { (exit 1); exit 1; }; };;
22165       esac
22166       ac_file_inputs="$ac_file_inputs $ac_f"
22167     done
22168
22169     # Let's still pretend it is `configure' which instantiates (i.e., don't
22170     # use $as_me), people would be surprised to read:
22171     #    /* config.h.  Generated by config.status.  */
22172     configure_input="Generated from "`IFS=:
22173           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22174     if test x"$ac_file" != x-; then
22175       configure_input="$ac_file.  $configure_input"
22176       { echo "$as_me:$LINENO: creating $ac_file" >&5
22177 echo "$as_me: creating $ac_file" >&6;}
22178     fi
22179
22180     case $ac_tag in
22181     *:-:* | *:-) cat >"$tmp/stdin";;
22182     esac
22183     ;;
22184   esac
22185
22186   ac_dir=`$as_dirname -- "$ac_file" ||
22187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22188          X"$ac_file" : 'X\(//\)[^/]' \| \
22189          X"$ac_file" : 'X\(//\)$' \| \
22190          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22191 echo X"$ac_file" |
22192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22193             s//\1/
22194             q
22195           }
22196           /^X\(\/\/\)[^/].*/{
22197             s//\1/
22198             q
22199           }
22200           /^X\(\/\/\)$/{
22201             s//\1/
22202             q
22203           }
22204           /^X\(\/\).*/{
22205             s//\1/
22206             q
22207           }
22208           s/.*/./; q'`
22209   { as_dir="$ac_dir"
22210   case $as_dir in #(
22211   -*) as_dir=./$as_dir;;
22212   esac
22213   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22214     as_dirs=
22215     while :; do
22216       case $as_dir in #(
22217       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22218       *) as_qdir=$as_dir;;
22219       esac
22220       as_dirs="'$as_qdir' $as_dirs"
22221       as_dir=`$as_dirname -- "$as_dir" ||
22222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22223          X"$as_dir" : 'X\(//\)[^/]' \| \
22224          X"$as_dir" : 'X\(//\)$' \| \
22225          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22226 echo X"$as_dir" |
22227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22228             s//\1/
22229             q
22230           }
22231           /^X\(\/\/\)[^/].*/{
22232             s//\1/
22233             q
22234           }
22235           /^X\(\/\/\)$/{
22236             s//\1/
22237             q
22238           }
22239           /^X\(\/\).*/{
22240             s//\1/
22241             q
22242           }
22243           s/.*/./; q'`
22244       test -d "$as_dir" && break
22245     done
22246     test -z "$as_dirs" || eval "mkdir $as_dirs"
22247   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22248 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22249    { (exit 1); exit 1; }; }; }
22250   ac_builddir=.
22251
22252 case "$ac_dir" in
22253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22254 *)
22255   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22256   # A ".." for each directory in $ac_dir_suffix.
22257   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22258   case $ac_top_builddir_sub in
22259   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22260   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22261   esac ;;
22262 esac
22263 ac_abs_top_builddir=$ac_pwd
22264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22265 # for backward compatibility:
22266 ac_top_builddir=$ac_top_build_prefix
22267
22268 case $srcdir in
22269   .)  # We are building in place.
22270     ac_srcdir=.
22271     ac_top_srcdir=$ac_top_builddir_sub
22272     ac_abs_top_srcdir=$ac_pwd ;;
22273   [\\/]* | ?:[\\/]* )  # Absolute name.
22274     ac_srcdir=$srcdir$ac_dir_suffix;
22275     ac_top_srcdir=$srcdir
22276     ac_abs_top_srcdir=$srcdir ;;
22277   *) # Relative name.
22278     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22279     ac_top_srcdir=$ac_top_build_prefix$srcdir
22280     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22281 esac
22282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22283
22284
22285   case $ac_mode in
22286   :F)
22287   #
22288   # CONFIG_FILE
22289   #
22290
22291   case $INSTALL in
22292   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22293   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22294   esac
22295 _ACEOF
22296
22297 cat >>$CONFIG_STATUS <<\_ACEOF
22298 # If the template does not know about datarootdir, expand it.
22299 # FIXME: This hack should be removed a few years after 2.60.
22300 ac_datarootdir_hack=; ac_datarootdir_seen=
22301
22302 case `sed -n '/datarootdir/ {
22303   p
22304   q
22305 }
22306 /@datadir@/p
22307 /@docdir@/p
22308 /@infodir@/p
22309 /@localedir@/p
22310 /@mandir@/p
22311 ' $ac_file_inputs` in
22312 *datarootdir*) ac_datarootdir_seen=yes;;
22313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22314   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22315 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22316 _ACEOF
22317 cat >>$CONFIG_STATUS <<_ACEOF
22318   ac_datarootdir_hack='
22319   s&@datadir@&$datadir&g
22320   s&@docdir@&$docdir&g
22321   s&@infodir@&$infodir&g
22322   s&@localedir@&$localedir&g
22323   s&@mandir@&$mandir&g
22324     s&\\\${datarootdir}&$datarootdir&g' ;;
22325 esac
22326 _ACEOF
22327
22328 # Neutralize VPATH when `$srcdir' = `.'.
22329 # Shell code in configure.ac might set extrasub.
22330 # FIXME: do we really want to maintain this feature?
22331 cat >>$CONFIG_STATUS <<_ACEOF
22332   sed "$ac_vpsub
22333 $extrasub
22334 _ACEOF
22335 cat >>$CONFIG_STATUS <<\_ACEOF
22336 :t
22337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22338 s&@configure_input@&$configure_input&;t t
22339 s&@top_builddir@&$ac_top_builddir_sub&;t t
22340 s&@srcdir@&$ac_srcdir&;t t
22341 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22342 s&@top_srcdir@&$ac_top_srcdir&;t t
22343 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22344 s&@builddir@&$ac_builddir&;t t
22345 s&@abs_builddir@&$ac_abs_builddir&;t t
22346 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22347 s&@INSTALL@&$ac_INSTALL&;t t
22348 $ac_datarootdir_hack
22349 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22350
22351 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22352   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22353   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22354   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22355 which seems to be undefined.  Please make sure it is defined." >&5
22356 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22357 which seems to be undefined.  Please make sure it is defined." >&2;}
22358
22359   rm -f "$tmp/stdin"
22360   case $ac_file in
22361   -) cat "$tmp/out"; rm -f "$tmp/out";;
22362   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22363   esac
22364  ;;
22365   :H)
22366   #
22367   # CONFIG_HEADER
22368   #
22369 _ACEOF
22370
22371 # Transform confdefs.h into a sed script `conftest.defines', that
22372 # substitutes the proper values into config.h.in to produce config.h.
22373 rm -f conftest.defines conftest.tail
22374 # First, append a space to every undef/define line, to ease matching.
22375 echo 's/$/ /' >conftest.defines
22376 # Then, protect against being on the right side of a sed subst, or in
22377 # an unquoted here document, in config.status.  If some macros were
22378 # called several times there might be several #defines for the same
22379 # symbol, which is useless.  But do not sort them, since the last
22380 # AC_DEFINE must be honored.
22381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22382 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22383 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22384 # PARAMS is the parameter list in the macro definition--in most cases, it's
22385 # just an empty string.
22386 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22387 ac_dB='\\)[      (].*,\\1define\\2'
22388 ac_dC=' '
22389 ac_dD=' ,'
22390
22391 uniq confdefs.h |
22392   sed -n '
22393         t rset
22394         :rset
22395         s/^[     ]*#[    ]*define[       ][      ]*//
22396         t ok
22397         d
22398         :ok
22399         s/[\\&,]/\\&/g
22400         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22401         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22402   ' >>conftest.defines
22403
22404 # Remove the space that was appended to ease matching.
22405 # Then replace #undef with comments.  This is necessary, for
22406 # example, in the case of _POSIX_SOURCE, which is predefined and required
22407 # on some systems where configure will not decide to define it.
22408 # (The regexp can be short, since the line contains either #define or #undef.)
22409 echo 's/ $//
22410 s,^[     #]*u.*,/* & */,' >>conftest.defines
22411
22412 # Break up conftest.defines:
22413 ac_max_sed_lines=50
22414
22415 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22416 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22417 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22418 # et cetera.
22419 ac_in='$ac_file_inputs'
22420 ac_out='"$tmp/out1"'
22421 ac_nxt='"$tmp/out2"'
22422
22423 while :
22424 do
22425   # Write a here document:
22426     cat >>$CONFIG_STATUS <<_ACEOF
22427     # First, check the format of the line:
22428     cat >"\$tmp/defines.sed" <<\\CEOF
22429 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22430 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22431 b
22432 :def
22433 _ACEOF
22434   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22435   echo 'CEOF
22436     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22437   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22438   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22439   grep . conftest.tail >/dev/null || break
22440   rm -f conftest.defines
22441   mv conftest.tail conftest.defines
22442 done
22443 rm -f conftest.defines conftest.tail
22444
22445 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22446 cat >>$CONFIG_STATUS <<\_ACEOF
22447   if test x"$ac_file" != x-; then
22448     echo "/* $configure_input  */" >"$tmp/config.h"
22449     cat "$ac_result" >>"$tmp/config.h"
22450     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22451       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22452 echo "$as_me: $ac_file is unchanged" >&6;}
22453     else
22454       rm -f $ac_file
22455       mv "$tmp/config.h" $ac_file
22456     fi
22457   else
22458     echo "/* $configure_input  */"
22459     cat "$ac_result"
22460   fi
22461   rm -f "$tmp/out12"
22462 # Compute $ac_file's index in $config_headers.
22463 _am_stamp_count=1
22464 for _am_header in $config_headers :; do
22465   case $_am_header in
22466     $ac_file | $ac_file:* )
22467       break ;;
22468     * )
22469       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22470   esac
22471 done
22472 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22473 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22474          X$ac_file : 'X\(//\)[^/]' \| \
22475          X$ac_file : 'X\(//\)$' \| \
22476          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22477 echo X$ac_file |
22478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22479             s//\1/
22480             q
22481           }
22482           /^X\(\/\/\)[^/].*/{
22483             s//\1/
22484             q
22485           }
22486           /^X\(\/\/\)$/{
22487             s//\1/
22488             q
22489           }
22490           /^X\(\/\).*/{
22491             s//\1/
22492             q
22493           }
22494           s/.*/./; q'`/stamp-h$_am_stamp_count
22495  ;;
22496
22497   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22498 echo "$as_me: executing $ac_file commands" >&6;}
22499  ;;
22500   esac
22501
22502
22503   case $ac_file$ac_mode in
22504     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22505   # Strip MF so we end up with the name of the file.
22506   mf=`echo "$mf" | sed -e 's/:.*$//'`
22507   # Check whether this is an Automake generated Makefile or not.
22508   # We used to match only the files named `Makefile.in', but
22509   # some people rename them; so instead we look at the file content.
22510   # Grep'ing the first line is not enough: some people post-process
22511   # each Makefile.in and add a new line on top of each file to say so.
22512   # So let's grep whole file.
22513   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22514     dirpart=`$as_dirname -- "$mf" ||
22515 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22516          X"$mf" : 'X\(//\)[^/]' \| \
22517          X"$mf" : 'X\(//\)$' \| \
22518          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22519 echo X"$mf" |
22520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22521             s//\1/
22522             q
22523           }
22524           /^X\(\/\/\)[^/].*/{
22525             s//\1/
22526             q
22527           }
22528           /^X\(\/\/\)$/{
22529             s//\1/
22530             q
22531           }
22532           /^X\(\/\).*/{
22533             s//\1/
22534             q
22535           }
22536           s/.*/./; q'`
22537   else
22538     continue
22539   fi
22540   # Extract the definition of DEPDIR, am__include, and am__quote
22541   # from the Makefile without running `make'.
22542   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22543   test -z "$DEPDIR" && continue
22544   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22545   test -z "am__include" && continue
22546   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22547   # When using ansi2knr, U may be empty or an underscore; expand it
22548   U=`sed -n 's/^U = //p' < "$mf"`
22549   # Find all dependency output files, they are included files with
22550   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22551   # simplest approach to changing $(DEPDIR) to its actual value in the
22552   # expansion.
22553   for file in `sed -n "
22554     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22555        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22556     # Make sure the directory exists.
22557     test -f "$dirpart/$file" && continue
22558     fdir=`$as_dirname -- "$file" ||
22559 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22560          X"$file" : 'X\(//\)[^/]' \| \
22561          X"$file" : 'X\(//\)$' \| \
22562          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22563 echo X"$file" |
22564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22565             s//\1/
22566             q
22567           }
22568           /^X\(\/\/\)[^/].*/{
22569             s//\1/
22570             q
22571           }
22572           /^X\(\/\/\)$/{
22573             s//\1/
22574             q
22575           }
22576           /^X\(\/\).*/{
22577             s//\1/
22578             q
22579           }
22580           s/.*/./; q'`
22581     { as_dir=$dirpart/$fdir
22582   case $as_dir in #(
22583   -*) as_dir=./$as_dir;;
22584   esac
22585   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22586     as_dirs=
22587     while :; do
22588       case $as_dir in #(
22589       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22590       *) as_qdir=$as_dir;;
22591       esac
22592       as_dirs="'$as_qdir' $as_dirs"
22593       as_dir=`$as_dirname -- "$as_dir" ||
22594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22595          X"$as_dir" : 'X\(//\)[^/]' \| \
22596          X"$as_dir" : 'X\(//\)$' \| \
22597          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22598 echo X"$as_dir" |
22599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22600             s//\1/
22601             q
22602           }
22603           /^X\(\/\/\)[^/].*/{
22604             s//\1/
22605             q
22606           }
22607           /^X\(\/\/\)$/{
22608             s//\1/
22609             q
22610           }
22611           /^X\(\/\).*/{
22612             s//\1/
22613             q
22614           }
22615           s/.*/./; q'`
22616       test -d "$as_dir" && break
22617     done
22618     test -z "$as_dirs" || eval "mkdir $as_dirs"
22619   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22620 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22621    { (exit 1); exit 1; }; }; }
22622     # echo "creating $dirpart/$file"
22623     echo '# dummy' > "$dirpart/$file"
22624   done
22625 done
22626  ;;
22627
22628   esac
22629 done # for ac_tag
22630
22631
22632 { (exit 0); exit 0; }
22633 _ACEOF
22634 chmod +x $CONFIG_STATUS
22635 ac_clean_files=$ac_clean_files_save
22636
22637
22638 # configure is writing to config.log, and then calls config.status.
22639 # config.status does its own redirection, appending to config.log.
22640 # Unfortunately, on DOS this fails, as config.log is still kept open
22641 # by configure, so config.status won't be able to write to it; its
22642 # output is simply discarded.  So we exec the FD to /dev/null,
22643 # effectively closing config.log, so it can be properly (re)opened and
22644 # appended to by config.status.  When coming back to configure, we
22645 # need to make the FD available again.
22646 if test "$no_create" != yes; then
22647   ac_cs_success=:
22648   ac_config_status_args=
22649   test "$silent" = yes &&
22650     ac_config_status_args="$ac_config_status_args --quiet"
22651   exec 5>/dev/null
22652   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22653   exec 5>>config.log
22654   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22655   # would make configure fail if this is the last instruction.
22656   $ac_cs_success || { (exit 1); exit 1; }
22657 fi
22658