OSDN Git Service

* Added Features.
[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 1.0.0.
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='1.0.0'
730 PACKAGE_STRING='mod_chxj 1.0.0'
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 am__isrc
823 CYGPATH_W
824 PACKAGE
825 VERSION
826 ACLOCAL
827 AUTOCONF
828 AUTOMAKE
829 AUTOHEADER
830 MAKEINFO
831 install_sh
832 STRIP
833 INSTALL_STRIP_PROGRAM
834 mkdir_p
835 AWK
836 SET_MAKE
837 am__leading_dot
838 AMTAR
839 am__tar
840 am__untar
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 ac_ct_CC
846 EXEEXT
847 OBJEXT
848 DEPDIR
849 am__include
850 am__quote
851 AMDEP_TRUE
852 AMDEP_FALSE
853 AMDEPBACKSLASH
854 CCDEPMODE
855 am__fastdepCC_TRUE
856 am__fastdepCC_FALSE
857 CPP
858 GREP
859 EGREP
860 LN_S
861 ECHO
862 AR
863 RANLIB
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 APXS2
876 APXS
877 WAND_CONFIG
878 APR_CONFIG
879 APR_1_CONFIG
880 APU_CONFIG
881 APU_1_CONFIG
882 with_apache_header
883 PCRE_CONFIG
884 PCRE_1_CONFIG
885 LIBOBJS
886 QDEFS
887 DDEFS
888 LTLIBOBJS'
889 ac_subst_files=''
890       ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CPP
899 CXX
900 CXXFLAGS
901 CCC
902 CXXCPP
903 F77
904 FFLAGS'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957   # If the previous option needs an argument, assign it.
958   if test -n "$ac_prev"; then
959     eval $ac_prev=\$ac_option
960     ac_prev=
961     continue
962   fi
963
964   case $ac_option in
965   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966   *)    ac_optarg=yes ;;
967   esac
968
969   # Accept the important Cygnus configure options, so we can diagnose typos.
970
971   case $ac_dashdash$ac_option in
972   --)
973     ac_dashdash=yes ;;
974
975   -bindir | --bindir | --bindi | --bind | --bin | --bi)
976     ac_prev=bindir ;;
977   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978     bindir=$ac_optarg ;;
979
980   -build | --build | --buil | --bui | --bu)
981     ac_prev=build_alias ;;
982   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983     build_alias=$ac_optarg ;;
984
985   -cache-file | --cache-file | --cache-fil | --cache-fi \
986   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987     ac_prev=cache_file ;;
988   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990     cache_file=$ac_optarg ;;
991
992   --config-cache | -C)
993     cache_file=config.cache ;;
994
995   -datadir | --datadir | --datadi | --datad)
996     ac_prev=datadir ;;
997   -datadir=* | --datadir=* | --datadi=* | --datad=*)
998     datadir=$ac_optarg ;;
999
1000   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001   | --dataroo | --dataro | --datar)
1002     ac_prev=datarootdir ;;
1003   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005     datarootdir=$ac_optarg ;;
1006
1007   -disable-* | --disable-*)
1008     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009     # Reject names that are not valid shell variable names.
1010     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012    { (exit 1); exit 1; }; }
1013     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014     eval enable_$ac_feature=no ;;
1015
1016   -docdir | --docdir | --docdi | --doc | --do)
1017     ac_prev=docdir ;;
1018   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019     docdir=$ac_optarg ;;
1020
1021   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022     ac_prev=dvidir ;;
1023   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024     dvidir=$ac_optarg ;;
1025
1026   -enable-* | --enable-*)
1027     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031    { (exit 1); exit 1; }; }
1032     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033     eval enable_$ac_feature=\$ac_optarg ;;
1034
1035   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037   | --exec | --exe | --ex)
1038     ac_prev=exec_prefix ;;
1039   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041   | --exec=* | --exe=* | --ex=*)
1042     exec_prefix=$ac_optarg ;;
1043
1044   -gas | --gas | --ga | --g)
1045     # Obsolete; use --with-gas.
1046     with_gas=yes ;;
1047
1048   -help | --help | --hel | --he | -h)
1049     ac_init_help=long ;;
1050   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051     ac_init_help=recursive ;;
1052   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053     ac_init_help=short ;;
1054
1055   -host | --host | --hos | --ho)
1056     ac_prev=host_alias ;;
1057   -host=* | --host=* | --hos=* | --ho=*)
1058     host_alias=$ac_optarg ;;
1059
1060   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061     ac_prev=htmldir ;;
1062   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063   | --ht=*)
1064     htmldir=$ac_optarg ;;
1065
1066   -includedir | --includedir | --includedi | --included | --include \
1067   | --includ | --inclu | --incl | --inc)
1068     ac_prev=includedir ;;
1069   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070   | --includ=* | --inclu=* | --incl=* | --inc=*)
1071     includedir=$ac_optarg ;;
1072
1073   -infodir | --infodir | --infodi | --infod | --info | --inf)
1074     ac_prev=infodir ;;
1075   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076     infodir=$ac_optarg ;;
1077
1078   -libdir | --libdir | --libdi | --libd)
1079     ac_prev=libdir ;;
1080   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081     libdir=$ac_optarg ;;
1082
1083   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084   | --libexe | --libex | --libe)
1085     ac_prev=libexecdir ;;
1086   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087   | --libexe=* | --libex=* | --libe=*)
1088     libexecdir=$ac_optarg ;;
1089
1090   -localedir | --localedir | --localedi | --localed | --locale)
1091     ac_prev=localedir ;;
1092   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093     localedir=$ac_optarg ;;
1094
1095   -localstatedir | --localstatedir | --localstatedi | --localstated \
1096   | --localstate | --localstat | --localsta | --localst | --locals)
1097     ac_prev=localstatedir ;;
1098   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100     localstatedir=$ac_optarg ;;
1101
1102   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103     ac_prev=mandir ;;
1104   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105     mandir=$ac_optarg ;;
1106
1107   -nfp | --nfp | --nf)
1108     # Obsolete; use --without-fp.
1109     with_fp=no ;;
1110
1111   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112   | --no-cr | --no-c | -n)
1113     no_create=yes ;;
1114
1115   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117     no_recursion=yes ;;
1118
1119   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121   | --oldin | --oldi | --old | --ol | --o)
1122     ac_prev=oldincludedir ;;
1123   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126     oldincludedir=$ac_optarg ;;
1127
1128   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129     ac_prev=prefix ;;
1130   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131     prefix=$ac_optarg ;;
1132
1133   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134   | --program-pre | --program-pr | --program-p)
1135     ac_prev=program_prefix ;;
1136   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138     program_prefix=$ac_optarg ;;
1139
1140   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141   | --program-suf | --program-su | --program-s)
1142     ac_prev=program_suffix ;;
1143   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145     program_suffix=$ac_optarg ;;
1146
1147   -program-transform-name | --program-transform-name \
1148   | --program-transform-nam | --program-transform-na \
1149   | --program-transform-n | --program-transform- \
1150   | --program-transform | --program-transfor \
1151   | --program-transfo | --program-transf \
1152   | --program-trans | --program-tran \
1153   | --progr-tra | --program-tr | --program-t)
1154     ac_prev=program_transform_name ;;
1155   -program-transform-name=* | --program-transform-name=* \
1156   | --program-transform-nam=* | --program-transform-na=* \
1157   | --program-transform-n=* | --program-transform-=* \
1158   | --program-transform=* | --program-transfor=* \
1159   | --program-transfo=* | --program-transf=* \
1160   | --program-trans=* | --program-tran=* \
1161   | --progr-tra=* | --program-tr=* | --program-t=*)
1162     program_transform_name=$ac_optarg ;;
1163
1164   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165     ac_prev=pdfdir ;;
1166   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167     pdfdir=$ac_optarg ;;
1168
1169   -psdir | --psdir | --psdi | --psd | --ps)
1170     ac_prev=psdir ;;
1171   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172     psdir=$ac_optarg ;;
1173
1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175   | -silent | --silent | --silen | --sile | --sil)
1176     silent=yes ;;
1177
1178   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179     ac_prev=sbindir ;;
1180   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181   | --sbi=* | --sb=*)
1182     sbindir=$ac_optarg ;;
1183
1184   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186   | --sharedst | --shareds | --shared | --share | --shar \
1187   | --sha | --sh)
1188     ac_prev=sharedstatedir ;;
1189   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192   | --sha=* | --sh=*)
1193     sharedstatedir=$ac_optarg ;;
1194
1195   -site | --site | --sit)
1196     ac_prev=site ;;
1197   -site=* | --site=* | --sit=*)
1198     site=$ac_optarg ;;
1199
1200   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201     ac_prev=srcdir ;;
1202   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203     srcdir=$ac_optarg ;;
1204
1205   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206   | --syscon | --sysco | --sysc | --sys | --sy)
1207     ac_prev=sysconfdir ;;
1208   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210     sysconfdir=$ac_optarg ;;
1211
1212   -target | --target | --targe | --targ | --tar | --ta | --t)
1213     ac_prev=target_alias ;;
1214   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215     target_alias=$ac_optarg ;;
1216
1217   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218     verbose=yes ;;
1219
1220   -version | --version | --versio | --versi | --vers | -V)
1221     ac_init_version=: ;;
1222
1223   -with-* | --with-*)
1224     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227       { echo "$as_me: error: invalid package name: $ac_package" >&2
1228    { (exit 1); exit 1; }; }
1229     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230     eval with_$ac_package=\$ac_optarg ;;
1231
1232   -without-* | --without-*)
1233     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236       { echo "$as_me: error: invalid package name: $ac_package" >&2
1237    { (exit 1); exit 1; }; }
1238     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239     eval with_$ac_package=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) { echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261    { (exit 1); exit 1; }; }
1262     ;;
1263
1264   *=*)
1265     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269    { (exit 1); exit 1; }; }
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   { echo "$as_me: error: missing argument to $ac_option" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289
1290 # Be sure to have absolute directory names.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   case $ac_val in
1298     [\\/$]* | ?:[\\/]* )  continue;;
1299     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300   esac
1301   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302    { (exit 1); exit 1; }; }
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317     If a cross compiler is detected then cross compile mode will be used." >&2
1318   elif test "x$build_alias" != "x$host_alias"; then
1319     cross_compiling=yes
1320   fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332   { echo "$as_me: error: Working directory cannot be determined" >&2
1333    { (exit 1); exit 1; }; }
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335   { echo "$as_me: error: pwd does not report name of working directory" >&2
1336    { (exit 1); exit 1; }; }
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341   ac_srcdir_defaulted=yes
1342   # Try the directory containing this script, then the parent directory.
1343   ac_confdir=`$as_dirname -- "$0" ||
1344 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345          X"$0" : 'X\(//\)[^/]' \| \
1346          X"$0" : 'X\(//\)$' \| \
1347          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1348 echo X"$0" |
1349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)[^/].*/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\/\)$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\).*/{
1362             s//\1/
1363             q
1364           }
1365           s/.*/./; q'`
1366   srcdir=$ac_confdir
1367   if test ! -r "$srcdir/$ac_unique_file"; then
1368     srcdir=..
1369   fi
1370 else
1371   ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376    { (exit 1); exit 1; }; }
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381    { (exit 1); exit 1; }; }
1382         pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385   srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_env_${ac_var}_value=\$${ac_var}
1396   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404   # Omit some internal or obsolete options to make the list less imposing.
1405   # This message is too long to be a string in the A/UX 3.1 sh.
1406   cat <<_ACEOF
1407 \`configure' configures mod_chxj 1.0.0 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417   -h, --help              display this help and exit
1418       --help=short        display options specific to this package
1419       --help=recursive    display the short help of all the included packages
1420   -V, --version           display version information and exit
1421   -q, --quiet, --silent   do not print \`checking...' messages
1422       --cache-file=FILE   cache test results in FILE [disabled]
1423   -C, --config-cache      alias for \`--cache-file=config.cache'
1424   -n, --no-create         do not create output files
1425       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428   --prefix=PREFIX         install architecture-independent files in PREFIX
1429                           [$ac_default_prefix]
1430   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431                           [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441   --bindir=DIR           user executables [EPREFIX/bin]
1442   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1443   --libexecdir=DIR       program executables [EPREFIX/libexec]
1444   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1445   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1446   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1447   --libdir=DIR           object code libraries [EPREFIX/lib]
1448   --includedir=DIR       C header files [PREFIX/include]
1449   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1450   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1451   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1452   --infodir=DIR          info documentation [DATAROOTDIR/info]
1453   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1454   --mandir=DIR           man documentation [DATAROOTDIR/man]
1455   --docdir=DIR           documentation root [DATAROOTDIR/doc/mod_chxj]
1456   --htmldir=DIR          html documentation [DOCDIR]
1457   --dvidir=DIR           dvi documentation [DOCDIR]
1458   --pdfdir=DIR           pdf documentation [DOCDIR]
1459   --psdir=DIR            ps documentation [DOCDIR]
1460 _ACEOF
1461
1462   cat <<\_ACEOF
1463
1464 Program names:
1465   --program-prefix=PREFIX            prepend PREFIX to installed program names
1466   --program-suffix=SUFFIX            append SUFFIX to installed program names
1467   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1468
1469 System types:
1470   --build=BUILD     configure for building on BUILD [guessed]
1471   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1472   --target=TARGET   configure for building compilers for TARGET [HOST]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of mod_chxj 1.0.0:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485   --disable-dependency-tracking  speeds up one-time build
1486   --enable-dependency-tracking   do not reject slow dependency extractors
1487   --enable-shared[=PKGS]  build shared libraries [default=yes]
1488   --enable-static[=PKGS]  build static libraries [default=yes]
1489   --enable-fast-install[=PKGS]
1490                           optimize for fast installation [default=yes]
1491   --disable-libtool-lock  avoid locking (might break parallel builds)
1492   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1493 source by the automatic operation.
1494   --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1495   --enable-mysql-cookie    Please specify it when you save Cookie in MySQL.
1496   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1497
1498 Optional Packages:
1499   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1502   --with-pic              try to use only PIC/non-PIC objects [default=use
1503                           both]
1504   --with-tags[=TAGS]      include additional configurations [automatic]
1505   --with-apache-header=ARG The directory with the header file of apache2.x is specified.
1506   --with-apxs=ARG Path of apxs program file.
1507   --with-apr-config=ARG  Path of apr-config program file.
1508   --with-apu-config=ARG  Path of apu-config program file.
1509   --with-apr-memcache-header Path of "apr_memcache.h"
1510   --with-apr-memcache-lib-dir Path of "libapr_memcache.so"
1511   --with-mysql-header=ARG  Path of "mysql.h"
1512   --with-mysql-lib-dir=ARG Path of libmysqlclient
1513
1514 Some influential environment variables:
1515   CC          C compiler command
1516   CFLAGS      C compiler flags
1517   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518               nonstandard directory <lib dir>
1519   LIBS        libraries to pass to the linker, e.g. -l<library>
1520   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521               you have headers in a nonstandard directory <include dir>
1522   CPP         C preprocessor
1523   CXX         C++ compiler command
1524   CXXFLAGS    C++ compiler flags
1525   CXXCPP      C++ preprocessor
1526   F77         Fortran 77 compiler command
1527   FFLAGS      Fortran 77 compiler flags
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537   # If there are subdirs, report their specific --help.
1538   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539     test -d "$ac_dir" || continue
1540     ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546   # A ".." for each directory in $ac_dir_suffix.
1547   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548   case $ac_top_builddir_sub in
1549   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551   esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559   .)  # We are building in place.
1560     ac_srcdir=.
1561     ac_top_srcdir=$ac_top_builddir_sub
1562     ac_abs_top_srcdir=$ac_pwd ;;
1563   [\\/]* | ?:[\\/]* )  # Absolute name.
1564     ac_srcdir=$srcdir$ac_dir_suffix;
1565     ac_top_srcdir=$srcdir
1566     ac_abs_top_srcdir=$srcdir ;;
1567   *) # Relative name.
1568     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569     ac_top_srcdir=$ac_top_build_prefix$srcdir
1570     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574     cd "$ac_dir" || { ac_status=$?; continue; }
1575     # Check for guested configure.
1576     if test -f "$ac_srcdir/configure.gnu"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579     elif test -f "$ac_srcdir/configure"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure" --help=recursive
1582     else
1583       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584     fi || ac_status=$?
1585     cd "$ac_pwd" || { ac_status=$?; break; }
1586   done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591   cat <<\_ACEOF
1592 mod_chxj configure 1.0.0
1593 generated by GNU Autoconf 2.61
1594
1595 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600   exit
1601 fi
1602 cat >config.log <<_ACEOF
1603 This file contains any messages produced by compilers while
1604 running configure, to aid debugging if configure makes a mistake.
1605
1606 It was created by mod_chxj $as_me 1.0.0, which was
1607 generated by GNU Autoconf 2.61.  Invocation command line was
1608
1609   $ $0 $@
1610
1611 _ACEOF
1612 exec 5>>config.log
1613 {
1614 cat <<_ASUNAME
1615 ## --------- ##
1616 ## Platform. ##
1617 ## --------- ##
1618
1619 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624
1625 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1627
1628 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1629 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1630 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1632 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1633 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1634 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1635
1636 _ASUNAME
1637
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   echo "PATH: $as_dir"
1644 done
1645 IFS=$as_save_IFS
1646
1647 } >&5
1648
1649 cat >&5 <<_ACEOF
1650
1651
1652 ## ----------- ##
1653 ## Core tests. ##
1654 ## ----------- ##
1655
1656 _ACEOF
1657
1658
1659 # Keep a trace of the command line.
1660 # Strip out --no-create and --no-recursion so they do not pile up.
1661 # Strip out --silent because we don't want to record it for future runs.
1662 # Also quote any args containing shell meta-characters.
1663 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_configure_args=
1665 ac_configure_args0=
1666 ac_configure_args1=
1667 ac_must_keep_next=false
1668 for ac_pass in 1 2
1669 do
1670   for ac_arg
1671   do
1672     case $ac_arg in
1673     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675     | -silent | --silent | --silen | --sile | --sil)
1676       continue ;;
1677     *\'*)
1678       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679     esac
1680     case $ac_pass in
1681     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682     2)
1683       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684       if test $ac_must_keep_next = true; then
1685         ac_must_keep_next=false # Got value, back to normal.
1686       else
1687         case $ac_arg in
1688           *=* | --config-cache | -C | -disable-* | --disable-* \
1689           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691           | -with-* | --with-* | -without-* | --without-* | --x)
1692             case "$ac_configure_args0 " in
1693               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694             esac
1695             ;;
1696           -* ) ac_must_keep_next=true ;;
1697         esac
1698       fi
1699       ac_configure_args="$ac_configure_args '$ac_arg'"
1700       ;;
1701     esac
1702   done
1703 done
1704 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706
1707 # When interrupted or exit'd, cleanup temporary files, and complete
1708 # config.log.  We remove comments because anyway the quotes in there
1709 # would cause problems or look ugly.
1710 # WARNING: Use '\'' to represent an apostrophe within the trap.
1711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712 trap 'exit_status=$?
1713   # Save into config.log some information that might help in debugging.
1714   {
1715     echo
1716
1717     cat <<\_ASBOX
1718 ## ---------------- ##
1719 ## Cache variables. ##
1720 ## ---------------- ##
1721 _ASBOX
1722     echo
1723     # The following way of writing the cache mishandles newlines in values,
1724 (
1725   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726     eval ac_val=\$$ac_var
1727     case $ac_val in #(
1728     *${as_nl}*)
1729       case $ac_var in #(
1730       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732       esac
1733       case $ac_var in #(
1734       _ | IFS | as_nl) ;; #(
1735       *) $as_unset $ac_var ;;
1736       esac ;;
1737     esac
1738   done
1739   (set) 2>&1 |
1740     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741     *${as_nl}ac_space=\ *)
1742       sed -n \
1743         "s/'\''/'\''\\\\'\'''\''/g;
1744           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745       ;; #(
1746     *)
1747       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748       ;;
1749     esac |
1750     sort
1751 )
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759     echo
1760     for ac_var in $ac_subst_vars
1761     do
1762       eval ac_val=\$$ac_var
1763       case $ac_val in
1764       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765       esac
1766       echo "$ac_var='\''$ac_val'\''"
1767     done | sort
1768     echo
1769
1770     if test -n "$ac_subst_files"; then
1771       cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776       echo
1777       for ac_var in $ac_subst_files
1778       do
1779         eval ac_val=\$$ac_var
1780         case $ac_val in
1781         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782         esac
1783         echo "$ac_var='\''$ac_val'\''"
1784       done | sort
1785       echo
1786     fi
1787
1788     if test -s confdefs.h; then
1789       cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794       echo
1795       cat confdefs.h
1796       echo
1797     fi
1798     test "$ac_signal" != 0 &&
1799       echo "$as_me: caught signal $ac_signal"
1800     echo "$as_me: exit $exit_status"
1801   } >&5
1802   rm -f core *.core core.conftest.* &&
1803     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804     exit $exit_status
1805 ' 0
1806 for ac_signal in 1 2 13 15; do
1807   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1810
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1813
1814 # Predefined preprocessor variables.
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1839
1840
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844   set x "$CONFIG_SITE"
1845 elif test "x$prefix" != xNONE; then
1846   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847 else
1848   set x "$ac_default_prefix/share/config.site" \
1849         "$ac_default_prefix/etc/config.site"
1850 fi
1851 shift
1852 for ac_site_file
1853 do
1854   if test -r "$ac_site_file"; then
1855     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856 echo "$as_me: loading site script $ac_site_file" >&6;}
1857     sed 's/^/| /' "$ac_site_file" >&5
1858     . "$ac_site_file"
1859   fi
1860 done
1861
1862 if test -r "$cache_file"; then
1863   # Some versions of bash will fail to source /dev/null (special
1864   # files actually), so we avoid doing that.
1865   if test -f "$cache_file"; then
1866     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867 echo "$as_me: loading cache $cache_file" >&6;}
1868     case $cache_file in
1869       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870       *)                      . "./$cache_file";;
1871     esac
1872   fi
1873 else
1874   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875 echo "$as_me: creating cache $cache_file" >&6;}
1876   >$cache_file
1877 fi
1878
1879 # Check that the precious variables saved in the cache have kept the same
1880 # value.
1881 ac_cache_corrupted=false
1882 for ac_var in $ac_precious_vars; do
1883   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884   eval ac_new_set=\$ac_env_${ac_var}_set
1885   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886   eval ac_new_val=\$ac_env_${ac_var}_value
1887   case $ac_old_set,$ac_new_set in
1888     set,)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,set)
1893       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895       ac_cache_corrupted=: ;;
1896     ,);;
1897     *)
1898       if test "x$ac_old_val" != "x$ac_new_val"; then
1899         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1902 echo "$as_me:   former value:  $ac_old_val" >&2;}
1903         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1904 echo "$as_me:   current value: $ac_new_val" >&2;}
1905         ac_cache_corrupted=:
1906       fi;;
1907   esac
1908   # Pass precious variables to config.status.
1909   if test "$ac_new_set" = set; then
1910     case $ac_new_val in
1911     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912     *) ac_arg=$ac_var=$ac_new_val ;;
1913     esac
1914     case " $ac_configure_args " in
1915       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1916       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917     esac
1918   fi
1919 done
1920 if $ac_cache_corrupted; then
1921   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925    { (exit 1); exit 1; }; }
1926 fi
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952 ac_ext=c
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957
1958
1959
1960
1961 ac_aux_dir=
1962 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1963   if test -f "$ac_dir/install-sh"; then
1964     ac_aux_dir=$ac_dir
1965     ac_install_sh="$ac_aux_dir/install-sh -c"
1966     break
1967   elif test -f "$ac_dir/install.sh"; then
1968     ac_aux_dir=$ac_dir
1969     ac_install_sh="$ac_aux_dir/install.sh -c"
1970     break
1971   elif test -f "$ac_dir/shtool"; then
1972     ac_aux_dir=$ac_dir
1973     ac_install_sh="$ac_aux_dir/shtool install -c"
1974     break
1975   fi
1976 done
1977 if test -z "$ac_aux_dir"; then
1978   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1979 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983 # These three variables are undocumented and unsupported,
1984 # and are intended to be withdrawn in a future Autoconf release.
1985 # They can cause serious problems if a builder's source tree is in a directory
1986 # whose full name contains unusual characters.
1987 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1988 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1989 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1990
1991
1992 # Make sure we can run config.sub.
1993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996    { (exit 1); exit 1; }; }
1997
1998 { echo "$as_me:$LINENO: checking build system type" >&5
1999 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000 if test "${ac_cv_build+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   ac_build_alias=$build_alias
2004 test "x$ac_build_alias" = x &&
2005   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006 test "x$ac_build_alias" = x &&
2007   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009    { (exit 1); exit 1; }; }
2010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013    { (exit 1); exit 1; }; }
2014
2015 fi
2016 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017 echo "${ECHO_T}$ac_cv_build" >&6; }
2018 case $ac_cv_build in
2019 *-*-*) ;;
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021 echo "$as_me: error: invalid value of canonical build" >&2;}
2022    { (exit 1); exit 1; }; };;
2023 esac
2024 build=$ac_cv_build
2025 ac_save_IFS=$IFS; IFS='-'
2026 set x $ac_cv_build
2027 shift
2028 build_cpu=$1
2029 build_vendor=$2
2030 shift; shift
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2033 build_os=$*
2034 IFS=$ac_save_IFS
2035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2036
2037
2038 { echo "$as_me:$LINENO: checking host system type" >&5
2039 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_host+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test "x$host_alias" = x; then
2044   ac_cv_host=$ac_cv_build
2045 else
2046   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 fi
2053 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054 echo "${ECHO_T}$ac_cv_host" >&6; }
2055 case $ac_cv_host in
2056 *-*-*) ;;
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058 echo "$as_me: error: invalid value of canonical host" >&2;}
2059    { (exit 1); exit 1; }; };;
2060 esac
2061 host=$ac_cv_host
2062 ac_save_IFS=$IFS; IFS='-'
2063 set x $ac_cv_host
2064 shift
2065 host_cpu=$1
2066 host_vendor=$2
2067 shift; shift
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2070 host_os=$*
2071 IFS=$ac_save_IFS
2072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2073
2074
2075 { echo "$as_me:$LINENO: checking target system type" >&5
2076 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077 if test "${ac_cv_target+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test "x$target_alias" = x; then
2081   ac_cv_target=$ac_cv_host
2082 else
2083   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2084     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086    { (exit 1); exit 1; }; }
2087 fi
2088
2089 fi
2090 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091 echo "${ECHO_T}$ac_cv_target" >&6; }
2092 case $ac_cv_target in
2093 *-*-*) ;;
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095 echo "$as_me: error: invalid value of canonical target" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 target=$ac_cv_target
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_target
2101 shift
2102 target_cpu=$1
2103 target_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 target_os=$*
2108 IFS=$ac_save_IFS
2109 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2110
2111
2112 # The aliases save the names the user supplied, while $host etc.
2113 # will get canonicalized.
2114 test -n "$target_alias" &&
2115   test "$program_prefix$program_suffix$program_transform_name" = \
2116     NONENONEs,x,x, &&
2117   program_prefix=${target_alias}-
2118 am__api_version='1.10'
2119
2120 # Find a good install program.  We prefer a C program (faster),
2121 # so one script is as good as another.  But avoid the broken or
2122 # incompatible versions:
2123 # SysV /etc/install, /usr/sbin/install
2124 # SunOS /usr/etc/install
2125 # IRIX /sbin/install
2126 # AIX /bin/install
2127 # AmigaOS /C/install, which installs bootblocks on floppy discs
2128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2131 # OS/2's system install, which has a completely different semantic
2132 # ./install, which can be erroneously created by make from ./install.sh.
2133 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2134 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2135 if test -z "$INSTALL"; then
2136 if test "${ac_cv_path_install+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   # Account for people who put trailing slashes in PATH elements.
2145 case $as_dir/ in
2146   ./ | .// | /cC/* | \
2147   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2148   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2149   /usr/ucb/* ) ;;
2150   *)
2151     # OSF1 and SCO ODT 3.0 have their own names for install.
2152     # Don't use installbsd from OSF since it installs stuff as root
2153     # by default.
2154     for ac_prog in ginstall scoinst install; do
2155       for ac_exec_ext in '' $ac_executable_extensions; do
2156         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2157           if test $ac_prog = install &&
2158             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159             # AIX install.  It has an incompatible calling convention.
2160             :
2161           elif test $ac_prog = install &&
2162             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163             # program-specific install script used by HP pwplus--don't use.
2164             :
2165           else
2166             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2167             break 3
2168           fi
2169         fi
2170       done
2171     done
2172     ;;
2173 esac
2174 done
2175 IFS=$as_save_IFS
2176
2177
2178 fi
2179   if test "${ac_cv_path_install+set}" = set; then
2180     INSTALL=$ac_cv_path_install
2181   else
2182     # As a last resort, use the slow shell script.  Don't cache a
2183     # value for INSTALL within a source directory, because that will
2184     # break other packages using the cache if that directory is
2185     # removed, or if the value is a relative name.
2186     INSTALL=$ac_install_sh
2187   fi
2188 fi
2189 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2190 echo "${ECHO_T}$INSTALL" >&6; }
2191
2192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2193 # It thinks the first close brace ends the variable substitution.
2194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2195
2196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2197
2198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2199
2200 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2201 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2202 # Just in case
2203 sleep 1
2204 echo timestamp > conftest.file
2205 # Do `set' in a subshell so we don't clobber the current shell's
2206 # arguments.  Must try -L first in case configure is actually a
2207 # symlink; some systems play weird games with the mod time of symlinks
2208 # (eg FreeBSD returns the mod time of the symlink's containing
2209 # directory).
2210 if (
2211    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2212    if test "$*" = "X"; then
2213       # -L didn't work.
2214       set X `ls -t $srcdir/configure conftest.file`
2215    fi
2216    rm -f conftest.file
2217    if test "$*" != "X $srcdir/configure conftest.file" \
2218       && test "$*" != "X conftest.file $srcdir/configure"; then
2219
2220       # If neither matched, then we have a broken ls.  This can happen
2221       # if, for instance, CONFIG_SHELL is bash and it inherits a
2222       # broken ls alias from the environment.  This has actually
2223       # happened.  Such a system could not be considered "sane".
2224       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2225 alias in your environment" >&5
2226 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2227 alias in your environment" >&2;}
2228    { (exit 1); exit 1; }; }
2229    fi
2230
2231    test "$2" = conftest.file
2232    )
2233 then
2234    # Ok.
2235    :
2236 else
2237    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2238 Check your system clock" >&5
2239 echo "$as_me: error: newly created file is older than distributed files!
2240 Check your system clock" >&2;}
2241    { (exit 1); exit 1; }; }
2242 fi
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2245 test "$program_prefix" != NONE &&
2246   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2247 # Use a double $ so make ignores it.
2248 test "$program_suffix" != NONE &&
2249   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2250 # Double any \ or $.  echo might interpret backslashes.
2251 # By default was `s,x,x', remove it if useless.
2252 cat <<\_ACEOF >conftest.sed
2253 s/[\\$]/&&/g;s/;s,x,x,$//
2254 _ACEOF
2255 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2256 rm -f conftest.sed
2257
2258 # expand $ac_aux_dir to an absolute path
2259 am_aux_dir=`cd $ac_aux_dir && pwd`
2260
2261 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2262 # Use eval to expand $SHELL
2263 if eval "$MISSING --run true"; then
2264   am_missing_run="$MISSING --run "
2265 else
2266   am_missing_run=
2267   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2268 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2269 fi
2270
2271 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2272 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2273 if test -z "$MKDIR_P"; then
2274   if test "${ac_cv_path_mkdir+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_prog in mkdir gmkdir; do
2283          for ac_exec_ext in '' $ac_executable_extensions; do
2284            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2285            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2286              'mkdir (GNU coreutils) '* | \
2287              'mkdir (coreutils) '* | \
2288              'mkdir (fileutils) '4.1*)
2289                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2290                break 3;;
2291            esac
2292          done
2293        done
2294 done
2295 IFS=$as_save_IFS
2296
2297 fi
2298
2299   if test "${ac_cv_path_mkdir+set}" = set; then
2300     MKDIR_P="$ac_cv_path_mkdir -p"
2301   else
2302     # As a last resort, use the slow shell script.  Don't cache a
2303     # value for MKDIR_P within a source directory, because that will
2304     # break other packages using the cache if that directory is
2305     # removed, or if the value is a relative name.
2306     test -d ./--version && rmdir ./--version
2307     MKDIR_P="$ac_install_sh -d"
2308   fi
2309 fi
2310 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2311 echo "${ECHO_T}$MKDIR_P" >&6; }
2312
2313 mkdir_p="$MKDIR_P"
2314 case $mkdir_p in
2315   [\\/$]* | ?:[\\/]*) ;;
2316   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2317 esac
2318
2319 for ac_prog in gawk mawk nawk awk
2320 do
2321   # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_AWK+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   if test -n "$AWK"; then
2329   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338     ac_cv_prog_AWK="$ac_prog"
2339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343 done
2344 IFS=$as_save_IFS
2345
2346 fi
2347 fi
2348 AWK=$ac_cv_prog_AWK
2349 if test -n "$AWK"; then
2350   { echo "$as_me:$LINENO: result: $AWK" >&5
2351 echo "${ECHO_T}$AWK" >&6; }
2352 else
2353   { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2355 fi
2356
2357
2358   test -n "$AWK" && break
2359 done
2360
2361 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2362 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2363 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2364 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   cat >conftest.make <<\_ACEOF
2368 SHELL = /bin/sh
2369 all:
2370         @echo '@@@%%%=$(MAKE)=@@@%%%'
2371 _ACEOF
2372 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2373 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2374   *@@@%%%=?*=@@@%%%*)
2375     eval ac_cv_prog_make_${ac_make}_set=yes;;
2376   *)
2377     eval ac_cv_prog_make_${ac_make}_set=no;;
2378 esac
2379 rm -f conftest.make
2380 fi
2381 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2382   { echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6; }
2384   SET_MAKE=
2385 else
2386   { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388   SET_MAKE="MAKE=${MAKE-make}"
2389 fi
2390
2391 rm -rf .tst 2>/dev/null
2392 mkdir .tst 2>/dev/null
2393 if test -d .tst; then
2394   am__leading_dot=.
2395 else
2396   am__leading_dot=_
2397 fi
2398 rmdir .tst 2>/dev/null
2399
2400 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2401   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2402   # is not polluted with repeated "-I."
2403   am__isrc=' -I$(srcdir)'
2404   # test to see if srcdir already configured
2405   if test -f $srcdir/config.status; then
2406     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408    { (exit 1); exit 1; }; }
2409   fi
2410 fi
2411
2412 # test whether we have cygpath
2413 if test -z "$CYGPATH_W"; then
2414   if (cygpath --version) >/dev/null 2>/dev/null; then
2415     CYGPATH_W='cygpath -w'
2416   else
2417     CYGPATH_W=echo
2418   fi
2419 fi
2420
2421
2422 # Define the identity of the package.
2423  PACKAGE=mod_chxj
2424  VERSION=1.0.0
2425
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE "$PACKAGE"
2429 _ACEOF
2430
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define VERSION "$VERSION"
2434 _ACEOF
2435
2436 # Some tools Automake needs.
2437
2438 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2439
2440
2441 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2442
2443
2444 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2445
2446
2447 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2448
2449
2450 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2451
2452 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2453
2454 # Installed binaries are usually stripped using `strip' when the user
2455 # run `make install-strip'.  However `strip' might not be the right
2456 # tool to use in cross-compilation environments, therefore Automake
2457 # will honor the `STRIP' environment variable to overrule this program.
2458 if test "$cross_compiling" != no; then
2459   if test -n "$ac_tool_prefix"; then
2460   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}strip; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_STRIP+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   if test -n "$STRIP"; then
2468   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 STRIP=$ac_cv_prog_STRIP
2488 if test -n "$STRIP"; then
2489   { echo "$as_me:$LINENO: result: $STRIP" >&5
2490 echo "${ECHO_T}$STRIP" >&6; }
2491 else
2492   { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2494 fi
2495
2496
2497 fi
2498 if test -z "$ac_cv_prog_STRIP"; then
2499   ac_ct_STRIP=$STRIP
2500   # Extract the first word of "strip", so it can be a program name with args.
2501 set dummy strip; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$ac_ct_STRIP"; then
2508   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     ac_cv_prog_ac_ct_STRIP="strip"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528 if test -n "$ac_ct_STRIP"; then
2529   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2530 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2531 else
2532   { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2534 fi
2535
2536   if test "x$ac_ct_STRIP" = x; then
2537     STRIP=":"
2538   else
2539     case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet.  If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet.  If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2548 esac
2549     STRIP=$ac_ct_STRIP
2550   fi
2551 else
2552   STRIP="$ac_cv_prog_STRIP"
2553 fi
2554
2555 fi
2556 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558 # We need awk for the "check" target.  The system "awk" is bad on
2559 # some platforms.
2560 # Always define AMTAR for backward compatibility.
2561
2562 AMTAR=${AMTAR-"${am_missing_run}tar"}
2563
2564 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2565
2566
2567
2568
2569
2570 ac_config_headers="$ac_config_headers include/config.h"
2571
2572
2573
2574 # Checks for programs.
2575 DEPDIR="${am__leading_dot}deps"
2576
2577 ac_config_commands="$ac_config_commands depfiles"
2578
2579
2580 am_make=${MAKE-make}
2581 cat > confinc << 'END'
2582 am__doit:
2583         @echo done
2584 .PHONY: am__doit
2585 END
2586 # If we don't find an include directive, just comment out the code.
2587 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2588 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2589 am__include="#"
2590 am__quote=
2591 _am_result=none
2592 # First try GNU make style include.
2593 echo "include confinc" > confmf
2594 # We grep out `Entering directory' and `Leaving directory'
2595 # messages which can occur if `w' ends up in MAKEFLAGS.
2596 # In particular we don't look at `^make:' because GNU make might
2597 # be invoked under some other name (usually "gmake"), in which
2598 # case it prints its new name instead of `make'.
2599 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2600    am__include=include
2601    am__quote=
2602    _am_result=GNU
2603 fi
2604 # Now try BSD make style include.
2605 if test "$am__include" = "#"; then
2606    echo '.include "confinc"' > confmf
2607    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2608       am__include=.include
2609       am__quote="\""
2610       _am_result=BSD
2611    fi
2612 fi
2613
2614
2615 { echo "$as_me:$LINENO: result: $_am_result" >&5
2616 echo "${ECHO_T}$_am_result" >&6; }
2617 rm -f confinc confmf
2618
2619 # Check whether --enable-dependency-tracking was given.
2620 if test "${enable_dependency_tracking+set}" = set; then
2621   enableval=$enable_dependency_tracking;
2622 fi
2623
2624 if test "x$enable_dependency_tracking" != xno; then
2625   am_depcomp="$ac_aux_dir/depcomp"
2626   AMDEPBACKSLASH='\'
2627 fi
2628  if test "x$enable_dependency_tracking" != xno; then
2629   AMDEP_TRUE=
2630   AMDEP_FALSE='#'
2631 else
2632   AMDEP_TRUE='#'
2633   AMDEP_FALSE=
2634 fi
2635
2636
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642 if test -n "$ac_tool_prefix"; then
2643   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_CC+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$CC"; then
2651   ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672   { echo "$as_me:$LINENO: result: $CC" >&5
2673 echo "${ECHO_T}$CC" >&6; }
2674 else
2675   { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2677 fi
2678
2679
2680 fi
2681 if test -z "$ac_cv_prog_CC"; then
2682   ac_ct_CC=$CC
2683   # Extract the first word of "gcc", so it can be a program name with args.
2684 set dummy gcc; ac_word=$2
2685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   if test -n "$ac_ct_CC"; then
2691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696   IFS=$as_save_IFS
2697   test -z "$as_dir" && as_dir=.
2698   for ac_exec_ext in '' $ac_executable_extensions; do
2699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700     ac_cv_prog_ac_ct_CC="gcc"
2701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702     break 2
2703   fi
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2713 echo "${ECHO_T}$ac_ct_CC" >&6; }
2714 else
2715   { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2717 fi
2718
2719   if test "x$ac_ct_CC" = x; then
2720     CC=""
2721   else
2722     case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet.  If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&5
2727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet.  If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2730 ac_tool_warned=yes ;;
2731 esac
2732     CC=$ac_ct_CC
2733   fi
2734 else
2735   CC="$ac_cv_prog_CC"
2736 fi
2737
2738 if test -z "$CC"; then
2739           if test -n "$ac_tool_prefix"; then
2740     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}cc; ac_word=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   if test -n "$CC"; then
2748   ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755   for ac_exec_ext in '' $ac_executable_extensions; do
2756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757     ac_cv_prog_CC="${ac_tool_prefix}cc"
2758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769   { echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6; }
2771 else
2772   { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2774 fi
2775
2776
2777   fi
2778 fi
2779 if test -z "$CC"; then
2780   # Extract the first word of "cc", so it can be a program name with args.
2781 set dummy cc; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   if test -n "$CC"; then
2788   ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790   ac_prog_rejected=no
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796   for ac_exec_ext in '' $ac_executable_extensions; do
2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2799        ac_prog_rejected=yes
2800        continue
2801      fi
2802     ac_cv_prog_CC="cc"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 if test $ac_prog_rejected = yes; then
2811   # We found a bogon in the path, so make sure we never use it.
2812   set dummy $ac_cv_prog_CC
2813   shift
2814   if test $# != 0; then
2815     # We chose a different compiler from the bogus one.
2816     # However, it has the same basename, so the bogon will be chosen
2817     # first if we set CC to just the basename; use the full file name.
2818     shift
2819     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2820   fi
2821 fi
2822 fi
2823 fi
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826   { echo "$as_me:$LINENO: result: $CC" >&5
2827 echo "${ECHO_T}$CC" >&6; }
2828 else
2829   { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2831 fi
2832
2833
2834 fi
2835 if test -z "$CC"; then
2836   if test -n "$ac_tool_prefix"; then
2837   for ac_prog in cl.exe
2838   do
2839     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   if test -n "$CC"; then
2847   ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868   { echo "$as_me:$LINENO: result: $CC" >&5
2869 echo "${ECHO_T}$CC" >&6; }
2870 else
2871   { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2873 fi
2874
2875
2876     test -n "$CC" && break
2877   done
2878 fi
2879 if test -z "$CC"; then
2880   ac_ct_CC=$CC
2881   for ac_prog in cl.exe
2882 do
2883   # Extract the first word of "$ac_prog", so it can be a program name with args.
2884 set dummy $ac_prog; ac_word=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   if test -n "$ac_ct_CC"; then
2891   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898   for ac_exec_ext in '' $ac_executable_extensions; do
2899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900     ac_cv_prog_ac_ct_CC="$ac_prog"
2901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902     break 2
2903   fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913 echo "${ECHO_T}$ac_ct_CC" >&6; }
2914 else
2915   { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2917 fi
2918
2919
2920   test -n "$ac_ct_CC" && break
2921 done
2922
2923   if test "x$ac_ct_CC" = x; then
2924     CC=""
2925   else
2926     case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet.  If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&5
2931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet.  If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936     CC=$ac_ct_CC
2937   fi
2938 fi
2939
2940 fi
2941
2942
2943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details." >&2;}
2947    { (exit 1); exit 1; }; }
2948
2949 # Provide some information about the compiler.
2950 echo "$as_me:$LINENO: checking for C compiler version" >&5
2951 ac_compiler=`set X $ac_compile; echo $2`
2952 { (ac_try="$ac_compiler --version >&5"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_compiler --version >&5") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }
2962 { (ac_try="$ac_compiler -v >&5"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_compiler -v >&5") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }
2972 { (ac_try="$ac_compiler -V >&5"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compiler -V >&5") 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }
2982
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h.  */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h.  */
2989
2990 int
2991 main ()
2992 {
2993
2994   ;
2995   return 0;
2996 }
2997 _ACEOF
2998 ac_clean_files_save=$ac_clean_files
2999 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3000 # Try to create an executable without -o first, disregard a.out.
3001 # It will help us diagnose broken compilers, and finding out an intuition
3002 # of exeext.
3003 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3004 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3005 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3006 #
3007 # List of possible output files, starting from the most likely.
3008 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3009 # only as a last resort.  b.out is created by i960 compilers.
3010 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3011 #
3012 # The IRIX 6 linker writes into existing files which may not be
3013 # executable, retaining their permissions.  Remove them first so a
3014 # subsequent execution test works.
3015 ac_rmfiles=
3016 for ac_file in $ac_files
3017 do
3018   case $ac_file in
3019     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3020     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3021   esac
3022 done
3023 rm -f $ac_rmfiles
3024
3025 if { (ac_try="$ac_link_default"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_link_default") 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; then
3035   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3036 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3037 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3038 # so that the user can short-circuit this test for compilers unknown to
3039 # Autoconf.
3040 for ac_file in $ac_files ''
3041 do
3042   test -f "$ac_file" || continue
3043   case $ac_file in
3044     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3045         ;;
3046     [ab].out )
3047         # We found the default executable, but exeext='' is most
3048         # certainly right.
3049         break;;
3050     *.* )
3051         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3052         then :; else
3053            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054         fi
3055         # We set ac_cv_exeext here because the later test for it is not
3056         # safe: cross compilers may not add the suffix if given an `-o'
3057         # argument, so we may need to know it at that point already.
3058         # Even if this section looks crufty: it has the advantage of
3059         # actually working.
3060         break;;
3061     * )
3062         break;;
3063   esac
3064 done
3065 test "$ac_cv_exeext" = no && ac_cv_exeext=
3066
3067 else
3068   ac_file=''
3069 fi
3070
3071 { echo "$as_me:$LINENO: result: $ac_file" >&5
3072 echo "${ECHO_T}$ac_file" >&6; }
3073 if test -z "$ac_file"; then
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: C compiler cannot create executables
3080 See \`config.log' for more details." >&2;}
3081    { (exit 77); exit 77; }; }
3082 fi
3083
3084 ac_exeext=$ac_cv_exeext
3085
3086 # Check that the compiler produces executables we can run.  If not, either
3087 # the compiler is broken, or we cross compile.
3088 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3089 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3090 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3091 # If not cross compiling, check that we can run a simple program.
3092 if test "$cross_compiling" != yes; then
3093   if { ac_try='./$ac_file'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103     cross_compiling=no
3104   else
3105     if test "$cross_compiling" = maybe; then
3106         cross_compiling=yes
3107     else
3108         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3109 If you meant to cross compile, use \`--host'.
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: cannot run C compiled programs.
3112 If you meant to cross compile, use \`--host'.
3113 See \`config.log' for more details." >&2;}
3114    { (exit 1); exit 1; }; }
3115     fi
3116   fi
3117 fi
3118 { echo "$as_me:$LINENO: result: yes" >&5
3119 echo "${ECHO_T}yes" >&6; }
3120
3121 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3122 ac_clean_files=$ac_clean_files_save
3123 # Check that the compiler produces executables we can run.  If not, either
3124 # the compiler is broken, or we cross compile.
3125 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3126 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3127 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3128 echo "${ECHO_T}$cross_compiling" >&6; }
3129
3130 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3131 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3132 if { (ac_try="$ac_link"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_link") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; then
3142   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147   test -f "$ac_file" || continue
3148   case $ac_file in
3149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3150     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151           break;;
3152     * ) break;;
3153   esac
3154 done
3155 else
3156   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3159 See \`config.log' for more details." >&2;}
3160    { (exit 1); exit 1; }; }
3161 fi
3162
3163 rm -f conftest$ac_cv_exeext
3164 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3165 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3166
3167 rm -f conftest.$ac_ext
3168 EXEEXT=$ac_cv_exeext
3169 ac_exeext=$EXEEXT
3170 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3171 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3172 if test "${ac_cv_objext+set}" = set; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.o conftest.obj
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compile") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; then
3201   for ac_file in conftest.o conftest.obj conftest.*; do
3202   test -f "$ac_file" || continue;
3203   case $ac_file in
3204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3205     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3206        break;;
3207   esac
3208 done
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." >&5
3215 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3216 See \`config.log' for more details." >&2;}
3217    { (exit 1); exit 1; }; }
3218 fi
3219
3220 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3221 fi
3222 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3223 echo "${ECHO_T}$ac_cv_objext" >&6; }
3224 OBJEXT=$ac_cv_objext
3225 ac_objext=$OBJEXT
3226 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3227 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3228 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237
3238 int
3239 main ()
3240 {
3241 #ifndef __GNUC__
3242        choke me
3243 #endif
3244
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (ac_try="$ac_compile"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_compile") 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } && {
3263          test -z "$ac_c_werror_flag" ||
3264          test ! -s conftest.err
3265        } && test -s conftest.$ac_objext; then
3266   ac_compiler_gnu=yes
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271         ac_compiler_gnu=no
3272 fi
3273
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3276
3277 fi
3278 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3279 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3280 GCC=`test $ac_compiler_gnu = yes && echo yes`
3281 ac_test_CFLAGS=${CFLAGS+set}
3282 ac_save_CFLAGS=$CFLAGS
3283 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286   echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288   ac_save_c_werror_flag=$ac_c_werror_flag
3289    ac_c_werror_flag=yes
3290    ac_cv_prog_cc_g=no
3291    CFLAGS="-g"
3292    cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_compile") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && {
3321          test -z "$ac_c_werror_flag" ||
3322          test ! -s conftest.err
3323        } && test -s conftest.$ac_objext; then
3324   ac_cv_prog_cc_g=yes
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329         CFLAGS=""
3330       cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_compile") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } && {
3359          test -z "$ac_c_werror_flag" ||
3360          test ! -s conftest.err
3361        } && test -s conftest.$ac_objext; then
3362   :
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367         ac_c_werror_flag=$ac_save_c_werror_flag
3368          CFLAGS="-g"
3369          cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compile") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } && {
3398          test -z "$ac_c_werror_flag" ||
3399          test ! -s conftest.err
3400        } && test -s conftest.$ac_objext; then
3401   ac_cv_prog_cc_g=yes
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 fi
3411
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 fi
3414
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416    ac_c_werror_flag=$ac_save_c_werror_flag
3417 fi
3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3419 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421   CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423   if test "$GCC" = yes; then
3424     CFLAGS="-g -O2"
3425   else
3426     CFLAGS="-g"
3427   fi
3428 else
3429   if test "$GCC" = yes; then
3430     CFLAGS="-O2"
3431   else
3432     CFLAGS=
3433   fi
3434 fi
3435 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3436 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_c89+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   ac_cv_prog_cc_c89=no
3441 ac_save_CC=$CC
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448 #include <stdarg.h>
3449 #include <stdio.h>
3450 #include <sys/types.h>
3451 #include <sys/stat.h>
3452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3453 struct buf { int x; };
3454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3455 static char *e (p, i)
3456      char **p;
3457      int i;
3458 {
3459   return p[i];
3460 }
3461 static char *f (char * (*g) (char **, int), char **p, ...)
3462 {
3463   char *s;
3464   va_list v;
3465   va_start (v,p);
3466   s = g (p, va_arg (v,int));
3467   va_end (v);
3468   return s;
3469 }
3470
3471 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3472    function prototypes and stuff, but not '\xHH' hex character constants.
3473    These don't provoke an error unfortunately, instead are silently treated
3474    as 'x'.  The following induces an error, until -std is added to get
3475    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3476    array size at least.  It's necessary to write '\x00'==0 to get something
3477    that's true only with -std.  */
3478 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3479
3480 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3481    inside strings and character constants.  */
3482 #define FOO(x) 'x'
3483 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3484
3485 int test (int i, double x);
3486 struct s1 {int (*f) (int a);};
3487 struct s2 {int (*f) (double a);};
3488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489 int argc;
3490 char **argv;
3491 int
3492 main ()
3493 {
3494 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3500         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3501 do
3502   CC="$ac_save_CC $ac_arg"
3503   rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_compile") 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } && {
3517          test -z "$ac_c_werror_flag" ||
3518          test ! -s conftest.err
3519        } && test -s conftest.$ac_objext; then
3520   ac_cv_prog_cc_c89=$ac_arg
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525
3526 fi
3527
3528 rm -f core conftest.err conftest.$ac_objext
3529   test "x$ac_cv_prog_cc_c89" != "xno" && break
3530 done
3531 rm -f conftest.$ac_ext
3532 CC=$ac_save_CC
3533
3534 fi
3535 # AC_CACHE_VAL
3536 case "x$ac_cv_prog_cc_c89" in
3537   x)
3538     { echo "$as_me:$LINENO: result: none needed" >&5
3539 echo "${ECHO_T}none needed" >&6; } ;;
3540   xno)
3541     { echo "$as_me:$LINENO: result: unsupported" >&5
3542 echo "${ECHO_T}unsupported" >&6; } ;;
3543   *)
3544     CC="$CC $ac_cv_prog_cc_c89"
3545     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3546 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3547 esac
3548
3549
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556 depcc="$CC"   am_compiler_list=
3557
3558 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3559 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3560 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3564   # We make a subdir and do the tests there.  Otherwise we can end up
3565   # making bogus files that we don't know about and never remove.  For
3566   # instance it was reported that on HP-UX the gcc test will end up
3567   # making a dummy file named `D' -- because `-MD' means `put the output
3568   # in D'.
3569   mkdir conftest.dir
3570   # Copy depcomp to subdir because otherwise we won't find it if we're
3571   # using a relative directory.
3572   cp "$am_depcomp" conftest.dir
3573   cd conftest.dir
3574   # We will build objects and dependencies in a subdirectory because
3575   # it helps to detect inapplicable dependency modes.  For instance
3576   # both Tru64's cc and ICC support -MD to output dependencies as a
3577   # side effect of compilation, but ICC will put the dependencies in
3578   # the current directory while Tru64 will put them in the object
3579   # directory.
3580   mkdir sub
3581
3582   am_cv_CC_dependencies_compiler_type=none
3583   if test "$am_compiler_list" = ""; then
3584      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3585   fi
3586   for depmode in $am_compiler_list; do
3587     # Setup a source with many dependencies, because some compilers
3588     # like to wrap large dependency lists on column 80 (with \), and
3589     # we should not choose a depcomp mode which is confused by this.
3590     #
3591     # We need to recreate these files for each test, as the compiler may
3592     # overwrite some of them when testing with obscure command lines.
3593     # This happens at least with the AIX C compiler.
3594     : > sub/conftest.c
3595     for i in 1 2 3 4 5 6; do
3596       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3597       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3598       # Solaris 8's {/usr,}/bin/sh.
3599       touch sub/conftst$i.h
3600     done
3601     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602
3603     case $depmode in
3604     nosideeffect)
3605       # after this tag, mechanisms are not by side-effect, so they'll
3606       # only be used when explicitly requested
3607       if test "x$enable_dependency_tracking" = xyes; then
3608         continue
3609       else
3610         break
3611       fi
3612       ;;
3613     none) break ;;
3614     esac
3615     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3616     # mode.  It turns out that the SunPro C++ compiler does not properly
3617     # handle `-M -o', and we need to detect this.
3618     if depmode=$depmode \
3619        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3620        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3621        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3622          >/dev/null 2>conftest.err &&
3623        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3624        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3625        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3626        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3627       # icc doesn't choke on unknown options, it will just issue warnings
3628       # or remarks (even with -Werror).  So we grep stderr for any message
3629       # that says an option was ignored or not supported.
3630       # When given -MP, icc 7.0 and 7.1 complain thusly:
3631       #   icc: Command line warning: ignoring option '-M'; no argument required
3632       # The diagnosis changed in icc 8.0:
3633       #   icc: Command line remark: option '-MP' not supported
3634       if (grep 'ignoring option' conftest.err ||
3635           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3636         am_cv_CC_dependencies_compiler_type=$depmode
3637         break
3638       fi
3639     fi
3640   done
3641
3642   cd ..
3643   rm -rf conftest.dir
3644 else
3645   am_cv_CC_dependencies_compiler_type=none
3646 fi
3647
3648 fi
3649 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3650 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3651 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3652
3653  if
3654   test "x$enable_dependency_tracking" != xno \
3655   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3656   am__fastdepCC_TRUE=
3657   am__fastdepCC_FALSE='#'
3658 else
3659   am__fastdepCC_TRUE='#'
3660   am__fastdepCC_FALSE=
3661 fi
3662
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3670 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3673   CPP=
3674 fi
3675 if test -z "$CPP"; then
3676   if test "${ac_cv_prog_CPP+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679       # Double quotes because CPP needs to be expanded
3680     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3681     do
3682       ac_preproc_ok=false
3683 for ac_c_preproc_warn_flag in '' yes
3684 do
3685   # Use a header file that comes with gcc, so configuring glibc
3686   # with a fresh cross-compiler works.
3687   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688   # <limits.h> exists even on freestanding compilers.
3689   # On the NeXT, cc -E runs the code through the compiler's parser,
3690   # not just through cpp. "Syntax error" is here to catch this case.
3691   cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 #ifdef __STDC__
3698 # include <limits.h>
3699 #else
3700 # include <assert.h>
3701 #endif
3702                      Syntax error
3703 _ACEOF
3704 if { (ac_try="$ac_cpp conftest.$ac_ext"
3705 case "(($ac_try" in
3706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707   *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3711   ac_status=$?
3712   grep -v '^ *+' conftest.er1 >conftest.err
3713   rm -f conftest.er1
3714   cat conftest.err >&5
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } >/dev/null && {
3717          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3718          test ! -s conftest.err
3719        }; then
3720   :
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725   # Broken: fails on valid input.
3726 continue
3727 fi
3728
3729 rm -f conftest.err conftest.$ac_ext
3730
3731   # OK, works on sane cases.  Now check whether nonexistent headers
3732   # can be detected and how.
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <ac_nonexistent.h>
3740 _ACEOF
3741 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } >/dev/null && {
3754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755          test ! -s conftest.err
3756        }; then
3757   # Broken: success on invalid input.
3758 continue
3759 else
3760   echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763   # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3766 fi
3767
3768 rm -f conftest.err conftest.$ac_ext
3769
3770 done
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then
3774   break
3775 fi
3776
3777     done
3778     ac_cv_prog_CPP=$CPP
3779
3780 fi
3781   CPP=$ac_cv_prog_CPP
3782 else
3783   ac_cv_prog_CPP=$CPP
3784 fi
3785 { echo "$as_me:$LINENO: result: $CPP" >&5
3786 echo "${ECHO_T}$CPP" >&6; }
3787 ac_preproc_ok=false
3788 for ac_c_preproc_warn_flag in '' yes
3789 do
3790   # Use a header file that comes with gcc, so configuring glibc
3791   # with a fresh cross-compiler works.
3792   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793   # <limits.h> exists even on freestanding compilers.
3794   # On the NeXT, cc -E runs the code through the compiler's parser,
3795   # not just through cpp. "Syntax error" is here to catch this case.
3796   cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h.  */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h.  */
3802 #ifdef __STDC__
3803 # include <limits.h>
3804 #else
3805 # include <assert.h>
3806 #endif
3807                      Syntax error
3808 _ACEOF
3809 if { (ac_try="$ac_cpp conftest.$ac_ext"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } >/dev/null && {
3822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823          test ! -s conftest.err
3824        }; then
3825   :
3826 else
3827   echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830   # Broken: fails on valid input.
3831 continue
3832 fi
3833
3834 rm -f conftest.err conftest.$ac_ext
3835
3836   # OK, works on sane cases.  Now check whether nonexistent headers
3837   # can be detected and how.
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3847 case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853   ac_status=$?
3854   grep -v '^ *+' conftest.er1 >conftest.err
3855   rm -f conftest.er1
3856   cat conftest.err >&5
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); } >/dev/null && {
3859          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860          test ! -s conftest.err
3861        }; then
3862   # Broken: success on invalid input.
3863 continue
3864 else
3865   echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868   # Passes both tests.
3869 ac_preproc_ok=:
3870 break
3871 fi
3872
3873 rm -f conftest.err conftest.$ac_ext
3874
3875 done
3876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877 rm -f conftest.err conftest.$ac_ext
3878 if $ac_preproc_ok; then
3879   :
3880 else
3881   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3882 See \`config.log' for more details." >&5
3883 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3884 See \`config.log' for more details." >&2;}
3885    { (exit 1); exit 1; }; }
3886 fi
3887
3888 ac_ext=c
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   if test -n "$CC"; then
3908   ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923 IFS=$as_save_IFS
3924
3925 fi
3926 fi
3927 CC=$ac_cv_prog_CC
3928 if test -n "$CC"; then
3929   { echo "$as_me:$LINENO: result: $CC" >&5
3930 echo "${ECHO_T}$CC" >&6; }
3931 else
3932   { echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6; }
3934 fi
3935
3936
3937 fi
3938 if test -z "$ac_cv_prog_CC"; then
3939   ac_ct_CC=$CC
3940   # Extract the first word of "gcc", so it can be a program name with args.
3941 set dummy gcc; ac_word=$2
3942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3945   echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947   if test -n "$ac_ct_CC"; then
3948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955   for ac_exec_ext in '' $ac_executable_extensions; do
3956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957     ac_cv_prog_ac_ct_CC="gcc"
3958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962 done
3963 IFS=$as_save_IFS
3964
3965 fi
3966 fi
3967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3968 if test -n "$ac_ct_CC"; then
3969   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3970 echo "${ECHO_T}$ac_ct_CC" >&6; }
3971 else
3972   { echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6; }
3974 fi
3975
3976   if test "x$ac_ct_CC" = x; then
3977     CC=""
3978   else
3979     case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3982 whose name does not start with the host triplet.  If you think this
3983 configuration is useful to you, please write to autoconf@gnu.org." >&5
3984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3985 whose name does not start with the host triplet.  If you think this
3986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3987 ac_tool_warned=yes ;;
3988 esac
3989     CC=$ac_ct_CC
3990   fi
3991 else
3992   CC="$ac_cv_prog_CC"
3993 fi
3994
3995 if test -z "$CC"; then
3996           if test -n "$ac_tool_prefix"; then
3997     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}cc; ac_word=$2
3999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4001 if test "${ac_cv_prog_CC+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   if test -n "$CC"; then
4005   ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012   for ac_exec_ext in '' $ac_executable_extensions; do
4013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014     ac_cv_prog_CC="${ac_tool_prefix}cc"
4015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016     break 2
4017   fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026   { echo "$as_me:$LINENO: result: $CC" >&5
4027 echo "${ECHO_T}$CC" >&6; }
4028 else
4029   { echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6; }
4031 fi
4032
4033
4034   fi
4035 fi
4036 if test -z "$CC"; then
4037   # Extract the first word of "cc", so it can be a program name with args.
4038 set dummy cc; ac_word=$2
4039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4041 if test "${ac_cv_prog_CC+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if test -n "$CC"; then
4045   ac_cv_prog_CC="$CC" # Let the user override the test.
4046 else
4047   ac_prog_rejected=no
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4056        ac_prog_rejected=yes
4057        continue
4058      fi
4059     ac_cv_prog_CC="cc"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 if test $ac_prog_rejected = yes; then
4068   # We found a bogon in the path, so make sure we never use it.
4069   set dummy $ac_cv_prog_CC
4070   shift
4071   if test $# != 0; then
4072     # We chose a different compiler from the bogus one.
4073     # However, it has the same basename, so the bogon will be chosen
4074     # first if we set CC to just the basename; use the full file name.
4075     shift
4076     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4077   fi
4078 fi
4079 fi
4080 fi
4081 CC=$ac_cv_prog_CC
4082 if test -n "$CC"; then
4083   { echo "$as_me:$LINENO: result: $CC" >&5
4084 echo "${ECHO_T}$CC" >&6; }
4085 else
4086   { echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6; }
4088 fi
4089
4090
4091 fi
4092 if test -z "$CC"; then
4093   if test -n "$ac_tool_prefix"; then
4094   for ac_prog in cl.exe
4095   do
4096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4100 if test "${ac_cv_prog_CC+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   if test -n "$CC"; then
4104   ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111   for ac_exec_ext in '' $ac_executable_extensions; do
4112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125   { echo "$as_me:$LINENO: result: $CC" >&5
4126 echo "${ECHO_T}$CC" >&6; }
4127 else
4128   { echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6; }
4130 fi
4131
4132
4133     test -n "$CC" && break
4134   done
4135 fi
4136 if test -z "$CC"; then
4137   ac_ct_CC=$CC
4138   for ac_prog in cl.exe
4139 do
4140   # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   if test -n "$ac_ct_CC"; then
4148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157     ac_cv_prog_ac_ct_CC="$ac_prog"
4158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162 done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4170 echo "${ECHO_T}$ac_ct_CC" >&6; }
4171 else
4172   { echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6; }
4174 fi
4175
4176
4177   test -n "$ac_ct_CC" && break
4178 done
4179
4180   if test "x$ac_ct_CC" = x; then
4181     CC=""
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet.  If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&5
4188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4189 whose name does not start with the host triplet.  If you think this
4190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4191 ac_tool_warned=yes ;;
4192 esac
4193     CC=$ac_ct_CC
4194   fi
4195 fi
4196
4197 fi
4198
4199
4200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4201 See \`config.log' for more details." >&5
4202 echo "$as_me: error: no acceptable C compiler found in \$PATH
4203 See \`config.log' for more details." >&2;}
4204    { (exit 1); exit 1; }; }
4205
4206 # Provide some information about the compiler.
4207 echo "$as_me:$LINENO: checking for C compiler version" >&5
4208 ac_compiler=`set X $ac_compile; echo $2`
4209 { (ac_try="$ac_compiler --version >&5"
4210 case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215   (eval "$ac_compiler --version >&5") 2>&5
4216   ac_status=$?
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); }
4219 { (ac_try="$ac_compiler -v >&5"
4220 case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_compiler -v >&5") 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }
4229 { (ac_try="$ac_compiler -V >&5"
4230 case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235   (eval "$ac_compiler -V >&5") 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }
4239
4240 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4241 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4242 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255 #ifndef __GNUC__
4256        choke me
4257 #endif
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4265 case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_compile") 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } && {
4277          test -z "$ac_c_werror_flag" ||
4278          test ! -s conftest.err
4279        } && test -s conftest.$ac_objext; then
4280   ac_compiler_gnu=yes
4281 else
4282   echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285         ac_compiler_gnu=no
4286 fi
4287
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4290
4291 fi
4292 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4293 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4294 GCC=`test $ac_compiler_gnu = yes && echo yes`
4295 ac_test_CFLAGS=${CFLAGS+set}
4296 ac_save_CFLAGS=$CFLAGS
4297 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4298 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_cc_g+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   ac_save_c_werror_flag=$ac_c_werror_flag
4303    ac_c_werror_flag=yes
4304    ac_cv_prog_cc_g=no
4305    CFLAGS="-g"
4306    cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312
4313 int
4314 main ()
4315 {
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4323 case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328   (eval "$ac_compile") 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } && {
4335          test -z "$ac_c_werror_flag" ||
4336          test ! -s conftest.err
4337        } && test -s conftest.$ac_objext; then
4338   ac_cv_prog_cc_g=yes
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343         CFLAGS=""
4344       cat >conftest.$ac_ext <<_ACEOF
4345 /* confdefs.h.  */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366   (eval "$ac_compile") 2>conftest.er1
4367   ac_status=$?
4368   grep -v '^ *+' conftest.er1 >conftest.err
4369   rm -f conftest.er1
4370   cat conftest.err >&5
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); } && {
4373          test -z "$ac_c_werror_flag" ||
4374          test ! -s conftest.err
4375        } && test -s conftest.$ac_objext; then
4376   :
4377 else
4378   echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4380
4381         ac_c_werror_flag=$ac_save_c_werror_flag
4382          CFLAGS="-g"
4383          cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389
4390 int
4391 main ()
4392 {
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4400 case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405   (eval "$ac_compile") 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } && {
4412          test -z "$ac_c_werror_flag" ||
4413          test ! -s conftest.err
4414        } && test -s conftest.$ac_objext; then
4415   ac_cv_prog_cc_g=yes
4416 else
4417   echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420
4421 fi
4422
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 fi
4425
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 fi
4428
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430    ac_c_werror_flag=$ac_save_c_werror_flag
4431 fi
4432 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4433 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4434 if test "$ac_test_CFLAGS" = set; then
4435   CFLAGS=$ac_save_CFLAGS
4436 elif test $ac_cv_prog_cc_g = yes; then
4437   if test "$GCC" = yes; then
4438     CFLAGS="-g -O2"
4439   else
4440     CFLAGS="-g"
4441   fi
4442 else
4443   if test "$GCC" = yes; then
4444     CFLAGS="-O2"
4445   else
4446     CFLAGS=
4447   fi
4448 fi
4449 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4450 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4451 if test "${ac_cv_prog_cc_c89+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   ac_cv_prog_cc_c89=no
4455 ac_save_CC=$CC
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 #include <stdarg.h>
4463 #include <stdio.h>
4464 #include <sys/types.h>
4465 #include <sys/stat.h>
4466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4467 struct buf { int x; };
4468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4469 static char *e (p, i)
4470      char **p;
4471      int i;
4472 {
4473   return p[i];
4474 }
4475 static char *f (char * (*g) (char **, int), char **p, ...)
4476 {
4477   char *s;
4478   va_list v;
4479   va_start (v,p);
4480   s = g (p, va_arg (v,int));
4481   va_end (v);
4482   return s;
4483 }
4484
4485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4486    function prototypes and stuff, but not '\xHH' hex character constants.
4487    These don't provoke an error unfortunately, instead are silently treated
4488    as 'x'.  The following induces an error, until -std is added to get
4489    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4490    array size at least.  It's necessary to write '\x00'==0 to get something
4491    that's true only with -std.  */
4492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4493
4494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4495    inside strings and character constants.  */
4496 #define FOO(x) 'x'
4497 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4498
4499 int test (int i, double x);
4500 struct s1 {int (*f) (int a);};
4501 struct s2 {int (*f) (double a);};
4502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4503 int argc;
4504 char **argv;
4505 int
4506 main ()
4507 {
4508 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4514         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4515 do
4516   CC="$ac_save_CC $ac_arg"
4517   rm -f conftest.$ac_objext
4518 if { (ac_try="$ac_compile"
4519 case "(($ac_try" in
4520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521   *) ac_try_echo=$ac_try;;
4522 esac
4523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524   (eval "$ac_compile") 2>conftest.er1
4525   ac_status=$?
4526   grep -v '^ *+' conftest.er1 >conftest.err
4527   rm -f conftest.er1
4528   cat conftest.err >&5
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } && {
4531          test -z "$ac_c_werror_flag" ||
4532          test ! -s conftest.err
4533        } && test -s conftest.$ac_objext; then
4534   ac_cv_prog_cc_c89=$ac_arg
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539
4540 fi
4541
4542 rm -f core conftest.err conftest.$ac_objext
4543   test "x$ac_cv_prog_cc_c89" != "xno" && break
4544 done
4545 rm -f conftest.$ac_ext
4546 CC=$ac_save_CC
4547
4548 fi
4549 # AC_CACHE_VAL
4550 case "x$ac_cv_prog_cc_c89" in
4551   x)
4552     { echo "$as_me:$LINENO: result: none needed" >&5
4553 echo "${ECHO_T}none needed" >&6; } ;;
4554   xno)
4555     { echo "$as_me:$LINENO: result: unsupported" >&5
4556 echo "${ECHO_T}unsupported" >&6; } ;;
4557   *)
4558     CC="$CC $ac_cv_prog_cc_c89"
4559     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4560 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4561 esac
4562
4563
4564 ac_ext=c
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569
4570 depcc="$CC"   am_compiler_list=
4571
4572 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4573 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4574 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4578   # We make a subdir and do the tests there.  Otherwise we can end up
4579   # making bogus files that we don't know about and never remove.  For
4580   # instance it was reported that on HP-UX the gcc test will end up
4581   # making a dummy file named `D' -- because `-MD' means `put the output
4582   # in D'.
4583   mkdir conftest.dir
4584   # Copy depcomp to subdir because otherwise we won't find it if we're
4585   # using a relative directory.
4586   cp "$am_depcomp" conftest.dir
4587   cd conftest.dir
4588   # We will build objects and dependencies in a subdirectory because
4589   # it helps to detect inapplicable dependency modes.  For instance
4590   # both Tru64's cc and ICC support -MD to output dependencies as a
4591   # side effect of compilation, but ICC will put the dependencies in
4592   # the current directory while Tru64 will put them in the object
4593   # directory.
4594   mkdir sub
4595
4596   am_cv_CC_dependencies_compiler_type=none
4597   if test "$am_compiler_list" = ""; then
4598      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4599   fi
4600   for depmode in $am_compiler_list; do
4601     # Setup a source with many dependencies, because some compilers
4602     # like to wrap large dependency lists on column 80 (with \), and
4603     # we should not choose a depcomp mode which is confused by this.
4604     #
4605     # We need to recreate these files for each test, as the compiler may
4606     # overwrite some of them when testing with obscure command lines.
4607     # This happens at least with the AIX C compiler.
4608     : > sub/conftest.c
4609     for i in 1 2 3 4 5 6; do
4610       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4611       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4612       # Solaris 8's {/usr,}/bin/sh.
4613       touch sub/conftst$i.h
4614     done
4615     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4616
4617     case $depmode in
4618     nosideeffect)
4619       # after this tag, mechanisms are not by side-effect, so they'll
4620       # only be used when explicitly requested
4621       if test "x$enable_dependency_tracking" = xyes; then
4622         continue
4623       else
4624         break
4625       fi
4626       ;;
4627     none) break ;;
4628     esac
4629     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4630     # mode.  It turns out that the SunPro C++ compiler does not properly
4631     # handle `-M -o', and we need to detect this.
4632     if depmode=$depmode \
4633        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4634        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4635        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4636          >/dev/null 2>conftest.err &&
4637        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4638        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4639        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4640        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4641       # icc doesn't choke on unknown options, it will just issue warnings
4642       # or remarks (even with -Werror).  So we grep stderr for any message
4643       # that says an option was ignored or not supported.
4644       # When given -MP, icc 7.0 and 7.1 complain thusly:
4645       #   icc: Command line warning: ignoring option '-M'; no argument required
4646       # The diagnosis changed in icc 8.0:
4647       #   icc: Command line remark: option '-MP' not supported
4648       if (grep 'ignoring option' conftest.err ||
4649           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4650         am_cv_CC_dependencies_compiler_type=$depmode
4651         break
4652       fi
4653     fi
4654   done
4655
4656   cd ..
4657   rm -rf conftest.dir
4658 else
4659   am_cv_CC_dependencies_compiler_type=none
4660 fi
4661
4662 fi
4663 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4664 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4665 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4666
4667  if
4668   test "x$enable_dependency_tracking" != xno \
4669   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4670   am__fastdepCC_TRUE=
4671   am__fastdepCC_FALSE='#'
4672 else
4673   am__fastdepCC_TRUE='#'
4674   am__fastdepCC_FALSE=
4675 fi
4676
4677
4678 # Find a good install program.  We prefer a C program (faster),
4679 # so one script is as good as another.  But avoid the broken or
4680 # incompatible versions:
4681 # SysV /etc/install, /usr/sbin/install
4682 # SunOS /usr/etc/install
4683 # IRIX /sbin/install
4684 # AIX /bin/install
4685 # AmigaOS /C/install, which installs bootblocks on floppy discs
4686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4689 # OS/2's system install, which has a completely different semantic
4690 # ./install, which can be erroneously created by make from ./install.sh.
4691 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4692 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4693 if test -z "$INSTALL"; then
4694 if test "${ac_cv_path_install+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702   # Account for people who put trailing slashes in PATH elements.
4703 case $as_dir/ in
4704   ./ | .// | /cC/* | \
4705   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4706   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4707   /usr/ucb/* ) ;;
4708   *)
4709     # OSF1 and SCO ODT 3.0 have their own names for install.
4710     # Don't use installbsd from OSF since it installs stuff as root
4711     # by default.
4712     for ac_prog in ginstall scoinst install; do
4713       for ac_exec_ext in '' $ac_executable_extensions; do
4714         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4715           if test $ac_prog = install &&
4716             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4717             # AIX install.  It has an incompatible calling convention.
4718             :
4719           elif test $ac_prog = install &&
4720             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4721             # program-specific install script used by HP pwplus--don't use.
4722             :
4723           else
4724             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4725             break 3
4726           fi
4727         fi
4728       done
4729     done
4730     ;;
4731 esac
4732 done
4733 IFS=$as_save_IFS
4734
4735
4736 fi
4737   if test "${ac_cv_path_install+set}" = set; then
4738     INSTALL=$ac_cv_path_install
4739   else
4740     # As a last resort, use the slow shell script.  Don't cache a
4741     # value for INSTALL within a source directory, because that will
4742     # break other packages using the cache if that directory is
4743     # removed, or if the value is a relative name.
4744     INSTALL=$ac_install_sh
4745   fi
4746 fi
4747 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4748 echo "${ECHO_T}$INSTALL" >&6; }
4749
4750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4751 # It thinks the first close brace ends the variable substitution.
4752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4753
4754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4755
4756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4757
4758 # Check whether --enable-shared was given.
4759 if test "${enable_shared+set}" = set; then
4760   enableval=$enable_shared; p=${PACKAGE-default}
4761     case $enableval in
4762     yes) enable_shared=yes ;;
4763     no) enable_shared=no ;;
4764     *)
4765       enable_shared=no
4766       # Look at the argument we got.  We use all the common list separators.
4767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4768       for pkg in $enableval; do
4769         IFS="$lt_save_ifs"
4770         if test "X$pkg" = "X$p"; then
4771           enable_shared=yes
4772         fi
4773       done
4774       IFS="$lt_save_ifs"
4775       ;;
4776     esac
4777 else
4778   enable_shared=yes
4779 fi
4780
4781
4782 # Check whether --enable-static was given.
4783 if test "${enable_static+set}" = set; then
4784   enableval=$enable_static; p=${PACKAGE-default}
4785     case $enableval in
4786     yes) enable_static=yes ;;
4787     no) enable_static=no ;;
4788     *)
4789      enable_static=no
4790       # Look at the argument we got.  We use all the common list separators.
4791       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4792       for pkg in $enableval; do
4793         IFS="$lt_save_ifs"
4794         if test "X$pkg" = "X$p"; then
4795           enable_static=yes
4796         fi
4797       done
4798       IFS="$lt_save_ifs"
4799       ;;
4800     esac
4801 else
4802   enable_static=yes
4803 fi
4804
4805
4806 # Check whether --enable-fast-install was given.
4807 if test "${enable_fast_install+set}" = set; then
4808   enableval=$enable_fast_install; p=${PACKAGE-default}
4809     case $enableval in
4810     yes) enable_fast_install=yes ;;
4811     no) enable_fast_install=no ;;
4812     *)
4813       enable_fast_install=no
4814       # Look at the argument we got.  We use all the common list separators.
4815       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4816       for pkg in $enableval; do
4817         IFS="$lt_save_ifs"
4818         if test "X$pkg" = "X$p"; then
4819           enable_fast_install=yes
4820         fi
4821       done
4822       IFS="$lt_save_ifs"
4823       ;;
4824     esac
4825 else
4826   enable_fast_install=yes
4827 fi
4828
4829
4830 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4831 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4832 if test "${lt_cv_path_SED+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   # Loop through the user's path and test for sed and gsed.
4836 # Then use that list of sed's as ones to test for truncation.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for lt_ac_prog in sed gsed; do
4843     for ac_exec_ext in '' $ac_executable_extensions; do
4844       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4845         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4846       fi
4847     done
4848   done
4849 done
4850 lt_ac_max=0
4851 lt_ac_count=0
4852 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4853 # along with /bin/sed that truncates output.
4854 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4855   test ! -f $lt_ac_sed && continue
4856   cat /dev/null > conftest.in
4857   lt_ac_count=0
4858   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4859   # Check for GNU sed and select it if it is found.
4860   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4861     lt_cv_path_SED=$lt_ac_sed
4862     break
4863   fi
4864   while true; do
4865     cat conftest.in conftest.in >conftest.tmp
4866     mv conftest.tmp conftest.in
4867     cp conftest.in conftest.nl
4868     echo >>conftest.nl
4869     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4870     cmp -s conftest.out conftest.nl || break
4871     # 10000 chars as input seems more than enough
4872     test $lt_ac_count -gt 10 && break
4873     lt_ac_count=`expr $lt_ac_count + 1`
4874     if test $lt_ac_count -gt $lt_ac_max; then
4875       lt_ac_max=$lt_ac_count
4876       lt_cv_path_SED=$lt_ac_sed
4877     fi
4878   done
4879 done
4880
4881 fi
4882
4883 SED=$lt_cv_path_SED
4884 { echo "$as_me:$LINENO: result: $SED" >&5
4885 echo "${ECHO_T}$SED" >&6; }
4886
4887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   # Extract the first word of "grep ggrep" to use in msg output
4893 if test -z "$GREP"; then
4894 set dummy grep ggrep; ac_prog_name=$2
4895 if test "${ac_cv_path_GREP+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   ac_path_GREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_prog in grep ggrep; do
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909     # Check for GNU ac_path_GREP and select it if it is found.
4910   # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4914 *)
4915   ac_count=0
4916   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     echo 'GREP' >> "conftest.nl"
4923     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     ac_count=`expr $ac_count + 1`
4926     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_GREP="$ac_path_GREP"
4929       ac_path_GREP_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937
4938     $ac_path_GREP_found && break 3
4939   done
4940 done
4941
4942 done
4943 IFS=$as_save_IFS
4944
4945
4946 fi
4947
4948 GREP="$ac_cv_path_GREP"
4949 if test -z "$GREP"; then
4950   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4952    { (exit 1); exit 1; }; }
4953 fi
4954
4955 else
4956   ac_cv_path_GREP=$GREP
4957 fi
4958
4959
4960 fi
4961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4963  GREP="$ac_cv_path_GREP"
4964
4965
4966 { echo "$as_me:$LINENO: checking for egrep" >&5
4967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_EGREP+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972    then ac_cv_path_EGREP="$GREP -E"
4973    else
4974      # Extract the first word of "egrep" to use in msg output
4975 if test -z "$EGREP"; then
4976 set dummy egrep; ac_prog_name=$2
4977 if test "${ac_cv_path_EGREP+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   ac_path_EGREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987   for ac_prog in egrep; do
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4990     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4991     # Check for GNU ac_path_EGREP and select it if it is found.
4992   # Check for GNU $ac_path_EGREP
4993 case `"$ac_path_EGREP" --version 2>&1` in
4994 *GNU*)
4995   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4996 *)
4997   ac_count=0
4998   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4999   while :
5000   do
5001     cat "conftest.in" "conftest.in" >"conftest.tmp"
5002     mv "conftest.tmp" "conftest.in"
5003     cp "conftest.in" "conftest.nl"
5004     echo 'EGREP' >> "conftest.nl"
5005     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007     ac_count=`expr $ac_count + 1`
5008     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5009       # Best one so far, save it but keep looking for a better one
5010       ac_cv_path_EGREP="$ac_path_EGREP"
5011       ac_path_EGREP_max=$ac_count
5012     fi
5013     # 10*(2^10) chars as input seems more than enough
5014     test $ac_count -gt 10 && break
5015   done
5016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5018
5019
5020     $ac_path_EGREP_found && break 3
5021   done
5022 done
5023
5024 done
5025 IFS=$as_save_IFS
5026
5027
5028 fi
5029
5030 EGREP="$ac_cv_path_EGREP"
5031 if test -z "$EGREP"; then
5032   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034    { (exit 1); exit 1; }; }
5035 fi
5036
5037 else
5038   ac_cv_path_EGREP=$EGREP
5039 fi
5040
5041
5042    fi
5043 fi
5044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5046  EGREP="$ac_cv_path_EGREP"
5047
5048
5049
5050 # Check whether --with-gnu-ld was given.
5051 if test "${with_gnu_ld+set}" = set; then
5052   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5053 else
5054   with_gnu_ld=no
5055 fi
5056
5057 ac_prog=ld
5058 if test "$GCC" = yes; then
5059   # Check if gcc -print-prog-name=ld gives a path.
5060   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5062   case $host in
5063   *-*-mingw*)
5064     # gcc leaves a trailing carriage return which upsets mingw
5065     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5066   *)
5067     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5068   esac
5069   case $ac_prog in
5070     # Accept absolute paths.
5071     [\\/]* | ?:[\\/]*)
5072       re_direlt='/[^/][^/]*/\.\./'
5073       # Canonicalize the pathname of ld
5074       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5075       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5076         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5077       done
5078       test -z "$LD" && LD="$ac_prog"
5079       ;;
5080   "")
5081     # If it fails, then pretend we aren't using GCC.
5082     ac_prog=ld
5083     ;;
5084   *)
5085     # If it is relative, then search for the first ld in PATH.
5086     with_gnu_ld=unknown
5087     ;;
5088   esac
5089 elif test "$with_gnu_ld" = yes; then
5090   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5092 else
5093   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5095 fi
5096 if test "${lt_cv_path_LD+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   if test -z "$LD"; then
5100   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5101   for ac_dir in $PATH; do
5102     IFS="$lt_save_ifs"
5103     test -z "$ac_dir" && ac_dir=.
5104     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5105       lt_cv_path_LD="$ac_dir/$ac_prog"
5106       # Check to see if the program is GNU ld.  I'd rather use --version,
5107       # but apparently some variants of GNU ld only accept -v.
5108       # Break only if it was the GNU/non-GNU ld that we prefer.
5109       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5110       *GNU* | *'with BFD'*)
5111         test "$with_gnu_ld" != no && break
5112         ;;
5113       *)
5114         test "$with_gnu_ld" != yes && break
5115         ;;
5116       esac
5117     fi
5118   done
5119   IFS="$lt_save_ifs"
5120 else
5121   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5122 fi
5123 fi
5124
5125 LD="$lt_cv_path_LD"
5126 if test -n "$LD"; then
5127   { echo "$as_me:$LINENO: result: $LD" >&5
5128 echo "${ECHO_T}$LD" >&6; }
5129 else
5130   { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5132 fi
5133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5135    { (exit 1); exit 1; }; }
5136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5142 case `$LD -v 2>&1 </dev/null` in
5143 *GNU* | *'with BFD'*)
5144   lt_cv_prog_gnu_ld=yes
5145   ;;
5146 *)
5147   lt_cv_prog_gnu_ld=no
5148   ;;
5149 esac
5150 fi
5151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5153 with_gnu_ld=$lt_cv_prog_gnu_ld
5154
5155
5156 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5157 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5158 if test "${lt_cv_ld_reload_flag+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   lt_cv_ld_reload_flag='-r'
5162 fi
5163 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5164 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5165 reload_flag=$lt_cv_ld_reload_flag
5166 case $reload_flag in
5167 "" | " "*) ;;
5168 *) reload_flag=" $reload_flag" ;;
5169 esac
5170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5171 case $host_os in
5172   darwin*)
5173     if test "$GCC" = yes; then
5174       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5175     else
5176       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5177     fi
5178     ;;
5179 esac
5180
5181 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5182 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5183 if test "${lt_cv_path_NM+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   if test -n "$NM"; then
5187   # Let the user override the test.
5188   lt_cv_path_NM="$NM"
5189 else
5190   lt_nm_to_check="${ac_tool_prefix}nm"
5191   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5192     lt_nm_to_check="$lt_nm_to_check nm"
5193   fi
5194   for lt_tmp_nm in $lt_nm_to_check; do
5195     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5196     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5197       IFS="$lt_save_ifs"
5198       test -z "$ac_dir" && ac_dir=.
5199       tmp_nm="$ac_dir/$lt_tmp_nm"
5200       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5201         # Check to see if the nm accepts a BSD-compat flag.
5202         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5203         #   nm: unknown option "B" ignored
5204         # Tru64's nm complains that /dev/null is an invalid object file
5205         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5206         */dev/null* | *'Invalid file or object type'*)
5207           lt_cv_path_NM="$tmp_nm -B"
5208           break
5209           ;;
5210         *)
5211           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5212           */dev/null*)
5213             lt_cv_path_NM="$tmp_nm -p"
5214             break
5215             ;;
5216           *)
5217             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5218             continue # so that we can try to find one that supports BSD flags
5219             ;;
5220           esac
5221           ;;
5222         esac
5223       fi
5224     done
5225     IFS="$lt_save_ifs"
5226   done
5227   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5228 fi
5229 fi
5230 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5231 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5232 NM="$lt_cv_path_NM"
5233
5234 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5235 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5236 LN_S=$as_ln_s
5237 if test "$LN_S" = "ln -s"; then
5238   { echo "$as_me:$LINENO: result: yes" >&5
5239 echo "${ECHO_T}yes" >&6; }
5240 else
5241   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5242 echo "${ECHO_T}no, using $LN_S" >&6; }
5243 fi
5244
5245 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5246 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5247 if test "${lt_cv_deplibs_check_method+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   lt_cv_file_magic_cmd='$MAGIC_CMD'
5251 lt_cv_file_magic_test_file=
5252 lt_cv_deplibs_check_method='unknown'
5253 # Need to set the preceding variable on all platforms that support
5254 # interlibrary dependencies.
5255 # 'none' -- dependencies not supported.
5256 # `unknown' -- same as none, but documents that we really don't know.
5257 # 'pass_all' -- all dependencies passed with no checks.
5258 # 'test_compile' -- check by making test program.
5259 # 'file_magic [[regex]]' -- check by looking for files in library path
5260 # which responds to the $file_magic_cmd with a given extended regex.
5261 # If you have `file' or equivalent on your system and you're not sure
5262 # whether `pass_all' will *always* work, you probably want this one.
5263
5264 case $host_os in
5265 aix4* | aix5*)
5266   lt_cv_deplibs_check_method=pass_all
5267   ;;
5268
5269 beos*)
5270   lt_cv_deplibs_check_method=pass_all
5271   ;;
5272
5273 bsdi[45]*)
5274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5275   lt_cv_file_magic_cmd='/usr/bin/file -L'
5276   lt_cv_file_magic_test_file=/shlib/libc.so
5277   ;;
5278
5279 cygwin*)
5280   # func_win32_libid is a shell function defined in ltmain.sh
5281   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5282   lt_cv_file_magic_cmd='func_win32_libid'
5283   ;;
5284
5285 mingw* | pw32*)
5286   # Base MSYS/MinGW do not provide the 'file' command needed by
5287   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5288   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5289   lt_cv_file_magic_cmd='$OBJDUMP -f'
5290   ;;
5291
5292 darwin* | rhapsody*)
5293   lt_cv_deplibs_check_method=pass_all
5294   ;;
5295
5296 freebsd* | dragonfly*)
5297   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5298     case $host_cpu in
5299     i*86 )
5300       # Not sure whether the presence of OpenBSD here was a mistake.
5301       # Let's accept both of them until this is cleared up.
5302       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5303       lt_cv_file_magic_cmd=/usr/bin/file
5304       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5305       ;;
5306     esac
5307   else
5308     lt_cv_deplibs_check_method=pass_all
5309   fi
5310   ;;
5311
5312 gnu*)
5313   lt_cv_deplibs_check_method=pass_all
5314   ;;
5315
5316 hpux10.20* | hpux11*)
5317   lt_cv_file_magic_cmd=/usr/bin/file
5318   case $host_cpu in
5319   ia64*)
5320     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5321     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5322     ;;
5323   hppa*64*)
5324     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]'
5325     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5326     ;;
5327   *)
5328     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5329     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5330     ;;
5331   esac
5332   ;;
5333
5334 interix3*)
5335   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5336   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5337   ;;
5338
5339 irix5* | irix6* | nonstopux*)
5340   case $LD in
5341   *-32|*"-32 ") libmagic=32-bit;;
5342   *-n32|*"-n32 ") libmagic=N32;;
5343   *-64|*"-64 ") libmagic=64-bit;;
5344   *) libmagic=never-match;;
5345   esac
5346   lt_cv_deplibs_check_method=pass_all
5347   ;;
5348
5349 # This must be Linux ELF.
5350 linux* | k*bsd*-gnu)
5351   lt_cv_deplibs_check_method=pass_all
5352   ;;
5353
5354 netbsd* | netbsdelf*-gnu)
5355   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5357   else
5358     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5359   fi
5360   ;;
5361
5362 newos6*)
5363   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5364   lt_cv_file_magic_cmd=/usr/bin/file
5365   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5366   ;;
5367
5368 nto-qnx*)
5369   lt_cv_deplibs_check_method=unknown
5370   ;;
5371
5372 openbsd*)
5373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5375   else
5376     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5377   fi
5378   ;;
5379
5380 osf3* | osf4* | osf5*)
5381   lt_cv_deplibs_check_method=pass_all
5382   ;;
5383
5384 solaris*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387
5388 sysv4 | sysv4.3*)
5389   case $host_vendor in
5390   motorola)
5391     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]'
5392     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5393     ;;
5394   ncr)
5395     lt_cv_deplibs_check_method=pass_all
5396     ;;
5397   sequent)
5398     lt_cv_file_magic_cmd='/bin/file'
5399     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5400     ;;
5401   sni)
5402     lt_cv_file_magic_cmd='/bin/file'
5403     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5404     lt_cv_file_magic_test_file=/lib/libc.so
5405     ;;
5406   siemens)
5407     lt_cv_deplibs_check_method=pass_all
5408     ;;
5409   pc)
5410     lt_cv_deplibs_check_method=pass_all
5411     ;;
5412   esac
5413   ;;
5414
5415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5416   lt_cv_deplibs_check_method=pass_all
5417   ;;
5418 esac
5419
5420 fi
5421 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5422 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5423 file_magic_cmd=$lt_cv_file_magic_cmd
5424 deplibs_check_method=$lt_cv_deplibs_check_method
5425 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5426
5427
5428
5429
5430 # If no C compiler was specified, use CC.
5431 LTCC=${LTCC-"$CC"}
5432
5433 # If no C compiler flags were specified, use CFLAGS.
5434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5435
5436 # Allow CC to be a program name with arguments.
5437 compiler=$CC
5438
5439
5440 # Check whether --enable-libtool-lock was given.
5441 if test "${enable_libtool_lock+set}" = set; then
5442   enableval=$enable_libtool_lock;
5443 fi
5444
5445 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5446
5447 # Some flags need to be propagated to the compiler or linker for good
5448 # libtool support.
5449 case $host in
5450 ia64-*-hpux*)
5451   # Find out which ABI we are using.
5452   echo 'int i;' > conftest.$ac_ext
5453   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454   (eval $ac_compile) 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }; then
5458     case `/usr/bin/file conftest.$ac_objext` in
5459     *ELF-32*)
5460       HPUX_IA64_MODE="32"
5461       ;;
5462     *ELF-64*)
5463       HPUX_IA64_MODE="64"
5464       ;;
5465     esac
5466   fi
5467   rm -rf conftest*
5468   ;;
5469 *-*-irix6*)
5470   # Find out which ABI we are using.
5471   echo '#line 5471 "configure"' > conftest.$ac_ext
5472   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473   (eval $ac_compile) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; then
5477    if test "$lt_cv_prog_gnu_ld" = yes; then
5478     case `/usr/bin/file conftest.$ac_objext` in
5479     *32-bit*)
5480       LD="${LD-ld} -melf32bsmip"
5481       ;;
5482     *N32*)
5483       LD="${LD-ld} -melf32bmipn32"
5484       ;;
5485     *64-bit*)
5486       LD="${LD-ld} -melf64bmip"
5487       ;;
5488     esac
5489    else
5490     case `/usr/bin/file conftest.$ac_objext` in
5491     *32-bit*)
5492       LD="${LD-ld} -32"
5493       ;;
5494     *N32*)
5495       LD="${LD-ld} -n32"
5496       ;;
5497     *64-bit*)
5498       LD="${LD-ld} -64"
5499       ;;
5500     esac
5501    fi
5502   fi
5503   rm -rf conftest*
5504   ;;
5505
5506 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5507   # Find out which ABI we are using.
5508   echo 'int i;' > conftest.$ac_ext
5509   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510   (eval $ac_compile) 2>&5
5511   ac_status=$?
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); }; then
5514     case `/usr/bin/file conftest.o` in
5515     *32-bit*)
5516       case $host in
5517         x86_64-*linux*)
5518           LD="${LD-ld} -m elf_i386"
5519           ;;
5520         ppc64-*linux*|powerpc64-*linux*)
5521           LD="${LD-ld} -m elf32ppclinux"
5522           ;;
5523         s390x-*linux*)
5524           LD="${LD-ld} -m elf_s390"
5525           ;;
5526         sparc64-*linux*)
5527           LD="${LD-ld} -m elf32_sparc"
5528           ;;
5529       esac
5530       ;;
5531     *64-bit*)
5532       case $host in
5533         x86_64-*linux*)
5534           LD="${LD-ld} -m elf_x86_64"
5535           ;;
5536         ppc*-*linux*|powerpc*-*linux*)
5537           LD="${LD-ld} -m elf64ppc"
5538           ;;
5539         s390*-*linux*)
5540           LD="${LD-ld} -m elf64_s390"
5541           ;;
5542         sparc*-*linux*)
5543           LD="${LD-ld} -m elf64_sparc"
5544           ;;
5545       esac
5546       ;;
5547     esac
5548   fi
5549   rm -rf conftest*
5550   ;;
5551
5552 *-*-sco3.2v5*)
5553   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5554   SAVE_CFLAGS="$CFLAGS"
5555   CFLAGS="$CFLAGS -belf"
5556   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5557 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5558 if test "${lt_cv_cc_needs_belf+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   ac_ext=c
5562 ac_cpp='$CPP $CPPFLAGS'
5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566
5567      cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h.  */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h.  */
5573
5574 int
5575 main ()
5576 {
5577
5578   ;
5579   return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5584 case "(($ac_try" in
5585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586   *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589   (eval "$ac_link") 2>conftest.er1
5590   ac_status=$?
5591   grep -v '^ *+' conftest.er1 >conftest.err
5592   rm -f conftest.er1
5593   cat conftest.err >&5
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } && {
5596          test -z "$ac_c_werror_flag" ||
5597          test ! -s conftest.err
5598        } && test -s conftest$ac_exeext &&
5599        $as_test_x conftest$ac_exeext; then
5600   lt_cv_cc_needs_belf=yes
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605         lt_cv_cc_needs_belf=no
5606 fi
5607
5608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5609       conftest$ac_exeext conftest.$ac_ext
5610      ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615
5616 fi
5617 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5618 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5619   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5620     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5621     CFLAGS="$SAVE_CFLAGS"
5622   fi
5623   ;;
5624 sparc*-*solaris*)
5625   # Find out which ABI we are using.
5626   echo 'int i;' > conftest.$ac_ext
5627   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628   (eval $ac_compile) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; then
5632     case `/usr/bin/file conftest.o` in
5633     *64-bit*)
5634       case $lt_cv_prog_gnu_ld in
5635       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5636       *)    LD="${LD-ld} -64" ;;
5637       esac
5638       ;;
5639     esac
5640   fi
5641   rm -rf conftest*
5642   ;;
5643
5644
5645 esac
5646
5647 need_locks="$enable_libtool_lock"
5648
5649
5650
5651 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5653 if test "${ac_cv_header_stdc+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662 #include <stdlib.h>
5663 #include <stdarg.h>
5664 #include <string.h>
5665 #include <float.h>
5666
5667 int
5668 main ()
5669 {
5670
5671   ;
5672   return 0;
5673 }
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5677 case "(($ac_try" in
5678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679   *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682   (eval "$ac_compile") 2>conftest.er1
5683   ac_status=$?
5684   grep -v '^ *+' conftest.er1 >conftest.err
5685   rm -f conftest.er1
5686   cat conftest.err >&5
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); } && {
5689          test -z "$ac_c_werror_flag" ||
5690          test ! -s conftest.err
5691        } && test -s conftest.$ac_objext; then
5692   ac_cv_header_stdc=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697         ac_cv_header_stdc=no
5698 fi
5699
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
5702 if test $ac_cv_header_stdc = yes; then
5703   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704   cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710 #include <string.h>
5711
5712 _ACEOF
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714   $EGREP "memchr" >/dev/null 2>&1; then
5715   :
5716 else
5717   ac_cv_header_stdc=no
5718 fi
5719 rm -f conftest*
5720
5721 fi
5722
5723 if test $ac_cv_header_stdc = yes; then
5724   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5725   cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 #include <stdlib.h>
5732
5733 _ACEOF
5734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5735   $EGREP "free" >/dev/null 2>&1; then
5736   :
5737 else
5738   ac_cv_header_stdc=no
5739 fi
5740 rm -f conftest*
5741
5742 fi
5743
5744 if test $ac_cv_header_stdc = yes; then
5745   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5746   if test "$cross_compiling" = yes; then
5747   :
5748 else
5749   cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755 #include <ctype.h>
5756 #include <stdlib.h>
5757 #if ((' ' & 0x0FF) == 0x020)
5758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5760 #else
5761 # define ISLOWER(c) \
5762                    (('a' <= (c) && (c) <= 'i') \
5763                      || ('j' <= (c) && (c) <= 'r') \
5764                      || ('s' <= (c) && (c) <= 'z'))
5765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5766 #endif
5767
5768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5769 int
5770 main ()
5771 {
5772   int i;
5773   for (i = 0; i < 256; i++)
5774     if (XOR (islower (i), ISLOWER (i))
5775         || toupper (i) != TOUPPER (i))
5776       return 2;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest$ac_exeext
5781 if { (ac_try="$ac_link"
5782 case "(($ac_try" in
5783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784   *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787   (eval "$ac_link") 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5791   { (case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_try") 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; }; then
5800   :
5801 else
5802   echo "$as_me: program exited with status $ac_status" >&5
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ( exit $ac_status )
5807 ac_cv_header_stdc=no
5808 fi
5809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5810 fi
5811
5812
5813 fi
5814 fi
5815 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5816 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5817 if test $ac_cv_header_stdc = yes; then
5818
5819 cat >>confdefs.h <<\_ACEOF
5820 #define STDC_HEADERS 1
5821 _ACEOF
5822
5823 fi
5824
5825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5836                   inttypes.h stdint.h unistd.h
5837 do
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h.  */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h.  */
5850 $ac_includes_default
5851
5852 #include <$ac_header>
5853 _ACEOF
5854 rm -f conftest.$ac_objext
5855 if { (ac_try="$ac_compile"
5856 case "(($ac_try" in
5857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858   *) ac_try_echo=$ac_try;;
5859 esac
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861   (eval "$ac_compile") 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } && {
5868          test -z "$ac_c_werror_flag" ||
5869          test ! -s conftest.err
5870        } && test -s conftest.$ac_objext; then
5871   eval "$as_ac_Header=yes"
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876         eval "$as_ac_Header=no"
5877 fi
5878
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 ac_res=`eval echo '${'$as_ac_Header'}'`
5882                { echo "$as_me:$LINENO: result: $ac_res" >&5
5883 echo "${ECHO_T}$ac_res" >&6; }
5884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5885   cat >>confdefs.h <<_ACEOF
5886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887 _ACEOF
5888
5889 fi
5890
5891 done
5892
5893
5894
5895 for ac_header in dlfcn.h
5896 do
5897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5899   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 fi
5904 ac_res=`eval echo '${'$as_ac_Header'}'`
5905                { echo "$as_me:$LINENO: result: $ac_res" >&5
5906 echo "${ECHO_T}$ac_res" >&6; }
5907 else
5908   # Is the header compilable?
5909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h.  */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h.  */
5917 $ac_includes_default
5918 #include <$ac_header>
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5922 case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927   (eval "$ac_compile") 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } && {
5934          test -z "$ac_c_werror_flag" ||
5935          test ! -s conftest.err
5936        } && test -s conftest.$ac_objext; then
5937   ac_header_compiler=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942         ac_header_compiler=no
5943 fi
5944
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5947 echo "${ECHO_T}$ac_header_compiler" >&6; }
5948
5949 # Is the header present?
5950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5958 #include <$ac_header>
5959 _ACEOF
5960 if { (ac_try="$ac_cpp conftest.$ac_ext"
5961 case "(($ac_try" in
5962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963   *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5967   ac_status=$?
5968   grep -v '^ *+' conftest.er1 >conftest.err
5969   rm -f conftest.er1
5970   cat conftest.err >&5
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } >/dev/null && {
5973          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5974          test ! -s conftest.err
5975        }; then
5976   ac_header_preproc=yes
5977 else
5978   echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5980
5981   ac_header_preproc=no
5982 fi
5983
5984 rm -f conftest.err conftest.$ac_ext
5985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5986 echo "${ECHO_T}$ac_header_preproc" >&6; }
5987
5988 # So?  What about this header?
5989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5990   yes:no: )
5991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5995     ac_header_preproc=yes
5996     ;;
5997   no:yes:* )
5998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6010
6011     ;;
6012 esac
6013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   eval "$as_ac_Header=\$ac_header_preproc"
6019 fi
6020 ac_res=`eval echo '${'$as_ac_Header'}'`
6021                { echo "$as_me:$LINENO: result: $ac_res" >&5
6022 echo "${ECHO_T}$ac_res" >&6; }
6023
6024 fi
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026   cat >>confdefs.h <<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6028 _ACEOF
6029
6030 fi
6031
6032 done
6033
6034 ac_ext=cpp
6035 ac_cpp='$CXXCPP $CPPFLAGS'
6036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039 if test -z "$CXX"; then
6040   if test -n "$CCC"; then
6041     CXX=$CCC
6042   else
6043     if test -n "$ac_tool_prefix"; then
6044   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6045   do
6046     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_CXX+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   if test -n "$CXX"; then
6054   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 CXX=$ac_cv_prog_CXX
6074 if test -n "$CXX"; then
6075   { echo "$as_me:$LINENO: result: $CXX" >&5
6076 echo "${ECHO_T}$CXX" >&6; }
6077 else
6078   { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6080 fi
6081
6082
6083     test -n "$CXX" && break
6084   done
6085 fi
6086 if test -z "$CXX"; then
6087   ac_ct_CXX=$CXX
6088   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6089 do
6090   # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   if test -n "$ac_ct_CXX"; then
6098   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_prog_ac_ct_CXX="$ac_prog"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6118 if test -n "$ac_ct_CXX"; then
6119   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6120 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6124 fi
6125
6126
6127   test -n "$ac_ct_CXX" && break
6128 done
6129
6130   if test "x$ac_ct_CXX" = x; then
6131     CXX="g++"
6132   else
6133     case $cross_compiling:$ac_tool_warned in
6134 yes:)
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet.  If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet.  If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6142 esac
6143     CXX=$ac_ct_CXX
6144   fi
6145 fi
6146
6147   fi
6148 fi
6149 # Provide some information about the compiler.
6150 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6151 ac_compiler=`set X $ac_compile; echo $2`
6152 { (ac_try="$ac_compiler --version >&5"
6153 case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158   (eval "$ac_compiler --version >&5") 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }
6162 { (ac_try="$ac_compiler -v >&5"
6163 case "(($ac_try" in
6164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165   *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168   (eval "$ac_compiler -v >&5") 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }
6172 { (ac_try="$ac_compiler -V >&5"
6173 case "(($ac_try" in
6174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175   *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178   (eval "$ac_compiler -V >&5") 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }
6182
6183 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6184 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6185 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194
6195 int
6196 main ()
6197 {
6198 #ifndef __GNUC__
6199        choke me
6200 #endif
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_compile") 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } && {
6220          test -z "$ac_cxx_werror_flag" ||
6221          test ! -s conftest.err
6222        } && test -s conftest.$ac_objext; then
6223   ac_compiler_gnu=yes
6224 else
6225   echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228         ac_compiler_gnu=no
6229 fi
6230
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6233
6234 fi
6235 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6236 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6237 GXX=`test $ac_compiler_gnu = yes && echo yes`
6238 ac_test_CXXFLAGS=${CXXFLAGS+set}
6239 ac_save_CXXFLAGS=$CXXFLAGS
6240 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6241 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6242 if test "${ac_cv_prog_cxx_g+set}" = set; then
6243   echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6246    ac_cxx_werror_flag=yes
6247    ac_cv_prog_cxx_g=no
6248    CXXFLAGS="-g"
6249    cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h.  */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h.  */
6255
6256 int
6257 main ()
6258 {
6259
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (ac_try="$ac_compile"
6266 case "(($ac_try" in
6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268   *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271   (eval "$ac_compile") 2>conftest.er1
6272   ac_status=$?
6273   grep -v '^ *+' conftest.er1 >conftest.err
6274   rm -f conftest.er1
6275   cat conftest.err >&5
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); } && {
6278          test -z "$ac_cxx_werror_flag" ||
6279          test ! -s conftest.err
6280        } && test -s conftest.$ac_objext; then
6281   ac_cv_prog_cxx_g=yes
6282 else
6283   echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286         CXXFLAGS=""
6287       cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293
6294 int
6295 main ()
6296 {
6297
6298   ;
6299   return 0;
6300 }
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_compile") 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } && {
6316          test -z "$ac_cxx_werror_flag" ||
6317          test ! -s conftest.err
6318        } && test -s conftest.$ac_objext; then
6319   :
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6325          CXXFLAGS="-g"
6326          cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332
6333 int
6334 main ()
6335 {
6336
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6343 case "(($ac_try" in
6344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345   *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348   (eval "$ac_compile") 2>conftest.er1
6349   ac_status=$?
6350   grep -v '^ *+' conftest.er1 >conftest.err
6351   rm -f conftest.er1
6352   cat conftest.err >&5
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } && {
6355          test -z "$ac_cxx_werror_flag" ||
6356          test ! -s conftest.err
6357        } && test -s conftest.$ac_objext; then
6358   ac_cv_prog_cxx_g=yes
6359 else
6360   echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363
6364 fi
6365
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 fi
6368
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 fi
6371
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6374 fi
6375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6376 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6377 if test "$ac_test_CXXFLAGS" = set; then
6378   CXXFLAGS=$ac_save_CXXFLAGS
6379 elif test $ac_cv_prog_cxx_g = yes; then
6380   if test "$GXX" = yes; then
6381     CXXFLAGS="-g -O2"
6382   else
6383     CXXFLAGS="-g"
6384   fi
6385 else
6386   if test "$GXX" = yes; then
6387     CXXFLAGS="-O2"
6388   else
6389     CXXFLAGS=
6390   fi
6391 fi
6392 ac_ext=cpp
6393 ac_cpp='$CXXCPP $CPPFLAGS'
6394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6397
6398 depcc="$CXX"  am_compiler_list=
6399
6400 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6401 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6402 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6406   # We make a subdir and do the tests there.  Otherwise we can end up
6407   # making bogus files that we don't know about and never remove.  For
6408   # instance it was reported that on HP-UX the gcc test will end up
6409   # making a dummy file named `D' -- because `-MD' means `put the output
6410   # in D'.
6411   mkdir conftest.dir
6412   # Copy depcomp to subdir because otherwise we won't find it if we're
6413   # using a relative directory.
6414   cp "$am_depcomp" conftest.dir
6415   cd conftest.dir
6416   # We will build objects and dependencies in a subdirectory because
6417   # it helps to detect inapplicable dependency modes.  For instance
6418   # both Tru64's cc and ICC support -MD to output dependencies as a
6419   # side effect of compilation, but ICC will put the dependencies in
6420   # the current directory while Tru64 will put them in the object
6421   # directory.
6422   mkdir sub
6423
6424   am_cv_CXX_dependencies_compiler_type=none
6425   if test "$am_compiler_list" = ""; then
6426      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6427   fi
6428   for depmode in $am_compiler_list; do
6429     # Setup a source with many dependencies, because some compilers
6430     # like to wrap large dependency lists on column 80 (with \), and
6431     # we should not choose a depcomp mode which is confused by this.
6432     #
6433     # We need to recreate these files for each test, as the compiler may
6434     # overwrite some of them when testing with obscure command lines.
6435     # This happens at least with the AIX C compiler.
6436     : > sub/conftest.c
6437     for i in 1 2 3 4 5 6; do
6438       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440       # Solaris 8's {/usr,}/bin/sh.
6441       touch sub/conftst$i.h
6442     done
6443     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6444
6445     case $depmode in
6446     nosideeffect)
6447       # after this tag, mechanisms are not by side-effect, so they'll
6448       # only be used when explicitly requested
6449       if test "x$enable_dependency_tracking" = xyes; then
6450         continue
6451       else
6452         break
6453       fi
6454       ;;
6455     none) break ;;
6456     esac
6457     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6458     # mode.  It turns out that the SunPro C++ compiler does not properly
6459     # handle `-M -o', and we need to detect this.
6460     if depmode=$depmode \
6461        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6462        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6463        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6464          >/dev/null 2>conftest.err &&
6465        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6466        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6467        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6468        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6469       # icc doesn't choke on unknown options, it will just issue warnings
6470       # or remarks (even with -Werror).  So we grep stderr for any message
6471       # that says an option was ignored or not supported.
6472       # When given -MP, icc 7.0 and 7.1 complain thusly:
6473       #   icc: Command line warning: ignoring option '-M'; no argument required
6474       # The diagnosis changed in icc 8.0:
6475       #   icc: Command line remark: option '-MP' not supported
6476       if (grep 'ignoring option' conftest.err ||
6477           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6478         am_cv_CXX_dependencies_compiler_type=$depmode
6479         break
6480       fi
6481     fi
6482   done
6483
6484   cd ..
6485   rm -rf conftest.dir
6486 else
6487   am_cv_CXX_dependencies_compiler_type=none
6488 fi
6489
6490 fi
6491 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6492 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6493 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6494
6495  if
6496   test "x$enable_dependency_tracking" != xno \
6497   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6498   am__fastdepCXX_TRUE=
6499   am__fastdepCXX_FALSE='#'
6500 else
6501   am__fastdepCXX_TRUE='#'
6502   am__fastdepCXX_FALSE=
6503 fi
6504
6505
6506
6507
6508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6509     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6510     (test "X$CXX" != "Xg++"))) ; then
6511   ac_ext=cpp
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6516 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6517 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6518 if test -z "$CXXCPP"; then
6519   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522       # Double quotes because CXXCPP needs to be expanded
6523     for CXXCPP in "$CXX -E" "/lib/cpp"
6524     do
6525       ac_preproc_ok=false
6526 for ac_cxx_preproc_warn_flag in '' yes
6527 do
6528   # Use a header file that comes with gcc, so configuring glibc
6529   # with a fresh cross-compiler works.
6530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6531   # <limits.h> exists even on freestanding compilers.
6532   # On the NeXT, cc -E runs the code through the compiler's parser,
6533   # not just through cpp. "Syntax error" is here to catch this case.
6534   cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540 #ifdef __STDC__
6541 # include <limits.h>
6542 #else
6543 # include <assert.h>
6544 #endif
6545                      Syntax error
6546 _ACEOF
6547 if { (ac_try="$ac_cpp conftest.$ac_ext"
6548 case "(($ac_try" in
6549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550   *) ac_try_echo=$ac_try;;
6551 esac
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } >/dev/null && {
6560          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6561          test ! -s conftest.err
6562        }; then
6563   :
6564 else
6565   echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6567
6568   # Broken: fails on valid input.
6569 continue
6570 fi
6571
6572 rm -f conftest.err conftest.$ac_ext
6573
6574   # OK, works on sane cases.  Now check whether nonexistent headers
6575   # can be detected and how.
6576   cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582 #include <ac_nonexistent.h>
6583 _ACEOF
6584 if { (ac_try="$ac_cpp conftest.$ac_ext"
6585 case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } >/dev/null && {
6597          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6598          test ! -s conftest.err
6599        }; then
6600   # Broken: success on invalid input.
6601 continue
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606   # Passes both tests.
6607 ac_preproc_ok=:
6608 break
6609 fi
6610
6611 rm -f conftest.err conftest.$ac_ext
6612
6613 done
6614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6615 rm -f conftest.err conftest.$ac_ext
6616 if $ac_preproc_ok; then
6617   break
6618 fi
6619
6620     done
6621     ac_cv_prog_CXXCPP=$CXXCPP
6622
6623 fi
6624   CXXCPP=$ac_cv_prog_CXXCPP
6625 else
6626   ac_cv_prog_CXXCPP=$CXXCPP
6627 fi
6628 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6629 echo "${ECHO_T}$CXXCPP" >&6; }
6630 ac_preproc_ok=false
6631 for ac_cxx_preproc_warn_flag in '' yes
6632 do
6633   # Use a header file that comes with gcc, so configuring glibc
6634   # with a fresh cross-compiler works.
6635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6636   # <limits.h> exists even on freestanding compilers.
6637   # On the NeXT, cc -E runs the code through the compiler's parser,
6638   # not just through cpp. "Syntax error" is here to catch this case.
6639   cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645 #ifdef __STDC__
6646 # include <limits.h>
6647 #else
6648 # include <assert.h>
6649 #endif
6650                      Syntax error
6651 _ACEOF
6652 if { (ac_try="$ac_cpp conftest.$ac_ext"
6653 case "(($ac_try" in
6654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655   *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6659   ac_status=$?
6660   grep -v '^ *+' conftest.er1 >conftest.err
6661   rm -f conftest.er1
6662   cat conftest.err >&5
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); } >/dev/null && {
6665          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6666          test ! -s conftest.err
6667        }; then
6668   :
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673   # Broken: fails on valid input.
6674 continue
6675 fi
6676
6677 rm -f conftest.err conftest.$ac_ext
6678
6679   # OK, works on sane cases.  Now check whether nonexistent headers
6680   # can be detected and how.
6681   cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h.  */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h.  */
6687 #include <ac_nonexistent.h>
6688 _ACEOF
6689 if { (ac_try="$ac_cpp conftest.$ac_ext"
6690 case "(($ac_try" in
6691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692   *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6696   ac_status=$?
6697   grep -v '^ *+' conftest.er1 >conftest.err
6698   rm -f conftest.er1
6699   cat conftest.err >&5
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } >/dev/null && {
6702          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6703          test ! -s conftest.err
6704        }; then
6705   # Broken: success on invalid input.
6706 continue
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711   # Passes both tests.
6712 ac_preproc_ok=:
6713 break
6714 fi
6715
6716 rm -f conftest.err conftest.$ac_ext
6717
6718 done
6719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6720 rm -f conftest.err conftest.$ac_ext
6721 if $ac_preproc_ok; then
6722   :
6723 else
6724   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6725 See \`config.log' for more details." >&5
6726 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6727 See \`config.log' for more details." >&2;}
6728    { (exit 1); exit 1; }; }
6729 fi
6730
6731 ac_ext=cpp
6732 ac_cpp='$CXXCPP $CPPFLAGS'
6733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6736
6737 fi
6738
6739
6740 ac_ext=f
6741 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6742 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6744 if test -n "$ac_tool_prefix"; then
6745   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
6746   do
6747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_prog_F77+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   if test -n "$F77"; then
6755   ac_cv_prog_F77="$F77" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 F77=$ac_cv_prog_F77
6775 if test -n "$F77"; then
6776   { echo "$as_me:$LINENO: result: $F77" >&5
6777 echo "${ECHO_T}$F77" >&6; }
6778 else
6779   { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6781 fi
6782
6783
6784     test -n "$F77" && break
6785   done
6786 fi
6787 if test -z "$F77"; then
6788   ac_ct_F77=$F77
6789   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
6790 do
6791   # Extract the first word of "$ac_prog", so it can be a program name with args.
6792 set dummy $ac_prog; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   if test -n "$ac_ct_F77"; then
6799   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806   for ac_exec_ext in '' $ac_executable_extensions; do
6807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808     ac_cv_prog_ac_ct_F77="$ac_prog"
6809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6819 if test -n "$ac_ct_F77"; then
6820   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6821 echo "${ECHO_T}$ac_ct_F77" >&6; }
6822 else
6823   { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6825 fi
6826
6827
6828   test -n "$ac_ct_F77" && break
6829 done
6830
6831   if test "x$ac_ct_F77" = x; then
6832     F77=""
6833   else
6834     case $cross_compiling:$ac_tool_warned in
6835 yes:)
6836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6837 whose name does not start with the host triplet.  If you think this
6838 configuration is useful to you, please write to autoconf@gnu.org." >&5
6839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet.  If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6842 ac_tool_warned=yes ;;
6843 esac
6844     F77=$ac_ct_F77
6845   fi
6846 fi
6847
6848
6849 # Provide some information about the compiler.
6850 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6851 ac_compiler=`set X $ac_compile; echo $2`
6852 { (ac_try="$ac_compiler --version >&5"
6853 case "(($ac_try" in
6854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855   *) ac_try_echo=$ac_try;;
6856 esac
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858   (eval "$ac_compiler --version >&5") 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }
6862 { (ac_try="$ac_compiler -v >&5"
6863 case "(($ac_try" in
6864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865   *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868   (eval "$ac_compiler -v >&5") 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }
6872 { (ac_try="$ac_compiler -V >&5"
6873 case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878   (eval "$ac_compiler -V >&5") 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }
6882 rm -f a.out
6883
6884 # If we don't use `.F' as extension, the preprocessor is not run on the
6885 # input file.  (Note that this only needs to work for GNU compilers.)
6886 ac_save_ext=$ac_ext
6887 ac_ext=F
6888 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6889 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6890 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   cat >conftest.$ac_ext <<_ACEOF
6894       program main
6895 #ifndef __GNUC__
6896        choke me
6897 #endif
6898
6899       end
6900 _ACEOF
6901 rm -f conftest.$ac_objext
6902 if { (ac_try="$ac_compile"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_compile") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } && {
6915          test -z "$ac_f77_werror_flag" ||
6916          test ! -s conftest.err
6917        } && test -s conftest.$ac_objext; then
6918   ac_compiler_gnu=yes
6919 else
6920   echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923         ac_compiler_gnu=no
6924 fi
6925
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6928
6929 fi
6930 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6931 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6932 ac_ext=$ac_save_ext
6933 ac_test_FFLAGS=${FFLAGS+set}
6934 ac_save_FFLAGS=$FFLAGS
6935 FFLAGS=
6936 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6937 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6938 if test "${ac_cv_prog_f77_g+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   FFLAGS=-g
6942 cat >conftest.$ac_ext <<_ACEOF
6943       program main
6944
6945       end
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (ac_try="$ac_compile"
6949 case "(($ac_try" in
6950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951   *) ac_try_echo=$ac_try;;
6952 esac
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954   (eval "$ac_compile") 2>conftest.er1
6955   ac_status=$?
6956   grep -v '^ *+' conftest.er1 >conftest.err
6957   rm -f conftest.er1
6958   cat conftest.err >&5
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } && {
6961          test -z "$ac_f77_werror_flag" ||
6962          test ! -s conftest.err
6963        } && test -s conftest.$ac_objext; then
6964   ac_cv_prog_f77_g=yes
6965 else
6966   echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969         ac_cv_prog_f77_g=no
6970 fi
6971
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973
6974 fi
6975 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6976 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6977 if test "$ac_test_FFLAGS" = set; then
6978   FFLAGS=$ac_save_FFLAGS
6979 elif test $ac_cv_prog_f77_g = yes; then
6980   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6981     FFLAGS="-g -O2"
6982   else
6983     FFLAGS="-g"
6984   fi
6985 else
6986   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6987     FFLAGS="-O2"
6988   else
6989     FFLAGS=
6990   fi
6991 fi
6992
6993 G77=`test $ac_compiler_gnu = yes && echo yes`
6994 ac_ext=c
6995 ac_cpp='$CPP $CPPFLAGS'
6996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6999
7000
7001
7002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7003
7004 # find the maximum length of command line arguments
7005 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7006 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7007 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7008   echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010     i=0
7011   teststring="ABCD"
7012
7013   case $build_os in
7014   msdosdjgpp*)
7015     # On DJGPP, this test can blow up pretty badly due to problems in libc
7016     # (any single argument exceeding 2000 bytes causes a buffer overrun
7017     # during glob expansion).  Even if it were fixed, the result of this
7018     # check would be larger than it should be.
7019     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7020     ;;
7021
7022   gnu*)
7023     # Under GNU Hurd, this test is not required because there is
7024     # no limit to the length of command line arguments.
7025     # Libtool will interpret -1 as no limit whatsoever
7026     lt_cv_sys_max_cmd_len=-1;
7027     ;;
7028
7029   cygwin* | mingw*)
7030     # On Win9x/ME, this test blows up -- it succeeds, but takes
7031     # about 5 minutes as the teststring grows exponentially.
7032     # Worse, since 9x/ME are not pre-emptively multitasking,
7033     # you end up with a "frozen" computer, even though with patience
7034     # the test eventually succeeds (with a max line length of 256k).
7035     # Instead, let's just punt: use the minimum linelength reported by
7036     # all of the supported platforms: 8192 (on NT/2K/XP).
7037     lt_cv_sys_max_cmd_len=8192;
7038     ;;
7039
7040   amigaos*)
7041     # On AmigaOS with pdksh, this test takes hours, literally.
7042     # So we just punt and use a minimum line length of 8192.
7043     lt_cv_sys_max_cmd_len=8192;
7044     ;;
7045
7046   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7047     # This has been around since 386BSD, at least.  Likely further.
7048     if test -x /sbin/sysctl; then
7049       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7050     elif test -x /usr/sbin/sysctl; then
7051       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7052     else
7053       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7054     fi
7055     # And add a safety zone
7056     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7057     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7058     ;;
7059
7060   interix*)
7061     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7062     lt_cv_sys_max_cmd_len=196608
7063     ;;
7064
7065   osf*)
7066     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7067     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7068     # nice to cause kernel panics so lets avoid the loop below.
7069     # First set a reasonable default.
7070     lt_cv_sys_max_cmd_len=16384
7071     #
7072     if test -x /sbin/sysconfig; then
7073       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7074         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7075       esac
7076     fi
7077     ;;
7078   sco3.2v5*)
7079     lt_cv_sys_max_cmd_len=102400
7080     ;;
7081   sysv5* | sco5v6* | sysv4.2uw2*)
7082     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7083     if test -n "$kargmax"; then
7084       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7085     else
7086       lt_cv_sys_max_cmd_len=32768
7087     fi
7088     ;;
7089   *)
7090     # If test is not a shell built-in, we'll probably end up computing a
7091     # maximum length that is only half of the actual maximum length, but
7092     # we can't tell.
7093     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7094     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7095                = "XX$teststring") >/dev/null 2>&1 &&
7096             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7097             lt_cv_sys_max_cmd_len=$new_result &&
7098             test $i != 17 # 1/2 MB should be enough
7099     do
7100       i=`expr $i + 1`
7101       teststring=$teststring$teststring
7102     done
7103     teststring=
7104     # Add a significant safety factor because C++ compilers can tack on massive
7105     # amounts of additional arguments before passing them to the linker.
7106     # It appears as though 1/2 is a usable value.
7107     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7108     ;;
7109   esac
7110
7111 fi
7112
7113 if test -n $lt_cv_sys_max_cmd_len ; then
7114   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7115 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: none" >&5
7118 echo "${ECHO_T}none" >&6; }
7119 fi
7120
7121
7122
7123
7124 # Check for command to grab the raw symbol name followed by C symbol from nm.
7125 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7126 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7127 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130
7131 # These are sane defaults that work on at least a few old systems.
7132 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7133
7134 # Character class describing NM global symbol codes.
7135 symcode='[BCDEGRST]'
7136
7137 # Regexp to match symbols that can be accessed directly from C.
7138 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7139
7140 # Transform an extracted symbol line into a proper C declaration
7141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7142
7143 # Transform an extracted symbol line into symbol name and symbol address
7144 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'"
7145
7146 # Define system-specific variables.
7147 case $host_os in
7148 aix*)
7149   symcode='[BCDT]'
7150   ;;
7151 cygwin* | mingw* | pw32*)
7152   symcode='[ABCDGISTW]'
7153   ;;
7154 hpux*) # Its linker distinguishes data from code symbols
7155   if test "$host_cpu" = ia64; then
7156     symcode='[ABCDEGRST]'
7157   fi
7158   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7159   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'"
7160   ;;
7161 linux* | k*bsd*-gnu)
7162   if test "$host_cpu" = ia64; then
7163     symcode='[ABCDGIRSTW]'
7164     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7165     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'"
7166   fi
7167   ;;
7168 irix* | nonstopux*)
7169   symcode='[BCDEGRST]'
7170   ;;
7171 osf*)
7172   symcode='[BCDEGQRST]'
7173   ;;
7174 solaris*)
7175   symcode='[BDRT]'
7176   ;;
7177 sco3.2v5*)
7178   symcode='[DT]'
7179   ;;
7180 sysv4.2uw2*)
7181   symcode='[DT]'
7182   ;;
7183 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7184   symcode='[ABDT]'
7185   ;;
7186 sysv4)
7187   symcode='[DFNSTU]'
7188   ;;
7189 esac
7190
7191 # Handle CRLF in mingw tool chain
7192 opt_cr=
7193 case $build_os in
7194 mingw*)
7195   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7196   ;;
7197 esac
7198
7199 # If we're using GNU nm, then use its standard symbol codes.
7200 case `$NM -V 2>&1` in
7201 *GNU* | *'with BFD'*)
7202   symcode='[ABCDGIRSTW]' ;;
7203 esac
7204
7205 # Try without a prefix undercore, then with it.
7206 for ac_symprfx in "" "_"; do
7207
7208   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7209   symxfrm="\\1 $ac_symprfx\\2 \\2"
7210
7211   # Write the raw and C identifiers.
7212   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7213
7214   # Check to see that the pipe works correctly.
7215   pipe_works=no
7216
7217   rm -f conftest*
7218   cat > conftest.$ac_ext <<EOF
7219 #ifdef __cplusplus
7220 extern "C" {
7221 #endif
7222 char nm_test_var;
7223 void nm_test_func(){}
7224 #ifdef __cplusplus
7225 }
7226 #endif
7227 int main(){nm_test_var='a';nm_test_func();return(0);}
7228 EOF
7229
7230   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231   (eval $ac_compile) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; then
7235     # Now try to grab the symbols.
7236     nlist=conftest.nm
7237     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7238   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); } && test -s "$nlist"; then
7242       # Try sorting and uniquifying the output.
7243       if sort "$nlist" | uniq > "$nlist"T; then
7244         mv -f "$nlist"T "$nlist"
7245       else
7246         rm -f "$nlist"T
7247       fi
7248
7249       # Make sure that we snagged all the symbols we need.
7250       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7251         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7252           cat <<EOF > conftest.$ac_ext
7253 #ifdef __cplusplus
7254 extern "C" {
7255 #endif
7256
7257 EOF
7258           # Now generate the symbol file.
7259           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7260
7261           cat <<EOF >> conftest.$ac_ext
7262 #if defined (__STDC__) && __STDC__
7263 # define lt_ptr_t void *
7264 #else
7265 # define lt_ptr_t char *
7266 # define const
7267 #endif
7268
7269 /* The mapping between symbol names and symbols. */
7270 const struct {
7271   const char *name;
7272   lt_ptr_t address;
7273 }
7274 lt_preloaded_symbols[] =
7275 {
7276 EOF
7277           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7278           cat <<\EOF >> conftest.$ac_ext
7279   {0, (lt_ptr_t) 0}
7280 };
7281
7282 #ifdef __cplusplus
7283 }
7284 #endif
7285 EOF
7286           # Now try linking the two files.
7287           mv conftest.$ac_objext conftstm.$ac_objext
7288           lt_save_LIBS="$LIBS"
7289           lt_save_CFLAGS="$CFLAGS"
7290           LIBS="conftstm.$ac_objext"
7291           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7292           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293   (eval $ac_link) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7297             pipe_works=yes
7298           fi
7299           LIBS="$lt_save_LIBS"
7300           CFLAGS="$lt_save_CFLAGS"
7301         else
7302           echo "cannot find nm_test_func in $nlist" >&5
7303         fi
7304       else
7305         echo "cannot find nm_test_var in $nlist" >&5
7306       fi
7307     else
7308       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7309     fi
7310   else
7311     echo "$progname: failed program was:" >&5
7312     cat conftest.$ac_ext >&5
7313   fi
7314   rm -f conftest* conftst*
7315
7316   # Do not use the global_symbol_pipe unless it works.
7317   if test "$pipe_works" = yes; then
7318     break
7319   else
7320     lt_cv_sys_global_symbol_pipe=
7321   fi
7322 done
7323
7324 fi
7325
7326 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7327   lt_cv_sys_global_symbol_to_cdecl=
7328 fi
7329 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7330   { echo "$as_me:$LINENO: result: failed" >&5
7331 echo "${ECHO_T}failed" >&6; }
7332 else
7333   { echo "$as_me:$LINENO: result: ok" >&5
7334 echo "${ECHO_T}ok" >&6; }
7335 fi
7336
7337 { echo "$as_me:$LINENO: checking for objdir" >&5
7338 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7339 if test "${lt_cv_objdir+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   rm -f .libs 2>/dev/null
7343 mkdir .libs 2>/dev/null
7344 if test -d .libs; then
7345   lt_cv_objdir=.libs
7346 else
7347   # MS-DOS does not allow filenames that begin with a dot.
7348   lt_cv_objdir=_libs
7349 fi
7350 rmdir .libs 2>/dev/null
7351 fi
7352 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7353 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7354 objdir=$lt_cv_objdir
7355
7356
7357
7358
7359
7360 case $host_os in
7361 aix3*)
7362   # AIX sometimes has problems with the GCC collect2 program.  For some
7363   # reason, if we set the COLLECT_NAMES environment variable, the problems
7364   # vanish in a puff of smoke.
7365   if test "X${COLLECT_NAMES+set}" != Xset; then
7366     COLLECT_NAMES=
7367     export COLLECT_NAMES
7368   fi
7369   ;;
7370 esac
7371
7372 # Sed substitution that helps us do robust quoting.  It backslashifies
7373 # metacharacters that are still active within double-quoted strings.
7374 Xsed='sed -e 1s/^X//'
7375 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7376
7377 # Same as above, but do not quote variable references.
7378 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7379
7380 # Sed substitution to delay expansion of an escaped shell variable in a
7381 # double_quote_subst'ed string.
7382 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7383
7384 # Sed substitution to avoid accidental globbing in evaled expressions
7385 no_glob_subst='s/\*/\\\*/g'
7386
7387 # Constants:
7388 rm="rm -f"
7389
7390 # Global variables:
7391 default_ofile=libtool
7392 can_build_shared=yes
7393
7394 # All known linkers require a `.a' archive for static linking (except MSVC,
7395 # which needs '.lib').
7396 libext=a
7397 ltmain="$ac_aux_dir/ltmain.sh"
7398 ofile="$default_ofile"
7399 with_gnu_ld="$lt_cv_prog_gnu_ld"
7400
7401 if test -n "$ac_tool_prefix"; then
7402   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}ar; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_prog_AR+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   if test -n "$AR"; then
7410   ac_cv_prog_AR="$AR" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417   for ac_exec_ext in '' $ac_executable_extensions; do
7418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419     ac_cv_prog_AR="${ac_tool_prefix}ar"
7420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 AR=$ac_cv_prog_AR
7430 if test -n "$AR"; then
7431   { echo "$as_me:$LINENO: result: $AR" >&5
7432 echo "${ECHO_T}$AR" >&6; }
7433 else
7434   { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_AR"; then
7441   ac_ct_AR=$AR
7442   # Extract the first word of "ar", so it can be a program name with args.
7443 set dummy ar; ac_word=$2
7444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   if test -n "$ac_ct_AR"; then
7450   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457   for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_prog_ac_ct_AR="ar"
7460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7470 if test -n "$ac_ct_AR"; then
7471   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7472 echo "${ECHO_T}$ac_ct_AR" >&6; }
7473 else
7474   { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7476 fi
7477
7478   if test "x$ac_ct_AR" = x; then
7479     AR="false"
7480   else
7481     case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7484 whose name does not start with the host triplet.  If you think this
7485 configuration is useful to you, please write to autoconf@gnu.org." >&5
7486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7487 whose name does not start with the host triplet.  If you think this
7488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491     AR=$ac_ct_AR
7492   fi
7493 else
7494   AR="$ac_cv_prog_AR"
7495 fi
7496
7497 if test -n "$ac_tool_prefix"; then
7498   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_prog_RANLIB+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   if test -n "$RANLIB"; then
7506   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513   for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 RANLIB=$ac_cv_prog_RANLIB
7526 if test -n "$RANLIB"; then
7527   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7528 echo "${ECHO_T}$RANLIB" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535 fi
7536 if test -z "$ac_cv_prog_RANLIB"; then
7537   ac_ct_RANLIB=$RANLIB
7538   # Extract the first word of "ranlib", so it can be a program name with args.
7539 set dummy ranlib; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   if test -n "$ac_ct_RANLIB"; then
7546   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553   for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_prog_ac_ct_RANLIB="ranlib"
7556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7566 if test -n "$ac_ct_RANLIB"; then
7567   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7568 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7569 else
7570   { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7572 fi
7573
7574   if test "x$ac_ct_RANLIB" = x; then
7575     RANLIB=":"
7576   else
7577     case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7580 whose name does not start with the host triplet.  If you think this
7581 configuration is useful to you, please write to autoconf@gnu.org." >&5
7582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7583 whose name does not start with the host triplet.  If you think this
7584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7585 ac_tool_warned=yes ;;
7586 esac
7587     RANLIB=$ac_ct_RANLIB
7588   fi
7589 else
7590   RANLIB="$ac_cv_prog_RANLIB"
7591 fi
7592
7593 if test -n "$ac_tool_prefix"; then
7594   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7595 set dummy ${ac_tool_prefix}strip; ac_word=$2
7596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598 if test "${ac_cv_prog_STRIP+set}" = set; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601   if test -n "$STRIP"; then
7602   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for ac_exec_ext in '' $ac_executable_extensions; do
7610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619 fi
7620 fi
7621 STRIP=$ac_cv_prog_STRIP
7622 if test -n "$STRIP"; then
7623   { echo "$as_me:$LINENO: result: $STRIP" >&5
7624 echo "${ECHO_T}$STRIP" >&6; }
7625 else
7626   { echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6; }
7628 fi
7629
7630
7631 fi
7632 if test -z "$ac_cv_prog_STRIP"; then
7633   ac_ct_STRIP=$STRIP
7634   # Extract the first word of "strip", so it can be a program name with args.
7635 set dummy strip; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641   if test -n "$ac_ct_STRIP"; then
7642   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649   for ac_exec_ext in '' $ac_executable_extensions; do
7650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651     ac_cv_prog_ac_ct_STRIP="strip"
7652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7662 if test -n "$ac_ct_STRIP"; then
7663   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7664 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7665 else
7666   { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7668 fi
7669
7670   if test "x$ac_ct_STRIP" = x; then
7671     STRIP=":"
7672   else
7673     case $cross_compiling:$ac_tool_warned in
7674 yes:)
7675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7676 whose name does not start with the host triplet.  If you think this
7677 configuration is useful to you, please write to autoconf@gnu.org." >&5
7678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7679 whose name does not start with the host triplet.  If you think this
7680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7681 ac_tool_warned=yes ;;
7682 esac
7683     STRIP=$ac_ct_STRIP
7684   fi
7685 else
7686   STRIP="$ac_cv_prog_STRIP"
7687 fi
7688
7689
7690 old_CC="$CC"
7691 old_CFLAGS="$CFLAGS"
7692
7693 # Set sane defaults for various variables
7694 test -z "$AR" && AR=ar
7695 test -z "$AR_FLAGS" && AR_FLAGS=cru
7696 test -z "$AS" && AS=as
7697 test -z "$CC" && CC=cc
7698 test -z "$LTCC" && LTCC=$CC
7699 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7700 test -z "$DLLTOOL" && DLLTOOL=dlltool
7701 test -z "$LD" && LD=ld
7702 test -z "$LN_S" && LN_S="ln -s"
7703 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7704 test -z "$NM" && NM=nm
7705 test -z "$SED" && SED=sed
7706 test -z "$OBJDUMP" && OBJDUMP=objdump
7707 test -z "$RANLIB" && RANLIB=:
7708 test -z "$STRIP" && STRIP=:
7709 test -z "$ac_objext" && ac_objext=o
7710
7711 # Determine commands to create old-style static archives.
7712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7713 old_postinstall_cmds='chmod 644 $oldlib'
7714 old_postuninstall_cmds=
7715
7716 if test -n "$RANLIB"; then
7717   case $host_os in
7718   openbsd*)
7719     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7720     ;;
7721   *)
7722     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7723     ;;
7724   esac
7725   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7726 fi
7727
7728 for cc_temp in $compiler""; do
7729   case $cc_temp in
7730     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7731     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7732     \-*) ;;
7733     *) break;;
7734   esac
7735 done
7736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7737
7738
7739 # Only perform the check for file, if the check method requires it
7740 case $deplibs_check_method in
7741 file_magic*)
7742   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7743     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7744 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7745 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   case $MAGIC_CMD in
7749 [\\/*] |  ?:[\\/]*)
7750   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7751   ;;
7752 *)
7753   lt_save_MAGIC_CMD="$MAGIC_CMD"
7754   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7755   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7756   for ac_dir in $ac_dummy; do
7757     IFS="$lt_save_ifs"
7758     test -z "$ac_dir" && ac_dir=.
7759     if test -f $ac_dir/${ac_tool_prefix}file; then
7760       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7761       if test -n "$file_magic_test_file"; then
7762         case $deplibs_check_method in
7763         "file_magic "*)
7764           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7765           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7766           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7767             $EGREP "$file_magic_regex" > /dev/null; then
7768             :
7769           else
7770             cat <<EOF 1>&2
7771
7772 *** Warning: the command libtool uses to detect shared libraries,
7773 *** $file_magic_cmd, produces output that libtool cannot recognize.
7774 *** The result is that libtool may fail to recognize shared libraries
7775 *** as such.  This will affect the creation of libtool libraries that
7776 *** depend on shared libraries, but programs linked with such libtool
7777 *** libraries will work regardless of this problem.  Nevertheless, you
7778 *** may want to report the problem to your system manager and/or to
7779 *** bug-libtool@gnu.org
7780
7781 EOF
7782           fi ;;
7783         esac
7784       fi
7785       break
7786     fi
7787   done
7788   IFS="$lt_save_ifs"
7789   MAGIC_CMD="$lt_save_MAGIC_CMD"
7790   ;;
7791 esac
7792 fi
7793
7794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795 if test -n "$MAGIC_CMD"; then
7796   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7797 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7798 else
7799   { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7801 fi
7802
7803 if test -z "$lt_cv_path_MAGIC_CMD"; then
7804   if test -n "$ac_tool_prefix"; then
7805     { echo "$as_me:$LINENO: checking for file" >&5
7806 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7807 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   case $MAGIC_CMD in
7811 [\\/*] |  ?:[\\/]*)
7812   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7813   ;;
7814 *)
7815   lt_save_MAGIC_CMD="$MAGIC_CMD"
7816   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7817   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7818   for ac_dir in $ac_dummy; do
7819     IFS="$lt_save_ifs"
7820     test -z "$ac_dir" && ac_dir=.
7821     if test -f $ac_dir/file; then
7822       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7823       if test -n "$file_magic_test_file"; then
7824         case $deplibs_check_method in
7825         "file_magic "*)
7826           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7827           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7828           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7829             $EGREP "$file_magic_regex" > /dev/null; then
7830             :
7831           else
7832             cat <<EOF 1>&2
7833
7834 *** Warning: the command libtool uses to detect shared libraries,
7835 *** $file_magic_cmd, produces output that libtool cannot recognize.
7836 *** The result is that libtool may fail to recognize shared libraries
7837 *** as such.  This will affect the creation of libtool libraries that
7838 *** depend on shared libraries, but programs linked with such libtool
7839 *** libraries will work regardless of this problem.  Nevertheless, you
7840 *** may want to report the problem to your system manager and/or to
7841 *** bug-libtool@gnu.org
7842
7843 EOF
7844           fi ;;
7845         esac
7846       fi
7847       break
7848     fi
7849   done
7850   IFS="$lt_save_ifs"
7851   MAGIC_CMD="$lt_save_MAGIC_CMD"
7852   ;;
7853 esac
7854 fi
7855
7856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7857 if test -n "$MAGIC_CMD"; then
7858   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7859 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7860 else
7861   { echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6; }
7863 fi
7864
7865   else
7866     MAGIC_CMD=:
7867   fi
7868 fi
7869
7870   fi
7871   ;;
7872 esac
7873
7874 enable_dlopen=no
7875 enable_win32_dll=no
7876
7877 # Check whether --enable-libtool-lock was given.
7878 if test "${enable_libtool_lock+set}" = set; then
7879   enableval=$enable_libtool_lock;
7880 fi
7881
7882 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7883
7884
7885 # Check whether --with-pic was given.
7886 if test "${with_pic+set}" = set; then
7887   withval=$with_pic; pic_mode="$withval"
7888 else
7889   pic_mode=default
7890 fi
7891
7892 test -z "$pic_mode" && pic_mode=default
7893
7894 # Use C for the default configuration in the libtool script
7895 tagname=
7896 lt_save_CC="$CC"
7897 ac_ext=c
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904 # Source file extension for C test sources.
7905 ac_ext=c
7906
7907 # Object file extension for compiled C test sources.
7908 objext=o
7909 objext=$objext
7910
7911 # Code to be used in simple compile tests
7912 lt_simple_compile_test_code="int some_variable = 0;\n"
7913
7914 # Code to be used in simple link tests
7915 lt_simple_link_test_code='int main(){return(0);}\n'
7916
7917
7918 # If no C compiler was specified, use CC.
7919 LTCC=${LTCC-"$CC"}
7920
7921 # If no C compiler flags were specified, use CFLAGS.
7922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7923
7924 # Allow CC to be a program name with arguments.
7925 compiler=$CC
7926
7927
7928 # save warnings/boilerplate of simple test code
7929 ac_outfile=conftest.$ac_objext
7930 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932 _lt_compiler_boilerplate=`cat conftest.err`
7933 $rm conftest*
7934
7935 ac_outfile=conftest.$ac_objext
7936 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7938 _lt_linker_boilerplate=`cat conftest.err`
7939 $rm conftest*
7940
7941
7942
7943 lt_prog_compiler_no_builtin_flag=
7944
7945 if test "$GCC" = yes; then
7946   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7947
7948
7949 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7950 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7951 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   lt_cv_prog_compiler_rtti_exceptions=no
7955   ac_outfile=conftest.$ac_objext
7956    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7957    lt_compiler_flag="-fno-rtti -fno-exceptions"
7958    # Insert the option either (1) after the last *FLAGS variable, or
7959    # (2) before a word containing "conftest.", or (3) at the end.
7960    # Note that $ac_compile itself does not contain backslashes and begins
7961    # with a dollar sign (not a hyphen), so the echo should work correctly.
7962    # The option is referenced via a variable to avoid confusing sed.
7963    lt_compile=`echo "$ac_compile" | $SED \
7964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7966    -e 's:$: $lt_compiler_flag:'`
7967    (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
7968    (eval "$lt_compile" 2>conftest.err)
7969    ac_status=$?
7970    cat conftest.err >&5
7971    echo "$as_me:7971: \$? = $ac_status" >&5
7972    if (exit $ac_status) && test -s "$ac_outfile"; then
7973      # The compiler can only warn and ignore the option if not recognized
7974      # So say no if there are warnings other than the usual output.
7975      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7976      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7977      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7978        lt_cv_prog_compiler_rtti_exceptions=yes
7979      fi
7980    fi
7981    $rm conftest*
7982
7983 fi
7984 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7985 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7986
7987 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7988     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7989 else
7990     :
7991 fi
7992
7993 fi
7994
7995 lt_prog_compiler_wl=
7996 lt_prog_compiler_pic=
7997 lt_prog_compiler_static=
7998
7999 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8001
8002   if test "$GCC" = yes; then
8003     lt_prog_compiler_wl='-Wl,'
8004     lt_prog_compiler_static='-static'
8005
8006     case $host_os in
8007       aix*)
8008       # All AIX code is PIC.
8009       if test "$host_cpu" = ia64; then
8010         # AIX 5 now supports IA64 processor
8011         lt_prog_compiler_static='-Bstatic'
8012       fi
8013       ;;
8014
8015     amigaos*)
8016       # FIXME: we need at least 68020 code to build shared libraries, but
8017       # adding the `-m68020' flag to GCC prevents building anything better,
8018       # like `-m68040'.
8019       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8020       ;;
8021
8022     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8023       # PIC is the default for these OSes.
8024       ;;
8025
8026     mingw* | pw32* | os2*)
8027       # This hack is so that the source file can tell whether it is being
8028       # built for inclusion in a dll (and should export symbols for example).
8029       lt_prog_compiler_pic='-DDLL_EXPORT'
8030       ;;
8031
8032     darwin* | rhapsody*)
8033       # PIC is the default on this platform
8034       # Common symbols not allowed in MH_DYLIB files
8035       lt_prog_compiler_pic='-fno-common'
8036       ;;
8037
8038     interix3*)
8039       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8040       # Instead, we relocate shared libraries at runtime.
8041       ;;
8042
8043     msdosdjgpp*)
8044       # Just because we use GCC doesn't mean we suddenly get shared libraries
8045       # on systems that don't support them.
8046       lt_prog_compiler_can_build_shared=no
8047       enable_shared=no
8048       ;;
8049
8050     sysv4*MP*)
8051       if test -d /usr/nec; then
8052         lt_prog_compiler_pic=-Kconform_pic
8053       fi
8054       ;;
8055
8056     hpux*)
8057       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8058       # not for PA HP-UX.
8059       case $host_cpu in
8060       hppa*64*|ia64*)
8061         # +Z the default
8062         ;;
8063       *)
8064         lt_prog_compiler_pic='-fPIC'
8065         ;;
8066       esac
8067       ;;
8068
8069     *)
8070       lt_prog_compiler_pic='-fPIC'
8071       ;;
8072     esac
8073   else
8074     # PORTME Check for flag to pass linker flags through the system compiler.
8075     case $host_os in
8076     aix*)
8077       lt_prog_compiler_wl='-Wl,'
8078       if test "$host_cpu" = ia64; then
8079         # AIX 5 now supports IA64 processor
8080         lt_prog_compiler_static='-Bstatic'
8081       else
8082         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8083       fi
8084       ;;
8085       darwin*)
8086         # PIC is the default on this platform
8087         # Common symbols not allowed in MH_DYLIB files
8088        case $cc_basename in
8089          xlc*)
8090          lt_prog_compiler_pic='-qnocommon'
8091          lt_prog_compiler_wl='-Wl,'
8092          ;;
8093        esac
8094        ;;
8095
8096     mingw* | pw32* | os2*)
8097       # This hack is so that the source file can tell whether it is being
8098       # built for inclusion in a dll (and should export symbols for example).
8099       lt_prog_compiler_pic='-DDLL_EXPORT'
8100       ;;
8101
8102     hpux9* | hpux10* | hpux11*)
8103       lt_prog_compiler_wl='-Wl,'
8104       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8105       # not for PA HP-UX.
8106       case $host_cpu in
8107       hppa*64*|ia64*)
8108         # +Z the default
8109         ;;
8110       *)
8111         lt_prog_compiler_pic='+Z'
8112         ;;
8113       esac
8114       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8115       lt_prog_compiler_static='${wl}-a ${wl}archive'
8116       ;;
8117
8118     irix5* | irix6* | nonstopux*)
8119       lt_prog_compiler_wl='-Wl,'
8120       # PIC (with -KPIC) is the default.
8121       lt_prog_compiler_static='-non_shared'
8122       ;;
8123
8124     newsos6)
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       ;;
8128
8129     linux* | k*bsd*-gnu)
8130       case $cc_basename in
8131       icc* | ecc*)
8132         lt_prog_compiler_wl='-Wl,'
8133         lt_prog_compiler_pic='-KPIC'
8134         lt_prog_compiler_static='-static'
8135         ;;
8136       pgcc* | pgf77* | pgf90* | pgf95*)
8137         # Portland Group compilers (*not* the Pentium gcc compiler,
8138         # which looks to be a dead project)
8139         lt_prog_compiler_wl='-Wl,'
8140         lt_prog_compiler_pic='-fpic'
8141         lt_prog_compiler_static='-Bstatic'
8142         ;;
8143       ccc*)
8144         lt_prog_compiler_wl='-Wl,'
8145         # All Alpha code is PIC.
8146         lt_prog_compiler_static='-non_shared'
8147         ;;
8148       esac
8149       ;;
8150
8151     osf3* | osf4* | osf5*)
8152       lt_prog_compiler_wl='-Wl,'
8153       # All OSF/1 code is PIC.
8154       lt_prog_compiler_static='-non_shared'
8155       ;;
8156
8157     solaris*)
8158       lt_prog_compiler_pic='-KPIC'
8159       lt_prog_compiler_static='-Bstatic'
8160       case $cc_basename in
8161       f77* | f90* | f95*)
8162         lt_prog_compiler_wl='-Qoption ld ';;
8163       *)
8164         lt_prog_compiler_wl='-Wl,';;
8165       esac
8166       ;;
8167
8168     sunos4*)
8169       lt_prog_compiler_wl='-Qoption ld '
8170       lt_prog_compiler_pic='-PIC'
8171       lt_prog_compiler_static='-Bstatic'
8172       ;;
8173
8174     sysv4 | sysv4.2uw2* | sysv4.3*)
8175       lt_prog_compiler_wl='-Wl,'
8176       lt_prog_compiler_pic='-KPIC'
8177       lt_prog_compiler_static='-Bstatic'
8178       ;;
8179
8180     sysv4*MP*)
8181       if test -d /usr/nec ;then
8182         lt_prog_compiler_pic='-Kconform_pic'
8183         lt_prog_compiler_static='-Bstatic'
8184       fi
8185       ;;
8186
8187     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8188       lt_prog_compiler_wl='-Wl,'
8189       lt_prog_compiler_pic='-KPIC'
8190       lt_prog_compiler_static='-Bstatic'
8191       ;;
8192
8193     unicos*)
8194       lt_prog_compiler_wl='-Wl,'
8195       lt_prog_compiler_can_build_shared=no
8196       ;;
8197
8198     uts4*)
8199       lt_prog_compiler_pic='-pic'
8200       lt_prog_compiler_static='-Bstatic'
8201       ;;
8202
8203     *)
8204       lt_prog_compiler_can_build_shared=no
8205       ;;
8206     esac
8207   fi
8208
8209 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8210 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8211
8212 #
8213 # Check to make sure the PIC flag actually works.
8214 #
8215 if test -n "$lt_prog_compiler_pic"; then
8216
8217 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8218 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8219 if test "${lt_prog_compiler_pic_works+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   lt_prog_compiler_pic_works=no
8223   ac_outfile=conftest.$ac_objext
8224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8225    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8226    # Insert the option either (1) after the last *FLAGS variable, or
8227    # (2) before a word containing "conftest.", or (3) at the end.
8228    # Note that $ac_compile itself does not contain backslashes and begins
8229    # with a dollar sign (not a hyphen), so the echo should work correctly.
8230    # The option is referenced via a variable to avoid confusing sed.
8231    lt_compile=`echo "$ac_compile" | $SED \
8232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234    -e 's:$: $lt_compiler_flag:'`
8235    (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
8236    (eval "$lt_compile" 2>conftest.err)
8237    ac_status=$?
8238    cat conftest.err >&5
8239    echo "$as_me:8239: \$? = $ac_status" >&5
8240    if (exit $ac_status) && test -s "$ac_outfile"; then
8241      # The compiler can only warn and ignore the option if not recognized
8242      # So say no if there are warnings other than the usual output.
8243      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8244      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8245      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8246        lt_prog_compiler_pic_works=yes
8247      fi
8248    fi
8249    $rm conftest*
8250
8251 fi
8252 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8253 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8254
8255 if test x"$lt_prog_compiler_pic_works" = xyes; then
8256     case $lt_prog_compiler_pic in
8257      "" | " "*) ;;
8258      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8259      esac
8260 else
8261     lt_prog_compiler_pic=
8262      lt_prog_compiler_can_build_shared=no
8263 fi
8264
8265 fi
8266 case $host_os in
8267   # For platforms which do not support PIC, -DPIC is meaningless:
8268   *djgpp*)
8269     lt_prog_compiler_pic=
8270     ;;
8271   *)
8272     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8273     ;;
8274 esac
8275
8276 #
8277 # Check to make sure the static flag actually works.
8278 #
8279 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8280 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8281 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8282 if test "${lt_prog_compiler_static_works+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   lt_prog_compiler_static_works=no
8286    save_LDFLAGS="$LDFLAGS"
8287    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8288    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8289    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8290      # The linker can only warn and ignore the option if not recognized
8291      # So say no if there are warnings
8292      if test -s conftest.err; then
8293        # Append any errors to the config.log.
8294        cat conftest.err 1>&5
8295        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8296        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8297        if diff conftest.exp conftest.er2 >/dev/null; then
8298          lt_prog_compiler_static_works=yes
8299        fi
8300      else
8301        lt_prog_compiler_static_works=yes
8302      fi
8303    fi
8304    $rm conftest*
8305    LDFLAGS="$save_LDFLAGS"
8306
8307 fi
8308 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8309 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8310
8311 if test x"$lt_prog_compiler_static_works" = xyes; then
8312     :
8313 else
8314     lt_prog_compiler_static=
8315 fi
8316
8317
8318 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8319 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8320 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   lt_cv_prog_compiler_c_o=no
8324    $rm -r conftest 2>/dev/null
8325    mkdir conftest
8326    cd conftest
8327    mkdir out
8328    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8329
8330    lt_compiler_flag="-o out/conftest2.$ac_objext"
8331    # Insert the option either (1) after the last *FLAGS variable, or
8332    # (2) before a word containing "conftest.", or (3) at the end.
8333    # Note that $ac_compile itself does not contain backslashes and begins
8334    # with a dollar sign (not a hyphen), so the echo should work correctly.
8335    lt_compile=`echo "$ac_compile" | $SED \
8336    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338    -e 's:$: $lt_compiler_flag:'`
8339    (eval echo "\"\$as_me:8339: $lt_compile\"" >&5)
8340    (eval "$lt_compile" 2>out/conftest.err)
8341    ac_status=$?
8342    cat out/conftest.err >&5
8343    echo "$as_me:8343: \$? = $ac_status" >&5
8344    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8345    then
8346      # The compiler can only warn and ignore the option if not recognized
8347      # So say no if there are warnings
8348      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8349      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8350      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8351        lt_cv_prog_compiler_c_o=yes
8352      fi
8353    fi
8354    chmod u+w . 2>&5
8355    $rm conftest*
8356    # SGI C++ compiler will create directory out/ii_files/ for
8357    # template instantiation
8358    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8359    $rm out/* && rmdir out
8360    cd ..
8361    rmdir conftest
8362    $rm conftest*
8363
8364 fi
8365 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8366 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8367
8368
8369 hard_links="nottested"
8370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8371   # do not overwrite the value of need_locks provided by the user
8372   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8373 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8374   hard_links=yes
8375   $rm conftest*
8376   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8377   touch conftest.a
8378   ln conftest.a conftest.b 2>&5 || hard_links=no
8379   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8380   { echo "$as_me:$LINENO: result: $hard_links" >&5
8381 echo "${ECHO_T}$hard_links" >&6; }
8382   if test "$hard_links" = no; then
8383     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8384 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8385     need_locks=warn
8386   fi
8387 else
8388   need_locks=no
8389 fi
8390
8391 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8392 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8393
8394   runpath_var=
8395   allow_undefined_flag=
8396   enable_shared_with_static_runtimes=no
8397   archive_cmds=
8398   archive_expsym_cmds=
8399   old_archive_From_new_cmds=
8400   old_archive_from_expsyms_cmds=
8401   export_dynamic_flag_spec=
8402   whole_archive_flag_spec=
8403   thread_safe_flag_spec=
8404   hardcode_libdir_flag_spec=
8405   hardcode_libdir_flag_spec_ld=
8406   hardcode_libdir_separator=
8407   hardcode_direct=no
8408   hardcode_minus_L=no
8409   hardcode_shlibpath_var=unsupported
8410   link_all_deplibs=unknown
8411   hardcode_automatic=no
8412   module_cmds=
8413   module_expsym_cmds=
8414   always_export_symbols=no
8415   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8416   # include_expsyms should be a list of space-separated symbols to be *always*
8417   # included in the symbol list
8418   include_expsyms=
8419   # exclude_expsyms can be an extended regexp of symbols to exclude
8420   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8421   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8422   # as well as any symbol that contains `d'.
8423   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8424   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8425   # platforms (ab)use it in PIC code, but their linkers get confused if
8426   # the symbol is explicitly referenced.  Since portable code cannot
8427   # rely on this symbol name, it's probably fine to never include it in
8428   # preloaded symbol tables.
8429   extract_expsyms_cmds=
8430   # Just being paranoid about ensuring that cc_basename is set.
8431   for cc_temp in $compiler""; do
8432   case $cc_temp in
8433     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8435     \-*) ;;
8436     *) break;;
8437   esac
8438 done
8439 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8440
8441   case $host_os in
8442   cygwin* | mingw* | pw32*)
8443     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8444     # When not using gcc, we currently assume that we are using
8445     # Microsoft Visual C++.
8446     if test "$GCC" != yes; then
8447       with_gnu_ld=no
8448     fi
8449     ;;
8450   interix*)
8451     # we just hope/assume this is gcc and not c89 (= MSVC++)
8452     with_gnu_ld=yes
8453     ;;
8454   openbsd*)
8455     with_gnu_ld=no
8456     ;;
8457   esac
8458
8459   ld_shlibs=yes
8460   if test "$with_gnu_ld" = yes; then
8461     # If archive_cmds runs LD, not CC, wlarc should be empty
8462     wlarc='${wl}'
8463
8464     # Set some defaults for GNU ld with shared library support. These
8465     # are reset later if shared libraries are not supported. Putting them
8466     # here allows them to be overridden if necessary.
8467     runpath_var=LD_RUN_PATH
8468     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8469     export_dynamic_flag_spec='${wl}--export-dynamic'
8470     # ancient GNU ld didn't support --whole-archive et. al.
8471     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8472         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8473       else
8474         whole_archive_flag_spec=
8475     fi
8476     supports_anon_versioning=no
8477     case `$LD -v 2>/dev/null` in
8478       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8479       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8480       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8481       *\ 2.11.*) ;; # other 2.11 versions
8482       *) supports_anon_versioning=yes ;;
8483     esac
8484
8485     # See if GNU ld supports shared libraries.
8486     case $host_os in
8487     aix3* | aix4* | aix5*)
8488       # On AIX/PPC, the GNU linker is very broken
8489       if test "$host_cpu" != ia64; then
8490         ld_shlibs=no
8491         cat <<EOF 1>&2
8492
8493 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8494 *** to be unable to reliably create shared libraries on AIX.
8495 *** Therefore, libtool is disabling shared libraries support.  If you
8496 *** really care for shared libraries, you may want to modify your PATH
8497 *** so that a non-GNU linker is found, and then restart.
8498
8499 EOF
8500       fi
8501       ;;
8502
8503     amigaos*)
8504       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)'
8505       hardcode_libdir_flag_spec='-L$libdir'
8506       hardcode_minus_L=yes
8507
8508       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8509       # that the semantics of dynamic libraries on AmigaOS, at least up
8510       # to version 4, is to share data among multiple programs linked
8511       # with the same dynamic library.  Since this doesn't match the
8512       # behavior of shared libraries on other platforms, we can't use
8513       # them.
8514       ld_shlibs=no
8515       ;;
8516
8517     beos*)
8518       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8519         allow_undefined_flag=unsupported
8520         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8521         # support --undefined.  This deserves some investigation.  FIXME
8522         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523       else
8524         ld_shlibs=no
8525       fi
8526       ;;
8527
8528     cygwin* | mingw* | pw32*)
8529       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8530       # as there is no search path for DLLs.
8531       hardcode_libdir_flag_spec='-L$libdir'
8532       allow_undefined_flag=unsupported
8533       always_export_symbols=no
8534       enable_shared_with_static_runtimes=yes
8535       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8536
8537       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8538         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8539         # If the export-symbols file already is a .def file (1st line
8540         # is EXPORTS), use it as is; otherwise, prepend...
8541         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8542           cp $export_symbols $output_objdir/$soname.def;
8543         else
8544           echo EXPORTS > $output_objdir/$soname.def;
8545           cat $export_symbols >> $output_objdir/$soname.def;
8546         fi~
8547         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8548       else
8549         ld_shlibs=no
8550       fi
8551       ;;
8552
8553     interix3*)
8554       hardcode_direct=no
8555       hardcode_shlibpath_var=no
8556       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8557       export_dynamic_flag_spec='${wl}-E'
8558       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8559       # Instead, shared libraries are loaded at an image base (0x10000000 by
8560       # default) and relocated if they conflict, which is a slow very memory
8561       # consuming and fragmenting process.  To avoid this, we pick a random,
8562       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8563       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8564       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8565       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'
8566       ;;
8567
8568     linux* | k*bsd*-gnu)
8569       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8570         tmp_addflag=
8571         case $cc_basename,$host_cpu in
8572         pgcc*)                          # Portland Group C compiler
8573           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'
8574           tmp_addflag=' $pic_flag'
8575           ;;
8576         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8577           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'
8578           tmp_addflag=' $pic_flag -Mnomain' ;;
8579         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8580           tmp_addflag=' -i_dynamic' ;;
8581         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8582           tmp_addflag=' -i_dynamic -nofor_main' ;;
8583         ifc* | ifort*)                  # Intel Fortran compiler
8584           tmp_addflag=' -nofor_main' ;;
8585         esac
8586         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587
8588         if test $supports_anon_versioning = yes; then
8589           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8590   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8591   $echo "local: *; };" >> $output_objdir/$libname.ver~
8592           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8593         fi
8594         link_all_deplibs=no
8595       else
8596         ld_shlibs=no
8597       fi
8598       ;;
8599
8600     netbsd* | netbsdelf*-gnu)
8601       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8602         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8603         wlarc=
8604       else
8605         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8607       fi
8608       ;;
8609
8610     solaris*)
8611       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8612         ld_shlibs=no
8613         cat <<EOF 1>&2
8614
8615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8616 *** create shared libraries on Solaris systems.  Therefore, libtool
8617 *** is disabling shared libraries support.  We urge you to upgrade GNU
8618 *** binutils to release 2.9.1 or newer.  Another option is to modify
8619 *** your PATH or compiler configuration so that the native linker is
8620 *** used, and then restart.
8621
8622 EOF
8623       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8624         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8626       else
8627         ld_shlibs=no
8628       fi
8629       ;;
8630
8631     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8632       case `$LD -v 2>&1` in
8633         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8634         ld_shlibs=no
8635         cat <<_LT_EOF 1>&2
8636
8637 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8638 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8639 *** is disabling shared libraries support.  We urge you to upgrade GNU
8640 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8641 *** your PATH or compiler configuration so that the native linker is
8642 *** used, and then restart.
8643
8644 _LT_EOF
8645         ;;
8646         *)
8647           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8648             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8649             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8650             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8651           else
8652             ld_shlibs=no
8653           fi
8654         ;;
8655       esac
8656       ;;
8657
8658     sunos4*)
8659       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660       wlarc=
8661       hardcode_direct=yes
8662       hardcode_shlibpath_var=no
8663       ;;
8664
8665     *)
8666       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8667         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669       else
8670         ld_shlibs=no
8671       fi
8672       ;;
8673     esac
8674
8675     if test "$ld_shlibs" = no; then
8676       runpath_var=
8677       hardcode_libdir_flag_spec=
8678       export_dynamic_flag_spec=
8679       whole_archive_flag_spec=
8680     fi
8681   else
8682     # PORTME fill in a description of your system's linker (not GNU ld)
8683     case $host_os in
8684     aix3*)
8685       allow_undefined_flag=unsupported
8686       always_export_symbols=yes
8687       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'
8688       # Note: this linker hardcodes the directories in LIBPATH if there
8689       # are no directories specified by -L.
8690       hardcode_minus_L=yes
8691       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8692         # Neither direct hardcoding nor static linking is supported with a
8693         # broken collect2.
8694         hardcode_direct=unsupported
8695       fi
8696       ;;
8697
8698     aix4* | aix5*)
8699       if test "$host_cpu" = ia64; then
8700         # On IA64, the linker does run time linking by default, so we don't
8701         # have to do anything special.
8702         aix_use_runtimelinking=no
8703         exp_sym_flag='-Bexport'
8704         no_entry_flag=""
8705       else
8706         # If we're using GNU nm, then we don't want the "-C" option.
8707         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8708         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8709           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'
8710         else
8711           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'
8712         fi
8713         aix_use_runtimelinking=no
8714
8715         # Test if we are trying to use run time linking or normal
8716         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8717         # need to do runtime linking.
8718         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8719           for ld_flag in $LDFLAGS; do
8720           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8721             aix_use_runtimelinking=yes
8722             break
8723           fi
8724           done
8725           ;;
8726         esac
8727
8728         exp_sym_flag='-bexport'
8729         no_entry_flag='-bnoentry'
8730       fi
8731
8732       # When large executables or shared objects are built, AIX ld can
8733       # have problems creating the table of contents.  If linking a library
8734       # or program results in "error TOC overflow" add -mminimal-toc to
8735       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8736       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8737
8738       archive_cmds=''
8739       hardcode_direct=yes
8740       hardcode_libdir_separator=':'
8741       link_all_deplibs=yes
8742
8743       if test "$GCC" = yes; then
8744         case $host_os in aix4.[012]|aix4.[012].*)
8745         # We only want to do this on AIX 4.2 and lower, the check
8746         # below for broken collect2 doesn't work under 4.3+
8747           collect2name=`${CC} -print-prog-name=collect2`
8748           if test -f "$collect2name" && \
8749            strings "$collect2name" | grep resolve_lib_name >/dev/null
8750           then
8751           # We have reworked collect2
8752           hardcode_direct=yes
8753           else
8754           # We have old collect2
8755           hardcode_direct=unsupported
8756           # It fails to find uninstalled libraries when the uninstalled
8757           # path is not listed in the libpath.  Setting hardcode_minus_L
8758           # to unsupported forces relinking
8759           hardcode_minus_L=yes
8760           hardcode_libdir_flag_spec='-L$libdir'
8761           hardcode_libdir_separator=
8762           fi
8763           ;;
8764         esac
8765         shared_flag='-shared'
8766         if test "$aix_use_runtimelinking" = yes; then
8767           shared_flag="$shared_flag "'${wl}-G'
8768         fi
8769       else
8770         # not using gcc
8771         if test "$host_cpu" = ia64; then
8772         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8773         # chokes on -Wl,-G. The following line is correct:
8774           shared_flag='-G'
8775         else
8776           if test "$aix_use_runtimelinking" = yes; then
8777             shared_flag='${wl}-G'
8778           else
8779             shared_flag='${wl}-bM:SRE'
8780           fi
8781         fi
8782       fi
8783
8784       # It seems that -bexpall does not export symbols beginning with
8785       # underscore (_), so it is better to generate a list of symbols to export.
8786       always_export_symbols=yes
8787       if test "$aix_use_runtimelinking" = yes; then
8788         # Warning - without using the other runtime loading flags (-brtl),
8789         # -berok will link without error, but may produce a broken library.
8790         allow_undefined_flag='-berok'
8791        # Determine the default libpath from the value encoded in an empty executable.
8792        cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798
8799 int
8800 main ()
8801 {
8802
8803   ;
8804   return 0;
8805 }
8806 _ACEOF
8807 rm -f conftest.$ac_objext conftest$ac_exeext
8808 if { (ac_try="$ac_link"
8809 case "(($ac_try" in
8810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811   *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814   (eval "$ac_link") 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } && {
8821          test -z "$ac_c_werror_flag" ||
8822          test ! -s conftest.err
8823        } && test -s conftest$ac_exeext &&
8824        $as_test_x conftest$ac_exeext; then
8825
8826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8827 }'`
8828 # Check for a 64-bit object if we didn't find anything.
8829 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; }
8830 }'`; fi
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8839       conftest$ac_exeext conftest.$ac_ext
8840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8841
8842        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8843         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"
8844        else
8845         if test "$host_cpu" = ia64; then
8846           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8847           allow_undefined_flag="-z nodefs"
8848           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"
8849         else
8850          # Determine the default libpath from the value encoded in an empty executable.
8851          cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857
8858 int
8859 main ()
8860 {
8861
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8868 case "(($ac_try" in
8869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870   *) ac_try_echo=$ac_try;;
8871 esac
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873   (eval "$ac_link") 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } && {
8880          test -z "$ac_c_werror_flag" ||
8881          test ! -s conftest.err
8882        } && test -s conftest$ac_exeext &&
8883        $as_test_x conftest$ac_exeext; then
8884
8885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8886 }'`
8887 # Check for a 64-bit object if we didn't find anything.
8888 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; }
8889 }'`; fi
8890 else
8891   echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894
8895 fi
8896
8897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8898       conftest$ac_exeext conftest.$ac_ext
8899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8900
8901          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8902           # Warning - without using the other run time loading flags,
8903           # -berok will link without error, but may produce a broken library.
8904           no_undefined_flag=' ${wl}-bernotok'
8905           allow_undefined_flag=' ${wl}-berok'
8906           # Exported symbols can be pulled into shared objects from archives
8907           whole_archive_flag_spec='$convenience'
8908           archive_cmds_need_lc=yes
8909           # This is similar to how AIX traditionally builds its shared libraries.
8910           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'
8911         fi
8912       fi
8913       ;;
8914
8915     amigaos*)
8916       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)'
8917       hardcode_libdir_flag_spec='-L$libdir'
8918       hardcode_minus_L=yes
8919       # see comment about different semantics on the GNU ld section
8920       ld_shlibs=no
8921       ;;
8922
8923     bsdi[45]*)
8924       export_dynamic_flag_spec=-rdynamic
8925       ;;
8926
8927     cygwin* | mingw* | pw32*)
8928       # When not using gcc, we currently assume that we are using
8929       # Microsoft Visual C++.
8930       # hardcode_libdir_flag_spec is actually meaningless, as there is
8931       # no search path for DLLs.
8932       hardcode_libdir_flag_spec=' '
8933       allow_undefined_flag=unsupported
8934       # Tell ltmain to make .lib files, not .a files.
8935       libext=lib
8936       # Tell ltmain to make .dll files, not .so files.
8937       shrext_cmds=".dll"
8938       # FIXME: Setting linknames here is a bad hack.
8939       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8940       # The linker will automatically build a .lib file if we build a DLL.
8941       old_archive_From_new_cmds='true'
8942       # FIXME: Should let the user specify the lib program.
8943       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8944       fix_srcfile_path='`cygpath -w "$srcfile"`'
8945       enable_shared_with_static_runtimes=yes
8946       ;;
8947
8948     darwin* | rhapsody*)
8949       case $host_os in
8950         rhapsody* | darwin1.[012])
8951          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8952          ;;
8953        *) # Darwin 1.3 on
8954          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8955            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8956          else
8957            case ${MACOSX_DEPLOYMENT_TARGET} in
8958              10.[012])
8959                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8960                ;;
8961              10.*)
8962                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8963                ;;
8964            esac
8965          fi
8966          ;;
8967       esac
8968       archive_cmds_need_lc=no
8969       hardcode_direct=no
8970       hardcode_automatic=yes
8971       hardcode_shlibpath_var=unsupported
8972       whole_archive_flag_spec=''
8973       link_all_deplibs=yes
8974     if test "$GCC" = yes ; then
8975         output_verbose_link_cmd='echo'
8976         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8977       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8978       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8979       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}'
8980       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}'
8981     else
8982       case $cc_basename in
8983         xlc*)
8984          output_verbose_link_cmd='echo'
8985          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8986          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8987           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8988          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}'
8989           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}'
8990           ;;
8991        *)
8992          ld_shlibs=no
8993           ;;
8994       esac
8995     fi
8996       ;;
8997
8998     dgux*)
8999       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000       hardcode_libdir_flag_spec='-L$libdir'
9001       hardcode_shlibpath_var=no
9002       ;;
9003
9004     freebsd1*)
9005       ld_shlibs=no
9006       ;;
9007
9008     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9009     # support.  Future versions do this automatically, but an explicit c++rt0.o
9010     # does not break anything, and helps significantly (at the cost of a little
9011     # extra space).
9012     freebsd2.2*)
9013       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9014       hardcode_libdir_flag_spec='-R$libdir'
9015       hardcode_direct=yes
9016       hardcode_shlibpath_var=no
9017       ;;
9018
9019     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9020     freebsd2*)
9021       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022       hardcode_direct=yes
9023       hardcode_minus_L=yes
9024       hardcode_shlibpath_var=no
9025       ;;
9026
9027     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9028     freebsd* | dragonfly*)
9029       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9030       hardcode_libdir_flag_spec='-R$libdir'
9031       hardcode_direct=yes
9032       hardcode_shlibpath_var=no
9033       ;;
9034
9035     hpux9*)
9036       if test "$GCC" = yes; then
9037         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'
9038       else
9039         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'
9040       fi
9041       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9042       hardcode_libdir_separator=:
9043       hardcode_direct=yes
9044
9045       # hardcode_minus_L: Not really in the search PATH,
9046       # but as the default location of the library.
9047       hardcode_minus_L=yes
9048       export_dynamic_flag_spec='${wl}-E'
9049       ;;
9050
9051     hpux10*)
9052       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9053         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9054       else
9055         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9056       fi
9057       if test "$with_gnu_ld" = no; then
9058         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9059         hardcode_libdir_separator=:
9060
9061         hardcode_direct=yes
9062         export_dynamic_flag_spec='${wl}-E'
9063
9064         # hardcode_minus_L: Not really in the search PATH,
9065         # but as the default location of the library.
9066         hardcode_minus_L=yes
9067       fi
9068       ;;
9069
9070     hpux11*)
9071       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9072         case $host_cpu in
9073         hppa*64*)
9074           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075           ;;
9076         ia64*)
9077           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9078           ;;
9079         *)
9080           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9081           ;;
9082         esac
9083       else
9084         case $host_cpu in
9085         hppa*64*)
9086           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087           ;;
9088         ia64*)
9089           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9090           ;;
9091         *)
9092           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9093           ;;
9094         esac
9095       fi
9096       if test "$with_gnu_ld" = no; then
9097         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9098         hardcode_libdir_separator=:
9099
9100         case $host_cpu in
9101         hppa*64*|ia64*)
9102           hardcode_libdir_flag_spec_ld='+b $libdir'
9103           hardcode_direct=no
9104           hardcode_shlibpath_var=no
9105           ;;
9106         *)
9107           hardcode_direct=yes
9108           export_dynamic_flag_spec='${wl}-E'
9109
9110           # hardcode_minus_L: Not really in the search PATH,
9111           # but as the default location of the library.
9112           hardcode_minus_L=yes
9113           ;;
9114         esac
9115       fi
9116       ;;
9117
9118     irix5* | irix6* | nonstopux*)
9119       if test "$GCC" = yes; then
9120         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'
9121       else
9122         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'
9123         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9124       fi
9125       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9126       hardcode_libdir_separator=:
9127       link_all_deplibs=yes
9128       ;;
9129
9130     netbsd* | netbsdelf*-gnu)
9131       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9132         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9133       else
9134         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9135       fi
9136       hardcode_libdir_flag_spec='-R$libdir'
9137       hardcode_direct=yes
9138       hardcode_shlibpath_var=no
9139       ;;
9140
9141     newsos6)
9142       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9143       hardcode_direct=yes
9144       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145       hardcode_libdir_separator=:
9146       hardcode_shlibpath_var=no
9147       ;;
9148
9149     openbsd*)
9150       hardcode_direct=yes
9151       hardcode_shlibpath_var=no
9152       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9153         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9154         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9155         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9156         export_dynamic_flag_spec='${wl}-E'
9157       else
9158        case $host_os in
9159          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9160            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9161            hardcode_libdir_flag_spec='-R$libdir'
9162            ;;
9163          *)
9164            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9165            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166            ;;
9167        esac
9168       fi
9169       ;;
9170
9171     os2*)
9172       hardcode_libdir_flag_spec='-L$libdir'
9173       hardcode_minus_L=yes
9174       allow_undefined_flag=unsupported
9175       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'
9176       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9177       ;;
9178
9179     osf3*)
9180       if test "$GCC" = yes; then
9181         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9182         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'
9183       else
9184         allow_undefined_flag=' -expect_unresolved \*'
9185         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'
9186       fi
9187       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188       hardcode_libdir_separator=:
9189       ;;
9190
9191     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9192       if test "$GCC" = yes; then
9193         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9194         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'
9195         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196       else
9197         allow_undefined_flag=' -expect_unresolved \*'
9198         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'
9199         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9200         $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'
9201
9202         # Both c and cxx compiler support -rpath directly
9203         hardcode_libdir_flag_spec='-rpath $libdir'
9204       fi
9205       hardcode_libdir_separator=:
9206       ;;
9207
9208     solaris*)
9209       no_undefined_flag=' -z text'
9210       if test "$GCC" = yes; then
9211         wlarc='${wl}'
9212         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9213         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9214           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9215       else
9216         wlarc=''
9217         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9219         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9220       fi
9221       hardcode_libdir_flag_spec='-R$libdir'
9222       hardcode_shlibpath_var=no
9223       case $host_os in
9224       solaris2.[0-5] | solaris2.[0-5].*) ;;
9225       *)
9226         # The compiler driver will combine linker options so we
9227         # cannot just pass the convience library names through
9228         # without $wl, iff we do not link with $LD.
9229         # Luckily, gcc supports the same syntax we need for Sun Studio.
9230         # Supported since Solaris 2.6 (maybe 2.5.1?)
9231         case $wlarc in
9232         '')
9233           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9234         *)
9235           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' ;;
9236         esac ;;
9237       esac
9238       link_all_deplibs=yes
9239       ;;
9240
9241     sunos4*)
9242       if test "x$host_vendor" = xsequent; then
9243         # Use $CC to link under sequent, because it throws in some extra .o
9244         # files that make .init and .fini sections work.
9245         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9246       else
9247         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9248       fi
9249       hardcode_libdir_flag_spec='-L$libdir'
9250       hardcode_direct=yes
9251       hardcode_minus_L=yes
9252       hardcode_shlibpath_var=no
9253       ;;
9254
9255     sysv4)
9256       case $host_vendor in
9257         sni)
9258           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9259           hardcode_direct=yes # is this really true???
9260         ;;
9261         siemens)
9262           ## LD is ld it makes a PLAMLIB
9263           ## CC just makes a GrossModule.
9264           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9265           reload_cmds='$CC -r -o $output$reload_objs'
9266           hardcode_direct=no
9267         ;;
9268         motorola)
9269           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9270           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9271         ;;
9272       esac
9273       runpath_var='LD_RUN_PATH'
9274       hardcode_shlibpath_var=no
9275       ;;
9276
9277     sysv4.3*)
9278       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279       hardcode_shlibpath_var=no
9280       export_dynamic_flag_spec='-Bexport'
9281       ;;
9282
9283     sysv4*MP*)
9284       if test -d /usr/nec; then
9285         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286         hardcode_shlibpath_var=no
9287         runpath_var=LD_RUN_PATH
9288         hardcode_runpath_var=yes
9289         ld_shlibs=yes
9290       fi
9291       ;;
9292
9293     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9294       no_undefined_flag='${wl}-z,text'
9295       archive_cmds_need_lc=no
9296       hardcode_shlibpath_var=no
9297       runpath_var='LD_RUN_PATH'
9298
9299       if test "$GCC" = yes; then
9300         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9301         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302       else
9303         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9304         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305       fi
9306       ;;
9307
9308     sysv5* | sco3.2v5* | sco5v6*)
9309       # Note: We can NOT use -z defs as we might desire, because we do not
9310       # link with -lc, and that would cause any symbols used from libc to
9311       # always be unresolved, which means just about no library would
9312       # ever link correctly.  If we're not using GNU ld we use -z text
9313       # though, which does catch some bad symbols but isn't as heavy-handed
9314       # as -z defs.
9315       no_undefined_flag='${wl}-z,text'
9316       allow_undefined_flag='${wl}-z,nodefs'
9317       archive_cmds_need_lc=no
9318       hardcode_shlibpath_var=no
9319       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9320       hardcode_libdir_separator=':'
9321       link_all_deplibs=yes
9322       export_dynamic_flag_spec='${wl}-Bexport'
9323       runpath_var='LD_RUN_PATH'
9324
9325       if test "$GCC" = yes; then
9326         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9328       else
9329         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9330         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9331       fi
9332       ;;
9333
9334     uts4*)
9335       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336       hardcode_libdir_flag_spec='-L$libdir'
9337       hardcode_shlibpath_var=no
9338       ;;
9339
9340     *)
9341       ld_shlibs=no
9342       ;;
9343     esac
9344   fi
9345
9346 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9347 echo "${ECHO_T}$ld_shlibs" >&6; }
9348 test "$ld_shlibs" = no && can_build_shared=no
9349
9350 #
9351 # Do we need to explicitly link libc?
9352 #
9353 case "x$archive_cmds_need_lc" in
9354 x|xyes)
9355   # Assume -lc should be added
9356   archive_cmds_need_lc=yes
9357
9358   if test "$enable_shared" = yes && test "$GCC" = yes; then
9359     case $archive_cmds in
9360     *'~'*)
9361       # FIXME: we may have to deal with multi-command sequences.
9362       ;;
9363     '$CC '*)
9364       # Test whether the compiler implicitly links with -lc since on some
9365       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9366       # to ld, don't add -lc before -lgcc.
9367       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9368 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9369       $rm conftest*
9370       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9371
9372       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373   (eval $ac_compile) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); } 2>conftest.err; then
9377         soname=conftest
9378         lib=conftest
9379         libobjs=conftest.$ac_objext
9380         deplibs=
9381         wl=$lt_prog_compiler_wl
9382         pic_flag=$lt_prog_compiler_pic
9383         compiler_flags=-v
9384         linker_flags=-v
9385         verstring=
9386         output_objdir=.
9387         libname=conftest
9388         lt_save_allow_undefined_flag=$allow_undefined_flag
9389         allow_undefined_flag=
9390         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9391   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }
9395         then
9396           archive_cmds_need_lc=no
9397         else
9398           archive_cmds_need_lc=yes
9399         fi
9400         allow_undefined_flag=$lt_save_allow_undefined_flag
9401       else
9402         cat conftest.err 1>&5
9403       fi
9404       $rm conftest*
9405       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9406 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9407       ;;
9408     esac
9409   fi
9410   ;;
9411 esac
9412
9413 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9414 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9415 library_names_spec=
9416 libname_spec='lib$name'
9417 soname_spec=
9418 shrext_cmds=".so"
9419 postinstall_cmds=
9420 postuninstall_cmds=
9421 finish_cmds=
9422 finish_eval=
9423 shlibpath_var=
9424 shlibpath_overrides_runpath=unknown
9425 version_type=none
9426 dynamic_linker="$host_os ld.so"
9427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9428 if test "$GCC" = yes; then
9429   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9430   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9431     # if the path contains ";" then we assume it to be the separator
9432     # otherwise default to the standard path separator (i.e. ":") - it is
9433     # assumed that no part of a normal pathname contains ";" but that should
9434     # okay in the real world where ";" in dirpaths is itself problematic.
9435     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9436   else
9437     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9438   fi
9439 else
9440   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9441 fi
9442 need_lib_prefix=unknown
9443 hardcode_into_libs=no
9444
9445 # when you set need_version to no, make sure it does not cause -set_version
9446 # flags to be left without arguments
9447 need_version=unknown
9448
9449 case $host_os in
9450 aix3*)
9451   version_type=linux
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9453   shlibpath_var=LIBPATH
9454
9455   # AIX 3 has no versioning support, so we append a major version to the name.
9456   soname_spec='${libname}${release}${shared_ext}$major'
9457   ;;
9458
9459 aix4* | aix5*)
9460   version_type=linux
9461   need_lib_prefix=no
9462   need_version=no
9463   hardcode_into_libs=yes
9464   if test "$host_cpu" = ia64; then
9465     # AIX 5 supports IA64
9466     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9467     shlibpath_var=LD_LIBRARY_PATH
9468   else
9469     # With GCC up to 2.95.x, collect2 would create an import file
9470     # for dependence libraries.  The import file would start with
9471     # the line `#! .'.  This would cause the generated library to
9472     # depend on `.', always an invalid library.  This was fixed in
9473     # development snapshots of GCC prior to 3.0.
9474     case $host_os in
9475       aix4 | aix4.[01] | aix4.[01].*)
9476       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9477            echo ' yes '
9478            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9479         :
9480       else
9481         can_build_shared=no
9482       fi
9483       ;;
9484     esac
9485     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9486     # soname into executable. Probably we can add versioning support to
9487     # collect2, so additional links can be useful in future.
9488     if test "$aix_use_runtimelinking" = yes; then
9489       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9490       # instead of lib<name>.a to let people know that these are not
9491       # typical AIX shared libraries.
9492       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493     else
9494       # We preserve .a as extension for shared libraries through AIX4.2
9495       # and later when we are not doing run time linking.
9496       library_names_spec='${libname}${release}.a $libname.a'
9497       soname_spec='${libname}${release}${shared_ext}$major'
9498     fi
9499     shlibpath_var=LIBPATH
9500   fi
9501   ;;
9502
9503 amigaos*)
9504   library_names_spec='$libname.ixlibrary $libname.a'
9505   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9506   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'
9507   ;;
9508
9509 beos*)
9510   library_names_spec='${libname}${shared_ext}'
9511   dynamic_linker="$host_os ld.so"
9512   shlibpath_var=LIBRARY_PATH
9513   ;;
9514
9515 bsdi[45]*)
9516   version_type=linux
9517   need_version=no
9518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519   soname_spec='${libname}${release}${shared_ext}$major'
9520   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9521   shlibpath_var=LD_LIBRARY_PATH
9522   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9523   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9524   # the default ld.so.conf also contains /usr/contrib/lib and
9525   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9526   # libtool to hard-code these into programs
9527   ;;
9528
9529 cygwin* | mingw* | pw32*)
9530   version_type=windows
9531   shrext_cmds=".dll"
9532   need_version=no
9533   need_lib_prefix=no
9534
9535   case $GCC,$host_os in
9536   yes,cygwin* | yes,mingw* | yes,pw32*)
9537     library_names_spec='$libname.dll.a'
9538     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9539     postinstall_cmds='base_file=`basename \${file}`~
9540       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9541       dldir=$destdir/`dirname \$dlpath`~
9542       test -d \$dldir || mkdir -p \$dldir~
9543       $install_prog $dir/$dlname \$dldir/$dlname~
9544       chmod a+x \$dldir/$dlname'
9545     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9546       dlpath=$dir/\$dldll~
9547        $rm \$dlpath'
9548     shlibpath_overrides_runpath=yes
9549
9550     case $host_os in
9551     cygwin*)
9552       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9553       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9555       ;;
9556     mingw*)
9557       # MinGW DLLs use traditional 'lib' prefix
9558       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9559       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9560       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9561         # It is most probably a Windows format PATH printed by
9562         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9563         # path with ; separators, and with drive letters. We can handle the
9564         # drive letters (cygwin fileutils understands them), so leave them,
9565         # especially as we might pass files found there to a mingw objdump,
9566         # which wouldn't understand a cygwinified path. Ahh.
9567         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9568       else
9569         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9570       fi
9571       ;;
9572     pw32*)
9573       # pw32 DLLs use 'pw' prefix rather than 'lib'
9574       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9575       ;;
9576     esac
9577     ;;
9578
9579   *)
9580     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9581     ;;
9582   esac
9583   dynamic_linker='Win32 ld.exe'
9584   # FIXME: first we should search . and the directory the executable is in
9585   shlibpath_var=PATH
9586   ;;
9587
9588 darwin* | rhapsody*)
9589   dynamic_linker="$host_os dyld"
9590   version_type=darwin
9591   need_lib_prefix=no
9592   need_version=no
9593   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9594   soname_spec='${libname}${release}${major}$shared_ext'
9595   shlibpath_overrides_runpath=yes
9596   shlibpath_var=DYLD_LIBRARY_PATH
9597   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9598   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9599   if test "$GCC" = yes; then
9600     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"`
9601   else
9602     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9603   fi
9604   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9605   ;;
9606
9607 dgux*)
9608   version_type=linux
9609   need_lib_prefix=no
9610   need_version=no
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9612   soname_spec='${libname}${release}${shared_ext}$major'
9613   shlibpath_var=LD_LIBRARY_PATH
9614   ;;
9615
9616 freebsd1*)
9617   dynamic_linker=no
9618   ;;
9619
9620 freebsd* | dragonfly*)
9621   # DragonFly does not have aout.  When/if they implement a new
9622   # versioning mechanism, adjust this.
9623   if test -x /usr/bin/objformat; then
9624     objformat=`/usr/bin/objformat`
9625   else
9626     case $host_os in
9627     freebsd[123]*) objformat=aout ;;
9628     *) objformat=elf ;;
9629     esac
9630   fi
9631   version_type=freebsd-$objformat
9632   case $version_type in
9633     freebsd-elf*)
9634       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9635       need_version=no
9636       need_lib_prefix=no
9637       ;;
9638     freebsd-*)
9639       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9640       need_version=yes
9641       ;;
9642   esac
9643   shlibpath_var=LD_LIBRARY_PATH
9644   case $host_os in
9645   freebsd2*)
9646     shlibpath_overrides_runpath=yes
9647     ;;
9648   freebsd3.[01]* | freebsdelf3.[01]*)
9649     shlibpath_overrides_runpath=yes
9650     hardcode_into_libs=yes
9651     ;;
9652   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9653   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9654     shlibpath_overrides_runpath=no
9655     hardcode_into_libs=yes
9656     ;;
9657   freebsd*) # from 4.6 on
9658     shlibpath_overrides_runpath=yes
9659     hardcode_into_libs=yes
9660     ;;
9661   esac
9662   ;;
9663
9664 gnu*)
9665   version_type=linux
9666   need_lib_prefix=no
9667   need_version=no
9668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9669   soname_spec='${libname}${release}${shared_ext}$major'
9670   shlibpath_var=LD_LIBRARY_PATH
9671   hardcode_into_libs=yes
9672   ;;
9673
9674 hpux9* | hpux10* | hpux11*)
9675   # Give a soname corresponding to the major version so that dld.sl refuses to
9676   # link against other versions.
9677   version_type=sunos
9678   need_lib_prefix=no
9679   need_version=no
9680   case $host_cpu in
9681   ia64*)
9682     shrext_cmds='.so'
9683     hardcode_into_libs=yes
9684     dynamic_linker="$host_os dld.so"
9685     shlibpath_var=LD_LIBRARY_PATH
9686     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688     soname_spec='${libname}${release}${shared_ext}$major'
9689     if test "X$HPUX_IA64_MODE" = X32; then
9690       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9691     else
9692       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9693     fi
9694     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9695     ;;
9696    hppa*64*)
9697      shrext_cmds='.sl'
9698      hardcode_into_libs=yes
9699      dynamic_linker="$host_os dld.sl"
9700      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9701      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703      soname_spec='${libname}${release}${shared_ext}$major'
9704      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9705      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9706      ;;
9707    *)
9708     shrext_cmds='.sl'
9709     dynamic_linker="$host_os dld.sl"
9710     shlibpath_var=SHLIB_PATH
9711     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713     soname_spec='${libname}${release}${shared_ext}$major'
9714     ;;
9715   esac
9716   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9717   postinstall_cmds='chmod 555 $lib'
9718   ;;
9719
9720 interix3*)
9721   version_type=linux
9722   need_lib_prefix=no
9723   need_version=no
9724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725   soname_spec='${libname}${release}${shared_ext}$major'
9726   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9727   shlibpath_var=LD_LIBRARY_PATH
9728   shlibpath_overrides_runpath=no
9729   hardcode_into_libs=yes
9730   ;;
9731
9732 irix5* | irix6* | nonstopux*)
9733   case $host_os in
9734     nonstopux*) version_type=nonstopux ;;
9735     *)
9736         if test "$lt_cv_prog_gnu_ld" = yes; then
9737                 version_type=linux
9738         else
9739                 version_type=irix
9740         fi ;;
9741   esac
9742   need_lib_prefix=no
9743   need_version=no
9744   soname_spec='${libname}${release}${shared_ext}$major'
9745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9746   case $host_os in
9747   irix5* | nonstopux*)
9748     libsuff= shlibsuff=
9749     ;;
9750   *)
9751     case $LD in # libtool.m4 will add one of these switches to LD
9752     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9753       libsuff= shlibsuff= libmagic=32-bit;;
9754     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9755       libsuff=32 shlibsuff=N32 libmagic=N32;;
9756     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9757       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9758     *) libsuff= shlibsuff= libmagic=never-match;;
9759     esac
9760     ;;
9761   esac
9762   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9763   shlibpath_overrides_runpath=no
9764   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9765   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9766   hardcode_into_libs=yes
9767   ;;
9768
9769 # No shared lib support for Linux oldld, aout, or coff.
9770 linux*oldld* | linux*aout* | linux*coff*)
9771   dynamic_linker=no
9772   ;;
9773
9774 # This must be Linux ELF.
9775 linux* | k*bsd*-gnu)
9776   version_type=linux
9777   need_lib_prefix=no
9778   need_version=no
9779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780   soname_spec='${libname}${release}${shared_ext}$major'
9781   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9782   shlibpath_var=LD_LIBRARY_PATH
9783   shlibpath_overrides_runpath=no
9784   # This implies no fast_install, which is unacceptable.
9785   # Some rework will be needed to allow for fast_install
9786   # before this can be enabled.
9787   hardcode_into_libs=yes
9788
9789   # Append ld.so.conf contents to the search path
9790   if test -f /etc/ld.so.conf; then
9791     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' ' '`
9792     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9793   fi
9794
9795   # We used to test for /lib/ld.so.1 and disable shared libraries on
9796   # powerpc, because MkLinux only supported shared libraries with the
9797   # GNU dynamic linker.  Since this was broken with cross compilers,
9798   # most powerpc-linux boxes support dynamic linking these days and
9799   # people can always --disable-shared, the test was removed, and we
9800   # assume the GNU/Linux dynamic linker is in use.
9801   dynamic_linker='GNU/Linux ld.so'
9802   ;;
9803
9804 netbsdelf*-gnu)
9805   version_type=linux
9806   need_lib_prefix=no
9807   need_version=no
9808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9809   soname_spec='${libname}${release}${shared_ext}$major'
9810   shlibpath_var=LD_LIBRARY_PATH
9811   shlibpath_overrides_runpath=no
9812   hardcode_into_libs=yes
9813   dynamic_linker='NetBSD ld.elf_so'
9814   ;;
9815
9816 netbsd*)
9817   version_type=sunos
9818   need_lib_prefix=no
9819   need_version=no
9820   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9823     dynamic_linker='NetBSD (a.out) ld.so'
9824   else
9825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9826     soname_spec='${libname}${release}${shared_ext}$major'
9827     dynamic_linker='NetBSD ld.elf_so'
9828   fi
9829   shlibpath_var=LD_LIBRARY_PATH
9830   shlibpath_overrides_runpath=yes
9831   hardcode_into_libs=yes
9832   ;;
9833
9834 newsos6)
9835   version_type=linux
9836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837   shlibpath_var=LD_LIBRARY_PATH
9838   shlibpath_overrides_runpath=yes
9839   ;;
9840
9841 nto-qnx*)
9842   version_type=linux
9843   need_lib_prefix=no
9844   need_version=no
9845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846   soname_spec='${libname}${release}${shared_ext}$major'
9847   shlibpath_var=LD_LIBRARY_PATH
9848   shlibpath_overrides_runpath=yes
9849   ;;
9850
9851 openbsd*)
9852   version_type=sunos
9853   sys_lib_dlsearch_path_spec="/usr/lib"
9854   need_lib_prefix=no
9855   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9856   case $host_os in
9857     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9858     *)                         need_version=no  ;;
9859   esac
9860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9862   shlibpath_var=LD_LIBRARY_PATH
9863   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9864     case $host_os in
9865       openbsd2.[89] | openbsd2.[89].*)
9866         shlibpath_overrides_runpath=no
9867         ;;
9868       *)
9869         shlibpath_overrides_runpath=yes
9870         ;;
9871       esac
9872   else
9873     shlibpath_overrides_runpath=yes
9874   fi
9875   ;;
9876
9877 os2*)
9878   libname_spec='$name'
9879   shrext_cmds=".dll"
9880   need_lib_prefix=no
9881   library_names_spec='$libname${shared_ext} $libname.a'
9882   dynamic_linker='OS/2 ld.exe'
9883   shlibpath_var=LIBPATH
9884   ;;
9885
9886 osf3* | osf4* | osf5*)
9887   version_type=osf
9888   need_lib_prefix=no
9889   need_version=no
9890   soname_spec='${libname}${release}${shared_ext}$major'
9891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892   shlibpath_var=LD_LIBRARY_PATH
9893   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9894   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9895   ;;
9896
9897 solaris*)
9898   version_type=linux
9899   need_lib_prefix=no
9900   need_version=no
9901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902   soname_spec='${libname}${release}${shared_ext}$major'
9903   shlibpath_var=LD_LIBRARY_PATH
9904   shlibpath_overrides_runpath=yes
9905   hardcode_into_libs=yes
9906   # ldd complains unless libraries are executable
9907   postinstall_cmds='chmod +x $lib'
9908   ;;
9909
9910 sunos4*)
9911   version_type=sunos
9912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9914   shlibpath_var=LD_LIBRARY_PATH
9915   shlibpath_overrides_runpath=yes
9916   if test "$with_gnu_ld" = yes; then
9917     need_lib_prefix=no
9918   fi
9919   need_version=yes
9920   ;;
9921
9922 sysv4 | sysv4.3*)
9923   version_type=linux
9924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925   soname_spec='${libname}${release}${shared_ext}$major'
9926   shlibpath_var=LD_LIBRARY_PATH
9927   case $host_vendor in
9928     sni)
9929       shlibpath_overrides_runpath=no
9930       need_lib_prefix=no
9931       export_dynamic_flag_spec='${wl}-Blargedynsym'
9932       runpath_var=LD_RUN_PATH
9933       ;;
9934     siemens)
9935       need_lib_prefix=no
9936       ;;
9937     motorola)
9938       need_lib_prefix=no
9939       need_version=no
9940       shlibpath_overrides_runpath=no
9941       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9942       ;;
9943   esac
9944   ;;
9945
9946 sysv4*MP*)
9947   if test -d /usr/nec ;then
9948     version_type=linux
9949     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9950     soname_spec='$libname${shared_ext}.$major'
9951     shlibpath_var=LD_LIBRARY_PATH
9952   fi
9953   ;;
9954
9955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9956   version_type=freebsd-elf
9957   need_lib_prefix=no
9958   need_version=no
9959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9960   soname_spec='${libname}${release}${shared_ext}$major'
9961   shlibpath_var=LD_LIBRARY_PATH
9962   hardcode_into_libs=yes
9963   if test "$with_gnu_ld" = yes; then
9964     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9965     shlibpath_overrides_runpath=no
9966   else
9967     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9968     shlibpath_overrides_runpath=yes
9969     case $host_os in
9970       sco3.2v5*)
9971         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9972         ;;
9973     esac
9974   fi
9975   sys_lib_dlsearch_path_spec='/usr/lib'
9976   ;;
9977
9978 uts4*)
9979   version_type=linux
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   soname_spec='${libname}${release}${shared_ext}$major'
9982   shlibpath_var=LD_LIBRARY_PATH
9983   ;;
9984
9985 *)
9986   dynamic_linker=no
9987   ;;
9988 esac
9989 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9990 echo "${ECHO_T}$dynamic_linker" >&6; }
9991 test "$dynamic_linker" = no && can_build_shared=no
9992
9993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9994 if test "$GCC" = yes; then
9995   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9996 fi
9997
9998 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9999 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10000 hardcode_action=
10001 if test -n "$hardcode_libdir_flag_spec" || \
10002    test -n "$runpath_var" || \
10003    test "X$hardcode_automatic" = "Xyes" ; then
10004
10005   # We can hardcode non-existant directories.
10006   if test "$hardcode_direct" != no &&
10007      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10008      # have to relink, otherwise we might link with an installed library
10009      # when we should be linking with a yet-to-be-installed one
10010      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10011      test "$hardcode_minus_L" != no; then
10012     # Linking always hardcodes the temporary library directory.
10013     hardcode_action=relink
10014   else
10015     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10016     hardcode_action=immediate
10017   fi
10018 else
10019   # We cannot hardcode anything, or else we can only hardcode existing
10020   # directories.
10021   hardcode_action=unsupported
10022 fi
10023 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10024 echo "${ECHO_T}$hardcode_action" >&6; }
10025
10026 if test "$hardcode_action" = relink; then
10027   # Fast installation is not supported
10028   enable_fast_install=no
10029 elif test "$shlibpath_overrides_runpath" = yes ||
10030      test "$enable_shared" = no; then
10031   # Fast installation is not necessary
10032   enable_fast_install=needless
10033 fi
10034
10035 striplib=
10036 old_striplib=
10037 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10038 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10039 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10040   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10041   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10042   { echo "$as_me:$LINENO: result: yes" >&5
10043 echo "${ECHO_T}yes" >&6; }
10044 else
10045 # FIXME - insert some real tests, host_os isn't really good enough
10046   case $host_os in
10047    darwin*)
10048        if test -n "$STRIP" ; then
10049          striplib="$STRIP -x"
10050          { echo "$as_me:$LINENO: result: yes" >&5
10051 echo "${ECHO_T}yes" >&6; }
10052        else
10053   { echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6; }
10055 fi
10056        ;;
10057    *)
10058   { echo "$as_me:$LINENO: result: no" >&5
10059 echo "${ECHO_T}no" >&6; }
10060     ;;
10061   esac
10062 fi
10063
10064 if test "x$enable_dlopen" != xyes; then
10065   enable_dlopen=unknown
10066   enable_dlopen_self=unknown
10067   enable_dlopen_self_static=unknown
10068 else
10069   lt_cv_dlopen=no
10070   lt_cv_dlopen_libs=
10071
10072   case $host_os in
10073   beos*)
10074     lt_cv_dlopen="load_add_on"
10075     lt_cv_dlopen_libs=
10076     lt_cv_dlopen_self=yes
10077     ;;
10078
10079   mingw* | pw32*)
10080     lt_cv_dlopen="LoadLibrary"
10081     lt_cv_dlopen_libs=
10082    ;;
10083
10084   cygwin*)
10085     lt_cv_dlopen="dlopen"
10086     lt_cv_dlopen_libs=
10087    ;;
10088
10089   darwin*)
10090   # if libdl is installed we need to link against it
10091     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10092 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10094   echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096   ac_check_lib_save_LIBS=$LIBS
10097 LIBS="-ldl  $LIBS"
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104
10105 /* Override any GCC internal prototype to avoid an error.
10106    Use char because int might match the return type of a GCC
10107    builtin and then its argument prototype would still apply.  */
10108 #ifdef __cplusplus
10109 extern "C"
10110 #endif
10111 char dlopen ();
10112 int
10113 main ()
10114 {
10115 return dlopen ();
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124   *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127   (eval "$ac_link") 2>conftest.er1
10128   ac_status=$?
10129   grep -v '^ *+' conftest.er1 >conftest.err
10130   rm -f conftest.er1
10131   cat conftest.err >&5
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } && {
10134          test -z "$ac_c_werror_flag" ||
10135          test ! -s conftest.err
10136        } && test -s conftest$ac_exeext &&
10137        $as_test_x conftest$ac_exeext; then
10138   ac_cv_lib_dl_dlopen=yes
10139 else
10140   echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143         ac_cv_lib_dl_dlopen=no
10144 fi
10145
10146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10147       conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10149 fi
10150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10152 if test $ac_cv_lib_dl_dlopen = yes; then
10153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10154 else
10155
10156     lt_cv_dlopen="dyld"
10157     lt_cv_dlopen_libs=
10158     lt_cv_dlopen_self=yes
10159
10160 fi
10161
10162    ;;
10163
10164   *)
10165     { echo "$as_me:$LINENO: checking for shl_load" >&5
10166 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10167 if test "${ac_cv_func_shl_load+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h.  */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h.  */
10176 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10178 #define shl_load innocuous_shl_load
10179
10180 /* System header to define __stub macros and hopefully few prototypes,
10181     which can conflict with char shl_load (); below.
10182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10183     <limits.h> exists even on freestanding compilers.  */
10184
10185 #ifdef __STDC__
10186 # include <limits.h>
10187 #else
10188 # include <assert.h>
10189 #endif
10190
10191 #undef shl_load
10192
10193 /* Override any GCC internal prototype to avoid an error.
10194    Use char because int might match the return type of a GCC
10195    builtin and then its argument prototype would still apply.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char shl_load ();
10200 /* The GNU C library defines this for functions which it implements
10201     to always fail with ENOSYS.  Some functions are actually named
10202     something starting with __ and the normal name is an alias.  */
10203 #if defined __stub_shl_load || defined __stub___shl_load
10204 choke me
10205 #endif
10206
10207 int
10208 main ()
10209 {
10210 return shl_load ();
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (ac_try="$ac_link"
10217 case "(($ac_try" in
10218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219   *) ac_try_echo=$ac_try;;
10220 esac
10221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222   (eval "$ac_link") 2>conftest.er1
10223   ac_status=$?
10224   grep -v '^ *+' conftest.er1 >conftest.err
10225   rm -f conftest.er1
10226   cat conftest.err >&5
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); } && {
10229          test -z "$ac_c_werror_flag" ||
10230          test ! -s conftest.err
10231        } && test -s conftest$ac_exeext &&
10232        $as_test_x conftest$ac_exeext; then
10233   ac_cv_func_shl_load=yes
10234 else
10235   echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10237
10238         ac_cv_func_shl_load=no
10239 fi
10240
10241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10242       conftest$ac_exeext conftest.$ac_ext
10243 fi
10244 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10245 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10246 if test $ac_cv_func_shl_load = yes; then
10247   lt_cv_dlopen="shl_load"
10248 else
10249   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10250 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10251 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10252   echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254   ac_check_lib_save_LIBS=$LIBS
10255 LIBS="-ldld  $LIBS"
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262
10263 /* Override any GCC internal prototype to avoid an error.
10264    Use char because int might match the return type of a GCC
10265    builtin and then its argument prototype would still apply.  */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char shl_load ();
10270 int
10271 main ()
10272 {
10273 return shl_load ();
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext conftest$ac_exeext
10279 if { (ac_try="$ac_link"
10280 case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285   (eval "$ac_link") 2>conftest.er1
10286   ac_status=$?
10287   grep -v '^ *+' conftest.er1 >conftest.err
10288   rm -f conftest.er1
10289   cat conftest.err >&5
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } && {
10292          test -z "$ac_c_werror_flag" ||
10293          test ! -s conftest.err
10294        } && test -s conftest$ac_exeext &&
10295        $as_test_x conftest$ac_exeext; then
10296   ac_cv_lib_dld_shl_load=yes
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301         ac_cv_lib_dld_shl_load=no
10302 fi
10303
10304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10305       conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10307 fi
10308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10309 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10310 if test $ac_cv_lib_dld_shl_load = yes; then
10311   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10312 else
10313   { echo "$as_me:$LINENO: checking for dlopen" >&5
10314 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10315 if test "${ac_cv_func_dlopen+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10326 #define dlopen innocuous_dlopen
10327
10328 /* System header to define __stub macros and hopefully few prototypes,
10329     which can conflict with char dlopen (); below.
10330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331     <limits.h> exists even on freestanding compilers.  */
10332
10333 #ifdef __STDC__
10334 # include <limits.h>
10335 #else
10336 # include <assert.h>
10337 #endif
10338
10339 #undef dlopen
10340
10341 /* Override any GCC internal prototype to avoid an error.
10342    Use char because int might match the return type of a GCC
10343    builtin and then its argument prototype would still apply.  */
10344 #ifdef __cplusplus
10345 extern "C"
10346 #endif
10347 char dlopen ();
10348 /* The GNU C library defines this for functions which it implements
10349     to always fail with ENOSYS.  Some functions are actually named
10350     something starting with __ and the normal name is an alias.  */
10351 #if defined __stub_dlopen || defined __stub___dlopen
10352 choke me
10353 #endif
10354
10355 int
10356 main ()
10357 {
10358 return dlopen ();
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_link") 2>conftest.er1
10371   ac_status=$?
10372   grep -v '^ *+' conftest.er1 >conftest.err
10373   rm -f conftest.er1
10374   cat conftest.err >&5
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); } && {
10377          test -z "$ac_c_werror_flag" ||
10378          test ! -s conftest.err
10379        } && test -s conftest$ac_exeext &&
10380        $as_test_x conftest$ac_exeext; then
10381   ac_cv_func_dlopen=yes
10382 else
10383   echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10385
10386         ac_cv_func_dlopen=no
10387 fi
10388
10389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10390       conftest$ac_exeext conftest.$ac_ext
10391 fi
10392 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10393 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10394 if test $ac_cv_func_dlopen = yes; then
10395   lt_cv_dlopen="dlopen"
10396 else
10397   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   ac_check_lib_save_LIBS=$LIBS
10403 LIBS="-ldl  $LIBS"
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410
10411 /* Override any GCC internal prototype to avoid an error.
10412    Use char because int might match the return type of a GCC
10413    builtin and then its argument prototype would still apply.  */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 char dlopen ();
10418 int
10419 main ()
10420 {
10421 return dlopen ();
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (ac_try="$ac_link"
10428 case "(($ac_try" in
10429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430   *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433   (eval "$ac_link") 2>conftest.er1
10434   ac_status=$?
10435   grep -v '^ *+' conftest.er1 >conftest.err
10436   rm -f conftest.er1
10437   cat conftest.err >&5
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } && {
10440          test -z "$ac_c_werror_flag" ||
10441          test ! -s conftest.err
10442        } && test -s conftest$ac_exeext &&
10443        $as_test_x conftest$ac_exeext; then
10444   ac_cv_lib_dl_dlopen=yes
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449         ac_cv_lib_dl_dlopen=no
10450 fi
10451
10452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10453       conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10455 fi
10456 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10458 if test $ac_cv_lib_dl_dlopen = yes; then
10459   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10460 else
10461   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-lsvld  $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474
10475 /* Override any GCC internal prototype to avoid an error.
10476    Use char because int might match the return type of a GCC
10477    builtin and then its argument prototype would still apply.  */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char dlopen ();
10482 int
10483 main ()
10484 {
10485 return dlopen ();
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (ac_try="$ac_link"
10492 case "(($ac_try" in
10493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10494   *) ac_try_echo=$ac_try;;
10495 esac
10496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10497   (eval "$ac_link") 2>conftest.er1
10498   ac_status=$?
10499   grep -v '^ *+' conftest.er1 >conftest.err
10500   rm -f conftest.er1
10501   cat conftest.err >&5
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); } && {
10504          test -z "$ac_c_werror_flag" ||
10505          test ! -s conftest.err
10506        } && test -s conftest$ac_exeext &&
10507        $as_test_x conftest$ac_exeext; then
10508   ac_cv_lib_svld_dlopen=yes
10509 else
10510   echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513         ac_cv_lib_svld_dlopen=no
10514 fi
10515
10516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10517       conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10519 fi
10520 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10521 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10522 if test $ac_cv_lib_svld_dlopen = yes; then
10523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10524 else
10525   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10526 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10527 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-ldld  $LIBS"
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540    Use char because int might match the return type of a GCC
10541    builtin and then its argument prototype would still apply.  */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char dld_link ();
10546 int
10547 main ()
10548 {
10549 return dld_link ();
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_link") 2>conftest.er1
10562   ac_status=$?
10563   grep -v '^ *+' conftest.er1 >conftest.err
10564   rm -f conftest.er1
10565   cat conftest.err >&5
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } && {
10568          test -z "$ac_c_werror_flag" ||
10569          test ! -s conftest.err
10570        } && test -s conftest$ac_exeext &&
10571        $as_test_x conftest$ac_exeext; then
10572   ac_cv_lib_dld_dld_link=yes
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577         ac_cv_lib_dld_dld_link=no
10578 fi
10579
10580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10581       conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10583 fi
10584 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10585 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10586 if test $ac_cv_lib_dld_dld_link = yes; then
10587   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10588 fi
10589
10590
10591 fi
10592
10593
10594 fi
10595
10596
10597 fi
10598
10599
10600 fi
10601
10602
10603 fi
10604
10605     ;;
10606   esac
10607
10608   if test "x$lt_cv_dlopen" != xno; then
10609     enable_dlopen=yes
10610   else
10611     enable_dlopen=no
10612   fi
10613
10614   case $lt_cv_dlopen in
10615   dlopen)
10616     save_CPPFLAGS="$CPPFLAGS"
10617     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10618
10619     save_LDFLAGS="$LDFLAGS"
10620     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10621
10622     save_LIBS="$LIBS"
10623     LIBS="$lt_cv_dlopen_libs $LIBS"
10624
10625     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10626 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10627 if test "${lt_cv_dlopen_self+set}" = set; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630           if test "$cross_compiling" = yes; then :
10631   lt_cv_dlopen_self=cross
10632 else
10633   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10634   lt_status=$lt_dlunknown
10635   cat > conftest.$ac_ext <<EOF
10636 #line 10636 "configure"
10637 #include "confdefs.h"
10638
10639 #if HAVE_DLFCN_H
10640 #include <dlfcn.h>
10641 #endif
10642
10643 #include <stdio.h>
10644
10645 #ifdef RTLD_GLOBAL
10646 #  define LT_DLGLOBAL           RTLD_GLOBAL
10647 #else
10648 #  ifdef DL_GLOBAL
10649 #    define LT_DLGLOBAL         DL_GLOBAL
10650 #  else
10651 #    define LT_DLGLOBAL         0
10652 #  endif
10653 #endif
10654
10655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10656    find out it does not work in some platform. */
10657 #ifndef LT_DLLAZY_OR_NOW
10658 #  ifdef RTLD_LAZY
10659 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10660 #  else
10661 #    ifdef DL_LAZY
10662 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10663 #    else
10664 #      ifdef RTLD_NOW
10665 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10666 #      else
10667 #        ifdef DL_NOW
10668 #          define LT_DLLAZY_OR_NOW      DL_NOW
10669 #        else
10670 #          define LT_DLLAZY_OR_NOW      0
10671 #        endif
10672 #      endif
10673 #    endif
10674 #  endif
10675 #endif
10676
10677 #ifdef __cplusplus
10678 extern "C" void exit (int);
10679 #endif
10680
10681 void fnord() { int i=42;}
10682 int main ()
10683 {
10684   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10685   int status = $lt_dlunknown;
10686
10687   if (self)
10688     {
10689       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10690       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10691       /* dlclose (self); */
10692     }
10693   else
10694     puts (dlerror ());
10695
10696     exit (status);
10697 }
10698 EOF
10699   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700   (eval $ac_link) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10704     (./conftest; exit; ) >&5 2>/dev/null
10705     lt_status=$?
10706     case x$lt_status in
10707       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10708       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10709       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10710     esac
10711   else :
10712     # compilation failed
10713     lt_cv_dlopen_self=no
10714   fi
10715 fi
10716 rm -fr conftest*
10717
10718
10719 fi
10720 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10721 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10722
10723     if test "x$lt_cv_dlopen_self" = xyes; then
10724       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10725       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10726 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10727 if test "${lt_cv_dlopen_self_static+set}" = set; then
10728   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730           if test "$cross_compiling" = yes; then :
10731   lt_cv_dlopen_self_static=cross
10732 else
10733   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10734   lt_status=$lt_dlunknown
10735   cat > conftest.$ac_ext <<EOF
10736 #line 10736 "configure"
10737 #include "confdefs.h"
10738
10739 #if HAVE_DLFCN_H
10740 #include <dlfcn.h>
10741 #endif
10742
10743 #include <stdio.h>
10744
10745 #ifdef RTLD_GLOBAL
10746 #  define LT_DLGLOBAL           RTLD_GLOBAL
10747 #else
10748 #  ifdef DL_GLOBAL
10749 #    define LT_DLGLOBAL         DL_GLOBAL
10750 #  else
10751 #    define LT_DLGLOBAL         0
10752 #  endif
10753 #endif
10754
10755 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10756    find out it does not work in some platform. */
10757 #ifndef LT_DLLAZY_OR_NOW
10758 #  ifdef RTLD_LAZY
10759 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10760 #  else
10761 #    ifdef DL_LAZY
10762 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10763 #    else
10764 #      ifdef RTLD_NOW
10765 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10766 #      else
10767 #        ifdef DL_NOW
10768 #          define LT_DLLAZY_OR_NOW      DL_NOW
10769 #        else
10770 #          define LT_DLLAZY_OR_NOW      0
10771 #        endif
10772 #      endif
10773 #    endif
10774 #  endif
10775 #endif
10776
10777 #ifdef __cplusplus
10778 extern "C" void exit (int);
10779 #endif
10780
10781 void fnord() { int i=42;}
10782 int main ()
10783 {
10784   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10785   int status = $lt_dlunknown;
10786
10787   if (self)
10788     {
10789       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10790       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10791       /* dlclose (self); */
10792     }
10793   else
10794     puts (dlerror ());
10795
10796     exit (status);
10797 }
10798 EOF
10799   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10800   (eval $ac_link) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10804     (./conftest; exit; ) >&5 2>/dev/null
10805     lt_status=$?
10806     case x$lt_status in
10807       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10808       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10809       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10810     esac
10811   else :
10812     # compilation failed
10813     lt_cv_dlopen_self_static=no
10814   fi
10815 fi
10816 rm -fr conftest*
10817
10818
10819 fi
10820 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10821 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10822     fi
10823
10824     CPPFLAGS="$save_CPPFLAGS"
10825     LDFLAGS="$save_LDFLAGS"
10826     LIBS="$save_LIBS"
10827     ;;
10828   esac
10829
10830   case $lt_cv_dlopen_self in
10831   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10832   *) enable_dlopen_self=unknown ;;
10833   esac
10834
10835   case $lt_cv_dlopen_self_static in
10836   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10837   *) enable_dlopen_self_static=unknown ;;
10838   esac
10839 fi
10840
10841
10842 # Report which library types will actually be built
10843 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10844 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10845 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10846 echo "${ECHO_T}$can_build_shared" >&6; }
10847
10848 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10849 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10850 test "$can_build_shared" = "no" && enable_shared=no
10851
10852 # On AIX, shared libraries and static libraries use the same namespace, and
10853 # are all built from PIC.
10854 case $host_os in
10855 aix3*)
10856   test "$enable_shared" = yes && enable_static=no
10857   if test -n "$RANLIB"; then
10858     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10859     postinstall_cmds='$RANLIB $lib'
10860   fi
10861   ;;
10862
10863 aix4* | aix5*)
10864   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10865     test "$enable_shared" = yes && enable_static=no
10866   fi
10867     ;;
10868 esac
10869 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10870 echo "${ECHO_T}$enable_shared" >&6; }
10871
10872 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10873 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10874 # Make sure either enable_shared or enable_static is yes.
10875 test "$enable_shared" = yes || enable_static=yes
10876 { echo "$as_me:$LINENO: result: $enable_static" >&5
10877 echo "${ECHO_T}$enable_static" >&6; }
10878
10879 # The else clause should only fire when bootstrapping the
10880 # libtool distribution, otherwise you forgot to ship ltmain.sh
10881 # with your package, and you will get complaints that there are
10882 # no rules to generate ltmain.sh.
10883 if test -f "$ltmain"; then
10884   # See if we are running on zsh, and set the options which allow our commands through
10885   # without removal of \ escapes.
10886   if test -n "${ZSH_VERSION+set}" ; then
10887     setopt NO_GLOB_SUBST
10888   fi
10889   # Now quote all the things that may contain metacharacters while being
10890   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10891   # variables and quote the copies for generation of the libtool script.
10892   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10893     SED SHELL STRIP \
10894     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10895     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10896     deplibs_check_method reload_flag reload_cmds need_locks \
10897     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10898     lt_cv_sys_global_symbol_to_c_name_address \
10899     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10900     old_postinstall_cmds old_postuninstall_cmds \
10901     compiler \
10902     CC \
10903     LD \
10904     lt_prog_compiler_wl \
10905     lt_prog_compiler_pic \
10906     lt_prog_compiler_static \
10907     lt_prog_compiler_no_builtin_flag \
10908     export_dynamic_flag_spec \
10909     thread_safe_flag_spec \
10910     whole_archive_flag_spec \
10911     enable_shared_with_static_runtimes \
10912     old_archive_cmds \
10913     old_archive_from_new_cmds \
10914     predep_objects \
10915     postdep_objects \
10916     predeps \
10917     postdeps \
10918     compiler_lib_search_path \
10919     archive_cmds \
10920     archive_expsym_cmds \
10921     postinstall_cmds \
10922     postuninstall_cmds \
10923     old_archive_from_expsyms_cmds \
10924     allow_undefined_flag \
10925     no_undefined_flag \
10926     export_symbols_cmds \
10927     hardcode_libdir_flag_spec \
10928     hardcode_libdir_flag_spec_ld \
10929     hardcode_libdir_separator \
10930     hardcode_automatic \
10931     module_cmds \
10932     module_expsym_cmds \
10933     lt_cv_prog_compiler_c_o \
10934     exclude_expsyms \
10935     include_expsyms; do
10936
10937     case $var in
10938     old_archive_cmds | \
10939     old_archive_from_new_cmds | \
10940     archive_cmds | \
10941     archive_expsym_cmds | \
10942     module_cmds | \
10943     module_expsym_cmds | \
10944     old_archive_from_expsyms_cmds | \
10945     export_symbols_cmds | \
10946     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10947     postinstall_cmds | postuninstall_cmds | \
10948     old_postinstall_cmds | old_postuninstall_cmds | \
10949     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10950       # Double-quote double-evaled strings.
10951       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10952       ;;
10953     *)
10954       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10955       ;;
10956     esac
10957   done
10958
10959   case $lt_echo in
10960   *'\$0 --fallback-echo"')
10961     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10962     ;;
10963   esac
10964
10965 cfgfile="${ofile}T"
10966   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10967   $rm -f "$cfgfile"
10968   { echo "$as_me:$LINENO: creating $ofile" >&5
10969 echo "$as_me: creating $ofile" >&6;}
10970
10971   cat <<__EOF__ >> "$cfgfile"
10972 #! $SHELL
10973
10974 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10975 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10976 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10977 #
10978 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10979 # Free Software Foundation, Inc.
10980 #
10981 # This file is part of GNU Libtool:
10982 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10983 #
10984 # This program is free software; you can redistribute it and/or modify
10985 # it under the terms of the GNU General Public License as published by
10986 # the Free Software Foundation; either version 2 of the License, or
10987 # (at your option) any later version.
10988 #
10989 # This program is distributed in the hope that it will be useful, but
10990 # WITHOUT ANY WARRANTY; without even the implied warranty of
10991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10992 # General Public License for more details.
10993 #
10994 # You should have received a copy of the GNU General Public License
10995 # along with this program; if not, write to the Free Software
10996 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10997 #
10998 # As a special exception to the GNU General Public License, if you
10999 # distribute this file as part of a program that contains a
11000 # configuration script generated by Autoconf, you may include it under
11001 # the same distribution terms that you use for the rest of that program.
11002
11003 # A sed program that does not truncate output.
11004 SED=$lt_SED
11005
11006 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11007 Xsed="$SED -e 1s/^X//"
11008
11009 # The HP-UX ksh and POSIX shell print the target directory to stdout
11010 # if CDPATH is set.
11011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11012
11013 # The names of the tagged configurations supported by this script.
11014 available_tags=
11015
11016 # ### BEGIN LIBTOOL CONFIG
11017
11018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11019
11020 # Shell to use when invoking shell scripts.
11021 SHELL=$lt_SHELL
11022
11023 # Whether or not to build shared libraries.
11024 build_libtool_libs=$enable_shared
11025
11026 # Whether or not to build static libraries.
11027 build_old_libs=$enable_static
11028
11029 # Whether or not to add -lc for building shared libraries.
11030 build_libtool_need_lc=$archive_cmds_need_lc
11031
11032 # Whether or not to disallow shared libs when runtime libs are static
11033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11034
11035 # Whether or not to optimize for fast installation.
11036 fast_install=$enable_fast_install
11037
11038 # The host system.
11039 host_alias=$host_alias
11040 host=$host
11041 host_os=$host_os
11042
11043 # The build system.
11044 build_alias=$build_alias
11045 build=$build
11046 build_os=$build_os
11047
11048 # An echo program that does not interpret backslashes.
11049 echo=$lt_echo
11050
11051 # The archiver.
11052 AR=$lt_AR
11053 AR_FLAGS=$lt_AR_FLAGS
11054
11055 # A C compiler.
11056 LTCC=$lt_LTCC
11057
11058 # LTCC compiler flags.
11059 LTCFLAGS=$lt_LTCFLAGS
11060
11061 # A language-specific compiler.
11062 CC=$lt_compiler
11063
11064 # Is the compiler the GNU C compiler?
11065 with_gcc=$GCC
11066
11067 # An ERE matcher.
11068 EGREP=$lt_EGREP
11069
11070 # The linker used to build libraries.
11071 LD=$lt_LD
11072
11073 # Whether we need hard or soft links.
11074 LN_S=$lt_LN_S
11075
11076 # A BSD-compatible nm program.
11077 NM=$lt_NM
11078
11079 # A symbol stripping program
11080 STRIP=$lt_STRIP
11081
11082 # Used to examine libraries when file_magic_cmd begins "file"
11083 MAGIC_CMD=$MAGIC_CMD
11084
11085 # Used on cygwin: DLL creation program.
11086 DLLTOOL="$DLLTOOL"
11087
11088 # Used on cygwin: object dumper.
11089 OBJDUMP="$OBJDUMP"
11090
11091 # Used on cygwin: assembler.
11092 AS="$AS"
11093
11094 # The name of the directory that contains temporary libtool files.
11095 objdir=$objdir
11096
11097 # How to create reloadable object files.
11098 reload_flag=$lt_reload_flag
11099 reload_cmds=$lt_reload_cmds
11100
11101 # How to pass a linker flag through the compiler.
11102 wl=$lt_lt_prog_compiler_wl
11103
11104 # Object file suffix (normally "o").
11105 objext="$ac_objext"
11106
11107 # Old archive suffix (normally "a").
11108 libext="$libext"
11109
11110 # Shared library suffix (normally ".so").
11111 shrext_cmds='$shrext_cmds'
11112
11113 # Executable file suffix (normally "").
11114 exeext="$exeext"
11115
11116 # Additional compiler flags for building library objects.
11117 pic_flag=$lt_lt_prog_compiler_pic
11118 pic_mode=$pic_mode
11119
11120 # What is the maximum length of a command?
11121 max_cmd_len=$lt_cv_sys_max_cmd_len
11122
11123 # Does compiler simultaneously support -c and -o options?
11124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11125
11126 # Must we lock files when doing compilation?
11127 need_locks=$lt_need_locks
11128
11129 # Do we need the lib prefix for modules?
11130 need_lib_prefix=$need_lib_prefix
11131
11132 # Do we need a version for libraries?
11133 need_version=$need_version
11134
11135 # Whether dlopen is supported.
11136 dlopen_support=$enable_dlopen
11137
11138 # Whether dlopen of programs is supported.
11139 dlopen_self=$enable_dlopen_self
11140
11141 # Whether dlopen of statically linked programs is supported.
11142 dlopen_self_static=$enable_dlopen_self_static
11143
11144 # Compiler flag to prevent dynamic linking.
11145 link_static_flag=$lt_lt_prog_compiler_static
11146
11147 # Compiler flag to turn off builtin functions.
11148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11149
11150 # Compiler flag to allow reflexive dlopens.
11151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11152
11153 # Compiler flag to generate shared objects directly from archives.
11154 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11155
11156 # Compiler flag to generate thread-safe objects.
11157 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11158
11159 # Library versioning type.
11160 version_type=$version_type
11161
11162 # Format of library name prefix.
11163 libname_spec=$lt_libname_spec
11164
11165 # List of archive names.  First name is the real one, the rest are links.
11166 # The last name is the one that the linker finds with -lNAME.
11167 library_names_spec=$lt_library_names_spec
11168
11169 # The coded name of the library, if different from the real name.
11170 soname_spec=$lt_soname_spec
11171
11172 # Commands used to build and install an old-style archive.
11173 RANLIB=$lt_RANLIB
11174 old_archive_cmds=$lt_old_archive_cmds
11175 old_postinstall_cmds=$lt_old_postinstall_cmds
11176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11177
11178 # Create an old-style archive from a shared archive.
11179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11180
11181 # Create a temporary old-style archive to link instead of a shared archive.
11182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11183
11184 # Commands used to build and install a shared archive.
11185 archive_cmds=$lt_archive_cmds
11186 archive_expsym_cmds=$lt_archive_expsym_cmds
11187 postinstall_cmds=$lt_postinstall_cmds
11188 postuninstall_cmds=$lt_postuninstall_cmds
11189
11190 # Commands used to build a loadable module (assumed same as above if empty)
11191 module_cmds=$lt_module_cmds
11192 module_expsym_cmds=$lt_module_expsym_cmds
11193
11194 # Commands to strip libraries.
11195 old_striplib=$lt_old_striplib
11196 striplib=$lt_striplib
11197
11198 # Dependencies to place before the objects being linked to create a
11199 # shared library.
11200 predep_objects=$lt_predep_objects
11201
11202 # Dependencies to place after the objects being linked to create a
11203 # shared library.
11204 postdep_objects=$lt_postdep_objects
11205
11206 # Dependencies to place before the objects being linked to create a
11207 # shared library.
11208 predeps=$lt_predeps
11209
11210 # Dependencies to place after the objects being linked to create a
11211 # shared library.
11212 postdeps=$lt_postdeps
11213
11214 # The library search path used internally by the compiler when linking
11215 # a shared library.
11216 compiler_lib_search_path=$lt_compiler_lib_search_path
11217
11218 # Method to check whether dependent libraries are shared objects.
11219 deplibs_check_method=$lt_deplibs_check_method
11220
11221 # Command to use when deplibs_check_method == file_magic.
11222 file_magic_cmd=$lt_file_magic_cmd
11223
11224 # Flag that allows shared libraries with undefined symbols to be built.
11225 allow_undefined_flag=$lt_allow_undefined_flag
11226
11227 # Flag that forces no undefined symbols.
11228 no_undefined_flag=$lt_no_undefined_flag
11229
11230 # Commands used to finish a libtool library installation in a directory.
11231 finish_cmds=$lt_finish_cmds
11232
11233 # Same as above, but a single script fragment to be evaled but not shown.
11234 finish_eval=$lt_finish_eval
11235
11236 # Take the output of nm and produce a listing of raw symbols and C names.
11237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11238
11239 # Transform the output of nm in a proper C declaration
11240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11241
11242 # Transform the output of nm in a C name address pair
11243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11244
11245 # This is the shared library runtime path variable.
11246 runpath_var=$runpath_var
11247
11248 # This is the shared library path variable.
11249 shlibpath_var=$shlibpath_var
11250
11251 # Is shlibpath searched before the hard-coded library search path?
11252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11253
11254 # How to hardcode a shared library path into an executable.
11255 hardcode_action=$hardcode_action
11256
11257 # Whether we should hardcode library paths into libraries.
11258 hardcode_into_libs=$hardcode_into_libs
11259
11260 # Flag to hardcode \$libdir into a binary during linking.
11261 # This must work even if \$libdir does not exist.
11262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11263
11264 # If ld is used when linking, flag to hardcode \$libdir into
11265 # a binary during linking. This must work even if \$libdir does
11266 # not exist.
11267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11268
11269 # Whether we need a single -rpath flag with a separated argument.
11270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11271
11272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11273 # resulting binary.
11274 hardcode_direct=$hardcode_direct
11275
11276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11277 # resulting binary.
11278 hardcode_minus_L=$hardcode_minus_L
11279
11280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11281 # the resulting binary.
11282 hardcode_shlibpath_var=$hardcode_shlibpath_var
11283
11284 # Set to yes if building a shared library automatically hardcodes DIR into the library
11285 # and all subsequent libraries and executables linked against it.
11286 hardcode_automatic=$hardcode_automatic
11287
11288 # Variables whose values should be saved in libtool wrapper scripts and
11289 # restored at relink time.
11290 variables_saved_for_relink="$variables_saved_for_relink"
11291
11292 # Whether libtool must link a program against all its dependency libraries.
11293 link_all_deplibs=$link_all_deplibs
11294
11295 # Compile-time system search path for libraries
11296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11297
11298 # Run-time system search path for libraries
11299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11300
11301 # Fix the shell variable \$srcfile for the compiler.
11302 fix_srcfile_path="$fix_srcfile_path"
11303
11304 # Set to yes if exported symbols are required.
11305 always_export_symbols=$always_export_symbols
11306
11307 # The commands to list exported symbols.
11308 export_symbols_cmds=$lt_export_symbols_cmds
11309
11310 # The commands to extract the exported symbol list from a shared archive.
11311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11312
11313 # Symbols that should not be listed in the preloaded symbols.
11314 exclude_expsyms=$lt_exclude_expsyms
11315
11316 # Symbols that must always be exported.
11317 include_expsyms=$lt_include_expsyms
11318
11319 # ### END LIBTOOL CONFIG
11320
11321 __EOF__
11322
11323
11324   case $host_os in
11325   aix3*)
11326     cat <<\EOF >> "$cfgfile"
11327
11328 # AIX sometimes has problems with the GCC collect2 program.  For some
11329 # reason, if we set the COLLECT_NAMES environment variable, the problems
11330 # vanish in a puff of smoke.
11331 if test "X${COLLECT_NAMES+set}" != Xset; then
11332   COLLECT_NAMES=
11333   export COLLECT_NAMES
11334 fi
11335 EOF
11336     ;;
11337   esac
11338
11339   # We use sed instead of cat because bash on DJGPP gets confused if
11340   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11341   # text mode, it properly converts lines to CR/LF.  This bash problem
11342   # is reportedly fixed, but why not run on old versions too?
11343   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11344
11345   mv -f "$cfgfile" "$ofile" || \
11346     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11347   chmod +x "$ofile"
11348
11349 else
11350   # If there is no Makefile yet, we rely on a make rule to execute
11351   # `config.status --recheck' to rerun these tests and create the
11352   # libtool script then.
11353   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11354   if test -f "$ltmain_in"; then
11355     test -f Makefile && make "$ltmain"
11356   fi
11357 fi
11358
11359
11360 ac_ext=c
11361 ac_cpp='$CPP $CPPFLAGS'
11362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11365
11366 CC="$lt_save_CC"
11367
11368
11369 # Check whether --with-tags was given.
11370 if test "${with_tags+set}" = set; then
11371   withval=$with_tags; tagnames="$withval"
11372 fi
11373
11374
11375 if test -f "$ltmain" && test -n "$tagnames"; then
11376   if test ! -f "${ofile}"; then
11377     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11378 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11379   fi
11380
11381   if test -z "$LTCC"; then
11382     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11383     if test -z "$LTCC"; then
11384       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11385 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11386     else
11387       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11388 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11389     fi
11390   fi
11391   if test -z "$LTCFLAGS"; then
11392     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11393   fi
11394
11395   # Extract list of available tagged configurations in $ofile.
11396   # Note that this assumes the entire list is on one line.
11397   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11398
11399   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11400   for tagname in $tagnames; do
11401     IFS="$lt_save_ifs"
11402     # Check whether tagname contains only valid characters
11403     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11404     "") ;;
11405     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11406 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11407    { (exit 1); exit 1; }; }
11408         ;;
11409     esac
11410
11411     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11412     then
11413       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11414 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11415    { (exit 1); exit 1; }; }
11416     fi
11417
11418     # Update the list of available tags.
11419     if test -n "$tagname"; then
11420       echo appending configuration tag \"$tagname\" to $ofile
11421
11422       case $tagname in
11423       CXX)
11424         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11425             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11426             (test "X$CXX" != "Xg++"))) ; then
11427           ac_ext=cpp
11428 ac_cpp='$CXXCPP $CPPFLAGS'
11429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11432
11433
11434
11435
11436 archive_cmds_need_lc_CXX=no
11437 allow_undefined_flag_CXX=
11438 always_export_symbols_CXX=no
11439 archive_expsym_cmds_CXX=
11440 export_dynamic_flag_spec_CXX=
11441 hardcode_direct_CXX=no
11442 hardcode_libdir_flag_spec_CXX=
11443 hardcode_libdir_flag_spec_ld_CXX=
11444 hardcode_libdir_separator_CXX=
11445 hardcode_minus_L_CXX=no
11446 hardcode_shlibpath_var_CXX=unsupported
11447 hardcode_automatic_CXX=no
11448 module_cmds_CXX=
11449 module_expsym_cmds_CXX=
11450 link_all_deplibs_CXX=unknown
11451 old_archive_cmds_CXX=$old_archive_cmds
11452 no_undefined_flag_CXX=
11453 whole_archive_flag_spec_CXX=
11454 enable_shared_with_static_runtimes_CXX=no
11455
11456 # Dependencies to place before and after the object being linked:
11457 predep_objects_CXX=
11458 postdep_objects_CXX=
11459 predeps_CXX=
11460 postdeps_CXX=
11461 compiler_lib_search_path_CXX=
11462
11463 # Source file extension for C++ test sources.
11464 ac_ext=cpp
11465
11466 # Object file extension for compiled C++ test sources.
11467 objext=o
11468 objext_CXX=$objext
11469
11470 # Code to be used in simple compile tests
11471 lt_simple_compile_test_code="int some_variable = 0;\n"
11472
11473 # Code to be used in simple link tests
11474 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11475
11476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11477
11478 # If no C compiler was specified, use CC.
11479 LTCC=${LTCC-"$CC"}
11480
11481 # If no C compiler flags were specified, use CFLAGS.
11482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11483
11484 # Allow CC to be a program name with arguments.
11485 compiler=$CC
11486
11487
11488 # save warnings/boilerplate of simple test code
11489 ac_outfile=conftest.$ac_objext
11490 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492 _lt_compiler_boilerplate=`cat conftest.err`
11493 $rm conftest*
11494
11495 ac_outfile=conftest.$ac_objext
11496 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11498 _lt_linker_boilerplate=`cat conftest.err`
11499 $rm conftest*
11500
11501
11502 # Allow CC to be a program name with arguments.
11503 lt_save_CC=$CC
11504 lt_save_LD=$LD
11505 lt_save_GCC=$GCC
11506 GCC=$GXX
11507 lt_save_with_gnu_ld=$with_gnu_ld
11508 lt_save_path_LD=$lt_cv_path_LD
11509 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11510   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11511 else
11512   $as_unset lt_cv_prog_gnu_ld
11513 fi
11514 if test -n "${lt_cv_path_LDCXX+set}"; then
11515   lt_cv_path_LD=$lt_cv_path_LDCXX
11516 else
11517   $as_unset lt_cv_path_LD
11518 fi
11519 test -z "${LDCXX+set}" || LD=$LDCXX
11520 CC=${CXX-"c++"}
11521 compiler=$CC
11522 compiler_CXX=$CC
11523 for cc_temp in $compiler""; do
11524   case $cc_temp in
11525     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11526     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11527     \-*) ;;
11528     *) break;;
11529   esac
11530 done
11531 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11532
11533
11534 # We don't want -fno-exception wen compiling C++ code, so set the
11535 # no_builtin_flag separately
11536 if test "$GXX" = yes; then
11537   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11538 else
11539   lt_prog_compiler_no_builtin_flag_CXX=
11540 fi
11541
11542 if test "$GXX" = yes; then
11543   # Set up default GNU C++ configuration
11544
11545
11546 # Check whether --with-gnu-ld was given.
11547 if test "${with_gnu_ld+set}" = set; then
11548   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11549 else
11550   with_gnu_ld=no
11551 fi
11552
11553 ac_prog=ld
11554 if test "$GCC" = yes; then
11555   # Check if gcc -print-prog-name=ld gives a path.
11556   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11557 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11558   case $host in
11559   *-*-mingw*)
11560     # gcc leaves a trailing carriage return which upsets mingw
11561     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11562   *)
11563     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11564   esac
11565   case $ac_prog in
11566     # Accept absolute paths.
11567     [\\/]* | ?:[\\/]*)
11568       re_direlt='/[^/][^/]*/\.\./'
11569       # Canonicalize the pathname of ld
11570       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11571       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11572         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11573       done
11574       test -z "$LD" && LD="$ac_prog"
11575       ;;
11576   "")
11577     # If it fails, then pretend we aren't using GCC.
11578     ac_prog=ld
11579     ;;
11580   *)
11581     # If it is relative, then search for the first ld in PATH.
11582     with_gnu_ld=unknown
11583     ;;
11584   esac
11585 elif test "$with_gnu_ld" = yes; then
11586   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11587 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11588 else
11589   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11590 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11591 fi
11592 if test "${lt_cv_path_LD+set}" = set; then
11593   echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595   if test -z "$LD"; then
11596   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11597   for ac_dir in $PATH; do
11598     IFS="$lt_save_ifs"
11599     test -z "$ac_dir" && ac_dir=.
11600     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11601       lt_cv_path_LD="$ac_dir/$ac_prog"
11602       # Check to see if the program is GNU ld.  I'd rather use --version,
11603       # but apparently some variants of GNU ld only accept -v.
11604       # Break only if it was the GNU/non-GNU ld that we prefer.
11605       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11606       *GNU* | *'with BFD'*)
11607         test "$with_gnu_ld" != no && break
11608         ;;
11609       *)
11610         test "$with_gnu_ld" != yes && break
11611         ;;
11612       esac
11613     fi
11614   done
11615   IFS="$lt_save_ifs"
11616 else
11617   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11618 fi
11619 fi
11620
11621 LD="$lt_cv_path_LD"
11622 if test -n "$LD"; then
11623   { echo "$as_me:$LINENO: result: $LD" >&5
11624 echo "${ECHO_T}$LD" >&6; }
11625 else
11626   { echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6; }
11628 fi
11629 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11630 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11631    { (exit 1); exit 1; }; }
11632 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11633 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11634 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11635   echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11638 case `$LD -v 2>&1 </dev/null` in
11639 *GNU* | *'with BFD'*)
11640   lt_cv_prog_gnu_ld=yes
11641   ;;
11642 *)
11643   lt_cv_prog_gnu_ld=no
11644   ;;
11645 esac
11646 fi
11647 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11648 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11649 with_gnu_ld=$lt_cv_prog_gnu_ld
11650
11651
11652
11653   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11654   # archiving commands below assume that GNU ld is being used.
11655   if test "$with_gnu_ld" = yes; then
11656     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11657     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'
11658
11659     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11660     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11661
11662     # If archive_cmds runs LD, not CC, wlarc should be empty
11663     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11664     #     investigate it a little bit more. (MM)
11665     wlarc='${wl}'
11666
11667     # ancient GNU ld didn't support --whole-archive et. al.
11668     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11669         grep 'no-whole-archive' > /dev/null; then
11670       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11671     else
11672       whole_archive_flag_spec_CXX=
11673     fi
11674   else
11675     with_gnu_ld=no
11676     wlarc=
11677
11678     # A generic and very simple default shared library creation
11679     # command for GNU C++ for the case where it uses the native
11680     # linker, instead of GNU ld.  If possible, this setting should
11681     # overridden to take advantage of the native linker features on
11682     # the platform it is being used on.
11683     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11684   fi
11685
11686   # Commands to make compiler produce verbose output that lists
11687   # what "hidden" libraries, object files and flags are used when
11688   # linking a shared library.
11689   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11690
11691 else
11692   GXX=no
11693   with_gnu_ld=no
11694   wlarc=
11695 fi
11696
11697 # PORTME: fill in a description of your system's C++ link characteristics
11698 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11699 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11700 ld_shlibs_CXX=yes
11701 case $host_os in
11702   aix3*)
11703     # FIXME: insert proper C++ library support
11704     ld_shlibs_CXX=no
11705     ;;
11706   aix4* | aix5*)
11707     if test "$host_cpu" = ia64; then
11708       # On IA64, the linker does run time linking by default, so we don't
11709       # have to do anything special.
11710       aix_use_runtimelinking=no
11711       exp_sym_flag='-Bexport'
11712       no_entry_flag=""
11713     else
11714       aix_use_runtimelinking=no
11715
11716       # Test if we are trying to use run time linking or normal
11717       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11718       # need to do runtime linking.
11719       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11720         for ld_flag in $LDFLAGS; do
11721           case $ld_flag in
11722           *-brtl*)
11723             aix_use_runtimelinking=yes
11724             break
11725             ;;
11726           esac
11727         done
11728         ;;
11729       esac
11730
11731       exp_sym_flag='-bexport'
11732       no_entry_flag='-bnoentry'
11733     fi
11734
11735     # When large executables or shared objects are built, AIX ld can
11736     # have problems creating the table of contents.  If linking a library
11737     # or program results in "error TOC overflow" add -mminimal-toc to
11738     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11739     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11740
11741     archive_cmds_CXX=''
11742     hardcode_direct_CXX=yes
11743     hardcode_libdir_separator_CXX=':'
11744     link_all_deplibs_CXX=yes
11745
11746     if test "$GXX" = yes; then
11747       case $host_os in aix4.[012]|aix4.[012].*)
11748       # We only want to do this on AIX 4.2 and lower, the check
11749       # below for broken collect2 doesn't work under 4.3+
11750         collect2name=`${CC} -print-prog-name=collect2`
11751         if test -f "$collect2name" && \
11752            strings "$collect2name" | grep resolve_lib_name >/dev/null
11753         then
11754           # We have reworked collect2
11755           hardcode_direct_CXX=yes
11756         else
11757           # We have old collect2
11758           hardcode_direct_CXX=unsupported
11759           # It fails to find uninstalled libraries when the uninstalled
11760           # path is not listed in the libpath.  Setting hardcode_minus_L
11761           # to unsupported forces relinking
11762           hardcode_minus_L_CXX=yes
11763           hardcode_libdir_flag_spec_CXX='-L$libdir'
11764           hardcode_libdir_separator_CXX=
11765         fi
11766         ;;
11767       esac
11768       shared_flag='-shared'
11769       if test "$aix_use_runtimelinking" = yes; then
11770         shared_flag="$shared_flag "'${wl}-G'
11771       fi
11772     else
11773       # not using gcc
11774       if test "$host_cpu" = ia64; then
11775         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11776         # chokes on -Wl,-G. The following line is correct:
11777         shared_flag='-G'
11778       else
11779         if test "$aix_use_runtimelinking" = yes; then
11780           shared_flag='${wl}-G'
11781         else
11782           shared_flag='${wl}-bM:SRE'
11783         fi
11784       fi
11785     fi
11786
11787     # It seems that -bexpall does not export symbols beginning with
11788     # underscore (_), so it is better to generate a list of symbols to export.
11789     always_export_symbols_CXX=yes
11790     if test "$aix_use_runtimelinking" = yes; then
11791       # Warning - without using the other runtime loading flags (-brtl),
11792       # -berok will link without error, but may produce a broken library.
11793       allow_undefined_flag_CXX='-berok'
11794       # Determine the default libpath from the value encoded in an empty executable.
11795       cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801
11802 int
11803 main ()
11804 {
11805
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (ac_try="$ac_link"
11812 case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_link") 2>conftest.er1
11818   ac_status=$?
11819   grep -v '^ *+' conftest.er1 >conftest.err
11820   rm -f conftest.er1
11821   cat conftest.err >&5
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } && {
11824          test -z "$ac_cxx_werror_flag" ||
11825          test ! -s conftest.err
11826        } && test -s conftest$ac_exeext &&
11827        $as_test_x conftest$ac_exeext; then
11828
11829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11830 }'`
11831 # Check for a 64-bit object if we didn't find anything.
11832 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; }
11833 }'`; fi
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838
11839 fi
11840
11841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11842       conftest$ac_exeext conftest.$ac_ext
11843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11844
11845       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11846
11847       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"
11848      else
11849       if test "$host_cpu" = ia64; then
11850         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11851         allow_undefined_flag_CXX="-z nodefs"
11852         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"
11853       else
11854         # Determine the default libpath from the value encoded in an empty executable.
11855         cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861
11862 int
11863 main ()
11864 {
11865
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877   (eval "$ac_link") 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } && {
11884          test -z "$ac_cxx_werror_flag" ||
11885          test ! -s conftest.err
11886        } && test -s conftest$ac_exeext &&
11887        $as_test_x conftest$ac_exeext; then
11888
11889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11890 }'`
11891 # Check for a 64-bit object if we didn't find anything.
11892 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; }
11893 }'`; fi
11894 else
11895   echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11897
11898
11899 fi
11900
11901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11902       conftest$ac_exeext conftest.$ac_ext
11903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11904
11905         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11906         # Warning - without using the other run time loading flags,
11907         # -berok will link without error, but may produce a broken library.
11908         no_undefined_flag_CXX=' ${wl}-bernotok'
11909         allow_undefined_flag_CXX=' ${wl}-berok'
11910         # Exported symbols can be pulled into shared objects from archives
11911         whole_archive_flag_spec_CXX='$convenience'
11912         archive_cmds_need_lc_CXX=yes
11913         # This is similar to how AIX traditionally builds its shared libraries.
11914         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'
11915       fi
11916     fi
11917     ;;
11918
11919   beos*)
11920     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11921       allow_undefined_flag_CXX=unsupported
11922       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11923       # support --undefined.  This deserves some investigation.  FIXME
11924       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11925     else
11926       ld_shlibs_CXX=no
11927     fi
11928     ;;
11929
11930   chorus*)
11931     case $cc_basename in
11932       *)
11933         # FIXME: insert proper C++ library support
11934         ld_shlibs_CXX=no
11935         ;;
11936     esac
11937     ;;
11938
11939   cygwin* | mingw* | pw32*)
11940     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11941     # as there is no search path for DLLs.
11942     hardcode_libdir_flag_spec_CXX='-L$libdir'
11943     allow_undefined_flag_CXX=unsupported
11944     always_export_symbols_CXX=no
11945     enable_shared_with_static_runtimes_CXX=yes
11946
11947     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11948       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'
11949       # If the export-symbols file already is a .def file (1st line
11950       # is EXPORTS), use it as is; otherwise, prepend...
11951       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11952         cp $export_symbols $output_objdir/$soname.def;
11953       else
11954         echo EXPORTS > $output_objdir/$soname.def;
11955         cat $export_symbols >> $output_objdir/$soname.def;
11956       fi~
11957       $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'
11958     else
11959       ld_shlibs_CXX=no
11960     fi
11961   ;;
11962       darwin* | rhapsody*)
11963         case $host_os in
11964         rhapsody* | darwin1.[012])
11965          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11966          ;;
11967        *) # Darwin 1.3 on
11968          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11969            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11970          else
11971            case ${MACOSX_DEPLOYMENT_TARGET} in
11972              10.[012])
11973                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11974                ;;
11975              10.*)
11976                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11977                ;;
11978            esac
11979          fi
11980          ;;
11981         esac
11982       archive_cmds_need_lc_CXX=no
11983       hardcode_direct_CXX=no
11984       hardcode_automatic_CXX=yes
11985       hardcode_shlibpath_var_CXX=unsupported
11986       whole_archive_flag_spec_CXX=''
11987       link_all_deplibs_CXX=yes
11988
11989     if test "$GXX" = yes ; then
11990       lt_int_apple_cc_single_mod=no
11991       output_verbose_link_cmd='echo'
11992       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11993        lt_int_apple_cc_single_mod=yes
11994       fi
11995       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11996        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11997       else
11998           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'
11999         fi
12000         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12001         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12002           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12003             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}'
12004           else
12005             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}'
12006           fi
12007             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}'
12008       else
12009       case $cc_basename in
12010         xlc*)
12011          output_verbose_link_cmd='echo'
12012           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'
12013           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12014           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12015           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}'
12016           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}'
12017           ;;
12018        *)
12019          ld_shlibs_CXX=no
12020           ;;
12021       esac
12022       fi
12023         ;;
12024
12025   dgux*)
12026     case $cc_basename in
12027       ec++*)
12028         # FIXME: insert proper C++ library support
12029         ld_shlibs_CXX=no
12030         ;;
12031       ghcx*)
12032         # Green Hills C++ Compiler
12033         # FIXME: insert proper C++ library support
12034         ld_shlibs_CXX=no
12035         ;;
12036       *)
12037         # FIXME: insert proper C++ library support
12038         ld_shlibs_CXX=no
12039         ;;
12040     esac
12041     ;;
12042   freebsd[12]*)
12043     # C++ shared libraries reported to be fairly broken before switch to ELF
12044     ld_shlibs_CXX=no
12045     ;;
12046   freebsd-elf*)
12047     archive_cmds_need_lc_CXX=no
12048     ;;
12049   freebsd* | dragonfly*)
12050     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12051     # conventions
12052     ld_shlibs_CXX=yes
12053     ;;
12054   gnu*)
12055     ;;
12056   hpux9*)
12057     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12058     hardcode_libdir_separator_CXX=:
12059     export_dynamic_flag_spec_CXX='${wl}-E'
12060     hardcode_direct_CXX=yes
12061     hardcode_minus_L_CXX=yes # Not in the search PATH,
12062                                 # but as the default
12063                                 # location of the library.
12064
12065     case $cc_basename in
12066     CC*)
12067       # FIXME: insert proper C++ library support
12068       ld_shlibs_CXX=no
12069       ;;
12070     aCC*)
12071       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'
12072       # Commands to make compiler produce verbose output that lists
12073       # what "hidden" libraries, object files and flags are used when
12074       # linking a shared library.
12075       #
12076       # There doesn't appear to be a way to prevent this compiler from
12077       # explicitly linking system object files so we need to strip them
12078       # from the output so that they don't get included in the library
12079       # dependencies.
12080       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'
12081       ;;
12082     *)
12083       if test "$GXX" = yes; then
12084         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'
12085       else
12086         # FIXME: insert proper C++ library support
12087         ld_shlibs_CXX=no
12088       fi
12089       ;;
12090     esac
12091     ;;
12092   hpux10*|hpux11*)
12093     if test $with_gnu_ld = no; then
12094       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12095       hardcode_libdir_separator_CXX=:
12096
12097       case $host_cpu in
12098       hppa*64*|ia64*)
12099         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12100         ;;
12101       *)
12102         export_dynamic_flag_spec_CXX='${wl}-E'
12103         ;;
12104       esac
12105     fi
12106     case $host_cpu in
12107     hppa*64*|ia64*)
12108       hardcode_direct_CXX=no
12109       hardcode_shlibpath_var_CXX=no
12110       ;;
12111     *)
12112       hardcode_direct_CXX=yes
12113       hardcode_minus_L_CXX=yes # Not in the search PATH,
12114                                               # but as the default
12115                                               # location of the library.
12116       ;;
12117     esac
12118
12119     case $cc_basename in
12120       CC*)
12121         # FIXME: insert proper C++ library support
12122         ld_shlibs_CXX=no
12123         ;;
12124       aCC*)
12125         case $host_cpu in
12126         hppa*64*)
12127           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12128           ;;
12129         ia64*)
12130           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12131           ;;
12132         *)
12133           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12134           ;;
12135         esac
12136         # Commands to make compiler produce verbose output that lists
12137         # what "hidden" libraries, object files and flags are used when
12138         # linking a shared library.
12139         #
12140         # There doesn't appear to be a way to prevent this compiler from
12141         # explicitly linking system object files so we need to strip them
12142         # from the output so that they don't get included in the library
12143         # dependencies.
12144         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'
12145         ;;
12146       *)
12147         if test "$GXX" = yes; then
12148           if test $with_gnu_ld = no; then
12149             case $host_cpu in
12150             hppa*64*)
12151               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12152               ;;
12153             ia64*)
12154               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12155               ;;
12156             *)
12157               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'
12158               ;;
12159             esac
12160           fi
12161         else
12162           # FIXME: insert proper C++ library support
12163           ld_shlibs_CXX=no
12164         fi
12165         ;;
12166     esac
12167     ;;
12168   interix3*)
12169     hardcode_direct_CXX=no
12170     hardcode_shlibpath_var_CXX=no
12171     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12172     export_dynamic_flag_spec_CXX='${wl}-E'
12173     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12174     # Instead, shared libraries are loaded at an image base (0x10000000 by
12175     # default) and relocated if they conflict, which is a slow very memory
12176     # consuming and fragmenting process.  To avoid this, we pick a random,
12177     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12178     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12179     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'
12180     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'
12181     ;;
12182   irix5* | irix6*)
12183     case $cc_basename in
12184       CC*)
12185         # SGI C++
12186         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'
12187
12188         # Archives containing C++ object files must be created using
12189         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12190         # necessary to make sure instantiated templates are included
12191         # in the archive.
12192         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12193         ;;
12194       *)
12195         if test "$GXX" = yes; then
12196           if test "$with_gnu_ld" = no; then
12197             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'
12198           else
12199             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'
12200           fi
12201         fi
12202         link_all_deplibs_CXX=yes
12203         ;;
12204     esac
12205     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12206     hardcode_libdir_separator_CXX=:
12207     ;;
12208   linux* | k*bsd*-gnu)
12209     case $cc_basename in
12210       KCC*)
12211         # Kuck and Associates, Inc. (KAI) C++ Compiler
12212
12213         # KCC will only create a shared library if the output file
12214         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12215         # to its proper name (with version) after linking.
12216         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'
12217         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'
12218         # Commands to make compiler produce verbose output that lists
12219         # what "hidden" libraries, object files and flags are used when
12220         # linking a shared library.
12221         #
12222         # There doesn't appear to be a way to prevent this compiler from
12223         # explicitly linking system object files so we need to strip them
12224         # from the output so that they don't get included in the library
12225         # dependencies.
12226         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'
12227
12228         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12229         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12230
12231         # Archives containing C++ object files must be created using
12232         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12233         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12234         ;;
12235       icpc*)
12236         # Intel C++
12237         with_gnu_ld=yes
12238         # version 8.0 and above of icpc choke on multiply defined symbols
12239         # if we add $predep_objects and $postdep_objects, however 7.1 and
12240         # earlier do not add the objects themselves.
12241         case `$CC -V 2>&1` in
12242         *"Version 7."*)
12243           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244           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'
12245           ;;
12246         *)  # Version 8.0 or newer
12247           tmp_idyn=
12248           case $host_cpu in
12249             ia64*) tmp_idyn=' -i_dynamic';;
12250           esac
12251           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252           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'
12253           ;;
12254         esac
12255         archive_cmds_need_lc_CXX=no
12256         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12257         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12258         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12259         ;;
12260       pgCC*)
12261         # Portland Group C++ compiler
12262         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12263         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'
12264
12265         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12266         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12267         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'
12268         ;;
12269       cxx*)
12270         # Compaq C++
12271         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272         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'
12273
12274         runpath_var=LD_RUN_PATH
12275         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12276         hardcode_libdir_separator_CXX=:
12277
12278         # Commands to make compiler produce verbose output that lists
12279         # what "hidden" libraries, object files and flags are used when
12280         # linking a shared library.
12281         #
12282         # There doesn't appear to be a way to prevent this compiler from
12283         # explicitly linking system object files so we need to strip them
12284         # from the output so that they don't get included in the library
12285         # dependencies.
12286         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'
12287         ;;
12288     esac
12289     ;;
12290   lynxos*)
12291     # FIXME: insert proper C++ library support
12292     ld_shlibs_CXX=no
12293     ;;
12294   m88k*)
12295     # FIXME: insert proper C++ library support
12296     ld_shlibs_CXX=no
12297     ;;
12298   mvs*)
12299     case $cc_basename in
12300       cxx*)
12301         # FIXME: insert proper C++ library support
12302         ld_shlibs_CXX=no
12303         ;;
12304       *)
12305         # FIXME: insert proper C++ library support
12306         ld_shlibs_CXX=no
12307         ;;
12308     esac
12309     ;;
12310   netbsd* | netbsdelf*-gnu)
12311     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12312       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12313       wlarc=
12314       hardcode_libdir_flag_spec_CXX='-R$libdir'
12315       hardcode_direct_CXX=yes
12316       hardcode_shlibpath_var_CXX=no
12317     fi
12318     # Workaround some broken pre-1.5 toolchains
12319     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12320     ;;
12321   openbsd2*)
12322     # C++ shared libraries are fairly broken
12323     ld_shlibs_CXX=no
12324     ;;
12325   openbsd*)
12326     hardcode_direct_CXX=yes
12327     hardcode_shlibpath_var_CXX=no
12328     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12329     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12330     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12331       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12332       export_dynamic_flag_spec_CXX='${wl}-E'
12333       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12334     fi
12335     output_verbose_link_cmd='echo'
12336     ;;
12337   osf3*)
12338     case $cc_basename in
12339       KCC*)
12340         # Kuck and Associates, Inc. (KAI) C++ Compiler
12341
12342         # KCC will only create a shared library if the output file
12343         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12344         # to its proper name (with version) after linking.
12345         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'
12346
12347         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12348         hardcode_libdir_separator_CXX=:
12349
12350         # Archives containing C++ object files must be created using
12351         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12352         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12353
12354         ;;
12355       RCC*)
12356         # Rational C++ 2.4.1
12357         # FIXME: insert proper C++ library support
12358         ld_shlibs_CXX=no
12359         ;;
12360       cxx*)
12361         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12362         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'
12363
12364         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12365         hardcode_libdir_separator_CXX=:
12366
12367         # Commands to make compiler produce verbose output that lists
12368         # what "hidden" libraries, object files and flags are used when
12369         # linking a shared library.
12370         #
12371         # There doesn't appear to be a way to prevent this compiler from
12372         # explicitly linking system object files so we need to strip them
12373         # from the output so that they don't get included in the library
12374         # dependencies.
12375         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'
12376         ;;
12377       *)
12378         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12379           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12380           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'
12381
12382           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12383           hardcode_libdir_separator_CXX=:
12384
12385           # Commands to make compiler produce verbose output that lists
12386           # what "hidden" libraries, object files and flags are used when
12387           # linking a shared library.
12388           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12389
12390         else
12391           # FIXME: insert proper C++ library support
12392           ld_shlibs_CXX=no
12393         fi
12394         ;;
12395     esac
12396     ;;
12397   osf4* | osf5*)
12398     case $cc_basename in
12399       KCC*)
12400         # Kuck and Associates, Inc. (KAI) C++ Compiler
12401
12402         # KCC will only create a shared library if the output file
12403         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12404         # to its proper name (with version) after linking.
12405         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'
12406
12407         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12408         hardcode_libdir_separator_CXX=:
12409
12410         # Archives containing C++ object files must be created using
12411         # the KAI C++ compiler.
12412         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12413         ;;
12414       RCC*)
12415         # Rational C++ 2.4.1
12416         # FIXME: insert proper C++ library support
12417         ld_shlibs_CXX=no
12418         ;;
12419       cxx*)
12420         allow_undefined_flag_CXX=' -expect_unresolved \*'
12421         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'
12422         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12423           echo "-hidden">> $lib.exp~
12424           $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~
12425           $rm $lib.exp'
12426
12427         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12428         hardcode_libdir_separator_CXX=:
12429
12430         # Commands to make compiler produce verbose output that lists
12431         # what "hidden" libraries, object files and flags are used when
12432         # linking a shared library.
12433         #
12434         # There doesn't appear to be a way to prevent this compiler from
12435         # explicitly linking system object files so we need to strip them
12436         # from the output so that they don't get included in the library
12437         # dependencies.
12438         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'
12439         ;;
12440       *)
12441         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12442           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12443          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'
12444
12445           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12446           hardcode_libdir_separator_CXX=:
12447
12448           # Commands to make compiler produce verbose output that lists
12449           # what "hidden" libraries, object files and flags are used when
12450           # linking a shared library.
12451           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12452
12453         else
12454           # FIXME: insert proper C++ library support
12455           ld_shlibs_CXX=no
12456         fi
12457         ;;
12458     esac
12459     ;;
12460   psos*)
12461     # FIXME: insert proper C++ library support
12462     ld_shlibs_CXX=no
12463     ;;
12464   sunos4*)
12465     case $cc_basename in
12466       CC*)
12467         # Sun C++ 4.x
12468         # FIXME: insert proper C++ library support
12469         ld_shlibs_CXX=no
12470         ;;
12471       lcc*)
12472         # Lucid
12473         # FIXME: insert proper C++ library support
12474         ld_shlibs_CXX=no
12475         ;;
12476       *)
12477         # FIXME: insert proper C++ library support
12478         ld_shlibs_CXX=no
12479         ;;
12480     esac
12481     ;;
12482   solaris*)
12483     case $cc_basename in
12484       CC*)
12485         # Sun C++ 4.2, 5.x and Centerline C++
12486         archive_cmds_need_lc_CXX=yes
12487         no_undefined_flag_CXX=' -zdefs'
12488         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12489         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12490         $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'
12491
12492         hardcode_libdir_flag_spec_CXX='-R$libdir'
12493         hardcode_shlibpath_var_CXX=no
12494         case $host_os in
12495           solaris2.[0-5] | solaris2.[0-5].*) ;;
12496           *)
12497             # The C++ compiler is used as linker so we must use $wl
12498             # flag to pass the commands to the underlying system
12499             # linker. We must also pass each convience library through
12500             # to the system linker between allextract/defaultextract.
12501             # The C++ compiler will combine linker options so we
12502             # cannot just pass the convience library names through
12503             # without $wl.
12504             # Supported since Solaris 2.6 (maybe 2.5.1?)
12505             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'
12506             ;;
12507         esac
12508         link_all_deplibs_CXX=yes
12509
12510         output_verbose_link_cmd='echo'
12511
12512         # Archives containing C++ object files must be created using
12513         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12514         # necessary to make sure instantiated templates are included
12515         # in the archive.
12516         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12517         ;;
12518       gcx*)
12519         # Green Hills C++ Compiler
12520         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12521
12522         # The C++ compiler must be used to create the archive.
12523         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12524         ;;
12525       *)
12526         # GNU C++ compiler with Solaris linker
12527         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12528           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12529           if $CC --version | grep -v '^2\.7' > /dev/null; then
12530             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12531             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12532                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12533
12534             # Commands to make compiler produce verbose output that lists
12535             # what "hidden" libraries, object files and flags are used when
12536             # linking a shared library.
12537             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12538           else
12539             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12540             # platform.
12541             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12542             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12543                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12544
12545             # Commands to make compiler produce verbose output that lists
12546             # what "hidden" libraries, object files and flags are used when
12547             # linking a shared library.
12548             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12549           fi
12550
12551           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12552         fi
12553         ;;
12554     esac
12555     ;;
12556   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12557     no_undefined_flag_CXX='${wl}-z,text'
12558     archive_cmds_need_lc_CXX=no
12559     hardcode_shlibpath_var_CXX=no
12560     runpath_var='LD_RUN_PATH'
12561
12562     case $cc_basename in
12563       CC*)
12564         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566         ;;
12567       *)
12568         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12570         ;;
12571     esac
12572     ;;
12573   sysv5* | sco3.2v5* | sco5v6*)
12574     # Note: We can NOT use -z defs as we might desire, because we do not
12575     # link with -lc, and that would cause any symbols used from libc to
12576     # always be unresolved, which means just about no library would
12577     # ever link correctly.  If we're not using GNU ld we use -z text
12578     # though, which does catch some bad symbols but isn't as heavy-handed
12579     # as -z defs.
12580     # For security reasons, it is highly recommended that you always
12581     # use absolute paths for naming shared libraries, and exclude the
12582     # DT_RUNPATH tag from executables and libraries.  But doing so
12583     # requires that you compile everything twice, which is a pain.
12584     # So that behaviour is only enabled if SCOABSPATH is set to a
12585     # non-empty value in the environment.  Most likely only useful for
12586     # creating official distributions of packages.
12587     # This is a hack until libtool officially supports absolute path
12588     # names for shared libraries.
12589     no_undefined_flag_CXX='${wl}-z,text'
12590     allow_undefined_flag_CXX='${wl}-z,nodefs'
12591     archive_cmds_need_lc_CXX=no
12592     hardcode_shlibpath_var_CXX=no
12593     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12594     hardcode_libdir_separator_CXX=':'
12595     link_all_deplibs_CXX=yes
12596     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12597     runpath_var='LD_RUN_PATH'
12598
12599     case $cc_basename in
12600       CC*)
12601         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12602         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12603         ;;
12604       *)
12605         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12606         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12607         ;;
12608     esac
12609     ;;
12610   tandem*)
12611     case $cc_basename in
12612       NCC*)
12613         # NonStop-UX NCC 3.20
12614         # FIXME: insert proper C++ library support
12615         ld_shlibs_CXX=no
12616         ;;
12617       *)
12618         # FIXME: insert proper C++ library support
12619         ld_shlibs_CXX=no
12620         ;;
12621     esac
12622     ;;
12623   vxworks*)
12624     # FIXME: insert proper C++ library support
12625     ld_shlibs_CXX=no
12626     ;;
12627   *)
12628     # FIXME: insert proper C++ library support
12629     ld_shlibs_CXX=no
12630     ;;
12631 esac
12632 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12633 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12634 test "$ld_shlibs_CXX" = no && can_build_shared=no
12635
12636 GCC_CXX="$GXX"
12637 LD_CXX="$LD"
12638
12639
12640 cat > conftest.$ac_ext <<EOF
12641 class Foo
12642 {
12643 public:
12644   Foo (void) { a = 0; }
12645 private:
12646   int a;
12647 };
12648 EOF
12649
12650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12651   (eval $ac_compile) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; then
12655   # Parse the compiler output and extract the necessary
12656   # objects, libraries and library flags.
12657
12658   # Sentinel used to keep track of whether or not we are before
12659   # the conftest object file.
12660   pre_test_object_deps_done=no
12661
12662   # The `*' in the case matches for architectures that use `case' in
12663   # $output_verbose_cmd can trigger glob expansion during the loop
12664   # eval without this substitution.
12665   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12666
12667   for p in `eval $output_verbose_link_cmd`; do
12668     case $p in
12669
12670     -L* | -R* | -l*)
12671        # Some compilers place space between "-{L,R}" and the path.
12672        # Remove the space.
12673        if test $p = "-L" \
12674           || test $p = "-R"; then
12675          prev=$p
12676          continue
12677        else
12678          prev=
12679        fi
12680
12681        if test "$pre_test_object_deps_done" = no; then
12682          case $p in
12683          -L* | -R*)
12684            # Internal compiler library paths should come after those
12685            # provided the user.  The postdeps already come after the
12686            # user supplied libs so there is no need to process them.
12687            if test -z "$compiler_lib_search_path_CXX"; then
12688              compiler_lib_search_path_CXX="${prev}${p}"
12689            else
12690              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12691            fi
12692            ;;
12693          # The "-l" case would never come before the object being
12694          # linked, so don't bother handling this case.
12695          esac
12696        else
12697          if test -z "$postdeps_CXX"; then
12698            postdeps_CXX="${prev}${p}"
12699          else
12700            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12701          fi
12702        fi
12703        ;;
12704
12705     *.$objext)
12706        # This assumes that the test object file only shows up
12707        # once in the compiler output.
12708        if test "$p" = "conftest.$objext"; then
12709          pre_test_object_deps_done=yes
12710          continue
12711        fi
12712
12713        if test "$pre_test_object_deps_done" = no; then
12714          if test -z "$predep_objects_CXX"; then
12715            predep_objects_CXX="$p"
12716          else
12717            predep_objects_CXX="$predep_objects_CXX $p"
12718          fi
12719        else
12720          if test -z "$postdep_objects_CXX"; then
12721            postdep_objects_CXX="$p"
12722          else
12723            postdep_objects_CXX="$postdep_objects_CXX $p"
12724          fi
12725        fi
12726        ;;
12727
12728     *) ;; # Ignore the rest.
12729
12730     esac
12731   done
12732
12733   # Clean up.
12734   rm -f a.out a.exe
12735 else
12736   echo "libtool.m4: error: problem compiling CXX test program"
12737 fi
12738
12739 $rm -f confest.$objext
12740
12741 # PORTME: override above test on systems where it is broken
12742 case $host_os in
12743 interix3*)
12744   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12745   # hack all around it, let's just trust "g++" to DTRT.
12746   predep_objects_CXX=
12747   postdep_objects_CXX=
12748   postdeps_CXX=
12749   ;;
12750
12751 solaris*)
12752   case $cc_basename in
12753   CC*)
12754     # Adding this requires a known-good setup of shared libraries for
12755     # Sun compiler versions before 5.6, else PIC objects from an old
12756     # archive will be linked into the output, leading to subtle bugs.
12757     postdeps_CXX='-lCstd -lCrun'
12758     ;;
12759   esac
12760   ;;
12761 esac
12762
12763
12764 case " $postdeps_CXX " in
12765 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12766 esac
12767
12768 lt_prog_compiler_wl_CXX=
12769 lt_prog_compiler_pic_CXX=
12770 lt_prog_compiler_static_CXX=
12771
12772 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12773 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12774
12775   # C++ specific cases for pic, static, wl, etc.
12776   if test "$GXX" = yes; then
12777     lt_prog_compiler_wl_CXX='-Wl,'
12778     lt_prog_compiler_static_CXX='-static'
12779
12780     case $host_os in
12781     aix*)
12782       # All AIX code is PIC.
12783       if test "$host_cpu" = ia64; then
12784         # AIX 5 now supports IA64 processor
12785         lt_prog_compiler_static_CXX='-Bstatic'
12786       fi
12787       ;;
12788     amigaos*)
12789       # FIXME: we need at least 68020 code to build shared libraries, but
12790       # adding the `-m68020' flag to GCC prevents building anything better,
12791       # like `-m68040'.
12792       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12793       ;;
12794     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12795       # PIC is the default for these OSes.
12796       ;;
12797     mingw* | os2* | pw32*)
12798       # This hack is so that the source file can tell whether it is being
12799       # built for inclusion in a dll (and should export symbols for example).
12800       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12801       ;;
12802     darwin* | rhapsody*)
12803       # PIC is the default on this platform
12804       # Common symbols not allowed in MH_DYLIB files
12805       lt_prog_compiler_pic_CXX='-fno-common'
12806       ;;
12807     *djgpp*)
12808       # DJGPP does not support shared libraries at all
12809       lt_prog_compiler_pic_CXX=
12810       ;;
12811     interix3*)
12812       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12813       # Instead, we relocate shared libraries at runtime.
12814       ;;
12815     sysv4*MP*)
12816       if test -d /usr/nec; then
12817         lt_prog_compiler_pic_CXX=-Kconform_pic
12818       fi
12819       ;;
12820     hpux*)
12821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12822       # not for PA HP-UX.
12823       case $host_cpu in
12824       hppa*64*|ia64*)
12825         ;;
12826       *)
12827         lt_prog_compiler_pic_CXX='-fPIC'
12828         ;;
12829       esac
12830       ;;
12831     *)
12832       lt_prog_compiler_pic_CXX='-fPIC'
12833       ;;
12834     esac
12835   else
12836     case $host_os in
12837       aix4* | aix5*)
12838         # All AIX code is PIC.
12839         if test "$host_cpu" = ia64; then
12840           # AIX 5 now supports IA64 processor
12841           lt_prog_compiler_static_CXX='-Bstatic'
12842         else
12843           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12844         fi
12845         ;;
12846       chorus*)
12847         case $cc_basename in
12848         cxch68*)
12849           # Green Hills C++ Compiler
12850           # _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"
12851           ;;
12852         esac
12853         ;;
12854        darwin*)
12855          # PIC is the default on this platform
12856          # Common symbols not allowed in MH_DYLIB files
12857          case $cc_basename in
12858            xlc*)
12859            lt_prog_compiler_pic_CXX='-qnocommon'
12860            lt_prog_compiler_wl_CXX='-Wl,'
12861            ;;
12862          esac
12863        ;;
12864       dgux*)
12865         case $cc_basename in
12866           ec++*)
12867             lt_prog_compiler_pic_CXX='-KPIC'
12868             ;;
12869           ghcx*)
12870             # Green Hills C++ Compiler
12871             lt_prog_compiler_pic_CXX='-pic'
12872             ;;
12873           *)
12874             ;;
12875         esac
12876         ;;
12877       freebsd* | dragonfly*)
12878         # FreeBSD uses GNU C++
12879         ;;
12880       hpux9* | hpux10* | hpux11*)
12881         case $cc_basename in
12882           CC*)
12883             lt_prog_compiler_wl_CXX='-Wl,'
12884             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12885             if test "$host_cpu" != ia64; then
12886               lt_prog_compiler_pic_CXX='+Z'
12887             fi
12888             ;;
12889           aCC*)
12890             lt_prog_compiler_wl_CXX='-Wl,'
12891             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12892             case $host_cpu in
12893             hppa*64*|ia64*)
12894               # +Z the default
12895               ;;
12896             *)
12897               lt_prog_compiler_pic_CXX='+Z'
12898               ;;
12899             esac
12900             ;;
12901           *)
12902             ;;
12903         esac
12904         ;;
12905       interix*)
12906         # This is c89, which is MS Visual C++ (no shared libs)
12907         # Anyone wants to do a port?
12908         ;;
12909       irix5* | irix6* | nonstopux*)
12910         case $cc_basename in
12911           CC*)
12912             lt_prog_compiler_wl_CXX='-Wl,'
12913             lt_prog_compiler_static_CXX='-non_shared'
12914             # CC pic flag -KPIC is the default.
12915             ;;
12916           *)
12917             ;;
12918         esac
12919         ;;
12920       linux* | k*bsd*-gnu)
12921         case $cc_basename in
12922           KCC*)
12923             # KAI C++ Compiler
12924             lt_prog_compiler_wl_CXX='--backend -Wl,'
12925             lt_prog_compiler_pic_CXX='-fPIC'
12926             ;;
12927           icpc* | ecpc*)
12928             # Intel C++
12929             lt_prog_compiler_wl_CXX='-Wl,'
12930             lt_prog_compiler_pic_CXX='-KPIC'
12931             lt_prog_compiler_static_CXX='-static'
12932             ;;
12933           pgCC*)
12934             # Portland Group C++ compiler.
12935             lt_prog_compiler_wl_CXX='-Wl,'
12936             lt_prog_compiler_pic_CXX='-fpic'
12937             lt_prog_compiler_static_CXX='-Bstatic'
12938             ;;
12939           cxx*)
12940             # Compaq C++
12941             # Make sure the PIC flag is empty.  It appears that all Alpha
12942             # Linux and Compaq Tru64 Unix objects are PIC.
12943             lt_prog_compiler_pic_CXX=
12944             lt_prog_compiler_static_CXX='-non_shared'
12945             ;;
12946           *)
12947             ;;
12948         esac
12949         ;;
12950       lynxos*)
12951         ;;
12952       m88k*)
12953         ;;
12954       mvs*)
12955         case $cc_basename in
12956           cxx*)
12957             lt_prog_compiler_pic_CXX='-W c,exportall'
12958             ;;
12959           *)
12960             ;;
12961         esac
12962         ;;
12963       netbsd* | netbsdelf*-gnu)
12964         ;;
12965       osf3* | osf4* | osf5*)
12966         case $cc_basename in
12967           KCC*)
12968             lt_prog_compiler_wl_CXX='--backend -Wl,'
12969             ;;
12970           RCC*)
12971             # Rational C++ 2.4.1
12972             lt_prog_compiler_pic_CXX='-pic'
12973             ;;
12974           cxx*)
12975             # Digital/Compaq C++
12976             lt_prog_compiler_wl_CXX='-Wl,'
12977             # Make sure the PIC flag is empty.  It appears that all Alpha
12978             # Linux and Compaq Tru64 Unix objects are PIC.
12979             lt_prog_compiler_pic_CXX=
12980             lt_prog_compiler_static_CXX='-non_shared'
12981             ;;
12982           *)
12983             ;;
12984         esac
12985         ;;
12986       psos*)
12987         ;;
12988       solaris*)
12989         case $cc_basename in
12990           CC*)
12991             # Sun C++ 4.2, 5.x and Centerline C++
12992             lt_prog_compiler_pic_CXX='-KPIC'
12993             lt_prog_compiler_static_CXX='-Bstatic'
12994             lt_prog_compiler_wl_CXX='-Qoption ld '
12995             ;;
12996           gcx*)
12997             # Green Hills C++ Compiler
12998             lt_prog_compiler_pic_CXX='-PIC'
12999             ;;
13000           *)
13001             ;;
13002         esac
13003         ;;
13004       sunos4*)
13005         case $cc_basename in
13006           CC*)
13007             # Sun C++ 4.x
13008             lt_prog_compiler_pic_CXX='-pic'
13009             lt_prog_compiler_static_CXX='-Bstatic'
13010             ;;
13011           lcc*)
13012             # Lucid
13013             lt_prog_compiler_pic_CXX='-pic'
13014             ;;
13015           *)
13016             ;;
13017         esac
13018         ;;
13019       tandem*)
13020         case $cc_basename in
13021           NCC*)
13022             # NonStop-UX NCC 3.20
13023             lt_prog_compiler_pic_CXX='-KPIC'
13024             ;;
13025           *)
13026             ;;
13027         esac
13028         ;;
13029       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13030         case $cc_basename in
13031           CC*)
13032             lt_prog_compiler_wl_CXX='-Wl,'
13033             lt_prog_compiler_pic_CXX='-KPIC'
13034             lt_prog_compiler_static_CXX='-Bstatic'
13035             ;;
13036         esac
13037         ;;
13038       vxworks*)
13039         ;;
13040       *)
13041         lt_prog_compiler_can_build_shared_CXX=no
13042         ;;
13043     esac
13044   fi
13045
13046 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13047 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13048
13049 #
13050 # Check to make sure the PIC flag actually works.
13051 #
13052 if test -n "$lt_prog_compiler_pic_CXX"; then
13053
13054 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13055 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13056 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   lt_prog_compiler_pic_works_CXX=no
13060   ac_outfile=conftest.$ac_objext
13061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13062    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13063    # Insert the option either (1) after the last *FLAGS variable, or
13064    # (2) before a word containing "conftest.", or (3) at the end.
13065    # Note that $ac_compile itself does not contain backslashes and begins
13066    # with a dollar sign (not a hyphen), so the echo should work correctly.
13067    # The option is referenced via a variable to avoid confusing sed.
13068    lt_compile=`echo "$ac_compile" | $SED \
13069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13071    -e 's:$: $lt_compiler_flag:'`
13072    (eval echo "\"\$as_me:13072: $lt_compile\"" >&5)
13073    (eval "$lt_compile" 2>conftest.err)
13074    ac_status=$?
13075    cat conftest.err >&5
13076    echo "$as_me:13076: \$? = $ac_status" >&5
13077    if (exit $ac_status) && test -s "$ac_outfile"; then
13078      # The compiler can only warn and ignore the option if not recognized
13079      # So say no if there are warnings other than the usual output.
13080      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13083        lt_prog_compiler_pic_works_CXX=yes
13084      fi
13085    fi
13086    $rm conftest*
13087
13088 fi
13089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13090 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13091
13092 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13093     case $lt_prog_compiler_pic_CXX in
13094      "" | " "*) ;;
13095      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13096      esac
13097 else
13098     lt_prog_compiler_pic_CXX=
13099      lt_prog_compiler_can_build_shared_CXX=no
13100 fi
13101
13102 fi
13103 case $host_os in
13104   # For platforms which do not support PIC, -DPIC is meaningless:
13105   *djgpp*)
13106     lt_prog_compiler_pic_CXX=
13107     ;;
13108   *)
13109     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13110     ;;
13111 esac
13112
13113 #
13114 # Check to make sure the static flag actually works.
13115 #
13116 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13117 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13118 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13119 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   lt_prog_compiler_static_works_CXX=no
13123    save_LDFLAGS="$LDFLAGS"
13124    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13125    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13126    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13127      # The linker can only warn and ignore the option if not recognized
13128      # So say no if there are warnings
13129      if test -s conftest.err; then
13130        # Append any errors to the config.log.
13131        cat conftest.err 1>&5
13132        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13133        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13134        if diff conftest.exp conftest.er2 >/dev/null; then
13135          lt_prog_compiler_static_works_CXX=yes
13136        fi
13137      else
13138        lt_prog_compiler_static_works_CXX=yes
13139      fi
13140    fi
13141    $rm conftest*
13142    LDFLAGS="$save_LDFLAGS"
13143
13144 fi
13145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13146 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13147
13148 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13149     :
13150 else
13151     lt_prog_compiler_static_CXX=
13152 fi
13153
13154
13155 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13157 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   lt_cv_prog_compiler_c_o_CXX=no
13161    $rm -r conftest 2>/dev/null
13162    mkdir conftest
13163    cd conftest
13164    mkdir out
13165    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13166
13167    lt_compiler_flag="-o out/conftest2.$ac_objext"
13168    # Insert the option either (1) after the last *FLAGS variable, or
13169    # (2) before a word containing "conftest.", or (3) at the end.
13170    # Note that $ac_compile itself does not contain backslashes and begins
13171    # with a dollar sign (not a hyphen), so the echo should work correctly.
13172    lt_compile=`echo "$ac_compile" | $SED \
13173    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13174    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13175    -e 's:$: $lt_compiler_flag:'`
13176    (eval echo "\"\$as_me:13176: $lt_compile\"" >&5)
13177    (eval "$lt_compile" 2>out/conftest.err)
13178    ac_status=$?
13179    cat out/conftest.err >&5
13180    echo "$as_me:13180: \$? = $ac_status" >&5
13181    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13182    then
13183      # The compiler can only warn and ignore the option if not recognized
13184      # So say no if there are warnings
13185      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13186      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13187      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13188        lt_cv_prog_compiler_c_o_CXX=yes
13189      fi
13190    fi
13191    chmod u+w . 2>&5
13192    $rm conftest*
13193    # SGI C++ compiler will create directory out/ii_files/ for
13194    # template instantiation
13195    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13196    $rm out/* && rmdir out
13197    cd ..
13198    rmdir conftest
13199    $rm conftest*
13200
13201 fi
13202 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13204
13205
13206 hard_links="nottested"
13207 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13208   # do not overwrite the value of need_locks provided by the user
13209   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13211   hard_links=yes
13212   $rm conftest*
13213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13214   touch conftest.a
13215   ln conftest.a conftest.b 2>&5 || hard_links=no
13216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13217   { echo "$as_me:$LINENO: result: $hard_links" >&5
13218 echo "${ECHO_T}$hard_links" >&6; }
13219   if test "$hard_links" = no; then
13220     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13222     need_locks=warn
13223   fi
13224 else
13225   need_locks=no
13226 fi
13227
13228 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13230
13231   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13232   case $host_os in
13233   aix4* | aix5*)
13234     # If we're using GNU nm, then we don't want the "-C" option.
13235     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13236     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13237       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'
13238     else
13239       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'
13240     fi
13241     ;;
13242   pw32*)
13243     export_symbols_cmds_CXX="$ltdll_cmds"
13244   ;;
13245   cygwin* | mingw*)
13246     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'
13247   ;;
13248   linux* | k*bsd*-gnu)
13249     link_all_deplibs_CXX=no
13250   ;;
13251   *)
13252     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13253   ;;
13254   esac
13255
13256 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13257 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13258 test "$ld_shlibs_CXX" = no && can_build_shared=no
13259
13260 #
13261 # Do we need to explicitly link libc?
13262 #
13263 case "x$archive_cmds_need_lc_CXX" in
13264 x|xyes)
13265   # Assume -lc should be added
13266   archive_cmds_need_lc_CXX=yes
13267
13268   if test "$enable_shared" = yes && test "$GCC" = yes; then
13269     case $archive_cmds_CXX in
13270     *'~'*)
13271       # FIXME: we may have to deal with multi-command sequences.
13272       ;;
13273     '$CC '*)
13274       # Test whether the compiler implicitly links with -lc since on some
13275       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13276       # to ld, don't add -lc before -lgcc.
13277       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13278 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13279       $rm conftest*
13280       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13281
13282       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13283   (eval $ac_compile) 2>&5
13284   ac_status=$?
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); } 2>conftest.err; then
13287         soname=conftest
13288         lib=conftest
13289         libobjs=conftest.$ac_objext
13290         deplibs=
13291         wl=$lt_prog_compiler_wl_CXX
13292         pic_flag=$lt_prog_compiler_pic_CXX
13293         compiler_flags=-v
13294         linker_flags=-v
13295         verstring=
13296         output_objdir=.
13297         libname=conftest
13298         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13299         allow_undefined_flag_CXX=
13300         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13301   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); }
13305         then
13306           archive_cmds_need_lc_CXX=no
13307         else
13308           archive_cmds_need_lc_CXX=yes
13309         fi
13310         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13311       else
13312         cat conftest.err 1>&5
13313       fi
13314       $rm conftest*
13315       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13316 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13317       ;;
13318     esac
13319   fi
13320   ;;
13321 esac
13322
13323 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13324 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13325 library_names_spec=
13326 libname_spec='lib$name'
13327 soname_spec=
13328 shrext_cmds=".so"
13329 postinstall_cmds=
13330 postuninstall_cmds=
13331 finish_cmds=
13332 finish_eval=
13333 shlibpath_var=
13334 shlibpath_overrides_runpath=unknown
13335 version_type=none
13336 dynamic_linker="$host_os ld.so"
13337 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13338 if test "$GCC" = yes; then
13339   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13340   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13341     # if the path contains ";" then we assume it to be the separator
13342     # otherwise default to the standard path separator (i.e. ":") - it is
13343     # assumed that no part of a normal pathname contains ";" but that should
13344     # okay in the real world where ";" in dirpaths is itself problematic.
13345     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13346   else
13347     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13348   fi
13349 else
13350   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13351 fi
13352 need_lib_prefix=unknown
13353 hardcode_into_libs=no
13354
13355 # when you set need_version to no, make sure it does not cause -set_version
13356 # flags to be left without arguments
13357 need_version=unknown
13358
13359 case $host_os in
13360 aix3*)
13361   version_type=linux
13362   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13363   shlibpath_var=LIBPATH
13364
13365   # AIX 3 has no versioning support, so we append a major version to the name.
13366   soname_spec='${libname}${release}${shared_ext}$major'
13367   ;;
13368
13369 aix4* | aix5*)
13370   version_type=linux
13371   need_lib_prefix=no
13372   need_version=no
13373   hardcode_into_libs=yes
13374   if test "$host_cpu" = ia64; then
13375     # AIX 5 supports IA64
13376     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13377     shlibpath_var=LD_LIBRARY_PATH
13378   else
13379     # With GCC up to 2.95.x, collect2 would create an import file
13380     # for dependence libraries.  The import file would start with
13381     # the line `#! .'.  This would cause the generated library to
13382     # depend on `.', always an invalid library.  This was fixed in
13383     # development snapshots of GCC prior to 3.0.
13384     case $host_os in
13385       aix4 | aix4.[01] | aix4.[01].*)
13386       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13387            echo ' yes '
13388            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13389         :
13390       else
13391         can_build_shared=no
13392       fi
13393       ;;
13394     esac
13395     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13396     # soname into executable. Probably we can add versioning support to
13397     # collect2, so additional links can be useful in future.
13398     if test "$aix_use_runtimelinking" = yes; then
13399       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13400       # instead of lib<name>.a to let people know that these are not
13401       # typical AIX shared libraries.
13402       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403     else
13404       # We preserve .a as extension for shared libraries through AIX4.2
13405       # and later when we are not doing run time linking.
13406       library_names_spec='${libname}${release}.a $libname.a'
13407       soname_spec='${libname}${release}${shared_ext}$major'
13408     fi
13409     shlibpath_var=LIBPATH
13410   fi
13411   ;;
13412
13413 amigaos*)
13414   library_names_spec='$libname.ixlibrary $libname.a'
13415   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13416   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'
13417   ;;
13418
13419 beos*)
13420   library_names_spec='${libname}${shared_ext}'
13421   dynamic_linker="$host_os ld.so"
13422   shlibpath_var=LIBRARY_PATH
13423   ;;
13424
13425 bsdi[45]*)
13426   version_type=linux
13427   need_version=no
13428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429   soname_spec='${libname}${release}${shared_ext}$major'
13430   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13431   shlibpath_var=LD_LIBRARY_PATH
13432   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13433   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13434   # the default ld.so.conf also contains /usr/contrib/lib and
13435   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13436   # libtool to hard-code these into programs
13437   ;;
13438
13439 cygwin* | mingw* | pw32*)
13440   version_type=windows
13441   shrext_cmds=".dll"
13442   need_version=no
13443   need_lib_prefix=no
13444
13445   case $GCC,$host_os in
13446   yes,cygwin* | yes,mingw* | yes,pw32*)
13447     library_names_spec='$libname.dll.a'
13448     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13449     postinstall_cmds='base_file=`basename \${file}`~
13450       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13451       dldir=$destdir/`dirname \$dlpath`~
13452       test -d \$dldir || mkdir -p \$dldir~
13453       $install_prog $dir/$dlname \$dldir/$dlname~
13454       chmod a+x \$dldir/$dlname'
13455     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13456       dlpath=$dir/\$dldll~
13457        $rm \$dlpath'
13458     shlibpath_overrides_runpath=yes
13459
13460     case $host_os in
13461     cygwin*)
13462       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13463       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13464       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13465       ;;
13466     mingw*)
13467       # MinGW DLLs use traditional 'lib' prefix
13468       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13469       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13470       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13471         # It is most probably a Windows format PATH printed by
13472         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13473         # path with ; separators, and with drive letters. We can handle the
13474         # drive letters (cygwin fileutils understands them), so leave them,
13475         # especially as we might pass files found there to a mingw objdump,
13476         # which wouldn't understand a cygwinified path. Ahh.
13477         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13478       else
13479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13480       fi
13481       ;;
13482     pw32*)
13483       # pw32 DLLs use 'pw' prefix rather than 'lib'
13484       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13485       ;;
13486     esac
13487     ;;
13488
13489   *)
13490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13491     ;;
13492   esac
13493   dynamic_linker='Win32 ld.exe'
13494   # FIXME: first we should search . and the directory the executable is in
13495   shlibpath_var=PATH
13496   ;;
13497
13498 darwin* | rhapsody*)
13499   dynamic_linker="$host_os dyld"
13500   version_type=darwin
13501   need_lib_prefix=no
13502   need_version=no
13503   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13504   soname_spec='${libname}${release}${major}$shared_ext'
13505   shlibpath_overrides_runpath=yes
13506   shlibpath_var=DYLD_LIBRARY_PATH
13507   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13508   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13509   if test "$GCC" = yes; then
13510     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"`
13511   else
13512     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13513   fi
13514   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13515   ;;
13516
13517 dgux*)
13518   version_type=linux
13519   need_lib_prefix=no
13520   need_version=no
13521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13522   soname_spec='${libname}${release}${shared_ext}$major'
13523   shlibpath_var=LD_LIBRARY_PATH
13524   ;;
13525
13526 freebsd1*)
13527   dynamic_linker=no
13528   ;;
13529
13530 freebsd* | dragonfly*)
13531   # DragonFly does not have aout.  When/if they implement a new
13532   # versioning mechanism, adjust this.
13533   if test -x /usr/bin/objformat; then
13534     objformat=`/usr/bin/objformat`
13535   else
13536     case $host_os in
13537     freebsd[123]*) objformat=aout ;;
13538     *) objformat=elf ;;
13539     esac
13540   fi
13541   version_type=freebsd-$objformat
13542   case $version_type in
13543     freebsd-elf*)
13544       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13545       need_version=no
13546       need_lib_prefix=no
13547       ;;
13548     freebsd-*)
13549       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13550       need_version=yes
13551       ;;
13552   esac
13553   shlibpath_var=LD_LIBRARY_PATH
13554   case $host_os in
13555   freebsd2*)
13556     shlibpath_overrides_runpath=yes
13557     ;;
13558   freebsd3.[01]* | freebsdelf3.[01]*)
13559     shlibpath_overrides_runpath=yes
13560     hardcode_into_libs=yes
13561     ;;
13562   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13563   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13564     shlibpath_overrides_runpath=no
13565     hardcode_into_libs=yes
13566     ;;
13567   freebsd*) # from 4.6 on
13568     shlibpath_overrides_runpath=yes
13569     hardcode_into_libs=yes
13570     ;;
13571   esac
13572   ;;
13573
13574 gnu*)
13575   version_type=linux
13576   need_lib_prefix=no
13577   need_version=no
13578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13579   soname_spec='${libname}${release}${shared_ext}$major'
13580   shlibpath_var=LD_LIBRARY_PATH
13581   hardcode_into_libs=yes
13582   ;;
13583
13584 hpux9* | hpux10* | hpux11*)
13585   # Give a soname corresponding to the major version so that dld.sl refuses to
13586   # link against other versions.
13587   version_type=sunos
13588   need_lib_prefix=no
13589   need_version=no
13590   case $host_cpu in
13591   ia64*)
13592     shrext_cmds='.so'
13593     hardcode_into_libs=yes
13594     dynamic_linker="$host_os dld.so"
13595     shlibpath_var=LD_LIBRARY_PATH
13596     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598     soname_spec='${libname}${release}${shared_ext}$major'
13599     if test "X$HPUX_IA64_MODE" = X32; then
13600       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13601     else
13602       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13603     fi
13604     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13605     ;;
13606    hppa*64*)
13607      shrext_cmds='.sl'
13608      hardcode_into_libs=yes
13609      dynamic_linker="$host_os dld.sl"
13610      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13611      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13612      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13613      soname_spec='${libname}${release}${shared_ext}$major'
13614      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13615      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13616      ;;
13617    *)
13618     shrext_cmds='.sl'
13619     dynamic_linker="$host_os dld.sl"
13620     shlibpath_var=SHLIB_PATH
13621     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623     soname_spec='${libname}${release}${shared_ext}$major'
13624     ;;
13625   esac
13626   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13627   postinstall_cmds='chmod 555 $lib'
13628   ;;
13629
13630 interix3*)
13631   version_type=linux
13632   need_lib_prefix=no
13633   need_version=no
13634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13635   soname_spec='${libname}${release}${shared_ext}$major'
13636   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13637   shlibpath_var=LD_LIBRARY_PATH
13638   shlibpath_overrides_runpath=no
13639   hardcode_into_libs=yes
13640   ;;
13641
13642 irix5* | irix6* | nonstopux*)
13643   case $host_os in
13644     nonstopux*) version_type=nonstopux ;;
13645     *)
13646         if test "$lt_cv_prog_gnu_ld" = yes; then
13647                 version_type=linux
13648         else
13649                 version_type=irix
13650         fi ;;
13651   esac
13652   need_lib_prefix=no
13653   need_version=no
13654   soname_spec='${libname}${release}${shared_ext}$major'
13655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13656   case $host_os in
13657   irix5* | nonstopux*)
13658     libsuff= shlibsuff=
13659     ;;
13660   *)
13661     case $LD in # libtool.m4 will add one of these switches to LD
13662     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13663       libsuff= shlibsuff= libmagic=32-bit;;
13664     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13665       libsuff=32 shlibsuff=N32 libmagic=N32;;
13666     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13667       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13668     *) libsuff= shlibsuff= libmagic=never-match;;
13669     esac
13670     ;;
13671   esac
13672   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13673   shlibpath_overrides_runpath=no
13674   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13675   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13676   hardcode_into_libs=yes
13677   ;;
13678
13679 # No shared lib support for Linux oldld, aout, or coff.
13680 linux*oldld* | linux*aout* | linux*coff*)
13681   dynamic_linker=no
13682   ;;
13683
13684 # This must be Linux ELF.
13685 linux* | k*bsd*-gnu)
13686   version_type=linux
13687   need_lib_prefix=no
13688   need_version=no
13689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690   soname_spec='${libname}${release}${shared_ext}$major'
13691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13692   shlibpath_var=LD_LIBRARY_PATH
13693   shlibpath_overrides_runpath=no
13694   # This implies no fast_install, which is unacceptable.
13695   # Some rework will be needed to allow for fast_install
13696   # before this can be enabled.
13697   hardcode_into_libs=yes
13698
13699   # Append ld.so.conf contents to the search path
13700   if test -f /etc/ld.so.conf; then
13701     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' ' '`
13702     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13703   fi
13704
13705   # We used to test for /lib/ld.so.1 and disable shared libraries on
13706   # powerpc, because MkLinux only supported shared libraries with the
13707   # GNU dynamic linker.  Since this was broken with cross compilers,
13708   # most powerpc-linux boxes support dynamic linking these days and
13709   # people can always --disable-shared, the test was removed, and we
13710   # assume the GNU/Linux dynamic linker is in use.
13711   dynamic_linker='GNU/Linux ld.so'
13712   ;;
13713
13714 netbsdelf*-gnu)
13715   version_type=linux
13716   need_lib_prefix=no
13717   need_version=no
13718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13719   soname_spec='${libname}${release}${shared_ext}$major'
13720   shlibpath_var=LD_LIBRARY_PATH
13721   shlibpath_overrides_runpath=no
13722   hardcode_into_libs=yes
13723   dynamic_linker='NetBSD ld.elf_so'
13724   ;;
13725
13726 netbsd*)
13727   version_type=sunos
13728   need_lib_prefix=no
13729   need_version=no
13730   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13733     dynamic_linker='NetBSD (a.out) ld.so'
13734   else
13735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13736     soname_spec='${libname}${release}${shared_ext}$major'
13737     dynamic_linker='NetBSD ld.elf_so'
13738   fi
13739   shlibpath_var=LD_LIBRARY_PATH
13740   shlibpath_overrides_runpath=yes
13741   hardcode_into_libs=yes
13742   ;;
13743
13744 newsos6)
13745   version_type=linux
13746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747   shlibpath_var=LD_LIBRARY_PATH
13748   shlibpath_overrides_runpath=yes
13749   ;;
13750
13751 nto-qnx*)
13752   version_type=linux
13753   need_lib_prefix=no
13754   need_version=no
13755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756   soname_spec='${libname}${release}${shared_ext}$major'
13757   shlibpath_var=LD_LIBRARY_PATH
13758   shlibpath_overrides_runpath=yes
13759   ;;
13760
13761 openbsd*)
13762   version_type=sunos
13763   sys_lib_dlsearch_path_spec="/usr/lib"
13764   need_lib_prefix=no
13765   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13766   case $host_os in
13767     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13768     *)                         need_version=no  ;;
13769   esac
13770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13771   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13772   shlibpath_var=LD_LIBRARY_PATH
13773   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13774     case $host_os in
13775       openbsd2.[89] | openbsd2.[89].*)
13776         shlibpath_overrides_runpath=no
13777         ;;
13778       *)
13779         shlibpath_overrides_runpath=yes
13780         ;;
13781       esac
13782   else
13783     shlibpath_overrides_runpath=yes
13784   fi
13785   ;;
13786
13787 os2*)
13788   libname_spec='$name'
13789   shrext_cmds=".dll"
13790   need_lib_prefix=no
13791   library_names_spec='$libname${shared_ext} $libname.a'
13792   dynamic_linker='OS/2 ld.exe'
13793   shlibpath_var=LIBPATH
13794   ;;
13795
13796 osf3* | osf4* | osf5*)
13797   version_type=osf
13798   need_lib_prefix=no
13799   need_version=no
13800   soname_spec='${libname}${release}${shared_ext}$major'
13801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13802   shlibpath_var=LD_LIBRARY_PATH
13803   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13804   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13805   ;;
13806
13807 solaris*)
13808   version_type=linux
13809   need_lib_prefix=no
13810   need_version=no
13811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13812   soname_spec='${libname}${release}${shared_ext}$major'
13813   shlibpath_var=LD_LIBRARY_PATH
13814   shlibpath_overrides_runpath=yes
13815   hardcode_into_libs=yes
13816   # ldd complains unless libraries are executable
13817   postinstall_cmds='chmod +x $lib'
13818   ;;
13819
13820 sunos4*)
13821   version_type=sunos
13822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13823   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13824   shlibpath_var=LD_LIBRARY_PATH
13825   shlibpath_overrides_runpath=yes
13826   if test "$with_gnu_ld" = yes; then
13827     need_lib_prefix=no
13828   fi
13829   need_version=yes
13830   ;;
13831
13832 sysv4 | sysv4.3*)
13833   version_type=linux
13834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835   soname_spec='${libname}${release}${shared_ext}$major'
13836   shlibpath_var=LD_LIBRARY_PATH
13837   case $host_vendor in
13838     sni)
13839       shlibpath_overrides_runpath=no
13840       need_lib_prefix=no
13841       export_dynamic_flag_spec='${wl}-Blargedynsym'
13842       runpath_var=LD_RUN_PATH
13843       ;;
13844     siemens)
13845       need_lib_prefix=no
13846       ;;
13847     motorola)
13848       need_lib_prefix=no
13849       need_version=no
13850       shlibpath_overrides_runpath=no
13851       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13852       ;;
13853   esac
13854   ;;
13855
13856 sysv4*MP*)
13857   if test -d /usr/nec ;then
13858     version_type=linux
13859     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13860     soname_spec='$libname${shared_ext}.$major'
13861     shlibpath_var=LD_LIBRARY_PATH
13862   fi
13863   ;;
13864
13865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13866   version_type=freebsd-elf
13867   need_lib_prefix=no
13868   need_version=no
13869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13870   soname_spec='${libname}${release}${shared_ext}$major'
13871   shlibpath_var=LD_LIBRARY_PATH
13872   hardcode_into_libs=yes
13873   if test "$with_gnu_ld" = yes; then
13874     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13875     shlibpath_overrides_runpath=no
13876   else
13877     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13878     shlibpath_overrides_runpath=yes
13879     case $host_os in
13880       sco3.2v5*)
13881         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13882         ;;
13883     esac
13884   fi
13885   sys_lib_dlsearch_path_spec='/usr/lib'
13886   ;;
13887
13888 uts4*)
13889   version_type=linux
13890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891   soname_spec='${libname}${release}${shared_ext}$major'
13892   shlibpath_var=LD_LIBRARY_PATH
13893   ;;
13894
13895 *)
13896   dynamic_linker=no
13897   ;;
13898 esac
13899 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13900 echo "${ECHO_T}$dynamic_linker" >&6; }
13901 test "$dynamic_linker" = no && can_build_shared=no
13902
13903 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13904 if test "$GCC" = yes; then
13905   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13906 fi
13907
13908 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13910 hardcode_action_CXX=
13911 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13912    test -n "$runpath_var_CXX" || \
13913    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13914
13915   # We can hardcode non-existant directories.
13916   if test "$hardcode_direct_CXX" != no &&
13917      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13918      # have to relink, otherwise we might link with an installed library
13919      # when we should be linking with a yet-to-be-installed one
13920      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13921      test "$hardcode_minus_L_CXX" != no; then
13922     # Linking always hardcodes the temporary library directory.
13923     hardcode_action_CXX=relink
13924   else
13925     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13926     hardcode_action_CXX=immediate
13927   fi
13928 else
13929   # We cannot hardcode anything, or else we can only hardcode existing
13930   # directories.
13931   hardcode_action_CXX=unsupported
13932 fi
13933 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13934 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13935
13936 if test "$hardcode_action_CXX" = relink; then
13937   # Fast installation is not supported
13938   enable_fast_install=no
13939 elif test "$shlibpath_overrides_runpath" = yes ||
13940      test "$enable_shared" = no; then
13941   # Fast installation is not necessary
13942   enable_fast_install=needless
13943 fi
13944
13945
13946 # The else clause should only fire when bootstrapping the
13947 # libtool distribution, otherwise you forgot to ship ltmain.sh
13948 # with your package, and you will get complaints that there are
13949 # no rules to generate ltmain.sh.
13950 if test -f "$ltmain"; then
13951   # See if we are running on zsh, and set the options which allow our commands through
13952   # without removal of \ escapes.
13953   if test -n "${ZSH_VERSION+set}" ; then
13954     setopt NO_GLOB_SUBST
13955   fi
13956   # Now quote all the things that may contain metacharacters while being
13957   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13958   # variables and quote the copies for generation of the libtool script.
13959   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13960     SED SHELL STRIP \
13961     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13962     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13963     deplibs_check_method reload_flag reload_cmds need_locks \
13964     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13965     lt_cv_sys_global_symbol_to_c_name_address \
13966     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13967     old_postinstall_cmds old_postuninstall_cmds \
13968     compiler_CXX \
13969     CC_CXX \
13970     LD_CXX \
13971     lt_prog_compiler_wl_CXX \
13972     lt_prog_compiler_pic_CXX \
13973     lt_prog_compiler_static_CXX \
13974     lt_prog_compiler_no_builtin_flag_CXX \
13975     export_dynamic_flag_spec_CXX \
13976     thread_safe_flag_spec_CXX \
13977     whole_archive_flag_spec_CXX \
13978     enable_shared_with_static_runtimes_CXX \
13979     old_archive_cmds_CXX \
13980     old_archive_from_new_cmds_CXX \
13981     predep_objects_CXX \
13982     postdep_objects_CXX \
13983     predeps_CXX \
13984     postdeps_CXX \
13985     compiler_lib_search_path_CXX \
13986     archive_cmds_CXX \
13987     archive_expsym_cmds_CXX \
13988     postinstall_cmds_CXX \
13989     postuninstall_cmds_CXX \
13990     old_archive_from_expsyms_cmds_CXX \
13991     allow_undefined_flag_CXX \
13992     no_undefined_flag_CXX \
13993     export_symbols_cmds_CXX \
13994     hardcode_libdir_flag_spec_CXX \
13995     hardcode_libdir_flag_spec_ld_CXX \
13996     hardcode_libdir_separator_CXX \
13997     hardcode_automatic_CXX \
13998     module_cmds_CXX \
13999     module_expsym_cmds_CXX \
14000     lt_cv_prog_compiler_c_o_CXX \
14001     exclude_expsyms_CXX \
14002     include_expsyms_CXX; do
14003
14004     case $var in
14005     old_archive_cmds_CXX | \
14006     old_archive_from_new_cmds_CXX | \
14007     archive_cmds_CXX | \
14008     archive_expsym_cmds_CXX | \
14009     module_cmds_CXX | \
14010     module_expsym_cmds_CXX | \
14011     old_archive_from_expsyms_cmds_CXX | \
14012     export_symbols_cmds_CXX | \
14013     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14014     postinstall_cmds | postuninstall_cmds | \
14015     old_postinstall_cmds | old_postuninstall_cmds | \
14016     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14017       # Double-quote double-evaled strings.
14018       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14019       ;;
14020     *)
14021       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14022       ;;
14023     esac
14024   done
14025
14026   case $lt_echo in
14027   *'\$0 --fallback-echo"')
14028     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14029     ;;
14030   esac
14031
14032 cfgfile="$ofile"
14033
14034   cat <<__EOF__ >> "$cfgfile"
14035 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14036
14037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14038
14039 # Shell to use when invoking shell scripts.
14040 SHELL=$lt_SHELL
14041
14042 # Whether or not to build shared libraries.
14043 build_libtool_libs=$enable_shared
14044
14045 # Whether or not to build static libraries.
14046 build_old_libs=$enable_static
14047
14048 # Whether or not to add -lc for building shared libraries.
14049 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14050
14051 # Whether or not to disallow shared libs when runtime libs are static
14052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14053
14054 # Whether or not to optimize for fast installation.
14055 fast_install=$enable_fast_install
14056
14057 # The host system.
14058 host_alias=$host_alias
14059 host=$host
14060 host_os=$host_os
14061
14062 # The build system.
14063 build_alias=$build_alias
14064 build=$build
14065 build_os=$build_os
14066
14067 # An echo program that does not interpret backslashes.
14068 echo=$lt_echo
14069
14070 # The archiver.
14071 AR=$lt_AR
14072 AR_FLAGS=$lt_AR_FLAGS
14073
14074 # A C compiler.
14075 LTCC=$lt_LTCC
14076
14077 # LTCC compiler flags.
14078 LTCFLAGS=$lt_LTCFLAGS
14079
14080 # A language-specific compiler.
14081 CC=$lt_compiler_CXX
14082
14083 # Is the compiler the GNU C compiler?
14084 with_gcc=$GCC_CXX
14085
14086 # An ERE matcher.
14087 EGREP=$lt_EGREP
14088
14089 # The linker used to build libraries.
14090 LD=$lt_LD_CXX
14091
14092 # Whether we need hard or soft links.
14093 LN_S=$lt_LN_S
14094
14095 # A BSD-compatible nm program.
14096 NM=$lt_NM
14097
14098 # A symbol stripping program
14099 STRIP=$lt_STRIP
14100
14101 # Used to examine libraries when file_magic_cmd begins "file"
14102 MAGIC_CMD=$MAGIC_CMD
14103
14104 # Used on cygwin: DLL creation program.
14105 DLLTOOL="$DLLTOOL"
14106
14107 # Used on cygwin: object dumper.
14108 OBJDUMP="$OBJDUMP"
14109
14110 # Used on cygwin: assembler.
14111 AS="$AS"
14112
14113 # The name of the directory that contains temporary libtool files.
14114 objdir=$objdir
14115
14116 # How to create reloadable object files.
14117 reload_flag=$lt_reload_flag
14118 reload_cmds=$lt_reload_cmds
14119
14120 # How to pass a linker flag through the compiler.
14121 wl=$lt_lt_prog_compiler_wl_CXX
14122
14123 # Object file suffix (normally "o").
14124 objext="$ac_objext"
14125
14126 # Old archive suffix (normally "a").
14127 libext="$libext"
14128
14129 # Shared library suffix (normally ".so").
14130 shrext_cmds='$shrext_cmds'
14131
14132 # Executable file suffix (normally "").
14133 exeext="$exeext"
14134
14135 # Additional compiler flags for building library objects.
14136 pic_flag=$lt_lt_prog_compiler_pic_CXX
14137 pic_mode=$pic_mode
14138
14139 # What is the maximum length of a command?
14140 max_cmd_len=$lt_cv_sys_max_cmd_len
14141
14142 # Does compiler simultaneously support -c and -o options?
14143 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14144
14145 # Must we lock files when doing compilation?
14146 need_locks=$lt_need_locks
14147
14148 # Do we need the lib prefix for modules?
14149 need_lib_prefix=$need_lib_prefix
14150
14151 # Do we need a version for libraries?
14152 need_version=$need_version
14153
14154 # Whether dlopen is supported.
14155 dlopen_support=$enable_dlopen
14156
14157 # Whether dlopen of programs is supported.
14158 dlopen_self=$enable_dlopen_self
14159
14160 # Whether dlopen of statically linked programs is supported.
14161 dlopen_self_static=$enable_dlopen_self_static
14162
14163 # Compiler flag to prevent dynamic linking.
14164 link_static_flag=$lt_lt_prog_compiler_static_CXX
14165
14166 # Compiler flag to turn off builtin functions.
14167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14168
14169 # Compiler flag to allow reflexive dlopens.
14170 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14171
14172 # Compiler flag to generate shared objects directly from archives.
14173 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14174
14175 # Compiler flag to generate thread-safe objects.
14176 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14177
14178 # Library versioning type.
14179 version_type=$version_type
14180
14181 # Format of library name prefix.
14182 libname_spec=$lt_libname_spec
14183
14184 # List of archive names.  First name is the real one, the rest are links.
14185 # The last name is the one that the linker finds with -lNAME.
14186 library_names_spec=$lt_library_names_spec
14187
14188 # The coded name of the library, if different from the real name.
14189 soname_spec=$lt_soname_spec
14190
14191 # Commands used to build and install an old-style archive.
14192 RANLIB=$lt_RANLIB
14193 old_archive_cmds=$lt_old_archive_cmds_CXX
14194 old_postinstall_cmds=$lt_old_postinstall_cmds
14195 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14196
14197 # Create an old-style archive from a shared archive.
14198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14199
14200 # Create a temporary old-style archive to link instead of a shared archive.
14201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14202
14203 # Commands used to build and install a shared archive.
14204 archive_cmds=$lt_archive_cmds_CXX
14205 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14206 postinstall_cmds=$lt_postinstall_cmds
14207 postuninstall_cmds=$lt_postuninstall_cmds
14208
14209 # Commands used to build a loadable module (assumed same as above if empty)
14210 module_cmds=$lt_module_cmds_CXX
14211 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14212
14213 # Commands to strip libraries.
14214 old_striplib=$lt_old_striplib
14215 striplib=$lt_striplib
14216
14217 # Dependencies to place before the objects being linked to create a
14218 # shared library.
14219 predep_objects=$lt_predep_objects_CXX
14220
14221 # Dependencies to place after the objects being linked to create a
14222 # shared library.
14223 postdep_objects=$lt_postdep_objects_CXX
14224
14225 # Dependencies to place before the objects being linked to create a
14226 # shared library.
14227 predeps=$lt_predeps_CXX
14228
14229 # Dependencies to place after the objects being linked to create a
14230 # shared library.
14231 postdeps=$lt_postdeps_CXX
14232
14233 # The library search path used internally by the compiler when linking
14234 # a shared library.
14235 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14236
14237 # Method to check whether dependent libraries are shared objects.
14238 deplibs_check_method=$lt_deplibs_check_method
14239
14240 # Command to use when deplibs_check_method == file_magic.
14241 file_magic_cmd=$lt_file_magic_cmd
14242
14243 # Flag that allows shared libraries with undefined symbols to be built.
14244 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14245
14246 # Flag that forces no undefined symbols.
14247 no_undefined_flag=$lt_no_undefined_flag_CXX
14248
14249 # Commands used to finish a libtool library installation in a directory.
14250 finish_cmds=$lt_finish_cmds
14251
14252 # Same as above, but a single script fragment to be evaled but not shown.
14253 finish_eval=$lt_finish_eval
14254
14255 # Take the output of nm and produce a listing of raw symbols and C names.
14256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14257
14258 # Transform the output of nm in a proper C declaration
14259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14260
14261 # Transform the output of nm in a C name address pair
14262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14263
14264 # This is the shared library runtime path variable.
14265 runpath_var=$runpath_var
14266
14267 # This is the shared library path variable.
14268 shlibpath_var=$shlibpath_var
14269
14270 # Is shlibpath searched before the hard-coded library search path?
14271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14272
14273 # How to hardcode a shared library path into an executable.
14274 hardcode_action=$hardcode_action_CXX
14275
14276 # Whether we should hardcode library paths into libraries.
14277 hardcode_into_libs=$hardcode_into_libs
14278
14279 # Flag to hardcode \$libdir into a binary during linking.
14280 # This must work even if \$libdir does not exist.
14281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14282
14283 # If ld is used when linking, flag to hardcode \$libdir into
14284 # a binary during linking. This must work even if \$libdir does
14285 # not exist.
14286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14287
14288 # Whether we need a single -rpath flag with a separated argument.
14289 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14290
14291 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14292 # resulting binary.
14293 hardcode_direct=$hardcode_direct_CXX
14294
14295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14296 # resulting binary.
14297 hardcode_minus_L=$hardcode_minus_L_CXX
14298
14299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14300 # the resulting binary.
14301 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14302
14303 # Set to yes if building a shared library automatically hardcodes DIR into the library
14304 # and all subsequent libraries and executables linked against it.
14305 hardcode_automatic=$hardcode_automatic_CXX
14306
14307 # Variables whose values should be saved in libtool wrapper scripts and
14308 # restored at relink time.
14309 variables_saved_for_relink="$variables_saved_for_relink"
14310
14311 # Whether libtool must link a program against all its dependency libraries.
14312 link_all_deplibs=$link_all_deplibs_CXX
14313
14314 # Compile-time system search path for libraries
14315 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14316
14317 # Run-time system search path for libraries
14318 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14319
14320 # Fix the shell variable \$srcfile for the compiler.
14321 fix_srcfile_path="$fix_srcfile_path_CXX"
14322
14323 # Set to yes if exported symbols are required.
14324 always_export_symbols=$always_export_symbols_CXX
14325
14326 # The commands to list exported symbols.
14327 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14328
14329 # The commands to extract the exported symbol list from a shared archive.
14330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14331
14332 # Symbols that should not be listed in the preloaded symbols.
14333 exclude_expsyms=$lt_exclude_expsyms_CXX
14334
14335 # Symbols that must always be exported.
14336 include_expsyms=$lt_include_expsyms_CXX
14337
14338 # ### END LIBTOOL TAG CONFIG: $tagname
14339
14340 __EOF__
14341
14342
14343 else
14344   # If there is no Makefile yet, we rely on a make rule to execute
14345   # `config.status --recheck' to rerun these tests and create the
14346   # libtool script then.
14347   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14348   if test -f "$ltmain_in"; then
14349     test -f Makefile && make "$ltmain"
14350   fi
14351 fi
14352
14353
14354 ac_ext=c
14355 ac_cpp='$CPP $CPPFLAGS'
14356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360 CC=$lt_save_CC
14361 LDCXX=$LD
14362 LD=$lt_save_LD
14363 GCC=$lt_save_GCC
14364 with_gnu_ldcxx=$with_gnu_ld
14365 with_gnu_ld=$lt_save_with_gnu_ld
14366 lt_cv_path_LDCXX=$lt_cv_path_LD
14367 lt_cv_path_LD=$lt_save_path_LD
14368 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14369 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14370
14371         else
14372           tagname=""
14373         fi
14374         ;;
14375
14376       F77)
14377         if test -n "$F77" && test "X$F77" != "Xno"; then
14378
14379 ac_ext=f
14380 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14381 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14382 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14383
14384
14385 archive_cmds_need_lc_F77=no
14386 allow_undefined_flag_F77=
14387 always_export_symbols_F77=no
14388 archive_expsym_cmds_F77=
14389 export_dynamic_flag_spec_F77=
14390 hardcode_direct_F77=no
14391 hardcode_libdir_flag_spec_F77=
14392 hardcode_libdir_flag_spec_ld_F77=
14393 hardcode_libdir_separator_F77=
14394 hardcode_minus_L_F77=no
14395 hardcode_automatic_F77=no
14396 module_cmds_F77=
14397 module_expsym_cmds_F77=
14398 link_all_deplibs_F77=unknown
14399 old_archive_cmds_F77=$old_archive_cmds
14400 no_undefined_flag_F77=
14401 whole_archive_flag_spec_F77=
14402 enable_shared_with_static_runtimes_F77=no
14403
14404 # Source file extension for f77 test sources.
14405 ac_ext=f
14406
14407 # Object file extension for compiled f77 test sources.
14408 objext=o
14409 objext_F77=$objext
14410
14411 # Code to be used in simple compile tests
14412 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14413
14414 # Code to be used in simple link tests
14415 lt_simple_link_test_code="      program t\n      end\n"
14416
14417 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14418
14419 # If no C compiler was specified, use CC.
14420 LTCC=${LTCC-"$CC"}
14421
14422 # If no C compiler flags were specified, use CFLAGS.
14423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14424
14425 # Allow CC to be a program name with arguments.
14426 compiler=$CC
14427
14428
14429 # save warnings/boilerplate of simple test code
14430 ac_outfile=conftest.$ac_objext
14431 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14432 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14433 _lt_compiler_boilerplate=`cat conftest.err`
14434 $rm conftest*
14435
14436 ac_outfile=conftest.$ac_objext
14437 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14438 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14439 _lt_linker_boilerplate=`cat conftest.err`
14440 $rm conftest*
14441
14442
14443 # Allow CC to be a program name with arguments.
14444 lt_save_CC="$CC"
14445 CC=${F77-"f77"}
14446 compiler=$CC
14447 compiler_F77=$CC
14448 for cc_temp in $compiler""; do
14449   case $cc_temp in
14450     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14451     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14452     \-*) ;;
14453     *) break;;
14454   esac
14455 done
14456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14457
14458
14459 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14460 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14461 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14462 echo "${ECHO_T}$can_build_shared" >&6; }
14463
14464 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14465 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14466 test "$can_build_shared" = "no" && enable_shared=no
14467
14468 # On AIX, shared libraries and static libraries use the same namespace, and
14469 # are all built from PIC.
14470 case $host_os in
14471 aix3*)
14472   test "$enable_shared" = yes && enable_static=no
14473   if test -n "$RANLIB"; then
14474     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14475     postinstall_cmds='$RANLIB $lib'
14476   fi
14477   ;;
14478 aix4* | aix5*)
14479   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14480     test "$enable_shared" = yes && enable_static=no
14481   fi
14482   ;;
14483 esac
14484 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14485 echo "${ECHO_T}$enable_shared" >&6; }
14486
14487 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14488 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14489 # Make sure either enable_shared or enable_static is yes.
14490 test "$enable_shared" = yes || enable_static=yes
14491 { echo "$as_me:$LINENO: result: $enable_static" >&5
14492 echo "${ECHO_T}$enable_static" >&6; }
14493
14494 GCC_F77="$G77"
14495 LD_F77="$LD"
14496
14497 lt_prog_compiler_wl_F77=
14498 lt_prog_compiler_pic_F77=
14499 lt_prog_compiler_static_F77=
14500
14501 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14503
14504   if test "$GCC" = yes; then
14505     lt_prog_compiler_wl_F77='-Wl,'
14506     lt_prog_compiler_static_F77='-static'
14507
14508     case $host_os in
14509       aix*)
14510       # All AIX code is PIC.
14511       if test "$host_cpu" = ia64; then
14512         # AIX 5 now supports IA64 processor
14513         lt_prog_compiler_static_F77='-Bstatic'
14514       fi
14515       ;;
14516
14517     amigaos*)
14518       # FIXME: we need at least 68020 code to build shared libraries, but
14519       # adding the `-m68020' flag to GCC prevents building anything better,
14520       # like `-m68040'.
14521       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14522       ;;
14523
14524     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14525       # PIC is the default for these OSes.
14526       ;;
14527
14528     mingw* | pw32* | os2*)
14529       # This hack is so that the source file can tell whether it is being
14530       # built for inclusion in a dll (and should export symbols for example).
14531       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14532       ;;
14533
14534     darwin* | rhapsody*)
14535       # PIC is the default on this platform
14536       # Common symbols not allowed in MH_DYLIB files
14537       lt_prog_compiler_pic_F77='-fno-common'
14538       ;;
14539
14540     interix3*)
14541       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14542       # Instead, we relocate shared libraries at runtime.
14543       ;;
14544
14545     msdosdjgpp*)
14546       # Just because we use GCC doesn't mean we suddenly get shared libraries
14547       # on systems that don't support them.
14548       lt_prog_compiler_can_build_shared_F77=no
14549       enable_shared=no
14550       ;;
14551
14552     sysv4*MP*)
14553       if test -d /usr/nec; then
14554         lt_prog_compiler_pic_F77=-Kconform_pic
14555       fi
14556       ;;
14557
14558     hpux*)
14559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14560       # not for PA HP-UX.
14561       case $host_cpu in
14562       hppa*64*|ia64*)
14563         # +Z the default
14564         ;;
14565       *)
14566         lt_prog_compiler_pic_F77='-fPIC'
14567         ;;
14568       esac
14569       ;;
14570
14571     *)
14572       lt_prog_compiler_pic_F77='-fPIC'
14573       ;;
14574     esac
14575   else
14576     # PORTME Check for flag to pass linker flags through the system compiler.
14577     case $host_os in
14578     aix*)
14579       lt_prog_compiler_wl_F77='-Wl,'
14580       if test "$host_cpu" = ia64; then
14581         # AIX 5 now supports IA64 processor
14582         lt_prog_compiler_static_F77='-Bstatic'
14583       else
14584         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14585       fi
14586       ;;
14587       darwin*)
14588         # PIC is the default on this platform
14589         # Common symbols not allowed in MH_DYLIB files
14590        case $cc_basename in
14591          xlc*)
14592          lt_prog_compiler_pic_F77='-qnocommon'
14593          lt_prog_compiler_wl_F77='-Wl,'
14594          ;;
14595        esac
14596        ;;
14597
14598     mingw* | pw32* | os2*)
14599       # This hack is so that the source file can tell whether it is being
14600       # built for inclusion in a dll (and should export symbols for example).
14601       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14602       ;;
14603
14604     hpux9* | hpux10* | hpux11*)
14605       lt_prog_compiler_wl_F77='-Wl,'
14606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14607       # not for PA HP-UX.
14608       case $host_cpu in
14609       hppa*64*|ia64*)
14610         # +Z the default
14611         ;;
14612       *)
14613         lt_prog_compiler_pic_F77='+Z'
14614         ;;
14615       esac
14616       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14617       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14618       ;;
14619
14620     irix5* | irix6* | nonstopux*)
14621       lt_prog_compiler_wl_F77='-Wl,'
14622       # PIC (with -KPIC) is the default.
14623       lt_prog_compiler_static_F77='-non_shared'
14624       ;;
14625
14626     newsos6)
14627       lt_prog_compiler_pic_F77='-KPIC'
14628       lt_prog_compiler_static_F77='-Bstatic'
14629       ;;
14630
14631     linux* | k*bsd*-gnu)
14632       case $cc_basename in
14633       icc* | ecc*)
14634         lt_prog_compiler_wl_F77='-Wl,'
14635         lt_prog_compiler_pic_F77='-KPIC'
14636         lt_prog_compiler_static_F77='-static'
14637         ;;
14638       pgcc* | pgf77* | pgf90* | pgf95*)
14639         # Portland Group compilers (*not* the Pentium gcc compiler,
14640         # which looks to be a dead project)
14641         lt_prog_compiler_wl_F77='-Wl,'
14642         lt_prog_compiler_pic_F77='-fpic'
14643         lt_prog_compiler_static_F77='-Bstatic'
14644         ;;
14645       ccc*)
14646         lt_prog_compiler_wl_F77='-Wl,'
14647         # All Alpha code is PIC.
14648         lt_prog_compiler_static_F77='-non_shared'
14649         ;;
14650       esac
14651       ;;
14652
14653     osf3* | osf4* | osf5*)
14654       lt_prog_compiler_wl_F77='-Wl,'
14655       # All OSF/1 code is PIC.
14656       lt_prog_compiler_static_F77='-non_shared'
14657       ;;
14658
14659     solaris*)
14660       lt_prog_compiler_pic_F77='-KPIC'
14661       lt_prog_compiler_static_F77='-Bstatic'
14662       case $cc_basename in
14663       f77* | f90* | f95*)
14664         lt_prog_compiler_wl_F77='-Qoption ld ';;
14665       *)
14666         lt_prog_compiler_wl_F77='-Wl,';;
14667       esac
14668       ;;
14669
14670     sunos4*)
14671       lt_prog_compiler_wl_F77='-Qoption ld '
14672       lt_prog_compiler_pic_F77='-PIC'
14673       lt_prog_compiler_static_F77='-Bstatic'
14674       ;;
14675
14676     sysv4 | sysv4.2uw2* | sysv4.3*)
14677       lt_prog_compiler_wl_F77='-Wl,'
14678       lt_prog_compiler_pic_F77='-KPIC'
14679       lt_prog_compiler_static_F77='-Bstatic'
14680       ;;
14681
14682     sysv4*MP*)
14683       if test -d /usr/nec ;then
14684         lt_prog_compiler_pic_F77='-Kconform_pic'
14685         lt_prog_compiler_static_F77='-Bstatic'
14686       fi
14687       ;;
14688
14689     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14690       lt_prog_compiler_wl_F77='-Wl,'
14691       lt_prog_compiler_pic_F77='-KPIC'
14692       lt_prog_compiler_static_F77='-Bstatic'
14693       ;;
14694
14695     unicos*)
14696       lt_prog_compiler_wl_F77='-Wl,'
14697       lt_prog_compiler_can_build_shared_F77=no
14698       ;;
14699
14700     uts4*)
14701       lt_prog_compiler_pic_F77='-pic'
14702       lt_prog_compiler_static_F77='-Bstatic'
14703       ;;
14704
14705     *)
14706       lt_prog_compiler_can_build_shared_F77=no
14707       ;;
14708     esac
14709   fi
14710
14711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14712 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14713
14714 #
14715 # Check to make sure the PIC flag actually works.
14716 #
14717 if test -n "$lt_prog_compiler_pic_F77"; then
14718
14719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14721 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   lt_prog_compiler_pic_works_F77=no
14725   ac_outfile=conftest.$ac_objext
14726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14727    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14728    # Insert the option either (1) after the last *FLAGS variable, or
14729    # (2) before a word containing "conftest.", or (3) at the end.
14730    # Note that $ac_compile itself does not contain backslashes and begins
14731    # with a dollar sign (not a hyphen), so the echo should work correctly.
14732    # The option is referenced via a variable to avoid confusing sed.
14733    lt_compile=`echo "$ac_compile" | $SED \
14734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736    -e 's:$: $lt_compiler_flag:'`
14737    (eval echo "\"\$as_me:14737: $lt_compile\"" >&5)
14738    (eval "$lt_compile" 2>conftest.err)
14739    ac_status=$?
14740    cat conftest.err >&5
14741    echo "$as_me:14741: \$? = $ac_status" >&5
14742    if (exit $ac_status) && test -s "$ac_outfile"; then
14743      # The compiler can only warn and ignore the option if not recognized
14744      # So say no if there are warnings other than the usual output.
14745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14748        lt_prog_compiler_pic_works_F77=yes
14749      fi
14750    fi
14751    $rm conftest*
14752
14753 fi
14754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14755 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14756
14757 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14758     case $lt_prog_compiler_pic_F77 in
14759      "" | " "*) ;;
14760      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14761      esac
14762 else
14763     lt_prog_compiler_pic_F77=
14764      lt_prog_compiler_can_build_shared_F77=no
14765 fi
14766
14767 fi
14768 case $host_os in
14769   # For platforms which do not support PIC, -DPIC is meaningless:
14770   *djgpp*)
14771     lt_prog_compiler_pic_F77=
14772     ;;
14773   *)
14774     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14775     ;;
14776 esac
14777
14778 #
14779 # Check to make sure the static flag actually works.
14780 #
14781 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14784 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   lt_prog_compiler_static_works_F77=no
14788    save_LDFLAGS="$LDFLAGS"
14789    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14790    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14791    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14792      # The linker can only warn and ignore the option if not recognized
14793      # So say no if there are warnings
14794      if test -s conftest.err; then
14795        # Append any errors to the config.log.
14796        cat conftest.err 1>&5
14797        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14798        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14799        if diff conftest.exp conftest.er2 >/dev/null; then
14800          lt_prog_compiler_static_works_F77=yes
14801        fi
14802      else
14803        lt_prog_compiler_static_works_F77=yes
14804      fi
14805    fi
14806    $rm conftest*
14807    LDFLAGS="$save_LDFLAGS"
14808
14809 fi
14810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14811 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14812
14813 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14814     :
14815 else
14816     lt_prog_compiler_static_F77=
14817 fi
14818
14819
14820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14822 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   lt_cv_prog_compiler_c_o_F77=no
14826    $rm -r conftest 2>/dev/null
14827    mkdir conftest
14828    cd conftest
14829    mkdir out
14830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14831
14832    lt_compiler_flag="-o out/conftest2.$ac_objext"
14833    # Insert the option either (1) after the last *FLAGS variable, or
14834    # (2) before a word containing "conftest.", or (3) at the end.
14835    # Note that $ac_compile itself does not contain backslashes and begins
14836    # with a dollar sign (not a hyphen), so the echo should work correctly.
14837    lt_compile=`echo "$ac_compile" | $SED \
14838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840    -e 's:$: $lt_compiler_flag:'`
14841    (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
14842    (eval "$lt_compile" 2>out/conftest.err)
14843    ac_status=$?
14844    cat out/conftest.err >&5
14845    echo "$as_me:14845: \$? = $ac_status" >&5
14846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14847    then
14848      # The compiler can only warn and ignore the option if not recognized
14849      # So say no if there are warnings
14850      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14853        lt_cv_prog_compiler_c_o_F77=yes
14854      fi
14855    fi
14856    chmod u+w . 2>&5
14857    $rm conftest*
14858    # SGI C++ compiler will create directory out/ii_files/ for
14859    # template instantiation
14860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14861    $rm out/* && rmdir out
14862    cd ..
14863    rmdir conftest
14864    $rm conftest*
14865
14866 fi
14867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14869
14870
14871 hard_links="nottested"
14872 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14873   # do not overwrite the value of need_locks provided by the user
14874   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14876   hard_links=yes
14877   $rm conftest*
14878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14879   touch conftest.a
14880   ln conftest.a conftest.b 2>&5 || hard_links=no
14881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14882   { echo "$as_me:$LINENO: result: $hard_links" >&5
14883 echo "${ECHO_T}$hard_links" >&6; }
14884   if test "$hard_links" = no; then
14885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14887     need_locks=warn
14888   fi
14889 else
14890   need_locks=no
14891 fi
14892
14893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14895
14896   runpath_var=
14897   allow_undefined_flag_F77=
14898   enable_shared_with_static_runtimes_F77=no
14899   archive_cmds_F77=
14900   archive_expsym_cmds_F77=
14901   old_archive_From_new_cmds_F77=
14902   old_archive_from_expsyms_cmds_F77=
14903   export_dynamic_flag_spec_F77=
14904   whole_archive_flag_spec_F77=
14905   thread_safe_flag_spec_F77=
14906   hardcode_libdir_flag_spec_F77=
14907   hardcode_libdir_flag_spec_ld_F77=
14908   hardcode_libdir_separator_F77=
14909   hardcode_direct_F77=no
14910   hardcode_minus_L_F77=no
14911   hardcode_shlibpath_var_F77=unsupported
14912   link_all_deplibs_F77=unknown
14913   hardcode_automatic_F77=no
14914   module_cmds_F77=
14915   module_expsym_cmds_F77=
14916   always_export_symbols_F77=no
14917   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14918   # include_expsyms should be a list of space-separated symbols to be *always*
14919   # included in the symbol list
14920   include_expsyms_F77=
14921   # exclude_expsyms can be an extended regexp of symbols to exclude
14922   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14923   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14924   # as well as any symbol that contains `d'.
14925   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14926   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14927   # platforms (ab)use it in PIC code, but their linkers get confused if
14928   # the symbol is explicitly referenced.  Since portable code cannot
14929   # rely on this symbol name, it's probably fine to never include it in
14930   # preloaded symbol tables.
14931   extract_expsyms_cmds=
14932   # Just being paranoid about ensuring that cc_basename is set.
14933   for cc_temp in $compiler""; do
14934   case $cc_temp in
14935     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14936     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14937     \-*) ;;
14938     *) break;;
14939   esac
14940 done
14941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14942
14943   case $host_os in
14944   cygwin* | mingw* | pw32*)
14945     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14946     # When not using gcc, we currently assume that we are using
14947     # Microsoft Visual C++.
14948     if test "$GCC" != yes; then
14949       with_gnu_ld=no
14950     fi
14951     ;;
14952   interix*)
14953     # we just hope/assume this is gcc and not c89 (= MSVC++)
14954     with_gnu_ld=yes
14955     ;;
14956   openbsd*)
14957     with_gnu_ld=no
14958     ;;
14959   esac
14960
14961   ld_shlibs_F77=yes
14962   if test "$with_gnu_ld" = yes; then
14963     # If archive_cmds runs LD, not CC, wlarc should be empty
14964     wlarc='${wl}'
14965
14966     # Set some defaults for GNU ld with shared library support. These
14967     # are reset later if shared libraries are not supported. Putting them
14968     # here allows them to be overridden if necessary.
14969     runpath_var=LD_RUN_PATH
14970     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14971     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14972     # ancient GNU ld didn't support --whole-archive et. al.
14973     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14974         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14975       else
14976         whole_archive_flag_spec_F77=
14977     fi
14978     supports_anon_versioning=no
14979     case `$LD -v 2>/dev/null` in
14980       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14981       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14982       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14983       *\ 2.11.*) ;; # other 2.11 versions
14984       *) supports_anon_versioning=yes ;;
14985     esac
14986
14987     # See if GNU ld supports shared libraries.
14988     case $host_os in
14989     aix3* | aix4* | aix5*)
14990       # On AIX/PPC, the GNU linker is very broken
14991       if test "$host_cpu" != ia64; then
14992         ld_shlibs_F77=no
14993         cat <<EOF 1>&2
14994
14995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14996 *** to be unable to reliably create shared libraries on AIX.
14997 *** Therefore, libtool is disabling shared libraries support.  If you
14998 *** really care for shared libraries, you may want to modify your PATH
14999 *** so that a non-GNU linker is found, and then restart.
15000
15001 EOF
15002       fi
15003       ;;
15004
15005     amigaos*)
15006       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)'
15007       hardcode_libdir_flag_spec_F77='-L$libdir'
15008       hardcode_minus_L_F77=yes
15009
15010       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15011       # that the semantics of dynamic libraries on AmigaOS, at least up
15012       # to version 4, is to share data among multiple programs linked
15013       # with the same dynamic library.  Since this doesn't match the
15014       # behavior of shared libraries on other platforms, we can't use
15015       # them.
15016       ld_shlibs_F77=no
15017       ;;
15018
15019     beos*)
15020       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021         allow_undefined_flag_F77=unsupported
15022         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15023         # support --undefined.  This deserves some investigation.  FIXME
15024         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15025       else
15026         ld_shlibs_F77=no
15027       fi
15028       ;;
15029
15030     cygwin* | mingw* | pw32*)
15031       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15032       # as there is no search path for DLLs.
15033       hardcode_libdir_flag_spec_F77='-L$libdir'
15034       allow_undefined_flag_F77=unsupported
15035       always_export_symbols_F77=no
15036       enable_shared_with_static_runtimes_F77=yes
15037       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15038
15039       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15040         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15041         # If the export-symbols file already is a .def file (1st line
15042         # is EXPORTS), use it as is; otherwise, prepend...
15043         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15044           cp $export_symbols $output_objdir/$soname.def;
15045         else
15046           echo EXPORTS > $output_objdir/$soname.def;
15047           cat $export_symbols >> $output_objdir/$soname.def;
15048         fi~
15049         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15050       else
15051         ld_shlibs_F77=no
15052       fi
15053       ;;
15054
15055     interix3*)
15056       hardcode_direct_F77=no
15057       hardcode_shlibpath_var_F77=no
15058       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15059       export_dynamic_flag_spec_F77='${wl}-E'
15060       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15061       # Instead, shared libraries are loaded at an image base (0x10000000 by
15062       # default) and relocated if they conflict, which is a slow very memory
15063       # consuming and fragmenting process.  To avoid this, we pick a random,
15064       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15065       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15066       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'
15067       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'
15068       ;;
15069
15070     linux* | k*bsd*-gnu)
15071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15072         tmp_addflag=
15073         case $cc_basename,$host_cpu in
15074         pgcc*)                          # Portland Group C compiler
15075           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'
15076           tmp_addflag=' $pic_flag'
15077           ;;
15078         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15079           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'
15080           tmp_addflag=' $pic_flag -Mnomain' ;;
15081         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15082           tmp_addflag=' -i_dynamic' ;;
15083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15084           tmp_addflag=' -i_dynamic -nofor_main' ;;
15085         ifc* | ifort*)                  # Intel Fortran compiler
15086           tmp_addflag=' -nofor_main' ;;
15087         esac
15088         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15089
15090         if test $supports_anon_versioning = yes; then
15091           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15092   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15093   $echo "local: *; };" >> $output_objdir/$libname.ver~
15094           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15095         fi
15096         link_all_deplibs_F77=no
15097       else
15098         ld_shlibs_F77=no
15099       fi
15100       ;;
15101
15102     netbsd* | netbsdelf*-gnu)
15103       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15104         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15105         wlarc=
15106       else
15107         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15109       fi
15110       ;;
15111
15112     solaris*)
15113       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15114         ld_shlibs_F77=no
15115         cat <<EOF 1>&2
15116
15117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15118 *** create shared libraries on Solaris systems.  Therefore, libtool
15119 *** is disabling shared libraries support.  We urge you to upgrade GNU
15120 *** binutils to release 2.9.1 or newer.  Another option is to modify
15121 *** your PATH or compiler configuration so that the native linker is
15122 *** used, and then restart.
15123
15124 EOF
15125       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15126         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15128       else
15129         ld_shlibs_F77=no
15130       fi
15131       ;;
15132
15133     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15134       case `$LD -v 2>&1` in
15135         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15136         ld_shlibs_F77=no
15137         cat <<_LT_EOF 1>&2
15138
15139 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15140 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15141 *** is disabling shared libraries support.  We urge you to upgrade GNU
15142 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15143 *** your PATH or compiler configuration so that the native linker is
15144 *** used, and then restart.
15145
15146 _LT_EOF
15147         ;;
15148         *)
15149           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15150             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15151             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15152             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15153           else
15154             ld_shlibs_F77=no
15155           fi
15156         ;;
15157       esac
15158       ;;
15159
15160     sunos4*)
15161       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15162       wlarc=
15163       hardcode_direct_F77=yes
15164       hardcode_shlibpath_var_F77=no
15165       ;;
15166
15167     *)
15168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15169         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15170         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15171       else
15172         ld_shlibs_F77=no
15173       fi
15174       ;;
15175     esac
15176
15177     if test "$ld_shlibs_F77" = no; then
15178       runpath_var=
15179       hardcode_libdir_flag_spec_F77=
15180       export_dynamic_flag_spec_F77=
15181       whole_archive_flag_spec_F77=
15182     fi
15183   else
15184     # PORTME fill in a description of your system's linker (not GNU ld)
15185     case $host_os in
15186     aix3*)
15187       allow_undefined_flag_F77=unsupported
15188       always_export_symbols_F77=yes
15189       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'
15190       # Note: this linker hardcodes the directories in LIBPATH if there
15191       # are no directories specified by -L.
15192       hardcode_minus_L_F77=yes
15193       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15194         # Neither direct hardcoding nor static linking is supported with a
15195         # broken collect2.
15196         hardcode_direct_F77=unsupported
15197       fi
15198       ;;
15199
15200     aix4* | aix5*)
15201       if test "$host_cpu" = ia64; then
15202         # On IA64, the linker does run time linking by default, so we don't
15203         # have to do anything special.
15204         aix_use_runtimelinking=no
15205         exp_sym_flag='-Bexport'
15206         no_entry_flag=""
15207       else
15208         # If we're using GNU nm, then we don't want the "-C" option.
15209         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15210         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15211           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'
15212         else
15213           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'
15214         fi
15215         aix_use_runtimelinking=no
15216
15217         # Test if we are trying to use run time linking or normal
15218         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15219         # need to do runtime linking.
15220         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15221           for ld_flag in $LDFLAGS; do
15222           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15223             aix_use_runtimelinking=yes
15224             break
15225           fi
15226           done
15227           ;;
15228         esac
15229
15230         exp_sym_flag='-bexport'
15231         no_entry_flag='-bnoentry'
15232       fi
15233
15234       # When large executables or shared objects are built, AIX ld can
15235       # have problems creating the table of contents.  If linking a library
15236       # or program results in "error TOC overflow" add -mminimal-toc to
15237       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15238       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15239
15240       archive_cmds_F77=''
15241       hardcode_direct_F77=yes
15242       hardcode_libdir_separator_F77=':'
15243       link_all_deplibs_F77=yes
15244
15245       if test "$GCC" = yes; then
15246         case $host_os in aix4.[012]|aix4.[012].*)
15247         # We only want to do this on AIX 4.2 and lower, the check
15248         # below for broken collect2 doesn't work under 4.3+
15249           collect2name=`${CC} -print-prog-name=collect2`
15250           if test -f "$collect2name" && \
15251            strings "$collect2name" | grep resolve_lib_name >/dev/null
15252           then
15253           # We have reworked collect2
15254           hardcode_direct_F77=yes
15255           else
15256           # We have old collect2
15257           hardcode_direct_F77=unsupported
15258           # It fails to find uninstalled libraries when the uninstalled
15259           # path is not listed in the libpath.  Setting hardcode_minus_L
15260           # to unsupported forces relinking
15261           hardcode_minus_L_F77=yes
15262           hardcode_libdir_flag_spec_F77='-L$libdir'
15263           hardcode_libdir_separator_F77=
15264           fi
15265           ;;
15266         esac
15267         shared_flag='-shared'
15268         if test "$aix_use_runtimelinking" = yes; then
15269           shared_flag="$shared_flag "'${wl}-G'
15270         fi
15271       else
15272         # not using gcc
15273         if test "$host_cpu" = ia64; then
15274         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15275         # chokes on -Wl,-G. The following line is correct:
15276           shared_flag='-G'
15277         else
15278           if test "$aix_use_runtimelinking" = yes; then
15279             shared_flag='${wl}-G'
15280           else
15281             shared_flag='${wl}-bM:SRE'
15282           fi
15283         fi
15284       fi
15285
15286       # It seems that -bexpall does not export symbols beginning with
15287       # underscore (_), so it is better to generate a list of symbols to export.
15288       always_export_symbols_F77=yes
15289       if test "$aix_use_runtimelinking" = yes; then
15290         # Warning - without using the other runtime loading flags (-brtl),
15291         # -berok will link without error, but may produce a broken library.
15292         allow_undefined_flag_F77='-berok'
15293        # Determine the default libpath from the value encoded in an empty executable.
15294        cat >conftest.$ac_ext <<_ACEOF
15295       program main
15296
15297       end
15298 _ACEOF
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306   (eval "$ac_link") 2>conftest.er1
15307   ac_status=$?
15308   grep -v '^ *+' conftest.er1 >conftest.err
15309   rm -f conftest.er1
15310   cat conftest.err >&5
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); } && {
15313          test -z "$ac_f77_werror_flag" ||
15314          test ! -s conftest.err
15315        } && test -s conftest$ac_exeext &&
15316        $as_test_x conftest$ac_exeext; then
15317
15318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15319 }'`
15320 # Check for a 64-bit object if we didn't find anything.
15321 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; }
15322 }'`; fi
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327
15328 fi
15329
15330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15331       conftest$ac_exeext conftest.$ac_ext
15332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15333
15334        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15335         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"
15336        else
15337         if test "$host_cpu" = ia64; then
15338           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15339           allow_undefined_flag_F77="-z nodefs"
15340           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"
15341         else
15342          # Determine the default libpath from the value encoded in an empty executable.
15343          cat >conftest.$ac_ext <<_ACEOF
15344       program main
15345
15346       end
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_link") 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } && {
15362          test -z "$ac_f77_werror_flag" ||
15363          test ! -s conftest.err
15364        } && test -s conftest$ac_exeext &&
15365        $as_test_x conftest$ac_exeext; then
15366
15367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15368 }'`
15369 # Check for a 64-bit object if we didn't find anything.
15370 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; }
15371 }'`; fi
15372 else
15373   echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376
15377 fi
15378
15379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15380       conftest$ac_exeext conftest.$ac_ext
15381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15382
15383          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15384           # Warning - without using the other run time loading flags,
15385           # -berok will link without error, but may produce a broken library.
15386           no_undefined_flag_F77=' ${wl}-bernotok'
15387           allow_undefined_flag_F77=' ${wl}-berok'
15388           # Exported symbols can be pulled into shared objects from archives
15389           whole_archive_flag_spec_F77='$convenience'
15390           archive_cmds_need_lc_F77=yes
15391           # This is similar to how AIX traditionally builds its shared libraries.
15392           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'
15393         fi
15394       fi
15395       ;;
15396
15397     amigaos*)
15398       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)'
15399       hardcode_libdir_flag_spec_F77='-L$libdir'
15400       hardcode_minus_L_F77=yes
15401       # see comment about different semantics on the GNU ld section
15402       ld_shlibs_F77=no
15403       ;;
15404
15405     bsdi[45]*)
15406       export_dynamic_flag_spec_F77=-rdynamic
15407       ;;
15408
15409     cygwin* | mingw* | pw32*)
15410       # When not using gcc, we currently assume that we are using
15411       # Microsoft Visual C++.
15412       # hardcode_libdir_flag_spec is actually meaningless, as there is
15413       # no search path for DLLs.
15414       hardcode_libdir_flag_spec_F77=' '
15415       allow_undefined_flag_F77=unsupported
15416       # Tell ltmain to make .lib files, not .a files.
15417       libext=lib
15418       # Tell ltmain to make .dll files, not .so files.
15419       shrext_cmds=".dll"
15420       # FIXME: Setting linknames here is a bad hack.
15421       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15422       # The linker will automatically build a .lib file if we build a DLL.
15423       old_archive_From_new_cmds_F77='true'
15424       # FIXME: Should let the user specify the lib program.
15425       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15426       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15427       enable_shared_with_static_runtimes_F77=yes
15428       ;;
15429
15430     darwin* | rhapsody*)
15431       case $host_os in
15432         rhapsody* | darwin1.[012])
15433          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15434          ;;
15435        *) # Darwin 1.3 on
15436          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15437            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15438          else
15439            case ${MACOSX_DEPLOYMENT_TARGET} in
15440              10.[012])
15441                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15442                ;;
15443              10.*)
15444                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15445                ;;
15446            esac
15447          fi
15448          ;;
15449       esac
15450       archive_cmds_need_lc_F77=no
15451       hardcode_direct_F77=no
15452       hardcode_automatic_F77=yes
15453       hardcode_shlibpath_var_F77=unsupported
15454       whole_archive_flag_spec_F77=''
15455       link_all_deplibs_F77=yes
15456     if test "$GCC" = yes ; then
15457         output_verbose_link_cmd='echo'
15458         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15459       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15460       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15461       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}'
15462       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}'
15463     else
15464       case $cc_basename in
15465         xlc*)
15466          output_verbose_link_cmd='echo'
15467          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15468          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15469           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15470          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}'
15471           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}'
15472           ;;
15473        *)
15474          ld_shlibs_F77=no
15475           ;;
15476       esac
15477     fi
15478       ;;
15479
15480     dgux*)
15481       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15482       hardcode_libdir_flag_spec_F77='-L$libdir'
15483       hardcode_shlibpath_var_F77=no
15484       ;;
15485
15486     freebsd1*)
15487       ld_shlibs_F77=no
15488       ;;
15489
15490     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15491     # support.  Future versions do this automatically, but an explicit c++rt0.o
15492     # does not break anything, and helps significantly (at the cost of a little
15493     # extra space).
15494     freebsd2.2*)
15495       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15496       hardcode_libdir_flag_spec_F77='-R$libdir'
15497       hardcode_direct_F77=yes
15498       hardcode_shlibpath_var_F77=no
15499       ;;
15500
15501     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15502     freebsd2*)
15503       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15504       hardcode_direct_F77=yes
15505       hardcode_minus_L_F77=yes
15506       hardcode_shlibpath_var_F77=no
15507       ;;
15508
15509     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15510     freebsd* | dragonfly*)
15511       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15512       hardcode_libdir_flag_spec_F77='-R$libdir'
15513       hardcode_direct_F77=yes
15514       hardcode_shlibpath_var_F77=no
15515       ;;
15516
15517     hpux9*)
15518       if test "$GCC" = yes; then
15519         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'
15520       else
15521         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'
15522       fi
15523       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15524       hardcode_libdir_separator_F77=:
15525       hardcode_direct_F77=yes
15526
15527       # hardcode_minus_L: Not really in the search PATH,
15528       # but as the default location of the library.
15529       hardcode_minus_L_F77=yes
15530       export_dynamic_flag_spec_F77='${wl}-E'
15531       ;;
15532
15533     hpux10*)
15534       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15535         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15536       else
15537         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15538       fi
15539       if test "$with_gnu_ld" = no; then
15540         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15541         hardcode_libdir_separator_F77=:
15542
15543         hardcode_direct_F77=yes
15544         export_dynamic_flag_spec_F77='${wl}-E'
15545
15546         # hardcode_minus_L: Not really in the search PATH,
15547         # but as the default location of the library.
15548         hardcode_minus_L_F77=yes
15549       fi
15550       ;;
15551
15552     hpux11*)
15553       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15554         case $host_cpu in
15555         hppa*64*)
15556           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557           ;;
15558         ia64*)
15559           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15560           ;;
15561         *)
15562           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15563           ;;
15564         esac
15565       else
15566         case $host_cpu in
15567         hppa*64*)
15568           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15569           ;;
15570         ia64*)
15571           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15572           ;;
15573         *)
15574           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15575           ;;
15576         esac
15577       fi
15578       if test "$with_gnu_ld" = no; then
15579         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15580         hardcode_libdir_separator_F77=:
15581
15582         case $host_cpu in
15583         hppa*64*|ia64*)
15584           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15585           hardcode_direct_F77=no
15586           hardcode_shlibpath_var_F77=no
15587           ;;
15588         *)
15589           hardcode_direct_F77=yes
15590           export_dynamic_flag_spec_F77='${wl}-E'
15591
15592           # hardcode_minus_L: Not really in the search PATH,
15593           # but as the default location of the library.
15594           hardcode_minus_L_F77=yes
15595           ;;
15596         esac
15597       fi
15598       ;;
15599
15600     irix5* | irix6* | nonstopux*)
15601       if test "$GCC" = yes; then
15602         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'
15603       else
15604         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'
15605         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15606       fi
15607       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15608       hardcode_libdir_separator_F77=:
15609       link_all_deplibs_F77=yes
15610       ;;
15611
15612     netbsd* | netbsdelf*-gnu)
15613       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15614         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15615       else
15616         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15617       fi
15618       hardcode_libdir_flag_spec_F77='-R$libdir'
15619       hardcode_direct_F77=yes
15620       hardcode_shlibpath_var_F77=no
15621       ;;
15622
15623     newsos6)
15624       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625       hardcode_direct_F77=yes
15626       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15627       hardcode_libdir_separator_F77=:
15628       hardcode_shlibpath_var_F77=no
15629       ;;
15630
15631     openbsd*)
15632       hardcode_direct_F77=yes
15633       hardcode_shlibpath_var_F77=no
15634       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15635         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15636         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15637         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15638         export_dynamic_flag_spec_F77='${wl}-E'
15639       else
15640        case $host_os in
15641          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15642            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643            hardcode_libdir_flag_spec_F77='-R$libdir'
15644            ;;
15645          *)
15646            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15647            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15648            ;;
15649        esac
15650       fi
15651       ;;
15652
15653     os2*)
15654       hardcode_libdir_flag_spec_F77='-L$libdir'
15655       hardcode_minus_L_F77=yes
15656       allow_undefined_flag_F77=unsupported
15657       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'
15658       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15659       ;;
15660
15661     osf3*)
15662       if test "$GCC" = yes; then
15663         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15664         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'
15665       else
15666         allow_undefined_flag_F77=' -expect_unresolved \*'
15667         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'
15668       fi
15669       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15670       hardcode_libdir_separator_F77=:
15671       ;;
15672
15673     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15674       if test "$GCC" = yes; then
15675         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15676         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'
15677         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15678       else
15679         allow_undefined_flag_F77=' -expect_unresolved \*'
15680         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'
15681         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~
15682         $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'
15683
15684         # Both c and cxx compiler support -rpath directly
15685         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15686       fi
15687       hardcode_libdir_separator_F77=:
15688       ;;
15689
15690     solaris*)
15691       no_undefined_flag_F77=' -z text'
15692       if test "$GCC" = yes; then
15693         wlarc='${wl}'
15694         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15696           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15697       else
15698         wlarc=''
15699         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15701         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15702       fi
15703       hardcode_libdir_flag_spec_F77='-R$libdir'
15704       hardcode_shlibpath_var_F77=no
15705       case $host_os in
15706       solaris2.[0-5] | solaris2.[0-5].*) ;;
15707       *)
15708         # The compiler driver will combine linker options so we
15709         # cannot just pass the convience library names through
15710         # without $wl, iff we do not link with $LD.
15711         # Luckily, gcc supports the same syntax we need for Sun Studio.
15712         # Supported since Solaris 2.6 (maybe 2.5.1?)
15713         case $wlarc in
15714         '')
15715           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15716         *)
15717           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' ;;
15718         esac ;;
15719       esac
15720       link_all_deplibs_F77=yes
15721       ;;
15722
15723     sunos4*)
15724       if test "x$host_vendor" = xsequent; then
15725         # Use $CC to link under sequent, because it throws in some extra .o
15726         # files that make .init and .fini sections work.
15727         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15728       else
15729         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15730       fi
15731       hardcode_libdir_flag_spec_F77='-L$libdir'
15732       hardcode_direct_F77=yes
15733       hardcode_minus_L_F77=yes
15734       hardcode_shlibpath_var_F77=no
15735       ;;
15736
15737     sysv4)
15738       case $host_vendor in
15739         sni)
15740           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741           hardcode_direct_F77=yes # is this really true???
15742         ;;
15743         siemens)
15744           ## LD is ld it makes a PLAMLIB
15745           ## CC just makes a GrossModule.
15746           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747           reload_cmds_F77='$CC -r -o $output$reload_objs'
15748           hardcode_direct_F77=no
15749         ;;
15750         motorola)
15751           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15753         ;;
15754       esac
15755       runpath_var='LD_RUN_PATH'
15756       hardcode_shlibpath_var_F77=no
15757       ;;
15758
15759     sysv4.3*)
15760       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761       hardcode_shlibpath_var_F77=no
15762       export_dynamic_flag_spec_F77='-Bexport'
15763       ;;
15764
15765     sysv4*MP*)
15766       if test -d /usr/nec; then
15767         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768         hardcode_shlibpath_var_F77=no
15769         runpath_var=LD_RUN_PATH
15770         hardcode_runpath_var=yes
15771         ld_shlibs_F77=yes
15772       fi
15773       ;;
15774
15775     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15776       no_undefined_flag_F77='${wl}-z,text'
15777       archive_cmds_need_lc_F77=no
15778       hardcode_shlibpath_var_F77=no
15779       runpath_var='LD_RUN_PATH'
15780
15781       if test "$GCC" = yes; then
15782         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15783         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15784       else
15785         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15786         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15787       fi
15788       ;;
15789
15790     sysv5* | sco3.2v5* | sco5v6*)
15791       # Note: We can NOT use -z defs as we might desire, because we do not
15792       # link with -lc, and that would cause any symbols used from libc to
15793       # always be unresolved, which means just about no library would
15794       # ever link correctly.  If we're not using GNU ld we use -z text
15795       # though, which does catch some bad symbols but isn't as heavy-handed
15796       # as -z defs.
15797       no_undefined_flag_F77='${wl}-z,text'
15798       allow_undefined_flag_F77='${wl}-z,nodefs'
15799       archive_cmds_need_lc_F77=no
15800       hardcode_shlibpath_var_F77=no
15801       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15802       hardcode_libdir_separator_F77=':'
15803       link_all_deplibs_F77=yes
15804       export_dynamic_flag_spec_F77='${wl}-Bexport'
15805       runpath_var='LD_RUN_PATH'
15806
15807       if test "$GCC" = yes; then
15808         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15809         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15810       else
15811         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15812         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15813       fi
15814       ;;
15815
15816     uts4*)
15817       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818       hardcode_libdir_flag_spec_F77='-L$libdir'
15819       hardcode_shlibpath_var_F77=no
15820       ;;
15821
15822     *)
15823       ld_shlibs_F77=no
15824       ;;
15825     esac
15826   fi
15827
15828 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15829 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15830 test "$ld_shlibs_F77" = no && can_build_shared=no
15831
15832 #
15833 # Do we need to explicitly link libc?
15834 #
15835 case "x$archive_cmds_need_lc_F77" in
15836 x|xyes)
15837   # Assume -lc should be added
15838   archive_cmds_need_lc_F77=yes
15839
15840   if test "$enable_shared" = yes && test "$GCC" = yes; then
15841     case $archive_cmds_F77 in
15842     *'~'*)
15843       # FIXME: we may have to deal with multi-command sequences.
15844       ;;
15845     '$CC '*)
15846       # Test whether the compiler implicitly links with -lc since on some
15847       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15848       # to ld, don't add -lc before -lgcc.
15849       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15850 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15851       $rm conftest*
15852       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15853
15854       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15855   (eval $ac_compile) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } 2>conftest.err; then
15859         soname=conftest
15860         lib=conftest
15861         libobjs=conftest.$ac_objext
15862         deplibs=
15863         wl=$lt_prog_compiler_wl_F77
15864         pic_flag=$lt_prog_compiler_pic_F77
15865         compiler_flags=-v
15866         linker_flags=-v
15867         verstring=
15868         output_objdir=.
15869         libname=conftest
15870         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15871         allow_undefined_flag_F77=
15872         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15873   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }
15877         then
15878           archive_cmds_need_lc_F77=no
15879         else
15880           archive_cmds_need_lc_F77=yes
15881         fi
15882         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15883       else
15884         cat conftest.err 1>&5
15885       fi
15886       $rm conftest*
15887       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15888 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15889       ;;
15890     esac
15891   fi
15892   ;;
15893 esac
15894
15895 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15896 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15897 library_names_spec=
15898 libname_spec='lib$name'
15899 soname_spec=
15900 shrext_cmds=".so"
15901 postinstall_cmds=
15902 postuninstall_cmds=
15903 finish_cmds=
15904 finish_eval=
15905 shlibpath_var=
15906 shlibpath_overrides_runpath=unknown
15907 version_type=none
15908 dynamic_linker="$host_os ld.so"
15909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15910 if test "$GCC" = yes; then
15911   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15912   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15913     # if the path contains ";" then we assume it to be the separator
15914     # otherwise default to the standard path separator (i.e. ":") - it is
15915     # assumed that no part of a normal pathname contains ";" but that should
15916     # okay in the real world where ";" in dirpaths is itself problematic.
15917     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15918   else
15919     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15920   fi
15921 else
15922   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15923 fi
15924 need_lib_prefix=unknown
15925 hardcode_into_libs=no
15926
15927 # when you set need_version to no, make sure it does not cause -set_version
15928 # flags to be left without arguments
15929 need_version=unknown
15930
15931 case $host_os in
15932 aix3*)
15933   version_type=linux
15934   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15935   shlibpath_var=LIBPATH
15936
15937   # AIX 3 has no versioning support, so we append a major version to the name.
15938   soname_spec='${libname}${release}${shared_ext}$major'
15939   ;;
15940
15941 aix4* | aix5*)
15942   version_type=linux
15943   need_lib_prefix=no
15944   need_version=no
15945   hardcode_into_libs=yes
15946   if test "$host_cpu" = ia64; then
15947     # AIX 5 supports IA64
15948     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15949     shlibpath_var=LD_LIBRARY_PATH
15950   else
15951     # With GCC up to 2.95.x, collect2 would create an import file
15952     # for dependence libraries.  The import file would start with
15953     # the line `#! .'.  This would cause the generated library to
15954     # depend on `.', always an invalid library.  This was fixed in
15955     # development snapshots of GCC prior to 3.0.
15956     case $host_os in
15957       aix4 | aix4.[01] | aix4.[01].*)
15958       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15959            echo ' yes '
15960            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15961         :
15962       else
15963         can_build_shared=no
15964       fi
15965       ;;
15966     esac
15967     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15968     # soname into executable. Probably we can add versioning support to
15969     # collect2, so additional links can be useful in future.
15970     if test "$aix_use_runtimelinking" = yes; then
15971       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15972       # instead of lib<name>.a to let people know that these are not
15973       # typical AIX shared libraries.
15974       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975     else
15976       # We preserve .a as extension for shared libraries through AIX4.2
15977       # and later when we are not doing run time linking.
15978       library_names_spec='${libname}${release}.a $libname.a'
15979       soname_spec='${libname}${release}${shared_ext}$major'
15980     fi
15981     shlibpath_var=LIBPATH
15982   fi
15983   ;;
15984
15985 amigaos*)
15986   library_names_spec='$libname.ixlibrary $libname.a'
15987   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15988   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'
15989   ;;
15990
15991 beos*)
15992   library_names_spec='${libname}${shared_ext}'
15993   dynamic_linker="$host_os ld.so"
15994   shlibpath_var=LIBRARY_PATH
15995   ;;
15996
15997 bsdi[45]*)
15998   version_type=linux
15999   need_version=no
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001   soname_spec='${libname}${release}${shared_ext}$major'
16002   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16003   shlibpath_var=LD_LIBRARY_PATH
16004   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16005   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16006   # the default ld.so.conf also contains /usr/contrib/lib and
16007   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16008   # libtool to hard-code these into programs
16009   ;;
16010
16011 cygwin* | mingw* | pw32*)
16012   version_type=windows
16013   shrext_cmds=".dll"
16014   need_version=no
16015   need_lib_prefix=no
16016
16017   case $GCC,$host_os in
16018   yes,cygwin* | yes,mingw* | yes,pw32*)
16019     library_names_spec='$libname.dll.a'
16020     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16021     postinstall_cmds='base_file=`basename \${file}`~
16022       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16023       dldir=$destdir/`dirname \$dlpath`~
16024       test -d \$dldir || mkdir -p \$dldir~
16025       $install_prog $dir/$dlname \$dldir/$dlname~
16026       chmod a+x \$dldir/$dlname'
16027     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16028       dlpath=$dir/\$dldll~
16029        $rm \$dlpath'
16030     shlibpath_overrides_runpath=yes
16031
16032     case $host_os in
16033     cygwin*)
16034       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16035       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16036       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16037       ;;
16038     mingw*)
16039       # MinGW DLLs use traditional 'lib' prefix
16040       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16041       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16042       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16043         # It is most probably a Windows format PATH printed by
16044         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16045         # path with ; separators, and with drive letters. We can handle the
16046         # drive letters (cygwin fileutils understands them), so leave them,
16047         # especially as we might pass files found there to a mingw objdump,
16048         # which wouldn't understand a cygwinified path. Ahh.
16049         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16050       else
16051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16052       fi
16053       ;;
16054     pw32*)
16055       # pw32 DLLs use 'pw' prefix rather than 'lib'
16056       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16057       ;;
16058     esac
16059     ;;
16060
16061   *)
16062     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16063     ;;
16064   esac
16065   dynamic_linker='Win32 ld.exe'
16066   # FIXME: first we should search . and the directory the executable is in
16067   shlibpath_var=PATH
16068   ;;
16069
16070 darwin* | rhapsody*)
16071   dynamic_linker="$host_os dyld"
16072   version_type=darwin
16073   need_lib_prefix=no
16074   need_version=no
16075   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16076   soname_spec='${libname}${release}${major}$shared_ext'
16077   shlibpath_overrides_runpath=yes
16078   shlibpath_var=DYLD_LIBRARY_PATH
16079   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16080   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16081   if test "$GCC" = yes; then
16082     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"`
16083   else
16084     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16085   fi
16086   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16087   ;;
16088
16089 dgux*)
16090   version_type=linux
16091   need_lib_prefix=no
16092   need_version=no
16093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16094   soname_spec='${libname}${release}${shared_ext}$major'
16095   shlibpath_var=LD_LIBRARY_PATH
16096   ;;
16097
16098 freebsd1*)
16099   dynamic_linker=no
16100   ;;
16101
16102 freebsd* | dragonfly*)
16103   # DragonFly does not have aout.  When/if they implement a new
16104   # versioning mechanism, adjust this.
16105   if test -x /usr/bin/objformat; then
16106     objformat=`/usr/bin/objformat`
16107   else
16108     case $host_os in
16109     freebsd[123]*) objformat=aout ;;
16110     *) objformat=elf ;;
16111     esac
16112   fi
16113   version_type=freebsd-$objformat
16114   case $version_type in
16115     freebsd-elf*)
16116       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16117       need_version=no
16118       need_lib_prefix=no
16119       ;;
16120     freebsd-*)
16121       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16122       need_version=yes
16123       ;;
16124   esac
16125   shlibpath_var=LD_LIBRARY_PATH
16126   case $host_os in
16127   freebsd2*)
16128     shlibpath_overrides_runpath=yes
16129     ;;
16130   freebsd3.[01]* | freebsdelf3.[01]*)
16131     shlibpath_overrides_runpath=yes
16132     hardcode_into_libs=yes
16133     ;;
16134   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16135   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16136     shlibpath_overrides_runpath=no
16137     hardcode_into_libs=yes
16138     ;;
16139   freebsd*) # from 4.6 on
16140     shlibpath_overrides_runpath=yes
16141     hardcode_into_libs=yes
16142     ;;
16143   esac
16144   ;;
16145
16146 gnu*)
16147   version_type=linux
16148   need_lib_prefix=no
16149   need_version=no
16150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16151   soname_spec='${libname}${release}${shared_ext}$major'
16152   shlibpath_var=LD_LIBRARY_PATH
16153   hardcode_into_libs=yes
16154   ;;
16155
16156 hpux9* | hpux10* | hpux11*)
16157   # Give a soname corresponding to the major version so that dld.sl refuses to
16158   # link against other versions.
16159   version_type=sunos
16160   need_lib_prefix=no
16161   need_version=no
16162   case $host_cpu in
16163   ia64*)
16164     shrext_cmds='.so'
16165     hardcode_into_libs=yes
16166     dynamic_linker="$host_os dld.so"
16167     shlibpath_var=LD_LIBRARY_PATH
16168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170     soname_spec='${libname}${release}${shared_ext}$major'
16171     if test "X$HPUX_IA64_MODE" = X32; then
16172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16173     else
16174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16175     fi
16176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16177     ;;
16178    hppa*64*)
16179      shrext_cmds='.sl'
16180      hardcode_into_libs=yes
16181      dynamic_linker="$host_os dld.sl"
16182      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16183      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185      soname_spec='${libname}${release}${shared_ext}$major'
16186      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16187      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16188      ;;
16189    *)
16190     shrext_cmds='.sl'
16191     dynamic_linker="$host_os dld.sl"
16192     shlibpath_var=SHLIB_PATH
16193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195     soname_spec='${libname}${release}${shared_ext}$major'
16196     ;;
16197   esac
16198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16199   postinstall_cmds='chmod 555 $lib'
16200   ;;
16201
16202 interix3*)
16203   version_type=linux
16204   need_lib_prefix=no
16205   need_version=no
16206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16207   soname_spec='${libname}${release}${shared_ext}$major'
16208   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16209   shlibpath_var=LD_LIBRARY_PATH
16210   shlibpath_overrides_runpath=no
16211   hardcode_into_libs=yes
16212   ;;
16213
16214 irix5* | irix6* | nonstopux*)
16215   case $host_os in
16216     nonstopux*) version_type=nonstopux ;;
16217     *)
16218         if test "$lt_cv_prog_gnu_ld" = yes; then
16219                 version_type=linux
16220         else
16221                 version_type=irix
16222         fi ;;
16223   esac
16224   need_lib_prefix=no
16225   need_version=no
16226   soname_spec='${libname}${release}${shared_ext}$major'
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16228   case $host_os in
16229   irix5* | nonstopux*)
16230     libsuff= shlibsuff=
16231     ;;
16232   *)
16233     case $LD in # libtool.m4 will add one of these switches to LD
16234     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16235       libsuff= shlibsuff= libmagic=32-bit;;
16236     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16237       libsuff=32 shlibsuff=N32 libmagic=N32;;
16238     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16239       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16240     *) libsuff= shlibsuff= libmagic=never-match;;
16241     esac
16242     ;;
16243   esac
16244   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16245   shlibpath_overrides_runpath=no
16246   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16247   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16248   hardcode_into_libs=yes
16249   ;;
16250
16251 # No shared lib support for Linux oldld, aout, or coff.
16252 linux*oldld* | linux*aout* | linux*coff*)
16253   dynamic_linker=no
16254   ;;
16255
16256 # This must be Linux ELF.
16257 linux* | k*bsd*-gnu)
16258   version_type=linux
16259   need_lib_prefix=no
16260   need_version=no
16261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262   soname_spec='${libname}${release}${shared_ext}$major'
16263   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16264   shlibpath_var=LD_LIBRARY_PATH
16265   shlibpath_overrides_runpath=no
16266   # This implies no fast_install, which is unacceptable.
16267   # Some rework will be needed to allow for fast_install
16268   # before this can be enabled.
16269   hardcode_into_libs=yes
16270
16271   # Append ld.so.conf contents to the search path
16272   if test -f /etc/ld.so.conf; then
16273     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' ' '`
16274     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16275   fi
16276
16277   # We used to test for /lib/ld.so.1 and disable shared libraries on
16278   # powerpc, because MkLinux only supported shared libraries with the
16279   # GNU dynamic linker.  Since this was broken with cross compilers,
16280   # most powerpc-linux boxes support dynamic linking these days and
16281   # people can always --disable-shared, the test was removed, and we
16282   # assume the GNU/Linux dynamic linker is in use.
16283   dynamic_linker='GNU/Linux ld.so'
16284   ;;
16285
16286 netbsdelf*-gnu)
16287   version_type=linux
16288   need_lib_prefix=no
16289   need_version=no
16290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16291   soname_spec='${libname}${release}${shared_ext}$major'
16292   shlibpath_var=LD_LIBRARY_PATH
16293   shlibpath_overrides_runpath=no
16294   hardcode_into_libs=yes
16295   dynamic_linker='NetBSD ld.elf_so'
16296   ;;
16297
16298 netbsd*)
16299   version_type=sunos
16300   need_lib_prefix=no
16301   need_version=no
16302   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16304     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16305     dynamic_linker='NetBSD (a.out) ld.so'
16306   else
16307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16308     soname_spec='${libname}${release}${shared_ext}$major'
16309     dynamic_linker='NetBSD ld.elf_so'
16310   fi
16311   shlibpath_var=LD_LIBRARY_PATH
16312   shlibpath_overrides_runpath=yes
16313   hardcode_into_libs=yes
16314   ;;
16315
16316 newsos6)
16317   version_type=linux
16318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319   shlibpath_var=LD_LIBRARY_PATH
16320   shlibpath_overrides_runpath=yes
16321   ;;
16322
16323 nto-qnx*)
16324   version_type=linux
16325   need_lib_prefix=no
16326   need_version=no
16327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328   soname_spec='${libname}${release}${shared_ext}$major'
16329   shlibpath_var=LD_LIBRARY_PATH
16330   shlibpath_overrides_runpath=yes
16331   ;;
16332
16333 openbsd*)
16334   version_type=sunos
16335   sys_lib_dlsearch_path_spec="/usr/lib"
16336   need_lib_prefix=no
16337   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16338   case $host_os in
16339     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16340     *)                         need_version=no  ;;
16341   esac
16342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16344   shlibpath_var=LD_LIBRARY_PATH
16345   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16346     case $host_os in
16347       openbsd2.[89] | openbsd2.[89].*)
16348         shlibpath_overrides_runpath=no
16349         ;;
16350       *)
16351         shlibpath_overrides_runpath=yes
16352         ;;
16353       esac
16354   else
16355     shlibpath_overrides_runpath=yes
16356   fi
16357   ;;
16358
16359 os2*)
16360   libname_spec='$name'
16361   shrext_cmds=".dll"
16362   need_lib_prefix=no
16363   library_names_spec='$libname${shared_ext} $libname.a'
16364   dynamic_linker='OS/2 ld.exe'
16365   shlibpath_var=LIBPATH
16366   ;;
16367
16368 osf3* | osf4* | osf5*)
16369   version_type=osf
16370   need_lib_prefix=no
16371   need_version=no
16372   soname_spec='${libname}${release}${shared_ext}$major'
16373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374   shlibpath_var=LD_LIBRARY_PATH
16375   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16376   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16377   ;;
16378
16379 solaris*)
16380   version_type=linux
16381   need_lib_prefix=no
16382   need_version=no
16383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384   soname_spec='${libname}${release}${shared_ext}$major'
16385   shlibpath_var=LD_LIBRARY_PATH
16386   shlibpath_overrides_runpath=yes
16387   hardcode_into_libs=yes
16388   # ldd complains unless libraries are executable
16389   postinstall_cmds='chmod +x $lib'
16390   ;;
16391
16392 sunos4*)
16393   version_type=sunos
16394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16395   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16396   shlibpath_var=LD_LIBRARY_PATH
16397   shlibpath_overrides_runpath=yes
16398   if test "$with_gnu_ld" = yes; then
16399     need_lib_prefix=no
16400   fi
16401   need_version=yes
16402   ;;
16403
16404 sysv4 | sysv4.3*)
16405   version_type=linux
16406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407   soname_spec='${libname}${release}${shared_ext}$major'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   case $host_vendor in
16410     sni)
16411       shlibpath_overrides_runpath=no
16412       need_lib_prefix=no
16413       export_dynamic_flag_spec='${wl}-Blargedynsym'
16414       runpath_var=LD_RUN_PATH
16415       ;;
16416     siemens)
16417       need_lib_prefix=no
16418       ;;
16419     motorola)
16420       need_lib_prefix=no
16421       need_version=no
16422       shlibpath_overrides_runpath=no
16423       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16424       ;;
16425   esac
16426   ;;
16427
16428 sysv4*MP*)
16429   if test -d /usr/nec ;then
16430     version_type=linux
16431     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16432     soname_spec='$libname${shared_ext}.$major'
16433     shlibpath_var=LD_LIBRARY_PATH
16434   fi
16435   ;;
16436
16437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16438   version_type=freebsd-elf
16439   need_lib_prefix=no
16440   need_version=no
16441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16442   soname_spec='${libname}${release}${shared_ext}$major'
16443   shlibpath_var=LD_LIBRARY_PATH
16444   hardcode_into_libs=yes
16445   if test "$with_gnu_ld" = yes; then
16446     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16447     shlibpath_overrides_runpath=no
16448   else
16449     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16450     shlibpath_overrides_runpath=yes
16451     case $host_os in
16452       sco3.2v5*)
16453         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16454         ;;
16455     esac
16456   fi
16457   sys_lib_dlsearch_path_spec='/usr/lib'
16458   ;;
16459
16460 uts4*)
16461   version_type=linux
16462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463   soname_spec='${libname}${release}${shared_ext}$major'
16464   shlibpath_var=LD_LIBRARY_PATH
16465   ;;
16466
16467 *)
16468   dynamic_linker=no
16469   ;;
16470 esac
16471 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16472 echo "${ECHO_T}$dynamic_linker" >&6; }
16473 test "$dynamic_linker" = no && can_build_shared=no
16474
16475 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16476 if test "$GCC" = yes; then
16477   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16478 fi
16479
16480 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16481 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16482 hardcode_action_F77=
16483 if test -n "$hardcode_libdir_flag_spec_F77" || \
16484    test -n "$runpath_var_F77" || \
16485    test "X$hardcode_automatic_F77" = "Xyes" ; then
16486
16487   # We can hardcode non-existant directories.
16488   if test "$hardcode_direct_F77" != no &&
16489      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16490      # have to relink, otherwise we might link with an installed library
16491      # when we should be linking with a yet-to-be-installed one
16492      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16493      test "$hardcode_minus_L_F77" != no; then
16494     # Linking always hardcodes the temporary library directory.
16495     hardcode_action_F77=relink
16496   else
16497     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16498     hardcode_action_F77=immediate
16499   fi
16500 else
16501   # We cannot hardcode anything, or else we can only hardcode existing
16502   # directories.
16503   hardcode_action_F77=unsupported
16504 fi
16505 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16506 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16507
16508 if test "$hardcode_action_F77" = relink; then
16509   # Fast installation is not supported
16510   enable_fast_install=no
16511 elif test "$shlibpath_overrides_runpath" = yes ||
16512      test "$enable_shared" = no; then
16513   # Fast installation is not necessary
16514   enable_fast_install=needless
16515 fi
16516
16517
16518 # The else clause should only fire when bootstrapping the
16519 # libtool distribution, otherwise you forgot to ship ltmain.sh
16520 # with your package, and you will get complaints that there are
16521 # no rules to generate ltmain.sh.
16522 if test -f "$ltmain"; then
16523   # See if we are running on zsh, and set the options which allow our commands through
16524   # without removal of \ escapes.
16525   if test -n "${ZSH_VERSION+set}" ; then
16526     setopt NO_GLOB_SUBST
16527   fi
16528   # Now quote all the things that may contain metacharacters while being
16529   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16530   # variables and quote the copies for generation of the libtool script.
16531   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16532     SED SHELL STRIP \
16533     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16534     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16535     deplibs_check_method reload_flag reload_cmds need_locks \
16536     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16537     lt_cv_sys_global_symbol_to_c_name_address \
16538     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16539     old_postinstall_cmds old_postuninstall_cmds \
16540     compiler_F77 \
16541     CC_F77 \
16542     LD_F77 \
16543     lt_prog_compiler_wl_F77 \
16544     lt_prog_compiler_pic_F77 \
16545     lt_prog_compiler_static_F77 \
16546     lt_prog_compiler_no_builtin_flag_F77 \
16547     export_dynamic_flag_spec_F77 \
16548     thread_safe_flag_spec_F77 \
16549     whole_archive_flag_spec_F77 \
16550     enable_shared_with_static_runtimes_F77 \
16551     old_archive_cmds_F77 \
16552     old_archive_from_new_cmds_F77 \
16553     predep_objects_F77 \
16554     postdep_objects_F77 \
16555     predeps_F77 \
16556     postdeps_F77 \
16557     compiler_lib_search_path_F77 \
16558     archive_cmds_F77 \
16559     archive_expsym_cmds_F77 \
16560     postinstall_cmds_F77 \
16561     postuninstall_cmds_F77 \
16562     old_archive_from_expsyms_cmds_F77 \
16563     allow_undefined_flag_F77 \
16564     no_undefined_flag_F77 \
16565     export_symbols_cmds_F77 \
16566     hardcode_libdir_flag_spec_F77 \
16567     hardcode_libdir_flag_spec_ld_F77 \
16568     hardcode_libdir_separator_F77 \
16569     hardcode_automatic_F77 \
16570     module_cmds_F77 \
16571     module_expsym_cmds_F77 \
16572     lt_cv_prog_compiler_c_o_F77 \
16573     exclude_expsyms_F77 \
16574     include_expsyms_F77; do
16575
16576     case $var in
16577     old_archive_cmds_F77 | \
16578     old_archive_from_new_cmds_F77 | \
16579     archive_cmds_F77 | \
16580     archive_expsym_cmds_F77 | \
16581     module_cmds_F77 | \
16582     module_expsym_cmds_F77 | \
16583     old_archive_from_expsyms_cmds_F77 | \
16584     export_symbols_cmds_F77 | \
16585     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16586     postinstall_cmds | postuninstall_cmds | \
16587     old_postinstall_cmds | old_postuninstall_cmds | \
16588     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16589       # Double-quote double-evaled strings.
16590       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16591       ;;
16592     *)
16593       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16594       ;;
16595     esac
16596   done
16597
16598   case $lt_echo in
16599   *'\$0 --fallback-echo"')
16600     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16601     ;;
16602   esac
16603
16604 cfgfile="$ofile"
16605
16606   cat <<__EOF__ >> "$cfgfile"
16607 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16608
16609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16610
16611 # Shell to use when invoking shell scripts.
16612 SHELL=$lt_SHELL
16613
16614 # Whether or not to build shared libraries.
16615 build_libtool_libs=$enable_shared
16616
16617 # Whether or not to build static libraries.
16618 build_old_libs=$enable_static
16619
16620 # Whether or not to add -lc for building shared libraries.
16621 build_libtool_need_lc=$archive_cmds_need_lc_F77
16622
16623 # Whether or not to disallow shared libs when runtime libs are static
16624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16625
16626 # Whether or not to optimize for fast installation.
16627 fast_install=$enable_fast_install
16628
16629 # The host system.
16630 host_alias=$host_alias
16631 host=$host
16632 host_os=$host_os
16633
16634 # The build system.
16635 build_alias=$build_alias
16636 build=$build
16637 build_os=$build_os
16638
16639 # An echo program that does not interpret backslashes.
16640 echo=$lt_echo
16641
16642 # The archiver.
16643 AR=$lt_AR
16644 AR_FLAGS=$lt_AR_FLAGS
16645
16646 # A C compiler.
16647 LTCC=$lt_LTCC
16648
16649 # LTCC compiler flags.
16650 LTCFLAGS=$lt_LTCFLAGS
16651
16652 # A language-specific compiler.
16653 CC=$lt_compiler_F77
16654
16655 # Is the compiler the GNU C compiler?
16656 with_gcc=$GCC_F77
16657
16658 # An ERE matcher.
16659 EGREP=$lt_EGREP
16660
16661 # The linker used to build libraries.
16662 LD=$lt_LD_F77
16663
16664 # Whether we need hard or soft links.
16665 LN_S=$lt_LN_S
16666
16667 # A BSD-compatible nm program.
16668 NM=$lt_NM
16669
16670 # A symbol stripping program
16671 STRIP=$lt_STRIP
16672
16673 # Used to examine libraries when file_magic_cmd begins "file"
16674 MAGIC_CMD=$MAGIC_CMD
16675
16676 # Used on cygwin: DLL creation program.
16677 DLLTOOL="$DLLTOOL"
16678
16679 # Used on cygwin: object dumper.
16680 OBJDUMP="$OBJDUMP"
16681
16682 # Used on cygwin: assembler.
16683 AS="$AS"
16684
16685 # The name of the directory that contains temporary libtool files.
16686 objdir=$objdir
16687
16688 # How to create reloadable object files.
16689 reload_flag=$lt_reload_flag
16690 reload_cmds=$lt_reload_cmds
16691
16692 # How to pass a linker flag through the compiler.
16693 wl=$lt_lt_prog_compiler_wl_F77
16694
16695 # Object file suffix (normally "o").
16696 objext="$ac_objext"
16697
16698 # Old archive suffix (normally "a").
16699 libext="$libext"
16700
16701 # Shared library suffix (normally ".so").
16702 shrext_cmds='$shrext_cmds'
16703
16704 # Executable file suffix (normally "").
16705 exeext="$exeext"
16706
16707 # Additional compiler flags for building library objects.
16708 pic_flag=$lt_lt_prog_compiler_pic_F77
16709 pic_mode=$pic_mode
16710
16711 # What is the maximum length of a command?
16712 max_cmd_len=$lt_cv_sys_max_cmd_len
16713
16714 # Does compiler simultaneously support -c and -o options?
16715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16716
16717 # Must we lock files when doing compilation?
16718 need_locks=$lt_need_locks
16719
16720 # Do we need the lib prefix for modules?
16721 need_lib_prefix=$need_lib_prefix
16722
16723 # Do we need a version for libraries?
16724 need_version=$need_version
16725
16726 # Whether dlopen is supported.
16727 dlopen_support=$enable_dlopen
16728
16729 # Whether dlopen of programs is supported.
16730 dlopen_self=$enable_dlopen_self
16731
16732 # Whether dlopen of statically linked programs is supported.
16733 dlopen_self_static=$enable_dlopen_self_static
16734
16735 # Compiler flag to prevent dynamic linking.
16736 link_static_flag=$lt_lt_prog_compiler_static_F77
16737
16738 # Compiler flag to turn off builtin functions.
16739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16740
16741 # Compiler flag to allow reflexive dlopens.
16742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16743
16744 # Compiler flag to generate shared objects directly from archives.
16745 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16746
16747 # Compiler flag to generate thread-safe objects.
16748 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16749
16750 # Library versioning type.
16751 version_type=$version_type
16752
16753 # Format of library name prefix.
16754 libname_spec=$lt_libname_spec
16755
16756 # List of archive names.  First name is the real one, the rest are links.
16757 # The last name is the one that the linker finds with -lNAME.
16758 library_names_spec=$lt_library_names_spec
16759
16760 # The coded name of the library, if different from the real name.
16761 soname_spec=$lt_soname_spec
16762
16763 # Commands used to build and install an old-style archive.
16764 RANLIB=$lt_RANLIB
16765 old_archive_cmds=$lt_old_archive_cmds_F77
16766 old_postinstall_cmds=$lt_old_postinstall_cmds
16767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16768
16769 # Create an old-style archive from a shared archive.
16770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16771
16772 # Create a temporary old-style archive to link instead of a shared archive.
16773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16774
16775 # Commands used to build and install a shared archive.
16776 archive_cmds=$lt_archive_cmds_F77
16777 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16778 postinstall_cmds=$lt_postinstall_cmds
16779 postuninstall_cmds=$lt_postuninstall_cmds
16780
16781 # Commands used to build a loadable module (assumed same as above if empty)
16782 module_cmds=$lt_module_cmds_F77
16783 module_expsym_cmds=$lt_module_expsym_cmds_F77
16784
16785 # Commands to strip libraries.
16786 old_striplib=$lt_old_striplib
16787 striplib=$lt_striplib
16788
16789 # Dependencies to place before the objects being linked to create a
16790 # shared library.
16791 predep_objects=$lt_predep_objects_F77
16792
16793 # Dependencies to place after the objects being linked to create a
16794 # shared library.
16795 postdep_objects=$lt_postdep_objects_F77
16796
16797 # Dependencies to place before the objects being linked to create a
16798 # shared library.
16799 predeps=$lt_predeps_F77
16800
16801 # Dependencies to place after the objects being linked to create a
16802 # shared library.
16803 postdeps=$lt_postdeps_F77
16804
16805 # The library search path used internally by the compiler when linking
16806 # a shared library.
16807 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16808
16809 # Method to check whether dependent libraries are shared objects.
16810 deplibs_check_method=$lt_deplibs_check_method
16811
16812 # Command to use when deplibs_check_method == file_magic.
16813 file_magic_cmd=$lt_file_magic_cmd
16814
16815 # Flag that allows shared libraries with undefined symbols to be built.
16816 allow_undefined_flag=$lt_allow_undefined_flag_F77
16817
16818 # Flag that forces no undefined symbols.
16819 no_undefined_flag=$lt_no_undefined_flag_F77
16820
16821 # Commands used to finish a libtool library installation in a directory.
16822 finish_cmds=$lt_finish_cmds
16823
16824 # Same as above, but a single script fragment to be evaled but not shown.
16825 finish_eval=$lt_finish_eval
16826
16827 # Take the output of nm and produce a listing of raw symbols and C names.
16828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16829
16830 # Transform the output of nm in a proper C declaration
16831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16832
16833 # Transform the output of nm in a C name address pair
16834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16835
16836 # This is the shared library runtime path variable.
16837 runpath_var=$runpath_var
16838
16839 # This is the shared library path variable.
16840 shlibpath_var=$shlibpath_var
16841
16842 # Is shlibpath searched before the hard-coded library search path?
16843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16844
16845 # How to hardcode a shared library path into an executable.
16846 hardcode_action=$hardcode_action_F77
16847
16848 # Whether we should hardcode library paths into libraries.
16849 hardcode_into_libs=$hardcode_into_libs
16850
16851 # Flag to hardcode \$libdir into a binary during linking.
16852 # This must work even if \$libdir does not exist.
16853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16854
16855 # If ld is used when linking, flag to hardcode \$libdir into
16856 # a binary during linking. This must work even if \$libdir does
16857 # not exist.
16858 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16859
16860 # Whether we need a single -rpath flag with a separated argument.
16861 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16862
16863 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16864 # resulting binary.
16865 hardcode_direct=$hardcode_direct_F77
16866
16867 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16868 # resulting binary.
16869 hardcode_minus_L=$hardcode_minus_L_F77
16870
16871 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16872 # the resulting binary.
16873 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16874
16875 # Set to yes if building a shared library automatically hardcodes DIR into the library
16876 # and all subsequent libraries and executables linked against it.
16877 hardcode_automatic=$hardcode_automatic_F77
16878
16879 # Variables whose values should be saved in libtool wrapper scripts and
16880 # restored at relink time.
16881 variables_saved_for_relink="$variables_saved_for_relink"
16882
16883 # Whether libtool must link a program against all its dependency libraries.
16884 link_all_deplibs=$link_all_deplibs_F77
16885
16886 # Compile-time system search path for libraries
16887 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16888
16889 # Run-time system search path for libraries
16890 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16891
16892 # Fix the shell variable \$srcfile for the compiler.
16893 fix_srcfile_path="$fix_srcfile_path_F77"
16894
16895 # Set to yes if exported symbols are required.
16896 always_export_symbols=$always_export_symbols_F77
16897
16898 # The commands to list exported symbols.
16899 export_symbols_cmds=$lt_export_symbols_cmds_F77
16900
16901 # The commands to extract the exported symbol list from a shared archive.
16902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16903
16904 # Symbols that should not be listed in the preloaded symbols.
16905 exclude_expsyms=$lt_exclude_expsyms_F77
16906
16907 # Symbols that must always be exported.
16908 include_expsyms=$lt_include_expsyms_F77
16909
16910 # ### END LIBTOOL TAG CONFIG: $tagname
16911
16912 __EOF__
16913
16914
16915 else
16916   # If there is no Makefile yet, we rely on a make rule to execute
16917   # `config.status --recheck' to rerun these tests and create the
16918   # libtool script then.
16919   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16920   if test -f "$ltmain_in"; then
16921     test -f Makefile && make "$ltmain"
16922   fi
16923 fi
16924
16925
16926 ac_ext=c
16927 ac_cpp='$CPP $CPPFLAGS'
16928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16931
16932 CC="$lt_save_CC"
16933
16934         else
16935           tagname=""
16936         fi
16937         ;;
16938
16939       GCJ)
16940         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16941
16942
16943 # Source file extension for Java test sources.
16944 ac_ext=java
16945
16946 # Object file extension for compiled Java test sources.
16947 objext=o
16948 objext_GCJ=$objext
16949
16950 # Code to be used in simple compile tests
16951 lt_simple_compile_test_code="class foo {}\n"
16952
16953 # Code to be used in simple link tests
16954 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16955
16956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16957
16958 # If no C compiler was specified, use CC.
16959 LTCC=${LTCC-"$CC"}
16960
16961 # If no C compiler flags were specified, use CFLAGS.
16962 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16963
16964 # Allow CC to be a program name with arguments.
16965 compiler=$CC
16966
16967
16968 # save warnings/boilerplate of simple test code
16969 ac_outfile=conftest.$ac_objext
16970 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16971 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16972 _lt_compiler_boilerplate=`cat conftest.err`
16973 $rm conftest*
16974
16975 ac_outfile=conftest.$ac_objext
16976 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16977 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16978 _lt_linker_boilerplate=`cat conftest.err`
16979 $rm conftest*
16980
16981
16982 # Allow CC to be a program name with arguments.
16983 lt_save_CC="$CC"
16984 CC=${GCJ-"gcj"}
16985 compiler=$CC
16986 compiler_GCJ=$CC
16987 for cc_temp in $compiler""; do
16988   case $cc_temp in
16989     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16990     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16991     \-*) ;;
16992     *) break;;
16993   esac
16994 done
16995 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16996
16997
16998 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16999 archive_cmds_need_lc_GCJ=no
17000
17001 old_archive_cmds_GCJ=$old_archive_cmds
17002
17003
17004 lt_prog_compiler_no_builtin_flag_GCJ=
17005
17006 if test "$GCC" = yes; then
17007   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17008
17009
17010 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17011 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17012 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015   lt_cv_prog_compiler_rtti_exceptions=no
17016   ac_outfile=conftest.$ac_objext
17017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17018    lt_compiler_flag="-fno-rtti -fno-exceptions"
17019    # Insert the option either (1) after the last *FLAGS variable, or
17020    # (2) before a word containing "conftest.", or (3) at the end.
17021    # Note that $ac_compile itself does not contain backslashes and begins
17022    # with a dollar sign (not a hyphen), so the echo should work correctly.
17023    # The option is referenced via a variable to avoid confusing sed.
17024    lt_compile=`echo "$ac_compile" | $SED \
17025    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17027    -e 's:$: $lt_compiler_flag:'`
17028    (eval echo "\"\$as_me:17028: $lt_compile\"" >&5)
17029    (eval "$lt_compile" 2>conftest.err)
17030    ac_status=$?
17031    cat conftest.err >&5
17032    echo "$as_me:17032: \$? = $ac_status" >&5
17033    if (exit $ac_status) && test -s "$ac_outfile"; then
17034      # The compiler can only warn and ignore the option if not recognized
17035      # So say no if there are warnings other than the usual output.
17036      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17037      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17038      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17039        lt_cv_prog_compiler_rtti_exceptions=yes
17040      fi
17041    fi
17042    $rm conftest*
17043
17044 fi
17045 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17046 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17047
17048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17049     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17050 else
17051     :
17052 fi
17053
17054 fi
17055
17056 lt_prog_compiler_wl_GCJ=
17057 lt_prog_compiler_pic_GCJ=
17058 lt_prog_compiler_static_GCJ=
17059
17060 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17061 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17062
17063   if test "$GCC" = yes; then
17064     lt_prog_compiler_wl_GCJ='-Wl,'
17065     lt_prog_compiler_static_GCJ='-static'
17066
17067     case $host_os in
17068       aix*)
17069       # All AIX code is PIC.
17070       if test "$host_cpu" = ia64; then
17071         # AIX 5 now supports IA64 processor
17072         lt_prog_compiler_static_GCJ='-Bstatic'
17073       fi
17074       ;;
17075
17076     amigaos*)
17077       # FIXME: we need at least 68020 code to build shared libraries, but
17078       # adding the `-m68020' flag to GCC prevents building anything better,
17079       # like `-m68040'.
17080       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17081       ;;
17082
17083     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17084       # PIC is the default for these OSes.
17085       ;;
17086
17087     mingw* | pw32* | os2*)
17088       # This hack is so that the source file can tell whether it is being
17089       # built for inclusion in a dll (and should export symbols for example).
17090       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17091       ;;
17092
17093     darwin* | rhapsody*)
17094       # PIC is the default on this platform
17095       # Common symbols not allowed in MH_DYLIB files
17096       lt_prog_compiler_pic_GCJ='-fno-common'
17097       ;;
17098
17099     interix3*)
17100       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17101       # Instead, we relocate shared libraries at runtime.
17102       ;;
17103
17104     msdosdjgpp*)
17105       # Just because we use GCC doesn't mean we suddenly get shared libraries
17106       # on systems that don't support them.
17107       lt_prog_compiler_can_build_shared_GCJ=no
17108       enable_shared=no
17109       ;;
17110
17111     sysv4*MP*)
17112       if test -d /usr/nec; then
17113         lt_prog_compiler_pic_GCJ=-Kconform_pic
17114       fi
17115       ;;
17116
17117     hpux*)
17118       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17119       # not for PA HP-UX.
17120       case $host_cpu in
17121       hppa*64*|ia64*)
17122         # +Z the default
17123         ;;
17124       *)
17125         lt_prog_compiler_pic_GCJ='-fPIC'
17126         ;;
17127       esac
17128       ;;
17129
17130     *)
17131       lt_prog_compiler_pic_GCJ='-fPIC'
17132       ;;
17133     esac
17134   else
17135     # PORTME Check for flag to pass linker flags through the system compiler.
17136     case $host_os in
17137     aix*)
17138       lt_prog_compiler_wl_GCJ='-Wl,'
17139       if test "$host_cpu" = ia64; then
17140         # AIX 5 now supports IA64 processor
17141         lt_prog_compiler_static_GCJ='-Bstatic'
17142       else
17143         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17144       fi
17145       ;;
17146       darwin*)
17147         # PIC is the default on this platform
17148         # Common symbols not allowed in MH_DYLIB files
17149        case $cc_basename in
17150          xlc*)
17151          lt_prog_compiler_pic_GCJ='-qnocommon'
17152          lt_prog_compiler_wl_GCJ='-Wl,'
17153          ;;
17154        esac
17155        ;;
17156
17157     mingw* | pw32* | os2*)
17158       # This hack is so that the source file can tell whether it is being
17159       # built for inclusion in a dll (and should export symbols for example).
17160       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17161       ;;
17162
17163     hpux9* | hpux10* | hpux11*)
17164       lt_prog_compiler_wl_GCJ='-Wl,'
17165       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17166       # not for PA HP-UX.
17167       case $host_cpu in
17168       hppa*64*|ia64*)
17169         # +Z the default
17170         ;;
17171       *)
17172         lt_prog_compiler_pic_GCJ='+Z'
17173         ;;
17174       esac
17175       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17176       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17177       ;;
17178
17179     irix5* | irix6* | nonstopux*)
17180       lt_prog_compiler_wl_GCJ='-Wl,'
17181       # PIC (with -KPIC) is the default.
17182       lt_prog_compiler_static_GCJ='-non_shared'
17183       ;;
17184
17185     newsos6)
17186       lt_prog_compiler_pic_GCJ='-KPIC'
17187       lt_prog_compiler_static_GCJ='-Bstatic'
17188       ;;
17189
17190     linux* | k*bsd*-gnu)
17191       case $cc_basename in
17192       icc* | ecc*)
17193         lt_prog_compiler_wl_GCJ='-Wl,'
17194         lt_prog_compiler_pic_GCJ='-KPIC'
17195         lt_prog_compiler_static_GCJ='-static'
17196         ;;
17197       pgcc* | pgf77* | pgf90* | pgf95*)
17198         # Portland Group compilers (*not* the Pentium gcc compiler,
17199         # which looks to be a dead project)
17200         lt_prog_compiler_wl_GCJ='-Wl,'
17201         lt_prog_compiler_pic_GCJ='-fpic'
17202         lt_prog_compiler_static_GCJ='-Bstatic'
17203         ;;
17204       ccc*)
17205         lt_prog_compiler_wl_GCJ='-Wl,'
17206         # All Alpha code is PIC.
17207         lt_prog_compiler_static_GCJ='-non_shared'
17208         ;;
17209       esac
17210       ;;
17211
17212     osf3* | osf4* | osf5*)
17213       lt_prog_compiler_wl_GCJ='-Wl,'
17214       # All OSF/1 code is PIC.
17215       lt_prog_compiler_static_GCJ='-non_shared'
17216       ;;
17217
17218     solaris*)
17219       lt_prog_compiler_pic_GCJ='-KPIC'
17220       lt_prog_compiler_static_GCJ='-Bstatic'
17221       case $cc_basename in
17222       f77* | f90* | f95*)
17223         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17224       *)
17225         lt_prog_compiler_wl_GCJ='-Wl,';;
17226       esac
17227       ;;
17228
17229     sunos4*)
17230       lt_prog_compiler_wl_GCJ='-Qoption ld '
17231       lt_prog_compiler_pic_GCJ='-PIC'
17232       lt_prog_compiler_static_GCJ='-Bstatic'
17233       ;;
17234
17235     sysv4 | sysv4.2uw2* | sysv4.3*)
17236       lt_prog_compiler_wl_GCJ='-Wl,'
17237       lt_prog_compiler_pic_GCJ='-KPIC'
17238       lt_prog_compiler_static_GCJ='-Bstatic'
17239       ;;
17240
17241     sysv4*MP*)
17242       if test -d /usr/nec ;then
17243         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17244         lt_prog_compiler_static_GCJ='-Bstatic'
17245       fi
17246       ;;
17247
17248     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17249       lt_prog_compiler_wl_GCJ='-Wl,'
17250       lt_prog_compiler_pic_GCJ='-KPIC'
17251       lt_prog_compiler_static_GCJ='-Bstatic'
17252       ;;
17253
17254     unicos*)
17255       lt_prog_compiler_wl_GCJ='-Wl,'
17256       lt_prog_compiler_can_build_shared_GCJ=no
17257       ;;
17258
17259     uts4*)
17260       lt_prog_compiler_pic_GCJ='-pic'
17261       lt_prog_compiler_static_GCJ='-Bstatic'
17262       ;;
17263
17264     *)
17265       lt_prog_compiler_can_build_shared_GCJ=no
17266       ;;
17267     esac
17268   fi
17269
17270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17271 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17272
17273 #
17274 # Check to make sure the PIC flag actually works.
17275 #
17276 if test -n "$lt_prog_compiler_pic_GCJ"; then
17277
17278 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17280 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   lt_prog_compiler_pic_works_GCJ=no
17284   ac_outfile=conftest.$ac_objext
17285    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17286    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17287    # Insert the option either (1) after the last *FLAGS variable, or
17288    # (2) before a word containing "conftest.", or (3) at the end.
17289    # Note that $ac_compile itself does not contain backslashes and begins
17290    # with a dollar sign (not a hyphen), so the echo should work correctly.
17291    # The option is referenced via a variable to avoid confusing sed.
17292    lt_compile=`echo "$ac_compile" | $SED \
17293    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17295    -e 's:$: $lt_compiler_flag:'`
17296    (eval echo "\"\$as_me:17296: $lt_compile\"" >&5)
17297    (eval "$lt_compile" 2>conftest.err)
17298    ac_status=$?
17299    cat conftest.err >&5
17300    echo "$as_me:17300: \$? = $ac_status" >&5
17301    if (exit $ac_status) && test -s "$ac_outfile"; then
17302      # The compiler can only warn and ignore the option if not recognized
17303      # So say no if there are warnings other than the usual output.
17304      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17305      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17306      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17307        lt_prog_compiler_pic_works_GCJ=yes
17308      fi
17309    fi
17310    $rm conftest*
17311
17312 fi
17313 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17314 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17315
17316 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17317     case $lt_prog_compiler_pic_GCJ in
17318      "" | " "*) ;;
17319      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17320      esac
17321 else
17322     lt_prog_compiler_pic_GCJ=
17323      lt_prog_compiler_can_build_shared_GCJ=no
17324 fi
17325
17326 fi
17327 case $host_os in
17328   # For platforms which do not support PIC, -DPIC is meaningless:
17329   *djgpp*)
17330     lt_prog_compiler_pic_GCJ=
17331     ;;
17332   *)
17333     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17334     ;;
17335 esac
17336
17337 #
17338 # Check to make sure the static flag actually works.
17339 #
17340 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17341 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17342 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17343 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17344   echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346   lt_prog_compiler_static_works_GCJ=no
17347    save_LDFLAGS="$LDFLAGS"
17348    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17349    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17350    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17351      # The linker can only warn and ignore the option if not recognized
17352      # So say no if there are warnings
17353      if test -s conftest.err; then
17354        # Append any errors to the config.log.
17355        cat conftest.err 1>&5
17356        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17357        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17358        if diff conftest.exp conftest.er2 >/dev/null; then
17359          lt_prog_compiler_static_works_GCJ=yes
17360        fi
17361      else
17362        lt_prog_compiler_static_works_GCJ=yes
17363      fi
17364    fi
17365    $rm conftest*
17366    LDFLAGS="$save_LDFLAGS"
17367
17368 fi
17369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17370 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17371
17372 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17373     :
17374 else
17375     lt_prog_compiler_static_GCJ=
17376 fi
17377
17378
17379 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17380 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17381 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17382   echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384   lt_cv_prog_compiler_c_o_GCJ=no
17385    $rm -r conftest 2>/dev/null
17386    mkdir conftest
17387    cd conftest
17388    mkdir out
17389    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17390
17391    lt_compiler_flag="-o out/conftest2.$ac_objext"
17392    # Insert the option either (1) after the last *FLAGS variable, or
17393    # (2) before a word containing "conftest.", or (3) at the end.
17394    # Note that $ac_compile itself does not contain backslashes and begins
17395    # with a dollar sign (not a hyphen), so the echo should work correctly.
17396    lt_compile=`echo "$ac_compile" | $SED \
17397    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17399    -e 's:$: $lt_compiler_flag:'`
17400    (eval echo "\"\$as_me:17400: $lt_compile\"" >&5)
17401    (eval "$lt_compile" 2>out/conftest.err)
17402    ac_status=$?
17403    cat out/conftest.err >&5
17404    echo "$as_me:17404: \$? = $ac_status" >&5
17405    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17406    then
17407      # The compiler can only warn and ignore the option if not recognized
17408      # So say no if there are warnings
17409      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17410      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17411      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17412        lt_cv_prog_compiler_c_o_GCJ=yes
17413      fi
17414    fi
17415    chmod u+w . 2>&5
17416    $rm conftest*
17417    # SGI C++ compiler will create directory out/ii_files/ for
17418    # template instantiation
17419    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17420    $rm out/* && rmdir out
17421    cd ..
17422    rmdir conftest
17423    $rm conftest*
17424
17425 fi
17426 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17427 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17428
17429
17430 hard_links="nottested"
17431 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17432   # do not overwrite the value of need_locks provided by the user
17433   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17434 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17435   hard_links=yes
17436   $rm conftest*
17437   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17438   touch conftest.a
17439   ln conftest.a conftest.b 2>&5 || hard_links=no
17440   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17441   { echo "$as_me:$LINENO: result: $hard_links" >&5
17442 echo "${ECHO_T}$hard_links" >&6; }
17443   if test "$hard_links" = no; then
17444     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17445 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17446     need_locks=warn
17447   fi
17448 else
17449   need_locks=no
17450 fi
17451
17452 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17453 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17454
17455   runpath_var=
17456   allow_undefined_flag_GCJ=
17457   enable_shared_with_static_runtimes_GCJ=no
17458   archive_cmds_GCJ=
17459   archive_expsym_cmds_GCJ=
17460   old_archive_From_new_cmds_GCJ=
17461   old_archive_from_expsyms_cmds_GCJ=
17462   export_dynamic_flag_spec_GCJ=
17463   whole_archive_flag_spec_GCJ=
17464   thread_safe_flag_spec_GCJ=
17465   hardcode_libdir_flag_spec_GCJ=
17466   hardcode_libdir_flag_spec_ld_GCJ=
17467   hardcode_libdir_separator_GCJ=
17468   hardcode_direct_GCJ=no
17469   hardcode_minus_L_GCJ=no
17470   hardcode_shlibpath_var_GCJ=unsupported
17471   link_all_deplibs_GCJ=unknown
17472   hardcode_automatic_GCJ=no
17473   module_cmds_GCJ=
17474   module_expsym_cmds_GCJ=
17475   always_export_symbols_GCJ=no
17476   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17477   # include_expsyms should be a list of space-separated symbols to be *always*
17478   # included in the symbol list
17479   include_expsyms_GCJ=
17480   # exclude_expsyms can be an extended regexp of symbols to exclude
17481   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483   # as well as any symbol that contains `d'.
17484   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17485   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486   # platforms (ab)use it in PIC code, but their linkers get confused if
17487   # the symbol is explicitly referenced.  Since portable code cannot
17488   # rely on this symbol name, it's probably fine to never include it in
17489   # preloaded symbol tables.
17490   extract_expsyms_cmds=
17491   # Just being paranoid about ensuring that cc_basename is set.
17492   for cc_temp in $compiler""; do
17493   case $cc_temp in
17494     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17495     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17496     \-*) ;;
17497     *) break;;
17498   esac
17499 done
17500 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17501
17502   case $host_os in
17503   cygwin* | mingw* | pw32*)
17504     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17505     # When not using gcc, we currently assume that we are using
17506     # Microsoft Visual C++.
17507     if test "$GCC" != yes; then
17508       with_gnu_ld=no
17509     fi
17510     ;;
17511   interix*)
17512     # we just hope/assume this is gcc and not c89 (= MSVC++)
17513     with_gnu_ld=yes
17514     ;;
17515   openbsd*)
17516     with_gnu_ld=no
17517     ;;
17518   esac
17519
17520   ld_shlibs_GCJ=yes
17521   if test "$with_gnu_ld" = yes; then
17522     # If archive_cmds runs LD, not CC, wlarc should be empty
17523     wlarc='${wl}'
17524
17525     # Set some defaults for GNU ld with shared library support. These
17526     # are reset later if shared libraries are not supported. Putting them
17527     # here allows them to be overridden if necessary.
17528     runpath_var=LD_RUN_PATH
17529     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17530     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17531     # ancient GNU ld didn't support --whole-archive et. al.
17532     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17533         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17534       else
17535         whole_archive_flag_spec_GCJ=
17536     fi
17537     supports_anon_versioning=no
17538     case `$LD -v 2>/dev/null` in
17539       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17540       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17541       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17542       *\ 2.11.*) ;; # other 2.11 versions
17543       *) supports_anon_versioning=yes ;;
17544     esac
17545
17546     # See if GNU ld supports shared libraries.
17547     case $host_os in
17548     aix3* | aix4* | aix5*)
17549       # On AIX/PPC, the GNU linker is very broken
17550       if test "$host_cpu" != ia64; then
17551         ld_shlibs_GCJ=no
17552         cat <<EOF 1>&2
17553
17554 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17555 *** to be unable to reliably create shared libraries on AIX.
17556 *** Therefore, libtool is disabling shared libraries support.  If you
17557 *** really care for shared libraries, you may want to modify your PATH
17558 *** so that a non-GNU linker is found, and then restart.
17559
17560 EOF
17561       fi
17562       ;;
17563
17564     amigaos*)
17565       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)'
17566       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567       hardcode_minus_L_GCJ=yes
17568
17569       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17570       # that the semantics of dynamic libraries on AmigaOS, at least up
17571       # to version 4, is to share data among multiple programs linked
17572       # with the same dynamic library.  Since this doesn't match the
17573       # behavior of shared libraries on other platforms, we can't use
17574       # them.
17575       ld_shlibs_GCJ=no
17576       ;;
17577
17578     beos*)
17579       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17580         allow_undefined_flag_GCJ=unsupported
17581         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17582         # support --undefined.  This deserves some investigation.  FIXME
17583         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17584       else
17585         ld_shlibs_GCJ=no
17586       fi
17587       ;;
17588
17589     cygwin* | mingw* | pw32*)
17590       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17591       # as there is no search path for DLLs.
17592       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17593       allow_undefined_flag_GCJ=unsupported
17594       always_export_symbols_GCJ=no
17595       enable_shared_with_static_runtimes_GCJ=yes
17596       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17597
17598       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17599         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17600         # If the export-symbols file already is a .def file (1st line
17601         # is EXPORTS), use it as is; otherwise, prepend...
17602         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17603           cp $export_symbols $output_objdir/$soname.def;
17604         else
17605           echo EXPORTS > $output_objdir/$soname.def;
17606           cat $export_symbols >> $output_objdir/$soname.def;
17607         fi~
17608         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17609       else
17610         ld_shlibs_GCJ=no
17611       fi
17612       ;;
17613
17614     interix3*)
17615       hardcode_direct_GCJ=no
17616       hardcode_shlibpath_var_GCJ=no
17617       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17618       export_dynamic_flag_spec_GCJ='${wl}-E'
17619       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17620       # Instead, shared libraries are loaded at an image base (0x10000000 by
17621       # default) and relocated if they conflict, which is a slow very memory
17622       # consuming and fragmenting process.  To avoid this, we pick a random,
17623       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17624       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17625       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'
17626       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'
17627       ;;
17628
17629     linux* | k*bsd*-gnu)
17630       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17631         tmp_addflag=
17632         case $cc_basename,$host_cpu in
17633         pgcc*)                          # Portland Group C compiler
17634           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'
17635           tmp_addflag=' $pic_flag'
17636           ;;
17637         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17638           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'
17639           tmp_addflag=' $pic_flag -Mnomain' ;;
17640         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17641           tmp_addflag=' -i_dynamic' ;;
17642         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17643           tmp_addflag=' -i_dynamic -nofor_main' ;;
17644         ifc* | ifort*)                  # Intel Fortran compiler
17645           tmp_addflag=' -nofor_main' ;;
17646         esac
17647         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17648
17649         if test $supports_anon_versioning = yes; then
17650           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17651   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17652   $echo "local: *; };" >> $output_objdir/$libname.ver~
17653           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17654         fi
17655         link_all_deplibs_GCJ=no
17656       else
17657         ld_shlibs_GCJ=no
17658       fi
17659       ;;
17660
17661     netbsd* | netbsdelf*-gnu)
17662       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17663         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17664         wlarc=
17665       else
17666         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17667         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17668       fi
17669       ;;
17670
17671     solaris*)
17672       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17673         ld_shlibs_GCJ=no
17674         cat <<EOF 1>&2
17675
17676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17677 *** create shared libraries on Solaris systems.  Therefore, libtool
17678 *** is disabling shared libraries support.  We urge you to upgrade GNU
17679 *** binutils to release 2.9.1 or newer.  Another option is to modify
17680 *** your PATH or compiler configuration so that the native linker is
17681 *** used, and then restart.
17682
17683 EOF
17684       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17685         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17687       else
17688         ld_shlibs_GCJ=no
17689       fi
17690       ;;
17691
17692     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17693       case `$LD -v 2>&1` in
17694         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17695         ld_shlibs_GCJ=no
17696         cat <<_LT_EOF 1>&2
17697
17698 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17699 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17700 *** is disabling shared libraries support.  We urge you to upgrade GNU
17701 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17702 *** your PATH or compiler configuration so that the native linker is
17703 *** used, and then restart.
17704
17705 _LT_EOF
17706         ;;
17707         *)
17708           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17709             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17710             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17711             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17712           else
17713             ld_shlibs_GCJ=no
17714           fi
17715         ;;
17716       esac
17717       ;;
17718
17719     sunos4*)
17720       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17721       wlarc=
17722       hardcode_direct_GCJ=yes
17723       hardcode_shlibpath_var_GCJ=no
17724       ;;
17725
17726     *)
17727       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17728         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17729         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17730       else
17731         ld_shlibs_GCJ=no
17732       fi
17733       ;;
17734     esac
17735
17736     if test "$ld_shlibs_GCJ" = no; then
17737       runpath_var=
17738       hardcode_libdir_flag_spec_GCJ=
17739       export_dynamic_flag_spec_GCJ=
17740       whole_archive_flag_spec_GCJ=
17741     fi
17742   else
17743     # PORTME fill in a description of your system's linker (not GNU ld)
17744     case $host_os in
17745     aix3*)
17746       allow_undefined_flag_GCJ=unsupported
17747       always_export_symbols_GCJ=yes
17748       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'
17749       # Note: this linker hardcodes the directories in LIBPATH if there
17750       # are no directories specified by -L.
17751       hardcode_minus_L_GCJ=yes
17752       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17753         # Neither direct hardcoding nor static linking is supported with a
17754         # broken collect2.
17755         hardcode_direct_GCJ=unsupported
17756       fi
17757       ;;
17758
17759     aix4* | aix5*)
17760       if test "$host_cpu" = ia64; then
17761         # On IA64, the linker does run time linking by default, so we don't
17762         # have to do anything special.
17763         aix_use_runtimelinking=no
17764         exp_sym_flag='-Bexport'
17765         no_entry_flag=""
17766       else
17767         # If we're using GNU nm, then we don't want the "-C" option.
17768         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17769         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17770           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'
17771         else
17772           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'
17773         fi
17774         aix_use_runtimelinking=no
17775
17776         # Test if we are trying to use run time linking or normal
17777         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17778         # need to do runtime linking.
17779         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17780           for ld_flag in $LDFLAGS; do
17781           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17782             aix_use_runtimelinking=yes
17783             break
17784           fi
17785           done
17786           ;;
17787         esac
17788
17789         exp_sym_flag='-bexport'
17790         no_entry_flag='-bnoentry'
17791       fi
17792
17793       # When large executables or shared objects are built, AIX ld can
17794       # have problems creating the table of contents.  If linking a library
17795       # or program results in "error TOC overflow" add -mminimal-toc to
17796       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17797       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17798
17799       archive_cmds_GCJ=''
17800       hardcode_direct_GCJ=yes
17801       hardcode_libdir_separator_GCJ=':'
17802       link_all_deplibs_GCJ=yes
17803
17804       if test "$GCC" = yes; then
17805         case $host_os in aix4.[012]|aix4.[012].*)
17806         # We only want to do this on AIX 4.2 and lower, the check
17807         # below for broken collect2 doesn't work under 4.3+
17808           collect2name=`${CC} -print-prog-name=collect2`
17809           if test -f "$collect2name" && \
17810            strings "$collect2name" | grep resolve_lib_name >/dev/null
17811           then
17812           # We have reworked collect2
17813           hardcode_direct_GCJ=yes
17814           else
17815           # We have old collect2
17816           hardcode_direct_GCJ=unsupported
17817           # It fails to find uninstalled libraries when the uninstalled
17818           # path is not listed in the libpath.  Setting hardcode_minus_L
17819           # to unsupported forces relinking
17820           hardcode_minus_L_GCJ=yes
17821           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17822           hardcode_libdir_separator_GCJ=
17823           fi
17824           ;;
17825         esac
17826         shared_flag='-shared'
17827         if test "$aix_use_runtimelinking" = yes; then
17828           shared_flag="$shared_flag "'${wl}-G'
17829         fi
17830       else
17831         # not using gcc
17832         if test "$host_cpu" = ia64; then
17833         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17834         # chokes on -Wl,-G. The following line is correct:
17835           shared_flag='-G'
17836         else
17837           if test "$aix_use_runtimelinking" = yes; then
17838             shared_flag='${wl}-G'
17839           else
17840             shared_flag='${wl}-bM:SRE'
17841           fi
17842         fi
17843       fi
17844
17845       # It seems that -bexpall does not export symbols beginning with
17846       # underscore (_), so it is better to generate a list of symbols to export.
17847       always_export_symbols_GCJ=yes
17848       if test "$aix_use_runtimelinking" = yes; then
17849         # Warning - without using the other runtime loading flags (-brtl),
17850         # -berok will link without error, but may produce a broken library.
17851         allow_undefined_flag_GCJ='-berok'
17852        # Determine the default libpath from the value encoded in an empty executable.
17853        cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859
17860 int
17861 main ()
17862 {
17863
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872   *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875   (eval "$ac_link") 2>conftest.er1
17876   ac_status=$?
17877   grep -v '^ *+' conftest.er1 >conftest.err
17878   rm -f conftest.er1
17879   cat conftest.err >&5
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); } && {
17882          test -z "$ac_c_werror_flag" ||
17883          test ! -s conftest.err
17884        } && test -s conftest$ac_exeext &&
17885        $as_test_x conftest$ac_exeext; then
17886
17887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17888 }'`
17889 # Check for a 64-bit object if we didn't find anything.
17890 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; }
17891 }'`; fi
17892 else
17893   echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17895
17896
17897 fi
17898
17899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900       conftest$ac_exeext conftest.$ac_ext
17901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17902
17903        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17904         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"
17905        else
17906         if test "$host_cpu" = ia64; then
17907           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17908           allow_undefined_flag_GCJ="-z nodefs"
17909           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"
17910         else
17911          # Determine the default libpath from the value encoded in an empty executable.
17912          cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h.  */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h.  */
17918
17919 int
17920 main ()
17921 {
17922
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931   *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934   (eval "$ac_link") 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } && {
17941          test -z "$ac_c_werror_flag" ||
17942          test ! -s conftest.err
17943        } && test -s conftest$ac_exeext &&
17944        $as_test_x conftest$ac_exeext; then
17945
17946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17947 }'`
17948 # Check for a 64-bit object if we didn't find anything.
17949 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; }
17950 }'`; fi
17951 else
17952   echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955
17956 fi
17957
17958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17959       conftest$ac_exeext conftest.$ac_ext
17960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17961
17962          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17963           # Warning - without using the other run time loading flags,
17964           # -berok will link without error, but may produce a broken library.
17965           no_undefined_flag_GCJ=' ${wl}-bernotok'
17966           allow_undefined_flag_GCJ=' ${wl}-berok'
17967           # Exported symbols can be pulled into shared objects from archives
17968           whole_archive_flag_spec_GCJ='$convenience'
17969           archive_cmds_need_lc_GCJ=yes
17970           # This is similar to how AIX traditionally builds its shared libraries.
17971           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'
17972         fi
17973       fi
17974       ;;
17975
17976     amigaos*)
17977       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)'
17978       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17979       hardcode_minus_L_GCJ=yes
17980       # see comment about different semantics on the GNU ld section
17981       ld_shlibs_GCJ=no
17982       ;;
17983
17984     bsdi[45]*)
17985       export_dynamic_flag_spec_GCJ=-rdynamic
17986       ;;
17987
17988     cygwin* | mingw* | pw32*)
17989       # When not using gcc, we currently assume that we are using
17990       # Microsoft Visual C++.
17991       # hardcode_libdir_flag_spec is actually meaningless, as there is
17992       # no search path for DLLs.
17993       hardcode_libdir_flag_spec_GCJ=' '
17994       allow_undefined_flag_GCJ=unsupported
17995       # Tell ltmain to make .lib files, not .a files.
17996       libext=lib
17997       # Tell ltmain to make .dll files, not .so files.
17998       shrext_cmds=".dll"
17999       # FIXME: Setting linknames here is a bad hack.
18000       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18001       # The linker will automatically build a .lib file if we build a DLL.
18002       old_archive_From_new_cmds_GCJ='true'
18003       # FIXME: Should let the user specify the lib program.
18004       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18005       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18006       enable_shared_with_static_runtimes_GCJ=yes
18007       ;;
18008
18009     darwin* | rhapsody*)
18010       case $host_os in
18011         rhapsody* | darwin1.[012])
18012          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18013          ;;
18014        *) # Darwin 1.3 on
18015          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18016            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18017          else
18018            case ${MACOSX_DEPLOYMENT_TARGET} in
18019              10.[012])
18020                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18021                ;;
18022              10.*)
18023                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18024                ;;
18025            esac
18026          fi
18027          ;;
18028       esac
18029       archive_cmds_need_lc_GCJ=no
18030       hardcode_direct_GCJ=no
18031       hardcode_automatic_GCJ=yes
18032       hardcode_shlibpath_var_GCJ=unsupported
18033       whole_archive_flag_spec_GCJ=''
18034       link_all_deplibs_GCJ=yes
18035     if test "$GCC" = yes ; then
18036         output_verbose_link_cmd='echo'
18037         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18038       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18039       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18040       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}'
18041       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}'
18042     else
18043       case $cc_basename in
18044         xlc*)
18045          output_verbose_link_cmd='echo'
18046          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18047          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18048           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18049          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}'
18050           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}'
18051           ;;
18052        *)
18053          ld_shlibs_GCJ=no
18054           ;;
18055       esac
18056     fi
18057       ;;
18058
18059     dgux*)
18060       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18062       hardcode_shlibpath_var_GCJ=no
18063       ;;
18064
18065     freebsd1*)
18066       ld_shlibs_GCJ=no
18067       ;;
18068
18069     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18070     # support.  Future versions do this automatically, but an explicit c++rt0.o
18071     # does not break anything, and helps significantly (at the cost of a little
18072     # extra space).
18073     freebsd2.2*)
18074       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18075       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18076       hardcode_direct_GCJ=yes
18077       hardcode_shlibpath_var_GCJ=no
18078       ;;
18079
18080     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18081     freebsd2*)
18082       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18083       hardcode_direct_GCJ=yes
18084       hardcode_minus_L_GCJ=yes
18085       hardcode_shlibpath_var_GCJ=no
18086       ;;
18087
18088     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18089     freebsd* | dragonfly*)
18090       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18091       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18092       hardcode_direct_GCJ=yes
18093       hardcode_shlibpath_var_GCJ=no
18094       ;;
18095
18096     hpux9*)
18097       if test "$GCC" = yes; then
18098         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'
18099       else
18100         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'
18101       fi
18102       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18103       hardcode_libdir_separator_GCJ=:
18104       hardcode_direct_GCJ=yes
18105
18106       # hardcode_minus_L: Not really in the search PATH,
18107       # but as the default location of the library.
18108       hardcode_minus_L_GCJ=yes
18109       export_dynamic_flag_spec_GCJ='${wl}-E'
18110       ;;
18111
18112     hpux10*)
18113       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18114         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18115       else
18116         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18117       fi
18118       if test "$with_gnu_ld" = no; then
18119         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18120         hardcode_libdir_separator_GCJ=:
18121
18122         hardcode_direct_GCJ=yes
18123         export_dynamic_flag_spec_GCJ='${wl}-E'
18124
18125         # hardcode_minus_L: Not really in the search PATH,
18126         # but as the default location of the library.
18127         hardcode_minus_L_GCJ=yes
18128       fi
18129       ;;
18130
18131     hpux11*)
18132       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18133         case $host_cpu in
18134         hppa*64*)
18135           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136           ;;
18137         ia64*)
18138           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18139           ;;
18140         *)
18141           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18142           ;;
18143         esac
18144       else
18145         case $host_cpu in
18146         hppa*64*)
18147           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148           ;;
18149         ia64*)
18150           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18151           ;;
18152         *)
18153           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18154           ;;
18155         esac
18156       fi
18157       if test "$with_gnu_ld" = no; then
18158         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18159         hardcode_libdir_separator_GCJ=:
18160
18161         case $host_cpu in
18162         hppa*64*|ia64*)
18163           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18164           hardcode_direct_GCJ=no
18165           hardcode_shlibpath_var_GCJ=no
18166           ;;
18167         *)
18168           hardcode_direct_GCJ=yes
18169           export_dynamic_flag_spec_GCJ='${wl}-E'
18170
18171           # hardcode_minus_L: Not really in the search PATH,
18172           # but as the default location of the library.
18173           hardcode_minus_L_GCJ=yes
18174           ;;
18175         esac
18176       fi
18177       ;;
18178
18179     irix5* | irix6* | nonstopux*)
18180       if test "$GCC" = yes; then
18181         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'
18182       else
18183         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'
18184         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18185       fi
18186       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18187       hardcode_libdir_separator_GCJ=:
18188       link_all_deplibs_GCJ=yes
18189       ;;
18190
18191     netbsd* | netbsdelf*-gnu)
18192       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18193         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18194       else
18195         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18196       fi
18197       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18198       hardcode_direct_GCJ=yes
18199       hardcode_shlibpath_var_GCJ=no
18200       ;;
18201
18202     newsos6)
18203       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204       hardcode_direct_GCJ=yes
18205       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18206       hardcode_libdir_separator_GCJ=:
18207       hardcode_shlibpath_var_GCJ=no
18208       ;;
18209
18210     openbsd*)
18211       hardcode_direct_GCJ=yes
18212       hardcode_shlibpath_var_GCJ=no
18213       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18214         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18215         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18216         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18217         export_dynamic_flag_spec_GCJ='${wl}-E'
18218       else
18219        case $host_os in
18220          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18221            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18222            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18223            ;;
18224          *)
18225            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18226            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18227            ;;
18228        esac
18229       fi
18230       ;;
18231
18232     os2*)
18233       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18234       hardcode_minus_L_GCJ=yes
18235       allow_undefined_flag_GCJ=unsupported
18236       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'
18237       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18238       ;;
18239
18240     osf3*)
18241       if test "$GCC" = yes; then
18242         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18243         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'
18244       else
18245         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18246         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'
18247       fi
18248       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18249       hardcode_libdir_separator_GCJ=:
18250       ;;
18251
18252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18253       if test "$GCC" = yes; then
18254         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18255         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'
18256         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18257       else
18258         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18259         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'
18260         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~
18261         $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'
18262
18263         # Both c and cxx compiler support -rpath directly
18264         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18265       fi
18266       hardcode_libdir_separator_GCJ=:
18267       ;;
18268
18269     solaris*)
18270       no_undefined_flag_GCJ=' -z text'
18271       if test "$GCC" = yes; then
18272         wlarc='${wl}'
18273         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18275           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18276       else
18277         wlarc=''
18278         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18280         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18281       fi
18282       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18283       hardcode_shlibpath_var_GCJ=no
18284       case $host_os in
18285       solaris2.[0-5] | solaris2.[0-5].*) ;;
18286       *)
18287         # The compiler driver will combine linker options so we
18288         # cannot just pass the convience library names through
18289         # without $wl, iff we do not link with $LD.
18290         # Luckily, gcc supports the same syntax we need for Sun Studio.
18291         # Supported since Solaris 2.6 (maybe 2.5.1?)
18292         case $wlarc in
18293         '')
18294           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18295         *)
18296           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' ;;
18297         esac ;;
18298       esac
18299       link_all_deplibs_GCJ=yes
18300       ;;
18301
18302     sunos4*)
18303       if test "x$host_vendor" = xsequent; then
18304         # Use $CC to link under sequent, because it throws in some extra .o
18305         # files that make .init and .fini sections work.
18306         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18307       else
18308         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18309       fi
18310       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18311       hardcode_direct_GCJ=yes
18312       hardcode_minus_L_GCJ=yes
18313       hardcode_shlibpath_var_GCJ=no
18314       ;;
18315
18316     sysv4)
18317       case $host_vendor in
18318         sni)
18319           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18320           hardcode_direct_GCJ=yes # is this really true???
18321         ;;
18322         siemens)
18323           ## LD is ld it makes a PLAMLIB
18324           ## CC just makes a GrossModule.
18325           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18326           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18327           hardcode_direct_GCJ=no
18328         ;;
18329         motorola)
18330           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18332         ;;
18333       esac
18334       runpath_var='LD_RUN_PATH'
18335       hardcode_shlibpath_var_GCJ=no
18336       ;;
18337
18338     sysv4.3*)
18339       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340       hardcode_shlibpath_var_GCJ=no
18341       export_dynamic_flag_spec_GCJ='-Bexport'
18342       ;;
18343
18344     sysv4*MP*)
18345       if test -d /usr/nec; then
18346         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18347         hardcode_shlibpath_var_GCJ=no
18348         runpath_var=LD_RUN_PATH
18349         hardcode_runpath_var=yes
18350         ld_shlibs_GCJ=yes
18351       fi
18352       ;;
18353
18354     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18355       no_undefined_flag_GCJ='${wl}-z,text'
18356       archive_cmds_need_lc_GCJ=no
18357       hardcode_shlibpath_var_GCJ=no
18358       runpath_var='LD_RUN_PATH'
18359
18360       if test "$GCC" = yes; then
18361         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18362         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363       else
18364         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18365         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18366       fi
18367       ;;
18368
18369     sysv5* | sco3.2v5* | sco5v6*)
18370       # Note: We can NOT use -z defs as we might desire, because we do not
18371       # link with -lc, and that would cause any symbols used from libc to
18372       # always be unresolved, which means just about no library would
18373       # ever link correctly.  If we're not using GNU ld we use -z text
18374       # though, which does catch some bad symbols but isn't as heavy-handed
18375       # as -z defs.
18376       no_undefined_flag_GCJ='${wl}-z,text'
18377       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18378       archive_cmds_need_lc_GCJ=no
18379       hardcode_shlibpath_var_GCJ=no
18380       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18381       hardcode_libdir_separator_GCJ=':'
18382       link_all_deplibs_GCJ=yes
18383       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18384       runpath_var='LD_RUN_PATH'
18385
18386       if test "$GCC" = yes; then
18387         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18388         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18389       else
18390         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18392       fi
18393       ;;
18394
18395     uts4*)
18396       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18397       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18398       hardcode_shlibpath_var_GCJ=no
18399       ;;
18400
18401     *)
18402       ld_shlibs_GCJ=no
18403       ;;
18404     esac
18405   fi
18406
18407 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18408 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18409 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18410
18411 #
18412 # Do we need to explicitly link libc?
18413 #
18414 case "x$archive_cmds_need_lc_GCJ" in
18415 x|xyes)
18416   # Assume -lc should be added
18417   archive_cmds_need_lc_GCJ=yes
18418
18419   if test "$enable_shared" = yes && test "$GCC" = yes; then
18420     case $archive_cmds_GCJ in
18421     *'~'*)
18422       # FIXME: we may have to deal with multi-command sequences.
18423       ;;
18424     '$CC '*)
18425       # Test whether the compiler implicitly links with -lc since on some
18426       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18427       # to ld, don't add -lc before -lgcc.
18428       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18430       $rm conftest*
18431       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18432
18433       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434   (eval $ac_compile) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } 2>conftest.err; then
18438         soname=conftest
18439         lib=conftest
18440         libobjs=conftest.$ac_objext
18441         deplibs=
18442         wl=$lt_prog_compiler_wl_GCJ
18443         pic_flag=$lt_prog_compiler_pic_GCJ
18444         compiler_flags=-v
18445         linker_flags=-v
18446         verstring=
18447         output_objdir=.
18448         libname=conftest
18449         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18450         allow_undefined_flag_GCJ=
18451         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18452   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }
18456         then
18457           archive_cmds_need_lc_GCJ=no
18458         else
18459           archive_cmds_need_lc_GCJ=yes
18460         fi
18461         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18462       else
18463         cat conftest.err 1>&5
18464       fi
18465       $rm conftest*
18466       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18467 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18468       ;;
18469     esac
18470   fi
18471   ;;
18472 esac
18473
18474 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18476 library_names_spec=
18477 libname_spec='lib$name'
18478 soname_spec=
18479 shrext_cmds=".so"
18480 postinstall_cmds=
18481 postuninstall_cmds=
18482 finish_cmds=
18483 finish_eval=
18484 shlibpath_var=
18485 shlibpath_overrides_runpath=unknown
18486 version_type=none
18487 dynamic_linker="$host_os ld.so"
18488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18489 if test "$GCC" = yes; then
18490   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18491   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18492     # if the path contains ";" then we assume it to be the separator
18493     # otherwise default to the standard path separator (i.e. ":") - it is
18494     # assumed that no part of a normal pathname contains ";" but that should
18495     # okay in the real world where ";" in dirpaths is itself problematic.
18496     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18497   else
18498     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18499   fi
18500 else
18501   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18502 fi
18503 need_lib_prefix=unknown
18504 hardcode_into_libs=no
18505
18506 # when you set need_version to no, make sure it does not cause -set_version
18507 # flags to be left without arguments
18508 need_version=unknown
18509
18510 case $host_os in
18511 aix3*)
18512   version_type=linux
18513   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18514   shlibpath_var=LIBPATH
18515
18516   # AIX 3 has no versioning support, so we append a major version to the name.
18517   soname_spec='${libname}${release}${shared_ext}$major'
18518   ;;
18519
18520 aix4* | aix5*)
18521   version_type=linux
18522   need_lib_prefix=no
18523   need_version=no
18524   hardcode_into_libs=yes
18525   if test "$host_cpu" = ia64; then
18526     # AIX 5 supports IA64
18527     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18528     shlibpath_var=LD_LIBRARY_PATH
18529   else
18530     # With GCC up to 2.95.x, collect2 would create an import file
18531     # for dependence libraries.  The import file would start with
18532     # the line `#! .'.  This would cause the generated library to
18533     # depend on `.', always an invalid library.  This was fixed in
18534     # development snapshots of GCC prior to 3.0.
18535     case $host_os in
18536       aix4 | aix4.[01] | aix4.[01].*)
18537       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18538            echo ' yes '
18539            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18540         :
18541       else
18542         can_build_shared=no
18543       fi
18544       ;;
18545     esac
18546     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18547     # soname into executable. Probably we can add versioning support to
18548     # collect2, so additional links can be useful in future.
18549     if test "$aix_use_runtimelinking" = yes; then
18550       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18551       # instead of lib<name>.a to let people know that these are not
18552       # typical AIX shared libraries.
18553       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554     else
18555       # We preserve .a as extension for shared libraries through AIX4.2
18556       # and later when we are not doing run time linking.
18557       library_names_spec='${libname}${release}.a $libname.a'
18558       soname_spec='${libname}${release}${shared_ext}$major'
18559     fi
18560     shlibpath_var=LIBPATH
18561   fi
18562   ;;
18563
18564 amigaos*)
18565   library_names_spec='$libname.ixlibrary $libname.a'
18566   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18567   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'
18568   ;;
18569
18570 beos*)
18571   library_names_spec='${libname}${shared_ext}'
18572   dynamic_linker="$host_os ld.so"
18573   shlibpath_var=LIBRARY_PATH
18574   ;;
18575
18576 bsdi[45]*)
18577   version_type=linux
18578   need_version=no
18579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580   soname_spec='${libname}${release}${shared_ext}$major'
18581   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18582   shlibpath_var=LD_LIBRARY_PATH
18583   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18584   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18585   # the default ld.so.conf also contains /usr/contrib/lib and
18586   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18587   # libtool to hard-code these into programs
18588   ;;
18589
18590 cygwin* | mingw* | pw32*)
18591   version_type=windows
18592   shrext_cmds=".dll"
18593   need_version=no
18594   need_lib_prefix=no
18595
18596   case $GCC,$host_os in
18597   yes,cygwin* | yes,mingw* | yes,pw32*)
18598     library_names_spec='$libname.dll.a'
18599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18600     postinstall_cmds='base_file=`basename \${file}`~
18601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18602       dldir=$destdir/`dirname \$dlpath`~
18603       test -d \$dldir || mkdir -p \$dldir~
18604       $install_prog $dir/$dlname \$dldir/$dlname~
18605       chmod a+x \$dldir/$dlname'
18606     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18607       dlpath=$dir/\$dldll~
18608        $rm \$dlpath'
18609     shlibpath_overrides_runpath=yes
18610
18611     case $host_os in
18612     cygwin*)
18613       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18614       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18615       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18616       ;;
18617     mingw*)
18618       # MinGW DLLs use traditional 'lib' prefix
18619       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18620       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18621       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18622         # It is most probably a Windows format PATH printed by
18623         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18624         # path with ; separators, and with drive letters. We can handle the
18625         # drive letters (cygwin fileutils understands them), so leave them,
18626         # especially as we might pass files found there to a mingw objdump,
18627         # which wouldn't understand a cygwinified path. Ahh.
18628         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18629       else
18630         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18631       fi
18632       ;;
18633     pw32*)
18634       # pw32 DLLs use 'pw' prefix rather than 'lib'
18635       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18636       ;;
18637     esac
18638     ;;
18639
18640   *)
18641     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18642     ;;
18643   esac
18644   dynamic_linker='Win32 ld.exe'
18645   # FIXME: first we should search . and the directory the executable is in
18646   shlibpath_var=PATH
18647   ;;
18648
18649 darwin* | rhapsody*)
18650   dynamic_linker="$host_os dyld"
18651   version_type=darwin
18652   need_lib_prefix=no
18653   need_version=no
18654   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18655   soname_spec='${libname}${release}${major}$shared_ext'
18656   shlibpath_overrides_runpath=yes
18657   shlibpath_var=DYLD_LIBRARY_PATH
18658   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18659   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18660   if test "$GCC" = yes; then
18661     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"`
18662   else
18663     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18664   fi
18665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18666   ;;
18667
18668 dgux*)
18669   version_type=linux
18670   need_lib_prefix=no
18671   need_version=no
18672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18673   soname_spec='${libname}${release}${shared_ext}$major'
18674   shlibpath_var=LD_LIBRARY_PATH
18675   ;;
18676
18677 freebsd1*)
18678   dynamic_linker=no
18679   ;;
18680
18681 freebsd* | dragonfly*)
18682   # DragonFly does not have aout.  When/if they implement a new
18683   # versioning mechanism, adjust this.
18684   if test -x /usr/bin/objformat; then
18685     objformat=`/usr/bin/objformat`
18686   else
18687     case $host_os in
18688     freebsd[123]*) objformat=aout ;;
18689     *) objformat=elf ;;
18690     esac
18691   fi
18692   version_type=freebsd-$objformat
18693   case $version_type in
18694     freebsd-elf*)
18695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18696       need_version=no
18697       need_lib_prefix=no
18698       ;;
18699     freebsd-*)
18700       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18701       need_version=yes
18702       ;;
18703   esac
18704   shlibpath_var=LD_LIBRARY_PATH
18705   case $host_os in
18706   freebsd2*)
18707     shlibpath_overrides_runpath=yes
18708     ;;
18709   freebsd3.[01]* | freebsdelf3.[01]*)
18710     shlibpath_overrides_runpath=yes
18711     hardcode_into_libs=yes
18712     ;;
18713   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18714   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18715     shlibpath_overrides_runpath=no
18716     hardcode_into_libs=yes
18717     ;;
18718   freebsd*) # from 4.6 on
18719     shlibpath_overrides_runpath=yes
18720     hardcode_into_libs=yes
18721     ;;
18722   esac
18723   ;;
18724
18725 gnu*)
18726   version_type=linux
18727   need_lib_prefix=no
18728   need_version=no
18729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18730   soname_spec='${libname}${release}${shared_ext}$major'
18731   shlibpath_var=LD_LIBRARY_PATH
18732   hardcode_into_libs=yes
18733   ;;
18734
18735 hpux9* | hpux10* | hpux11*)
18736   # Give a soname corresponding to the major version so that dld.sl refuses to
18737   # link against other versions.
18738   version_type=sunos
18739   need_lib_prefix=no
18740   need_version=no
18741   case $host_cpu in
18742   ia64*)
18743     shrext_cmds='.so'
18744     hardcode_into_libs=yes
18745     dynamic_linker="$host_os dld.so"
18746     shlibpath_var=LD_LIBRARY_PATH
18747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749     soname_spec='${libname}${release}${shared_ext}$major'
18750     if test "X$HPUX_IA64_MODE" = X32; then
18751       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18752     else
18753       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18754     fi
18755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18756     ;;
18757    hppa*64*)
18758      shrext_cmds='.sl'
18759      hardcode_into_libs=yes
18760      dynamic_linker="$host_os dld.sl"
18761      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18762      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764      soname_spec='${libname}${release}${shared_ext}$major'
18765      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18766      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18767      ;;
18768    *)
18769     shrext_cmds='.sl'
18770     dynamic_linker="$host_os dld.sl"
18771     shlibpath_var=SHLIB_PATH
18772     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774     soname_spec='${libname}${release}${shared_ext}$major'
18775     ;;
18776   esac
18777   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18778   postinstall_cmds='chmod 555 $lib'
18779   ;;
18780
18781 interix3*)
18782   version_type=linux
18783   need_lib_prefix=no
18784   need_version=no
18785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18786   soname_spec='${libname}${release}${shared_ext}$major'
18787   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18788   shlibpath_var=LD_LIBRARY_PATH
18789   shlibpath_overrides_runpath=no
18790   hardcode_into_libs=yes
18791   ;;
18792
18793 irix5* | irix6* | nonstopux*)
18794   case $host_os in
18795     nonstopux*) version_type=nonstopux ;;
18796     *)
18797         if test "$lt_cv_prog_gnu_ld" = yes; then
18798                 version_type=linux
18799         else
18800                 version_type=irix
18801         fi ;;
18802   esac
18803   need_lib_prefix=no
18804   need_version=no
18805   soname_spec='${libname}${release}${shared_ext}$major'
18806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18807   case $host_os in
18808   irix5* | nonstopux*)
18809     libsuff= shlibsuff=
18810     ;;
18811   *)
18812     case $LD in # libtool.m4 will add one of these switches to LD
18813     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18814       libsuff= shlibsuff= libmagic=32-bit;;
18815     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18816       libsuff=32 shlibsuff=N32 libmagic=N32;;
18817     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18818       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18819     *) libsuff= shlibsuff= libmagic=never-match;;
18820     esac
18821     ;;
18822   esac
18823   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18824   shlibpath_overrides_runpath=no
18825   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18826   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18827   hardcode_into_libs=yes
18828   ;;
18829
18830 # No shared lib support for Linux oldld, aout, or coff.
18831 linux*oldld* | linux*aout* | linux*coff*)
18832   dynamic_linker=no
18833   ;;
18834
18835 # This must be Linux ELF.
18836 linux* | k*bsd*-gnu)
18837   version_type=linux
18838   need_lib_prefix=no
18839   need_version=no
18840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841   soname_spec='${libname}${release}${shared_ext}$major'
18842   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18843   shlibpath_var=LD_LIBRARY_PATH
18844   shlibpath_overrides_runpath=no
18845   # This implies no fast_install, which is unacceptable.
18846   # Some rework will be needed to allow for fast_install
18847   # before this can be enabled.
18848   hardcode_into_libs=yes
18849
18850   # Append ld.so.conf contents to the search path
18851   if test -f /etc/ld.so.conf; then
18852     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' ' '`
18853     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18854   fi
18855
18856   # We used to test for /lib/ld.so.1 and disable shared libraries on
18857   # powerpc, because MkLinux only supported shared libraries with the
18858   # GNU dynamic linker.  Since this was broken with cross compilers,
18859   # most powerpc-linux boxes support dynamic linking these days and
18860   # people can always --disable-shared, the test was removed, and we
18861   # assume the GNU/Linux dynamic linker is in use.
18862   dynamic_linker='GNU/Linux ld.so'
18863   ;;
18864
18865 netbsdelf*-gnu)
18866   version_type=linux
18867   need_lib_prefix=no
18868   need_version=no
18869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18870   soname_spec='${libname}${release}${shared_ext}$major'
18871   shlibpath_var=LD_LIBRARY_PATH
18872   shlibpath_overrides_runpath=no
18873   hardcode_into_libs=yes
18874   dynamic_linker='NetBSD ld.elf_so'
18875   ;;
18876
18877 netbsd*)
18878   version_type=sunos
18879   need_lib_prefix=no
18880   need_version=no
18881   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18883     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18884     dynamic_linker='NetBSD (a.out) ld.so'
18885   else
18886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18887     soname_spec='${libname}${release}${shared_ext}$major'
18888     dynamic_linker='NetBSD ld.elf_so'
18889   fi
18890   shlibpath_var=LD_LIBRARY_PATH
18891   shlibpath_overrides_runpath=yes
18892   hardcode_into_libs=yes
18893   ;;
18894
18895 newsos6)
18896   version_type=linux
18897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18898   shlibpath_var=LD_LIBRARY_PATH
18899   shlibpath_overrides_runpath=yes
18900   ;;
18901
18902 nto-qnx*)
18903   version_type=linux
18904   need_lib_prefix=no
18905   need_version=no
18906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18907   soname_spec='${libname}${release}${shared_ext}$major'
18908   shlibpath_var=LD_LIBRARY_PATH
18909   shlibpath_overrides_runpath=yes
18910   ;;
18911
18912 openbsd*)
18913   version_type=sunos
18914   sys_lib_dlsearch_path_spec="/usr/lib"
18915   need_lib_prefix=no
18916   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18917   case $host_os in
18918     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18919     *)                         need_version=no  ;;
18920   esac
18921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18923   shlibpath_var=LD_LIBRARY_PATH
18924   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18925     case $host_os in
18926       openbsd2.[89] | openbsd2.[89].*)
18927         shlibpath_overrides_runpath=no
18928         ;;
18929       *)
18930         shlibpath_overrides_runpath=yes
18931         ;;
18932       esac
18933   else
18934     shlibpath_overrides_runpath=yes
18935   fi
18936   ;;
18937
18938 os2*)
18939   libname_spec='$name'
18940   shrext_cmds=".dll"
18941   need_lib_prefix=no
18942   library_names_spec='$libname${shared_ext} $libname.a'
18943   dynamic_linker='OS/2 ld.exe'
18944   shlibpath_var=LIBPATH
18945   ;;
18946
18947 osf3* | osf4* | osf5*)
18948   version_type=osf
18949   need_lib_prefix=no
18950   need_version=no
18951   soname_spec='${libname}${release}${shared_ext}$major'
18952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18953   shlibpath_var=LD_LIBRARY_PATH
18954   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18955   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18956   ;;
18957
18958 solaris*)
18959   version_type=linux
18960   need_lib_prefix=no
18961   need_version=no
18962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18963   soname_spec='${libname}${release}${shared_ext}$major'
18964   shlibpath_var=LD_LIBRARY_PATH
18965   shlibpath_overrides_runpath=yes
18966   hardcode_into_libs=yes
18967   # ldd complains unless libraries are executable
18968   postinstall_cmds='chmod +x $lib'
18969   ;;
18970
18971 sunos4*)
18972   version_type=sunos
18973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18974   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18975   shlibpath_var=LD_LIBRARY_PATH
18976   shlibpath_overrides_runpath=yes
18977   if test "$with_gnu_ld" = yes; then
18978     need_lib_prefix=no
18979   fi
18980   need_version=yes
18981   ;;
18982
18983 sysv4 | sysv4.3*)
18984   version_type=linux
18985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18986   soname_spec='${libname}${release}${shared_ext}$major'
18987   shlibpath_var=LD_LIBRARY_PATH
18988   case $host_vendor in
18989     sni)
18990       shlibpath_overrides_runpath=no
18991       need_lib_prefix=no
18992       export_dynamic_flag_spec='${wl}-Blargedynsym'
18993       runpath_var=LD_RUN_PATH
18994       ;;
18995     siemens)
18996       need_lib_prefix=no
18997       ;;
18998     motorola)
18999       need_lib_prefix=no
19000       need_version=no
19001       shlibpath_overrides_runpath=no
19002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19003       ;;
19004   esac
19005   ;;
19006
19007 sysv4*MP*)
19008   if test -d /usr/nec ;then
19009     version_type=linux
19010     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19011     soname_spec='$libname${shared_ext}.$major'
19012     shlibpath_var=LD_LIBRARY_PATH
19013   fi
19014   ;;
19015
19016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19017   version_type=freebsd-elf
19018   need_lib_prefix=no
19019   need_version=no
19020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19021   soname_spec='${libname}${release}${shared_ext}$major'
19022   shlibpath_var=LD_LIBRARY_PATH
19023   hardcode_into_libs=yes
19024   if test "$with_gnu_ld" = yes; then
19025     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19026     shlibpath_overrides_runpath=no
19027   else
19028     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19029     shlibpath_overrides_runpath=yes
19030     case $host_os in
19031       sco3.2v5*)
19032         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19033         ;;
19034     esac
19035   fi
19036   sys_lib_dlsearch_path_spec='/usr/lib'
19037   ;;
19038
19039 uts4*)
19040   version_type=linux
19041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042   soname_spec='${libname}${release}${shared_ext}$major'
19043   shlibpath_var=LD_LIBRARY_PATH
19044   ;;
19045
19046 *)
19047   dynamic_linker=no
19048   ;;
19049 esac
19050 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19051 echo "${ECHO_T}$dynamic_linker" >&6; }
19052 test "$dynamic_linker" = no && can_build_shared=no
19053
19054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19055 if test "$GCC" = yes; then
19056   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19057 fi
19058
19059 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19060 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19061 hardcode_action_GCJ=
19062 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19063    test -n "$runpath_var_GCJ" || \
19064    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19065
19066   # We can hardcode non-existant directories.
19067   if test "$hardcode_direct_GCJ" != no &&
19068      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19069      # have to relink, otherwise we might link with an installed library
19070      # when we should be linking with a yet-to-be-installed one
19071      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19072      test "$hardcode_minus_L_GCJ" != no; then
19073     # Linking always hardcodes the temporary library directory.
19074     hardcode_action_GCJ=relink
19075   else
19076     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19077     hardcode_action_GCJ=immediate
19078   fi
19079 else
19080   # We cannot hardcode anything, or else we can only hardcode existing
19081   # directories.
19082   hardcode_action_GCJ=unsupported
19083 fi
19084 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19085 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19086
19087 if test "$hardcode_action_GCJ" = relink; then
19088   # Fast installation is not supported
19089   enable_fast_install=no
19090 elif test "$shlibpath_overrides_runpath" = yes ||
19091      test "$enable_shared" = no; then
19092   # Fast installation is not necessary
19093   enable_fast_install=needless
19094 fi
19095
19096
19097 # The else clause should only fire when bootstrapping the
19098 # libtool distribution, otherwise you forgot to ship ltmain.sh
19099 # with your package, and you will get complaints that there are
19100 # no rules to generate ltmain.sh.
19101 if test -f "$ltmain"; then
19102   # See if we are running on zsh, and set the options which allow our commands through
19103   # without removal of \ escapes.
19104   if test -n "${ZSH_VERSION+set}" ; then
19105     setopt NO_GLOB_SUBST
19106   fi
19107   # Now quote all the things that may contain metacharacters while being
19108   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19109   # variables and quote the copies for generation of the libtool script.
19110   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19111     SED SHELL STRIP \
19112     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19113     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19114     deplibs_check_method reload_flag reload_cmds need_locks \
19115     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19116     lt_cv_sys_global_symbol_to_c_name_address \
19117     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19118     old_postinstall_cmds old_postuninstall_cmds \
19119     compiler_GCJ \
19120     CC_GCJ \
19121     LD_GCJ \
19122     lt_prog_compiler_wl_GCJ \
19123     lt_prog_compiler_pic_GCJ \
19124     lt_prog_compiler_static_GCJ \
19125     lt_prog_compiler_no_builtin_flag_GCJ \
19126     export_dynamic_flag_spec_GCJ \
19127     thread_safe_flag_spec_GCJ \
19128     whole_archive_flag_spec_GCJ \
19129     enable_shared_with_static_runtimes_GCJ \
19130     old_archive_cmds_GCJ \
19131     old_archive_from_new_cmds_GCJ \
19132     predep_objects_GCJ \
19133     postdep_objects_GCJ \
19134     predeps_GCJ \
19135     postdeps_GCJ \
19136     compiler_lib_search_path_GCJ \
19137     archive_cmds_GCJ \
19138     archive_expsym_cmds_GCJ \
19139     postinstall_cmds_GCJ \
19140     postuninstall_cmds_GCJ \
19141     old_archive_from_expsyms_cmds_GCJ \
19142     allow_undefined_flag_GCJ \
19143     no_undefined_flag_GCJ \
19144     export_symbols_cmds_GCJ \
19145     hardcode_libdir_flag_spec_GCJ \
19146     hardcode_libdir_flag_spec_ld_GCJ \
19147     hardcode_libdir_separator_GCJ \
19148     hardcode_automatic_GCJ \
19149     module_cmds_GCJ \
19150     module_expsym_cmds_GCJ \
19151     lt_cv_prog_compiler_c_o_GCJ \
19152     exclude_expsyms_GCJ \
19153     include_expsyms_GCJ; do
19154
19155     case $var in
19156     old_archive_cmds_GCJ | \
19157     old_archive_from_new_cmds_GCJ | \
19158     archive_cmds_GCJ | \
19159     archive_expsym_cmds_GCJ | \
19160     module_cmds_GCJ | \
19161     module_expsym_cmds_GCJ | \
19162     old_archive_from_expsyms_cmds_GCJ | \
19163     export_symbols_cmds_GCJ | \
19164     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19165     postinstall_cmds | postuninstall_cmds | \
19166     old_postinstall_cmds | old_postuninstall_cmds | \
19167     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19168       # Double-quote double-evaled strings.
19169       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19170       ;;
19171     *)
19172       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19173       ;;
19174     esac
19175   done
19176
19177   case $lt_echo in
19178   *'\$0 --fallback-echo"')
19179     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19180     ;;
19181   esac
19182
19183 cfgfile="$ofile"
19184
19185   cat <<__EOF__ >> "$cfgfile"
19186 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19187
19188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19189
19190 # Shell to use when invoking shell scripts.
19191 SHELL=$lt_SHELL
19192
19193 # Whether or not to build shared libraries.
19194 build_libtool_libs=$enable_shared
19195
19196 # Whether or not to build static libraries.
19197 build_old_libs=$enable_static
19198
19199 # Whether or not to add -lc for building shared libraries.
19200 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19201
19202 # Whether or not to disallow shared libs when runtime libs are static
19203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19204
19205 # Whether or not to optimize for fast installation.
19206 fast_install=$enable_fast_install
19207
19208 # The host system.
19209 host_alias=$host_alias
19210 host=$host
19211 host_os=$host_os
19212
19213 # The build system.
19214 build_alias=$build_alias
19215 build=$build
19216 build_os=$build_os
19217
19218 # An echo program that does not interpret backslashes.
19219 echo=$lt_echo
19220
19221 # The archiver.
19222 AR=$lt_AR
19223 AR_FLAGS=$lt_AR_FLAGS
19224
19225 # A C compiler.
19226 LTCC=$lt_LTCC
19227
19228 # LTCC compiler flags.
19229 LTCFLAGS=$lt_LTCFLAGS
19230
19231 # A language-specific compiler.
19232 CC=$lt_compiler_GCJ
19233
19234 # Is the compiler the GNU C compiler?
19235 with_gcc=$GCC_GCJ
19236
19237 # An ERE matcher.
19238 EGREP=$lt_EGREP
19239
19240 # The linker used to build libraries.
19241 LD=$lt_LD_GCJ
19242
19243 # Whether we need hard or soft links.
19244 LN_S=$lt_LN_S
19245
19246 # A BSD-compatible nm program.
19247 NM=$lt_NM
19248
19249 # A symbol stripping program
19250 STRIP=$lt_STRIP
19251
19252 # Used to examine libraries when file_magic_cmd begins "file"
19253 MAGIC_CMD=$MAGIC_CMD
19254
19255 # Used on cygwin: DLL creation program.
19256 DLLTOOL="$DLLTOOL"
19257
19258 # Used on cygwin: object dumper.
19259 OBJDUMP="$OBJDUMP"
19260
19261 # Used on cygwin: assembler.
19262 AS="$AS"
19263
19264 # The name of the directory that contains temporary libtool files.
19265 objdir=$objdir
19266
19267 # How to create reloadable object files.
19268 reload_flag=$lt_reload_flag
19269 reload_cmds=$lt_reload_cmds
19270
19271 # How to pass a linker flag through the compiler.
19272 wl=$lt_lt_prog_compiler_wl_GCJ
19273
19274 # Object file suffix (normally "o").
19275 objext="$ac_objext"
19276
19277 # Old archive suffix (normally "a").
19278 libext="$libext"
19279
19280 # Shared library suffix (normally ".so").
19281 shrext_cmds='$shrext_cmds'
19282
19283 # Executable file suffix (normally "").
19284 exeext="$exeext"
19285
19286 # Additional compiler flags for building library objects.
19287 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19288 pic_mode=$pic_mode
19289
19290 # What is the maximum length of a command?
19291 max_cmd_len=$lt_cv_sys_max_cmd_len
19292
19293 # Does compiler simultaneously support -c and -o options?
19294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19295
19296 # Must we lock files when doing compilation?
19297 need_locks=$lt_need_locks
19298
19299 # Do we need the lib prefix for modules?
19300 need_lib_prefix=$need_lib_prefix
19301
19302 # Do we need a version for libraries?
19303 need_version=$need_version
19304
19305 # Whether dlopen is supported.
19306 dlopen_support=$enable_dlopen
19307
19308 # Whether dlopen of programs is supported.
19309 dlopen_self=$enable_dlopen_self
19310
19311 # Whether dlopen of statically linked programs is supported.
19312 dlopen_self_static=$enable_dlopen_self_static
19313
19314 # Compiler flag to prevent dynamic linking.
19315 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19316
19317 # Compiler flag to turn off builtin functions.
19318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19319
19320 # Compiler flag to allow reflexive dlopens.
19321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19322
19323 # Compiler flag to generate shared objects directly from archives.
19324 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19325
19326 # Compiler flag to generate thread-safe objects.
19327 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19328
19329 # Library versioning type.
19330 version_type=$version_type
19331
19332 # Format of library name prefix.
19333 libname_spec=$lt_libname_spec
19334
19335 # List of archive names.  First name is the real one, the rest are links.
19336 # The last name is the one that the linker finds with -lNAME.
19337 library_names_spec=$lt_library_names_spec
19338
19339 # The coded name of the library, if different from the real name.
19340 soname_spec=$lt_soname_spec
19341
19342 # Commands used to build and install an old-style archive.
19343 RANLIB=$lt_RANLIB
19344 old_archive_cmds=$lt_old_archive_cmds_GCJ
19345 old_postinstall_cmds=$lt_old_postinstall_cmds
19346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19347
19348 # Create an old-style archive from a shared archive.
19349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19350
19351 # Create a temporary old-style archive to link instead of a shared archive.
19352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19353
19354 # Commands used to build and install a shared archive.
19355 archive_cmds=$lt_archive_cmds_GCJ
19356 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19357 postinstall_cmds=$lt_postinstall_cmds
19358 postuninstall_cmds=$lt_postuninstall_cmds
19359
19360 # Commands used to build a loadable module (assumed same as above if empty)
19361 module_cmds=$lt_module_cmds_GCJ
19362 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19363
19364 # Commands to strip libraries.
19365 old_striplib=$lt_old_striplib
19366 striplib=$lt_striplib
19367
19368 # Dependencies to place before the objects being linked to create a
19369 # shared library.
19370 predep_objects=$lt_predep_objects_GCJ
19371
19372 # Dependencies to place after the objects being linked to create a
19373 # shared library.
19374 postdep_objects=$lt_postdep_objects_GCJ
19375
19376 # Dependencies to place before the objects being linked to create a
19377 # shared library.
19378 predeps=$lt_predeps_GCJ
19379
19380 # Dependencies to place after the objects being linked to create a
19381 # shared library.
19382 postdeps=$lt_postdeps_GCJ
19383
19384 # The library search path used internally by the compiler when linking
19385 # a shared library.
19386 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19387
19388 # Method to check whether dependent libraries are shared objects.
19389 deplibs_check_method=$lt_deplibs_check_method
19390
19391 # Command to use when deplibs_check_method == file_magic.
19392 file_magic_cmd=$lt_file_magic_cmd
19393
19394 # Flag that allows shared libraries with undefined symbols to be built.
19395 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19396
19397 # Flag that forces no undefined symbols.
19398 no_undefined_flag=$lt_no_undefined_flag_GCJ
19399
19400 # Commands used to finish a libtool library installation in a directory.
19401 finish_cmds=$lt_finish_cmds
19402
19403 # Same as above, but a single script fragment to be evaled but not shown.
19404 finish_eval=$lt_finish_eval
19405
19406 # Take the output of nm and produce a listing of raw symbols and C names.
19407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19408
19409 # Transform the output of nm in a proper C declaration
19410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19411
19412 # Transform the output of nm in a C name address pair
19413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19414
19415 # This is the shared library runtime path variable.
19416 runpath_var=$runpath_var
19417
19418 # This is the shared library path variable.
19419 shlibpath_var=$shlibpath_var
19420
19421 # Is shlibpath searched before the hard-coded library search path?
19422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19423
19424 # How to hardcode a shared library path into an executable.
19425 hardcode_action=$hardcode_action_GCJ
19426
19427 # Whether we should hardcode library paths into libraries.
19428 hardcode_into_libs=$hardcode_into_libs
19429
19430 # Flag to hardcode \$libdir into a binary during linking.
19431 # This must work even if \$libdir does not exist.
19432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19433
19434 # If ld is used when linking, flag to hardcode \$libdir into
19435 # a binary during linking. This must work even if \$libdir does
19436 # not exist.
19437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19438
19439 # Whether we need a single -rpath flag with a separated argument.
19440 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19441
19442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19443 # resulting binary.
19444 hardcode_direct=$hardcode_direct_GCJ
19445
19446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19447 # resulting binary.
19448 hardcode_minus_L=$hardcode_minus_L_GCJ
19449
19450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19451 # the resulting binary.
19452 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19453
19454 # Set to yes if building a shared library automatically hardcodes DIR into the library
19455 # and all subsequent libraries and executables linked against it.
19456 hardcode_automatic=$hardcode_automatic_GCJ
19457
19458 # Variables whose values should be saved in libtool wrapper scripts and
19459 # restored at relink time.
19460 variables_saved_for_relink="$variables_saved_for_relink"
19461
19462 # Whether libtool must link a program against all its dependency libraries.
19463 link_all_deplibs=$link_all_deplibs_GCJ
19464
19465 # Compile-time system search path for libraries
19466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19467
19468 # Run-time system search path for libraries
19469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19470
19471 # Fix the shell variable \$srcfile for the compiler.
19472 fix_srcfile_path="$fix_srcfile_path_GCJ"
19473
19474 # Set to yes if exported symbols are required.
19475 always_export_symbols=$always_export_symbols_GCJ
19476
19477 # The commands to list exported symbols.
19478 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19479
19480 # The commands to extract the exported symbol list from a shared archive.
19481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19482
19483 # Symbols that should not be listed in the preloaded symbols.
19484 exclude_expsyms=$lt_exclude_expsyms_GCJ
19485
19486 # Symbols that must always be exported.
19487 include_expsyms=$lt_include_expsyms_GCJ
19488
19489 # ### END LIBTOOL TAG CONFIG: $tagname
19490
19491 __EOF__
19492
19493
19494 else
19495   # If there is no Makefile yet, we rely on a make rule to execute
19496   # `config.status --recheck' to rerun these tests and create the
19497   # libtool script then.
19498   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19499   if test -f "$ltmain_in"; then
19500     test -f Makefile && make "$ltmain"
19501   fi
19502 fi
19503
19504
19505 ac_ext=c
19506 ac_cpp='$CPP $CPPFLAGS'
19507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19510
19511 CC="$lt_save_CC"
19512
19513         else
19514           tagname=""
19515         fi
19516         ;;
19517
19518       RC)
19519
19520
19521 # Source file extension for RC test sources.
19522 ac_ext=rc
19523
19524 # Object file extension for compiled RC test sources.
19525 objext=o
19526 objext_RC=$objext
19527
19528 # Code to be used in simple compile tests
19529 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19530
19531 # Code to be used in simple link tests
19532 lt_simple_link_test_code="$lt_simple_compile_test_code"
19533
19534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19535
19536 # If no C compiler was specified, use CC.
19537 LTCC=${LTCC-"$CC"}
19538
19539 # If no C compiler flags were specified, use CFLAGS.
19540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19541
19542 # Allow CC to be a program name with arguments.
19543 compiler=$CC
19544
19545
19546 # save warnings/boilerplate of simple test code
19547 ac_outfile=conftest.$ac_objext
19548 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19549 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550 _lt_compiler_boilerplate=`cat conftest.err`
19551 $rm conftest*
19552
19553 ac_outfile=conftest.$ac_objext
19554 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19555 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556 _lt_linker_boilerplate=`cat conftest.err`
19557 $rm conftest*
19558
19559
19560 # Allow CC to be a program name with arguments.
19561 lt_save_CC="$CC"
19562 CC=${RC-"windres"}
19563 compiler=$CC
19564 compiler_RC=$CC
19565 for cc_temp in $compiler""; do
19566   case $cc_temp in
19567     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19568     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19569     \-*) ;;
19570     *) break;;
19571   esac
19572 done
19573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19574
19575 lt_cv_prog_compiler_c_o_RC=yes
19576
19577 # The else clause should only fire when bootstrapping the
19578 # libtool distribution, otherwise you forgot to ship ltmain.sh
19579 # with your package, and you will get complaints that there are
19580 # no rules to generate ltmain.sh.
19581 if test -f "$ltmain"; then
19582   # See if we are running on zsh, and set the options which allow our commands through
19583   # without removal of \ escapes.
19584   if test -n "${ZSH_VERSION+set}" ; then
19585     setopt NO_GLOB_SUBST
19586   fi
19587   # Now quote all the things that may contain metacharacters while being
19588   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19589   # variables and quote the copies for generation of the libtool script.
19590   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19591     SED SHELL STRIP \
19592     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19593     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19594     deplibs_check_method reload_flag reload_cmds need_locks \
19595     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19596     lt_cv_sys_global_symbol_to_c_name_address \
19597     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19598     old_postinstall_cmds old_postuninstall_cmds \
19599     compiler_RC \
19600     CC_RC \
19601     LD_RC \
19602     lt_prog_compiler_wl_RC \
19603     lt_prog_compiler_pic_RC \
19604     lt_prog_compiler_static_RC \
19605     lt_prog_compiler_no_builtin_flag_RC \
19606     export_dynamic_flag_spec_RC \
19607     thread_safe_flag_spec_RC \
19608     whole_archive_flag_spec_RC \
19609     enable_shared_with_static_runtimes_RC \
19610     old_archive_cmds_RC \
19611     old_archive_from_new_cmds_RC \
19612     predep_objects_RC \
19613     postdep_objects_RC \
19614     predeps_RC \
19615     postdeps_RC \
19616     compiler_lib_search_path_RC \
19617     archive_cmds_RC \
19618     archive_expsym_cmds_RC \
19619     postinstall_cmds_RC \
19620     postuninstall_cmds_RC \
19621     old_archive_from_expsyms_cmds_RC \
19622     allow_undefined_flag_RC \
19623     no_undefined_flag_RC \
19624     export_symbols_cmds_RC \
19625     hardcode_libdir_flag_spec_RC \
19626     hardcode_libdir_flag_spec_ld_RC \
19627     hardcode_libdir_separator_RC \
19628     hardcode_automatic_RC \
19629     module_cmds_RC \
19630     module_expsym_cmds_RC \
19631     lt_cv_prog_compiler_c_o_RC \
19632     exclude_expsyms_RC \
19633     include_expsyms_RC; do
19634
19635     case $var in
19636     old_archive_cmds_RC | \
19637     old_archive_from_new_cmds_RC | \
19638     archive_cmds_RC | \
19639     archive_expsym_cmds_RC | \
19640     module_cmds_RC | \
19641     module_expsym_cmds_RC | \
19642     old_archive_from_expsyms_cmds_RC | \
19643     export_symbols_cmds_RC | \
19644     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19645     postinstall_cmds | postuninstall_cmds | \
19646     old_postinstall_cmds | old_postuninstall_cmds | \
19647     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19648       # Double-quote double-evaled strings.
19649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19650       ;;
19651     *)
19652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19653       ;;
19654     esac
19655   done
19656
19657   case $lt_echo in
19658   *'\$0 --fallback-echo"')
19659     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19660     ;;
19661   esac
19662
19663 cfgfile="$ofile"
19664
19665   cat <<__EOF__ >> "$cfgfile"
19666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19667
19668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19669
19670 # Shell to use when invoking shell scripts.
19671 SHELL=$lt_SHELL
19672
19673 # Whether or not to build shared libraries.
19674 build_libtool_libs=$enable_shared
19675
19676 # Whether or not to build static libraries.
19677 build_old_libs=$enable_static
19678
19679 # Whether or not to add -lc for building shared libraries.
19680 build_libtool_need_lc=$archive_cmds_need_lc_RC
19681
19682 # Whether or not to disallow shared libs when runtime libs are static
19683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19684
19685 # Whether or not to optimize for fast installation.
19686 fast_install=$enable_fast_install
19687
19688 # The host system.
19689 host_alias=$host_alias
19690 host=$host
19691 host_os=$host_os
19692
19693 # The build system.
19694 build_alias=$build_alias
19695 build=$build
19696 build_os=$build_os
19697
19698 # An echo program that does not interpret backslashes.
19699 echo=$lt_echo
19700
19701 # The archiver.
19702 AR=$lt_AR
19703 AR_FLAGS=$lt_AR_FLAGS
19704
19705 # A C compiler.
19706 LTCC=$lt_LTCC
19707
19708 # LTCC compiler flags.
19709 LTCFLAGS=$lt_LTCFLAGS
19710
19711 # A language-specific compiler.
19712 CC=$lt_compiler_RC
19713
19714 # Is the compiler the GNU C compiler?
19715 with_gcc=$GCC_RC
19716
19717 # An ERE matcher.
19718 EGREP=$lt_EGREP
19719
19720 # The linker used to build libraries.
19721 LD=$lt_LD_RC
19722
19723 # Whether we need hard or soft links.
19724 LN_S=$lt_LN_S
19725
19726 # A BSD-compatible nm program.
19727 NM=$lt_NM
19728
19729 # A symbol stripping program
19730 STRIP=$lt_STRIP
19731
19732 # Used to examine libraries when file_magic_cmd begins "file"
19733 MAGIC_CMD=$MAGIC_CMD
19734
19735 # Used on cygwin: DLL creation program.
19736 DLLTOOL="$DLLTOOL"
19737
19738 # Used on cygwin: object dumper.
19739 OBJDUMP="$OBJDUMP"
19740
19741 # Used on cygwin: assembler.
19742 AS="$AS"
19743
19744 # The name of the directory that contains temporary libtool files.
19745 objdir=$objdir
19746
19747 # How to create reloadable object files.
19748 reload_flag=$lt_reload_flag
19749 reload_cmds=$lt_reload_cmds
19750
19751 # How to pass a linker flag through the compiler.
19752 wl=$lt_lt_prog_compiler_wl_RC
19753
19754 # Object file suffix (normally "o").
19755 objext="$ac_objext"
19756
19757 # Old archive suffix (normally "a").
19758 libext="$libext"
19759
19760 # Shared library suffix (normally ".so").
19761 shrext_cmds='$shrext_cmds'
19762
19763 # Executable file suffix (normally "").
19764 exeext="$exeext"
19765
19766 # Additional compiler flags for building library objects.
19767 pic_flag=$lt_lt_prog_compiler_pic_RC
19768 pic_mode=$pic_mode
19769
19770 # What is the maximum length of a command?
19771 max_cmd_len=$lt_cv_sys_max_cmd_len
19772
19773 # Does compiler simultaneously support -c and -o options?
19774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19775
19776 # Must we lock files when doing compilation?
19777 need_locks=$lt_need_locks
19778
19779 # Do we need the lib prefix for modules?
19780 need_lib_prefix=$need_lib_prefix
19781
19782 # Do we need a version for libraries?
19783 need_version=$need_version
19784
19785 # Whether dlopen is supported.
19786 dlopen_support=$enable_dlopen
19787
19788 # Whether dlopen of programs is supported.
19789 dlopen_self=$enable_dlopen_self
19790
19791 # Whether dlopen of statically linked programs is supported.
19792 dlopen_self_static=$enable_dlopen_self_static
19793
19794 # Compiler flag to prevent dynamic linking.
19795 link_static_flag=$lt_lt_prog_compiler_static_RC
19796
19797 # Compiler flag to turn off builtin functions.
19798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19799
19800 # Compiler flag to allow reflexive dlopens.
19801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19802
19803 # Compiler flag to generate shared objects directly from archives.
19804 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19805
19806 # Compiler flag to generate thread-safe objects.
19807 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19808
19809 # Library versioning type.
19810 version_type=$version_type
19811
19812 # Format of library name prefix.
19813 libname_spec=$lt_libname_spec
19814
19815 # List of archive names.  First name is the real one, the rest are links.
19816 # The last name is the one that the linker finds with -lNAME.
19817 library_names_spec=$lt_library_names_spec
19818
19819 # The coded name of the library, if different from the real name.
19820 soname_spec=$lt_soname_spec
19821
19822 # Commands used to build and install an old-style archive.
19823 RANLIB=$lt_RANLIB
19824 old_archive_cmds=$lt_old_archive_cmds_RC
19825 old_postinstall_cmds=$lt_old_postinstall_cmds
19826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19827
19828 # Create an old-style archive from a shared archive.
19829 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19830
19831 # Create a temporary old-style archive to link instead of a shared archive.
19832 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19833
19834 # Commands used to build and install a shared archive.
19835 archive_cmds=$lt_archive_cmds_RC
19836 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19837 postinstall_cmds=$lt_postinstall_cmds
19838 postuninstall_cmds=$lt_postuninstall_cmds
19839
19840 # Commands used to build a loadable module (assumed same as above if empty)
19841 module_cmds=$lt_module_cmds_RC
19842 module_expsym_cmds=$lt_module_expsym_cmds_RC
19843
19844 # Commands to strip libraries.
19845 old_striplib=$lt_old_striplib
19846 striplib=$lt_striplib
19847
19848 # Dependencies to place before the objects being linked to create a
19849 # shared library.
19850 predep_objects=$lt_predep_objects_RC
19851
19852 # Dependencies to place after the objects being linked to create a
19853 # shared library.
19854 postdep_objects=$lt_postdep_objects_RC
19855
19856 # Dependencies to place before the objects being linked to create a
19857 # shared library.
19858 predeps=$lt_predeps_RC
19859
19860 # Dependencies to place after the objects being linked to create a
19861 # shared library.
19862 postdeps=$lt_postdeps_RC
19863
19864 # The library search path used internally by the compiler when linking
19865 # a shared library.
19866 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19867
19868 # Method to check whether dependent libraries are shared objects.
19869 deplibs_check_method=$lt_deplibs_check_method
19870
19871 # Command to use when deplibs_check_method == file_magic.
19872 file_magic_cmd=$lt_file_magic_cmd
19873
19874 # Flag that allows shared libraries with undefined symbols to be built.
19875 allow_undefined_flag=$lt_allow_undefined_flag_RC
19876
19877 # Flag that forces no undefined symbols.
19878 no_undefined_flag=$lt_no_undefined_flag_RC
19879
19880 # Commands used to finish a libtool library installation in a directory.
19881 finish_cmds=$lt_finish_cmds
19882
19883 # Same as above, but a single script fragment to be evaled but not shown.
19884 finish_eval=$lt_finish_eval
19885
19886 # Take the output of nm and produce a listing of raw symbols and C names.
19887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19888
19889 # Transform the output of nm in a proper C declaration
19890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19891
19892 # Transform the output of nm in a C name address pair
19893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19894
19895 # This is the shared library runtime path variable.
19896 runpath_var=$runpath_var
19897
19898 # This is the shared library path variable.
19899 shlibpath_var=$shlibpath_var
19900
19901 # Is shlibpath searched before the hard-coded library search path?
19902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19903
19904 # How to hardcode a shared library path into an executable.
19905 hardcode_action=$hardcode_action_RC
19906
19907 # Whether we should hardcode library paths into libraries.
19908 hardcode_into_libs=$hardcode_into_libs
19909
19910 # Flag to hardcode \$libdir into a binary during linking.
19911 # This must work even if \$libdir does not exist.
19912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19913
19914 # If ld is used when linking, flag to hardcode \$libdir into
19915 # a binary during linking. This must work even if \$libdir does
19916 # not exist.
19917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19918
19919 # Whether we need a single -rpath flag with a separated argument.
19920 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19921
19922 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19923 # resulting binary.
19924 hardcode_direct=$hardcode_direct_RC
19925
19926 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19927 # resulting binary.
19928 hardcode_minus_L=$hardcode_minus_L_RC
19929
19930 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19931 # the resulting binary.
19932 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19933
19934 # Set to yes if building a shared library automatically hardcodes DIR into the library
19935 # and all subsequent libraries and executables linked against it.
19936 hardcode_automatic=$hardcode_automatic_RC
19937
19938 # Variables whose values should be saved in libtool wrapper scripts and
19939 # restored at relink time.
19940 variables_saved_for_relink="$variables_saved_for_relink"
19941
19942 # Whether libtool must link a program against all its dependency libraries.
19943 link_all_deplibs=$link_all_deplibs_RC
19944
19945 # Compile-time system search path for libraries
19946 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19947
19948 # Run-time system search path for libraries
19949 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19950
19951 # Fix the shell variable \$srcfile for the compiler.
19952 fix_srcfile_path="$fix_srcfile_path_RC"
19953
19954 # Set to yes if exported symbols are required.
19955 always_export_symbols=$always_export_symbols_RC
19956
19957 # The commands to list exported symbols.
19958 export_symbols_cmds=$lt_export_symbols_cmds_RC
19959
19960 # The commands to extract the exported symbol list from a shared archive.
19961 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19962
19963 # Symbols that should not be listed in the preloaded symbols.
19964 exclude_expsyms=$lt_exclude_expsyms_RC
19965
19966 # Symbols that must always be exported.
19967 include_expsyms=$lt_include_expsyms_RC
19968
19969 # ### END LIBTOOL TAG CONFIG: $tagname
19970
19971 __EOF__
19972
19973
19974 else
19975   # If there is no Makefile yet, we rely on a make rule to execute
19976   # `config.status --recheck' to rerun these tests and create the
19977   # libtool script then.
19978   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19979   if test -f "$ltmain_in"; then
19980     test -f Makefile && make "$ltmain"
19981   fi
19982 fi
19983
19984
19985 ac_ext=c
19986 ac_cpp='$CPP $CPPFLAGS'
19987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19990
19991 CC="$lt_save_CC"
19992
19993         ;;
19994
19995       *)
19996         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19997 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19998    { (exit 1); exit 1; }; }
19999         ;;
20000       esac
20001
20002       # Append the new tag name to the list of available tags.
20003       if test -n "$tagname" ; then
20004       available_tags="$available_tags $tagname"
20005     fi
20006     fi
20007   done
20008   IFS="$lt_save_ifs"
20009
20010   # Now substitute the updated list of available tags.
20011   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20012     mv "${ofile}T" "$ofile"
20013     chmod +x "$ofile"
20014   else
20015     rm -f "${ofile}T"
20016     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20017 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20018    { (exit 1); exit 1; }; }
20019   fi
20020 fi
20021
20022
20023
20024 # This can be used to rebuild libtool when needed
20025 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20026
20027 # Always use our own libtool.
20028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20029
20030 # Prevent multiple expansion
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052 ac_ext=c
20053 ac_cpp='$CPP $CPPFLAGS'
20054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20057
20058
20059 # Checks for libraries.
20060
20061 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
20062 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
20063 if test "${ac_cv_lib_apr_1_main+set}" = set; then
20064   echo $ECHO_N "(cached) $ECHO_C" >&6
20065 else
20066   ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lapr-1  $LIBS"
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h.  */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h.  */
20074
20075
20076 int
20077 main ()
20078 {
20079 return main ();
20080   ;
20081   return 0;
20082 }
20083 _ACEOF
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (ac_try="$ac_link"
20086 case "(($ac_try" in
20087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088   *) ac_try_echo=$ac_try;;
20089 esac
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091   (eval "$ac_link") 2>conftest.er1
20092   ac_status=$?
20093   grep -v '^ *+' conftest.er1 >conftest.err
20094   rm -f conftest.er1
20095   cat conftest.err >&5
20096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097   (exit $ac_status); } && {
20098          test -z "$ac_c_werror_flag" ||
20099          test ! -s conftest.err
20100        } && test -s conftest$ac_exeext &&
20101        $as_test_x conftest$ac_exeext; then
20102   ac_cv_lib_apr_1_main=yes
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107         ac_cv_lib_apr_1_main=no
20108 fi
20109
20110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20111       conftest$ac_exeext conftest.$ac_ext
20112 LIBS=$ac_check_lib_save_LIBS
20113 fi
20114 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20115 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20116 if test $ac_cv_lib_apr_1_main = yes; then
20117   cat >>confdefs.h <<_ACEOF
20118 #define HAVE_LIBAPR_1 1
20119 _ACEOF
20120
20121   LIBS="-lapr-1 $LIBS"
20122
20123 fi
20124
20125
20126
20127 # Check whether --with-apache-header was given.
20128 if test "${with_apache_header+set}" = set; then
20129   withval=$with_apache_header;
20130 fi
20131
20132 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
20133
20134 if test "x$with_apache_header" = "xyes"; then
20135     { { echo "$as_me:$LINENO: error:
20136 Please specify the --with-apache-header option. And, please specify the place of the header file.
20137
20138 " >&5
20139 echo "$as_me: error:
20140 Please specify the --with-apache-header option. And, please specify the place of the header file.
20141
20142 " >&2;}
20143    { (exit 1); exit 1; }; }
20144 fi
20145
20146
20147 # Check whether --with-apxs was given.
20148 if test "${with_apxs+set}" = set; then
20149   withval=$with_apxs;
20150 fi
20151
20152 if test "x$with_apxs" = "x" ; then
20153   APXS=""
20154 fi
20155 if test "x$with_apxs" = "xyes" ; then
20156     { { echo "$as_me:$LINENO: error:
20157 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20158 " >&5
20159 echo "$as_me: error:
20160 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20161 " >&2;}
20162    { (exit 1); exit 1; }; }
20163 fi
20164
20165
20166 # Check whether --with-apr-config was given.
20167 if test "${with_apr_config+set}" = set; then
20168   withval=$with_apr_config;
20169 fi
20170
20171 if test "x$with_apr_config" = "xyes" ; then
20172     { { echo "$as_me:$LINENO: error:
20173 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20174 " >&5
20175 echo "$as_me: error:
20176 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20177 " >&2;}
20178    { (exit 1); exit 1; }; }
20179 fi
20180
20181
20182 # Check whether --with-apu-config was given.
20183 if test "${with_apu_config+set}" = set; then
20184   withval=$with_apu_config;
20185 fi
20186
20187 if test "x$with_apu_config" = "xyes" ; then
20188     { { echo "$as_me:$LINENO: error:
20189 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20190 " >&5
20191 echo "$as_me: error:
20192 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20193 " >&2;}
20194    { (exit 1); exit 1; }; }
20195 fi
20196
20197 # Check whether --enable-img-conv-f was given.
20198 if test "${enable_img_conv_f+set}" = set; then
20199   enableval=$enable_img_conv_f;
20200 fi
20201
20202 if test "x$enable_img_conv_f" = "xyes"; then
20203   QDEFS=""
20204 else
20205   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
20206 fi
20207
20208
20209 # Check whether --enable-memcache-cookie was given.
20210 if test "${enable_memcache_cookie+set}" = set; then
20211   enableval=$enable_memcache_cookie;
20212 fi
20213
20214
20215 # Check whether --with-apr-memcache-header was given.
20216 if test "${with_apr_memcache_header+set}" = set; then
20217   withval=$with_apr_memcache_header;
20218 fi
20219
20220
20221 # Check whether --with-apr-memcache-lib-dir was given.
20222 if test "${with_apr_memcache_lib_dir+set}" = set; then
20223   withval=$with_apr_memcache_lib_dir;
20224 fi
20225
20226 if test "x$enable_memcache_cookie" = "xyes" ; then
20227         if test "x$with_apr_memcache_header" = "x" -o "x$with_apr_memcache_header" = "xyes" ; then
20228     { { echo "$as_me:$LINENO: error:
20229 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
20230 " >&5
20231 echo "$as_me: error:
20232 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
20233 " >&2;}
20234    { (exit 1); exit 1; }; }
20235   fi
20236   if test "x$with_apr_memcache_lib_dir" = "x" -o "x$with_apr_memcache_lib_dir" = "xyes" ; then
20237     { { echo "$as_me:$LINENO: error:
20238 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
20239 " >&5
20240 echo "$as_me: error:
20241 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
20242 " >&2;}
20243    { (exit 1); exit 1; }; }
20244   fi
20245   MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_apr_memcache_header}"
20246   MEMCACHE_COOKIE_LIBS="-L${with_apr_memcache_lib_dir} -lapr_memcache"
20247 else
20248         MEMCACHE_COOKIE_DEFS=""
20249   MEMCACHE_COOKIE_LIBS=""
20250 fi
20251 # Check whether --enable-mysql-cookie was given.
20252 if test "${enable_mysql_cookie+set}" = set; then
20253   enableval=$enable_mysql_cookie;
20254 fi
20255
20256
20257 # Check whether --with-mysql-header was given.
20258 if test "${with_mysql_header+set}" = set; then
20259   withval=$with_mysql_header;
20260 fi
20261
20262
20263 # Check whether --with-mysql-lib-dir was given.
20264 if test "${with_mysql_lib_dir+set}" = set; then
20265   withval=$with_mysql_lib_dir;
20266 fi
20267
20268 if test "x$enable_mysql_cookie" = "xyes"; then
20269         if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
20270     { { echo "$as_me:$LINENO: error:
20271 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20272 " >&5
20273 echo "$as_me: error:
20274 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20275 " >&2;}
20276    { (exit 1); exit 1; }; }
20277   fi
20278   if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
20279     { { echo "$as_me:$LINENO: error:
20280 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20281 " >&5
20282 echo "$as_me: error:
20283 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20284 " >&2;}
20285    { (exit 1); exit 1; }; }
20286   fi
20287   MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
20288   MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
20289 else
20290         MYSQL_COOKIE_DEFS=""
20291   MYSQL_COOKIE_LIBS=""
20292 fi
20293
20294 # Check whether --enable-dump-log was given.
20295 if test "${enable_dump_log+set}" = set; then
20296   enableval=$enable_dump_log;
20297 fi
20298
20299 if test "x$enable_dump_log" = "xyes"; then
20300   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
20301 else
20302     if test "x$enable_dump_log" != "x" ; then
20303         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
20304     fi
20305 fi
20306
20307
20308 if test "x$with_apxs" = "x" ; then
20309   # Extract the first word of "apxs2", so it can be a program name with args.
20310 set dummy apxs2; ac_word=$2
20311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20313 if test "${ac_cv_path_APXS2+set}" = set; then
20314   echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316   case $APXS2 in
20317   [\\/]* | ?:[\\/]*)
20318   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
20319   ;;
20320   *)
20321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20322 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20323 for as_dir in $as_dummy
20324 do
20325   IFS=$as_save_IFS
20326   test -z "$as_dir" && as_dir=.
20327   for ac_exec_ext in '' $ac_executable_extensions; do
20328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20329     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
20330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20331     break 2
20332   fi
20333 done
20334 done
20335 IFS=$as_save_IFS
20336
20337   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
20338   ;;
20339 esac
20340 fi
20341 APXS2=$ac_cv_path_APXS2
20342 if test -n "$APXS2"; then
20343   { echo "$as_me:$LINENO: result: $APXS2" >&5
20344 echo "${ECHO_T}$APXS2" >&6; }
20345 else
20346   { echo "$as_me:$LINENO: result: no" >&5
20347 echo "${ECHO_T}no" >&6; }
20348 fi
20349
20350
20351   if test "x$APXS2" = "xno"; then
20352       # Extract the first word of "apxs", so it can be a program name with args.
20353 set dummy apxs; ac_word=$2
20354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20356 if test "${ac_cv_path_APXS+set}" = set; then
20357   echo $ECHO_N "(cached) $ECHO_C" >&6
20358 else
20359   case $APXS in
20360   [\\/]* | ?:[\\/]*)
20361   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
20362   ;;
20363   *)
20364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20365 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20366 for as_dir in $as_dummy
20367 do
20368   IFS=$as_save_IFS
20369   test -z "$as_dir" && as_dir=.
20370   for ac_exec_ext in '' $ac_executable_extensions; do
20371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20372     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
20373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20374     break 2
20375   fi
20376 done
20377 done
20378 IFS=$as_save_IFS
20379
20380   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
20381   ;;
20382 esac
20383 fi
20384 APXS=$ac_cv_path_APXS
20385 if test -n "$APXS"; then
20386   { echo "$as_me:$LINENO: result: $APXS" >&5
20387 echo "${ECHO_T}$APXS" >&6; }
20388 else
20389   { echo "$as_me:$LINENO: result: no" >&5
20390 echo "${ECHO_T}no" >&6; }
20391 fi
20392
20393
20394       if test "x$APXS" = "xno" ; then
20395         { { echo "$as_me:$LINENO: error: apxs not found." >&5
20396 echo "$as_me: error: apxs not found." >&2;}
20397    { (exit 1); exit 1; }; }
20398       fi
20399   else
20400     APXS="$APXS2"
20401   fi
20402 fi
20403 if test "x$with_apxs" != "x" ; then
20404   APXS=$with_apxs
20405 fi
20406
20407 # Extract the first word of "libtool", so it can be a program name with args.
20408 set dummy libtool; ac_word=$2
20409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20411 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   case $LIBTOOL in
20415   [\\/]* | ?:[\\/]*)
20416   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20417   ;;
20418   *)
20419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20420 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20421 for as_dir in $as_dummy
20422 do
20423   IFS=$as_save_IFS
20424   test -z "$as_dir" && as_dir=.
20425   for ac_exec_ext in '' $ac_executable_extensions; do
20426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20427     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20429     break 2
20430   fi
20431 done
20432 done
20433 IFS=$as_save_IFS
20434
20435   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20436   ;;
20437 esac
20438 fi
20439 LIBTOOL=$ac_cv_path_LIBTOOL
20440 if test -n "$LIBTOOL"; then
20441   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20442 echo "${ECHO_T}$LIBTOOL" >&6; }
20443 else
20444   { echo "$as_me:$LINENO: result: no" >&5
20445 echo "${ECHO_T}no" >&6; }
20446 fi
20447
20448
20449 if test "x$LIBTOOL" = "xno"; then
20450     { { echo "$as_me:$LINENO: error: libtool not found." >&5
20451 echo "$as_me: error: libtool not found." >&2;}
20452    { (exit 1); exit 1; }; }
20453 fi
20454
20455
20456 # Extract the first word of "Wand-config", so it can be a program name with args.
20457 set dummy Wand-config; ac_word=$2
20458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20460 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463   case $WAND_CONFIG in
20464   [\\/]* | ?:[\\/]*)
20465   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
20466   ;;
20467   *)
20468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20470 for as_dir in $as_dummy
20471 do
20472   IFS=$as_save_IFS
20473   test -z "$as_dir" && as_dir=.
20474   for ac_exec_ext in '' $ac_executable_extensions; do
20475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20476     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20478     break 2
20479   fi
20480 done
20481 done
20482 IFS=$as_save_IFS
20483
20484   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
20485   ;;
20486 esac
20487 fi
20488 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
20489 if test -n "$WAND_CONFIG"; then
20490   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
20491 echo "${ECHO_T}$WAND_CONFIG" >&6; }
20492 else
20493   { echo "$as_me:$LINENO: result: no" >&5
20494 echo "${ECHO_T}no" >&6; }
20495 fi
20496
20497
20498 if test "x$WAND_CONFIG" = "xno" ; then
20499     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
20500 echo "$as_me: error: wand-config not found." >&2;}
20501    { (exit 1); exit 1; }; }
20502 fi
20503
20504
20505 if test "x$with_apr_config" = "x" ; then
20506   # Extract the first word of "apr-config", so it can be a program name with args.
20507 set dummy apr-config; ac_word=$2
20508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20510 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20511   echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513   case $APR_CONFIG in
20514   [\\/]* | ?:[\\/]*)
20515   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20516   ;;
20517   *)
20518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20519 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20520 for as_dir in $as_dummy
20521 do
20522   IFS=$as_save_IFS
20523   test -z "$as_dir" && as_dir=.
20524   for ac_exec_ext in '' $ac_executable_extensions; do
20525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20526     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20528     break 2
20529   fi
20530 done
20531 done
20532 IFS=$as_save_IFS
20533
20534   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20535   ;;
20536 esac
20537 fi
20538 APR_CONFIG=$ac_cv_path_APR_CONFIG
20539 if test -n "$APR_CONFIG"; then
20540   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20541 echo "${ECHO_T}$APR_CONFIG" >&6; }
20542 else
20543   { echo "$as_me:$LINENO: result: no" >&5
20544 echo "${ECHO_T}no" >&6; }
20545 fi
20546
20547
20548   if test "x$APR_CONFIG" = "xno" ; then
20549     # Extract the first word of "apr-1-config", so it can be a program name with args.
20550 set dummy apr-1-config; ac_word=$2
20551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20553 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20554   echo $ECHO_N "(cached) $ECHO_C" >&6
20555 else
20556   case $APR_1_CONFIG in
20557   [\\/]* | ?:[\\/]*)
20558   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20559   ;;
20560   *)
20561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20562 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20563 for as_dir in $as_dummy
20564 do
20565   IFS=$as_save_IFS
20566   test -z "$as_dir" && as_dir=.
20567   for ac_exec_ext in '' $ac_executable_extensions; do
20568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20569     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20571     break 2
20572   fi
20573 done
20574 done
20575 IFS=$as_save_IFS
20576
20577   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20578   ;;
20579 esac
20580 fi
20581 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20582 if test -n "$APR_1_CONFIG"; then
20583   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20584 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20585 else
20586   { echo "$as_me:$LINENO: result: no" >&5
20587 echo "${ECHO_T}no" >&6; }
20588 fi
20589
20590
20591     if test "x$APR_1_CONFIG" = "xno" ; then
20592       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20593 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20594    { (exit 1); exit 1; }; }
20595     else
20596       APR_CONFIG="$APR_1_CONFIG"
20597     fi
20598   fi
20599 fi
20600 if test "x$with_apr_config" != "x" ; then
20601   APR_CONFIG=$with_apr_config
20602 fi
20603
20604 if test "x$with_apu_config" = "x" ; then
20605   # Extract the first word of "apu-config", so it can be a program name with args.
20606 set dummy apu-config; ac_word=$2
20607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20609 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20610   echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612   case $APU_CONFIG in
20613   [\\/]* | ?:[\\/]*)
20614   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20615   ;;
20616   *)
20617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20619 for as_dir in $as_dummy
20620 do
20621   IFS=$as_save_IFS
20622   test -z "$as_dir" && as_dir=.
20623   for ac_exec_ext in '' $ac_executable_extensions; do
20624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20625     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20627     break 2
20628   fi
20629 done
20630 done
20631 IFS=$as_save_IFS
20632
20633   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20634   ;;
20635 esac
20636 fi
20637 APU_CONFIG=$ac_cv_path_APU_CONFIG
20638 if test -n "$APU_CONFIG"; then
20639   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20640 echo "${ECHO_T}$APU_CONFIG" >&6; }
20641 else
20642   { echo "$as_me:$LINENO: result: no" >&5
20643 echo "${ECHO_T}no" >&6; }
20644 fi
20645
20646
20647   if test "x$APU_CONFIG" = "xno" ; then
20648     # Extract the first word of "apu-1-config", so it can be a program name with args.
20649 set dummy apu-1-config; ac_word=$2
20650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20652 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655   case $APU_1_CONFIG in
20656   [\\/]* | ?:[\\/]*)
20657   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20658   ;;
20659   *)
20660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20661 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20662 for as_dir in $as_dummy
20663 do
20664   IFS=$as_save_IFS
20665   test -z "$as_dir" && as_dir=.
20666   for ac_exec_ext in '' $ac_executable_extensions; do
20667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20668     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20670     break 2
20671   fi
20672 done
20673 done
20674 IFS=$as_save_IFS
20675
20676   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20677   ;;
20678 esac
20679 fi
20680 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20681 if test -n "$APU_1_CONFIG"; then
20682   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20683 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20684 else
20685   { echo "$as_me:$LINENO: result: no" >&5
20686 echo "${ECHO_T}no" >&6; }
20687 fi
20688
20689
20690     if test "x$APU_1_CONFIG" = "xno" ; then
20691       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20692 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20693    { (exit 1); exit 1; }; }
20694     else
20695       APU_CONFIG="$APU_1_CONFIG"
20696     fi
20697   fi
20698 fi
20699 if test "x$with_apu_config" != "x" ; then
20700   APU_CONFIG=$with_apu_config
20701 fi
20702
20703 if test "x$with_apache_header" = "x" ; then
20704   with_apache_header=`${APXS} -q includedir`
20705
20706 fi
20707
20708 case $host_os in
20709   freebsd*)
20710     CFLAGS="${CFLAGS} -I/usr/local/include "
20711     ;;
20712 esac
20713
20714
20715
20716
20717 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20718 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20719 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20720 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
20721 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS}"
20722 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20723 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20724 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20725 CFLAGS="${CFLAGS} -I${with_apache_header}"
20726 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
20727 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20728 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` "
20729 CPPFLAGS="${CPPFLAGS} -I${with_apache_header}"
20730 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
20731 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20732
20733
20734 # Checks for header files.
20735 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20736 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20737 if test "${ac_cv_header_stdc+set}" = set; then
20738   echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740   cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746 #include <stdlib.h>
20747 #include <stdarg.h>
20748 #include <string.h>
20749 #include <float.h>
20750
20751 int
20752 main ()
20753 {
20754
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext
20760 if { (ac_try="$ac_compile"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_compile") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } && {
20773          test -z "$ac_c_werror_flag" ||
20774          test ! -s conftest.err
20775        } && test -s conftest.$ac_objext; then
20776   ac_cv_header_stdc=yes
20777 else
20778   echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781         ac_cv_header_stdc=no
20782 fi
20783
20784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20785
20786 if test $ac_cv_header_stdc = yes; then
20787   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20788   cat >conftest.$ac_ext <<_ACEOF
20789 /* confdefs.h.  */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h.  */
20794 #include <string.h>
20795
20796 _ACEOF
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798   $EGREP "memchr" >/dev/null 2>&1; then
20799   :
20800 else
20801   ac_cv_header_stdc=no
20802 fi
20803 rm -f conftest*
20804
20805 fi
20806
20807 if test $ac_cv_header_stdc = yes; then
20808   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20809   cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h.  */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h.  */
20815 #include <stdlib.h>
20816
20817 _ACEOF
20818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20819   $EGREP "free" >/dev/null 2>&1; then
20820   :
20821 else
20822   ac_cv_header_stdc=no
20823 fi
20824 rm -f conftest*
20825
20826 fi
20827
20828 if test $ac_cv_header_stdc = yes; then
20829   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20830   if test "$cross_compiling" = yes; then
20831   :
20832 else
20833   cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 #include <ctype.h>
20840 #include <stdlib.h>
20841 #if ((' ' & 0x0FF) == 0x020)
20842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20844 #else
20845 # define ISLOWER(c) \
20846                    (('a' <= (c) && (c) <= 'i') \
20847                      || ('j' <= (c) && (c) <= 'r') \
20848                      || ('s' <= (c) && (c) <= 'z'))
20849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20850 #endif
20851
20852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20853 int
20854 main ()
20855 {
20856   int i;
20857   for (i = 0; i < 256; i++)
20858     if (XOR (islower (i), ISLOWER (i))
20859         || toupper (i) != TOUPPER (i))
20860       return 2;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest$ac_exeext
20865 if { (ac_try="$ac_link"
20866 case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_link") 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20875   { (case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_try") 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); }; }; then
20884   :
20885 else
20886   echo "$as_me: program exited with status $ac_status" >&5
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890 ( exit $ac_status )
20891 ac_cv_header_stdc=no
20892 fi
20893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20894 fi
20895
20896
20897 fi
20898 fi
20899 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20900 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20901 if test $ac_cv_header_stdc = yes; then
20902
20903 cat >>confdefs.h <<\_ACEOF
20904 #define STDC_HEADERS 1
20905 _ACEOF
20906
20907 fi
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20918 do
20919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20921   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 fi
20926 ac_res=`eval echo '${'$as_ac_Header'}'`
20927                { echo "$as_me:$LINENO: result: $ac_res" >&5
20928 echo "${ECHO_T}$ac_res" >&6; }
20929 else
20930   # Is the header compilable?
20931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h.  */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h.  */
20939 $ac_includes_default
20940 #include <$ac_header>
20941 _ACEOF
20942 rm -f conftest.$ac_objext
20943 if { (ac_try="$ac_compile"
20944 case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_compile") 2>conftest.er1
20950   ac_status=$?
20951   grep -v '^ *+' conftest.er1 >conftest.err
20952   rm -f conftest.er1
20953   cat conftest.err >&5
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); } && {
20956          test -z "$ac_c_werror_flag" ||
20957          test ! -s conftest.err
20958        } && test -s conftest.$ac_objext; then
20959   ac_header_compiler=yes
20960 else
20961   echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964         ac_header_compiler=no
20965 fi
20966
20967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20969 echo "${ECHO_T}$ac_header_compiler" >&6; }
20970
20971 # Is the header present?
20972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h.  */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h.  */
20980 #include <$ac_header>
20981 _ACEOF
20982 if { (ac_try="$ac_cpp conftest.$ac_ext"
20983 case "(($ac_try" in
20984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985   *) ac_try_echo=$ac_try;;
20986 esac
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20989   ac_status=$?
20990   grep -v '^ *+' conftest.er1 >conftest.err
20991   rm -f conftest.er1
20992   cat conftest.err >&5
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); } >/dev/null && {
20995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20996          test ! -s conftest.err
20997        }; then
20998   ac_header_preproc=yes
20999 else
21000   echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003   ac_header_preproc=no
21004 fi
21005
21006 rm -f conftest.err conftest.$ac_ext
21007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21008 echo "${ECHO_T}$ac_header_preproc" >&6; }
21009
21010 # So?  What about this header?
21011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21012   yes:no: )
21013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21017     ac_header_preproc=yes
21018     ;;
21019   no:yes:* )
21020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21032
21033     ;;
21034 esac
21035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040   eval "$as_ac_Header=\$ac_header_preproc"
21041 fi
21042 ac_res=`eval echo '${'$as_ac_Header'}'`
21043                { echo "$as_me:$LINENO: result: $ac_res" >&5
21044 echo "${ECHO_T}$ac_res" >&6; }
21045
21046 fi
21047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21048   cat >>confdefs.h <<_ACEOF
21049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21050 _ACEOF
21051
21052 fi
21053
21054 done
21055
21056 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
21057
21058
21059 for ac_header in apr_shm.h apr_global_mutex.h
21060 do
21061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21063   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 fi
21068 ac_res=`eval echo '${'$as_ac_Header'}'`
21069                { echo "$as_me:$LINENO: result: $ac_res" >&5
21070 echo "${ECHO_T}$ac_res" >&6; }
21071 else
21072   # Is the header compilable?
21073 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 $ac_includes_default
21082 #include <$ac_header>
21083 _ACEOF
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088   *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091   (eval "$ac_compile") 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } && {
21098          test -z "$ac_c_werror_flag" ||
21099          test ! -s conftest.err
21100        } && test -s conftest.$ac_objext; then
21101   ac_header_compiler=yes
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         ac_header_compiler=no
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21111 echo "${ECHO_T}$ac_header_compiler" >&6; }
21112
21113 # Is the header present?
21114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21116 cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h.  */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h.  */
21122 #include <$ac_header>
21123 _ACEOF
21124 if { (ac_try="$ac_cpp conftest.$ac_ext"
21125 case "(($ac_try" in
21126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127   *) ac_try_echo=$ac_try;;
21128 esac
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21131   ac_status=$?
21132   grep -v '^ *+' conftest.er1 >conftest.err
21133   rm -f conftest.er1
21134   cat conftest.err >&5
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); } >/dev/null && {
21137          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21138          test ! -s conftest.err
21139        }; then
21140   ac_header_preproc=yes
21141 else
21142   echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145   ac_header_preproc=no
21146 fi
21147
21148 rm -f conftest.err conftest.$ac_ext
21149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21150 echo "${ECHO_T}$ac_header_preproc" >&6; }
21151
21152 # So?  What about this header?
21153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21154   yes:no: )
21155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21159     ac_header_preproc=yes
21160     ;;
21161   no:yes:* )
21162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21174
21175     ;;
21176 esac
21177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21180   echo $ECHO_N "(cached) $ECHO_C" >&6
21181 else
21182   eval "$as_ac_Header=\$ac_header_preproc"
21183 fi
21184 ac_res=`eval echo '${'$as_ac_Header'}'`
21185                { echo "$as_me:$LINENO: result: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21187
21188 fi
21189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21190   cat >>confdefs.h <<_ACEOF
21191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21192 _ACEOF
21193
21194 fi
21195
21196 done
21197
21198
21199 for ac_header in apr.h
21200 do
21201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21203   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21206   echo $ECHO_N "(cached) $ECHO_C" >&6
21207 fi
21208 ac_res=`eval echo '${'$as_ac_Header'}'`
21209                { echo "$as_me:$LINENO: result: $ac_res" >&5
21210 echo "${ECHO_T}$ac_res" >&6; }
21211 else
21212   # Is the header compilable?
21213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221 $ac_includes_default
21222 #include <$ac_header>
21223 _ACEOF
21224 rm -f conftest.$ac_objext
21225 if { (ac_try="$ac_compile"
21226 case "(($ac_try" in
21227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228   *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231   (eval "$ac_compile") 2>conftest.er1
21232   ac_status=$?
21233   grep -v '^ *+' conftest.er1 >conftest.err
21234   rm -f conftest.er1
21235   cat conftest.err >&5
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } && {
21238          test -z "$ac_c_werror_flag" ||
21239          test ! -s conftest.err
21240        } && test -s conftest.$ac_objext; then
21241   ac_header_compiler=yes
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246         ac_header_compiler=no
21247 fi
21248
21249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21251 echo "${ECHO_T}$ac_header_compiler" >&6; }
21252
21253 # Is the header present?
21254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21256 cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h.  */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h.  */
21262 #include <$ac_header>
21263 _ACEOF
21264 if { (ac_try="$ac_cpp conftest.$ac_ext"
21265 case "(($ac_try" in
21266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267   *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } >/dev/null && {
21277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21278          test ! -s conftest.err
21279        }; then
21280   ac_header_preproc=yes
21281 else
21282   echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285   ac_header_preproc=no
21286 fi
21287
21288 rm -f conftest.err conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21290 echo "${ECHO_T}$ac_header_preproc" >&6; }
21291
21292 # So?  What about this header?
21293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21294   yes:no: )
21295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21299     ac_header_preproc=yes
21300     ;;
21301   no:yes:* )
21302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21314
21315     ;;
21316 esac
21317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320   echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322   eval "$as_ac_Header=\$ac_header_preproc"
21323 fi
21324 ac_res=`eval echo '${'$as_ac_Header'}'`
21325                { echo "$as_me:$LINENO: result: $ac_res" >&5
21326 echo "${ECHO_T}$ac_res" >&6; }
21327
21328 fi
21329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21330   cat >>confdefs.h <<_ACEOF
21331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21332 _ACEOF
21333
21334 fi
21335
21336 done
21337
21338
21339 for ac_header in ap_config.h
21340 do
21341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21346   echo $ECHO_N "(cached) $ECHO_C" >&6
21347 fi
21348 ac_res=`eval echo '${'$as_ac_Header'}'`
21349                { echo "$as_me:$LINENO: result: $ac_res" >&5
21350 echo "${ECHO_T}$ac_res" >&6; }
21351 else
21352   # Is the header compilable?
21353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21355 cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361 $ac_includes_default
21362 #include <$ac_header>
21363 _ACEOF
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_compile") 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } && {
21378          test -z "$ac_c_werror_flag" ||
21379          test ! -s conftest.err
21380        } && test -s conftest.$ac_objext; then
21381   ac_header_compiler=yes
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386         ac_header_compiler=no
21387 fi
21388
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21391 echo "${ECHO_T}$ac_header_compiler" >&6; }
21392
21393 # Is the header present?
21394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402 #include <$ac_header>
21403 _ACEOF
21404 if { (ac_try="$ac_cpp conftest.$ac_ext"
21405 case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } >/dev/null && {
21417          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21418          test ! -s conftest.err
21419        }; then
21420   ac_header_preproc=yes
21421 else
21422   echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425   ac_header_preproc=no
21426 fi
21427
21428 rm -f conftest.err conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21430 echo "${ECHO_T}$ac_header_preproc" >&6; }
21431
21432 # So?  What about this header?
21433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21434   yes:no: )
21435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21439     ac_header_preproc=yes
21440     ;;
21441   no:yes:* )
21442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21454
21455     ;;
21456 esac
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   eval "$as_ac_Header=\$ac_header_preproc"
21463 fi
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465                { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21467
21468 fi
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470   cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21472 _ACEOF
21473
21474 fi
21475
21476 done
21477
21478
21479 for ac_header in ap_regex.h
21480 do
21481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486   echo $ECHO_N "(cached) $ECHO_C" >&6
21487 fi
21488 ac_res=`eval echo '${'$as_ac_Header'}'`
21489                { echo "$as_me:$LINENO: result: $ac_res" >&5
21490 echo "${ECHO_T}$ac_res" >&6; }
21491 else
21492   # Is the header compilable?
21493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21495 cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h.  */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h.  */
21501 $ac_includes_default
21502 #include <$ac_header>
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511   (eval "$ac_compile") 2>conftest.er1
21512   ac_status=$?
21513   grep -v '^ *+' conftest.er1 >conftest.err
21514   rm -f conftest.er1
21515   cat conftest.err >&5
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); } && {
21518          test -z "$ac_c_werror_flag" ||
21519          test ! -s conftest.err
21520        } && test -s conftest.$ac_objext; then
21521   ac_header_compiler=yes
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526         ac_header_compiler=no
21527 fi
21528
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21531 echo "${ECHO_T}$ac_header_compiler" >&6; }
21532
21533 # Is the header present?
21534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 #include <$ac_header>
21543 _ACEOF
21544 if { (ac_try="$ac_cpp conftest.$ac_ext"
21545 case "(($ac_try" in
21546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547   *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21551   ac_status=$?
21552   grep -v '^ *+' conftest.er1 >conftest.err
21553   rm -f conftest.er1
21554   cat conftest.err >&5
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); } >/dev/null && {
21557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21558          test ! -s conftest.err
21559        }; then
21560   ac_header_preproc=yes
21561 else
21562   echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565   ac_header_preproc=no
21566 fi
21567
21568 rm -f conftest.err conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21570 echo "${ECHO_T}$ac_header_preproc" >&6; }
21571
21572 # So?  What about this header?
21573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21574   yes:no: )
21575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21579     ac_header_preproc=yes
21580     ;;
21581   no:yes:* )
21582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21594
21595     ;;
21596 esac
21597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21600   echo $ECHO_N "(cached) $ECHO_C" >&6
21601 else
21602   eval "$as_ac_Header=\$ac_header_preproc"
21603 fi
21604 ac_res=`eval echo '${'$as_ac_Header'}'`
21605                { echo "$as_me:$LINENO: result: $ac_res" >&5
21606 echo "${ECHO_T}$ac_res" >&6; }
21607
21608 fi
21609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21610   cat >>confdefs.h <<_ACEOF
21611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21612 _ACEOF
21613  use_pcre_flag="no"
21614 else
21615   use_pcre_flag="yes"
21616 fi
21617
21618 done
21619
21620 if test "x$use_pcre_flag" = "xyes" ; then
21621   if test "x$with_pcre_config" = "x" ; then
21622     # Extract the first word of "pcre-config", so it can be a program name with args.
21623 set dummy pcre-config; ac_word=$2
21624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21626 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21627   echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629   case $PCRE_CONFIG in
21630   [\\/]* | ?:[\\/]*)
21631   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21632   ;;
21633   *)
21634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21635 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21636 for as_dir in $as_dummy
21637 do
21638   IFS=$as_save_IFS
21639   test -z "$as_dir" && as_dir=.
21640   for ac_exec_ext in '' $ac_executable_extensions; do
21641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21642     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21644     break 2
21645   fi
21646 done
21647 done
21648 IFS=$as_save_IFS
21649
21650   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21651   ;;
21652 esac
21653 fi
21654 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21655 if test -n "$PCRE_CONFIG"; then
21656   { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21657 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21658 else
21659   { echo "$as_me:$LINENO: result: no" >&5
21660 echo "${ECHO_T}no" >&6; }
21661 fi
21662
21663
21664     if test "x$PCRE_CONFIG" = "xno" ; then
21665       # Extract the first word of "pcre-1-config", so it can be a program name with args.
21666 set dummy pcre-1-config; ac_word=$2
21667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21669 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21670   echo $ECHO_N "(cached) $ECHO_C" >&6
21671 else
21672   case $PCRE_1_CONFIG in
21673   [\\/]* | ?:[\\/]*)
21674   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21675   ;;
21676   *)
21677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21678 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21679 for as_dir in $as_dummy
21680 do
21681   IFS=$as_save_IFS
21682   test -z "$as_dir" && as_dir=.
21683   for ac_exec_ext in '' $ac_executable_extensions; do
21684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21685     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21687     break 2
21688   fi
21689 done
21690 done
21691 IFS=$as_save_IFS
21692
21693   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21694   ;;
21695 esac
21696 fi
21697 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21698 if test -n "$PCRE_1_CONFIG"; then
21699   { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21700 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21701 else
21702   { echo "$as_me:$LINENO: result: no" >&5
21703 echo "${ECHO_T}no" >&6; }
21704 fi
21705
21706
21707       if test "x$PCRE_1_CONFIG" = "xno" ; then
21708         { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21709 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21710    { (exit 1); exit 1; }; }
21711       else
21712         PCRE_CONFIG="$PCRE_1_CONFIG"
21713       fi
21714     fi
21715   fi
21716   if test "x$with_pcre_config" != "x" ; then
21717     PCRE_CONFIG=$with_pcre_config
21718   fi
21719   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21720 else
21721
21722 cat >>confdefs.h <<\_ACEOF
21723 #define HAVE_AP_REGEX_H
21724 _ACEOF
21725
21726 fi
21727
21728 # Checks for typedefs, structures, and compiler characteristics.
21729 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21730 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21731 if test "${ac_cv_c_const+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740
21741 int
21742 main ()
21743 {
21744 /* FIXME: Include the comments suggested by Paul. */
21745 #ifndef __cplusplus
21746   /* Ultrix mips cc rejects this.  */
21747   typedef int charset[2];
21748   const charset cs;
21749   /* SunOS 4.1.1 cc rejects this.  */
21750   char const *const *pcpcc;
21751   char **ppc;
21752   /* NEC SVR4.0.2 mips cc rejects this.  */
21753   struct point {int x, y;};
21754   static struct point const zero = {0,0};
21755   /* AIX XL C 1.02.0.0 rejects this.
21756      It does not let you subtract one const X* pointer from another in
21757      an arm of an if-expression whose if-part is not a constant
21758      expression */
21759   const char *g = "string";
21760   pcpcc = &g + (g ? g-g : 0);
21761   /* HPUX 7.0 cc rejects these. */
21762   ++pcpcc;
21763   ppc = (char**) pcpcc;
21764   pcpcc = (char const *const *) ppc;
21765   { /* SCO 3.2v4 cc rejects this.  */
21766     char *t;
21767     char const *s = 0 ? (char *) 0 : (char const *) 0;
21768
21769     *t++ = 0;
21770     if (s) return 0;
21771   }
21772   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21773     int x[] = {25, 17};
21774     const int *foo = &x[0];
21775     ++foo;
21776   }
21777   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21778     typedef const int *iptr;
21779     iptr p = 0;
21780     ++p;
21781   }
21782   { /* AIX XL C 1.02.0.0 rejects this saying
21783        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21784     struct s { int j; const int *ap[3]; };
21785     struct s *b; b->j = 5;
21786   }
21787   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21788     const int foo = 10;
21789     if (!foo) return 0;
21790   }
21791   return !cs[0] && !zero.x;
21792 #endif
21793
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_compile") 2>conftest.er1
21806   ac_status=$?
21807   grep -v '^ *+' conftest.er1 >conftest.err
21808   rm -f conftest.er1
21809   cat conftest.err >&5
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); } && {
21812          test -z "$ac_c_werror_flag" ||
21813          test ! -s conftest.err
21814        } && test -s conftest.$ac_objext; then
21815   ac_cv_c_const=yes
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820         ac_cv_c_const=no
21821 fi
21822
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824 fi
21825 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21826 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21827 if test $ac_cv_c_const = no; then
21828
21829 cat >>confdefs.h <<\_ACEOF
21830 #define const
21831 _ACEOF
21832
21833 fi
21834
21835
21836 # Checks for library functions.
21837
21838 for ac_header in stdlib.h
21839 do
21840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21842   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21845   echo $ECHO_N "(cached) $ECHO_C" >&6
21846 fi
21847 ac_res=`eval echo '${'$as_ac_Header'}'`
21848                { echo "$as_me:$LINENO: result: $ac_res" >&5
21849 echo "${ECHO_T}$ac_res" >&6; }
21850 else
21851   # Is the header compilable?
21852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21854 cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h.  */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h.  */
21860 $ac_includes_default
21861 #include <$ac_header>
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (ac_try="$ac_compile"
21865 case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870   (eval "$ac_compile") 2>conftest.er1
21871   ac_status=$?
21872   grep -v '^ *+' conftest.er1 >conftest.err
21873   rm -f conftest.er1
21874   cat conftest.err >&5
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); } && {
21877          test -z "$ac_c_werror_flag" ||
21878          test ! -s conftest.err
21879        } && test -s conftest.$ac_objext; then
21880   ac_header_compiler=yes
21881 else
21882   echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885         ac_header_compiler=no
21886 fi
21887
21888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21890 echo "${ECHO_T}$ac_header_compiler" >&6; }
21891
21892 # Is the header present?
21893 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21895 cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h.  */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h.  */
21901 #include <$ac_header>
21902 _ACEOF
21903 if { (ac_try="$ac_cpp conftest.$ac_ext"
21904 case "(($ac_try" in
21905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906   *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21910   ac_status=$?
21911   grep -v '^ *+' conftest.er1 >conftest.err
21912   rm -f conftest.er1
21913   cat conftest.err >&5
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); } >/dev/null && {
21916          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21917          test ! -s conftest.err
21918        }; then
21919   ac_header_preproc=yes
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924   ac_header_preproc=no
21925 fi
21926
21927 rm -f conftest.err conftest.$ac_ext
21928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21929 echo "${ECHO_T}$ac_header_preproc" >&6; }
21930
21931 # So?  What about this header?
21932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21933   yes:no: )
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21938     ac_header_preproc=yes
21939     ;;
21940   no:yes:* )
21941     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21943     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21944 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21945     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21947     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21948 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21951     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21953
21954     ;;
21955 esac
21956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959   echo $ECHO_N "(cached) $ECHO_C" >&6
21960 else
21961   eval "$as_ac_Header=\$ac_header_preproc"
21962 fi
21963 ac_res=`eval echo '${'$as_ac_Header'}'`
21964                { echo "$as_me:$LINENO: result: $ac_res" >&5
21965 echo "${ECHO_T}$ac_res" >&6; }
21966
21967 fi
21968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21969   cat >>confdefs.h <<_ACEOF
21970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21971 _ACEOF
21972
21973 fi
21974
21975 done
21976
21977 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21978 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21979 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21980   echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982   if test "$cross_compiling" = yes; then
21983   ac_cv_func_malloc_0_nonnull=no
21984 else
21985   cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h.  */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h.  */
21991 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21992 # include <stdlib.h>
21993 #else
21994 char *malloc ();
21995 #endif
21996
21997 int
21998 main ()
21999 {
22000 return ! malloc (0);
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest$ac_exeext
22006 if { (ac_try="$ac_link"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012   (eval "$ac_link") 2>&5
22013   ac_status=$?
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22016   { (case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_try") 2>&5
22022   ac_status=$?
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); }; }; then
22025   ac_cv_func_malloc_0_nonnull=yes
22026 else
22027   echo "$as_me: program exited with status $ac_status" >&5
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031 ( exit $ac_status )
22032 ac_cv_func_malloc_0_nonnull=no
22033 fi
22034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22035 fi
22036
22037
22038 fi
22039 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22040 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22041 if test $ac_cv_func_malloc_0_nonnull = yes; then
22042
22043 cat >>confdefs.h <<\_ACEOF
22044 #define HAVE_MALLOC 1
22045 _ACEOF
22046
22047 else
22048   cat >>confdefs.h <<\_ACEOF
22049 #define HAVE_MALLOC 0
22050 _ACEOF
22051
22052    case " $LIBOBJS " in
22053   *" malloc.$ac_objext "* ) ;;
22054   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22055  ;;
22056 esac
22057
22058
22059 cat >>confdefs.h <<\_ACEOF
22060 #define malloc rpl_malloc
22061 _ACEOF
22062
22063 fi
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
22076 do
22077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22081   echo $ECHO_N "(cached) $ECHO_C" >&6
22082 else
22083   cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h.  */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h.  */
22089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22091 #define $ac_func innocuous_$ac_func
22092
22093 /* System header to define __stub macros and hopefully few prototypes,
22094     which can conflict with char $ac_func (); below.
22095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22096     <limits.h> exists even on freestanding compilers.  */
22097
22098 #ifdef __STDC__
22099 # include <limits.h>
22100 #else
22101 # include <assert.h>
22102 #endif
22103
22104 #undef $ac_func
22105
22106 /* Override any GCC internal prototype to avoid an error.
22107    Use char because int might match the return type of a GCC
22108    builtin and then its argument prototype would still apply.  */
22109 #ifdef __cplusplus
22110 extern "C"
22111 #endif
22112 char $ac_func ();
22113 /* The GNU C library defines this for functions which it implements
22114     to always fail with ENOSYS.  Some functions are actually named
22115     something starting with __ and the normal name is an alias.  */
22116 #if defined __stub_$ac_func || defined __stub___$ac_func
22117 choke me
22118 #endif
22119
22120 int
22121 main ()
22122 {
22123 return $ac_func ();
22124   ;
22125   return 0;
22126 }
22127 _ACEOF
22128 rm -f conftest.$ac_objext conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132   *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135   (eval "$ac_link") 2>conftest.er1
22136   ac_status=$?
22137   grep -v '^ *+' conftest.er1 >conftest.err
22138   rm -f conftest.er1
22139   cat conftest.err >&5
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); } && {
22142          test -z "$ac_c_werror_flag" ||
22143          test ! -s conftest.err
22144        } && test -s conftest$ac_exeext &&
22145        $as_test_x conftest$ac_exeext; then
22146   eval "$as_ac_var=yes"
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151         eval "$as_ac_var=no"
22152 fi
22153
22154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22155       conftest$ac_exeext conftest.$ac_ext
22156 fi
22157 ac_res=`eval echo '${'$as_ac_var'}'`
22158                { echo "$as_me:$LINENO: result: $ac_res" >&5
22159 echo "${ECHO_T}$ac_res" >&6; }
22160 if test `eval echo '${'$as_ac_var'}'` = yes; then
22161   cat >>confdefs.h <<_ACEOF
22162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22163 _ACEOF
22164
22165 fi
22166 done
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177 ac_config_files="$ac_config_files Makefile src/Makefile"
22178
22179 cat >confcache <<\_ACEOF
22180 # This file is a shell script that caches the results of configure
22181 # tests run on this system so they can be shared between configure
22182 # scripts and configure runs, see configure's option --config-cache.
22183 # It is not useful on other systems.  If it contains results you don't
22184 # want to keep, you may remove or edit it.
22185 #
22186 # config.status only pays attention to the cache file if you give it
22187 # the --recheck option to rerun configure.
22188 #
22189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22191 # following values.
22192
22193 _ACEOF
22194
22195 # The following way of writing the cache mishandles newlines in values,
22196 # but we know of no workaround that is simple, portable, and efficient.
22197 # So, we kill variables containing newlines.
22198 # Ultrix sh set writes to stderr and can't be redirected directly,
22199 # and sets the high bit in the cache file unless we assign to the vars.
22200 (
22201   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22202     eval ac_val=\$$ac_var
22203     case $ac_val in #(
22204     *${as_nl}*)
22205       case $ac_var in #(
22206       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22207 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22208       esac
22209       case $ac_var in #(
22210       _ | IFS | as_nl) ;; #(
22211       *) $as_unset $ac_var ;;
22212       esac ;;
22213     esac
22214   done
22215
22216   (set) 2>&1 |
22217     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22218     *${as_nl}ac_space=\ *)
22219       # `set' does not quote correctly, so add quotes (double-quote
22220       # substitution turns \\\\ into \\, and sed turns \\ into \).
22221       sed -n \
22222         "s/'/'\\\\''/g;
22223           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22224       ;; #(
22225     *)
22226       # `set' quotes correctly as required by POSIX, so do not add quotes.
22227       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22228       ;;
22229     esac |
22230     sort
22231 ) |
22232   sed '
22233      /^ac_cv_env_/b end
22234      t clear
22235      :clear
22236      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22237      t end
22238      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22239      :end' >>confcache
22240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22241   if test -w "$cache_file"; then
22242     test "x$cache_file" != "x/dev/null" &&
22243       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22244 echo "$as_me: updating cache $cache_file" >&6;}
22245     cat confcache >$cache_file
22246   else
22247     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22248 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22249   fi
22250 fi
22251 rm -f confcache
22252
22253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22254 # Let make expand exec_prefix.
22255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22256
22257 DEFS=-DHAVE_CONFIG_H
22258
22259 ac_libobjs=
22260 ac_ltlibobjs=
22261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22262   # 1. Remove the extension, and $U if already installed.
22263   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22264   ac_i=`echo "$ac_i" | sed "$ac_script"`
22265   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22266   #    will be set to the directory where LIBOBJS objects are built.
22267   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22268   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22269 done
22270 LIBOBJS=$ac_libobjs
22271
22272 LTLIBOBJS=$ac_ltlibobjs
22273
22274
22275 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22276   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22277 Usually this means the macro was only invoked conditionally." >&5
22278 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22279 Usually this means the macro was only invoked conditionally." >&2;}
22280    { (exit 1); exit 1; }; }
22281 fi
22282 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22283   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22284 Usually this means the macro was only invoked conditionally." >&5
22285 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22286 Usually this means the macro was only invoked conditionally." >&2;}
22287    { (exit 1); exit 1; }; }
22288 fi
22289 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22290   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22291 Usually this means the macro was only invoked conditionally." >&5
22292 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22293 Usually this means the macro was only invoked conditionally." >&2;}
22294    { (exit 1); exit 1; }; }
22295 fi
22296 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22297   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22298 Usually this means the macro was only invoked conditionally." >&5
22299 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22300 Usually this means the macro was only invoked conditionally." >&2;}
22301    { (exit 1); exit 1; }; }
22302 fi
22303
22304 : ${CONFIG_STATUS=./config.status}
22305 ac_clean_files_save=$ac_clean_files
22306 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22307 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22308 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22309 cat >$CONFIG_STATUS <<_ACEOF
22310 #! $SHELL
22311 # Generated by $as_me.
22312 # Run this file to recreate the current configuration.
22313 # Compiler output produced by configure, useful for debugging
22314 # configure, is in config.log if it exists.
22315
22316 debug=false
22317 ac_cs_recheck=false
22318 ac_cs_silent=false
22319 SHELL=\${CONFIG_SHELL-$SHELL}
22320 _ACEOF
22321
22322 cat >>$CONFIG_STATUS <<\_ACEOF
22323 ## --------------------- ##
22324 ## M4sh Initialization.  ##
22325 ## --------------------- ##
22326
22327 # Be more Bourne compatible
22328 DUALCASE=1; export DUALCASE # for MKS sh
22329 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22330   emulate sh
22331   NULLCMD=:
22332   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22333   # is contrary to our usage.  Disable this feature.
22334   alias -g '${1+"$@"}'='"$@"'
22335   setopt NO_GLOB_SUBST
22336 else
22337   case `(set -o) 2>/dev/null` in
22338   *posix*) set -o posix ;;
22339 esac
22340
22341 fi
22342
22343
22344
22345
22346 # PATH needs CR
22347 # Avoid depending upon Character Ranges.
22348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22351 as_cr_digits='0123456789'
22352 as_cr_alnum=$as_cr_Letters$as_cr_digits
22353
22354 # The user is always right.
22355 if test "${PATH_SEPARATOR+set}" != set; then
22356   echo "#! /bin/sh" >conf$$.sh
22357   echo  "exit 0"   >>conf$$.sh
22358   chmod +x conf$$.sh
22359   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22360     PATH_SEPARATOR=';'
22361   else
22362     PATH_SEPARATOR=:
22363   fi
22364   rm -f conf$$.sh
22365 fi
22366
22367 # Support unset when possible.
22368 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22369   as_unset=unset
22370 else
22371   as_unset=false
22372 fi
22373
22374
22375 # IFS
22376 # We need space, tab and new line, in precisely that order.  Quoting is
22377 # there to prevent editors from complaining about space-tab.
22378 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22379 # splitting by setting IFS to empty value.)
22380 as_nl='
22381 '
22382 IFS=" ""        $as_nl"
22383
22384 # Find who we are.  Look in the path if we contain no directory separator.
22385 case $0 in
22386   *[\\/]* ) as_myself=$0 ;;
22387   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $PATH
22389 do
22390   IFS=$as_save_IFS
22391   test -z "$as_dir" && as_dir=.
22392   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22393 done
22394 IFS=$as_save_IFS
22395
22396      ;;
22397 esac
22398 # We did not find ourselves, most probably we were run as `sh COMMAND'
22399 # in which case we are not to be found in the path.
22400 if test "x$as_myself" = x; then
22401   as_myself=$0
22402 fi
22403 if test ! -f "$as_myself"; then
22404   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22405   { (exit 1); exit 1; }
22406 fi
22407
22408 # Work around bugs in pre-3.0 UWIN ksh.
22409 for as_var in ENV MAIL MAILPATH
22410 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22411 done
22412 PS1='$ '
22413 PS2='> '
22414 PS4='+ '
22415
22416 # NLS nuisances.
22417 for as_var in \
22418   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22419   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22420   LC_TELEPHONE LC_TIME
22421 do
22422   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22423     eval $as_var=C; export $as_var
22424   else
22425     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22426   fi
22427 done
22428
22429 # Required to use basename.
22430 if expr a : '\(a\)' >/dev/null 2>&1 &&
22431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22432   as_expr=expr
22433 else
22434   as_expr=false
22435 fi
22436
22437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22438   as_basename=basename
22439 else
22440   as_basename=false
22441 fi
22442
22443
22444 # Name of the executable.
22445 as_me=`$as_basename -- "$0" ||
22446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22447          X"$0" : 'X\(//\)$' \| \
22448          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22449 echo X/"$0" |
22450     sed '/^.*\/\([^/][^/]*\)\/*$/{
22451             s//\1/
22452             q
22453           }
22454           /^X\/\(\/\/\)$/{
22455             s//\1/
22456             q
22457           }
22458           /^X\/\(\/\).*/{
22459             s//\1/
22460             q
22461           }
22462           s/.*/./; q'`
22463
22464 # CDPATH.
22465 $as_unset CDPATH
22466
22467
22468
22469   as_lineno_1=$LINENO
22470   as_lineno_2=$LINENO
22471   test "x$as_lineno_1" != "x$as_lineno_2" &&
22472   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22473
22474   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22475   # uniformly replaced by the line number.  The first 'sed' inserts a
22476   # line-number line after each line using $LINENO; the second 'sed'
22477   # does the real work.  The second script uses 'N' to pair each
22478   # line-number line with the line containing $LINENO, and appends
22479   # trailing '-' during substitution so that $LINENO is not a special
22480   # case at line end.
22481   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22482   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22483   # E. McMahon (1931-1989) for sed's syntax.  :-)
22484   sed -n '
22485     p
22486     /[$]LINENO/=
22487   ' <$as_myself |
22488     sed '
22489       s/[$]LINENO.*/&-/
22490       t lineno
22491       b
22492       :lineno
22493       N
22494       :loop
22495       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22496       t loop
22497       s/-\n.*//
22498     ' >$as_me.lineno &&
22499   chmod +x "$as_me.lineno" ||
22500     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22501    { (exit 1); exit 1; }; }
22502
22503   # Don't try to exec as it changes $[0], causing all sort of problems
22504   # (the dirname of $[0] is not the place where we might find the
22505   # original and so on.  Autoconf is especially sensitive to this).
22506   . "./$as_me.lineno"
22507   # Exit status is that of the last command.
22508   exit
22509 }
22510
22511
22512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22513   as_dirname=dirname
22514 else
22515   as_dirname=false
22516 fi
22517
22518 ECHO_C= ECHO_N= ECHO_T=
22519 case `echo -n x` in
22520 -n*)
22521   case `echo 'x\c'` in
22522   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22523   *)   ECHO_C='\c';;
22524   esac;;
22525 *)
22526   ECHO_N='-n';;
22527 esac
22528
22529 if expr a : '\(a\)' >/dev/null 2>&1 &&
22530    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22531   as_expr=expr
22532 else
22533   as_expr=false
22534 fi
22535
22536 rm -f conf$$ conf$$.exe conf$$.file
22537 if test -d conf$$.dir; then
22538   rm -f conf$$.dir/conf$$.file
22539 else
22540   rm -f conf$$.dir
22541   mkdir conf$$.dir
22542 fi
22543 echo >conf$$.file
22544 if ln -s conf$$.file conf$$ 2>/dev/null; then
22545   as_ln_s='ln -s'
22546   # ... but there are two gotchas:
22547   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22548   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22549   # In both cases, we have to default to `cp -p'.
22550   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22551     as_ln_s='cp -p'
22552 elif ln conf$$.file conf$$ 2>/dev/null; then
22553   as_ln_s=ln
22554 else
22555   as_ln_s='cp -p'
22556 fi
22557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22558 rmdir conf$$.dir 2>/dev/null
22559
22560 if mkdir -p . 2>/dev/null; then
22561   as_mkdir_p=:
22562 else
22563   test -d ./-p && rmdir ./-p
22564   as_mkdir_p=false
22565 fi
22566
22567 if test -x / >/dev/null 2>&1; then
22568   as_test_x='test -x'
22569 else
22570   if ls -dL / >/dev/null 2>&1; then
22571     as_ls_L_option=L
22572   else
22573     as_ls_L_option=
22574   fi
22575   as_test_x='
22576     eval sh -c '\''
22577       if test -d "$1"; then
22578         test -d "$1/.";
22579       else
22580         case $1 in
22581         -*)set "./$1";;
22582         esac;
22583         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22584         ???[sx]*):;;*)false;;esac;fi
22585     '\'' sh
22586   '
22587 fi
22588 as_executable_p=$as_test_x
22589
22590 # Sed expression to map a string onto a valid CPP name.
22591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22592
22593 # Sed expression to map a string onto a valid variable name.
22594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22595
22596
22597 exec 6>&1
22598
22599 # Save the log message, to keep $[0] and so on meaningful, and to
22600 # report actual input values of CONFIG_FILES etc. instead of their
22601 # values after options handling.
22602 ac_log="
22603 This file was extended by mod_chxj $as_me 1.0.0, which was
22604 generated by GNU Autoconf 2.61.  Invocation command line was
22605
22606   CONFIG_FILES    = $CONFIG_FILES
22607   CONFIG_HEADERS  = $CONFIG_HEADERS
22608   CONFIG_LINKS    = $CONFIG_LINKS
22609   CONFIG_COMMANDS = $CONFIG_COMMANDS
22610   $ $0 $@
22611
22612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22613 "
22614
22615 _ACEOF
22616
22617 cat >>$CONFIG_STATUS <<_ACEOF
22618 # Files that config.status was made for.
22619 config_files="$ac_config_files"
22620 config_headers="$ac_config_headers"
22621 config_commands="$ac_config_commands"
22622
22623 _ACEOF
22624
22625 cat >>$CONFIG_STATUS <<\_ACEOF
22626 ac_cs_usage="\
22627 \`$as_me' instantiates files from templates according to the
22628 current configuration.
22629
22630 Usage: $0 [OPTIONS] [FILE]...
22631
22632   -h, --help       print this help, then exit
22633   -V, --version    print version number and configuration settings, then exit
22634   -q, --quiet      do not print progress messages
22635   -d, --debug      don't remove temporary files
22636       --recheck    update $as_me by reconfiguring in the same conditions
22637   --file=FILE[:TEMPLATE]
22638                    instantiate the configuration file FILE
22639   --header=FILE[:TEMPLATE]
22640                    instantiate the configuration header FILE
22641
22642 Configuration files:
22643 $config_files
22644
22645 Configuration headers:
22646 $config_headers
22647
22648 Configuration commands:
22649 $config_commands
22650
22651 Report bugs to <bug-autoconf@gnu.org>."
22652
22653 _ACEOF
22654 cat >>$CONFIG_STATUS <<_ACEOF
22655 ac_cs_version="\\
22656 mod_chxj config.status 1.0.0
22657 configured by $0, generated by GNU Autoconf 2.61,
22658   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22659
22660 Copyright (C) 2006 Free Software Foundation, Inc.
22661 This config.status script is free software; the Free Software Foundation
22662 gives unlimited permission to copy, distribute and modify it."
22663
22664 ac_pwd='$ac_pwd'
22665 srcdir='$srcdir'
22666 INSTALL='$INSTALL'
22667 MKDIR_P='$MKDIR_P'
22668 _ACEOF
22669
22670 cat >>$CONFIG_STATUS <<\_ACEOF
22671 # If no file are specified by the user, then we need to provide default
22672 # value.  By we need to know if files were specified by the user.
22673 ac_need_defaults=:
22674 while test $# != 0
22675 do
22676   case $1 in
22677   --*=*)
22678     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22679     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22680     ac_shift=:
22681     ;;
22682   *)
22683     ac_option=$1
22684     ac_optarg=$2
22685     ac_shift=shift
22686     ;;
22687   esac
22688
22689   case $ac_option in
22690   # Handling of the options.
22691   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22692     ac_cs_recheck=: ;;
22693   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22694     echo "$ac_cs_version"; exit ;;
22695   --debug | --debu | --deb | --de | --d | -d )
22696     debug=: ;;
22697   --file | --fil | --fi | --f )
22698     $ac_shift
22699     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22700     ac_need_defaults=false;;
22701   --header | --heade | --head | --hea )
22702     $ac_shift
22703     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22704     ac_need_defaults=false;;
22705   --he | --h)
22706     # Conflict between --help and --header
22707     { echo "$as_me: error: ambiguous option: $1
22708 Try \`$0 --help' for more information." >&2
22709    { (exit 1); exit 1; }; };;
22710   --help | --hel | -h )
22711     echo "$ac_cs_usage"; exit ;;
22712   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22713   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22714     ac_cs_silent=: ;;
22715
22716   # This is an error.
22717   -*) { echo "$as_me: error: unrecognized option: $1
22718 Try \`$0 --help' for more information." >&2
22719    { (exit 1); exit 1; }; } ;;
22720
22721   *) ac_config_targets="$ac_config_targets $1"
22722      ac_need_defaults=false ;;
22723
22724   esac
22725   shift
22726 done
22727
22728 ac_configure_extra_args=
22729
22730 if $ac_cs_silent; then
22731   exec 6>/dev/null
22732   ac_configure_extra_args="$ac_configure_extra_args --silent"
22733 fi
22734
22735 _ACEOF
22736 cat >>$CONFIG_STATUS <<_ACEOF
22737 if \$ac_cs_recheck; then
22738   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22739   CONFIG_SHELL=$SHELL
22740   export CONFIG_SHELL
22741   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22742 fi
22743
22744 _ACEOF
22745 cat >>$CONFIG_STATUS <<\_ACEOF
22746 exec 5>>config.log
22747 {
22748   echo
22749   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22750 ## Running $as_me. ##
22751 _ASBOX
22752   echo "$ac_log"
22753 } >&5
22754
22755 _ACEOF
22756 cat >>$CONFIG_STATUS <<_ACEOF
22757 #
22758 # INIT-COMMANDS
22759 #
22760 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22761
22762 _ACEOF
22763
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22765
22766 # Handling of arguments.
22767 for ac_config_target in $ac_config_targets
22768 do
22769   case $ac_config_target in
22770     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22771     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22772     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22773     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22774
22775   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22777    { (exit 1); exit 1; }; };;
22778   esac
22779 done
22780
22781
22782 # If the user did not use the arguments to specify the items to instantiate,
22783 # then the envvar interface is used.  Set only those that are not.
22784 # We use the long form for the default assignment because of an extremely
22785 # bizarre bug on SunOS 4.1.3.
22786 if $ac_need_defaults; then
22787   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22788   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22789   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22790 fi
22791
22792 # Have a temporary directory for convenience.  Make it in the build tree
22793 # simply because there is no reason against having it here, and in addition,
22794 # creating and moving files from /tmp can sometimes cause problems.
22795 # Hook for its removal unless debugging.
22796 # Note that there is a small window in which the directory will not be cleaned:
22797 # after its creation but before its name has been assigned to `$tmp'.
22798 $debug ||
22799 {
22800   tmp=
22801   trap 'exit_status=$?
22802   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22803 ' 0
22804   trap '{ (exit 1); exit 1; }' 1 2 13 15
22805 }
22806 # Create a (secure) tmp directory for tmp files.
22807
22808 {
22809   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22810   test -n "$tmp" && test -d "$tmp"
22811 }  ||
22812 {
22813   tmp=./conf$$-$RANDOM
22814   (umask 077 && mkdir "$tmp")
22815 } ||
22816 {
22817    echo "$me: cannot create a temporary directory in ." >&2
22818    { (exit 1); exit 1; }
22819 }
22820
22821 #
22822 # Set up the sed scripts for CONFIG_FILES section.
22823 #
22824
22825 # No need to generate the scripts if there are no CONFIG_FILES.
22826 # This happens for instance when ./config.status config.h
22827 if test -n "$CONFIG_FILES"; then
22828
22829 _ACEOF
22830
22831
22832
22833 ac_delim='%!_!# '
22834 for ac_last_try in false false false false false :; do
22835   cat >conf$$subs.sed <<_ACEOF
22836 SHELL!$SHELL$ac_delim
22837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22843 exec_prefix!$exec_prefix$ac_delim
22844 prefix!$prefix$ac_delim
22845 program_transform_name!$program_transform_name$ac_delim
22846 bindir!$bindir$ac_delim
22847 sbindir!$sbindir$ac_delim
22848 libexecdir!$libexecdir$ac_delim
22849 datarootdir!$datarootdir$ac_delim
22850 datadir!$datadir$ac_delim
22851 sysconfdir!$sysconfdir$ac_delim
22852 sharedstatedir!$sharedstatedir$ac_delim
22853 localstatedir!$localstatedir$ac_delim
22854 includedir!$includedir$ac_delim
22855 oldincludedir!$oldincludedir$ac_delim
22856 docdir!$docdir$ac_delim
22857 infodir!$infodir$ac_delim
22858 htmldir!$htmldir$ac_delim
22859 dvidir!$dvidir$ac_delim
22860 pdfdir!$pdfdir$ac_delim
22861 psdir!$psdir$ac_delim
22862 libdir!$libdir$ac_delim
22863 localedir!$localedir$ac_delim
22864 mandir!$mandir$ac_delim
22865 DEFS!$DEFS$ac_delim
22866 ECHO_C!$ECHO_C$ac_delim
22867 ECHO_N!$ECHO_N$ac_delim
22868 ECHO_T!$ECHO_T$ac_delim
22869 LIBS!$LIBS$ac_delim
22870 build_alias!$build_alias$ac_delim
22871 host_alias!$host_alias$ac_delim
22872 target_alias!$target_alias$ac_delim
22873 build!$build$ac_delim
22874 build_cpu!$build_cpu$ac_delim
22875 build_vendor!$build_vendor$ac_delim
22876 build_os!$build_os$ac_delim
22877 host!$host$ac_delim
22878 host_cpu!$host_cpu$ac_delim
22879 host_vendor!$host_vendor$ac_delim
22880 host_os!$host_os$ac_delim
22881 target!$target$ac_delim
22882 target_cpu!$target_cpu$ac_delim
22883 target_vendor!$target_vendor$ac_delim
22884 target_os!$target_os$ac_delim
22885 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22886 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22887 INSTALL_DATA!$INSTALL_DATA$ac_delim
22888 am__isrc!$am__isrc$ac_delim
22889 CYGPATH_W!$CYGPATH_W$ac_delim
22890 PACKAGE!$PACKAGE$ac_delim
22891 VERSION!$VERSION$ac_delim
22892 ACLOCAL!$ACLOCAL$ac_delim
22893 AUTOCONF!$AUTOCONF$ac_delim
22894 AUTOMAKE!$AUTOMAKE$ac_delim
22895 AUTOHEADER!$AUTOHEADER$ac_delim
22896 MAKEINFO!$MAKEINFO$ac_delim
22897 install_sh!$install_sh$ac_delim
22898 STRIP!$STRIP$ac_delim
22899 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22900 mkdir_p!$mkdir_p$ac_delim
22901 AWK!$AWK$ac_delim
22902 SET_MAKE!$SET_MAKE$ac_delim
22903 am__leading_dot!$am__leading_dot$ac_delim
22904 AMTAR!$AMTAR$ac_delim
22905 am__tar!$am__tar$ac_delim
22906 am__untar!$am__untar$ac_delim
22907 CC!$CC$ac_delim
22908 CFLAGS!$CFLAGS$ac_delim
22909 LDFLAGS!$LDFLAGS$ac_delim
22910 CPPFLAGS!$CPPFLAGS$ac_delim
22911 ac_ct_CC!$ac_ct_CC$ac_delim
22912 EXEEXT!$EXEEXT$ac_delim
22913 OBJEXT!$OBJEXT$ac_delim
22914 DEPDIR!$DEPDIR$ac_delim
22915 am__include!$am__include$ac_delim
22916 am__quote!$am__quote$ac_delim
22917 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22918 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22919 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22920 CCDEPMODE!$CCDEPMODE$ac_delim
22921 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22922 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22923 CPP!$CPP$ac_delim
22924 GREP!$GREP$ac_delim
22925 EGREP!$EGREP$ac_delim
22926 LN_S!$LN_S$ac_delim
22927 ECHO!$ECHO$ac_delim
22928 AR!$AR$ac_delim
22929 RANLIB!$RANLIB$ac_delim
22930 CXX!$CXX$ac_delim
22931 CXXFLAGS!$CXXFLAGS$ac_delim
22932 ac_ct_CXX!$ac_ct_CXX$ac_delim
22933 _ACEOF
22934
22935   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22936     break
22937   elif $ac_last_try; then
22938     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22940    { (exit 1); exit 1; }; }
22941   else
22942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22943   fi
22944 done
22945
22946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22947 if test -n "$ac_eof"; then
22948   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22949   ac_eof=`expr $ac_eof + 1`
22950 fi
22951
22952 cat >>$CONFIG_STATUS <<_ACEOF
22953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22955 _ACEOF
22956 sed '
22957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22958 s/^/s,@/; s/!/@,|#_!!_#|/
22959 :n
22960 t n
22961 s/'"$ac_delim"'$/,g/; t
22962 s/$/\\/; p
22963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22964 ' >>$CONFIG_STATUS <conf$$subs.sed
22965 rm -f conf$$subs.sed
22966 cat >>$CONFIG_STATUS <<_ACEOF
22967 CEOF$ac_eof
22968 _ACEOF
22969
22970
22971 ac_delim='%!_!# '
22972 for ac_last_try in false false false false false :; do
22973   cat >conf$$subs.sed <<_ACEOF
22974 CXXDEPMODE!$CXXDEPMODE$ac_delim
22975 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22976 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22977 CXXCPP!$CXXCPP$ac_delim
22978 F77!$F77$ac_delim
22979 FFLAGS!$FFLAGS$ac_delim
22980 ac_ct_F77!$ac_ct_F77$ac_delim
22981 LIBTOOL!$LIBTOOL$ac_delim
22982 APXS2!$APXS2$ac_delim
22983 APXS!$APXS$ac_delim
22984 WAND_CONFIG!$WAND_CONFIG$ac_delim
22985 APR_CONFIG!$APR_CONFIG$ac_delim
22986 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22987 APU_CONFIG!$APU_CONFIG$ac_delim
22988 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22989 with_apache_header!$with_apache_header$ac_delim
22990 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22991 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22992 LIBOBJS!$LIBOBJS$ac_delim
22993 QDEFS!$QDEFS$ac_delim
22994 DDEFS!$DDEFS$ac_delim
22995 LTLIBOBJS!$LTLIBOBJS$ac_delim
22996 _ACEOF
22997
22998   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
22999     break
23000   elif $ac_last_try; then
23001     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23002 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23003    { (exit 1); exit 1; }; }
23004   else
23005     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23006   fi
23007 done
23008
23009 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23010 if test -n "$ac_eof"; then
23011   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23012   ac_eof=`expr $ac_eof + 1`
23013 fi
23014
23015 cat >>$CONFIG_STATUS <<_ACEOF
23016 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23018 _ACEOF
23019 sed '
23020 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23021 s/^/s,@/; s/!/@,|#_!!_#|/
23022 :n
23023 t n
23024 s/'"$ac_delim"'$/,g/; t
23025 s/$/\\/; p
23026 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23027 ' >>$CONFIG_STATUS <conf$$subs.sed
23028 rm -f conf$$subs.sed
23029 cat >>$CONFIG_STATUS <<_ACEOF
23030 :end
23031 s/|#_!!_#|//g
23032 CEOF$ac_eof
23033 _ACEOF
23034
23035
23036 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23037 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23038 # trailing colons and then remove the whole line if VPATH becomes empty
23039 # (actually we leave an empty line to preserve line numbers).
23040 if test "x$srcdir" = x.; then
23041   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23042 s/:*\$(srcdir):*/:/
23043 s/:*\${srcdir}:*/:/
23044 s/:*@srcdir@:*/:/
23045 s/^\([^=]*=[     ]*\):*/\1/
23046 s/:*$//
23047 s/^[^=]*=[       ]*$//
23048 }'
23049 fi
23050
23051 cat >>$CONFIG_STATUS <<\_ACEOF
23052 fi # test -n "$CONFIG_FILES"
23053
23054
23055 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23056 do
23057   case $ac_tag in
23058   :[FHLC]) ac_mode=$ac_tag; continue;;
23059   esac
23060   case $ac_mode$ac_tag in
23061   :[FHL]*:*);;
23062   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23063 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23064    { (exit 1); exit 1; }; };;
23065   :[FH]-) ac_tag=-:-;;
23066   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23067   esac
23068   ac_save_IFS=$IFS
23069   IFS=:
23070   set x $ac_tag
23071   IFS=$ac_save_IFS
23072   shift
23073   ac_file=$1
23074   shift
23075
23076   case $ac_mode in
23077   :L) ac_source=$1;;
23078   :[FH])
23079     ac_file_inputs=
23080     for ac_f
23081     do
23082       case $ac_f in
23083       -) ac_f="$tmp/stdin";;
23084       *) # Look for the file first in the build tree, then in the source tree
23085          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23086          # because $ac_f cannot contain `:'.
23087          test -f "$ac_f" ||
23088            case $ac_f in
23089            [\\/$]*) false;;
23090            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23091            esac ||
23092            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23093 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23094    { (exit 1); exit 1; }; };;
23095       esac
23096       ac_file_inputs="$ac_file_inputs $ac_f"
23097     done
23098
23099     # Let's still pretend it is `configure' which instantiates (i.e., don't
23100     # use $as_me), people would be surprised to read:
23101     #    /* config.h.  Generated by config.status.  */
23102     configure_input="Generated from "`IFS=:
23103           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23104     if test x"$ac_file" != x-; then
23105       configure_input="$ac_file.  $configure_input"
23106       { echo "$as_me:$LINENO: creating $ac_file" >&5
23107 echo "$as_me: creating $ac_file" >&6;}
23108     fi
23109
23110     case $ac_tag in
23111     *:-:* | *:-) cat >"$tmp/stdin";;
23112     esac
23113     ;;
23114   esac
23115
23116   ac_dir=`$as_dirname -- "$ac_file" ||
23117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23118          X"$ac_file" : 'X\(//\)[^/]' \| \
23119          X"$ac_file" : 'X\(//\)$' \| \
23120          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23121 echo X"$ac_file" |
23122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23123             s//\1/
23124             q
23125           }
23126           /^X\(\/\/\)[^/].*/{
23127             s//\1/
23128             q
23129           }
23130           /^X\(\/\/\)$/{
23131             s//\1/
23132             q
23133           }
23134           /^X\(\/\).*/{
23135             s//\1/
23136             q
23137           }
23138           s/.*/./; q'`
23139   { as_dir="$ac_dir"
23140   case $as_dir in #(
23141   -*) as_dir=./$as_dir;;
23142   esac
23143   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23144     as_dirs=
23145     while :; do
23146       case $as_dir in #(
23147       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23148       *) as_qdir=$as_dir;;
23149       esac
23150       as_dirs="'$as_qdir' $as_dirs"
23151       as_dir=`$as_dirname -- "$as_dir" ||
23152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23153          X"$as_dir" : 'X\(//\)[^/]' \| \
23154          X"$as_dir" : 'X\(//\)$' \| \
23155          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23156 echo X"$as_dir" |
23157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23158             s//\1/
23159             q
23160           }
23161           /^X\(\/\/\)[^/].*/{
23162             s//\1/
23163             q
23164           }
23165           /^X\(\/\/\)$/{
23166             s//\1/
23167             q
23168           }
23169           /^X\(\/\).*/{
23170             s//\1/
23171             q
23172           }
23173           s/.*/./; q'`
23174       test -d "$as_dir" && break
23175     done
23176     test -z "$as_dirs" || eval "mkdir $as_dirs"
23177   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23178 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23179    { (exit 1); exit 1; }; }; }
23180   ac_builddir=.
23181
23182 case "$ac_dir" in
23183 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23184 *)
23185   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23186   # A ".." for each directory in $ac_dir_suffix.
23187   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23188   case $ac_top_builddir_sub in
23189   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23190   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23191   esac ;;
23192 esac
23193 ac_abs_top_builddir=$ac_pwd
23194 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23195 # for backward compatibility:
23196 ac_top_builddir=$ac_top_build_prefix
23197
23198 case $srcdir in
23199   .)  # We are building in place.
23200     ac_srcdir=.
23201     ac_top_srcdir=$ac_top_builddir_sub
23202     ac_abs_top_srcdir=$ac_pwd ;;
23203   [\\/]* | ?:[\\/]* )  # Absolute name.
23204     ac_srcdir=$srcdir$ac_dir_suffix;
23205     ac_top_srcdir=$srcdir
23206     ac_abs_top_srcdir=$srcdir ;;
23207   *) # Relative name.
23208     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23209     ac_top_srcdir=$ac_top_build_prefix$srcdir
23210     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23211 esac
23212 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23213
23214
23215   case $ac_mode in
23216   :F)
23217   #
23218   # CONFIG_FILE
23219   #
23220
23221   case $INSTALL in
23222   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23223   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23224   esac
23225   ac_MKDIR_P=$MKDIR_P
23226   case $MKDIR_P in
23227   [\\/$]* | ?:[\\/]* ) ;;
23228   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23229   esac
23230 _ACEOF
23231
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233 # If the template does not know about datarootdir, expand it.
23234 # FIXME: This hack should be removed a few years after 2.60.
23235 ac_datarootdir_hack=; ac_datarootdir_seen=
23236
23237 case `sed -n '/datarootdir/ {
23238   p
23239   q
23240 }
23241 /@datadir@/p
23242 /@docdir@/p
23243 /@infodir@/p
23244 /@localedir@/p
23245 /@mandir@/p
23246 ' $ac_file_inputs` in
23247 *datarootdir*) ac_datarootdir_seen=yes;;
23248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23249   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23250 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23251 _ACEOF
23252 cat >>$CONFIG_STATUS <<_ACEOF
23253   ac_datarootdir_hack='
23254   s&@datadir@&$datadir&g
23255   s&@docdir@&$docdir&g
23256   s&@infodir@&$infodir&g
23257   s&@localedir@&$localedir&g
23258   s&@mandir@&$mandir&g
23259     s&\\\${datarootdir}&$datarootdir&g' ;;
23260 esac
23261 _ACEOF
23262
23263 # Neutralize VPATH when `$srcdir' = `.'.
23264 # Shell code in configure.ac might set extrasub.
23265 # FIXME: do we really want to maintain this feature?
23266 cat >>$CONFIG_STATUS <<_ACEOF
23267   sed "$ac_vpsub
23268 $extrasub
23269 _ACEOF
23270 cat >>$CONFIG_STATUS <<\_ACEOF
23271 :t
23272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23273 s&@configure_input@&$configure_input&;t t
23274 s&@top_builddir@&$ac_top_builddir_sub&;t t
23275 s&@srcdir@&$ac_srcdir&;t t
23276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23277 s&@top_srcdir@&$ac_top_srcdir&;t t
23278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23279 s&@builddir@&$ac_builddir&;t t
23280 s&@abs_builddir@&$ac_abs_builddir&;t t
23281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23282 s&@INSTALL@&$ac_INSTALL&;t t
23283 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23284 $ac_datarootdir_hack
23285 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23286
23287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23288   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23289   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23290   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23291 which seems to be undefined.  Please make sure it is defined." >&5
23292 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23293 which seems to be undefined.  Please make sure it is defined." >&2;}
23294
23295   rm -f "$tmp/stdin"
23296   case $ac_file in
23297   -) cat "$tmp/out"; rm -f "$tmp/out";;
23298   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23299   esac
23300  ;;
23301   :H)
23302   #
23303   # CONFIG_HEADER
23304   #
23305 _ACEOF
23306
23307 # Transform confdefs.h into a sed script `conftest.defines', that
23308 # substitutes the proper values into config.h.in to produce config.h.
23309 rm -f conftest.defines conftest.tail
23310 # First, append a space to every undef/define line, to ease matching.
23311 echo 's/$/ /' >conftest.defines
23312 # Then, protect against being on the right side of a sed subst, or in
23313 # an unquoted here document, in config.status.  If some macros were
23314 # called several times there might be several #defines for the same
23315 # symbol, which is useless.  But do not sort them, since the last
23316 # AC_DEFINE must be honored.
23317 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23318 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23319 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23320 # PARAMS is the parameter list in the macro definition--in most cases, it's
23321 # just an empty string.
23322 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23323 ac_dB='\\)[      (].*,\\1define\\2'
23324 ac_dC=' '
23325 ac_dD=' ,'
23326
23327 uniq confdefs.h |
23328   sed -n '
23329         t rset
23330         :rset
23331         s/^[     ]*#[    ]*define[       ][      ]*//
23332         t ok
23333         d
23334         :ok
23335         s/[\\&,]/\\&/g
23336         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23337         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23338   ' >>conftest.defines
23339
23340 # Remove the space that was appended to ease matching.
23341 # Then replace #undef with comments.  This is necessary, for
23342 # example, in the case of _POSIX_SOURCE, which is predefined and required
23343 # on some systems where configure will not decide to define it.
23344 # (The regexp can be short, since the line contains either #define or #undef.)
23345 echo 's/ $//
23346 s,^[     #]*u.*,/* & */,' >>conftest.defines
23347
23348 # Break up conftest.defines:
23349 ac_max_sed_lines=50
23350
23351 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23352 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23353 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23354 # et cetera.
23355 ac_in='$ac_file_inputs'
23356 ac_out='"$tmp/out1"'
23357 ac_nxt='"$tmp/out2"'
23358
23359 while :
23360 do
23361   # Write a here document:
23362     cat >>$CONFIG_STATUS <<_ACEOF
23363     # First, check the format of the line:
23364     cat >"\$tmp/defines.sed" <<\\CEOF
23365 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23366 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23367 b
23368 :def
23369 _ACEOF
23370   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23371   echo 'CEOF
23372     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23373   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23374   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23375   grep . conftest.tail >/dev/null || break
23376   rm -f conftest.defines
23377   mv conftest.tail conftest.defines
23378 done
23379 rm -f conftest.defines conftest.tail
23380
23381 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23382 cat >>$CONFIG_STATUS <<\_ACEOF
23383   if test x"$ac_file" != x-; then
23384     echo "/* $configure_input  */" >"$tmp/config.h"
23385     cat "$ac_result" >>"$tmp/config.h"
23386     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23387       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23388 echo "$as_me: $ac_file is unchanged" >&6;}
23389     else
23390       rm -f $ac_file
23391       mv "$tmp/config.h" $ac_file
23392     fi
23393   else
23394     echo "/* $configure_input  */"
23395     cat "$ac_result"
23396   fi
23397   rm -f "$tmp/out12"
23398 # Compute $ac_file's index in $config_headers.
23399 _am_stamp_count=1
23400 for _am_header in $config_headers :; do
23401   case $_am_header in
23402     $ac_file | $ac_file:* )
23403       break ;;
23404     * )
23405       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23406   esac
23407 done
23408 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23409 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23410          X$ac_file : 'X\(//\)[^/]' \| \
23411          X$ac_file : 'X\(//\)$' \| \
23412          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23413 echo X$ac_file |
23414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23415             s//\1/
23416             q
23417           }
23418           /^X\(\/\/\)[^/].*/{
23419             s//\1/
23420             q
23421           }
23422           /^X\(\/\/\)$/{
23423             s//\1/
23424             q
23425           }
23426           /^X\(\/\).*/{
23427             s//\1/
23428             q
23429           }
23430           s/.*/./; q'`/stamp-h$_am_stamp_count
23431  ;;
23432
23433   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23434 echo "$as_me: executing $ac_file commands" >&6;}
23435  ;;
23436   esac
23437
23438
23439   case $ac_file$ac_mode in
23440     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23441   # Strip MF so we end up with the name of the file.
23442   mf=`echo "$mf" | sed -e 's/:.*$//'`
23443   # Check whether this is an Automake generated Makefile or not.
23444   # We used to match only the files named `Makefile.in', but
23445   # some people rename them; so instead we look at the file content.
23446   # Grep'ing the first line is not enough: some people post-process
23447   # each Makefile.in and add a new line on top of each file to say so.
23448   # Grep'ing the whole file is not good either: AIX grep has a line
23449   # limit of 2048, but all sed's we know have understand at least 4000.
23450   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23451     dirpart=`$as_dirname -- "$mf" ||
23452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23453          X"$mf" : 'X\(//\)[^/]' \| \
23454          X"$mf" : 'X\(//\)$' \| \
23455          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23456 echo X"$mf" |
23457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23458             s//\1/
23459             q
23460           }
23461           /^X\(\/\/\)[^/].*/{
23462             s//\1/
23463             q
23464           }
23465           /^X\(\/\/\)$/{
23466             s//\1/
23467             q
23468           }
23469           /^X\(\/\).*/{
23470             s//\1/
23471             q
23472           }
23473           s/.*/./; q'`
23474   else
23475     continue
23476   fi
23477   # Extract the definition of DEPDIR, am__include, and am__quote
23478   # from the Makefile without running `make'.
23479   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23480   test -z "$DEPDIR" && continue
23481   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23482   test -z "am__include" && continue
23483   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23484   # When using ansi2knr, U may be empty or an underscore; expand it
23485   U=`sed -n 's/^U = //p' < "$mf"`
23486   # Find all dependency output files, they are included files with
23487   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23488   # simplest approach to changing $(DEPDIR) to its actual value in the
23489   # expansion.
23490   for file in `sed -n "
23491     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23492        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23493     # Make sure the directory exists.
23494     test -f "$dirpart/$file" && continue
23495     fdir=`$as_dirname -- "$file" ||
23496 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23497          X"$file" : 'X\(//\)[^/]' \| \
23498          X"$file" : 'X\(//\)$' \| \
23499          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23500 echo X"$file" |
23501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23502             s//\1/
23503             q
23504           }
23505           /^X\(\/\/\)[^/].*/{
23506             s//\1/
23507             q
23508           }
23509           /^X\(\/\/\)$/{
23510             s//\1/
23511             q
23512           }
23513           /^X\(\/\).*/{
23514             s//\1/
23515             q
23516           }
23517           s/.*/./; q'`
23518     { as_dir=$dirpart/$fdir
23519   case $as_dir in #(
23520   -*) as_dir=./$as_dir;;
23521   esac
23522   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23523     as_dirs=
23524     while :; do
23525       case $as_dir in #(
23526       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23527       *) as_qdir=$as_dir;;
23528       esac
23529       as_dirs="'$as_qdir' $as_dirs"
23530       as_dir=`$as_dirname -- "$as_dir" ||
23531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23532          X"$as_dir" : 'X\(//\)[^/]' \| \
23533          X"$as_dir" : 'X\(//\)$' \| \
23534          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23535 echo X"$as_dir" |
23536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23537             s//\1/
23538             q
23539           }
23540           /^X\(\/\/\)[^/].*/{
23541             s//\1/
23542             q
23543           }
23544           /^X\(\/\/\)$/{
23545             s//\1/
23546             q
23547           }
23548           /^X\(\/\).*/{
23549             s//\1/
23550             q
23551           }
23552           s/.*/./; q'`
23553       test -d "$as_dir" && break
23554     done
23555     test -z "$as_dirs" || eval "mkdir $as_dirs"
23556   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23557 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23558    { (exit 1); exit 1; }; }; }
23559     # echo "creating $dirpart/$file"
23560     echo '# dummy' > "$dirpart/$file"
23561   done
23562 done
23563  ;;
23564
23565   esac
23566 done # for ac_tag
23567
23568
23569 { (exit 0); exit 0; }
23570 _ACEOF
23571 chmod +x $CONFIG_STATUS
23572 ac_clean_files=$ac_clean_files_save
23573
23574
23575 # configure is writing to config.log, and then calls config.status.
23576 # config.status does its own redirection, appending to config.log.
23577 # Unfortunately, on DOS this fails, as config.log is still kept open
23578 # by configure, so config.status won't be able to write to it; its
23579 # output is simply discarded.  So we exec the FD to /dev/null,
23580 # effectively closing config.log, so it can be properly (re)opened and
23581 # appended to by config.status.  When coming back to configure, we
23582 # need to make the FD available again.
23583 if test "$no_create" != yes; then
23584   ac_cs_success=:
23585   ac_config_status_args=
23586   test "$silent" = yes &&
23587     ac_config_status_args="$ac_config_status_args --quiet"
23588   exec 5>/dev/null
23589   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23590   exec 5>>config.log
23591   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23592   # would make configure fail if this is the last instruction.
23593   $ac_cs_success || { (exit 1); exit 1; }
23594 fi
23595