OSDN Git Service

* merge from 0.8.7
[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-dump-log   When the log of conversion is output, it specifies it with the output file.
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500   --with-pic              try to use only PIC/non-PIC objects [default=use
1501                           both]
1502   --with-tags[=TAGS]      include additional configurations [automatic]
1503   --with-apache-header=ARG The directory with the header file of apache2.x is specified.
1504   --with-apxs=ARG Path of apxs program file.
1505   --with-apr-config=ARG  Path of apr-config program file.
1506   --with-apu-config=ARG  Path of apu-config program file.
1507
1508 Some influential environment variables:
1509   CC          C compiler command
1510   CFLAGS      C compiler flags
1511   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512               nonstandard directory <lib dir>
1513   LIBS        libraries to pass to the linker, e.g. -l<library>
1514   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515               you have headers in a nonstandard directory <include dir>
1516   CPP         C preprocessor
1517   CXX         C++ compiler command
1518   CXXFLAGS    C++ compiler flags
1519   CXXCPP      C++ preprocessor
1520   F77         Fortran 77 compiler command
1521   FFLAGS      Fortran 77 compiler flags
1522
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1525
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" || continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 mod_chxj configure 1.0.0
1587 generated by GNU Autoconf 2.61
1588
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594   exit
1595 fi
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1599
1600 It was created by mod_chxj $as_me 1.0.0, which was
1601 generated by GNU Autoconf 2.61.  Invocation command line was
1602
1603   $ $0 $@
1604
1605 _ACEOF
1606 exec 5>>config.log
1607 {
1608 cat <<_ASUNAME
1609 ## --------- ##
1610 ## Platform. ##
1611 ## --------- ##
1612
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1621
1622 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1623 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1626 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1627 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1628 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1629
1630 _ASUNAME
1631
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635   IFS=$as_save_IFS
1636   test -z "$as_dir" && as_dir=.
1637   echo "PATH: $as_dir"
1638 done
1639 IFS=$as_save_IFS
1640
1641 } >&5
1642
1643 cat >&5 <<_ACEOF
1644
1645
1646 ## ----------- ##
1647 ## Core tests. ##
1648 ## ----------- ##
1649
1650 _ACEOF
1651
1652
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_configure_args=
1659 ac_configure_args0=
1660 ac_configure_args1=
1661 ac_must_keep_next=false
1662 for ac_pass in 1 2
1663 do
1664   for ac_arg
1665   do
1666     case $ac_arg in
1667     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669     | -silent | --silent | --silen | --sile | --sil)
1670       continue ;;
1671     *\'*)
1672       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673     esac
1674     case $ac_pass in
1675     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676     2)
1677       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678       if test $ac_must_keep_next = true; then
1679         ac_must_keep_next=false # Got value, back to normal.
1680       else
1681         case $ac_arg in
1682           *=* | --config-cache | -C | -disable-* | --disable-* \
1683           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685           | -with-* | --with-* | -without-* | --without-* | --x)
1686             case "$ac_configure_args0 " in
1687               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688             esac
1689             ;;
1690           -* ) ac_must_keep_next=true ;;
1691         esac
1692       fi
1693       ac_configure_args="$ac_configure_args '$ac_arg'"
1694       ;;
1695     esac
1696   done
1697 done
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log.  We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707   # Save into config.log some information that might help in debugging.
1708   {
1709     echo
1710
1711     cat <<\_ASBOX
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1715 _ASBOX
1716     echo
1717     # The following way of writing the cache mishandles newlines in values,
1718 (
1719   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720     eval ac_val=\$$ac_var
1721     case $ac_val in #(
1722     *${as_nl}*)
1723       case $ac_var in #(
1724       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726       esac
1727       case $ac_var in #(
1728       _ | IFS | as_nl) ;; #(
1729       *) $as_unset $ac_var ;;
1730       esac ;;
1731     esac
1732   done
1733   (set) 2>&1 |
1734     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735     *${as_nl}ac_space=\ *)
1736       sed -n \
1737         "s/'\''/'\''\\\\'\'''\''/g;
1738           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739       ;; #(
1740     *)
1741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742       ;;
1743     esac |
1744     sort
1745 )
1746     echo
1747
1748     cat <<\_ASBOX
1749 ## ----------------- ##
1750 ## Output variables. ##
1751 ## ----------------- ##
1752 _ASBOX
1753     echo
1754     for ac_var in $ac_subst_vars
1755     do
1756       eval ac_val=\$$ac_var
1757       case $ac_val in
1758       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759       esac
1760       echo "$ac_var='\''$ac_val'\''"
1761     done | sort
1762     echo
1763
1764     if test -n "$ac_subst_files"; then
1765       cat <<\_ASBOX
1766 ## ------------------- ##
1767 ## File substitutions. ##
1768 ## ------------------- ##
1769 _ASBOX
1770       echo
1771       for ac_var in $ac_subst_files
1772       do
1773         eval ac_val=\$$ac_var
1774         case $ac_val in
1775         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776         esac
1777         echo "$ac_var='\''$ac_val'\''"
1778       done | sort
1779       echo
1780     fi
1781
1782     if test -s confdefs.h; then
1783       cat <<\_ASBOX
1784 ## ----------- ##
1785 ## confdefs.h. ##
1786 ## ----------- ##
1787 _ASBOX
1788       echo
1789       cat confdefs.h
1790       echo
1791     fi
1792     test "$ac_signal" != 0 &&
1793       echo "$as_me: caught signal $ac_signal"
1794     echo "$as_me: exit $exit_status"
1795   } >&5
1796   rm -f core *.core core.conftest.* &&
1797     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798     exit $exit_status
1799 ' 0
1800 for ac_signal in 1 2 13 15; do
1801   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 done
1803 ac_signal=0
1804
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1807
1808 # Predefined preprocessor variables.
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 _ACEOF
1833
1834
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838   set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841 else
1842   set x "$ac_default_prefix/share/config.site" \
1843         "$ac_default_prefix/etc/config.site"
1844 fi
1845 shift
1846 for ac_site_file
1847 do
1848   if test -r "$ac_site_file"; then
1849     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851     sed 's/^/| /' "$ac_site_file" >&5
1852     . "$ac_site_file"
1853   fi
1854 done
1855
1856 if test -r "$cache_file"; then
1857   # Some versions of bash will fail to source /dev/null (special
1858   # files actually), so we avoid doing that.
1859   if test -f "$cache_file"; then
1860     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1862     case $cache_file in
1863       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864       *)                      . "./$cache_file";;
1865     esac
1866   fi
1867 else
1868   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1870   >$cache_file
1871 fi
1872
1873 # Check that the precious variables saved in the cache have kept the same
1874 # value.
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878   eval ac_new_set=\$ac_env_${ac_var}_set
1879   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880   eval ac_new_val=\$ac_env_${ac_var}_value
1881   case $ac_old_set,$ac_new_set in
1882     set,)
1883       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885       ac_cache_corrupted=: ;;
1886     ,set)
1887       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889       ac_cache_corrupted=: ;;
1890     ,);;
1891     *)
1892       if test "x$ac_old_val" != "x$ac_new_val"; then
1893         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896 echo "$as_me:   former value:  $ac_old_val" >&2;}
1897         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898 echo "$as_me:   current value: $ac_new_val" >&2;}
1899         ac_cache_corrupted=:
1900       fi;;
1901   esac
1902   # Pass precious variables to config.status.
1903   if test "$ac_new_set" = set; then
1904     case $ac_new_val in
1905     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906     *) ac_arg=$ac_var=$ac_new_val ;;
1907     esac
1908     case " $ac_configure_args " in
1909       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911     esac
1912   fi
1913 done
1914 if $ac_cache_corrupted; then
1915   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954
1955 ac_aux_dir=
1956 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1957   if test -f "$ac_dir/install-sh"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/install-sh -c"
1960     break
1961   elif test -f "$ac_dir/install.sh"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/install.sh -c"
1964     break
1965   elif test -f "$ac_dir/shtool"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/shtool install -c"
1968     break
1969   fi
1970 done
1971 if test -z "$ac_aux_dir"; then
1972   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1973 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977 # These three variables are undocumented and unsupported,
1978 # and are intended to be withdrawn in a future Autoconf release.
1979 # They can cause serious problems if a builder's source tree is in a directory
1980 # whose full name contains unusual characters.
1981 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1982 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1983 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1984
1985
1986 # Make sure we can run config.sub.
1987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1988   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1989 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1990    { (exit 1); exit 1; }; }
1991
1992 { echo "$as_me:$LINENO: checking build system type" >&5
1993 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1994 if test "${ac_cv_build+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   ac_build_alias=$build_alias
1998 test "x$ac_build_alias" = x &&
1999   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2000 test "x$ac_build_alias" = x &&
2001   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2002 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2003    { (exit 1); exit 1; }; }
2004 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2005   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2006 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2007    { (exit 1); exit 1; }; }
2008
2009 fi
2010 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2011 echo "${ECHO_T}$ac_cv_build" >&6; }
2012 case $ac_cv_build in
2013 *-*-*) ;;
2014 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2015 echo "$as_me: error: invalid value of canonical build" >&2;}
2016    { (exit 1); exit 1; }; };;
2017 esac
2018 build=$ac_cv_build
2019 ac_save_IFS=$IFS; IFS='-'
2020 set x $ac_cv_build
2021 shift
2022 build_cpu=$1
2023 build_vendor=$2
2024 shift; shift
2025 # Remember, the first character of IFS is used to create $*,
2026 # except with old shells:
2027 build_os=$*
2028 IFS=$ac_save_IFS
2029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2030
2031
2032 { echo "$as_me:$LINENO: checking host system type" >&5
2033 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2034 if test "${ac_cv_host+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test "x$host_alias" = x; then
2038   ac_cv_host=$ac_cv_build
2039 else
2040   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2041     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2042 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2043    { (exit 1); exit 1; }; }
2044 fi
2045
2046 fi
2047 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2048 echo "${ECHO_T}$ac_cv_host" >&6; }
2049 case $ac_cv_host in
2050 *-*-*) ;;
2051 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2052 echo "$as_me: error: invalid value of canonical host" >&2;}
2053    { (exit 1); exit 1; }; };;
2054 esac
2055 host=$ac_cv_host
2056 ac_save_IFS=$IFS; IFS='-'
2057 set x $ac_cv_host
2058 shift
2059 host_cpu=$1
2060 host_vendor=$2
2061 shift; shift
2062 # Remember, the first character of IFS is used to create $*,
2063 # except with old shells:
2064 host_os=$*
2065 IFS=$ac_save_IFS
2066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2067
2068
2069 { echo "$as_me:$LINENO: checking target system type" >&5
2070 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2071 if test "${ac_cv_target+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test "x$target_alias" = x; then
2075   ac_cv_target=$ac_cv_host
2076 else
2077   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2078     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2079 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2080    { (exit 1); exit 1; }; }
2081 fi
2082
2083 fi
2084 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2085 echo "${ECHO_T}$ac_cv_target" >&6; }
2086 case $ac_cv_target in
2087 *-*-*) ;;
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2089 echo "$as_me: error: invalid value of canonical target" >&2;}
2090    { (exit 1); exit 1; }; };;
2091 esac
2092 target=$ac_cv_target
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_target
2095 shift
2096 target_cpu=$1
2097 target_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 target_os=$*
2102 IFS=$ac_save_IFS
2103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2104
2105
2106 # The aliases save the names the user supplied, while $host etc.
2107 # will get canonicalized.
2108 test -n "$target_alias" &&
2109   test "$program_prefix$program_suffix$program_transform_name" = \
2110     NONENONEs,x,x, &&
2111   program_prefix=${target_alias}-
2112 am__api_version='1.10'
2113
2114 # Find a good install program.  We prefer a C program (faster),
2115 # so one script is as good as another.  But avoid the broken or
2116 # incompatible versions:
2117 # SysV /etc/install, /usr/sbin/install
2118 # SunOS /usr/etc/install
2119 # IRIX /sbin/install
2120 # AIX /bin/install
2121 # AmigaOS /C/install, which installs bootblocks on floppy discs
2122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125 # OS/2's system install, which has a completely different semantic
2126 # ./install, which can be erroneously created by make from ./install.sh.
2127 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2129 if test -z "$INSTALL"; then
2130 if test "${ac_cv_path_install+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   # Account for people who put trailing slashes in PATH elements.
2139 case $as_dir/ in
2140   ./ | .// | /cC/* | \
2141   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2143   /usr/ucb/* ) ;;
2144   *)
2145     # OSF1 and SCO ODT 3.0 have their own names for install.
2146     # Don't use installbsd from OSF since it installs stuff as root
2147     # by default.
2148     for ac_prog in ginstall scoinst install; do
2149       for ac_exec_ext in '' $ac_executable_extensions; do
2150         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151           if test $ac_prog = install &&
2152             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153             # AIX install.  It has an incompatible calling convention.
2154             :
2155           elif test $ac_prog = install &&
2156             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157             # program-specific install script used by HP pwplus--don't use.
2158             :
2159           else
2160             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2161             break 3
2162           fi
2163         fi
2164       done
2165     done
2166     ;;
2167 esac
2168 done
2169 IFS=$as_save_IFS
2170
2171
2172 fi
2173   if test "${ac_cv_path_install+set}" = set; then
2174     INSTALL=$ac_cv_path_install
2175   else
2176     # As a last resort, use the slow shell script.  Don't cache a
2177     # value for INSTALL within a source directory, because that will
2178     # break other packages using the cache if that directory is
2179     # removed, or if the value is a relative name.
2180     INSTALL=$ac_install_sh
2181   fi
2182 fi
2183 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2184 echo "${ECHO_T}$INSTALL" >&6; }
2185
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2189
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2191
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2193
2194 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2196 # Just in case
2197 sleep 1
2198 echo timestamp > conftest.file
2199 # Do `set' in a subshell so we don't clobber the current shell's
2200 # arguments.  Must try -L first in case configure is actually a
2201 # symlink; some systems play weird games with the mod time of symlinks
2202 # (eg FreeBSD returns the mod time of the symlink's containing
2203 # directory).
2204 if (
2205    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206    if test "$*" = "X"; then
2207       # -L didn't work.
2208       set X `ls -t $srcdir/configure conftest.file`
2209    fi
2210    rm -f conftest.file
2211    if test "$*" != "X $srcdir/configure conftest.file" \
2212       && test "$*" != "X conftest.file $srcdir/configure"; then
2213
2214       # If neither matched, then we have a broken ls.  This can happen
2215       # if, for instance, CONFIG_SHELL is bash and it inherits a
2216       # broken ls alias from the environment.  This has actually
2217       # happened.  Such a system could not be considered "sane".
2218       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2219 alias in your environment" >&5
2220 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2221 alias in your environment" >&2;}
2222    { (exit 1); exit 1; }; }
2223    fi
2224
2225    test "$2" = conftest.file
2226    )
2227 then
2228    # Ok.
2229    :
2230 else
2231    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232 Check your system clock" >&5
2233 echo "$as_me: error: newly created file is older than distributed files!
2234 Check your system clock" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2239 test "$program_prefix" != NONE &&
2240   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241 # Use a double $ so make ignores it.
2242 test "$program_suffix" != NONE &&
2243   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244 # Double any \ or $.  echo might interpret backslashes.
2245 # By default was `s,x,x', remove it if useless.
2246 cat <<\_ACEOF >conftest.sed
2247 s/[\\$]/&&/g;s/;s,x,x,$//
2248 _ACEOF
2249 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2250 rm -f conftest.sed
2251
2252 # expand $ac_aux_dir to an absolute path
2253 am_aux_dir=`cd $ac_aux_dir && pwd`
2254
2255 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2256 # Use eval to expand $SHELL
2257 if eval "$MISSING --run true"; then
2258   am_missing_run="$MISSING --run "
2259 else
2260   am_missing_run=
2261   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2262 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2263 fi
2264
2265 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2266 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2267 if test -z "$MKDIR_P"; then
2268   if test "${ac_cv_path_mkdir+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276   for ac_prog in mkdir gmkdir; do
2277          for ac_exec_ext in '' $ac_executable_extensions; do
2278            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2279            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2280              'mkdir (GNU coreutils) '* | \
2281              'mkdir (coreutils) '* | \
2282              'mkdir (fileutils) '4.1*)
2283                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2284                break 3;;
2285            esac
2286          done
2287        done
2288 done
2289 IFS=$as_save_IFS
2290
2291 fi
2292
2293   if test "${ac_cv_path_mkdir+set}" = set; then
2294     MKDIR_P="$ac_cv_path_mkdir -p"
2295   else
2296     # As a last resort, use the slow shell script.  Don't cache a
2297     # value for MKDIR_P within a source directory, because that will
2298     # break other packages using the cache if that directory is
2299     # removed, or if the value is a relative name.
2300     test -d ./--version && rmdir ./--version
2301     MKDIR_P="$ac_install_sh -d"
2302   fi
2303 fi
2304 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2305 echo "${ECHO_T}$MKDIR_P" >&6; }
2306
2307 mkdir_p="$MKDIR_P"
2308 case $mkdir_p in
2309   [\\/$]* | ?:[\\/]*) ;;
2310   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2311 esac
2312
2313 for ac_prog in gawk mawk nawk awk
2314 do
2315   # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_AWK+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$AWK"; then
2323   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332     ac_cv_prog_AWK="$ac_prog"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 AWK=$ac_cv_prog_AWK
2343 if test -n "$AWK"; then
2344   { echo "$as_me:$LINENO: result: $AWK" >&5
2345 echo "${ECHO_T}$AWK" >&6; }
2346 else
2347   { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2349 fi
2350
2351
2352   test -n "$AWK" && break
2353 done
2354
2355 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2356 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2357 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2358 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   cat >conftest.make <<\_ACEOF
2362 SHELL = /bin/sh
2363 all:
2364         @echo '@@@%%%=$(MAKE)=@@@%%%'
2365 _ACEOF
2366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2368   *@@@%%%=?*=@@@%%%*)
2369     eval ac_cv_prog_make_${ac_make}_set=yes;;
2370   *)
2371     eval ac_cv_prog_make_${ac_make}_set=no;;
2372 esac
2373 rm -f conftest.make
2374 fi
2375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2376   { echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6; }
2378   SET_MAKE=
2379 else
2380   { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382   SET_MAKE="MAKE=${MAKE-make}"
2383 fi
2384
2385 rm -rf .tst 2>/dev/null
2386 mkdir .tst 2>/dev/null
2387 if test -d .tst; then
2388   am__leading_dot=.
2389 else
2390   am__leading_dot=_
2391 fi
2392 rmdir .tst 2>/dev/null
2393
2394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2395   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2396   # is not polluted with repeated "-I."
2397   am__isrc=' -I$(srcdir)'
2398   # test to see if srcdir already configured
2399   if test -f $srcdir/config.status; then
2400     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2401 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2402    { (exit 1); exit 1; }; }
2403   fi
2404 fi
2405
2406 # test whether we have cygpath
2407 if test -z "$CYGPATH_W"; then
2408   if (cygpath --version) >/dev/null 2>/dev/null; then
2409     CYGPATH_W='cygpath -w'
2410   else
2411     CYGPATH_W=echo
2412   fi
2413 fi
2414
2415
2416 # Define the identity of the package.
2417  PACKAGE=mod_chxj
2418  VERSION=1.0.0
2419
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE "$PACKAGE"
2423 _ACEOF
2424
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define VERSION "$VERSION"
2428 _ACEOF
2429
2430 # Some tools Automake needs.
2431
2432 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2433
2434
2435 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2436
2437
2438 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2439
2440
2441 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2442
2443
2444 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2445
2446 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2447
2448 # Installed binaries are usually stripped using `strip' when the user
2449 # run `make install-strip'.  However `strip' might not be the right
2450 # tool to use in cross-compilation environments, therefore Automake
2451 # will honor the `STRIP' environment variable to overrule this program.
2452 if test "$cross_compiling" != no; then
2453   if test -n "$ac_tool_prefix"; then
2454   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}strip; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_STRIP+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   if test -n "$STRIP"; then
2462   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469   for ac_exec_ext in '' $ac_executable_extensions; do
2470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473     break 2
2474   fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 STRIP=$ac_cv_prog_STRIP
2482 if test -n "$STRIP"; then
2483   { echo "$as_me:$LINENO: result: $STRIP" >&5
2484 echo "${ECHO_T}$STRIP" >&6; }
2485 else
2486   { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2488 fi
2489
2490
2491 fi
2492 if test -z "$ac_cv_prog_STRIP"; then
2493   ac_ct_STRIP=$STRIP
2494   # Extract the first word of "strip", so it can be a program name with args.
2495 set dummy strip; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$ac_ct_STRIP"; then
2502   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     ac_cv_prog_ac_ct_STRIP="strip"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522 if test -n "$ac_ct_STRIP"; then
2523   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2524 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2525 else
2526   { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528 fi
2529
2530   if test "x$ac_ct_STRIP" = x; then
2531     STRIP=":"
2532   else
2533     case $cross_compiling:$ac_tool_warned in
2534 yes:)
2535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet.  If you think this
2537 configuration is useful to you, please write to autoconf@gnu.org." >&5
2538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet.  If you think this
2540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2541 ac_tool_warned=yes ;;
2542 esac
2543     STRIP=$ac_ct_STRIP
2544   fi
2545 else
2546   STRIP="$ac_cv_prog_STRIP"
2547 fi
2548
2549 fi
2550 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2551
2552 # We need awk for the "check" target.  The system "awk" is bad on
2553 # some platforms.
2554 # Always define AMTAR for backward compatibility.
2555
2556 AMTAR=${AMTAR-"${am_missing_run}tar"}
2557
2558 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2559
2560
2561
2562
2563
2564 ac_config_headers="$ac_config_headers include/config.h"
2565
2566
2567
2568 # Checks for programs.
2569 DEPDIR="${am__leading_dot}deps"
2570
2571 ac_config_commands="$ac_config_commands depfiles"
2572
2573
2574 am_make=${MAKE-make}
2575 cat > confinc << 'END'
2576 am__doit:
2577         @echo done
2578 .PHONY: am__doit
2579 END
2580 # If we don't find an include directive, just comment out the code.
2581 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2582 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2583 am__include="#"
2584 am__quote=
2585 _am_result=none
2586 # First try GNU make style include.
2587 echo "include confinc" > confmf
2588 # We grep out `Entering directory' and `Leaving directory'
2589 # messages which can occur if `w' ends up in MAKEFLAGS.
2590 # In particular we don't look at `^make:' because GNU make might
2591 # be invoked under some other name (usually "gmake"), in which
2592 # case it prints its new name instead of `make'.
2593 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2594    am__include=include
2595    am__quote=
2596    _am_result=GNU
2597 fi
2598 # Now try BSD make style include.
2599 if test "$am__include" = "#"; then
2600    echo '.include "confinc"' > confmf
2601    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2602       am__include=.include
2603       am__quote="\""
2604       _am_result=BSD
2605    fi
2606 fi
2607
2608
2609 { echo "$as_me:$LINENO: result: $_am_result" >&5
2610 echo "${ECHO_T}$_am_result" >&6; }
2611 rm -f confinc confmf
2612
2613 # Check whether --enable-dependency-tracking was given.
2614 if test "${enable_dependency_tracking+set}" = set; then
2615   enableval=$enable_dependency_tracking;
2616 fi
2617
2618 if test "x$enable_dependency_tracking" != xno; then
2619   am_depcomp="$ac_aux_dir/depcomp"
2620   AMDEPBACKSLASH='\'
2621 fi
2622  if test "x$enable_dependency_tracking" != xno; then
2623   AMDEP_TRUE=
2624   AMDEP_FALSE='#'
2625 else
2626   AMDEP_TRUE='#'
2627   AMDEP_FALSE=
2628 fi
2629
2630
2631 ac_ext=c
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 if test -n "$ac_tool_prefix"; then
2637   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   if test -n "$CC"; then
2645   ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650   IFS=$as_save_IFS
2651   test -z "$as_dir" && as_dir=.
2652   for ac_exec_ext in '' $ac_executable_extensions; do
2653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666   { echo "$as_me:$LINENO: result: $CC" >&5
2667 echo "${ECHO_T}$CC" >&6; }
2668 else
2669   { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2671 fi
2672
2673
2674 fi
2675 if test -z "$ac_cv_prog_CC"; then
2676   ac_ct_CC=$CC
2677   # Extract the first word of "gcc", so it can be a program name with args.
2678 set dummy gcc; ac_word=$2
2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   if test -n "$ac_ct_CC"; then
2685   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692   for ac_exec_ext in '' $ac_executable_extensions; do
2693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694     ac_cv_prog_ac_ct_CC="gcc"
2695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705 if test -n "$ac_ct_CC"; then
2706   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2707 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 else
2709   { echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6; }
2711 fi
2712
2713   if test "x$ac_ct_CC" = x; then
2714     CC=""
2715   else
2716     case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet.  If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet.  If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724 ac_tool_warned=yes ;;
2725 esac
2726     CC=$ac_ct_CC
2727   fi
2728 else
2729   CC="$ac_cv_prog_CC"
2730 fi
2731
2732 if test -z "$CC"; then
2733           if test -n "$ac_tool_prefix"; then
2734     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}cc; ac_word=$2
2736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738 if test "${ac_cv_prog_CC+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   if test -n "$CC"; then
2742   ac_cv_prog_CC="$CC" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749   for ac_exec_ext in '' $ac_executable_extensions; do
2750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751     ac_cv_prog_CC="${ac_tool_prefix}cc"
2752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763   { echo "$as_me:$LINENO: result: $CC" >&5
2764 echo "${ECHO_T}$CC" >&6; }
2765 else
2766   { echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6; }
2768 fi
2769
2770
2771   fi
2772 fi
2773 if test -z "$CC"; then
2774   # Extract the first word of "cc", so it can be a program name with args.
2775 set dummy cc; ac_word=$2
2776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779   echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781   if test -n "$CC"; then
2782   ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784   ac_prog_rejected=no
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2793        ac_prog_rejected=yes
2794        continue
2795      fi
2796     ac_cv_prog_CC="cc"
2797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 if test $ac_prog_rejected = yes; then
2805   # We found a bogon in the path, so make sure we never use it.
2806   set dummy $ac_cv_prog_CC
2807   shift
2808   if test $# != 0; then
2809     # We chose a different compiler from the bogus one.
2810     # However, it has the same basename, so the bogon will be chosen
2811     # first if we set CC to just the basename; use the full file name.
2812     shift
2813     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2814   fi
2815 fi
2816 fi
2817 fi
2818 CC=$ac_cv_prog_CC
2819 if test -n "$CC"; then
2820   { echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6; }
2822 else
2823   { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2825 fi
2826
2827
2828 fi
2829 if test -z "$CC"; then
2830   if test -n "$ac_tool_prefix"; then
2831   for ac_prog in cl.exe
2832   do
2833     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$CC"; then
2841   ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862   { echo "$as_me:$LINENO: result: $CC" >&5
2863 echo "${ECHO_T}$CC" >&6; }
2864 else
2865   { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2867 fi
2868
2869
2870     test -n "$CC" && break
2871   done
2872 fi
2873 if test -z "$CC"; then
2874   ac_ct_CC=$CC
2875   for ac_prog in cl.exe
2876 do
2877   # Extract the first word of "$ac_prog", so it can be a program name with args.
2878 set dummy $ac_prog; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -n "$ac_ct_CC"; then
2885   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892   for ac_exec_ext in '' $ac_executable_extensions; do
2893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894     ac_cv_prog_ac_ct_CC="$ac_prog"
2895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907 echo "${ECHO_T}$ac_ct_CC" >&6; }
2908 else
2909   { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2911 fi
2912
2913
2914   test -n "$ac_ct_CC" && break
2915 done
2916
2917   if test "x$ac_ct_CC" = x; then
2918     CC=""
2919   else
2920     case $cross_compiling:$ac_tool_warned in
2921 yes:)
2922 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2923 whose name does not start with the host triplet.  If you think this
2924 configuration is useful to you, please write to autoconf@gnu.org." >&5
2925 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2926 whose name does not start with the host triplet.  If you think this
2927 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930     CC=$ac_ct_CC
2931   fi
2932 fi
2933
2934 fi
2935
2936
2937 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2938 See \`config.log' for more details." >&5
2939 echo "$as_me: error: no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details." >&2;}
2941    { (exit 1); exit 1; }; }
2942
2943 # Provide some information about the compiler.
2944 echo "$as_me:$LINENO: checking for C compiler version" >&5
2945 ac_compiler=`set X $ac_compile; echo $2`
2946 { (ac_try="$ac_compiler --version >&5"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compiler --version >&5") 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }
2956 { (ac_try="$ac_compiler -v >&5"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_compiler -v >&5") 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }
2966 { (ac_try="$ac_compiler -V >&5"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_compiler -V >&5") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }
2976
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983
2984 int
2985 main ()
2986 {
2987
2988   ;
2989   return 0;
2990 }
2991 _ACEOF
2992 ac_clean_files_save=$ac_clean_files
2993 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2994 # Try to create an executable without -o first, disregard a.out.
2995 # It will help us diagnose broken compilers, and finding out an intuition
2996 # of exeext.
2997 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2998 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2999 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3000 #
3001 # List of possible output files, starting from the most likely.
3002 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3003 # only as a last resort.  b.out is created by i960 compilers.
3004 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3005 #
3006 # The IRIX 6 linker writes into existing files which may not be
3007 # executable, retaining their permissions.  Remove them first so a
3008 # subsequent execution test works.
3009 ac_rmfiles=
3010 for ac_file in $ac_files
3011 do
3012   case $ac_file in
3013     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3014     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3015   esac
3016 done
3017 rm -f $ac_rmfiles
3018
3019 if { (ac_try="$ac_link_default"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_link_default") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; then
3029   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3031 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3032 # so that the user can short-circuit this test for compilers unknown to
3033 # Autoconf.
3034 for ac_file in $ac_files ''
3035 do
3036   test -f "$ac_file" || continue
3037   case $ac_file in
3038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3039         ;;
3040     [ab].out )
3041         # We found the default executable, but exeext='' is most
3042         # certainly right.
3043         break;;
3044     *.* )
3045         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3046         then :; else
3047            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048         fi
3049         # We set ac_cv_exeext here because the later test for it is not
3050         # safe: cross compilers may not add the suffix if given an `-o'
3051         # argument, so we may need to know it at that point already.
3052         # Even if this section looks crufty: it has the advantage of
3053         # actually working.
3054         break;;
3055     * )
3056         break;;
3057   esac
3058 done
3059 test "$ac_cv_exeext" = no && ac_cv_exeext=
3060
3061 else
3062   ac_file=''
3063 fi
3064
3065 { echo "$as_me:$LINENO: result: $ac_file" >&5
3066 echo "${ECHO_T}$ac_file" >&6; }
3067 if test -z "$ac_file"; then
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3072 See \`config.log' for more details." >&5
3073 echo "$as_me: error: C compiler cannot create executables
3074 See \`config.log' for more details." >&2;}
3075    { (exit 77); exit 77; }; }
3076 fi
3077
3078 ac_exeext=$ac_cv_exeext
3079
3080 # Check that the compiler produces executables we can run.  If not, either
3081 # the compiler is broken, or we cross compile.
3082 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3083 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3085 # If not cross compiling, check that we can run a simple program.
3086 if test "$cross_compiling" != yes; then
3087   if { ac_try='./$ac_file'
3088   { (case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_try") 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; }; then
3097     cross_compiling=no
3098   else
3099     if test "$cross_compiling" = maybe; then
3100         cross_compiling=yes
3101     else
3102         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3103 If you meant to cross compile, use \`--host'.
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: cannot run C compiled programs.
3106 If you meant to cross compile, use \`--host'.
3107 See \`config.log' for more details." >&2;}
3108    { (exit 1); exit 1; }; }
3109     fi
3110   fi
3111 fi
3112 { echo "$as_me:$LINENO: result: yes" >&5
3113 echo "${ECHO_T}yes" >&6; }
3114
3115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3116 ac_clean_files=$ac_clean_files_save
3117 # Check that the compiler produces executables we can run.  If not, either
3118 # the compiler is broken, or we cross compile.
3119 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3121 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3122 echo "${ECHO_T}$cross_compiling" >&6; }
3123
3124 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3126 if { (ac_try="$ac_link"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_link") 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; then
3136   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3138 # work properly (i.e., refer to `conftest.exe'), while it won't with
3139 # `rm'.
3140 for ac_file in conftest.exe conftest conftest.*; do
3141   test -f "$ac_file" || continue
3142   case $ac_file in
3143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3144     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145           break;;
3146     * ) break;;
3147   esac
3148 done
3149 else
3150   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3153 See \`config.log' for more details." >&2;}
3154    { (exit 1); exit 1; }; }
3155 fi
3156
3157 rm -f conftest$ac_cv_exeext
3158 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3159 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3160
3161 rm -f conftest.$ac_ext
3162 EXEEXT=$ac_cv_exeext
3163 ac_exeext=$EXEEXT
3164 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3166 if test "${ac_cv_objext+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h.  */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h.  */
3175
3176 int
3177 main ()
3178 {
3179
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 rm -f conftest.o conftest.obj
3185 if { (ac_try="$ac_compile"
3186 case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_compile") 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }; then
3195   for ac_file in conftest.o conftest.obj conftest.*; do
3196   test -f "$ac_file" || continue;
3197   case $ac_file in
3198     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3199     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3200        break;;
3201   esac
3202 done
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3208 See \`config.log' for more details." >&5
3209 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3210 See \`config.log' for more details." >&2;}
3211    { (exit 1); exit 1; }; }
3212 fi
3213
3214 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3215 fi
3216 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3217 echo "${ECHO_T}$ac_cv_objext" >&6; }
3218 OBJEXT=$ac_cv_objext
3219 ac_objext=$OBJEXT
3220 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3221 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3222 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231
3232 int
3233 main ()
3234 {
3235 #ifndef __GNUC__
3236        choke me
3237 #endif
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3245 case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250   (eval "$ac_compile") 2>conftest.er1
3251   ac_status=$?
3252   grep -v '^ *+' conftest.er1 >conftest.err
3253   rm -f conftest.er1
3254   cat conftest.err >&5
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } && {
3257          test -z "$ac_c_werror_flag" ||
3258          test ! -s conftest.err
3259        } && test -s conftest.$ac_objext; then
3260   ac_compiler_gnu=yes
3261 else
3262   echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265         ac_compiler_gnu=no
3266 fi
3267
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3270
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3273 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3274 GCC=`test $ac_compiler_gnu = yes && echo yes`
3275 ac_test_CFLAGS=${CFLAGS+set}
3276 ac_save_CFLAGS=$CFLAGS
3277 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3278 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3279 if test "${ac_cv_prog_cc_g+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   ac_save_c_werror_flag=$ac_c_werror_flag
3283    ac_c_werror_flag=yes
3284    ac_cv_prog_cc_g=no
3285    CFLAGS="-g"
3286    cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h.  */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h.  */
3292
3293 int
3294 main ()
3295 {
3296
3297   ;
3298   return 0;
3299 }
3300 _ACEOF
3301 rm -f conftest.$ac_objext
3302 if { (ac_try="$ac_compile"
3303 case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308   (eval "$ac_compile") 2>conftest.er1
3309   ac_status=$?
3310   grep -v '^ *+' conftest.er1 >conftest.err
3311   rm -f conftest.er1
3312   cat conftest.err >&5
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); } && {
3315          test -z "$ac_c_werror_flag" ||
3316          test ! -s conftest.err
3317        } && test -s conftest.$ac_objext; then
3318   ac_cv_prog_cc_g=yes
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323         CFLAGS=""
3324       cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h.  */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h.  */
3330
3331 int
3332 main ()
3333 {
3334
3335   ;
3336   return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_compile") 2>conftest.er1
3347   ac_status=$?
3348   grep -v '^ *+' conftest.er1 >conftest.err
3349   rm -f conftest.er1
3350   cat conftest.err >&5
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); } && {
3353          test -z "$ac_c_werror_flag" ||
3354          test ! -s conftest.err
3355        } && test -s conftest.$ac_objext; then
3356   :
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361         ac_c_werror_flag=$ac_save_c_werror_flag
3362          CFLAGS="-g"
3363          cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369
3370 int
3371 main ()
3372 {
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (ac_try="$ac_compile"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_compile") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } && {
3392          test -z "$ac_c_werror_flag" ||
3393          test ! -s conftest.err
3394        } && test -s conftest.$ac_objext; then
3395   ac_cv_prog_cc_g=yes
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400
3401 fi
3402
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 fi
3405
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410    ac_c_werror_flag=$ac_save_c_werror_flag
3411 fi
3412 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3414 if test "$ac_test_CFLAGS" = set; then
3415   CFLAGS=$ac_save_CFLAGS
3416 elif test $ac_cv_prog_cc_g = yes; then
3417   if test "$GCC" = yes; then
3418     CFLAGS="-g -O2"
3419   else
3420     CFLAGS="-g"
3421   fi
3422 else
3423   if test "$GCC" = yes; then
3424     CFLAGS="-O2"
3425   else
3426     CFLAGS=
3427   fi
3428 fi
3429 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3430 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3431 if test "${ac_cv_prog_cc_c89+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434   ac_cv_prog_cc_c89=no
3435 ac_save_CC=$CC
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #include <stdarg.h>
3443 #include <stdio.h>
3444 #include <sys/types.h>
3445 #include <sys/stat.h>
3446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3447 struct buf { int x; };
3448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449 static char *e (p, i)
3450      char **p;
3451      int i;
3452 {
3453   return p[i];
3454 }
3455 static char *f (char * (*g) (char **, int), char **p, ...)
3456 {
3457   char *s;
3458   va_list v;
3459   va_start (v,p);
3460   s = g (p, va_arg (v,int));
3461   va_end (v);
3462   return s;
3463 }
3464
3465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3466    function prototypes and stuff, but not '\xHH' hex character constants.
3467    These don't provoke an error unfortunately, instead are silently treated
3468    as 'x'.  The following induces an error, until -std is added to get
3469    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3470    array size at least.  It's necessary to write '\x00'==0 to get something
3471    that's true only with -std.  */
3472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
3474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3475    inside strings and character constants.  */
3476 #define FOO(x) 'x'
3477 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478
3479 int test (int i, double x);
3480 struct s1 {int (*f) (int a);};
3481 struct s2 {int (*f) (double a);};
3482 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3483 int argc;
3484 char **argv;
3485 int
3486 main ()
3487 {
3488 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3494         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 do
3496   CC="$ac_save_CC $ac_arg"
3497   rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_compile") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } && {
3511          test -z "$ac_c_werror_flag" ||
3512          test ! -s conftest.err
3513        } && test -s conftest.$ac_objext; then
3514   ac_cv_prog_cc_c89=$ac_arg
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519
3520 fi
3521
3522 rm -f core conftest.err conftest.$ac_objext
3523   test "x$ac_cv_prog_cc_c89" != "xno" && break
3524 done
3525 rm -f conftest.$ac_ext
3526 CC=$ac_save_CC
3527
3528 fi
3529 # AC_CACHE_VAL
3530 case "x$ac_cv_prog_cc_c89" in
3531   x)
3532     { echo "$as_me:$LINENO: result: none needed" >&5
3533 echo "${ECHO_T}none needed" >&6; } ;;
3534   xno)
3535     { echo "$as_me:$LINENO: result: unsupported" >&5
3536 echo "${ECHO_T}unsupported" >&6; } ;;
3537   *)
3538     CC="$CC $ac_cv_prog_cc_c89"
3539     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3540 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3541 esac
3542
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550 depcc="$CC"   am_compiler_list=
3551
3552 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3553 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3554 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3558   # We make a subdir and do the tests there.  Otherwise we can end up
3559   # making bogus files that we don't know about and never remove.  For
3560   # instance it was reported that on HP-UX the gcc test will end up
3561   # making a dummy file named `D' -- because `-MD' means `put the output
3562   # in D'.
3563   mkdir conftest.dir
3564   # Copy depcomp to subdir because otherwise we won't find it if we're
3565   # using a relative directory.
3566   cp "$am_depcomp" conftest.dir
3567   cd conftest.dir
3568   # We will build objects and dependencies in a subdirectory because
3569   # it helps to detect inapplicable dependency modes.  For instance
3570   # both Tru64's cc and ICC support -MD to output dependencies as a
3571   # side effect of compilation, but ICC will put the dependencies in
3572   # the current directory while Tru64 will put them in the object
3573   # directory.
3574   mkdir sub
3575
3576   am_cv_CC_dependencies_compiler_type=none
3577   if test "$am_compiler_list" = ""; then
3578      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579   fi
3580   for depmode in $am_compiler_list; do
3581     # Setup a source with many dependencies, because some compilers
3582     # like to wrap large dependency lists on column 80 (with \), and
3583     # we should not choose a depcomp mode which is confused by this.
3584     #
3585     # We need to recreate these files for each test, as the compiler may
3586     # overwrite some of them when testing with obscure command lines.
3587     # This happens at least with the AIX C compiler.
3588     : > sub/conftest.c
3589     for i in 1 2 3 4 5 6; do
3590       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3591       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3592       # Solaris 8's {/usr,}/bin/sh.
3593       touch sub/conftst$i.h
3594     done
3595     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3596
3597     case $depmode in
3598     nosideeffect)
3599       # after this tag, mechanisms are not by side-effect, so they'll
3600       # only be used when explicitly requested
3601       if test "x$enable_dependency_tracking" = xyes; then
3602         continue
3603       else
3604         break
3605       fi
3606       ;;
3607     none) break ;;
3608     esac
3609     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3610     # mode.  It turns out that the SunPro C++ compiler does not properly
3611     # handle `-M -o', and we need to detect this.
3612     if depmode=$depmode \
3613        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3614        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3615        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3616          >/dev/null 2>conftest.err &&
3617        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3618        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3619        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3620        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3621       # icc doesn't choke on unknown options, it will just issue warnings
3622       # or remarks (even with -Werror).  So we grep stderr for any message
3623       # that says an option was ignored or not supported.
3624       # When given -MP, icc 7.0 and 7.1 complain thusly:
3625       #   icc: Command line warning: ignoring option '-M'; no argument required
3626       # The diagnosis changed in icc 8.0:
3627       #   icc: Command line remark: option '-MP' not supported
3628       if (grep 'ignoring option' conftest.err ||
3629           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3630         am_cv_CC_dependencies_compiler_type=$depmode
3631         break
3632       fi
3633     fi
3634   done
3635
3636   cd ..
3637   rm -rf conftest.dir
3638 else
3639   am_cv_CC_dependencies_compiler_type=none
3640 fi
3641
3642 fi
3643 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3644 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3645 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3646
3647  if
3648   test "x$enable_dependency_tracking" != xno \
3649   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3650   am__fastdepCC_TRUE=
3651   am__fastdepCC_FALSE='#'
3652 else
3653   am__fastdepCC_TRUE='#'
3654   am__fastdepCC_FALSE=
3655 fi
3656
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3664 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3667   CPP=
3668 fi
3669 if test -z "$CPP"; then
3670   if test "${ac_cv_prog_CPP+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673       # Double quotes because CPP needs to be expanded
3674     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3675     do
3676       ac_preproc_ok=false
3677 for ac_c_preproc_warn_flag in '' yes
3678 do
3679   # Use a header file that comes with gcc, so configuring glibc
3680   # with a fresh cross-compiler works.
3681   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682   # <limits.h> exists even on freestanding compilers.
3683   # On the NeXT, cc -E runs the code through the compiler's parser,
3684   # not just through cpp. "Syntax error" is here to catch this case.
3685   cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h.  */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h.  */
3691 #ifdef __STDC__
3692 # include <limits.h>
3693 #else
3694 # include <assert.h>
3695 #endif
3696                      Syntax error
3697 _ACEOF
3698 if { (ac_try="$ac_cpp conftest.$ac_ext"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } >/dev/null && {
3711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        }; then
3714   :
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719   # Broken: fails on valid input.
3720 continue
3721 fi
3722
3723 rm -f conftest.err conftest.$ac_ext
3724
3725   # OK, works on sane cases.  Now check whether nonexistent headers
3726   # can be detected and how.
3727   cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733 #include <ac_nonexistent.h>
3734 _ACEOF
3735 if { (ac_try="$ac_cpp conftest.$ac_ext"
3736 case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3742   ac_status=$?
3743   grep -v '^ *+' conftest.er1 >conftest.err
3744   rm -f conftest.er1
3745   cat conftest.err >&5
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); } >/dev/null && {
3748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3749          test ! -s conftest.err
3750        }; then
3751   # Broken: success on invalid input.
3752 continue
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757   # Passes both tests.
3758 ac_preproc_ok=:
3759 break
3760 fi
3761
3762 rm -f conftest.err conftest.$ac_ext
3763
3764 done
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then
3768   break
3769 fi
3770
3771     done
3772     ac_cv_prog_CPP=$CPP
3773
3774 fi
3775   CPP=$ac_cv_prog_CPP
3776 else
3777   ac_cv_prog_CPP=$CPP
3778 fi
3779 { echo "$as_me:$LINENO: result: $CPP" >&5
3780 echo "${ECHO_T}$CPP" >&6; }
3781 ac_preproc_ok=false
3782 for ac_c_preproc_warn_flag in '' yes
3783 do
3784   # Use a header file that comes with gcc, so configuring glibc
3785   # with a fresh cross-compiler works.
3786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787   # <limits.h> exists even on freestanding compilers.
3788   # On the NeXT, cc -E runs the code through the compiler's parser,
3789   # not just through cpp. "Syntax error" is here to catch this case.
3790   cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h.  */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h.  */
3796 #ifdef __STDC__
3797 # include <limits.h>
3798 #else
3799 # include <assert.h>
3800 #endif
3801                      Syntax error
3802 _ACEOF
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } >/dev/null && {
3816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        }; then
3819   :
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824   # Broken: fails on valid input.
3825 continue
3826 fi
3827
3828 rm -f conftest.err conftest.$ac_ext
3829
3830   # OK, works on sane cases.  Now check whether nonexistent headers
3831   # can be detected and how.
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838 #include <ac_nonexistent.h>
3839 _ACEOF
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3841 case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } >/dev/null && {
3853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854          test ! -s conftest.err
3855        }; then
3856   # Broken: success on invalid input.
3857 continue
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862   # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3865 fi
3866
3867 rm -f conftest.err conftest.$ac_ext
3868
3869 done
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3873   :
3874 else
3875   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3876 See \`config.log' for more details." >&5
3877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log' for more details." >&2;}
3879    { (exit 1); exit 1; }; }
3880 fi
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 if test -n "$ac_tool_prefix"; then
3894   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3898 if test "${ac_cv_prog_CC+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   if test -n "$CC"; then
3902   ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909   for ac_exec_ext in '' $ac_executable_extensions; do
3910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913     break 2
3914   fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 fi
3920 fi
3921 CC=$ac_cv_prog_CC
3922 if test -n "$CC"; then
3923   { echo "$as_me:$LINENO: result: $CC" >&5
3924 echo "${ECHO_T}$CC" >&6; }
3925 else
3926   { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3928 fi
3929
3930
3931 fi
3932 if test -z "$ac_cv_prog_CC"; then
3933   ac_ct_CC=$CC
3934   # Extract the first word of "gcc", so it can be a program name with args.
3935 set dummy gcc; ac_word=$2
3936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   if test -n "$ac_ct_CC"; then
3942   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949   for ac_exec_ext in '' $ac_executable_extensions; do
3950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951     ac_cv_prog_ac_ct_CC="gcc"
3952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953     break 2
3954   fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3962 if test -n "$ac_ct_CC"; then
3963   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3964 echo "${ECHO_T}$ac_ct_CC" >&6; }
3965 else
3966   { echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6; }
3968 fi
3969
3970   if test "x$ac_ct_CC" = x; then
3971     CC=""
3972   else
3973     case $cross_compiling:$ac_tool_warned in
3974 yes:)
3975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3976 whose name does not start with the host triplet.  If you think this
3977 configuration is useful to you, please write to autoconf@gnu.org." >&5
3978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3979 whose name does not start with the host triplet.  If you think this
3980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3981 ac_tool_warned=yes ;;
3982 esac
3983     CC=$ac_ct_CC
3984   fi
3985 else
3986   CC="$ac_cv_prog_CC"
3987 fi
3988
3989 if test -z "$CC"; then
3990           if test -n "$ac_tool_prefix"; then
3991     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}cc; ac_word=$2
3993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3995 if test "${ac_cv_prog_CC+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   if test -n "$CC"; then
3999   ac_cv_prog_CC="$CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008     ac_cv_prog_CC="${ac_tool_prefix}cc"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016 fi
4017 fi
4018 CC=$ac_cv_prog_CC
4019 if test -n "$CC"; then
4020   { echo "$as_me:$LINENO: result: $CC" >&5
4021 echo "${ECHO_T}$CC" >&6; }
4022 else
4023   { echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6; }
4025 fi
4026
4027
4028   fi
4029 fi
4030 if test -z "$CC"; then
4031   # Extract the first word of "cc", so it can be a program name with args.
4032 set dummy cc; ac_word=$2
4033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -n "$CC"; then
4039   ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041   ac_prog_rejected=no
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4050        ac_prog_rejected=yes
4051        continue
4052      fi
4053     ac_cv_prog_CC="cc"
4054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 if test $ac_prog_rejected = yes; then
4062   # We found a bogon in the path, so make sure we never use it.
4063   set dummy $ac_cv_prog_CC
4064   shift
4065   if test $# != 0; then
4066     # We chose a different compiler from the bogus one.
4067     # However, it has the same basename, so the bogon will be chosen
4068     # first if we set CC to just the basename; use the full file name.
4069     shift
4070     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4071   fi
4072 fi
4073 fi
4074 fi
4075 CC=$ac_cv_prog_CC
4076 if test -n "$CC"; then
4077   { echo "$as_me:$LINENO: result: $CC" >&5
4078 echo "${ECHO_T}$CC" >&6; }
4079 else
4080   { echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6; }
4082 fi
4083
4084
4085 fi
4086 if test -z "$CC"; then
4087   if test -n "$ac_tool_prefix"; then
4088   for ac_prog in cl.exe
4089   do
4090     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4094 if test "${ac_cv_prog_CC+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   if test -n "$CC"; then
4098   ac_cv_prog_CC="$CC" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_exec_ext in '' $ac_executable_extensions; do
4106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109     break 2
4110   fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 CC=$ac_cv_prog_CC
4118 if test -n "$CC"; then
4119   { echo "$as_me:$LINENO: result: $CC" >&5
4120 echo "${ECHO_T}$CC" >&6; }
4121 else
4122   { echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6; }
4124 fi
4125
4126
4127     test -n "$CC" && break
4128   done
4129 fi
4130 if test -z "$CC"; then
4131   ac_ct_CC=$CC
4132   for ac_prog in cl.exe
4133 do
4134   # Extract the first word of "$ac_prog", so it can be a program name with args.
4135 set dummy $ac_prog; ac_word=$2
4136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   if test -n "$ac_ct_CC"; then
4142   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149   for ac_exec_ext in '' $ac_executable_extensions; do
4150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151     ac_cv_prog_ac_ct_CC="$ac_prog"
4152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4164 echo "${ECHO_T}$ac_ct_CC" >&6; }
4165 else
4166   { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4168 fi
4169
4170
4171   test -n "$ac_ct_CC" && break
4172 done
4173
4174   if test "x$ac_ct_CC" = x; then
4175     CC=""
4176   else
4177     case $cross_compiling:$ac_tool_warned in
4178 yes:)
4179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4180 whose name does not start with the host triplet.  If you think this
4181 configuration is useful to you, please write to autoconf@gnu.org." >&5
4182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4183 whose name does not start with the host triplet.  If you think this
4184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4185 ac_tool_warned=yes ;;
4186 esac
4187     CC=$ac_ct_CC
4188   fi
4189 fi
4190
4191 fi
4192
4193
4194 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4195 See \`config.log' for more details." >&5
4196 echo "$as_me: error: no acceptable C compiler found in \$PATH
4197 See \`config.log' for more details." >&2;}
4198    { (exit 1); exit 1; }; }
4199
4200 # Provide some information about the compiler.
4201 echo "$as_me:$LINENO: checking for C compiler version" >&5
4202 ac_compiler=`set X $ac_compile; echo $2`
4203 { (ac_try="$ac_compiler --version >&5"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_compiler --version >&5") 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }
4213 { (ac_try="$ac_compiler -v >&5"
4214 case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219   (eval "$ac_compiler -v >&5") 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }
4223 { (ac_try="$ac_compiler -V >&5"
4224 case "(($ac_try" in
4225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226   *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229   (eval "$ac_compiler -V >&5") 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); }
4233
4234 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4235 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4236 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249 #ifndef __GNUC__
4250        choke me
4251 #endif
4252
4253   ;
4254   return 0;
4255 }
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261   *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264   (eval "$ac_compile") 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } && {
4271          test -z "$ac_c_werror_flag" ||
4272          test ! -s conftest.err
4273        } && test -s conftest.$ac_objext; then
4274   ac_compiler_gnu=yes
4275 else
4276   echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279         ac_compiler_gnu=no
4280 fi
4281
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4284
4285 fi
4286 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4288 GCC=`test $ac_compiler_gnu = yes && echo yes`
4289 ac_test_CFLAGS=${CFLAGS+set}
4290 ac_save_CFLAGS=$CFLAGS
4291 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4292 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_cc_g+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   ac_save_c_werror_flag=$ac_c_werror_flag
4297    ac_c_werror_flag=yes
4298    ac_cv_prog_cc_g=no
4299    CFLAGS="-g"
4300    cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 int
4308 main ()
4309 {
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest.$ac_objext
4316 if { (ac_try="$ac_compile"
4317 case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_compile") 2>conftest.er1
4323   ac_status=$?
4324   grep -v '^ *+' conftest.er1 >conftest.err
4325   rm -f conftest.er1
4326   cat conftest.err >&5
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } && {
4329          test -z "$ac_c_werror_flag" ||
4330          test ! -s conftest.err
4331        } && test -s conftest.$ac_objext; then
4332   ac_cv_prog_cc_g=yes
4333 else
4334   echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337         CFLAGS=""
4338       cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344
4345 int
4346 main ()
4347 {
4348
4349   ;
4350   return 0;
4351 }
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4355 case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360   (eval "$ac_compile") 2>conftest.er1
4361   ac_status=$?
4362   grep -v '^ *+' conftest.er1 >conftest.err
4363   rm -f conftest.er1
4364   cat conftest.err >&5
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } && {
4367          test -z "$ac_c_werror_flag" ||
4368          test ! -s conftest.err
4369        } && test -s conftest.$ac_objext; then
4370   :
4371 else
4372   echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375         ac_c_werror_flag=$ac_save_c_werror_flag
4376          CFLAGS="-g"
4377          cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383
4384 int
4385 main ()
4386 {
4387
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4394 case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399   (eval "$ac_compile") 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } && {
4406          test -z "$ac_c_werror_flag" ||
4407          test ! -s conftest.err
4408        } && test -s conftest.$ac_objext; then
4409   ac_cv_prog_cc_g=yes
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414
4415 fi
4416
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424    ac_c_werror_flag=$ac_save_c_werror_flag
4425 fi
4426 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4428 if test "$ac_test_CFLAGS" = set; then
4429   CFLAGS=$ac_save_CFLAGS
4430 elif test $ac_cv_prog_cc_g = yes; then
4431   if test "$GCC" = yes; then
4432     CFLAGS="-g -O2"
4433   else
4434     CFLAGS="-g"
4435   fi
4436 else
4437   if test "$GCC" = yes; then
4438     CFLAGS="-O2"
4439   else
4440     CFLAGS=
4441   fi
4442 fi
4443 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4444 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4445 if test "${ac_cv_prog_cc_c89+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   ac_cv_prog_cc_c89=no
4449 ac_save_CC=$CC
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <stdarg.h>
4457 #include <stdio.h>
4458 #include <sys/types.h>
4459 #include <sys/stat.h>
4460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4461 struct buf { int x; };
4462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4463 static char *e (p, i)
4464      char **p;
4465      int i;
4466 {
4467   return p[i];
4468 }
4469 static char *f (char * (*g) (char **, int), char **p, ...)
4470 {
4471   char *s;
4472   va_list v;
4473   va_start (v,p);
4474   s = g (p, va_arg (v,int));
4475   va_end (v);
4476   return s;
4477 }
4478
4479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4480    function prototypes and stuff, but not '\xHH' hex character constants.
4481    These don't provoke an error unfortunately, instead are silently treated
4482    as 'x'.  The following induces an error, until -std is added to get
4483    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4484    array size at least.  It's necessary to write '\x00'==0 to get something
4485    that's true only with -std.  */
4486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4487
4488 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4489    inside strings and character constants.  */
4490 #define FOO(x) 'x'
4491 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4492
4493 int test (int i, double x);
4494 struct s1 {int (*f) (int a);};
4495 struct s2 {int (*f) (double a);};
4496 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4497 int argc;
4498 char **argv;
4499 int
4500 main ()
4501 {
4502 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4503   ;
4504   return 0;
4505 }
4506 _ACEOF
4507 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4508         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4509 do
4510   CC="$ac_save_CC $ac_arg"
4511   rm -f conftest.$ac_objext
4512 if { (ac_try="$ac_compile"
4513 case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518   (eval "$ac_compile") 2>conftest.er1
4519   ac_status=$?
4520   grep -v '^ *+' conftest.er1 >conftest.err
4521   rm -f conftest.er1
4522   cat conftest.err >&5
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } && {
4525          test -z "$ac_c_werror_flag" ||
4526          test ! -s conftest.err
4527        } && test -s conftest.$ac_objext; then
4528   ac_cv_prog_cc_c89=$ac_arg
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533
4534 fi
4535
4536 rm -f core conftest.err conftest.$ac_objext
4537   test "x$ac_cv_prog_cc_c89" != "xno" && break
4538 done
4539 rm -f conftest.$ac_ext
4540 CC=$ac_save_CC
4541
4542 fi
4543 # AC_CACHE_VAL
4544 case "x$ac_cv_prog_cc_c89" in
4545   x)
4546     { echo "$as_me:$LINENO: result: none needed" >&5
4547 echo "${ECHO_T}none needed" >&6; } ;;
4548   xno)
4549     { echo "$as_me:$LINENO: result: unsupported" >&5
4550 echo "${ECHO_T}unsupported" >&6; } ;;
4551   *)
4552     CC="$CC $ac_cv_prog_cc_c89"
4553     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4554 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4555 esac
4556
4557
4558 ac_ext=c
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564 depcc="$CC"   am_compiler_list=
4565
4566 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4572   # We make a subdir and do the tests there.  Otherwise we can end up
4573   # making bogus files that we don't know about and never remove.  For
4574   # instance it was reported that on HP-UX the gcc test will end up
4575   # making a dummy file named `D' -- because `-MD' means `put the output
4576   # in D'.
4577   mkdir conftest.dir
4578   # Copy depcomp to subdir because otherwise we won't find it if we're
4579   # using a relative directory.
4580   cp "$am_depcomp" conftest.dir
4581   cd conftest.dir
4582   # We will build objects and dependencies in a subdirectory because
4583   # it helps to detect inapplicable dependency modes.  For instance
4584   # both Tru64's cc and ICC support -MD to output dependencies as a
4585   # side effect of compilation, but ICC will put the dependencies in
4586   # the current directory while Tru64 will put them in the object
4587   # directory.
4588   mkdir sub
4589
4590   am_cv_CC_dependencies_compiler_type=none
4591   if test "$am_compiler_list" = ""; then
4592      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4593   fi
4594   for depmode in $am_compiler_list; do
4595     # Setup a source with many dependencies, because some compilers
4596     # like to wrap large dependency lists on column 80 (with \), and
4597     # we should not choose a depcomp mode which is confused by this.
4598     #
4599     # We need to recreate these files for each test, as the compiler may
4600     # overwrite some of them when testing with obscure command lines.
4601     # This happens at least with the AIX C compiler.
4602     : > sub/conftest.c
4603     for i in 1 2 3 4 5 6; do
4604       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4605       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4606       # Solaris 8's {/usr,}/bin/sh.
4607       touch sub/conftst$i.h
4608     done
4609     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4610
4611     case $depmode in
4612     nosideeffect)
4613       # after this tag, mechanisms are not by side-effect, so they'll
4614       # only be used when explicitly requested
4615       if test "x$enable_dependency_tracking" = xyes; then
4616         continue
4617       else
4618         break
4619       fi
4620       ;;
4621     none) break ;;
4622     esac
4623     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4624     # mode.  It turns out that the SunPro C++ compiler does not properly
4625     # handle `-M -o', and we need to detect this.
4626     if depmode=$depmode \
4627        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4628        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4629        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4630          >/dev/null 2>conftest.err &&
4631        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4632        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4633        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4634        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4635       # icc doesn't choke on unknown options, it will just issue warnings
4636       # or remarks (even with -Werror).  So we grep stderr for any message
4637       # that says an option was ignored or not supported.
4638       # When given -MP, icc 7.0 and 7.1 complain thusly:
4639       #   icc: Command line warning: ignoring option '-M'; no argument required
4640       # The diagnosis changed in icc 8.0:
4641       #   icc: Command line remark: option '-MP' not supported
4642       if (grep 'ignoring option' conftest.err ||
4643           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4644         am_cv_CC_dependencies_compiler_type=$depmode
4645         break
4646       fi
4647     fi
4648   done
4649
4650   cd ..
4651   rm -rf conftest.dir
4652 else
4653   am_cv_CC_dependencies_compiler_type=none
4654 fi
4655
4656 fi
4657 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4658 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4659 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4660
4661  if
4662   test "x$enable_dependency_tracking" != xno \
4663   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4664   am__fastdepCC_TRUE=
4665   am__fastdepCC_FALSE='#'
4666 else
4667   am__fastdepCC_TRUE='#'
4668   am__fastdepCC_FALSE=
4669 fi
4670
4671
4672 # Find a good install program.  We prefer a C program (faster),
4673 # so one script is as good as another.  But avoid the broken or
4674 # incompatible versions:
4675 # SysV /etc/install, /usr/sbin/install
4676 # SunOS /usr/etc/install
4677 # IRIX /sbin/install
4678 # AIX /bin/install
4679 # AmigaOS /C/install, which installs bootblocks on floppy discs
4680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4683 # OS/2's system install, which has a completely different semantic
4684 # ./install, which can be erroneously created by make from ./install.sh.
4685 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4687 if test -z "$INSTALL"; then
4688 if test "${ac_cv_path_install+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696   # Account for people who put trailing slashes in PATH elements.
4697 case $as_dir/ in
4698   ./ | .// | /cC/* | \
4699   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4700   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4701   /usr/ucb/* ) ;;
4702   *)
4703     # OSF1 and SCO ODT 3.0 have their own names for install.
4704     # Don't use installbsd from OSF since it installs stuff as root
4705     # by default.
4706     for ac_prog in ginstall scoinst install; do
4707       for ac_exec_ext in '' $ac_executable_extensions; do
4708         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4709           if test $ac_prog = install &&
4710             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4711             # AIX install.  It has an incompatible calling convention.
4712             :
4713           elif test $ac_prog = install &&
4714             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715             # program-specific install script used by HP pwplus--don't use.
4716             :
4717           else
4718             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4719             break 3
4720           fi
4721         fi
4722       done
4723     done
4724     ;;
4725 esac
4726 done
4727 IFS=$as_save_IFS
4728
4729
4730 fi
4731   if test "${ac_cv_path_install+set}" = set; then
4732     INSTALL=$ac_cv_path_install
4733   else
4734     # As a last resort, use the slow shell script.  Don't cache a
4735     # value for INSTALL within a source directory, because that will
4736     # break other packages using the cache if that directory is
4737     # removed, or if the value is a relative name.
4738     INSTALL=$ac_install_sh
4739   fi
4740 fi
4741 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4742 echo "${ECHO_T}$INSTALL" >&6; }
4743
4744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4745 # It thinks the first close brace ends the variable substitution.
4746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4747
4748 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4749
4750 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4751
4752 # Check whether --enable-shared was given.
4753 if test "${enable_shared+set}" = set; then
4754   enableval=$enable_shared; p=${PACKAGE-default}
4755     case $enableval in
4756     yes) enable_shared=yes ;;
4757     no) enable_shared=no ;;
4758     *)
4759       enable_shared=no
4760       # Look at the argument we got.  We use all the common list separators.
4761       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4762       for pkg in $enableval; do
4763         IFS="$lt_save_ifs"
4764         if test "X$pkg" = "X$p"; then
4765           enable_shared=yes
4766         fi
4767       done
4768       IFS="$lt_save_ifs"
4769       ;;
4770     esac
4771 else
4772   enable_shared=yes
4773 fi
4774
4775
4776 # Check whether --enable-static was given.
4777 if test "${enable_static+set}" = set; then
4778   enableval=$enable_static; p=${PACKAGE-default}
4779     case $enableval in
4780     yes) enable_static=yes ;;
4781     no) enable_static=no ;;
4782     *)
4783      enable_static=no
4784       # Look at the argument we got.  We use all the common list separators.
4785       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4786       for pkg in $enableval; do
4787         IFS="$lt_save_ifs"
4788         if test "X$pkg" = "X$p"; then
4789           enable_static=yes
4790         fi
4791       done
4792       IFS="$lt_save_ifs"
4793       ;;
4794     esac
4795 else
4796   enable_static=yes
4797 fi
4798
4799
4800 # Check whether --enable-fast-install was given.
4801 if test "${enable_fast_install+set}" = set; then
4802   enableval=$enable_fast_install; p=${PACKAGE-default}
4803     case $enableval in
4804     yes) enable_fast_install=yes ;;
4805     no) enable_fast_install=no ;;
4806     *)
4807       enable_fast_install=no
4808       # Look at the argument we got.  We use all the common list separators.
4809       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4810       for pkg in $enableval; do
4811         IFS="$lt_save_ifs"
4812         if test "X$pkg" = "X$p"; then
4813           enable_fast_install=yes
4814         fi
4815       done
4816       IFS="$lt_save_ifs"
4817       ;;
4818     esac
4819 else
4820   enable_fast_install=yes
4821 fi
4822
4823
4824 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4825 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4826 if test "${lt_cv_path_SED+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   # Loop through the user's path and test for sed and gsed.
4830 # Then use that list of sed's as ones to test for truncation.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for lt_ac_prog in sed gsed; do
4837     for ac_exec_ext in '' $ac_executable_extensions; do
4838       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4839         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4840       fi
4841     done
4842   done
4843 done
4844 lt_ac_max=0
4845 lt_ac_count=0
4846 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4847 # along with /bin/sed that truncates output.
4848 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4849   test ! -f $lt_ac_sed && continue
4850   cat /dev/null > conftest.in
4851   lt_ac_count=0
4852   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4853   # Check for GNU sed and select it if it is found.
4854   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4855     lt_cv_path_SED=$lt_ac_sed
4856     break
4857   fi
4858   while true; do
4859     cat conftest.in conftest.in >conftest.tmp
4860     mv conftest.tmp conftest.in
4861     cp conftest.in conftest.nl
4862     echo >>conftest.nl
4863     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4864     cmp -s conftest.out conftest.nl || break
4865     # 10000 chars as input seems more than enough
4866     test $lt_ac_count -gt 10 && break
4867     lt_ac_count=`expr $lt_ac_count + 1`
4868     if test $lt_ac_count -gt $lt_ac_max; then
4869       lt_ac_max=$lt_ac_count
4870       lt_cv_path_SED=$lt_ac_sed
4871     fi
4872   done
4873 done
4874
4875 fi
4876
4877 SED=$lt_cv_path_SED
4878 { echo "$as_me:$LINENO: result: $SED" >&5
4879 echo "${ECHO_T}$SED" >&6; }
4880
4881 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4882 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_GREP+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   # Extract the first word of "grep ggrep" to use in msg output
4887 if test -z "$GREP"; then
4888 set dummy grep ggrep; ac_prog_name=$2
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   ac_path_GREP_found=false
4893 # Loop through the user's path and test for each of PROGNAME-LIST
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4896 do
4897   IFS=$as_save_IFS
4898   test -z "$as_dir" && as_dir=.
4899   for ac_prog in grep ggrep; do
4900   for ac_exec_ext in '' $ac_executable_extensions; do
4901     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4902     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4903     # Check for GNU ac_path_GREP and select it if it is found.
4904   # Check for GNU $ac_path_GREP
4905 case `"$ac_path_GREP" --version 2>&1` in
4906 *GNU*)
4907   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4908 *)
4909   ac_count=0
4910   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4911   while :
4912   do
4913     cat "conftest.in" "conftest.in" >"conftest.tmp"
4914     mv "conftest.tmp" "conftest.in"
4915     cp "conftest.in" "conftest.nl"
4916     echo 'GREP' >> "conftest.nl"
4917     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4918     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4919     ac_count=`expr $ac_count + 1`
4920     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4921       # Best one so far, save it but keep looking for a better one
4922       ac_cv_path_GREP="$ac_path_GREP"
4923       ac_path_GREP_max=$ac_count
4924     fi
4925     # 10*(2^10) chars as input seems more than enough
4926     test $ac_count -gt 10 && break
4927   done
4928   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4929 esac
4930
4931
4932     $ac_path_GREP_found && break 3
4933   done
4934 done
4935
4936 done
4937 IFS=$as_save_IFS
4938
4939
4940 fi
4941
4942 GREP="$ac_cv_path_GREP"
4943 if test -z "$GREP"; then
4944   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4945 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4946    { (exit 1); exit 1; }; }
4947 fi
4948
4949 else
4950   ac_cv_path_GREP=$GREP
4951 fi
4952
4953
4954 fi
4955 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4956 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4957  GREP="$ac_cv_path_GREP"
4958
4959
4960 { echo "$as_me:$LINENO: checking for egrep" >&5
4961 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4962 if test "${ac_cv_path_EGREP+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4966    then ac_cv_path_EGREP="$GREP -E"
4967    else
4968      # Extract the first word of "egrep" to use in msg output
4969 if test -z "$EGREP"; then
4970 set dummy egrep; ac_prog_name=$2
4971 if test "${ac_cv_path_EGREP+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   ac_path_EGREP_found=false
4975 # Loop through the user's path and test for each of PROGNAME-LIST
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_prog in egrep; do
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4984     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4985     # Check for GNU ac_path_EGREP and select it if it is found.
4986   # Check for GNU $ac_path_EGREP
4987 case `"$ac_path_EGREP" --version 2>&1` in
4988 *GNU*)
4989   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4990 *)
4991   ac_count=0
4992   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4993   while :
4994   do
4995     cat "conftest.in" "conftest.in" >"conftest.tmp"
4996     mv "conftest.tmp" "conftest.in"
4997     cp "conftest.in" "conftest.nl"
4998     echo 'EGREP' >> "conftest.nl"
4999     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5000     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5001     ac_count=`expr $ac_count + 1`
5002     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5003       # Best one so far, save it but keep looking for a better one
5004       ac_cv_path_EGREP="$ac_path_EGREP"
5005       ac_path_EGREP_max=$ac_count
5006     fi
5007     # 10*(2^10) chars as input seems more than enough
5008     test $ac_count -gt 10 && break
5009   done
5010   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5011 esac
5012
5013
5014     $ac_path_EGREP_found && break 3
5015   done
5016 done
5017
5018 done
5019 IFS=$as_save_IFS
5020
5021
5022 fi
5023
5024 EGREP="$ac_cv_path_EGREP"
5025 if test -z "$EGREP"; then
5026   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5027 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5028    { (exit 1); exit 1; }; }
5029 fi
5030
5031 else
5032   ac_cv_path_EGREP=$EGREP
5033 fi
5034
5035
5036    fi
5037 fi
5038 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5039 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5040  EGREP="$ac_cv_path_EGREP"
5041
5042
5043
5044 # Check whether --with-gnu-ld was given.
5045 if test "${with_gnu_ld+set}" = set; then
5046   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5047 else
5048   with_gnu_ld=no
5049 fi
5050
5051 ac_prog=ld
5052 if test "$GCC" = yes; then
5053   # Check if gcc -print-prog-name=ld gives a path.
5054   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5055 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5056   case $host in
5057   *-*-mingw*)
5058     # gcc leaves a trailing carriage return which upsets mingw
5059     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5060   *)
5061     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5062   esac
5063   case $ac_prog in
5064     # Accept absolute paths.
5065     [\\/]* | ?:[\\/]*)
5066       re_direlt='/[^/][^/]*/\.\./'
5067       # Canonicalize the pathname of ld
5068       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5069       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5070         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5071       done
5072       test -z "$LD" && LD="$ac_prog"
5073       ;;
5074   "")
5075     # If it fails, then pretend we aren't using GCC.
5076     ac_prog=ld
5077     ;;
5078   *)
5079     # If it is relative, then search for the first ld in PATH.
5080     with_gnu_ld=unknown
5081     ;;
5082   esac
5083 elif test "$with_gnu_ld" = yes; then
5084   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5085 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5086 else
5087   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5088 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5089 fi
5090 if test "${lt_cv_path_LD+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   if test -z "$LD"; then
5094   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5095   for ac_dir in $PATH; do
5096     IFS="$lt_save_ifs"
5097     test -z "$ac_dir" && ac_dir=.
5098     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5099       lt_cv_path_LD="$ac_dir/$ac_prog"
5100       # Check to see if the program is GNU ld.  I'd rather use --version,
5101       # but apparently some variants of GNU ld only accept -v.
5102       # Break only if it was the GNU/non-GNU ld that we prefer.
5103       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5104       *GNU* | *'with BFD'*)
5105         test "$with_gnu_ld" != no && break
5106         ;;
5107       *)
5108         test "$with_gnu_ld" != yes && break
5109         ;;
5110       esac
5111     fi
5112   done
5113   IFS="$lt_save_ifs"
5114 else
5115   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5116 fi
5117 fi
5118
5119 LD="$lt_cv_path_LD"
5120 if test -n "$LD"; then
5121   { echo "$as_me:$LINENO: result: $LD" >&5
5122 echo "${ECHO_T}$LD" >&6; }
5123 else
5124   { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5126 fi
5127 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5128 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5129    { (exit 1); exit 1; }; }
5130 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5131 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5132 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5136 case `$LD -v 2>&1 </dev/null` in
5137 *GNU* | *'with BFD'*)
5138   lt_cv_prog_gnu_ld=yes
5139   ;;
5140 *)
5141   lt_cv_prog_gnu_ld=no
5142   ;;
5143 esac
5144 fi
5145 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5146 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5147 with_gnu_ld=$lt_cv_prog_gnu_ld
5148
5149
5150 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5151 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5152 if test "${lt_cv_ld_reload_flag+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   lt_cv_ld_reload_flag='-r'
5156 fi
5157 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5158 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5159 reload_flag=$lt_cv_ld_reload_flag
5160 case $reload_flag in
5161 "" | " "*) ;;
5162 *) reload_flag=" $reload_flag" ;;
5163 esac
5164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5165 case $host_os in
5166   darwin*)
5167     if test "$GCC" = yes; then
5168       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5169     else
5170       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5171     fi
5172     ;;
5173 esac
5174
5175 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5176 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5177 if test "${lt_cv_path_NM+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   if test -n "$NM"; then
5181   # Let the user override the test.
5182   lt_cv_path_NM="$NM"
5183 else
5184   lt_nm_to_check="${ac_tool_prefix}nm"
5185   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5186     lt_nm_to_check="$lt_nm_to_check nm"
5187   fi
5188   for lt_tmp_nm in $lt_nm_to_check; do
5189     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5190     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5191       IFS="$lt_save_ifs"
5192       test -z "$ac_dir" && ac_dir=.
5193       tmp_nm="$ac_dir/$lt_tmp_nm"
5194       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5195         # Check to see if the nm accepts a BSD-compat flag.
5196         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5197         #   nm: unknown option "B" ignored
5198         # Tru64's nm complains that /dev/null is an invalid object file
5199         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5200         */dev/null* | *'Invalid file or object type'*)
5201           lt_cv_path_NM="$tmp_nm -B"
5202           break
5203           ;;
5204         *)
5205           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5206           */dev/null*)
5207             lt_cv_path_NM="$tmp_nm -p"
5208             break
5209             ;;
5210           *)
5211             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5212             continue # so that we can try to find one that supports BSD flags
5213             ;;
5214           esac
5215           ;;
5216         esac
5217       fi
5218     done
5219     IFS="$lt_save_ifs"
5220   done
5221   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5222 fi
5223 fi
5224 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5225 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5226 NM="$lt_cv_path_NM"
5227
5228 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5229 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5230 LN_S=$as_ln_s
5231 if test "$LN_S" = "ln -s"; then
5232   { echo "$as_me:$LINENO: result: yes" >&5
5233 echo "${ECHO_T}yes" >&6; }
5234 else
5235   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5236 echo "${ECHO_T}no, using $LN_S" >&6; }
5237 fi
5238
5239 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5240 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5241 if test "${lt_cv_deplibs_check_method+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   lt_cv_file_magic_cmd='$MAGIC_CMD'
5245 lt_cv_file_magic_test_file=
5246 lt_cv_deplibs_check_method='unknown'
5247 # Need to set the preceding variable on all platforms that support
5248 # interlibrary dependencies.
5249 # 'none' -- dependencies not supported.
5250 # `unknown' -- same as none, but documents that we really don't know.
5251 # 'pass_all' -- all dependencies passed with no checks.
5252 # 'test_compile' -- check by making test program.
5253 # 'file_magic [[regex]]' -- check by looking for files in library path
5254 # which responds to the $file_magic_cmd with a given extended regex.
5255 # If you have `file' or equivalent on your system and you're not sure
5256 # whether `pass_all' will *always* work, you probably want this one.
5257
5258 case $host_os in
5259 aix4* | aix5*)
5260   lt_cv_deplibs_check_method=pass_all
5261   ;;
5262
5263 beos*)
5264   lt_cv_deplibs_check_method=pass_all
5265   ;;
5266
5267 bsdi[45]*)
5268   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5269   lt_cv_file_magic_cmd='/usr/bin/file -L'
5270   lt_cv_file_magic_test_file=/shlib/libc.so
5271   ;;
5272
5273 cygwin*)
5274   # func_win32_libid is a shell function defined in ltmain.sh
5275   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5276   lt_cv_file_magic_cmd='func_win32_libid'
5277   ;;
5278
5279 mingw* | pw32*)
5280   # Base MSYS/MinGW do not provide the 'file' command needed by
5281   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5282   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5283   lt_cv_file_magic_cmd='$OBJDUMP -f'
5284   ;;
5285
5286 darwin* | rhapsody*)
5287   lt_cv_deplibs_check_method=pass_all
5288   ;;
5289
5290 freebsd* | dragonfly*)
5291   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5292     case $host_cpu in
5293     i*86 )
5294       # Not sure whether the presence of OpenBSD here was a mistake.
5295       # Let's accept both of them until this is cleared up.
5296       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5297       lt_cv_file_magic_cmd=/usr/bin/file
5298       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5299       ;;
5300     esac
5301   else
5302     lt_cv_deplibs_check_method=pass_all
5303   fi
5304   ;;
5305
5306 gnu*)
5307   lt_cv_deplibs_check_method=pass_all
5308   ;;
5309
5310 hpux10.20* | hpux11*)
5311   lt_cv_file_magic_cmd=/usr/bin/file
5312   case $host_cpu in
5313   ia64*)
5314     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5315     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5316     ;;
5317   hppa*64*)
5318     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]'
5319     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5320     ;;
5321   *)
5322     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5323     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5324     ;;
5325   esac
5326   ;;
5327
5328 interix3*)
5329   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5330   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5331   ;;
5332
5333 irix5* | irix6* | nonstopux*)
5334   case $LD in
5335   *-32|*"-32 ") libmagic=32-bit;;
5336   *-n32|*"-n32 ") libmagic=N32;;
5337   *-64|*"-64 ") libmagic=64-bit;;
5338   *) libmagic=never-match;;
5339   esac
5340   lt_cv_deplibs_check_method=pass_all
5341   ;;
5342
5343 # This must be Linux ELF.
5344 linux* | k*bsd*-gnu)
5345   lt_cv_deplibs_check_method=pass_all
5346   ;;
5347
5348 netbsd* | netbsdelf*-gnu)
5349   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5351   else
5352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5353   fi
5354   ;;
5355
5356 newos6*)
5357   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5358   lt_cv_file_magic_cmd=/usr/bin/file
5359   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5360   ;;
5361
5362 nto-qnx*)
5363   lt_cv_deplibs_check_method=unknown
5364   ;;
5365
5366 openbsd*)
5367   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5369   else
5370     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5371   fi
5372   ;;
5373
5374 osf3* | osf4* | osf5*)
5375   lt_cv_deplibs_check_method=pass_all
5376   ;;
5377
5378 solaris*)
5379   lt_cv_deplibs_check_method=pass_all
5380   ;;
5381
5382 sysv4 | sysv4.3*)
5383   case $host_vendor in
5384   motorola)
5385     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]'
5386     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5387     ;;
5388   ncr)
5389     lt_cv_deplibs_check_method=pass_all
5390     ;;
5391   sequent)
5392     lt_cv_file_magic_cmd='/bin/file'
5393     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5394     ;;
5395   sni)
5396     lt_cv_file_magic_cmd='/bin/file'
5397     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5398     lt_cv_file_magic_test_file=/lib/libc.so
5399     ;;
5400   siemens)
5401     lt_cv_deplibs_check_method=pass_all
5402     ;;
5403   pc)
5404     lt_cv_deplibs_check_method=pass_all
5405     ;;
5406   esac
5407   ;;
5408
5409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5410   lt_cv_deplibs_check_method=pass_all
5411   ;;
5412 esac
5413
5414 fi
5415 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5416 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5417 file_magic_cmd=$lt_cv_file_magic_cmd
5418 deplibs_check_method=$lt_cv_deplibs_check_method
5419 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5420
5421
5422
5423
5424 # If no C compiler was specified, use CC.
5425 LTCC=${LTCC-"$CC"}
5426
5427 # If no C compiler flags were specified, use CFLAGS.
5428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5429
5430 # Allow CC to be a program name with arguments.
5431 compiler=$CC
5432
5433
5434 # Check whether --enable-libtool-lock was given.
5435 if test "${enable_libtool_lock+set}" = set; then
5436   enableval=$enable_libtool_lock;
5437 fi
5438
5439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5440
5441 # Some flags need to be propagated to the compiler or linker for good
5442 # libtool support.
5443 case $host in
5444 ia64-*-hpux*)
5445   # Find out which ABI we are using.
5446   echo 'int i;' > conftest.$ac_ext
5447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448   (eval $ac_compile) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; then
5452     case `/usr/bin/file conftest.$ac_objext` in
5453     *ELF-32*)
5454       HPUX_IA64_MODE="32"
5455       ;;
5456     *ELF-64*)
5457       HPUX_IA64_MODE="64"
5458       ;;
5459     esac
5460   fi
5461   rm -rf conftest*
5462   ;;
5463 *-*-irix6*)
5464   # Find out which ABI we are using.
5465   echo '#line 5465 "configure"' > conftest.$ac_ext
5466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467   (eval $ac_compile) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; then
5471    if test "$lt_cv_prog_gnu_ld" = yes; then
5472     case `/usr/bin/file conftest.$ac_objext` in
5473     *32-bit*)
5474       LD="${LD-ld} -melf32bsmip"
5475       ;;
5476     *N32*)
5477       LD="${LD-ld} -melf32bmipn32"
5478       ;;
5479     *64-bit*)
5480       LD="${LD-ld} -melf64bmip"
5481       ;;
5482     esac
5483    else
5484     case `/usr/bin/file conftest.$ac_objext` in
5485     *32-bit*)
5486       LD="${LD-ld} -32"
5487       ;;
5488     *N32*)
5489       LD="${LD-ld} -n32"
5490       ;;
5491     *64-bit*)
5492       LD="${LD-ld} -64"
5493       ;;
5494     esac
5495    fi
5496   fi
5497   rm -rf conftest*
5498   ;;
5499
5500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5501   # Find out which ABI we are using.
5502   echo 'int i;' > conftest.$ac_ext
5503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504   (eval $ac_compile) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; then
5508     case `/usr/bin/file conftest.o` in
5509     *32-bit*)
5510       case $host in
5511         x86_64-*linux*)
5512           LD="${LD-ld} -m elf_i386"
5513           ;;
5514         ppc64-*linux*|powerpc64-*linux*)
5515           LD="${LD-ld} -m elf32ppclinux"
5516           ;;
5517         s390x-*linux*)
5518           LD="${LD-ld} -m elf_s390"
5519           ;;
5520         sparc64-*linux*)
5521           LD="${LD-ld} -m elf32_sparc"
5522           ;;
5523       esac
5524       ;;
5525     *64-bit*)
5526       case $host in
5527         x86_64-*linux*)
5528           LD="${LD-ld} -m elf_x86_64"
5529           ;;
5530         ppc*-*linux*|powerpc*-*linux*)
5531           LD="${LD-ld} -m elf64ppc"
5532           ;;
5533         s390*-*linux*)
5534           LD="${LD-ld} -m elf64_s390"
5535           ;;
5536         sparc*-*linux*)
5537           LD="${LD-ld} -m elf64_sparc"
5538           ;;
5539       esac
5540       ;;
5541     esac
5542   fi
5543   rm -rf conftest*
5544   ;;
5545
5546 *-*-sco3.2v5*)
5547   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5548   SAVE_CFLAGS="$CFLAGS"
5549   CFLAGS="$CFLAGS -belf"
5550   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5552 if test "${lt_cv_cc_needs_belf+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560
5561      cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567
5568 int
5569 main ()
5570 {
5571
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (ac_try="$ac_link"
5578 case "(($ac_try" in
5579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580   *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583   (eval "$ac_link") 2>conftest.er1
5584   ac_status=$?
5585   grep -v '^ *+' conftest.er1 >conftest.err
5586   rm -f conftest.er1
5587   cat conftest.err >&5
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } && {
5590          test -z "$ac_c_werror_flag" ||
5591          test ! -s conftest.err
5592        } && test -s conftest$ac_exeext &&
5593        $as_test_x conftest$ac_exeext; then
5594   lt_cv_cc_needs_belf=yes
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599         lt_cv_cc_needs_belf=no
5600 fi
5601
5602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5603       conftest$ac_exeext conftest.$ac_ext
5604      ac_ext=c
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610 fi
5611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5613   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5615     CFLAGS="$SAVE_CFLAGS"
5616   fi
5617   ;;
5618 sparc*-*solaris*)
5619   # Find out which ABI we are using.
5620   echo 'int i;' > conftest.$ac_ext
5621   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622   (eval $ac_compile) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; then
5626     case `/usr/bin/file conftest.o` in
5627     *64-bit*)
5628       case $lt_cv_prog_gnu_ld in
5629       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5630       *)    LD="${LD-ld} -64" ;;
5631       esac
5632       ;;
5633     esac
5634   fi
5635   rm -rf conftest*
5636   ;;
5637
5638
5639 esac
5640
5641 need_locks="$enable_libtool_lock"
5642
5643
5644
5645 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5646 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5647 if test "${ac_cv_header_stdc+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h.  */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h.  */
5656 #include <stdlib.h>
5657 #include <stdarg.h>
5658 #include <string.h>
5659 #include <float.h>
5660
5661 int
5662 main ()
5663 {
5664
5665   ;
5666   return 0;
5667 }
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5671 case "(($ac_try" in
5672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673   *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676   (eval "$ac_compile") 2>conftest.er1
5677   ac_status=$?
5678   grep -v '^ *+' conftest.er1 >conftest.err
5679   rm -f conftest.er1
5680   cat conftest.err >&5
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); } && {
5683          test -z "$ac_c_werror_flag" ||
5684          test ! -s conftest.err
5685        } && test -s conftest.$ac_objext; then
5686   ac_cv_header_stdc=yes
5687 else
5688   echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691         ac_cv_header_stdc=no
5692 fi
5693
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695
5696 if test $ac_cv_header_stdc = yes; then
5697   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5698   cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704 #include <string.h>
5705
5706 _ACEOF
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708   $EGREP "memchr" >/dev/null 2>&1; then
5709   :
5710 else
5711   ac_cv_header_stdc=no
5712 fi
5713 rm -f conftest*
5714
5715 fi
5716
5717 if test $ac_cv_header_stdc = yes; then
5718   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5719   cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725 #include <stdlib.h>
5726
5727 _ACEOF
5728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729   $EGREP "free" >/dev/null 2>&1; then
5730   :
5731 else
5732   ac_cv_header_stdc=no
5733 fi
5734 rm -f conftest*
5735
5736 fi
5737
5738 if test $ac_cv_header_stdc = yes; then
5739   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5740   if test "$cross_compiling" = yes; then
5741   :
5742 else
5743   cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749 #include <ctype.h>
5750 #include <stdlib.h>
5751 #if ((' ' & 0x0FF) == 0x020)
5752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5754 #else
5755 # define ISLOWER(c) \
5756                    (('a' <= (c) && (c) <= 'i') \
5757                      || ('j' <= (c) && (c) <= 'r') \
5758                      || ('s' <= (c) && (c) <= 'z'))
5759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5760 #endif
5761
5762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5763 int
5764 main ()
5765 {
5766   int i;
5767   for (i = 0; i < 256; i++)
5768     if (XOR (islower (i), ISLOWER (i))
5769         || toupper (i) != TOUPPER (i))
5770       return 2;
5771   return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest$ac_exeext
5775 if { (ac_try="$ac_link"
5776 case "(($ac_try" in
5777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778   *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781   (eval "$ac_link") 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5785   { (case "(($ac_try" in
5786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787   *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790   (eval "$ac_try") 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   :
5795 else
5796   echo "$as_me: program exited with status $ac_status" >&5
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 ( exit $ac_status )
5801 ac_cv_header_stdc=no
5802 fi
5803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5804 fi
5805
5806
5807 fi
5808 fi
5809 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5810 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5811 if test $ac_cv_header_stdc = yes; then
5812
5813 cat >>confdefs.h <<\_ACEOF
5814 #define STDC_HEADERS 1
5815 _ACEOF
5816
5817 fi
5818
5819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5830                   inttypes.h stdint.h unistd.h
5831 do
5832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844 $ac_includes_default
5845
5846 #include <$ac_header>
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852   *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855   (eval "$ac_compile") 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } && {
5862          test -z "$ac_c_werror_flag" ||
5863          test ! -s conftest.err
5864        } && test -s conftest.$ac_objext; then
5865   eval "$as_ac_Header=yes"
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870         eval "$as_ac_Header=no"
5871 fi
5872
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 fi
5875 ac_res=`eval echo '${'$as_ac_Header'}'`
5876                { echo "$as_me:$LINENO: result: $ac_res" >&5
5877 echo "${ECHO_T}$ac_res" >&6; }
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879   cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5881 _ACEOF
5882
5883 fi
5884
5885 done
5886
5887
5888
5889 for ac_header in dlfcn.h
5890 do
5891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5893   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 fi
5898 ac_res=`eval echo '${'$as_ac_Header'}'`
5899                { echo "$as_me:$LINENO: result: $ac_res" >&5
5900 echo "${ECHO_T}$ac_res" >&6; }
5901 else
5902   # Is the header compilable?
5903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911 $ac_includes_default
5912 #include <$ac_header>
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_compile") 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } && {
5928          test -z "$ac_c_werror_flag" ||
5929          test ! -s conftest.err
5930        } && test -s conftest.$ac_objext; then
5931   ac_header_compiler=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         ac_header_compiler=no
5937 fi
5938
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5941 echo "${ECHO_T}$ac_header_compiler" >&6; }
5942
5943 # Is the header present?
5944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h.  */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h.  */
5952 #include <$ac_header>
5953 _ACEOF
5954 if { (ac_try="$ac_cpp conftest.$ac_ext"
5955 case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5961   ac_status=$?
5962   grep -v '^ *+' conftest.er1 >conftest.err
5963   rm -f conftest.er1
5964   cat conftest.err >&5
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } >/dev/null && {
5967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5968          test ! -s conftest.err
5969        }; then
5970   ac_header_preproc=yes
5971 else
5972   echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5974
5975   ac_header_preproc=no
5976 fi
5977
5978 rm -f conftest.err conftest.$ac_ext
5979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5980 echo "${ECHO_T}$ac_header_preproc" >&6; }
5981
5982 # So?  What about this header?
5983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5984   yes:no: )
5985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5989     ac_header_preproc=yes
5990     ;;
5991   no:yes:* )
5992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6004
6005     ;;
6006 esac
6007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   eval "$as_ac_Header=\$ac_header_preproc"
6013 fi
6014 ac_res=`eval echo '${'$as_ac_Header'}'`
6015                { echo "$as_me:$LINENO: result: $ac_res" >&5
6016 echo "${ECHO_T}$ac_res" >&6; }
6017
6018 fi
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020   cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6022 _ACEOF
6023
6024 fi
6025
6026 done
6027
6028 ac_ext=cpp
6029 ac_cpp='$CXXCPP $CPPFLAGS'
6030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6033 if test -z "$CXX"; then
6034   if test -n "$CCC"; then
6035     CXX=$CCC
6036   else
6037     if test -n "$ac_tool_prefix"; then
6038   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6039   do
6040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_CXX+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   if test -n "$CXX"; then
6048   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055   for ac_exec_ext in '' $ac_executable_extensions; do
6056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062 done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 CXX=$ac_cv_prog_CXX
6068 if test -n "$CXX"; then
6069   { echo "$as_me:$LINENO: result: $CXX" >&5
6070 echo "${ECHO_T}$CXX" >&6; }
6071 else
6072   { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6074 fi
6075
6076
6077     test -n "$CXX" && break
6078   done
6079 fi
6080 if test -z "$CXX"; then
6081   ac_ct_CXX=$CXX
6082   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6083 do
6084   # Extract the first word of "$ac_prog", so it can be a program name with args.
6085 set dummy $ac_prog; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   if test -n "$ac_ct_CXX"; then
6092   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099   for ac_exec_ext in '' $ac_executable_extensions; do
6100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101     ac_cv_prog_ac_ct_CXX="$ac_prog"
6102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103     break 2
6104   fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6112 if test -n "$ac_ct_CXX"; then
6113   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6114 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6115 else
6116   { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6118 fi
6119
6120
6121   test -n "$ac_ct_CXX" && break
6122 done
6123
6124   if test "x$ac_ct_CXX" = x; then
6125     CXX="g++"
6126   else
6127     case $cross_compiling:$ac_tool_warned in
6128 yes:)
6129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet.  If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&5
6132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet.  If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137     CXX=$ac_ct_CXX
6138   fi
6139 fi
6140
6141   fi
6142 fi
6143 # Provide some information about the compiler.
6144 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6145 ac_compiler=`set X $ac_compile; echo $2`
6146 { (ac_try="$ac_compiler --version >&5"
6147 case "(($ac_try" in
6148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149   *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152   (eval "$ac_compiler --version >&5") 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }
6156 { (ac_try="$ac_compiler -v >&5"
6157 case "(($ac_try" in
6158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159   *) ac_try_echo=$ac_try;;
6160 esac
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162   (eval "$ac_compiler -v >&5") 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); }
6166 { (ac_try="$ac_compiler -V >&5"
6167 case "(($ac_try" in
6168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169   *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172   (eval "$ac_compiler -V >&5") 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }
6176
6177 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6178 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6179 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188
6189 int
6190 main ()
6191 {
6192 #ifndef __GNUC__
6193        choke me
6194 #endif
6195
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204   *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207   (eval "$ac_compile") 2>conftest.er1
6208   ac_status=$?
6209   grep -v '^ *+' conftest.er1 >conftest.err
6210   rm -f conftest.er1
6211   cat conftest.err >&5
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } && {
6214          test -z "$ac_cxx_werror_flag" ||
6215          test ! -s conftest.err
6216        } && test -s conftest.$ac_objext; then
6217   ac_compiler_gnu=yes
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222         ac_compiler_gnu=no
6223 fi
6224
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6227
6228 fi
6229 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6230 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6231 GXX=`test $ac_compiler_gnu = yes && echo yes`
6232 ac_test_CXXFLAGS=${CXXFLAGS+set}
6233 ac_save_CXXFLAGS=$CXXFLAGS
6234 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6235 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_cxx_g+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6240    ac_cxx_werror_flag=yes
6241    ac_cv_prog_cxx_g=no
6242    CXXFLAGS="-g"
6243    cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249
6250 int
6251 main ()
6252 {
6253
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262   *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265   (eval "$ac_compile") 2>conftest.er1
6266   ac_status=$?
6267   grep -v '^ *+' conftest.er1 >conftest.err
6268   rm -f conftest.er1
6269   cat conftest.err >&5
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } && {
6272          test -z "$ac_cxx_werror_flag" ||
6273          test ! -s conftest.err
6274        } && test -s conftest.$ac_objext; then
6275   ac_cv_prog_cxx_g=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280         CXXFLAGS=""
6281       cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287
6288 int
6289 main ()
6290 {
6291
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303   (eval "$ac_compile") 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } && {
6310          test -z "$ac_cxx_werror_flag" ||
6311          test ! -s conftest.err
6312        } && test -s conftest.$ac_objext; then
6313   :
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6319          CXXFLAGS="-g"
6320          cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326
6327 int
6328 main ()
6329 {
6330
6331   ;
6332   return 0;
6333 }
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$ac_compile") 2>conftest.er1
6343   ac_status=$?
6344   grep -v '^ *+' conftest.er1 >conftest.err
6345   rm -f conftest.er1
6346   cat conftest.err >&5
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } && {
6349          test -z "$ac_cxx_werror_flag" ||
6350          test ! -s conftest.err
6351        } && test -s conftest.$ac_objext; then
6352   ac_cv_prog_cxx_g=yes
6353 else
6354   echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357
6358 fi
6359
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 fi
6362
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 fi
6365
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6368 fi
6369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6370 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6371 if test "$ac_test_CXXFLAGS" = set; then
6372   CXXFLAGS=$ac_save_CXXFLAGS
6373 elif test $ac_cv_prog_cxx_g = yes; then
6374   if test "$GXX" = yes; then
6375     CXXFLAGS="-g -O2"
6376   else
6377     CXXFLAGS="-g"
6378   fi
6379 else
6380   if test "$GXX" = yes; then
6381     CXXFLAGS="-O2"
6382   else
6383     CXXFLAGS=
6384   fi
6385 fi
6386 ac_ext=cpp
6387 ac_cpp='$CXXCPP $CPPFLAGS'
6388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6391
6392 depcc="$CXX"  am_compiler_list=
6393
6394 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6395 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6396 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6400   # We make a subdir and do the tests there.  Otherwise we can end up
6401   # making bogus files that we don't know about and never remove.  For
6402   # instance it was reported that on HP-UX the gcc test will end up
6403   # making a dummy file named `D' -- because `-MD' means `put the output
6404   # in D'.
6405   mkdir conftest.dir
6406   # Copy depcomp to subdir because otherwise we won't find it if we're
6407   # using a relative directory.
6408   cp "$am_depcomp" conftest.dir
6409   cd conftest.dir
6410   # We will build objects and dependencies in a subdirectory because
6411   # it helps to detect inapplicable dependency modes.  For instance
6412   # both Tru64's cc and ICC support -MD to output dependencies as a
6413   # side effect of compilation, but ICC will put the dependencies in
6414   # the current directory while Tru64 will put them in the object
6415   # directory.
6416   mkdir sub
6417
6418   am_cv_CXX_dependencies_compiler_type=none
6419   if test "$am_compiler_list" = ""; then
6420      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6421   fi
6422   for depmode in $am_compiler_list; do
6423     # Setup a source with many dependencies, because some compilers
6424     # like to wrap large dependency lists on column 80 (with \), and
6425     # we should not choose a depcomp mode which is confused by this.
6426     #
6427     # We need to recreate these files for each test, as the compiler may
6428     # overwrite some of them when testing with obscure command lines.
6429     # This happens at least with the AIX C compiler.
6430     : > sub/conftest.c
6431     for i in 1 2 3 4 5 6; do
6432       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6433       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6434       # Solaris 8's {/usr,}/bin/sh.
6435       touch sub/conftst$i.h
6436     done
6437     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6438
6439     case $depmode in
6440     nosideeffect)
6441       # after this tag, mechanisms are not by side-effect, so they'll
6442       # only be used when explicitly requested
6443       if test "x$enable_dependency_tracking" = xyes; then
6444         continue
6445       else
6446         break
6447       fi
6448       ;;
6449     none) break ;;
6450     esac
6451     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6452     # mode.  It turns out that the SunPro C++ compiler does not properly
6453     # handle `-M -o', and we need to detect this.
6454     if depmode=$depmode \
6455        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6456        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6457        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6458          >/dev/null 2>conftest.err &&
6459        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6460        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6461        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6462        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6463       # icc doesn't choke on unknown options, it will just issue warnings
6464       # or remarks (even with -Werror).  So we grep stderr for any message
6465       # that says an option was ignored or not supported.
6466       # When given -MP, icc 7.0 and 7.1 complain thusly:
6467       #   icc: Command line warning: ignoring option '-M'; no argument required
6468       # The diagnosis changed in icc 8.0:
6469       #   icc: Command line remark: option '-MP' not supported
6470       if (grep 'ignoring option' conftest.err ||
6471           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6472         am_cv_CXX_dependencies_compiler_type=$depmode
6473         break
6474       fi
6475     fi
6476   done
6477
6478   cd ..
6479   rm -rf conftest.dir
6480 else
6481   am_cv_CXX_dependencies_compiler_type=none
6482 fi
6483
6484 fi
6485 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6486 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6487 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6488
6489  if
6490   test "x$enable_dependency_tracking" != xno \
6491   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6492   am__fastdepCXX_TRUE=
6493   am__fastdepCXX_FALSE='#'
6494 else
6495   am__fastdepCXX_TRUE='#'
6496   am__fastdepCXX_FALSE=
6497 fi
6498
6499
6500
6501
6502 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6503     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6504     (test "X$CXX" != "Xg++"))) ; then
6505   ac_ext=cpp
6506 ac_cpp='$CXXCPP $CPPFLAGS'
6507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6510 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6511 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6512 if test -z "$CXXCPP"; then
6513   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516       # Double quotes because CXXCPP needs to be expanded
6517     for CXXCPP in "$CXX -E" "/lib/cpp"
6518     do
6519       ac_preproc_ok=false
6520 for ac_cxx_preproc_warn_flag in '' yes
6521 do
6522   # Use a header file that comes with gcc, so configuring glibc
6523   # with a fresh cross-compiler works.
6524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6525   # <limits.h> exists even on freestanding compilers.
6526   # On the NeXT, cc -E runs the code through the compiler's parser,
6527   # not just through cpp. "Syntax error" is here to catch this case.
6528   cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534 #ifdef __STDC__
6535 # include <limits.h>
6536 #else
6537 # include <assert.h>
6538 #endif
6539                      Syntax error
6540 _ACEOF
6541 if { (ac_try="$ac_cpp conftest.$ac_ext"
6542 case "(($ac_try" in
6543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544   *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6548   ac_status=$?
6549   grep -v '^ *+' conftest.er1 >conftest.err
6550   rm -f conftest.er1
6551   cat conftest.err >&5
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); } >/dev/null && {
6554          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6555          test ! -s conftest.err
6556        }; then
6557   :
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562   # Broken: fails on valid input.
6563 continue
6564 fi
6565
6566 rm -f conftest.err conftest.$ac_ext
6567
6568   # OK, works on sane cases.  Now check whether nonexistent headers
6569   # can be detected and how.
6570   cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h.  */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h.  */
6576 #include <ac_nonexistent.h>
6577 _ACEOF
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6579 case "(($ac_try" in
6580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581   *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } >/dev/null && {
6591          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6592          test ! -s conftest.err
6593        }; then
6594   # Broken: success on invalid input.
6595 continue
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600   # Passes both tests.
6601 ac_preproc_ok=:
6602 break
6603 fi
6604
6605 rm -f conftest.err conftest.$ac_ext
6606
6607 done
6608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6609 rm -f conftest.err conftest.$ac_ext
6610 if $ac_preproc_ok; then
6611   break
6612 fi
6613
6614     done
6615     ac_cv_prog_CXXCPP=$CXXCPP
6616
6617 fi
6618   CXXCPP=$ac_cv_prog_CXXCPP
6619 else
6620   ac_cv_prog_CXXCPP=$CXXCPP
6621 fi
6622 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6623 echo "${ECHO_T}$CXXCPP" >&6; }
6624 ac_preproc_ok=false
6625 for ac_cxx_preproc_warn_flag in '' yes
6626 do
6627   # Use a header file that comes with gcc, so configuring glibc
6628   # with a fresh cross-compiler works.
6629   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630   # <limits.h> exists even on freestanding compilers.
6631   # On the NeXT, cc -E runs the code through the compiler's parser,
6632   # not just through cpp. "Syntax error" is here to catch this case.
6633   cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639 #ifdef __STDC__
6640 # include <limits.h>
6641 #else
6642 # include <assert.h>
6643 #endif
6644                      Syntax error
6645 _ACEOF
6646 if { (ac_try="$ac_cpp conftest.$ac_ext"
6647 case "(($ac_try" in
6648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649   *) ac_try_echo=$ac_try;;
6650 esac
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6653   ac_status=$?
6654   grep -v '^ *+' conftest.er1 >conftest.err
6655   rm -f conftest.er1
6656   cat conftest.err >&5
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); } >/dev/null && {
6659          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6660          test ! -s conftest.err
6661        }; then
6662   :
6663 else
6664   echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667   # Broken: fails on valid input.
6668 continue
6669 fi
6670
6671 rm -f conftest.err conftest.$ac_ext
6672
6673   # OK, works on sane cases.  Now check whether nonexistent headers
6674   # can be detected and how.
6675   cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681 #include <ac_nonexistent.h>
6682 _ACEOF
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6684 case "(($ac_try" in
6685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686   *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } >/dev/null && {
6696          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6697          test ! -s conftest.err
6698        }; then
6699   # Broken: success on invalid input.
6700 continue
6701 else
6702   echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705   # Passes both tests.
6706 ac_preproc_ok=:
6707 break
6708 fi
6709
6710 rm -f conftest.err conftest.$ac_ext
6711
6712 done
6713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6714 rm -f conftest.err conftest.$ac_ext
6715 if $ac_preproc_ok; then
6716   :
6717 else
6718   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6719 See \`config.log' for more details." >&5
6720 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6721 See \`config.log' for more details." >&2;}
6722    { (exit 1); exit 1; }; }
6723 fi
6724
6725 ac_ext=cpp
6726 ac_cpp='$CXXCPP $CPPFLAGS'
6727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6730
6731 fi
6732
6733
6734 ac_ext=f
6735 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6736 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6738 if test -n "$ac_tool_prefix"; then
6739   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
6740   do
6741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_prog_F77+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   if test -n "$F77"; then
6749   ac_cv_prog_F77="$F77" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 F77=$ac_cv_prog_F77
6769 if test -n "$F77"; then
6770   { echo "$as_me:$LINENO: result: $F77" >&5
6771 echo "${ECHO_T}$F77" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778     test -n "$F77" && break
6779   done
6780 fi
6781 if test -z "$F77"; then
6782   ac_ct_F77=$F77
6783   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
6784 do
6785   # Extract the first word of "$ac_prog", so it can be a program name with args.
6786 set dummy $ac_prog; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   if test -n "$ac_ct_F77"; then
6793   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_ac_ct_F77="$ac_prog"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6813 if test -n "$ac_ct_F77"; then
6814   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6815 echo "${ECHO_T}$ac_ct_F77" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822   test -n "$ac_ct_F77" && break
6823 done
6824
6825   if test "x$ac_ct_F77" = x; then
6826     F77=""
6827   else
6828     case $cross_compiling:$ac_tool_warned in
6829 yes:)
6830 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet.  If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&5
6833 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet.  If you think this
6835 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6836 ac_tool_warned=yes ;;
6837 esac
6838     F77=$ac_ct_F77
6839   fi
6840 fi
6841
6842
6843 # Provide some information about the compiler.
6844 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6845 ac_compiler=`set X $ac_compile; echo $2`
6846 { (ac_try="$ac_compiler --version >&5"
6847 case "(($ac_try" in
6848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849   *) ac_try_echo=$ac_try;;
6850 esac
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852   (eval "$ac_compiler --version >&5") 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }
6856 { (ac_try="$ac_compiler -v >&5"
6857 case "(($ac_try" in
6858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859   *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862   (eval "$ac_compiler -v >&5") 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }
6866 { (ac_try="$ac_compiler -V >&5"
6867 case "(($ac_try" in
6868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869   *) ac_try_echo=$ac_try;;
6870 esac
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872   (eval "$ac_compiler -V >&5") 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }
6876 rm -f a.out
6877
6878 # If we don't use `.F' as extension, the preprocessor is not run on the
6879 # input file.  (Note that this only needs to work for GNU compilers.)
6880 ac_save_ext=$ac_ext
6881 ac_ext=F
6882 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6883 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6884 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   cat >conftest.$ac_ext <<_ACEOF
6888       program main
6889 #ifndef __GNUC__
6890        choke me
6891 #endif
6892
6893       end
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6897 case "(($ac_try" in
6898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899   *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902   (eval "$ac_compile") 2>conftest.er1
6903   ac_status=$?
6904   grep -v '^ *+' conftest.er1 >conftest.err
6905   rm -f conftest.er1
6906   cat conftest.err >&5
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); } && {
6909          test -z "$ac_f77_werror_flag" ||
6910          test ! -s conftest.err
6911        } && test -s conftest.$ac_objext; then
6912   ac_compiler_gnu=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917         ac_compiler_gnu=no
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6922
6923 fi
6924 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6925 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6926 ac_ext=$ac_save_ext
6927 ac_test_FFLAGS=${FFLAGS+set}
6928 ac_save_FFLAGS=$FFLAGS
6929 FFLAGS=
6930 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6931 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_f77_g+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   FFLAGS=-g
6936 cat >conftest.$ac_ext <<_ACEOF
6937       program main
6938
6939       end
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6943 case "(($ac_try" in
6944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945   *) ac_try_echo=$ac_try;;
6946 esac
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948   (eval "$ac_compile") 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } && {
6955          test -z "$ac_f77_werror_flag" ||
6956          test ! -s conftest.err
6957        } && test -s conftest.$ac_objext; then
6958   ac_cv_prog_f77_g=yes
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963         ac_cv_prog_f77_g=no
6964 fi
6965
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967
6968 fi
6969 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6970 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6971 if test "$ac_test_FFLAGS" = set; then
6972   FFLAGS=$ac_save_FFLAGS
6973 elif test $ac_cv_prog_f77_g = yes; then
6974   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6975     FFLAGS="-g -O2"
6976   else
6977     FFLAGS="-g"
6978   fi
6979 else
6980   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6981     FFLAGS="-O2"
6982   else
6983     FFLAGS=
6984   fi
6985 fi
6986
6987 G77=`test $ac_compiler_gnu = yes && echo yes`
6988 ac_ext=c
6989 ac_cpp='$CPP $CPPFLAGS'
6990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6993
6994
6995
6996 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6997
6998 # find the maximum length of command line arguments
6999 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7000 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7001 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004     i=0
7005   teststring="ABCD"
7006
7007   case $build_os in
7008   msdosdjgpp*)
7009     # On DJGPP, this test can blow up pretty badly due to problems in libc
7010     # (any single argument exceeding 2000 bytes causes a buffer overrun
7011     # during glob expansion).  Even if it were fixed, the result of this
7012     # check would be larger than it should be.
7013     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7014     ;;
7015
7016   gnu*)
7017     # Under GNU Hurd, this test is not required because there is
7018     # no limit to the length of command line arguments.
7019     # Libtool will interpret -1 as no limit whatsoever
7020     lt_cv_sys_max_cmd_len=-1;
7021     ;;
7022
7023   cygwin* | mingw*)
7024     # On Win9x/ME, this test blows up -- it succeeds, but takes
7025     # about 5 minutes as the teststring grows exponentially.
7026     # Worse, since 9x/ME are not pre-emptively multitasking,
7027     # you end up with a "frozen" computer, even though with patience
7028     # the test eventually succeeds (with a max line length of 256k).
7029     # Instead, let's just punt: use the minimum linelength reported by
7030     # all of the supported platforms: 8192 (on NT/2K/XP).
7031     lt_cv_sys_max_cmd_len=8192;
7032     ;;
7033
7034   amigaos*)
7035     # On AmigaOS with pdksh, this test takes hours, literally.
7036     # So we just punt and use a minimum line length of 8192.
7037     lt_cv_sys_max_cmd_len=8192;
7038     ;;
7039
7040   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7041     # This has been around since 386BSD, at least.  Likely further.
7042     if test -x /sbin/sysctl; then
7043       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7044     elif test -x /usr/sbin/sysctl; then
7045       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7046     else
7047       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7048     fi
7049     # And add a safety zone
7050     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7051     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7052     ;;
7053
7054   interix*)
7055     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7056     lt_cv_sys_max_cmd_len=196608
7057     ;;
7058
7059   osf*)
7060     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7061     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7062     # nice to cause kernel panics so lets avoid the loop below.
7063     # First set a reasonable default.
7064     lt_cv_sys_max_cmd_len=16384
7065     #
7066     if test -x /sbin/sysconfig; then
7067       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7068         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7069       esac
7070     fi
7071     ;;
7072   sco3.2v5*)
7073     lt_cv_sys_max_cmd_len=102400
7074     ;;
7075   sysv5* | sco5v6* | sysv4.2uw2*)
7076     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7077     if test -n "$kargmax"; then
7078       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7079     else
7080       lt_cv_sys_max_cmd_len=32768
7081     fi
7082     ;;
7083   *)
7084     # If test is not a shell built-in, we'll probably end up computing a
7085     # maximum length that is only half of the actual maximum length, but
7086     # we can't tell.
7087     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7088     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7089                = "XX$teststring") >/dev/null 2>&1 &&
7090             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7091             lt_cv_sys_max_cmd_len=$new_result &&
7092             test $i != 17 # 1/2 MB should be enough
7093     do
7094       i=`expr $i + 1`
7095       teststring=$teststring$teststring
7096     done
7097     teststring=
7098     # Add a significant safety factor because C++ compilers can tack on massive
7099     # amounts of additional arguments before passing them to the linker.
7100     # It appears as though 1/2 is a usable value.
7101     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7102     ;;
7103   esac
7104
7105 fi
7106
7107 if test -n $lt_cv_sys_max_cmd_len ; then
7108   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7109 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: none" >&5
7112 echo "${ECHO_T}none" >&6; }
7113 fi
7114
7115
7116
7117
7118 # Check for command to grab the raw symbol name followed by C symbol from nm.
7119 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7120 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7121 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124
7125 # These are sane defaults that work on at least a few old systems.
7126 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7127
7128 # Character class describing NM global symbol codes.
7129 symcode='[BCDEGRST]'
7130
7131 # Regexp to match symbols that can be accessed directly from C.
7132 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7133
7134 # Transform an extracted symbol line into a proper C declaration
7135 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7136
7137 # Transform an extracted symbol line into symbol name and symbol address
7138 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'"
7139
7140 # Define system-specific variables.
7141 case $host_os in
7142 aix*)
7143   symcode='[BCDT]'
7144   ;;
7145 cygwin* | mingw* | pw32*)
7146   symcode='[ABCDGISTW]'
7147   ;;
7148 hpux*) # Its linker distinguishes data from code symbols
7149   if test "$host_cpu" = ia64; then
7150     symcode='[ABCDEGRST]'
7151   fi
7152   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7153   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'"
7154   ;;
7155 linux* | k*bsd*-gnu)
7156   if test "$host_cpu" = ia64; then
7157     symcode='[ABCDGIRSTW]'
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   fi
7161   ;;
7162 irix* | nonstopux*)
7163   symcode='[BCDEGRST]'
7164   ;;
7165 osf*)
7166   symcode='[BCDEGQRST]'
7167   ;;
7168 solaris*)
7169   symcode='[BDRT]'
7170   ;;
7171 sco3.2v5*)
7172   symcode='[DT]'
7173   ;;
7174 sysv4.2uw2*)
7175   symcode='[DT]'
7176   ;;
7177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7178   symcode='[ABDT]'
7179   ;;
7180 sysv4)
7181   symcode='[DFNSTU]'
7182   ;;
7183 esac
7184
7185 # Handle CRLF in mingw tool chain
7186 opt_cr=
7187 case $build_os in
7188 mingw*)
7189   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7190   ;;
7191 esac
7192
7193 # If we're using GNU nm, then use its standard symbol codes.
7194 case `$NM -V 2>&1` in
7195 *GNU* | *'with BFD'*)
7196   symcode='[ABCDGIRSTW]' ;;
7197 esac
7198
7199 # Try without a prefix undercore, then with it.
7200 for ac_symprfx in "" "_"; do
7201
7202   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7203   symxfrm="\\1 $ac_symprfx\\2 \\2"
7204
7205   # Write the raw and C identifiers.
7206   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7207
7208   # Check to see that the pipe works correctly.
7209   pipe_works=no
7210
7211   rm -f conftest*
7212   cat > conftest.$ac_ext <<EOF
7213 #ifdef __cplusplus
7214 extern "C" {
7215 #endif
7216 char nm_test_var;
7217 void nm_test_func(){}
7218 #ifdef __cplusplus
7219 }
7220 #endif
7221 int main(){nm_test_var='a';nm_test_func();return(0);}
7222 EOF
7223
7224   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225   (eval $ac_compile) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; then
7229     # Now try to grab the symbols.
7230     nlist=conftest.nm
7231     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7232   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); } && test -s "$nlist"; then
7236       # Try sorting and uniquifying the output.
7237       if sort "$nlist" | uniq > "$nlist"T; then
7238         mv -f "$nlist"T "$nlist"
7239       else
7240         rm -f "$nlist"T
7241       fi
7242
7243       # Make sure that we snagged all the symbols we need.
7244       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7245         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7246           cat <<EOF > conftest.$ac_ext
7247 #ifdef __cplusplus
7248 extern "C" {
7249 #endif
7250
7251 EOF
7252           # Now generate the symbol file.
7253           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7254
7255           cat <<EOF >> conftest.$ac_ext
7256 #if defined (__STDC__) && __STDC__
7257 # define lt_ptr_t void *
7258 #else
7259 # define lt_ptr_t char *
7260 # define const
7261 #endif
7262
7263 /* The mapping between symbol names and symbols. */
7264 const struct {
7265   const char *name;
7266   lt_ptr_t address;
7267 }
7268 lt_preloaded_symbols[] =
7269 {
7270 EOF
7271           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7272           cat <<\EOF >> conftest.$ac_ext
7273   {0, (lt_ptr_t) 0}
7274 };
7275
7276 #ifdef __cplusplus
7277 }
7278 #endif
7279 EOF
7280           # Now try linking the two files.
7281           mv conftest.$ac_objext conftstm.$ac_objext
7282           lt_save_LIBS="$LIBS"
7283           lt_save_CFLAGS="$CFLAGS"
7284           LIBS="conftstm.$ac_objext"
7285           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7286           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7287   (eval $ac_link) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7291             pipe_works=yes
7292           fi
7293           LIBS="$lt_save_LIBS"
7294           CFLAGS="$lt_save_CFLAGS"
7295         else
7296           echo "cannot find nm_test_func in $nlist" >&5
7297         fi
7298       else
7299         echo "cannot find nm_test_var in $nlist" >&5
7300       fi
7301     else
7302       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7303     fi
7304   else
7305     echo "$progname: failed program was:" >&5
7306     cat conftest.$ac_ext >&5
7307   fi
7308   rm -f conftest* conftst*
7309
7310   # Do not use the global_symbol_pipe unless it works.
7311   if test "$pipe_works" = yes; then
7312     break
7313   else
7314     lt_cv_sys_global_symbol_pipe=
7315   fi
7316 done
7317
7318 fi
7319
7320 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7321   lt_cv_sys_global_symbol_to_cdecl=
7322 fi
7323 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7324   { echo "$as_me:$LINENO: result: failed" >&5
7325 echo "${ECHO_T}failed" >&6; }
7326 else
7327   { echo "$as_me:$LINENO: result: ok" >&5
7328 echo "${ECHO_T}ok" >&6; }
7329 fi
7330
7331 { echo "$as_me:$LINENO: checking for objdir" >&5
7332 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7333 if test "${lt_cv_objdir+set}" = set; then
7334   echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336   rm -f .libs 2>/dev/null
7337 mkdir .libs 2>/dev/null
7338 if test -d .libs; then
7339   lt_cv_objdir=.libs
7340 else
7341   # MS-DOS does not allow filenames that begin with a dot.
7342   lt_cv_objdir=_libs
7343 fi
7344 rmdir .libs 2>/dev/null
7345 fi
7346 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7347 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7348 objdir=$lt_cv_objdir
7349
7350
7351
7352
7353
7354 case $host_os in
7355 aix3*)
7356   # AIX sometimes has problems with the GCC collect2 program.  For some
7357   # reason, if we set the COLLECT_NAMES environment variable, the problems
7358   # vanish in a puff of smoke.
7359   if test "X${COLLECT_NAMES+set}" != Xset; then
7360     COLLECT_NAMES=
7361     export COLLECT_NAMES
7362   fi
7363   ;;
7364 esac
7365
7366 # Sed substitution that helps us do robust quoting.  It backslashifies
7367 # metacharacters that are still active within double-quoted strings.
7368 Xsed='sed -e 1s/^X//'
7369 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7370
7371 # Same as above, but do not quote variable references.
7372 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7373
7374 # Sed substitution to delay expansion of an escaped shell variable in a
7375 # double_quote_subst'ed string.
7376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7377
7378 # Sed substitution to avoid accidental globbing in evaled expressions
7379 no_glob_subst='s/\*/\\\*/g'
7380
7381 # Constants:
7382 rm="rm -f"
7383
7384 # Global variables:
7385 default_ofile=libtool
7386 can_build_shared=yes
7387
7388 # All known linkers require a `.a' archive for static linking (except MSVC,
7389 # which needs '.lib').
7390 libext=a
7391 ltmain="$ac_aux_dir/ltmain.sh"
7392 ofile="$default_ofile"
7393 with_gnu_ld="$lt_cv_prog_gnu_ld"
7394
7395 if test -n "$ac_tool_prefix"; then
7396   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}ar; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_AR+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   if test -n "$AR"; then
7404   ac_cv_prog_AR="$AR" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_AR="${ac_tool_prefix}ar"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 AR=$ac_cv_prog_AR
7424 if test -n "$AR"; then
7425   { echo "$as_me:$LINENO: result: $AR" >&5
7426 echo "${ECHO_T}$AR" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7431
7432
7433 fi
7434 if test -z "$ac_cv_prog_AR"; then
7435   ac_ct_AR=$AR
7436   # Extract the first word of "ar", so it can be a program name with args.
7437 set dummy ar; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   if test -n "$ac_ct_AR"; then
7444   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451   for ac_exec_ext in '' $ac_executable_extensions; do
7452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453     ac_cv_prog_ac_ct_AR="ar"
7454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7464 if test -n "$ac_ct_AR"; then
7465   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7466 echo "${ECHO_T}$ac_ct_AR" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472   if test "x$ac_ct_AR" = x; then
7473     AR="false"
7474   else
7475     case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7478 whose name does not start with the host triplet.  If you think this
7479 configuration is useful to you, please write to autoconf@gnu.org." >&5
7480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7481 whose name does not start with the host triplet.  If you think this
7482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485     AR=$ac_ct_AR
7486   fi
7487 else
7488   AR="$ac_cv_prog_AR"
7489 fi
7490
7491 if test -n "$ac_tool_prefix"; then
7492   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_prog_RANLIB+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   if test -n "$RANLIB"; then
7500   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 RANLIB=$ac_cv_prog_RANLIB
7520 if test -n "$RANLIB"; then
7521   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7522 echo "${ECHO_T}$RANLIB" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529 fi
7530 if test -z "$ac_cv_prog_RANLIB"; then
7531   ac_ct_RANLIB=$RANLIB
7532   # Extract the first word of "ranlib", so it can be a program name with args.
7533 set dummy ranlib; ac_word=$2
7534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7537   echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539   if test -n "$ac_ct_RANLIB"; then
7540   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547   for ac_exec_ext in '' $ac_executable_extensions; do
7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549     ac_cv_prog_ac_ct_RANLIB="ranlib"
7550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7560 if test -n "$ac_ct_RANLIB"; then
7561   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7562 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7563 else
7564   { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7566 fi
7567
7568   if test "x$ac_ct_RANLIB" = x; then
7569     RANLIB=":"
7570   else
7571     case $cross_compiling:$ac_tool_warned in
7572 yes:)
7573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7574 whose name does not start with the host triplet.  If you think this
7575 configuration is useful to you, please write to autoconf@gnu.org." >&5
7576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7577 whose name does not start with the host triplet.  If you think this
7578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7579 ac_tool_warned=yes ;;
7580 esac
7581     RANLIB=$ac_ct_RANLIB
7582   fi
7583 else
7584   RANLIB="$ac_cv_prog_RANLIB"
7585 fi
7586
7587 if test -n "$ac_tool_prefix"; then
7588   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}strip; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_STRIP+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   if test -n "$STRIP"; then
7596   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 STRIP=$ac_cv_prog_STRIP
7616 if test -n "$STRIP"; then
7617   { echo "$as_me:$LINENO: result: $STRIP" >&5
7618 echo "${ECHO_T}$STRIP" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624
7625 fi
7626 if test -z "$ac_cv_prog_STRIP"; then
7627   ac_ct_STRIP=$STRIP
7628   # Extract the first word of "strip", so it can be a program name with args.
7629 set dummy strip; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   if test -n "$ac_ct_STRIP"; then
7636   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643   for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_prog_ac_ct_STRIP="strip"
7646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650 done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7656 if test -n "$ac_ct_STRIP"; then
7657   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7658 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7659 else
7660   { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7662 fi
7663
7664   if test "x$ac_ct_STRIP" = x; then
7665     STRIP=":"
7666   else
7667     case $cross_compiling:$ac_tool_warned in
7668 yes:)
7669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7670 whose name does not start with the host triplet.  If you think this
7671 configuration is useful to you, please write to autoconf@gnu.org." >&5
7672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7673 whose name does not start with the host triplet.  If you think this
7674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7675 ac_tool_warned=yes ;;
7676 esac
7677     STRIP=$ac_ct_STRIP
7678   fi
7679 else
7680   STRIP="$ac_cv_prog_STRIP"
7681 fi
7682
7683
7684 old_CC="$CC"
7685 old_CFLAGS="$CFLAGS"
7686
7687 # Set sane defaults for various variables
7688 test -z "$AR" && AR=ar
7689 test -z "$AR_FLAGS" && AR_FLAGS=cru
7690 test -z "$AS" && AS=as
7691 test -z "$CC" && CC=cc
7692 test -z "$LTCC" && LTCC=$CC
7693 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7694 test -z "$DLLTOOL" && DLLTOOL=dlltool
7695 test -z "$LD" && LD=ld
7696 test -z "$LN_S" && LN_S="ln -s"
7697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7698 test -z "$NM" && NM=nm
7699 test -z "$SED" && SED=sed
7700 test -z "$OBJDUMP" && OBJDUMP=objdump
7701 test -z "$RANLIB" && RANLIB=:
7702 test -z "$STRIP" && STRIP=:
7703 test -z "$ac_objext" && ac_objext=o
7704
7705 # Determine commands to create old-style static archives.
7706 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7707 old_postinstall_cmds='chmod 644 $oldlib'
7708 old_postuninstall_cmds=
7709
7710 if test -n "$RANLIB"; then
7711   case $host_os in
7712   openbsd*)
7713     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7714     ;;
7715   *)
7716     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7717     ;;
7718   esac
7719   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7720 fi
7721
7722 for cc_temp in $compiler""; do
7723   case $cc_temp in
7724     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7725     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7726     \-*) ;;
7727     *) break;;
7728   esac
7729 done
7730 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7731
7732
7733 # Only perform the check for file, if the check method requires it
7734 case $deplibs_check_method in
7735 file_magic*)
7736   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7737     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7738 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   case $MAGIC_CMD in
7743 [\\/*] |  ?:[\\/]*)
7744   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7745   ;;
7746 *)
7747   lt_save_MAGIC_CMD="$MAGIC_CMD"
7748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750   for ac_dir in $ac_dummy; do
7751     IFS="$lt_save_ifs"
7752     test -z "$ac_dir" && ac_dir=.
7753     if test -f $ac_dir/${ac_tool_prefix}file; then
7754       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7755       if test -n "$file_magic_test_file"; then
7756         case $deplibs_check_method in
7757         "file_magic "*)
7758           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761             $EGREP "$file_magic_regex" > /dev/null; then
7762             :
7763           else
7764             cat <<EOF 1>&2
7765
7766 *** Warning: the command libtool uses to detect shared libraries,
7767 *** $file_magic_cmd, produces output that libtool cannot recognize.
7768 *** The result is that libtool may fail to recognize shared libraries
7769 *** as such.  This will affect the creation of libtool libraries that
7770 *** depend on shared libraries, but programs linked with such libtool
7771 *** libraries will work regardless of this problem.  Nevertheless, you
7772 *** may want to report the problem to your system manager and/or to
7773 *** bug-libtool@gnu.org
7774
7775 EOF
7776           fi ;;
7777         esac
7778       fi
7779       break
7780     fi
7781   done
7782   IFS="$lt_save_ifs"
7783   MAGIC_CMD="$lt_save_MAGIC_CMD"
7784   ;;
7785 esac
7786 fi
7787
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if test -n "$MAGIC_CMD"; then
7790   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7791 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7792 else
7793   { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7795 fi
7796
7797 if test -z "$lt_cv_path_MAGIC_CMD"; then
7798   if test -n "$ac_tool_prefix"; then
7799     { echo "$as_me:$LINENO: checking for file" >&5
7800 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7801 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   case $MAGIC_CMD in
7805 [\\/*] |  ?:[\\/]*)
7806   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7807   ;;
7808 *)
7809   lt_save_MAGIC_CMD="$MAGIC_CMD"
7810   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7811   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7812   for ac_dir in $ac_dummy; do
7813     IFS="$lt_save_ifs"
7814     test -z "$ac_dir" && ac_dir=.
7815     if test -f $ac_dir/file; then
7816       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7817       if test -n "$file_magic_test_file"; then
7818         case $deplibs_check_method in
7819         "file_magic "*)
7820           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7821           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7823             $EGREP "$file_magic_regex" > /dev/null; then
7824             :
7825           else
7826             cat <<EOF 1>&2
7827
7828 *** Warning: the command libtool uses to detect shared libraries,
7829 *** $file_magic_cmd, produces output that libtool cannot recognize.
7830 *** The result is that libtool may fail to recognize shared libraries
7831 *** as such.  This will affect the creation of libtool libraries that
7832 *** depend on shared libraries, but programs linked with such libtool
7833 *** libraries will work regardless of this problem.  Nevertheless, you
7834 *** may want to report the problem to your system manager and/or to
7835 *** bug-libtool@gnu.org
7836
7837 EOF
7838           fi ;;
7839         esac
7840       fi
7841       break
7842     fi
7843   done
7844   IFS="$lt_save_ifs"
7845   MAGIC_CMD="$lt_save_MAGIC_CMD"
7846   ;;
7847 esac
7848 fi
7849
7850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7851 if test -n "$MAGIC_CMD"; then
7852   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7853 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7854 else
7855   { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857 fi
7858
7859   else
7860     MAGIC_CMD=:
7861   fi
7862 fi
7863
7864   fi
7865   ;;
7866 esac
7867
7868 enable_dlopen=no
7869 enable_win32_dll=no
7870
7871 # Check whether --enable-libtool-lock was given.
7872 if test "${enable_libtool_lock+set}" = set; then
7873   enableval=$enable_libtool_lock;
7874 fi
7875
7876 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7877
7878
7879 # Check whether --with-pic was given.
7880 if test "${with_pic+set}" = set; then
7881   withval=$with_pic; pic_mode="$withval"
7882 else
7883   pic_mode=default
7884 fi
7885
7886 test -z "$pic_mode" && pic_mode=default
7887
7888 # Use C for the default configuration in the libtool script
7889 tagname=
7890 lt_save_CC="$CC"
7891 ac_ext=c
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896
7897
7898 # Source file extension for C test sources.
7899 ac_ext=c
7900
7901 # Object file extension for compiled C test sources.
7902 objext=o
7903 objext=$objext
7904
7905 # Code to be used in simple compile tests
7906 lt_simple_compile_test_code="int some_variable = 0;\n"
7907
7908 # Code to be used in simple link tests
7909 lt_simple_link_test_code='int main(){return(0);}\n'
7910
7911
7912 # If no C compiler was specified, use CC.
7913 LTCC=${LTCC-"$CC"}
7914
7915 # If no C compiler flags were specified, use CFLAGS.
7916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7917
7918 # Allow CC to be a program name with arguments.
7919 compiler=$CC
7920
7921
7922 # save warnings/boilerplate of simple test code
7923 ac_outfile=conftest.$ac_objext
7924 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7926 _lt_compiler_boilerplate=`cat conftest.err`
7927 $rm conftest*
7928
7929 ac_outfile=conftest.$ac_objext
7930 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932 _lt_linker_boilerplate=`cat conftest.err`
7933 $rm conftest*
7934
7935
7936
7937 lt_prog_compiler_no_builtin_flag=
7938
7939 if test "$GCC" = yes; then
7940   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7941
7942
7943 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7944 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7945 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   lt_cv_prog_compiler_rtti_exceptions=no
7949   ac_outfile=conftest.$ac_objext
7950    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7951    lt_compiler_flag="-fno-rtti -fno-exceptions"
7952    # Insert the option either (1) after the last *FLAGS variable, or
7953    # (2) before a word containing "conftest.", or (3) at the end.
7954    # Note that $ac_compile itself does not contain backslashes and begins
7955    # with a dollar sign (not a hyphen), so the echo should work correctly.
7956    # The option is referenced via a variable to avoid confusing sed.
7957    lt_compile=`echo "$ac_compile" | $SED \
7958    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7960    -e 's:$: $lt_compiler_flag:'`
7961    (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
7962    (eval "$lt_compile" 2>conftest.err)
7963    ac_status=$?
7964    cat conftest.err >&5
7965    echo "$as_me:7965: \$? = $ac_status" >&5
7966    if (exit $ac_status) && test -s "$ac_outfile"; then
7967      # The compiler can only warn and ignore the option if not recognized
7968      # So say no if there are warnings other than the usual output.
7969      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7970      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7971      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7972        lt_cv_prog_compiler_rtti_exceptions=yes
7973      fi
7974    fi
7975    $rm conftest*
7976
7977 fi
7978 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7979 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7980
7981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7982     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7983 else
7984     :
7985 fi
7986
7987 fi
7988
7989 lt_prog_compiler_wl=
7990 lt_prog_compiler_pic=
7991 lt_prog_compiler_static=
7992
7993 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7995
7996   if test "$GCC" = yes; then
7997     lt_prog_compiler_wl='-Wl,'
7998     lt_prog_compiler_static='-static'
7999
8000     case $host_os in
8001       aix*)
8002       # All AIX code is PIC.
8003       if test "$host_cpu" = ia64; then
8004         # AIX 5 now supports IA64 processor
8005         lt_prog_compiler_static='-Bstatic'
8006       fi
8007       ;;
8008
8009     amigaos*)
8010       # FIXME: we need at least 68020 code to build shared libraries, but
8011       # adding the `-m68020' flag to GCC prevents building anything better,
8012       # like `-m68040'.
8013       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8014       ;;
8015
8016     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8017       # PIC is the default for these OSes.
8018       ;;
8019
8020     mingw* | pw32* | os2*)
8021       # This hack is so that the source file can tell whether it is being
8022       # built for inclusion in a dll (and should export symbols for example).
8023       lt_prog_compiler_pic='-DDLL_EXPORT'
8024       ;;
8025
8026     darwin* | rhapsody*)
8027       # PIC is the default on this platform
8028       # Common symbols not allowed in MH_DYLIB files
8029       lt_prog_compiler_pic='-fno-common'
8030       ;;
8031
8032     interix3*)
8033       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8034       # Instead, we relocate shared libraries at runtime.
8035       ;;
8036
8037     msdosdjgpp*)
8038       # Just because we use GCC doesn't mean we suddenly get shared libraries
8039       # on systems that don't support them.
8040       lt_prog_compiler_can_build_shared=no
8041       enable_shared=no
8042       ;;
8043
8044     sysv4*MP*)
8045       if test -d /usr/nec; then
8046         lt_prog_compiler_pic=-Kconform_pic
8047       fi
8048       ;;
8049
8050     hpux*)
8051       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8052       # not for PA HP-UX.
8053       case $host_cpu in
8054       hppa*64*|ia64*)
8055         # +Z the default
8056         ;;
8057       *)
8058         lt_prog_compiler_pic='-fPIC'
8059         ;;
8060       esac
8061       ;;
8062
8063     *)
8064       lt_prog_compiler_pic='-fPIC'
8065       ;;
8066     esac
8067   else
8068     # PORTME Check for flag to pass linker flags through the system compiler.
8069     case $host_os in
8070     aix*)
8071       lt_prog_compiler_wl='-Wl,'
8072       if test "$host_cpu" = ia64; then
8073         # AIX 5 now supports IA64 processor
8074         lt_prog_compiler_static='-Bstatic'
8075       else
8076         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8077       fi
8078       ;;
8079       darwin*)
8080         # PIC is the default on this platform
8081         # Common symbols not allowed in MH_DYLIB files
8082        case $cc_basename in
8083          xlc*)
8084          lt_prog_compiler_pic='-qnocommon'
8085          lt_prog_compiler_wl='-Wl,'
8086          ;;
8087        esac
8088        ;;
8089
8090     mingw* | pw32* | os2*)
8091       # This hack is so that the source file can tell whether it is being
8092       # built for inclusion in a dll (and should export symbols for example).
8093       lt_prog_compiler_pic='-DDLL_EXPORT'
8094       ;;
8095
8096     hpux9* | hpux10* | hpux11*)
8097       lt_prog_compiler_wl='-Wl,'
8098       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8099       # not for PA HP-UX.
8100       case $host_cpu in
8101       hppa*64*|ia64*)
8102         # +Z the default
8103         ;;
8104       *)
8105         lt_prog_compiler_pic='+Z'
8106         ;;
8107       esac
8108       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8109       lt_prog_compiler_static='${wl}-a ${wl}archive'
8110       ;;
8111
8112     irix5* | irix6* | nonstopux*)
8113       lt_prog_compiler_wl='-Wl,'
8114       # PIC (with -KPIC) is the default.
8115       lt_prog_compiler_static='-non_shared'
8116       ;;
8117
8118     newsos6)
8119       lt_prog_compiler_pic='-KPIC'
8120       lt_prog_compiler_static='-Bstatic'
8121       ;;
8122
8123     linux* | k*bsd*-gnu)
8124       case $cc_basename in
8125       icc* | ecc*)
8126         lt_prog_compiler_wl='-Wl,'
8127         lt_prog_compiler_pic='-KPIC'
8128         lt_prog_compiler_static='-static'
8129         ;;
8130       pgcc* | pgf77* | pgf90* | pgf95*)
8131         # Portland Group compilers (*not* the Pentium gcc compiler,
8132         # which looks to be a dead project)
8133         lt_prog_compiler_wl='-Wl,'
8134         lt_prog_compiler_pic='-fpic'
8135         lt_prog_compiler_static='-Bstatic'
8136         ;;
8137       ccc*)
8138         lt_prog_compiler_wl='-Wl,'
8139         # All Alpha code is PIC.
8140         lt_prog_compiler_static='-non_shared'
8141         ;;
8142       esac
8143       ;;
8144
8145     osf3* | osf4* | osf5*)
8146       lt_prog_compiler_wl='-Wl,'
8147       # All OSF/1 code is PIC.
8148       lt_prog_compiler_static='-non_shared'
8149       ;;
8150
8151     solaris*)
8152       lt_prog_compiler_pic='-KPIC'
8153       lt_prog_compiler_static='-Bstatic'
8154       case $cc_basename in
8155       f77* | f90* | f95*)
8156         lt_prog_compiler_wl='-Qoption ld ';;
8157       *)
8158         lt_prog_compiler_wl='-Wl,';;
8159       esac
8160       ;;
8161
8162     sunos4*)
8163       lt_prog_compiler_wl='-Qoption ld '
8164       lt_prog_compiler_pic='-PIC'
8165       lt_prog_compiler_static='-Bstatic'
8166       ;;
8167
8168     sysv4 | sysv4.2uw2* | sysv4.3*)
8169       lt_prog_compiler_wl='-Wl,'
8170       lt_prog_compiler_pic='-KPIC'
8171       lt_prog_compiler_static='-Bstatic'
8172       ;;
8173
8174     sysv4*MP*)
8175       if test -d /usr/nec ;then
8176         lt_prog_compiler_pic='-Kconform_pic'
8177         lt_prog_compiler_static='-Bstatic'
8178       fi
8179       ;;
8180
8181     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8182       lt_prog_compiler_wl='-Wl,'
8183       lt_prog_compiler_pic='-KPIC'
8184       lt_prog_compiler_static='-Bstatic'
8185       ;;
8186
8187     unicos*)
8188       lt_prog_compiler_wl='-Wl,'
8189       lt_prog_compiler_can_build_shared=no
8190       ;;
8191
8192     uts4*)
8193       lt_prog_compiler_pic='-pic'
8194       lt_prog_compiler_static='-Bstatic'
8195       ;;
8196
8197     *)
8198       lt_prog_compiler_can_build_shared=no
8199       ;;
8200     esac
8201   fi
8202
8203 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8204 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8205
8206 #
8207 # Check to make sure the PIC flag actually works.
8208 #
8209 if test -n "$lt_prog_compiler_pic"; then
8210
8211 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8212 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8213 if test "${lt_prog_compiler_pic_works+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   lt_prog_compiler_pic_works=no
8217   ac_outfile=conftest.$ac_objext
8218    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8219    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8220    # Insert the option either (1) after the last *FLAGS variable, or
8221    # (2) before a word containing "conftest.", or (3) at the end.
8222    # Note that $ac_compile itself does not contain backslashes and begins
8223    # with a dollar sign (not a hyphen), so the echo should work correctly.
8224    # The option is referenced via a variable to avoid confusing sed.
8225    lt_compile=`echo "$ac_compile" | $SED \
8226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8228    -e 's:$: $lt_compiler_flag:'`
8229    (eval echo "\"\$as_me:8229: $lt_compile\"" >&5)
8230    (eval "$lt_compile" 2>conftest.err)
8231    ac_status=$?
8232    cat conftest.err >&5
8233    echo "$as_me:8233: \$? = $ac_status" >&5
8234    if (exit $ac_status) && test -s "$ac_outfile"; then
8235      # The compiler can only warn and ignore the option if not recognized
8236      # So say no if there are warnings other than the usual output.
8237      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8238      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8239      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8240        lt_prog_compiler_pic_works=yes
8241      fi
8242    fi
8243    $rm conftest*
8244
8245 fi
8246 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8247 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8248
8249 if test x"$lt_prog_compiler_pic_works" = xyes; then
8250     case $lt_prog_compiler_pic in
8251      "" | " "*) ;;
8252      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8253      esac
8254 else
8255     lt_prog_compiler_pic=
8256      lt_prog_compiler_can_build_shared=no
8257 fi
8258
8259 fi
8260 case $host_os in
8261   # For platforms which do not support PIC, -DPIC is meaningless:
8262   *djgpp*)
8263     lt_prog_compiler_pic=
8264     ;;
8265   *)
8266     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8267     ;;
8268 esac
8269
8270 #
8271 # Check to make sure the static flag actually works.
8272 #
8273 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8274 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8275 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8276 if test "${lt_prog_compiler_static_works+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   lt_prog_compiler_static_works=no
8280    save_LDFLAGS="$LDFLAGS"
8281    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8282    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8283    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8284      # The linker can only warn and ignore the option if not recognized
8285      # So say no if there are warnings
8286      if test -s conftest.err; then
8287        # Append any errors to the config.log.
8288        cat conftest.err 1>&5
8289        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8290        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8291        if diff conftest.exp conftest.er2 >/dev/null; then
8292          lt_prog_compiler_static_works=yes
8293        fi
8294      else
8295        lt_prog_compiler_static_works=yes
8296      fi
8297    fi
8298    $rm conftest*
8299    LDFLAGS="$save_LDFLAGS"
8300
8301 fi
8302 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8303 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8304
8305 if test x"$lt_prog_compiler_static_works" = xyes; then
8306     :
8307 else
8308     lt_prog_compiler_static=
8309 fi
8310
8311
8312 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8313 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   lt_cv_prog_compiler_c_o=no
8318    $rm -r conftest 2>/dev/null
8319    mkdir conftest
8320    cd conftest
8321    mkdir out
8322    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8323
8324    lt_compiler_flag="-o out/conftest2.$ac_objext"
8325    # Insert the option either (1) after the last *FLAGS variable, or
8326    # (2) before a word containing "conftest.", or (3) at the end.
8327    # Note that $ac_compile itself does not contain backslashes and begins
8328    # with a dollar sign (not a hyphen), so the echo should work correctly.
8329    lt_compile=`echo "$ac_compile" | $SED \
8330    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332    -e 's:$: $lt_compiler_flag:'`
8333    (eval echo "\"\$as_me:8333: $lt_compile\"" >&5)
8334    (eval "$lt_compile" 2>out/conftest.err)
8335    ac_status=$?
8336    cat out/conftest.err >&5
8337    echo "$as_me:8337: \$? = $ac_status" >&5
8338    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339    then
8340      # The compiler can only warn and ignore the option if not recognized
8341      # So say no if there are warnings
8342      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8343      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345        lt_cv_prog_compiler_c_o=yes
8346      fi
8347    fi
8348    chmod u+w . 2>&5
8349    $rm conftest*
8350    # SGI C++ compiler will create directory out/ii_files/ for
8351    # template instantiation
8352    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8353    $rm out/* && rmdir out
8354    cd ..
8355    rmdir conftest
8356    $rm conftest*
8357
8358 fi
8359 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8360 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8361
8362
8363 hard_links="nottested"
8364 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8365   # do not overwrite the value of need_locks provided by the user
8366   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8367 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8368   hard_links=yes
8369   $rm conftest*
8370   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8371   touch conftest.a
8372   ln conftest.a conftest.b 2>&5 || hard_links=no
8373   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8374   { echo "$as_me:$LINENO: result: $hard_links" >&5
8375 echo "${ECHO_T}$hard_links" >&6; }
8376   if test "$hard_links" = no; then
8377     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8378 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8379     need_locks=warn
8380   fi
8381 else
8382   need_locks=no
8383 fi
8384
8385 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8386 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8387
8388   runpath_var=
8389   allow_undefined_flag=
8390   enable_shared_with_static_runtimes=no
8391   archive_cmds=
8392   archive_expsym_cmds=
8393   old_archive_From_new_cmds=
8394   old_archive_from_expsyms_cmds=
8395   export_dynamic_flag_spec=
8396   whole_archive_flag_spec=
8397   thread_safe_flag_spec=
8398   hardcode_libdir_flag_spec=
8399   hardcode_libdir_flag_spec_ld=
8400   hardcode_libdir_separator=
8401   hardcode_direct=no
8402   hardcode_minus_L=no
8403   hardcode_shlibpath_var=unsupported
8404   link_all_deplibs=unknown
8405   hardcode_automatic=no
8406   module_cmds=
8407   module_expsym_cmds=
8408   always_export_symbols=no
8409   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8410   # include_expsyms should be a list of space-separated symbols to be *always*
8411   # included in the symbol list
8412   include_expsyms=
8413   # exclude_expsyms can be an extended regexp of symbols to exclude
8414   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8415   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8416   # as well as any symbol that contains `d'.
8417   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8418   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8419   # platforms (ab)use it in PIC code, but their linkers get confused if
8420   # the symbol is explicitly referenced.  Since portable code cannot
8421   # rely on this symbol name, it's probably fine to never include it in
8422   # preloaded symbol tables.
8423   extract_expsyms_cmds=
8424   # Just being paranoid about ensuring that cc_basename is set.
8425   for cc_temp in $compiler""; do
8426   case $cc_temp in
8427     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8428     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8429     \-*) ;;
8430     *) break;;
8431   esac
8432 done
8433 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8434
8435   case $host_os in
8436   cygwin* | mingw* | pw32*)
8437     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8438     # When not using gcc, we currently assume that we are using
8439     # Microsoft Visual C++.
8440     if test "$GCC" != yes; then
8441       with_gnu_ld=no
8442     fi
8443     ;;
8444   interix*)
8445     # we just hope/assume this is gcc and not c89 (= MSVC++)
8446     with_gnu_ld=yes
8447     ;;
8448   openbsd*)
8449     with_gnu_ld=no
8450     ;;
8451   esac
8452
8453   ld_shlibs=yes
8454   if test "$with_gnu_ld" = yes; then
8455     # If archive_cmds runs LD, not CC, wlarc should be empty
8456     wlarc='${wl}'
8457
8458     # Set some defaults for GNU ld with shared library support. These
8459     # are reset later if shared libraries are not supported. Putting them
8460     # here allows them to be overridden if necessary.
8461     runpath_var=LD_RUN_PATH
8462     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8463     export_dynamic_flag_spec='${wl}--export-dynamic'
8464     # ancient GNU ld didn't support --whole-archive et. al.
8465     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8466         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8467       else
8468         whole_archive_flag_spec=
8469     fi
8470     supports_anon_versioning=no
8471     case `$LD -v 2>/dev/null` in
8472       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8473       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8474       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8475       *\ 2.11.*) ;; # other 2.11 versions
8476       *) supports_anon_versioning=yes ;;
8477     esac
8478
8479     # See if GNU ld supports shared libraries.
8480     case $host_os in
8481     aix3* | aix4* | aix5*)
8482       # On AIX/PPC, the GNU linker is very broken
8483       if test "$host_cpu" != ia64; then
8484         ld_shlibs=no
8485         cat <<EOF 1>&2
8486
8487 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8488 *** to be unable to reliably create shared libraries on AIX.
8489 *** Therefore, libtool is disabling shared libraries support.  If you
8490 *** really care for shared libraries, you may want to modify your PATH
8491 *** so that a non-GNU linker is found, and then restart.
8492
8493 EOF
8494       fi
8495       ;;
8496
8497     amigaos*)
8498       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)'
8499       hardcode_libdir_flag_spec='-L$libdir'
8500       hardcode_minus_L=yes
8501
8502       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8503       # that the semantics of dynamic libraries on AmigaOS, at least up
8504       # to version 4, is to share data among multiple programs linked
8505       # with the same dynamic library.  Since this doesn't match the
8506       # behavior of shared libraries on other platforms, we can't use
8507       # them.
8508       ld_shlibs=no
8509       ;;
8510
8511     beos*)
8512       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8513         allow_undefined_flag=unsupported
8514         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8515         # support --undefined.  This deserves some investigation.  FIXME
8516         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517       else
8518         ld_shlibs=no
8519       fi
8520       ;;
8521
8522     cygwin* | mingw* | pw32*)
8523       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8524       # as there is no search path for DLLs.
8525       hardcode_libdir_flag_spec='-L$libdir'
8526       allow_undefined_flag=unsupported
8527       always_export_symbols=no
8528       enable_shared_with_static_runtimes=yes
8529       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8530
8531       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8532         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8533         # If the export-symbols file already is a .def file (1st line
8534         # is EXPORTS), use it as is; otherwise, prepend...
8535         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8536           cp $export_symbols $output_objdir/$soname.def;
8537         else
8538           echo EXPORTS > $output_objdir/$soname.def;
8539           cat $export_symbols >> $output_objdir/$soname.def;
8540         fi~
8541         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8542       else
8543         ld_shlibs=no
8544       fi
8545       ;;
8546
8547     interix3*)
8548       hardcode_direct=no
8549       hardcode_shlibpath_var=no
8550       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8551       export_dynamic_flag_spec='${wl}-E'
8552       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8553       # Instead, shared libraries are loaded at an image base (0x10000000 by
8554       # default) and relocated if they conflict, which is a slow very memory
8555       # consuming and fragmenting process.  To avoid this, we pick a random,
8556       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8557       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8558       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8559       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'
8560       ;;
8561
8562     linux* | k*bsd*-gnu)
8563       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8564         tmp_addflag=
8565         case $cc_basename,$host_cpu in
8566         pgcc*)                          # Portland Group C compiler
8567           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'
8568           tmp_addflag=' $pic_flag'
8569           ;;
8570         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8571           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'
8572           tmp_addflag=' $pic_flag -Mnomain' ;;
8573         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8574           tmp_addflag=' -i_dynamic' ;;
8575         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8576           tmp_addflag=' -i_dynamic -nofor_main' ;;
8577         ifc* | ifort*)                  # Intel Fortran compiler
8578           tmp_addflag=' -nofor_main' ;;
8579         esac
8580         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581
8582         if test $supports_anon_versioning = yes; then
8583           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8584   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8585   $echo "local: *; };" >> $output_objdir/$libname.ver~
8586           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8587         fi
8588         link_all_deplibs=no
8589       else
8590         ld_shlibs=no
8591       fi
8592       ;;
8593
8594     netbsd* | netbsdelf*-gnu)
8595       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8596         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8597         wlarc=
8598       else
8599         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8601       fi
8602       ;;
8603
8604     solaris*)
8605       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8606         ld_shlibs=no
8607         cat <<EOF 1>&2
8608
8609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8610 *** create shared libraries on Solaris systems.  Therefore, libtool
8611 *** is disabling shared libraries support.  We urge you to upgrade GNU
8612 *** binutils to release 2.9.1 or newer.  Another option is to modify
8613 *** your PATH or compiler configuration so that the native linker is
8614 *** used, and then restart.
8615
8616 EOF
8617       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8618         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8620       else
8621         ld_shlibs=no
8622       fi
8623       ;;
8624
8625     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8626       case `$LD -v 2>&1` in
8627         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8628         ld_shlibs=no
8629         cat <<_LT_EOF 1>&2
8630
8631 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8632 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8633 *** is disabling shared libraries support.  We urge you to upgrade GNU
8634 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8635 *** your PATH or compiler configuration so that the native linker is
8636 *** used, and then restart.
8637
8638 _LT_EOF
8639         ;;
8640         *)
8641           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8642             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8643             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8644             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8645           else
8646             ld_shlibs=no
8647           fi
8648         ;;
8649       esac
8650       ;;
8651
8652     sunos4*)
8653       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654       wlarc=
8655       hardcode_direct=yes
8656       hardcode_shlibpath_var=no
8657       ;;
8658
8659     *)
8660       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8661         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663       else
8664         ld_shlibs=no
8665       fi
8666       ;;
8667     esac
8668
8669     if test "$ld_shlibs" = no; then
8670       runpath_var=
8671       hardcode_libdir_flag_spec=
8672       export_dynamic_flag_spec=
8673       whole_archive_flag_spec=
8674     fi
8675   else
8676     # PORTME fill in a description of your system's linker (not GNU ld)
8677     case $host_os in
8678     aix3*)
8679       allow_undefined_flag=unsupported
8680       always_export_symbols=yes
8681       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'
8682       # Note: this linker hardcodes the directories in LIBPATH if there
8683       # are no directories specified by -L.
8684       hardcode_minus_L=yes
8685       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8686         # Neither direct hardcoding nor static linking is supported with a
8687         # broken collect2.
8688         hardcode_direct=unsupported
8689       fi
8690       ;;
8691
8692     aix4* | aix5*)
8693       if test "$host_cpu" = ia64; then
8694         # On IA64, the linker does run time linking by default, so we don't
8695         # have to do anything special.
8696         aix_use_runtimelinking=no
8697         exp_sym_flag='-Bexport'
8698         no_entry_flag=""
8699       else
8700         # If we're using GNU nm, then we don't want the "-C" option.
8701         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8702         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8703           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'
8704         else
8705           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'
8706         fi
8707         aix_use_runtimelinking=no
8708
8709         # Test if we are trying to use run time linking or normal
8710         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8711         # need to do runtime linking.
8712         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8713           for ld_flag in $LDFLAGS; do
8714           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8715             aix_use_runtimelinking=yes
8716             break
8717           fi
8718           done
8719           ;;
8720         esac
8721
8722         exp_sym_flag='-bexport'
8723         no_entry_flag='-bnoentry'
8724       fi
8725
8726       # When large executables or shared objects are built, AIX ld can
8727       # have problems creating the table of contents.  If linking a library
8728       # or program results in "error TOC overflow" add -mminimal-toc to
8729       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8730       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8731
8732       archive_cmds=''
8733       hardcode_direct=yes
8734       hardcode_libdir_separator=':'
8735       link_all_deplibs=yes
8736
8737       if test "$GCC" = yes; then
8738         case $host_os in aix4.[012]|aix4.[012].*)
8739         # We only want to do this on AIX 4.2 and lower, the check
8740         # below for broken collect2 doesn't work under 4.3+
8741           collect2name=`${CC} -print-prog-name=collect2`
8742           if test -f "$collect2name" && \
8743            strings "$collect2name" | grep resolve_lib_name >/dev/null
8744           then
8745           # We have reworked collect2
8746           hardcode_direct=yes
8747           else
8748           # We have old collect2
8749           hardcode_direct=unsupported
8750           # It fails to find uninstalled libraries when the uninstalled
8751           # path is not listed in the libpath.  Setting hardcode_minus_L
8752           # to unsupported forces relinking
8753           hardcode_minus_L=yes
8754           hardcode_libdir_flag_spec='-L$libdir'
8755           hardcode_libdir_separator=
8756           fi
8757           ;;
8758         esac
8759         shared_flag='-shared'
8760         if test "$aix_use_runtimelinking" = yes; then
8761           shared_flag="$shared_flag "'${wl}-G'
8762         fi
8763       else
8764         # not using gcc
8765         if test "$host_cpu" = ia64; then
8766         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8767         # chokes on -Wl,-G. The following line is correct:
8768           shared_flag='-G'
8769         else
8770           if test "$aix_use_runtimelinking" = yes; then
8771             shared_flag='${wl}-G'
8772           else
8773             shared_flag='${wl}-bM:SRE'
8774           fi
8775         fi
8776       fi
8777
8778       # It seems that -bexpall does not export symbols beginning with
8779       # underscore (_), so it is better to generate a list of symbols to export.
8780       always_export_symbols=yes
8781       if test "$aix_use_runtimelinking" = yes; then
8782         # Warning - without using the other runtime loading flags (-brtl),
8783         # -berok will link without error, but may produce a broken library.
8784         allow_undefined_flag='-berok'
8785        # Determine the default libpath from the value encoded in an empty executable.
8786        cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792
8793 int
8794 main ()
8795 {
8796
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext conftest$ac_exeext
8802 if { (ac_try="$ac_link"
8803 case "(($ac_try" in
8804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805   *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808   (eval "$ac_link") 2>conftest.er1
8809   ac_status=$?
8810   grep -v '^ *+' conftest.er1 >conftest.err
8811   rm -f conftest.er1
8812   cat conftest.err >&5
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); } && {
8815          test -z "$ac_c_werror_flag" ||
8816          test ! -s conftest.err
8817        } && test -s conftest$ac_exeext &&
8818        $as_test_x conftest$ac_exeext; then
8819
8820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8821 }'`
8822 # Check for a 64-bit object if we didn't find anything.
8823 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; }
8824 }'`; fi
8825 else
8826   echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829
8830 fi
8831
8832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8833       conftest$ac_exeext conftest.$ac_ext
8834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8835
8836        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837         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"
8838        else
8839         if test "$host_cpu" = ia64; then
8840           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841           allow_undefined_flag="-z nodefs"
8842           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"
8843         else
8844          # Determine the default libpath from the value encoded in an empty executable.
8845          cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h.  */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h.  */
8851
8852 int
8853 main ()
8854 {
8855
8856   ;
8857   return 0;
8858 }
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8862 case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867   (eval "$ac_link") 2>conftest.er1
8868   ac_status=$?
8869   grep -v '^ *+' conftest.er1 >conftest.err
8870   rm -f conftest.er1
8871   cat conftest.err >&5
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); } && {
8874          test -z "$ac_c_werror_flag" ||
8875          test ! -s conftest.err
8876        } && test -s conftest$ac_exeext &&
8877        $as_test_x conftest$ac_exeext; then
8878
8879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8880 }'`
8881 # Check for a 64-bit object if we didn't find anything.
8882 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; }
8883 }'`; fi
8884 else
8885   echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888
8889 fi
8890
8891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8892       conftest$ac_exeext conftest.$ac_ext
8893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8894
8895          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8896           # Warning - without using the other run time loading flags,
8897           # -berok will link without error, but may produce a broken library.
8898           no_undefined_flag=' ${wl}-bernotok'
8899           allow_undefined_flag=' ${wl}-berok'
8900           # Exported symbols can be pulled into shared objects from archives
8901           whole_archive_flag_spec='$convenience'
8902           archive_cmds_need_lc=yes
8903           # This is similar to how AIX traditionally builds its shared libraries.
8904           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'
8905         fi
8906       fi
8907       ;;
8908
8909     amigaos*)
8910       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)'
8911       hardcode_libdir_flag_spec='-L$libdir'
8912       hardcode_minus_L=yes
8913       # see comment about different semantics on the GNU ld section
8914       ld_shlibs=no
8915       ;;
8916
8917     bsdi[45]*)
8918       export_dynamic_flag_spec=-rdynamic
8919       ;;
8920
8921     cygwin* | mingw* | pw32*)
8922       # When not using gcc, we currently assume that we are using
8923       # Microsoft Visual C++.
8924       # hardcode_libdir_flag_spec is actually meaningless, as there is
8925       # no search path for DLLs.
8926       hardcode_libdir_flag_spec=' '
8927       allow_undefined_flag=unsupported
8928       # Tell ltmain to make .lib files, not .a files.
8929       libext=lib
8930       # Tell ltmain to make .dll files, not .so files.
8931       shrext_cmds=".dll"
8932       # FIXME: Setting linknames here is a bad hack.
8933       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8934       # The linker will automatically build a .lib file if we build a DLL.
8935       old_archive_From_new_cmds='true'
8936       # FIXME: Should let the user specify the lib program.
8937       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8938       fix_srcfile_path='`cygpath -w "$srcfile"`'
8939       enable_shared_with_static_runtimes=yes
8940       ;;
8941
8942     darwin* | rhapsody*)
8943       case $host_os in
8944         rhapsody* | darwin1.[012])
8945          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8946          ;;
8947        *) # Darwin 1.3 on
8948          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8949            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8950          else
8951            case ${MACOSX_DEPLOYMENT_TARGET} in
8952              10.[012])
8953                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8954                ;;
8955              10.*)
8956                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8957                ;;
8958            esac
8959          fi
8960          ;;
8961       esac
8962       archive_cmds_need_lc=no
8963       hardcode_direct=no
8964       hardcode_automatic=yes
8965       hardcode_shlibpath_var=unsupported
8966       whole_archive_flag_spec=''
8967       link_all_deplibs=yes
8968     if test "$GCC" = yes ; then
8969         output_verbose_link_cmd='echo'
8970         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8971       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8972       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8973       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}'
8974       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}'
8975     else
8976       case $cc_basename in
8977         xlc*)
8978          output_verbose_link_cmd='echo'
8979          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8980          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8981           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8982          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}'
8983           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}'
8984           ;;
8985        *)
8986          ld_shlibs=no
8987           ;;
8988       esac
8989     fi
8990       ;;
8991
8992     dgux*)
8993       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994       hardcode_libdir_flag_spec='-L$libdir'
8995       hardcode_shlibpath_var=no
8996       ;;
8997
8998     freebsd1*)
8999       ld_shlibs=no
9000       ;;
9001
9002     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9003     # support.  Future versions do this automatically, but an explicit c++rt0.o
9004     # does not break anything, and helps significantly (at the cost of a little
9005     # extra space).
9006     freebsd2.2*)
9007       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9008       hardcode_libdir_flag_spec='-R$libdir'
9009       hardcode_direct=yes
9010       hardcode_shlibpath_var=no
9011       ;;
9012
9013     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9014     freebsd2*)
9015       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9016       hardcode_direct=yes
9017       hardcode_minus_L=yes
9018       hardcode_shlibpath_var=no
9019       ;;
9020
9021     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9022     freebsd* | dragonfly*)
9023       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9024       hardcode_libdir_flag_spec='-R$libdir'
9025       hardcode_direct=yes
9026       hardcode_shlibpath_var=no
9027       ;;
9028
9029     hpux9*)
9030       if test "$GCC" = yes; then
9031         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'
9032       else
9033         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'
9034       fi
9035       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036       hardcode_libdir_separator=:
9037       hardcode_direct=yes
9038
9039       # hardcode_minus_L: Not really in the search PATH,
9040       # but as the default location of the library.
9041       hardcode_minus_L=yes
9042       export_dynamic_flag_spec='${wl}-E'
9043       ;;
9044
9045     hpux10*)
9046       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9047         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9048       else
9049         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9050       fi
9051       if test "$with_gnu_ld" = no; then
9052         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9053         hardcode_libdir_separator=:
9054
9055         hardcode_direct=yes
9056         export_dynamic_flag_spec='${wl}-E'
9057
9058         # hardcode_minus_L: Not really in the search PATH,
9059         # but as the default location of the library.
9060         hardcode_minus_L=yes
9061       fi
9062       ;;
9063
9064     hpux11*)
9065       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9066         case $host_cpu in
9067         hppa*64*)
9068           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9069           ;;
9070         ia64*)
9071           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9072           ;;
9073         *)
9074           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9075           ;;
9076         esac
9077       else
9078         case $host_cpu in
9079         hppa*64*)
9080           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9081           ;;
9082         ia64*)
9083           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9084           ;;
9085         *)
9086           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9087           ;;
9088         esac
9089       fi
9090       if test "$with_gnu_ld" = no; then
9091         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9092         hardcode_libdir_separator=:
9093
9094         case $host_cpu in
9095         hppa*64*|ia64*)
9096           hardcode_libdir_flag_spec_ld='+b $libdir'
9097           hardcode_direct=no
9098           hardcode_shlibpath_var=no
9099           ;;
9100         *)
9101           hardcode_direct=yes
9102           export_dynamic_flag_spec='${wl}-E'
9103
9104           # hardcode_minus_L: Not really in the search PATH,
9105           # but as the default location of the library.
9106           hardcode_minus_L=yes
9107           ;;
9108         esac
9109       fi
9110       ;;
9111
9112     irix5* | irix6* | nonstopux*)
9113       if test "$GCC" = yes; then
9114         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'
9115       else
9116         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'
9117         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9118       fi
9119       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120       hardcode_libdir_separator=:
9121       link_all_deplibs=yes
9122       ;;
9123
9124     netbsd* | netbsdelf*-gnu)
9125       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9127       else
9128         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9129       fi
9130       hardcode_libdir_flag_spec='-R$libdir'
9131       hardcode_direct=yes
9132       hardcode_shlibpath_var=no
9133       ;;
9134
9135     newsos6)
9136       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137       hardcode_direct=yes
9138       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9139       hardcode_libdir_separator=:
9140       hardcode_shlibpath_var=no
9141       ;;
9142
9143     openbsd*)
9144       hardcode_direct=yes
9145       hardcode_shlibpath_var=no
9146       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9147         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9149         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9150         export_dynamic_flag_spec='${wl}-E'
9151       else
9152        case $host_os in
9153          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9154            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9155            hardcode_libdir_flag_spec='-R$libdir'
9156            ;;
9157          *)
9158            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9159            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9160            ;;
9161        esac
9162       fi
9163       ;;
9164
9165     os2*)
9166       hardcode_libdir_flag_spec='-L$libdir'
9167       hardcode_minus_L=yes
9168       allow_undefined_flag=unsupported
9169       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'
9170       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9171       ;;
9172
9173     osf3*)
9174       if test "$GCC" = yes; then
9175         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9176         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'
9177       else
9178         allow_undefined_flag=' -expect_unresolved \*'
9179         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'
9180       fi
9181       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9182       hardcode_libdir_separator=:
9183       ;;
9184
9185     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9186       if test "$GCC" = yes; then
9187         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9188         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'
9189         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9190       else
9191         allow_undefined_flag=' -expect_unresolved \*'
9192         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'
9193         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9194         $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'
9195
9196         # Both c and cxx compiler support -rpath directly
9197         hardcode_libdir_flag_spec='-rpath $libdir'
9198       fi
9199       hardcode_libdir_separator=:
9200       ;;
9201
9202     solaris*)
9203       no_undefined_flag=' -z text'
9204       if test "$GCC" = yes; then
9205         wlarc='${wl}'
9206         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9207         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9208           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9209       else
9210         wlarc=''
9211         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9213         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9214       fi
9215       hardcode_libdir_flag_spec='-R$libdir'
9216       hardcode_shlibpath_var=no
9217       case $host_os in
9218       solaris2.[0-5] | solaris2.[0-5].*) ;;
9219       *)
9220         # The compiler driver will combine linker options so we
9221         # cannot just pass the convience library names through
9222         # without $wl, iff we do not link with $LD.
9223         # Luckily, gcc supports the same syntax we need for Sun Studio.
9224         # Supported since Solaris 2.6 (maybe 2.5.1?)
9225         case $wlarc in
9226         '')
9227           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9228         *)
9229           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' ;;
9230         esac ;;
9231       esac
9232       link_all_deplibs=yes
9233       ;;
9234
9235     sunos4*)
9236       if test "x$host_vendor" = xsequent; then
9237         # Use $CC to link under sequent, because it throws in some extra .o
9238         # files that make .init and .fini sections work.
9239         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9240       else
9241         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9242       fi
9243       hardcode_libdir_flag_spec='-L$libdir'
9244       hardcode_direct=yes
9245       hardcode_minus_L=yes
9246       hardcode_shlibpath_var=no
9247       ;;
9248
9249     sysv4)
9250       case $host_vendor in
9251         sni)
9252           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253           hardcode_direct=yes # is this really true???
9254         ;;
9255         siemens)
9256           ## LD is ld it makes a PLAMLIB
9257           ## CC just makes a GrossModule.
9258           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9259           reload_cmds='$CC -r -o $output$reload_objs'
9260           hardcode_direct=no
9261         ;;
9262         motorola)
9263           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9265         ;;
9266       esac
9267       runpath_var='LD_RUN_PATH'
9268       hardcode_shlibpath_var=no
9269       ;;
9270
9271     sysv4.3*)
9272       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273       hardcode_shlibpath_var=no
9274       export_dynamic_flag_spec='-Bexport'
9275       ;;
9276
9277     sysv4*MP*)
9278       if test -d /usr/nec; then
9279         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280         hardcode_shlibpath_var=no
9281         runpath_var=LD_RUN_PATH
9282         hardcode_runpath_var=yes
9283         ld_shlibs=yes
9284       fi
9285       ;;
9286
9287     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9288       no_undefined_flag='${wl}-z,text'
9289       archive_cmds_need_lc=no
9290       hardcode_shlibpath_var=no
9291       runpath_var='LD_RUN_PATH'
9292
9293       if test "$GCC" = yes; then
9294         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9295         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9296       else
9297         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9298         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9299       fi
9300       ;;
9301
9302     sysv5* | sco3.2v5* | sco5v6*)
9303       # Note: We can NOT use -z defs as we might desire, because we do not
9304       # link with -lc, and that would cause any symbols used from libc to
9305       # always be unresolved, which means just about no library would
9306       # ever link correctly.  If we're not using GNU ld we use -z text
9307       # though, which does catch some bad symbols but isn't as heavy-handed
9308       # as -z defs.
9309       no_undefined_flag='${wl}-z,text'
9310       allow_undefined_flag='${wl}-z,nodefs'
9311       archive_cmds_need_lc=no
9312       hardcode_shlibpath_var=no
9313       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9314       hardcode_libdir_separator=':'
9315       link_all_deplibs=yes
9316       export_dynamic_flag_spec='${wl}-Bexport'
9317       runpath_var='LD_RUN_PATH'
9318
9319       if test "$GCC" = yes; then
9320         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9321         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9322       else
9323         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9325       fi
9326       ;;
9327
9328     uts4*)
9329       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330       hardcode_libdir_flag_spec='-L$libdir'
9331       hardcode_shlibpath_var=no
9332       ;;
9333
9334     *)
9335       ld_shlibs=no
9336       ;;
9337     esac
9338   fi
9339
9340 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9341 echo "${ECHO_T}$ld_shlibs" >&6; }
9342 test "$ld_shlibs" = no && can_build_shared=no
9343
9344 #
9345 # Do we need to explicitly link libc?
9346 #
9347 case "x$archive_cmds_need_lc" in
9348 x|xyes)
9349   # Assume -lc should be added
9350   archive_cmds_need_lc=yes
9351
9352   if test "$enable_shared" = yes && test "$GCC" = yes; then
9353     case $archive_cmds in
9354     *'~'*)
9355       # FIXME: we may have to deal with multi-command sequences.
9356       ;;
9357     '$CC '*)
9358       # Test whether the compiler implicitly links with -lc since on some
9359       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9360       # to ld, don't add -lc before -lgcc.
9361       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9363       $rm conftest*
9364       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9365
9366       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367   (eval $ac_compile) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } 2>conftest.err; then
9371         soname=conftest
9372         lib=conftest
9373         libobjs=conftest.$ac_objext
9374         deplibs=
9375         wl=$lt_prog_compiler_wl
9376         pic_flag=$lt_prog_compiler_pic
9377         compiler_flags=-v
9378         linker_flags=-v
9379         verstring=
9380         output_objdir=.
9381         libname=conftest
9382         lt_save_allow_undefined_flag=$allow_undefined_flag
9383         allow_undefined_flag=
9384         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9385   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); }
9389         then
9390           archive_cmds_need_lc=no
9391         else
9392           archive_cmds_need_lc=yes
9393         fi
9394         allow_undefined_flag=$lt_save_allow_undefined_flag
9395       else
9396         cat conftest.err 1>&5
9397       fi
9398       $rm conftest*
9399       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9400 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9401       ;;
9402     esac
9403   fi
9404   ;;
9405 esac
9406
9407 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9409 library_names_spec=
9410 libname_spec='lib$name'
9411 soname_spec=
9412 shrext_cmds=".so"
9413 postinstall_cmds=
9414 postuninstall_cmds=
9415 finish_cmds=
9416 finish_eval=
9417 shlibpath_var=
9418 shlibpath_overrides_runpath=unknown
9419 version_type=none
9420 dynamic_linker="$host_os ld.so"
9421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9422 if test "$GCC" = yes; then
9423   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9424   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9425     # if the path contains ";" then we assume it to be the separator
9426     # otherwise default to the standard path separator (i.e. ":") - it is
9427     # assumed that no part of a normal pathname contains ";" but that should
9428     # okay in the real world where ";" in dirpaths is itself problematic.
9429     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9430   else
9431     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9432   fi
9433 else
9434   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9435 fi
9436 need_lib_prefix=unknown
9437 hardcode_into_libs=no
9438
9439 # when you set need_version to no, make sure it does not cause -set_version
9440 # flags to be left without arguments
9441 need_version=unknown
9442
9443 case $host_os in
9444 aix3*)
9445   version_type=linux
9446   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9447   shlibpath_var=LIBPATH
9448
9449   # AIX 3 has no versioning support, so we append a major version to the name.
9450   soname_spec='${libname}${release}${shared_ext}$major'
9451   ;;
9452
9453 aix4* | aix5*)
9454   version_type=linux
9455   need_lib_prefix=no
9456   need_version=no
9457   hardcode_into_libs=yes
9458   if test "$host_cpu" = ia64; then
9459     # AIX 5 supports IA64
9460     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9461     shlibpath_var=LD_LIBRARY_PATH
9462   else
9463     # With GCC up to 2.95.x, collect2 would create an import file
9464     # for dependence libraries.  The import file would start with
9465     # the line `#! .'.  This would cause the generated library to
9466     # depend on `.', always an invalid library.  This was fixed in
9467     # development snapshots of GCC prior to 3.0.
9468     case $host_os in
9469       aix4 | aix4.[01] | aix4.[01].*)
9470       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9471            echo ' yes '
9472            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9473         :
9474       else
9475         can_build_shared=no
9476       fi
9477       ;;
9478     esac
9479     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9480     # soname into executable. Probably we can add versioning support to
9481     # collect2, so additional links can be useful in future.
9482     if test "$aix_use_runtimelinking" = yes; then
9483       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9484       # instead of lib<name>.a to let people know that these are not
9485       # typical AIX shared libraries.
9486       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487     else
9488       # We preserve .a as extension for shared libraries through AIX4.2
9489       # and later when we are not doing run time linking.
9490       library_names_spec='${libname}${release}.a $libname.a'
9491       soname_spec='${libname}${release}${shared_ext}$major'
9492     fi
9493     shlibpath_var=LIBPATH
9494   fi
9495   ;;
9496
9497 amigaos*)
9498   library_names_spec='$libname.ixlibrary $libname.a'
9499   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9500   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'
9501   ;;
9502
9503 beos*)
9504   library_names_spec='${libname}${shared_ext}'
9505   dynamic_linker="$host_os ld.so"
9506   shlibpath_var=LIBRARY_PATH
9507   ;;
9508
9509 bsdi[45]*)
9510   version_type=linux
9511   need_version=no
9512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513   soname_spec='${libname}${release}${shared_ext}$major'
9514   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9515   shlibpath_var=LD_LIBRARY_PATH
9516   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9517   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9518   # the default ld.so.conf also contains /usr/contrib/lib and
9519   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9520   # libtool to hard-code these into programs
9521   ;;
9522
9523 cygwin* | mingw* | pw32*)
9524   version_type=windows
9525   shrext_cmds=".dll"
9526   need_version=no
9527   need_lib_prefix=no
9528
9529   case $GCC,$host_os in
9530   yes,cygwin* | yes,mingw* | yes,pw32*)
9531     library_names_spec='$libname.dll.a'
9532     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9533     postinstall_cmds='base_file=`basename \${file}`~
9534       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9535       dldir=$destdir/`dirname \$dlpath`~
9536       test -d \$dldir || mkdir -p \$dldir~
9537       $install_prog $dir/$dlname \$dldir/$dlname~
9538       chmod a+x \$dldir/$dlname'
9539     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9540       dlpath=$dir/\$dldll~
9541        $rm \$dlpath'
9542     shlibpath_overrides_runpath=yes
9543
9544     case $host_os in
9545     cygwin*)
9546       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9547       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9548       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9549       ;;
9550     mingw*)
9551       # MinGW DLLs use traditional 'lib' prefix
9552       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9553       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9554       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9555         # It is most probably a Windows format PATH printed by
9556         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9557         # path with ; separators, and with drive letters. We can handle the
9558         # drive letters (cygwin fileutils understands them), so leave them,
9559         # especially as we might pass files found there to a mingw objdump,
9560         # which wouldn't understand a cygwinified path. Ahh.
9561         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9562       else
9563         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9564       fi
9565       ;;
9566     pw32*)
9567       # pw32 DLLs use 'pw' prefix rather than 'lib'
9568       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9569       ;;
9570     esac
9571     ;;
9572
9573   *)
9574     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9575     ;;
9576   esac
9577   dynamic_linker='Win32 ld.exe'
9578   # FIXME: first we should search . and the directory the executable is in
9579   shlibpath_var=PATH
9580   ;;
9581
9582 darwin* | rhapsody*)
9583   dynamic_linker="$host_os dyld"
9584   version_type=darwin
9585   need_lib_prefix=no
9586   need_version=no
9587   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9588   soname_spec='${libname}${release}${major}$shared_ext'
9589   shlibpath_overrides_runpath=yes
9590   shlibpath_var=DYLD_LIBRARY_PATH
9591   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9592   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9593   if test "$GCC" = yes; then
9594     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"`
9595   else
9596     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9597   fi
9598   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9599   ;;
9600
9601 dgux*)
9602   version_type=linux
9603   need_lib_prefix=no
9604   need_version=no
9605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9606   soname_spec='${libname}${release}${shared_ext}$major'
9607   shlibpath_var=LD_LIBRARY_PATH
9608   ;;
9609
9610 freebsd1*)
9611   dynamic_linker=no
9612   ;;
9613
9614 freebsd* | dragonfly*)
9615   # DragonFly does not have aout.  When/if they implement a new
9616   # versioning mechanism, adjust this.
9617   if test -x /usr/bin/objformat; then
9618     objformat=`/usr/bin/objformat`
9619   else
9620     case $host_os in
9621     freebsd[123]*) objformat=aout ;;
9622     *) objformat=elf ;;
9623     esac
9624   fi
9625   version_type=freebsd-$objformat
9626   case $version_type in
9627     freebsd-elf*)
9628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9629       need_version=no
9630       need_lib_prefix=no
9631       ;;
9632     freebsd-*)
9633       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9634       need_version=yes
9635       ;;
9636   esac
9637   shlibpath_var=LD_LIBRARY_PATH
9638   case $host_os in
9639   freebsd2*)
9640     shlibpath_overrides_runpath=yes
9641     ;;
9642   freebsd3.[01]* | freebsdelf3.[01]*)
9643     shlibpath_overrides_runpath=yes
9644     hardcode_into_libs=yes
9645     ;;
9646   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9647   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9648     shlibpath_overrides_runpath=no
9649     hardcode_into_libs=yes
9650     ;;
9651   freebsd*) # from 4.6 on
9652     shlibpath_overrides_runpath=yes
9653     hardcode_into_libs=yes
9654     ;;
9655   esac
9656   ;;
9657
9658 gnu*)
9659   version_type=linux
9660   need_lib_prefix=no
9661   need_version=no
9662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9663   soname_spec='${libname}${release}${shared_ext}$major'
9664   shlibpath_var=LD_LIBRARY_PATH
9665   hardcode_into_libs=yes
9666   ;;
9667
9668 hpux9* | hpux10* | hpux11*)
9669   # Give a soname corresponding to the major version so that dld.sl refuses to
9670   # link against other versions.
9671   version_type=sunos
9672   need_lib_prefix=no
9673   need_version=no
9674   case $host_cpu in
9675   ia64*)
9676     shrext_cmds='.so'
9677     hardcode_into_libs=yes
9678     dynamic_linker="$host_os dld.so"
9679     shlibpath_var=LD_LIBRARY_PATH
9680     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682     soname_spec='${libname}${release}${shared_ext}$major'
9683     if test "X$HPUX_IA64_MODE" = X32; then
9684       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9685     else
9686       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9687     fi
9688     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9689     ;;
9690    hppa*64*)
9691      shrext_cmds='.sl'
9692      hardcode_into_libs=yes
9693      dynamic_linker="$host_os dld.sl"
9694      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9695      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9696      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697      soname_spec='${libname}${release}${shared_ext}$major'
9698      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9699      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9700      ;;
9701    *)
9702     shrext_cmds='.sl'
9703     dynamic_linker="$host_os dld.sl"
9704     shlibpath_var=SHLIB_PATH
9705     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707     soname_spec='${libname}${release}${shared_ext}$major'
9708     ;;
9709   esac
9710   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9711   postinstall_cmds='chmod 555 $lib'
9712   ;;
9713
9714 interix3*)
9715   version_type=linux
9716   need_lib_prefix=no
9717   need_version=no
9718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9719   soname_spec='${libname}${release}${shared_ext}$major'
9720   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9721   shlibpath_var=LD_LIBRARY_PATH
9722   shlibpath_overrides_runpath=no
9723   hardcode_into_libs=yes
9724   ;;
9725
9726 irix5* | irix6* | nonstopux*)
9727   case $host_os in
9728     nonstopux*) version_type=nonstopux ;;
9729     *)
9730         if test "$lt_cv_prog_gnu_ld" = yes; then
9731                 version_type=linux
9732         else
9733                 version_type=irix
9734         fi ;;
9735   esac
9736   need_lib_prefix=no
9737   need_version=no
9738   soname_spec='${libname}${release}${shared_ext}$major'
9739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9740   case $host_os in
9741   irix5* | nonstopux*)
9742     libsuff= shlibsuff=
9743     ;;
9744   *)
9745     case $LD in # libtool.m4 will add one of these switches to LD
9746     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9747       libsuff= shlibsuff= libmagic=32-bit;;
9748     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9749       libsuff=32 shlibsuff=N32 libmagic=N32;;
9750     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9751       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9752     *) libsuff= shlibsuff= libmagic=never-match;;
9753     esac
9754     ;;
9755   esac
9756   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9757   shlibpath_overrides_runpath=no
9758   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9759   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9760   hardcode_into_libs=yes
9761   ;;
9762
9763 # No shared lib support for Linux oldld, aout, or coff.
9764 linux*oldld* | linux*aout* | linux*coff*)
9765   dynamic_linker=no
9766   ;;
9767
9768 # This must be Linux ELF.
9769 linux* | k*bsd*-gnu)
9770   version_type=linux
9771   need_lib_prefix=no
9772   need_version=no
9773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774   soname_spec='${libname}${release}${shared_ext}$major'
9775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9776   shlibpath_var=LD_LIBRARY_PATH
9777   shlibpath_overrides_runpath=no
9778   # This implies no fast_install, which is unacceptable.
9779   # Some rework will be needed to allow for fast_install
9780   # before this can be enabled.
9781   hardcode_into_libs=yes
9782
9783   # Append ld.so.conf contents to the search path
9784   if test -f /etc/ld.so.conf; then
9785     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' ' '`
9786     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9787   fi
9788
9789   # We used to test for /lib/ld.so.1 and disable shared libraries on
9790   # powerpc, because MkLinux only supported shared libraries with the
9791   # GNU dynamic linker.  Since this was broken with cross compilers,
9792   # most powerpc-linux boxes support dynamic linking these days and
9793   # people can always --disable-shared, the test was removed, and we
9794   # assume the GNU/Linux dynamic linker is in use.
9795   dynamic_linker='GNU/Linux ld.so'
9796   ;;
9797
9798 netbsdelf*-gnu)
9799   version_type=linux
9800   need_lib_prefix=no
9801   need_version=no
9802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803   soname_spec='${libname}${release}${shared_ext}$major'
9804   shlibpath_var=LD_LIBRARY_PATH
9805   shlibpath_overrides_runpath=no
9806   hardcode_into_libs=yes
9807   dynamic_linker='NetBSD ld.elf_so'
9808   ;;
9809
9810 netbsd*)
9811   version_type=sunos
9812   need_lib_prefix=no
9813   need_version=no
9814   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9816     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9817     dynamic_linker='NetBSD (a.out) ld.so'
9818   else
9819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9820     soname_spec='${libname}${release}${shared_ext}$major'
9821     dynamic_linker='NetBSD ld.elf_so'
9822   fi
9823   shlibpath_var=LD_LIBRARY_PATH
9824   shlibpath_overrides_runpath=yes
9825   hardcode_into_libs=yes
9826   ;;
9827
9828 newsos6)
9829   version_type=linux
9830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831   shlibpath_var=LD_LIBRARY_PATH
9832   shlibpath_overrides_runpath=yes
9833   ;;
9834
9835 nto-qnx*)
9836   version_type=linux
9837   need_lib_prefix=no
9838   need_version=no
9839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840   soname_spec='${libname}${release}${shared_ext}$major'
9841   shlibpath_var=LD_LIBRARY_PATH
9842   shlibpath_overrides_runpath=yes
9843   ;;
9844
9845 openbsd*)
9846   version_type=sunos
9847   sys_lib_dlsearch_path_spec="/usr/lib"
9848   need_lib_prefix=no
9849   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9850   case $host_os in
9851     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9852     *)                         need_version=no  ;;
9853   esac
9854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9856   shlibpath_var=LD_LIBRARY_PATH
9857   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9858     case $host_os in
9859       openbsd2.[89] | openbsd2.[89].*)
9860         shlibpath_overrides_runpath=no
9861         ;;
9862       *)
9863         shlibpath_overrides_runpath=yes
9864         ;;
9865       esac
9866   else
9867     shlibpath_overrides_runpath=yes
9868   fi
9869   ;;
9870
9871 os2*)
9872   libname_spec='$name'
9873   shrext_cmds=".dll"
9874   need_lib_prefix=no
9875   library_names_spec='$libname${shared_ext} $libname.a'
9876   dynamic_linker='OS/2 ld.exe'
9877   shlibpath_var=LIBPATH
9878   ;;
9879
9880 osf3* | osf4* | osf5*)
9881   version_type=osf
9882   need_lib_prefix=no
9883   need_version=no
9884   soname_spec='${libname}${release}${shared_ext}$major'
9885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886   shlibpath_var=LD_LIBRARY_PATH
9887   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9888   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9889   ;;
9890
9891 solaris*)
9892   version_type=linux
9893   need_lib_prefix=no
9894   need_version=no
9895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896   soname_spec='${libname}${release}${shared_ext}$major'
9897   shlibpath_var=LD_LIBRARY_PATH
9898   shlibpath_overrides_runpath=yes
9899   hardcode_into_libs=yes
9900   # ldd complains unless libraries are executable
9901   postinstall_cmds='chmod +x $lib'
9902   ;;
9903
9904 sunos4*)
9905   version_type=sunos
9906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9908   shlibpath_var=LD_LIBRARY_PATH
9909   shlibpath_overrides_runpath=yes
9910   if test "$with_gnu_ld" = yes; then
9911     need_lib_prefix=no
9912   fi
9913   need_version=yes
9914   ;;
9915
9916 sysv4 | sysv4.3*)
9917   version_type=linux
9918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919   soname_spec='${libname}${release}${shared_ext}$major'
9920   shlibpath_var=LD_LIBRARY_PATH
9921   case $host_vendor in
9922     sni)
9923       shlibpath_overrides_runpath=no
9924       need_lib_prefix=no
9925       export_dynamic_flag_spec='${wl}-Blargedynsym'
9926       runpath_var=LD_RUN_PATH
9927       ;;
9928     siemens)
9929       need_lib_prefix=no
9930       ;;
9931     motorola)
9932       need_lib_prefix=no
9933       need_version=no
9934       shlibpath_overrides_runpath=no
9935       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9936       ;;
9937   esac
9938   ;;
9939
9940 sysv4*MP*)
9941   if test -d /usr/nec ;then
9942     version_type=linux
9943     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9944     soname_spec='$libname${shared_ext}.$major'
9945     shlibpath_var=LD_LIBRARY_PATH
9946   fi
9947   ;;
9948
9949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9950   version_type=freebsd-elf
9951   need_lib_prefix=no
9952   need_version=no
9953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9954   soname_spec='${libname}${release}${shared_ext}$major'
9955   shlibpath_var=LD_LIBRARY_PATH
9956   hardcode_into_libs=yes
9957   if test "$with_gnu_ld" = yes; then
9958     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9959     shlibpath_overrides_runpath=no
9960   else
9961     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9962     shlibpath_overrides_runpath=yes
9963     case $host_os in
9964       sco3.2v5*)
9965         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9966         ;;
9967     esac
9968   fi
9969   sys_lib_dlsearch_path_spec='/usr/lib'
9970   ;;
9971
9972 uts4*)
9973   version_type=linux
9974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975   soname_spec='${libname}${release}${shared_ext}$major'
9976   shlibpath_var=LD_LIBRARY_PATH
9977   ;;
9978
9979 *)
9980   dynamic_linker=no
9981   ;;
9982 esac
9983 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9984 echo "${ECHO_T}$dynamic_linker" >&6; }
9985 test "$dynamic_linker" = no && can_build_shared=no
9986
9987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9988 if test "$GCC" = yes; then
9989   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9990 fi
9991
9992 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9994 hardcode_action=
9995 if test -n "$hardcode_libdir_flag_spec" || \
9996    test -n "$runpath_var" || \
9997    test "X$hardcode_automatic" = "Xyes" ; then
9998
9999   # We can hardcode non-existant directories.
10000   if test "$hardcode_direct" != no &&
10001      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10002      # have to relink, otherwise we might link with an installed library
10003      # when we should be linking with a yet-to-be-installed one
10004      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10005      test "$hardcode_minus_L" != no; then
10006     # Linking always hardcodes the temporary library directory.
10007     hardcode_action=relink
10008   else
10009     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10010     hardcode_action=immediate
10011   fi
10012 else
10013   # We cannot hardcode anything, or else we can only hardcode existing
10014   # directories.
10015   hardcode_action=unsupported
10016 fi
10017 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10018 echo "${ECHO_T}$hardcode_action" >&6; }
10019
10020 if test "$hardcode_action" = relink; then
10021   # Fast installation is not supported
10022   enable_fast_install=no
10023 elif test "$shlibpath_overrides_runpath" = yes ||
10024      test "$enable_shared" = no; then
10025   # Fast installation is not necessary
10026   enable_fast_install=needless
10027 fi
10028
10029 striplib=
10030 old_striplib=
10031 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10034   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10035   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10036   { echo "$as_me:$LINENO: result: yes" >&5
10037 echo "${ECHO_T}yes" >&6; }
10038 else
10039 # FIXME - insert some real tests, host_os isn't really good enough
10040   case $host_os in
10041    darwin*)
10042        if test -n "$STRIP" ; then
10043          striplib="$STRIP -x"
10044          { echo "$as_me:$LINENO: result: yes" >&5
10045 echo "${ECHO_T}yes" >&6; }
10046        else
10047   { echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6; }
10049 fi
10050        ;;
10051    *)
10052   { echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6; }
10054     ;;
10055   esac
10056 fi
10057
10058 if test "x$enable_dlopen" != xyes; then
10059   enable_dlopen=unknown
10060   enable_dlopen_self=unknown
10061   enable_dlopen_self_static=unknown
10062 else
10063   lt_cv_dlopen=no
10064   lt_cv_dlopen_libs=
10065
10066   case $host_os in
10067   beos*)
10068     lt_cv_dlopen="load_add_on"
10069     lt_cv_dlopen_libs=
10070     lt_cv_dlopen_self=yes
10071     ;;
10072
10073   mingw* | pw32*)
10074     lt_cv_dlopen="LoadLibrary"
10075     lt_cv_dlopen_libs=
10076    ;;
10077
10078   cygwin*)
10079     lt_cv_dlopen="dlopen"
10080     lt_cv_dlopen_libs=
10081    ;;
10082
10083   darwin*)
10084   # if libdl is installed we need to link against it
10085     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   ac_check_lib_save_LIBS=$LIBS
10091 LIBS="-ldl  $LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098
10099 /* Override any GCC internal prototype to avoid an error.
10100    Use char because int might match the return type of a GCC
10101    builtin and then its argument prototype would still apply.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 char dlopen ();
10106 int
10107 main ()
10108 {
10109 return dlopen ();
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_link") 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } && {
10128          test -z "$ac_c_werror_flag" ||
10129          test ! -s conftest.err
10130        } && test -s conftest$ac_exeext &&
10131        $as_test_x conftest$ac_exeext; then
10132   ac_cv_lib_dl_dlopen=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137         ac_cv_lib_dl_dlopen=no
10138 fi
10139
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141       conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10143 fi
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10146 if test $ac_cv_lib_dl_dlopen = yes; then
10147   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10148 else
10149
10150     lt_cv_dlopen="dyld"
10151     lt_cv_dlopen_libs=
10152     lt_cv_dlopen_self=yes
10153
10154 fi
10155
10156    ;;
10157
10158   *)
10159     { echo "$as_me:$LINENO: checking for shl_load" >&5
10160 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10161 if test "${ac_cv_func_shl_load+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10172 #define shl_load innocuous_shl_load
10173
10174 /* System header to define __stub macros and hopefully few prototypes,
10175     which can conflict with char shl_load (); below.
10176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10177     <limits.h> exists even on freestanding compilers.  */
10178
10179 #ifdef __STDC__
10180 # include <limits.h>
10181 #else
10182 # include <assert.h>
10183 #endif
10184
10185 #undef shl_load
10186
10187 /* Override any GCC internal prototype to avoid an error.
10188    Use char because int might match the return type of a GCC
10189    builtin and then its argument prototype would still apply.  */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 char shl_load ();
10194 /* The GNU C library defines this for functions which it implements
10195     to always fail with ENOSYS.  Some functions are actually named
10196     something starting with __ and the normal name is an alias.  */
10197 #if defined __stub_shl_load || defined __stub___shl_load
10198 choke me
10199 #endif
10200
10201 int
10202 main ()
10203 {
10204 return shl_load ();
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213   *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216   (eval "$ac_link") 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } && {
10223          test -z "$ac_c_werror_flag" ||
10224          test ! -s conftest.err
10225        } && test -s conftest$ac_exeext &&
10226        $as_test_x conftest$ac_exeext; then
10227   ac_cv_func_shl_load=yes
10228 else
10229   echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232         ac_cv_func_shl_load=no
10233 fi
10234
10235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10236       conftest$ac_exeext conftest.$ac_ext
10237 fi
10238 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10239 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10240 if test $ac_cv_func_shl_load = yes; then
10241   lt_cv_dlopen="shl_load"
10242 else
10243   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10244 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10245 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10246   echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248   ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-ldld  $LIBS"
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256
10257 /* Override any GCC internal prototype to avoid an error.
10258    Use char because int might match the return type of a GCC
10259    builtin and then its argument prototype would still apply.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char shl_load ();
10264 int
10265 main ()
10266 {
10267 return shl_load ();
10268   ;
10269   return 0;
10270 }
10271 _ACEOF
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276   *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279   (eval "$ac_link") 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } && {
10286          test -z "$ac_c_werror_flag" ||
10287          test ! -s conftest.err
10288        } && test -s conftest$ac_exeext &&
10289        $as_test_x conftest$ac_exeext; then
10290   ac_cv_lib_dld_shl_load=yes
10291 else
10292   echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10294
10295         ac_cv_lib_dld_shl_load=no
10296 fi
10297
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299       conftest$ac_exeext conftest.$ac_ext
10300 LIBS=$ac_check_lib_save_LIBS
10301 fi
10302 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10303 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10304 if test $ac_cv_lib_dld_shl_load = yes; then
10305   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10306 else
10307   { echo "$as_me:$LINENO: checking for dlopen" >&5
10308 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10309 if test "${ac_cv_func_dlopen+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h.  */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h.  */
10318 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10320 #define dlopen innocuous_dlopen
10321
10322 /* System header to define __stub macros and hopefully few prototypes,
10323     which can conflict with char dlopen (); below.
10324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10325     <limits.h> exists even on freestanding compilers.  */
10326
10327 #ifdef __STDC__
10328 # include <limits.h>
10329 #else
10330 # include <assert.h>
10331 #endif
10332
10333 #undef dlopen
10334
10335 /* Override any GCC internal prototype to avoid an error.
10336    Use char because int might match the return type of a GCC
10337    builtin and then its argument prototype would still apply.  */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 char dlopen ();
10342 /* The GNU C library defines this for functions which it implements
10343     to always fail with ENOSYS.  Some functions are actually named
10344     something starting with __ and the normal name is an alias.  */
10345 #if defined __stub_dlopen || defined __stub___dlopen
10346 choke me
10347 #endif
10348
10349 int
10350 main ()
10351 {
10352 return dlopen ();
10353   ;
10354   return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_link") 2>conftest.er1
10365   ac_status=$?
10366   grep -v '^ *+' conftest.er1 >conftest.err
10367   rm -f conftest.er1
10368   cat conftest.err >&5
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && {
10371          test -z "$ac_c_werror_flag" ||
10372          test ! -s conftest.err
10373        } && test -s conftest$ac_exeext &&
10374        $as_test_x conftest$ac_exeext; then
10375   ac_cv_func_dlopen=yes
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380         ac_cv_func_dlopen=no
10381 fi
10382
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384       conftest$ac_exeext conftest.$ac_ext
10385 fi
10386 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10387 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10388 if test $ac_cv_func_dlopen = yes; then
10389   lt_cv_dlopen="dlopen"
10390 else
10391   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10392 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10393 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396   ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-ldl  $LIBS"
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404
10405 /* Override any GCC internal prototype to avoid an error.
10406    Use char because int might match the return type of a GCC
10407    builtin and then its argument prototype would still apply.  */
10408 #ifdef __cplusplus
10409 extern "C"
10410 #endif
10411 char dlopen ();
10412 int
10413 main ()
10414 {
10415 return dlopen ();
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424   *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427   (eval "$ac_link") 2>conftest.er1
10428   ac_status=$?
10429   grep -v '^ *+' conftest.er1 >conftest.err
10430   rm -f conftest.er1
10431   cat conftest.err >&5
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } && {
10434          test -z "$ac_c_werror_flag" ||
10435          test ! -s conftest.err
10436        } && test -s conftest$ac_exeext &&
10437        $as_test_x conftest$ac_exeext; then
10438   ac_cv_lib_dl_dlopen=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         ac_cv_lib_dl_dlopen=no
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447       conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10449 fi
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10452 if test $ac_cv_lib_dl_dlopen = yes; then
10453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10454 else
10455   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10456 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10457 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460   ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lsvld  $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468
10469 /* Override any GCC internal prototype to avoid an error.
10470    Use char because int might match the return type of a GCC
10471    builtin and then its argument prototype would still apply.  */
10472 #ifdef __cplusplus
10473 extern "C"
10474 #endif
10475 char dlopen ();
10476 int
10477 main ()
10478 {
10479 return dlopen ();
10480   ;
10481   return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488   *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491   (eval "$ac_link") 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } && {
10498          test -z "$ac_c_werror_flag" ||
10499          test ! -s conftest.err
10500        } && test -s conftest$ac_exeext &&
10501        $as_test_x conftest$ac_exeext; then
10502   ac_cv_lib_svld_dlopen=yes
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507         ac_cv_lib_svld_dlopen=no
10508 fi
10509
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511       conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10513 fi
10514 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10515 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10516 if test $ac_cv_lib_svld_dlopen = yes; then
10517   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10518 else
10519   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10520 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10521 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524   ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-ldld  $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532
10533 /* Override any GCC internal prototype to avoid an error.
10534    Use char because int might match the return type of a GCC
10535    builtin and then its argument prototype would still apply.  */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char dld_link ();
10540 int
10541 main ()
10542 {
10543 return dld_link ();
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_link") 2>conftest.er1
10556   ac_status=$?
10557   grep -v '^ *+' conftest.er1 >conftest.err
10558   rm -f conftest.er1
10559   cat conftest.err >&5
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); } && {
10562          test -z "$ac_c_werror_flag" ||
10563          test ! -s conftest.err
10564        } && test -s conftest$ac_exeext &&
10565        $as_test_x conftest$ac_exeext; then
10566   ac_cv_lib_dld_dld_link=yes
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571         ac_cv_lib_dld_dld_link=no
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575       conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10577 fi
10578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10579 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10580 if test $ac_cv_lib_dld_dld_link = yes; then
10581   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10582 fi
10583
10584
10585 fi
10586
10587
10588 fi
10589
10590
10591 fi
10592
10593
10594 fi
10595
10596
10597 fi
10598
10599     ;;
10600   esac
10601
10602   if test "x$lt_cv_dlopen" != xno; then
10603     enable_dlopen=yes
10604   else
10605     enable_dlopen=no
10606   fi
10607
10608   case $lt_cv_dlopen in
10609   dlopen)
10610     save_CPPFLAGS="$CPPFLAGS"
10611     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10612
10613     save_LDFLAGS="$LDFLAGS"
10614     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10615
10616     save_LIBS="$LIBS"
10617     LIBS="$lt_cv_dlopen_libs $LIBS"
10618
10619     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10620 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10621 if test "${lt_cv_dlopen_self+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624           if test "$cross_compiling" = yes; then :
10625   lt_cv_dlopen_self=cross
10626 else
10627   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10628   lt_status=$lt_dlunknown
10629   cat > conftest.$ac_ext <<EOF
10630 #line 10630 "configure"
10631 #include "confdefs.h"
10632
10633 #if HAVE_DLFCN_H
10634 #include <dlfcn.h>
10635 #endif
10636
10637 #include <stdio.h>
10638
10639 #ifdef RTLD_GLOBAL
10640 #  define LT_DLGLOBAL           RTLD_GLOBAL
10641 #else
10642 #  ifdef DL_GLOBAL
10643 #    define LT_DLGLOBAL         DL_GLOBAL
10644 #  else
10645 #    define LT_DLGLOBAL         0
10646 #  endif
10647 #endif
10648
10649 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10650    find out it does not work in some platform. */
10651 #ifndef LT_DLLAZY_OR_NOW
10652 #  ifdef RTLD_LAZY
10653 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10654 #  else
10655 #    ifdef DL_LAZY
10656 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10657 #    else
10658 #      ifdef RTLD_NOW
10659 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10660 #      else
10661 #        ifdef DL_NOW
10662 #          define LT_DLLAZY_OR_NOW      DL_NOW
10663 #        else
10664 #          define LT_DLLAZY_OR_NOW      0
10665 #        endif
10666 #      endif
10667 #    endif
10668 #  endif
10669 #endif
10670
10671 #ifdef __cplusplus
10672 extern "C" void exit (int);
10673 #endif
10674
10675 void fnord() { int i=42;}
10676 int main ()
10677 {
10678   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10679   int status = $lt_dlunknown;
10680
10681   if (self)
10682     {
10683       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10684       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10685       /* dlclose (self); */
10686     }
10687   else
10688     puts (dlerror ());
10689
10690     exit (status);
10691 }
10692 EOF
10693   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694   (eval $ac_link) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10698     (./conftest; exit; ) >&5 2>/dev/null
10699     lt_status=$?
10700     case x$lt_status in
10701       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10702       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10703       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10704     esac
10705   else :
10706     # compilation failed
10707     lt_cv_dlopen_self=no
10708   fi
10709 fi
10710 rm -fr conftest*
10711
10712
10713 fi
10714 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10715 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10716
10717     if test "x$lt_cv_dlopen_self" = xyes; then
10718       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10719       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10720 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10721 if test "${lt_cv_dlopen_self_static+set}" = set; then
10722   echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724           if test "$cross_compiling" = yes; then :
10725   lt_cv_dlopen_self_static=cross
10726 else
10727   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10728   lt_status=$lt_dlunknown
10729   cat > conftest.$ac_ext <<EOF
10730 #line 10730 "configure"
10731 #include "confdefs.h"
10732
10733 #if HAVE_DLFCN_H
10734 #include <dlfcn.h>
10735 #endif
10736
10737 #include <stdio.h>
10738
10739 #ifdef RTLD_GLOBAL
10740 #  define LT_DLGLOBAL           RTLD_GLOBAL
10741 #else
10742 #  ifdef DL_GLOBAL
10743 #    define LT_DLGLOBAL         DL_GLOBAL
10744 #  else
10745 #    define LT_DLGLOBAL         0
10746 #  endif
10747 #endif
10748
10749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10750    find out it does not work in some platform. */
10751 #ifndef LT_DLLAZY_OR_NOW
10752 #  ifdef RTLD_LAZY
10753 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10754 #  else
10755 #    ifdef DL_LAZY
10756 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10757 #    else
10758 #      ifdef RTLD_NOW
10759 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10760 #      else
10761 #        ifdef DL_NOW
10762 #          define LT_DLLAZY_OR_NOW      DL_NOW
10763 #        else
10764 #          define LT_DLLAZY_OR_NOW      0
10765 #        endif
10766 #      endif
10767 #    endif
10768 #  endif
10769 #endif
10770
10771 #ifdef __cplusplus
10772 extern "C" void exit (int);
10773 #endif
10774
10775 void fnord() { int i=42;}
10776 int main ()
10777 {
10778   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10779   int status = $lt_dlunknown;
10780
10781   if (self)
10782     {
10783       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10784       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10785       /* dlclose (self); */
10786     }
10787   else
10788     puts (dlerror ());
10789
10790     exit (status);
10791 }
10792 EOF
10793   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794   (eval $ac_link) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10798     (./conftest; exit; ) >&5 2>/dev/null
10799     lt_status=$?
10800     case x$lt_status in
10801       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10802       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10803       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10804     esac
10805   else :
10806     # compilation failed
10807     lt_cv_dlopen_self_static=no
10808   fi
10809 fi
10810 rm -fr conftest*
10811
10812
10813 fi
10814 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10815 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10816     fi
10817
10818     CPPFLAGS="$save_CPPFLAGS"
10819     LDFLAGS="$save_LDFLAGS"
10820     LIBS="$save_LIBS"
10821     ;;
10822   esac
10823
10824   case $lt_cv_dlopen_self in
10825   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10826   *) enable_dlopen_self=unknown ;;
10827   esac
10828
10829   case $lt_cv_dlopen_self_static in
10830   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10831   *) enable_dlopen_self_static=unknown ;;
10832   esac
10833 fi
10834
10835
10836 # Report which library types will actually be built
10837 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10838 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10839 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10840 echo "${ECHO_T}$can_build_shared" >&6; }
10841
10842 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10843 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10844 test "$can_build_shared" = "no" && enable_shared=no
10845
10846 # On AIX, shared libraries and static libraries use the same namespace, and
10847 # are all built from PIC.
10848 case $host_os in
10849 aix3*)
10850   test "$enable_shared" = yes && enable_static=no
10851   if test -n "$RANLIB"; then
10852     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10853     postinstall_cmds='$RANLIB $lib'
10854   fi
10855   ;;
10856
10857 aix4* | aix5*)
10858   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10859     test "$enable_shared" = yes && enable_static=no
10860   fi
10861     ;;
10862 esac
10863 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10864 echo "${ECHO_T}$enable_shared" >&6; }
10865
10866 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10867 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10868 # Make sure either enable_shared or enable_static is yes.
10869 test "$enable_shared" = yes || enable_static=yes
10870 { echo "$as_me:$LINENO: result: $enable_static" >&5
10871 echo "${ECHO_T}$enable_static" >&6; }
10872
10873 # The else clause should only fire when bootstrapping the
10874 # libtool distribution, otherwise you forgot to ship ltmain.sh
10875 # with your package, and you will get complaints that there are
10876 # no rules to generate ltmain.sh.
10877 if test -f "$ltmain"; then
10878   # See if we are running on zsh, and set the options which allow our commands through
10879   # without removal of \ escapes.
10880   if test -n "${ZSH_VERSION+set}" ; then
10881     setopt NO_GLOB_SUBST
10882   fi
10883   # Now quote all the things that may contain metacharacters while being
10884   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10885   # variables and quote the copies for generation of the libtool script.
10886   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10887     SED SHELL STRIP \
10888     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10889     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10890     deplibs_check_method reload_flag reload_cmds need_locks \
10891     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10892     lt_cv_sys_global_symbol_to_c_name_address \
10893     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10894     old_postinstall_cmds old_postuninstall_cmds \
10895     compiler \
10896     CC \
10897     LD \
10898     lt_prog_compiler_wl \
10899     lt_prog_compiler_pic \
10900     lt_prog_compiler_static \
10901     lt_prog_compiler_no_builtin_flag \
10902     export_dynamic_flag_spec \
10903     thread_safe_flag_spec \
10904     whole_archive_flag_spec \
10905     enable_shared_with_static_runtimes \
10906     old_archive_cmds \
10907     old_archive_from_new_cmds \
10908     predep_objects \
10909     postdep_objects \
10910     predeps \
10911     postdeps \
10912     compiler_lib_search_path \
10913     archive_cmds \
10914     archive_expsym_cmds \
10915     postinstall_cmds \
10916     postuninstall_cmds \
10917     old_archive_from_expsyms_cmds \
10918     allow_undefined_flag \
10919     no_undefined_flag \
10920     export_symbols_cmds \
10921     hardcode_libdir_flag_spec \
10922     hardcode_libdir_flag_spec_ld \
10923     hardcode_libdir_separator \
10924     hardcode_automatic \
10925     module_cmds \
10926     module_expsym_cmds \
10927     lt_cv_prog_compiler_c_o \
10928     exclude_expsyms \
10929     include_expsyms; do
10930
10931     case $var in
10932     old_archive_cmds | \
10933     old_archive_from_new_cmds | \
10934     archive_cmds | \
10935     archive_expsym_cmds | \
10936     module_cmds | \
10937     module_expsym_cmds | \
10938     old_archive_from_expsyms_cmds | \
10939     export_symbols_cmds | \
10940     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10941     postinstall_cmds | postuninstall_cmds | \
10942     old_postinstall_cmds | old_postuninstall_cmds | \
10943     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10944       # Double-quote double-evaled strings.
10945       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10946       ;;
10947     *)
10948       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10949       ;;
10950     esac
10951   done
10952
10953   case $lt_echo in
10954   *'\$0 --fallback-echo"')
10955     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10956     ;;
10957   esac
10958
10959 cfgfile="${ofile}T"
10960   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10961   $rm -f "$cfgfile"
10962   { echo "$as_me:$LINENO: creating $ofile" >&5
10963 echo "$as_me: creating $ofile" >&6;}
10964
10965   cat <<__EOF__ >> "$cfgfile"
10966 #! $SHELL
10967
10968 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10969 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10970 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10971 #
10972 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10973 # Free Software Foundation, Inc.
10974 #
10975 # This file is part of GNU Libtool:
10976 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10977 #
10978 # This program is free software; you can redistribute it and/or modify
10979 # it under the terms of the GNU General Public License as published by
10980 # the Free Software Foundation; either version 2 of the License, or
10981 # (at your option) any later version.
10982 #
10983 # This program is distributed in the hope that it will be useful, but
10984 # WITHOUT ANY WARRANTY; without even the implied warranty of
10985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10986 # General Public License for more details.
10987 #
10988 # You should have received a copy of the GNU General Public License
10989 # along with this program; if not, write to the Free Software
10990 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10991 #
10992 # As a special exception to the GNU General Public License, if you
10993 # distribute this file as part of a program that contains a
10994 # configuration script generated by Autoconf, you may include it under
10995 # the same distribution terms that you use for the rest of that program.
10996
10997 # A sed program that does not truncate output.
10998 SED=$lt_SED
10999
11000 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11001 Xsed="$SED -e 1s/^X//"
11002
11003 # The HP-UX ksh and POSIX shell print the target directory to stdout
11004 # if CDPATH is set.
11005 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11006
11007 # The names of the tagged configurations supported by this script.
11008 available_tags=
11009
11010 # ### BEGIN LIBTOOL CONFIG
11011
11012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11013
11014 # Shell to use when invoking shell scripts.
11015 SHELL=$lt_SHELL
11016
11017 # Whether or not to build shared libraries.
11018 build_libtool_libs=$enable_shared
11019
11020 # Whether or not to build static libraries.
11021 build_old_libs=$enable_static
11022
11023 # Whether or not to add -lc for building shared libraries.
11024 build_libtool_need_lc=$archive_cmds_need_lc
11025
11026 # Whether or not to disallow shared libs when runtime libs are static
11027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11028
11029 # Whether or not to optimize for fast installation.
11030 fast_install=$enable_fast_install
11031
11032 # The host system.
11033 host_alias=$host_alias
11034 host=$host
11035 host_os=$host_os
11036
11037 # The build system.
11038 build_alias=$build_alias
11039 build=$build
11040 build_os=$build_os
11041
11042 # An echo program that does not interpret backslashes.
11043 echo=$lt_echo
11044
11045 # The archiver.
11046 AR=$lt_AR
11047 AR_FLAGS=$lt_AR_FLAGS
11048
11049 # A C compiler.
11050 LTCC=$lt_LTCC
11051
11052 # LTCC compiler flags.
11053 LTCFLAGS=$lt_LTCFLAGS
11054
11055 # A language-specific compiler.
11056 CC=$lt_compiler
11057
11058 # Is the compiler the GNU C compiler?
11059 with_gcc=$GCC
11060
11061 # An ERE matcher.
11062 EGREP=$lt_EGREP
11063
11064 # The linker used to build libraries.
11065 LD=$lt_LD
11066
11067 # Whether we need hard or soft links.
11068 LN_S=$lt_LN_S
11069
11070 # A BSD-compatible nm program.
11071 NM=$lt_NM
11072
11073 # A symbol stripping program
11074 STRIP=$lt_STRIP
11075
11076 # Used to examine libraries when file_magic_cmd begins "file"
11077 MAGIC_CMD=$MAGIC_CMD
11078
11079 # Used on cygwin: DLL creation program.
11080 DLLTOOL="$DLLTOOL"
11081
11082 # Used on cygwin: object dumper.
11083 OBJDUMP="$OBJDUMP"
11084
11085 # Used on cygwin: assembler.
11086 AS="$AS"
11087
11088 # The name of the directory that contains temporary libtool files.
11089 objdir=$objdir
11090
11091 # How to create reloadable object files.
11092 reload_flag=$lt_reload_flag
11093 reload_cmds=$lt_reload_cmds
11094
11095 # How to pass a linker flag through the compiler.
11096 wl=$lt_lt_prog_compiler_wl
11097
11098 # Object file suffix (normally "o").
11099 objext="$ac_objext"
11100
11101 # Old archive suffix (normally "a").
11102 libext="$libext"
11103
11104 # Shared library suffix (normally ".so").
11105 shrext_cmds='$shrext_cmds'
11106
11107 # Executable file suffix (normally "").
11108 exeext="$exeext"
11109
11110 # Additional compiler flags for building library objects.
11111 pic_flag=$lt_lt_prog_compiler_pic
11112 pic_mode=$pic_mode
11113
11114 # What is the maximum length of a command?
11115 max_cmd_len=$lt_cv_sys_max_cmd_len
11116
11117 # Does compiler simultaneously support -c and -o options?
11118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11119
11120 # Must we lock files when doing compilation?
11121 need_locks=$lt_need_locks
11122
11123 # Do we need the lib prefix for modules?
11124 need_lib_prefix=$need_lib_prefix
11125
11126 # Do we need a version for libraries?
11127 need_version=$need_version
11128
11129 # Whether dlopen is supported.
11130 dlopen_support=$enable_dlopen
11131
11132 # Whether dlopen of programs is supported.
11133 dlopen_self=$enable_dlopen_self
11134
11135 # Whether dlopen of statically linked programs is supported.
11136 dlopen_self_static=$enable_dlopen_self_static
11137
11138 # Compiler flag to prevent dynamic linking.
11139 link_static_flag=$lt_lt_prog_compiler_static
11140
11141 # Compiler flag to turn off builtin functions.
11142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11143
11144 # Compiler flag to allow reflexive dlopens.
11145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11146
11147 # Compiler flag to generate shared objects directly from archives.
11148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11149
11150 # Compiler flag to generate thread-safe objects.
11151 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11152
11153 # Library versioning type.
11154 version_type=$version_type
11155
11156 # Format of library name prefix.
11157 libname_spec=$lt_libname_spec
11158
11159 # List of archive names.  First name is the real one, the rest are links.
11160 # The last name is the one that the linker finds with -lNAME.
11161 library_names_spec=$lt_library_names_spec
11162
11163 # The coded name of the library, if different from the real name.
11164 soname_spec=$lt_soname_spec
11165
11166 # Commands used to build and install an old-style archive.
11167 RANLIB=$lt_RANLIB
11168 old_archive_cmds=$lt_old_archive_cmds
11169 old_postinstall_cmds=$lt_old_postinstall_cmds
11170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11171
11172 # Create an old-style archive from a shared archive.
11173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11174
11175 # Create a temporary old-style archive to link instead of a shared archive.
11176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11177
11178 # Commands used to build and install a shared archive.
11179 archive_cmds=$lt_archive_cmds
11180 archive_expsym_cmds=$lt_archive_expsym_cmds
11181 postinstall_cmds=$lt_postinstall_cmds
11182 postuninstall_cmds=$lt_postuninstall_cmds
11183
11184 # Commands used to build a loadable module (assumed same as above if empty)
11185 module_cmds=$lt_module_cmds
11186 module_expsym_cmds=$lt_module_expsym_cmds
11187
11188 # Commands to strip libraries.
11189 old_striplib=$lt_old_striplib
11190 striplib=$lt_striplib
11191
11192 # Dependencies to place before the objects being linked to create a
11193 # shared library.
11194 predep_objects=$lt_predep_objects
11195
11196 # Dependencies to place after the objects being linked to create a
11197 # shared library.
11198 postdep_objects=$lt_postdep_objects
11199
11200 # Dependencies to place before the objects being linked to create a
11201 # shared library.
11202 predeps=$lt_predeps
11203
11204 # Dependencies to place after the objects being linked to create a
11205 # shared library.
11206 postdeps=$lt_postdeps
11207
11208 # The library search path used internally by the compiler when linking
11209 # a shared library.
11210 compiler_lib_search_path=$lt_compiler_lib_search_path
11211
11212 # Method to check whether dependent libraries are shared objects.
11213 deplibs_check_method=$lt_deplibs_check_method
11214
11215 # Command to use when deplibs_check_method == file_magic.
11216 file_magic_cmd=$lt_file_magic_cmd
11217
11218 # Flag that allows shared libraries with undefined symbols to be built.
11219 allow_undefined_flag=$lt_allow_undefined_flag
11220
11221 # Flag that forces no undefined symbols.
11222 no_undefined_flag=$lt_no_undefined_flag
11223
11224 # Commands used to finish a libtool library installation in a directory.
11225 finish_cmds=$lt_finish_cmds
11226
11227 # Same as above, but a single script fragment to be evaled but not shown.
11228 finish_eval=$lt_finish_eval
11229
11230 # Take the output of nm and produce a listing of raw symbols and C names.
11231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11232
11233 # Transform the output of nm in a proper C declaration
11234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11235
11236 # Transform the output of nm in a C name address pair
11237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11238
11239 # This is the shared library runtime path variable.
11240 runpath_var=$runpath_var
11241
11242 # This is the shared library path variable.
11243 shlibpath_var=$shlibpath_var
11244
11245 # Is shlibpath searched before the hard-coded library search path?
11246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11247
11248 # How to hardcode a shared library path into an executable.
11249 hardcode_action=$hardcode_action
11250
11251 # Whether we should hardcode library paths into libraries.
11252 hardcode_into_libs=$hardcode_into_libs
11253
11254 # Flag to hardcode \$libdir into a binary during linking.
11255 # This must work even if \$libdir does not exist.
11256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11257
11258 # If ld is used when linking, flag to hardcode \$libdir into
11259 # a binary during linking. This must work even if \$libdir does
11260 # not exist.
11261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11262
11263 # Whether we need a single -rpath flag with a separated argument.
11264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11265
11266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11267 # resulting binary.
11268 hardcode_direct=$hardcode_direct
11269
11270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11271 # resulting binary.
11272 hardcode_minus_L=$hardcode_minus_L
11273
11274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11275 # the resulting binary.
11276 hardcode_shlibpath_var=$hardcode_shlibpath_var
11277
11278 # Set to yes if building a shared library automatically hardcodes DIR into the library
11279 # and all subsequent libraries and executables linked against it.
11280 hardcode_automatic=$hardcode_automatic
11281
11282 # Variables whose values should be saved in libtool wrapper scripts and
11283 # restored at relink time.
11284 variables_saved_for_relink="$variables_saved_for_relink"
11285
11286 # Whether libtool must link a program against all its dependency libraries.
11287 link_all_deplibs=$link_all_deplibs
11288
11289 # Compile-time system search path for libraries
11290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11291
11292 # Run-time system search path for libraries
11293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11294
11295 # Fix the shell variable \$srcfile for the compiler.
11296 fix_srcfile_path="$fix_srcfile_path"
11297
11298 # Set to yes if exported symbols are required.
11299 always_export_symbols=$always_export_symbols
11300
11301 # The commands to list exported symbols.
11302 export_symbols_cmds=$lt_export_symbols_cmds
11303
11304 # The commands to extract the exported symbol list from a shared archive.
11305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11306
11307 # Symbols that should not be listed in the preloaded symbols.
11308 exclude_expsyms=$lt_exclude_expsyms
11309
11310 # Symbols that must always be exported.
11311 include_expsyms=$lt_include_expsyms
11312
11313 # ### END LIBTOOL CONFIG
11314
11315 __EOF__
11316
11317
11318   case $host_os in
11319   aix3*)
11320     cat <<\EOF >> "$cfgfile"
11321
11322 # AIX sometimes has problems with the GCC collect2 program.  For some
11323 # reason, if we set the COLLECT_NAMES environment variable, the problems
11324 # vanish in a puff of smoke.
11325 if test "X${COLLECT_NAMES+set}" != Xset; then
11326   COLLECT_NAMES=
11327   export COLLECT_NAMES
11328 fi
11329 EOF
11330     ;;
11331   esac
11332
11333   # We use sed instead of cat because bash on DJGPP gets confused if
11334   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11335   # text mode, it properly converts lines to CR/LF.  This bash problem
11336   # is reportedly fixed, but why not run on old versions too?
11337   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11338
11339   mv -f "$cfgfile" "$ofile" || \
11340     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11341   chmod +x "$ofile"
11342
11343 else
11344   # If there is no Makefile yet, we rely on a make rule to execute
11345   # `config.status --recheck' to rerun these tests and create the
11346   # libtool script then.
11347   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11348   if test -f "$ltmain_in"; then
11349     test -f Makefile && make "$ltmain"
11350   fi
11351 fi
11352
11353
11354 ac_ext=c
11355 ac_cpp='$CPP $CPPFLAGS'
11356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11359
11360 CC="$lt_save_CC"
11361
11362
11363 # Check whether --with-tags was given.
11364 if test "${with_tags+set}" = set; then
11365   withval=$with_tags; tagnames="$withval"
11366 fi
11367
11368
11369 if test -f "$ltmain" && test -n "$tagnames"; then
11370   if test ! -f "${ofile}"; then
11371     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11372 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11373   fi
11374
11375   if test -z "$LTCC"; then
11376     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11377     if test -z "$LTCC"; then
11378       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11379 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11380     else
11381       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11382 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11383     fi
11384   fi
11385   if test -z "$LTCFLAGS"; then
11386     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11387   fi
11388
11389   # Extract list of available tagged configurations in $ofile.
11390   # Note that this assumes the entire list is on one line.
11391   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11392
11393   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11394   for tagname in $tagnames; do
11395     IFS="$lt_save_ifs"
11396     # Check whether tagname contains only valid characters
11397     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11398     "") ;;
11399     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11400 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11401    { (exit 1); exit 1; }; }
11402         ;;
11403     esac
11404
11405     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11406     then
11407       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11408 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11409    { (exit 1); exit 1; }; }
11410     fi
11411
11412     # Update the list of available tags.
11413     if test -n "$tagname"; then
11414       echo appending configuration tag \"$tagname\" to $ofile
11415
11416       case $tagname in
11417       CXX)
11418         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11419             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11420             (test "X$CXX" != "Xg++"))) ; then
11421           ac_ext=cpp
11422 ac_cpp='$CXXCPP $CPPFLAGS'
11423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11426
11427
11428
11429
11430 archive_cmds_need_lc_CXX=no
11431 allow_undefined_flag_CXX=
11432 always_export_symbols_CXX=no
11433 archive_expsym_cmds_CXX=
11434 export_dynamic_flag_spec_CXX=
11435 hardcode_direct_CXX=no
11436 hardcode_libdir_flag_spec_CXX=
11437 hardcode_libdir_flag_spec_ld_CXX=
11438 hardcode_libdir_separator_CXX=
11439 hardcode_minus_L_CXX=no
11440 hardcode_shlibpath_var_CXX=unsupported
11441 hardcode_automatic_CXX=no
11442 module_cmds_CXX=
11443 module_expsym_cmds_CXX=
11444 link_all_deplibs_CXX=unknown
11445 old_archive_cmds_CXX=$old_archive_cmds
11446 no_undefined_flag_CXX=
11447 whole_archive_flag_spec_CXX=
11448 enable_shared_with_static_runtimes_CXX=no
11449
11450 # Dependencies to place before and after the object being linked:
11451 predep_objects_CXX=
11452 postdep_objects_CXX=
11453 predeps_CXX=
11454 postdeps_CXX=
11455 compiler_lib_search_path_CXX=
11456
11457 # Source file extension for C++ test sources.
11458 ac_ext=cpp
11459
11460 # Object file extension for compiled C++ test sources.
11461 objext=o
11462 objext_CXX=$objext
11463
11464 # Code to be used in simple compile tests
11465 lt_simple_compile_test_code="int some_variable = 0;\n"
11466
11467 # Code to be used in simple link tests
11468 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11469
11470 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11471
11472 # If no C compiler was specified, use CC.
11473 LTCC=${LTCC-"$CC"}
11474
11475 # If no C compiler flags were specified, use CFLAGS.
11476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11477
11478 # Allow CC to be a program name with arguments.
11479 compiler=$CC
11480
11481
11482 # save warnings/boilerplate of simple test code
11483 ac_outfile=conftest.$ac_objext
11484 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11486 _lt_compiler_boilerplate=`cat conftest.err`
11487 $rm conftest*
11488
11489 ac_outfile=conftest.$ac_objext
11490 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492 _lt_linker_boilerplate=`cat conftest.err`
11493 $rm conftest*
11494
11495
11496 # Allow CC to be a program name with arguments.
11497 lt_save_CC=$CC
11498 lt_save_LD=$LD
11499 lt_save_GCC=$GCC
11500 GCC=$GXX
11501 lt_save_with_gnu_ld=$with_gnu_ld
11502 lt_save_path_LD=$lt_cv_path_LD
11503 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11504   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11505 else
11506   $as_unset lt_cv_prog_gnu_ld
11507 fi
11508 if test -n "${lt_cv_path_LDCXX+set}"; then
11509   lt_cv_path_LD=$lt_cv_path_LDCXX
11510 else
11511   $as_unset lt_cv_path_LD
11512 fi
11513 test -z "${LDCXX+set}" || LD=$LDCXX
11514 CC=${CXX-"c++"}
11515 compiler=$CC
11516 compiler_CXX=$CC
11517 for cc_temp in $compiler""; do
11518   case $cc_temp in
11519     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11520     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11521     \-*) ;;
11522     *) break;;
11523   esac
11524 done
11525 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11526
11527
11528 # We don't want -fno-exception wen compiling C++ code, so set the
11529 # no_builtin_flag separately
11530 if test "$GXX" = yes; then
11531   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11532 else
11533   lt_prog_compiler_no_builtin_flag_CXX=
11534 fi
11535
11536 if test "$GXX" = yes; then
11537   # Set up default GNU C++ configuration
11538
11539
11540 # Check whether --with-gnu-ld was given.
11541 if test "${with_gnu_ld+set}" = set; then
11542   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11543 else
11544   with_gnu_ld=no
11545 fi
11546
11547 ac_prog=ld
11548 if test "$GCC" = yes; then
11549   # Check if gcc -print-prog-name=ld gives a path.
11550   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11551 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11552   case $host in
11553   *-*-mingw*)
11554     # gcc leaves a trailing carriage return which upsets mingw
11555     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11556   *)
11557     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11558   esac
11559   case $ac_prog in
11560     # Accept absolute paths.
11561     [\\/]* | ?:[\\/]*)
11562       re_direlt='/[^/][^/]*/\.\./'
11563       # Canonicalize the pathname of ld
11564       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11565       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11566         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11567       done
11568       test -z "$LD" && LD="$ac_prog"
11569       ;;
11570   "")
11571     # If it fails, then pretend we aren't using GCC.
11572     ac_prog=ld
11573     ;;
11574   *)
11575     # If it is relative, then search for the first ld in PATH.
11576     with_gnu_ld=unknown
11577     ;;
11578   esac
11579 elif test "$with_gnu_ld" = yes; then
11580   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11582 else
11583   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11585 fi
11586 if test "${lt_cv_path_LD+set}" = set; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   if test -z "$LD"; then
11590   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11591   for ac_dir in $PATH; do
11592     IFS="$lt_save_ifs"
11593     test -z "$ac_dir" && ac_dir=.
11594     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11595       lt_cv_path_LD="$ac_dir/$ac_prog"
11596       # Check to see if the program is GNU ld.  I'd rather use --version,
11597       # but apparently some variants of GNU ld only accept -v.
11598       # Break only if it was the GNU/non-GNU ld that we prefer.
11599       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11600       *GNU* | *'with BFD'*)
11601         test "$with_gnu_ld" != no && break
11602         ;;
11603       *)
11604         test "$with_gnu_ld" != yes && break
11605         ;;
11606       esac
11607     fi
11608   done
11609   IFS="$lt_save_ifs"
11610 else
11611   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11612 fi
11613 fi
11614
11615 LD="$lt_cv_path_LD"
11616 if test -n "$LD"; then
11617   { echo "$as_me:$LINENO: result: $LD" >&5
11618 echo "${ECHO_T}$LD" >&6; }
11619 else
11620   { echo "$as_me:$LINENO: result: no" >&5
11621 echo "${ECHO_T}no" >&6; }
11622 fi
11623 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11624 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11625    { (exit 1); exit 1; }; }
11626 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11627 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11628 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11629   echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11632 case `$LD -v 2>&1 </dev/null` in
11633 *GNU* | *'with BFD'*)
11634   lt_cv_prog_gnu_ld=yes
11635   ;;
11636 *)
11637   lt_cv_prog_gnu_ld=no
11638   ;;
11639 esac
11640 fi
11641 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11642 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11643 with_gnu_ld=$lt_cv_prog_gnu_ld
11644
11645
11646
11647   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11648   # archiving commands below assume that GNU ld is being used.
11649   if test "$with_gnu_ld" = yes; then
11650     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11651     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'
11652
11653     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11654     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11655
11656     # If archive_cmds runs LD, not CC, wlarc should be empty
11657     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11658     #     investigate it a little bit more. (MM)
11659     wlarc='${wl}'
11660
11661     # ancient GNU ld didn't support --whole-archive et. al.
11662     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11663         grep 'no-whole-archive' > /dev/null; then
11664       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11665     else
11666       whole_archive_flag_spec_CXX=
11667     fi
11668   else
11669     with_gnu_ld=no
11670     wlarc=
11671
11672     # A generic and very simple default shared library creation
11673     # command for GNU C++ for the case where it uses the native
11674     # linker, instead of GNU ld.  If possible, this setting should
11675     # overridden to take advantage of the native linker features on
11676     # the platform it is being used on.
11677     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11678   fi
11679
11680   # Commands to make compiler produce verbose output that lists
11681   # what "hidden" libraries, object files and flags are used when
11682   # linking a shared library.
11683   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11684
11685 else
11686   GXX=no
11687   with_gnu_ld=no
11688   wlarc=
11689 fi
11690
11691 # PORTME: fill in a description of your system's C++ link characteristics
11692 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11693 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11694 ld_shlibs_CXX=yes
11695 case $host_os in
11696   aix3*)
11697     # FIXME: insert proper C++ library support
11698     ld_shlibs_CXX=no
11699     ;;
11700   aix4* | aix5*)
11701     if test "$host_cpu" = ia64; then
11702       # On IA64, the linker does run time linking by default, so we don't
11703       # have to do anything special.
11704       aix_use_runtimelinking=no
11705       exp_sym_flag='-Bexport'
11706       no_entry_flag=""
11707     else
11708       aix_use_runtimelinking=no
11709
11710       # Test if we are trying to use run time linking or normal
11711       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11712       # need to do runtime linking.
11713       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11714         for ld_flag in $LDFLAGS; do
11715           case $ld_flag in
11716           *-brtl*)
11717             aix_use_runtimelinking=yes
11718             break
11719             ;;
11720           esac
11721         done
11722         ;;
11723       esac
11724
11725       exp_sym_flag='-bexport'
11726       no_entry_flag='-bnoentry'
11727     fi
11728
11729     # When large executables or shared objects are built, AIX ld can
11730     # have problems creating the table of contents.  If linking a library
11731     # or program results in "error TOC overflow" add -mminimal-toc to
11732     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11733     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11734
11735     archive_cmds_CXX=''
11736     hardcode_direct_CXX=yes
11737     hardcode_libdir_separator_CXX=':'
11738     link_all_deplibs_CXX=yes
11739
11740     if test "$GXX" = yes; then
11741       case $host_os in aix4.[012]|aix4.[012].*)
11742       # We only want to do this on AIX 4.2 and lower, the check
11743       # below for broken collect2 doesn't work under 4.3+
11744         collect2name=`${CC} -print-prog-name=collect2`
11745         if test -f "$collect2name" && \
11746            strings "$collect2name" | grep resolve_lib_name >/dev/null
11747         then
11748           # We have reworked collect2
11749           hardcode_direct_CXX=yes
11750         else
11751           # We have old collect2
11752           hardcode_direct_CXX=unsupported
11753           # It fails to find uninstalled libraries when the uninstalled
11754           # path is not listed in the libpath.  Setting hardcode_minus_L
11755           # to unsupported forces relinking
11756           hardcode_minus_L_CXX=yes
11757           hardcode_libdir_flag_spec_CXX='-L$libdir'
11758           hardcode_libdir_separator_CXX=
11759         fi
11760         ;;
11761       esac
11762       shared_flag='-shared'
11763       if test "$aix_use_runtimelinking" = yes; then
11764         shared_flag="$shared_flag "'${wl}-G'
11765       fi
11766     else
11767       # not using gcc
11768       if test "$host_cpu" = ia64; then
11769         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11770         # chokes on -Wl,-G. The following line is correct:
11771         shared_flag='-G'
11772       else
11773         if test "$aix_use_runtimelinking" = yes; then
11774           shared_flag='${wl}-G'
11775         else
11776           shared_flag='${wl}-bM:SRE'
11777         fi
11778       fi
11779     fi
11780
11781     # It seems that -bexpall does not export symbols beginning with
11782     # underscore (_), so it is better to generate a list of symbols to export.
11783     always_export_symbols_CXX=yes
11784     if test "$aix_use_runtimelinking" = yes; then
11785       # Warning - without using the other runtime loading flags (-brtl),
11786       # -berok will link without error, but may produce a broken library.
11787       allow_undefined_flag_CXX='-berok'
11788       # Determine the default libpath from the value encoded in an empty executable.
11789       cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795
11796 int
11797 main ()
11798 {
11799
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (ac_try="$ac_link"
11806 case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_link") 2>conftest.er1
11812   ac_status=$?
11813   grep -v '^ *+' conftest.er1 >conftest.err
11814   rm -f conftest.er1
11815   cat conftest.err >&5
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); } && {
11818          test -z "$ac_cxx_werror_flag" ||
11819          test ! -s conftest.err
11820        } && test -s conftest$ac_exeext &&
11821        $as_test_x conftest$ac_exeext; then
11822
11823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11824 }'`
11825 # Check for a 64-bit object if we didn't find anything.
11826 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; }
11827 }'`; fi
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832
11833 fi
11834
11835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11836       conftest$ac_exeext conftest.$ac_ext
11837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11838
11839       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11840
11841       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"
11842      else
11843       if test "$host_cpu" = ia64; then
11844         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11845         allow_undefined_flag_CXX="-z nodefs"
11846         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"
11847       else
11848         # Determine the default libpath from the value encoded in an empty executable.
11849         cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855
11856 int
11857 main ()
11858 {
11859
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (ac_try="$ac_link"
11866 case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_link") 2>conftest.er1
11872   ac_status=$?
11873   grep -v '^ *+' conftest.er1 >conftest.err
11874   rm -f conftest.er1
11875   cat conftest.err >&5
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } && {
11878          test -z "$ac_cxx_werror_flag" ||
11879          test ! -s conftest.err
11880        } && test -s conftest$ac_exeext &&
11881        $as_test_x conftest$ac_exeext; then
11882
11883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11884 }'`
11885 # Check for a 64-bit object if we didn't find anything.
11886 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; }
11887 }'`; fi
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892
11893 fi
11894
11895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11896       conftest$ac_exeext conftest.$ac_ext
11897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11898
11899         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11900         # Warning - without using the other run time loading flags,
11901         # -berok will link without error, but may produce a broken library.
11902         no_undefined_flag_CXX=' ${wl}-bernotok'
11903         allow_undefined_flag_CXX=' ${wl}-berok'
11904         # Exported symbols can be pulled into shared objects from archives
11905         whole_archive_flag_spec_CXX='$convenience'
11906         archive_cmds_need_lc_CXX=yes
11907         # This is similar to how AIX traditionally builds its shared libraries.
11908         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'
11909       fi
11910     fi
11911     ;;
11912
11913   beos*)
11914     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11915       allow_undefined_flag_CXX=unsupported
11916       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11917       # support --undefined.  This deserves some investigation.  FIXME
11918       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11919     else
11920       ld_shlibs_CXX=no
11921     fi
11922     ;;
11923
11924   chorus*)
11925     case $cc_basename in
11926       *)
11927         # FIXME: insert proper C++ library support
11928         ld_shlibs_CXX=no
11929         ;;
11930     esac
11931     ;;
11932
11933   cygwin* | mingw* | pw32*)
11934     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11935     # as there is no search path for DLLs.
11936     hardcode_libdir_flag_spec_CXX='-L$libdir'
11937     allow_undefined_flag_CXX=unsupported
11938     always_export_symbols_CXX=no
11939     enable_shared_with_static_runtimes_CXX=yes
11940
11941     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11942       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'
11943       # If the export-symbols file already is a .def file (1st line
11944       # is EXPORTS), use it as is; otherwise, prepend...
11945       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11946         cp $export_symbols $output_objdir/$soname.def;
11947       else
11948         echo EXPORTS > $output_objdir/$soname.def;
11949         cat $export_symbols >> $output_objdir/$soname.def;
11950       fi~
11951       $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'
11952     else
11953       ld_shlibs_CXX=no
11954     fi
11955   ;;
11956       darwin* | rhapsody*)
11957         case $host_os in
11958         rhapsody* | darwin1.[012])
11959          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11960          ;;
11961        *) # Darwin 1.3 on
11962          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11963            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11964          else
11965            case ${MACOSX_DEPLOYMENT_TARGET} in
11966              10.[012])
11967                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11968                ;;
11969              10.*)
11970                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11971                ;;
11972            esac
11973          fi
11974          ;;
11975         esac
11976       archive_cmds_need_lc_CXX=no
11977       hardcode_direct_CXX=no
11978       hardcode_automatic_CXX=yes
11979       hardcode_shlibpath_var_CXX=unsupported
11980       whole_archive_flag_spec_CXX=''
11981       link_all_deplibs_CXX=yes
11982
11983     if test "$GXX" = yes ; then
11984       lt_int_apple_cc_single_mod=no
11985       output_verbose_link_cmd='echo'
11986       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11987        lt_int_apple_cc_single_mod=yes
11988       fi
11989       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11990        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11991       else
11992           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'
11993         fi
11994         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11995         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11996           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11997             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}'
11998           else
11999             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}'
12000           fi
12001             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}'
12002       else
12003       case $cc_basename in
12004         xlc*)
12005          output_verbose_link_cmd='echo'
12006           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'
12007           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12008           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12009           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}'
12010           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}'
12011           ;;
12012        *)
12013          ld_shlibs_CXX=no
12014           ;;
12015       esac
12016       fi
12017         ;;
12018
12019   dgux*)
12020     case $cc_basename in
12021       ec++*)
12022         # FIXME: insert proper C++ library support
12023         ld_shlibs_CXX=no
12024         ;;
12025       ghcx*)
12026         # Green Hills C++ Compiler
12027         # FIXME: insert proper C++ library support
12028         ld_shlibs_CXX=no
12029         ;;
12030       *)
12031         # FIXME: insert proper C++ library support
12032         ld_shlibs_CXX=no
12033         ;;
12034     esac
12035     ;;
12036   freebsd[12]*)
12037     # C++ shared libraries reported to be fairly broken before switch to ELF
12038     ld_shlibs_CXX=no
12039     ;;
12040   freebsd-elf*)
12041     archive_cmds_need_lc_CXX=no
12042     ;;
12043   freebsd* | dragonfly*)
12044     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12045     # conventions
12046     ld_shlibs_CXX=yes
12047     ;;
12048   gnu*)
12049     ;;
12050   hpux9*)
12051     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12052     hardcode_libdir_separator_CXX=:
12053     export_dynamic_flag_spec_CXX='${wl}-E'
12054     hardcode_direct_CXX=yes
12055     hardcode_minus_L_CXX=yes # Not in the search PATH,
12056                                 # but as the default
12057                                 # location of the library.
12058
12059     case $cc_basename in
12060     CC*)
12061       # FIXME: insert proper C++ library support
12062       ld_shlibs_CXX=no
12063       ;;
12064     aCC*)
12065       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'
12066       # Commands to make compiler produce verbose output that lists
12067       # what "hidden" libraries, object files and flags are used when
12068       # linking a shared library.
12069       #
12070       # There doesn't appear to be a way to prevent this compiler from
12071       # explicitly linking system object files so we need to strip them
12072       # from the output so that they don't get included in the library
12073       # dependencies.
12074       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'
12075       ;;
12076     *)
12077       if test "$GXX" = yes; then
12078         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'
12079       else
12080         # FIXME: insert proper C++ library support
12081         ld_shlibs_CXX=no
12082       fi
12083       ;;
12084     esac
12085     ;;
12086   hpux10*|hpux11*)
12087     if test $with_gnu_ld = no; then
12088       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12089       hardcode_libdir_separator_CXX=:
12090
12091       case $host_cpu in
12092       hppa*64*|ia64*)
12093         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12094         ;;
12095       *)
12096         export_dynamic_flag_spec_CXX='${wl}-E'
12097         ;;
12098       esac
12099     fi
12100     case $host_cpu in
12101     hppa*64*|ia64*)
12102       hardcode_direct_CXX=no
12103       hardcode_shlibpath_var_CXX=no
12104       ;;
12105     *)
12106       hardcode_direct_CXX=yes
12107       hardcode_minus_L_CXX=yes # Not in the search PATH,
12108                                               # but as the default
12109                                               # location of the library.
12110       ;;
12111     esac
12112
12113     case $cc_basename in
12114       CC*)
12115         # FIXME: insert proper C++ library support
12116         ld_shlibs_CXX=no
12117         ;;
12118       aCC*)
12119         case $host_cpu in
12120         hppa*64*)
12121           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12122           ;;
12123         ia64*)
12124           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12125           ;;
12126         *)
12127           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12128           ;;
12129         esac
12130         # Commands to make compiler produce verbose output that lists
12131         # what "hidden" libraries, object files and flags are used when
12132         # linking a shared library.
12133         #
12134         # There doesn't appear to be a way to prevent this compiler from
12135         # explicitly linking system object files so we need to strip them
12136         # from the output so that they don't get included in the library
12137         # dependencies.
12138         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'
12139         ;;
12140       *)
12141         if test "$GXX" = yes; then
12142           if test $with_gnu_ld = no; then
12143             case $host_cpu in
12144             hppa*64*)
12145               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12146               ;;
12147             ia64*)
12148               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12149               ;;
12150             *)
12151               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'
12152               ;;
12153             esac
12154           fi
12155         else
12156           # FIXME: insert proper C++ library support
12157           ld_shlibs_CXX=no
12158         fi
12159         ;;
12160     esac
12161     ;;
12162   interix3*)
12163     hardcode_direct_CXX=no
12164     hardcode_shlibpath_var_CXX=no
12165     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12166     export_dynamic_flag_spec_CXX='${wl}-E'
12167     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12168     # Instead, shared libraries are loaded at an image base (0x10000000 by
12169     # default) and relocated if they conflict, which is a slow very memory
12170     # consuming and fragmenting process.  To avoid this, we pick a random,
12171     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12172     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12173     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'
12174     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'
12175     ;;
12176   irix5* | irix6*)
12177     case $cc_basename in
12178       CC*)
12179         # SGI C++
12180         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'
12181
12182         # Archives containing C++ object files must be created using
12183         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12184         # necessary to make sure instantiated templates are included
12185         # in the archive.
12186         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12187         ;;
12188       *)
12189         if test "$GXX" = yes; then
12190           if test "$with_gnu_ld" = no; then
12191             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'
12192           else
12193             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'
12194           fi
12195         fi
12196         link_all_deplibs_CXX=yes
12197         ;;
12198     esac
12199     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12200     hardcode_libdir_separator_CXX=:
12201     ;;
12202   linux* | k*bsd*-gnu)
12203     case $cc_basename in
12204       KCC*)
12205         # Kuck and Associates, Inc. (KAI) C++ Compiler
12206
12207         # KCC will only create a shared library if the output file
12208         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12209         # to its proper name (with version) after linking.
12210         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'
12211         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'
12212         # Commands to make compiler produce verbose output that lists
12213         # what "hidden" libraries, object files and flags are used when
12214         # linking a shared library.
12215         #
12216         # There doesn't appear to be a way to prevent this compiler from
12217         # explicitly linking system object files so we need to strip them
12218         # from the output so that they don't get included in the library
12219         # dependencies.
12220         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'
12221
12222         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12223         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12224
12225         # Archives containing C++ object files must be created using
12226         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12227         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12228         ;;
12229       icpc*)
12230         # Intel C++
12231         with_gnu_ld=yes
12232         # version 8.0 and above of icpc choke on multiply defined symbols
12233         # if we add $predep_objects and $postdep_objects, however 7.1 and
12234         # earlier do not add the objects themselves.
12235         case `$CC -V 2>&1` in
12236         *"Version 7."*)
12237           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238           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'
12239           ;;
12240         *)  # Version 8.0 or newer
12241           tmp_idyn=
12242           case $host_cpu in
12243             ia64*) tmp_idyn=' -i_dynamic';;
12244           esac
12245           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246           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'
12247           ;;
12248         esac
12249         archive_cmds_need_lc_CXX=no
12250         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12251         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12252         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12253         ;;
12254       pgCC*)
12255         # Portland Group C++ compiler
12256         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12257         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'
12258
12259         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12260         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12261         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'
12262         ;;
12263       cxx*)
12264         # Compaq C++
12265         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266         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'
12267
12268         runpath_var=LD_RUN_PATH
12269         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12270         hardcode_libdir_separator_CXX=:
12271
12272         # Commands to make compiler produce verbose output that lists
12273         # what "hidden" libraries, object files and flags are used when
12274         # linking a shared library.
12275         #
12276         # There doesn't appear to be a way to prevent this compiler from
12277         # explicitly linking system object files so we need to strip them
12278         # from the output so that they don't get included in the library
12279         # dependencies.
12280         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'
12281         ;;
12282     esac
12283     ;;
12284   lynxos*)
12285     # FIXME: insert proper C++ library support
12286     ld_shlibs_CXX=no
12287     ;;
12288   m88k*)
12289     # FIXME: insert proper C++ library support
12290     ld_shlibs_CXX=no
12291     ;;
12292   mvs*)
12293     case $cc_basename in
12294       cxx*)
12295         # FIXME: insert proper C++ library support
12296         ld_shlibs_CXX=no
12297         ;;
12298       *)
12299         # FIXME: insert proper C++ library support
12300         ld_shlibs_CXX=no
12301         ;;
12302     esac
12303     ;;
12304   netbsd* | netbsdelf*-gnu)
12305     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12306       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12307       wlarc=
12308       hardcode_libdir_flag_spec_CXX='-R$libdir'
12309       hardcode_direct_CXX=yes
12310       hardcode_shlibpath_var_CXX=no
12311     fi
12312     # Workaround some broken pre-1.5 toolchains
12313     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12314     ;;
12315   openbsd2*)
12316     # C++ shared libraries are fairly broken
12317     ld_shlibs_CXX=no
12318     ;;
12319   openbsd*)
12320     hardcode_direct_CXX=yes
12321     hardcode_shlibpath_var_CXX=no
12322     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12323     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12324     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12325       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12326       export_dynamic_flag_spec_CXX='${wl}-E'
12327       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12328     fi
12329     output_verbose_link_cmd='echo'
12330     ;;
12331   osf3*)
12332     case $cc_basename in
12333       KCC*)
12334         # Kuck and Associates, Inc. (KAI) C++ Compiler
12335
12336         # KCC will only create a shared library if the output file
12337         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12338         # to its proper name (with version) after linking.
12339         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'
12340
12341         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12342         hardcode_libdir_separator_CXX=:
12343
12344         # Archives containing C++ object files must be created using
12345         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12346         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12347
12348         ;;
12349       RCC*)
12350         # Rational C++ 2.4.1
12351         # FIXME: insert proper C++ library support
12352         ld_shlibs_CXX=no
12353         ;;
12354       cxx*)
12355         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12356         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'
12357
12358         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12359         hardcode_libdir_separator_CXX=:
12360
12361         # Commands to make compiler produce verbose output that lists
12362         # what "hidden" libraries, object files and flags are used when
12363         # linking a shared library.
12364         #
12365         # There doesn't appear to be a way to prevent this compiler from
12366         # explicitly linking system object files so we need to strip them
12367         # from the output so that they don't get included in the library
12368         # dependencies.
12369         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'
12370         ;;
12371       *)
12372         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12373           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12374           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'
12375
12376           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12377           hardcode_libdir_separator_CXX=:
12378
12379           # Commands to make compiler produce verbose output that lists
12380           # what "hidden" libraries, object files and flags are used when
12381           # linking a shared library.
12382           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12383
12384         else
12385           # FIXME: insert proper C++ library support
12386           ld_shlibs_CXX=no
12387         fi
12388         ;;
12389     esac
12390     ;;
12391   osf4* | osf5*)
12392     case $cc_basename in
12393       KCC*)
12394         # Kuck and Associates, Inc. (KAI) C++ Compiler
12395
12396         # KCC will only create a shared library if the output file
12397         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12398         # to its proper name (with version) after linking.
12399         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'
12400
12401         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12402         hardcode_libdir_separator_CXX=:
12403
12404         # Archives containing C++ object files must be created using
12405         # the KAI C++ compiler.
12406         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12407         ;;
12408       RCC*)
12409         # Rational C++ 2.4.1
12410         # FIXME: insert proper C++ library support
12411         ld_shlibs_CXX=no
12412         ;;
12413       cxx*)
12414         allow_undefined_flag_CXX=' -expect_unresolved \*'
12415         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'
12416         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12417           echo "-hidden">> $lib.exp~
12418           $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~
12419           $rm $lib.exp'
12420
12421         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12422         hardcode_libdir_separator_CXX=:
12423
12424         # Commands to make compiler produce verbose output that lists
12425         # what "hidden" libraries, object files and flags are used when
12426         # linking a shared library.
12427         #
12428         # There doesn't appear to be a way to prevent this compiler from
12429         # explicitly linking system object files so we need to strip them
12430         # from the output so that they don't get included in the library
12431         # dependencies.
12432         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'
12433         ;;
12434       *)
12435         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12436           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12437          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'
12438
12439           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12440           hardcode_libdir_separator_CXX=:
12441
12442           # Commands to make compiler produce verbose output that lists
12443           # what "hidden" libraries, object files and flags are used when
12444           # linking a shared library.
12445           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12446
12447         else
12448           # FIXME: insert proper C++ library support
12449           ld_shlibs_CXX=no
12450         fi
12451         ;;
12452     esac
12453     ;;
12454   psos*)
12455     # FIXME: insert proper C++ library support
12456     ld_shlibs_CXX=no
12457     ;;
12458   sunos4*)
12459     case $cc_basename in
12460       CC*)
12461         # Sun C++ 4.x
12462         # FIXME: insert proper C++ library support
12463         ld_shlibs_CXX=no
12464         ;;
12465       lcc*)
12466         # Lucid
12467         # FIXME: insert proper C++ library support
12468         ld_shlibs_CXX=no
12469         ;;
12470       *)
12471         # FIXME: insert proper C++ library support
12472         ld_shlibs_CXX=no
12473         ;;
12474     esac
12475     ;;
12476   solaris*)
12477     case $cc_basename in
12478       CC*)
12479         # Sun C++ 4.2, 5.x and Centerline C++
12480         archive_cmds_need_lc_CXX=yes
12481         no_undefined_flag_CXX=' -zdefs'
12482         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12484         $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'
12485
12486         hardcode_libdir_flag_spec_CXX='-R$libdir'
12487         hardcode_shlibpath_var_CXX=no
12488         case $host_os in
12489           solaris2.[0-5] | solaris2.[0-5].*) ;;
12490           *)
12491             # The C++ compiler is used as linker so we must use $wl
12492             # flag to pass the commands to the underlying system
12493             # linker. We must also pass each convience library through
12494             # to the system linker between allextract/defaultextract.
12495             # The C++ compiler will combine linker options so we
12496             # cannot just pass the convience library names through
12497             # without $wl.
12498             # Supported since Solaris 2.6 (maybe 2.5.1?)
12499             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'
12500             ;;
12501         esac
12502         link_all_deplibs_CXX=yes
12503
12504         output_verbose_link_cmd='echo'
12505
12506         # Archives containing C++ object files must be created using
12507         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12508         # necessary to make sure instantiated templates are included
12509         # in the archive.
12510         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12511         ;;
12512       gcx*)
12513         # Green Hills C++ Compiler
12514         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12515
12516         # The C++ compiler must be used to create the archive.
12517         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12518         ;;
12519       *)
12520         # GNU C++ compiler with Solaris linker
12521         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12522           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12523           if $CC --version | grep -v '^2\.7' > /dev/null; then
12524             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12525             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12526                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12527
12528             # Commands to make compiler produce verbose output that lists
12529             # what "hidden" libraries, object files and flags are used when
12530             # linking a shared library.
12531             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12532           else
12533             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12534             # platform.
12535             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12536             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12537                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12538
12539             # Commands to make compiler produce verbose output that lists
12540             # what "hidden" libraries, object files and flags are used when
12541             # linking a shared library.
12542             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12543           fi
12544
12545           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12546         fi
12547         ;;
12548     esac
12549     ;;
12550   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12551     no_undefined_flag_CXX='${wl}-z,text'
12552     archive_cmds_need_lc_CXX=no
12553     hardcode_shlibpath_var_CXX=no
12554     runpath_var='LD_RUN_PATH'
12555
12556     case $cc_basename in
12557       CC*)
12558         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12559         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12560         ;;
12561       *)
12562         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12563         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12564         ;;
12565     esac
12566     ;;
12567   sysv5* | sco3.2v5* | sco5v6*)
12568     # Note: We can NOT use -z defs as we might desire, because we do not
12569     # link with -lc, and that would cause any symbols used from libc to
12570     # always be unresolved, which means just about no library would
12571     # ever link correctly.  If we're not using GNU ld we use -z text
12572     # though, which does catch some bad symbols but isn't as heavy-handed
12573     # as -z defs.
12574     # For security reasons, it is highly recommended that you always
12575     # use absolute paths for naming shared libraries, and exclude the
12576     # DT_RUNPATH tag from executables and libraries.  But doing so
12577     # requires that you compile everything twice, which is a pain.
12578     # So that behaviour is only enabled if SCOABSPATH is set to a
12579     # non-empty value in the environment.  Most likely only useful for
12580     # creating official distributions of packages.
12581     # This is a hack until libtool officially supports absolute path
12582     # names for shared libraries.
12583     no_undefined_flag_CXX='${wl}-z,text'
12584     allow_undefined_flag_CXX='${wl}-z,nodefs'
12585     archive_cmds_need_lc_CXX=no
12586     hardcode_shlibpath_var_CXX=no
12587     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12588     hardcode_libdir_separator_CXX=':'
12589     link_all_deplibs_CXX=yes
12590     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12591     runpath_var='LD_RUN_PATH'
12592
12593     case $cc_basename in
12594       CC*)
12595         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12596         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12597         ;;
12598       *)
12599         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12600         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12601         ;;
12602     esac
12603     ;;
12604   tandem*)
12605     case $cc_basename in
12606       NCC*)
12607         # NonStop-UX NCC 3.20
12608         # FIXME: insert proper C++ library support
12609         ld_shlibs_CXX=no
12610         ;;
12611       *)
12612         # FIXME: insert proper C++ library support
12613         ld_shlibs_CXX=no
12614         ;;
12615     esac
12616     ;;
12617   vxworks*)
12618     # FIXME: insert proper C++ library support
12619     ld_shlibs_CXX=no
12620     ;;
12621   *)
12622     # FIXME: insert proper C++ library support
12623     ld_shlibs_CXX=no
12624     ;;
12625 esac
12626 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12627 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12628 test "$ld_shlibs_CXX" = no && can_build_shared=no
12629
12630 GCC_CXX="$GXX"
12631 LD_CXX="$LD"
12632
12633
12634 cat > conftest.$ac_ext <<EOF
12635 class Foo
12636 {
12637 public:
12638   Foo (void) { a = 0; }
12639 private:
12640   int a;
12641 };
12642 EOF
12643
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645   (eval $ac_compile) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; then
12649   # Parse the compiler output and extract the necessary
12650   # objects, libraries and library flags.
12651
12652   # Sentinel used to keep track of whether or not we are before
12653   # the conftest object file.
12654   pre_test_object_deps_done=no
12655
12656   # The `*' in the case matches for architectures that use `case' in
12657   # $output_verbose_cmd can trigger glob expansion during the loop
12658   # eval without this substitution.
12659   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12660
12661   for p in `eval $output_verbose_link_cmd`; do
12662     case $p in
12663
12664     -L* | -R* | -l*)
12665        # Some compilers place space between "-{L,R}" and the path.
12666        # Remove the space.
12667        if test $p = "-L" \
12668           || test $p = "-R"; then
12669          prev=$p
12670          continue
12671        else
12672          prev=
12673        fi
12674
12675        if test "$pre_test_object_deps_done" = no; then
12676          case $p in
12677          -L* | -R*)
12678            # Internal compiler library paths should come after those
12679            # provided the user.  The postdeps already come after the
12680            # user supplied libs so there is no need to process them.
12681            if test -z "$compiler_lib_search_path_CXX"; then
12682              compiler_lib_search_path_CXX="${prev}${p}"
12683            else
12684              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12685            fi
12686            ;;
12687          # The "-l" case would never come before the object being
12688          # linked, so don't bother handling this case.
12689          esac
12690        else
12691          if test -z "$postdeps_CXX"; then
12692            postdeps_CXX="${prev}${p}"
12693          else
12694            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12695          fi
12696        fi
12697        ;;
12698
12699     *.$objext)
12700        # This assumes that the test object file only shows up
12701        # once in the compiler output.
12702        if test "$p" = "conftest.$objext"; then
12703          pre_test_object_deps_done=yes
12704          continue
12705        fi
12706
12707        if test "$pre_test_object_deps_done" = no; then
12708          if test -z "$predep_objects_CXX"; then
12709            predep_objects_CXX="$p"
12710          else
12711            predep_objects_CXX="$predep_objects_CXX $p"
12712          fi
12713        else
12714          if test -z "$postdep_objects_CXX"; then
12715            postdep_objects_CXX="$p"
12716          else
12717            postdep_objects_CXX="$postdep_objects_CXX $p"
12718          fi
12719        fi
12720        ;;
12721
12722     *) ;; # Ignore the rest.
12723
12724     esac
12725   done
12726
12727   # Clean up.
12728   rm -f a.out a.exe
12729 else
12730   echo "libtool.m4: error: problem compiling CXX test program"
12731 fi
12732
12733 $rm -f confest.$objext
12734
12735 # PORTME: override above test on systems where it is broken
12736 case $host_os in
12737 interix3*)
12738   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12739   # hack all around it, let's just trust "g++" to DTRT.
12740   predep_objects_CXX=
12741   postdep_objects_CXX=
12742   postdeps_CXX=
12743   ;;
12744
12745 solaris*)
12746   case $cc_basename in
12747   CC*)
12748     # Adding this requires a known-good setup of shared libraries for
12749     # Sun compiler versions before 5.6, else PIC objects from an old
12750     # archive will be linked into the output, leading to subtle bugs.
12751     postdeps_CXX='-lCstd -lCrun'
12752     ;;
12753   esac
12754   ;;
12755 esac
12756
12757
12758 case " $postdeps_CXX " in
12759 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12760 esac
12761
12762 lt_prog_compiler_wl_CXX=
12763 lt_prog_compiler_pic_CXX=
12764 lt_prog_compiler_static_CXX=
12765
12766 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12768
12769   # C++ specific cases for pic, static, wl, etc.
12770   if test "$GXX" = yes; then
12771     lt_prog_compiler_wl_CXX='-Wl,'
12772     lt_prog_compiler_static_CXX='-static'
12773
12774     case $host_os in
12775     aix*)
12776       # All AIX code is PIC.
12777       if test "$host_cpu" = ia64; then
12778         # AIX 5 now supports IA64 processor
12779         lt_prog_compiler_static_CXX='-Bstatic'
12780       fi
12781       ;;
12782     amigaos*)
12783       # FIXME: we need at least 68020 code to build shared libraries, but
12784       # adding the `-m68020' flag to GCC prevents building anything better,
12785       # like `-m68040'.
12786       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12787       ;;
12788     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12789       # PIC is the default for these OSes.
12790       ;;
12791     mingw* | os2* | pw32*)
12792       # This hack is so that the source file can tell whether it is being
12793       # built for inclusion in a dll (and should export symbols for example).
12794       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12795       ;;
12796     darwin* | rhapsody*)
12797       # PIC is the default on this platform
12798       # Common symbols not allowed in MH_DYLIB files
12799       lt_prog_compiler_pic_CXX='-fno-common'
12800       ;;
12801     *djgpp*)
12802       # DJGPP does not support shared libraries at all
12803       lt_prog_compiler_pic_CXX=
12804       ;;
12805     interix3*)
12806       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12807       # Instead, we relocate shared libraries at runtime.
12808       ;;
12809     sysv4*MP*)
12810       if test -d /usr/nec; then
12811         lt_prog_compiler_pic_CXX=-Kconform_pic
12812       fi
12813       ;;
12814     hpux*)
12815       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12816       # not for PA HP-UX.
12817       case $host_cpu in
12818       hppa*64*|ia64*)
12819         ;;
12820       *)
12821         lt_prog_compiler_pic_CXX='-fPIC'
12822         ;;
12823       esac
12824       ;;
12825     *)
12826       lt_prog_compiler_pic_CXX='-fPIC'
12827       ;;
12828     esac
12829   else
12830     case $host_os in
12831       aix4* | aix5*)
12832         # All AIX code is PIC.
12833         if test "$host_cpu" = ia64; then
12834           # AIX 5 now supports IA64 processor
12835           lt_prog_compiler_static_CXX='-Bstatic'
12836         else
12837           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12838         fi
12839         ;;
12840       chorus*)
12841         case $cc_basename in
12842         cxch68*)
12843           # Green Hills C++ Compiler
12844           # _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"
12845           ;;
12846         esac
12847         ;;
12848        darwin*)
12849          # PIC is the default on this platform
12850          # Common symbols not allowed in MH_DYLIB files
12851          case $cc_basename in
12852            xlc*)
12853            lt_prog_compiler_pic_CXX='-qnocommon'
12854            lt_prog_compiler_wl_CXX='-Wl,'
12855            ;;
12856          esac
12857        ;;
12858       dgux*)
12859         case $cc_basename in
12860           ec++*)
12861             lt_prog_compiler_pic_CXX='-KPIC'
12862             ;;
12863           ghcx*)
12864             # Green Hills C++ Compiler
12865             lt_prog_compiler_pic_CXX='-pic'
12866             ;;
12867           *)
12868             ;;
12869         esac
12870         ;;
12871       freebsd* | dragonfly*)
12872         # FreeBSD uses GNU C++
12873         ;;
12874       hpux9* | hpux10* | hpux11*)
12875         case $cc_basename in
12876           CC*)
12877             lt_prog_compiler_wl_CXX='-Wl,'
12878             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12879             if test "$host_cpu" != ia64; then
12880               lt_prog_compiler_pic_CXX='+Z'
12881             fi
12882             ;;
12883           aCC*)
12884             lt_prog_compiler_wl_CXX='-Wl,'
12885             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12886             case $host_cpu in
12887             hppa*64*|ia64*)
12888               # +Z the default
12889               ;;
12890             *)
12891               lt_prog_compiler_pic_CXX='+Z'
12892               ;;
12893             esac
12894             ;;
12895           *)
12896             ;;
12897         esac
12898         ;;
12899       interix*)
12900         # This is c89, which is MS Visual C++ (no shared libs)
12901         # Anyone wants to do a port?
12902         ;;
12903       irix5* | irix6* | nonstopux*)
12904         case $cc_basename in
12905           CC*)
12906             lt_prog_compiler_wl_CXX='-Wl,'
12907             lt_prog_compiler_static_CXX='-non_shared'
12908             # CC pic flag -KPIC is the default.
12909             ;;
12910           *)
12911             ;;
12912         esac
12913         ;;
12914       linux* | k*bsd*-gnu)
12915         case $cc_basename in
12916           KCC*)
12917             # KAI C++ Compiler
12918             lt_prog_compiler_wl_CXX='--backend -Wl,'
12919             lt_prog_compiler_pic_CXX='-fPIC'
12920             ;;
12921           icpc* | ecpc*)
12922             # Intel C++
12923             lt_prog_compiler_wl_CXX='-Wl,'
12924             lt_prog_compiler_pic_CXX='-KPIC'
12925             lt_prog_compiler_static_CXX='-static'
12926             ;;
12927           pgCC*)
12928             # Portland Group C++ compiler.
12929             lt_prog_compiler_wl_CXX='-Wl,'
12930             lt_prog_compiler_pic_CXX='-fpic'
12931             lt_prog_compiler_static_CXX='-Bstatic'
12932             ;;
12933           cxx*)
12934             # Compaq C++
12935             # Make sure the PIC flag is empty.  It appears that all Alpha
12936             # Linux and Compaq Tru64 Unix objects are PIC.
12937             lt_prog_compiler_pic_CXX=
12938             lt_prog_compiler_static_CXX='-non_shared'
12939             ;;
12940           *)
12941             ;;
12942         esac
12943         ;;
12944       lynxos*)
12945         ;;
12946       m88k*)
12947         ;;
12948       mvs*)
12949         case $cc_basename in
12950           cxx*)
12951             lt_prog_compiler_pic_CXX='-W c,exportall'
12952             ;;
12953           *)
12954             ;;
12955         esac
12956         ;;
12957       netbsd* | netbsdelf*-gnu)
12958         ;;
12959       osf3* | osf4* | osf5*)
12960         case $cc_basename in
12961           KCC*)
12962             lt_prog_compiler_wl_CXX='--backend -Wl,'
12963             ;;
12964           RCC*)
12965             # Rational C++ 2.4.1
12966             lt_prog_compiler_pic_CXX='-pic'
12967             ;;
12968           cxx*)
12969             # Digital/Compaq C++
12970             lt_prog_compiler_wl_CXX='-Wl,'
12971             # Make sure the PIC flag is empty.  It appears that all Alpha
12972             # Linux and Compaq Tru64 Unix objects are PIC.
12973             lt_prog_compiler_pic_CXX=
12974             lt_prog_compiler_static_CXX='-non_shared'
12975             ;;
12976           *)
12977             ;;
12978         esac
12979         ;;
12980       psos*)
12981         ;;
12982       solaris*)
12983         case $cc_basename in
12984           CC*)
12985             # Sun C++ 4.2, 5.x and Centerline C++
12986             lt_prog_compiler_pic_CXX='-KPIC'
12987             lt_prog_compiler_static_CXX='-Bstatic'
12988             lt_prog_compiler_wl_CXX='-Qoption ld '
12989             ;;
12990           gcx*)
12991             # Green Hills C++ Compiler
12992             lt_prog_compiler_pic_CXX='-PIC'
12993             ;;
12994           *)
12995             ;;
12996         esac
12997         ;;
12998       sunos4*)
12999         case $cc_basename in
13000           CC*)
13001             # Sun C++ 4.x
13002             lt_prog_compiler_pic_CXX='-pic'
13003             lt_prog_compiler_static_CXX='-Bstatic'
13004             ;;
13005           lcc*)
13006             # Lucid
13007             lt_prog_compiler_pic_CXX='-pic'
13008             ;;
13009           *)
13010             ;;
13011         esac
13012         ;;
13013       tandem*)
13014         case $cc_basename in
13015           NCC*)
13016             # NonStop-UX NCC 3.20
13017             lt_prog_compiler_pic_CXX='-KPIC'
13018             ;;
13019           *)
13020             ;;
13021         esac
13022         ;;
13023       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13024         case $cc_basename in
13025           CC*)
13026             lt_prog_compiler_wl_CXX='-Wl,'
13027             lt_prog_compiler_pic_CXX='-KPIC'
13028             lt_prog_compiler_static_CXX='-Bstatic'
13029             ;;
13030         esac
13031         ;;
13032       vxworks*)
13033         ;;
13034       *)
13035         lt_prog_compiler_can_build_shared_CXX=no
13036         ;;
13037     esac
13038   fi
13039
13040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13041 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13042
13043 #
13044 # Check to make sure the PIC flag actually works.
13045 #
13046 if test -n "$lt_prog_compiler_pic_CXX"; then
13047
13048 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13050 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053   lt_prog_compiler_pic_works_CXX=no
13054   ac_outfile=conftest.$ac_objext
13055    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13056    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13057    # Insert the option either (1) after the last *FLAGS variable, or
13058    # (2) before a word containing "conftest.", or (3) at the end.
13059    # Note that $ac_compile itself does not contain backslashes and begins
13060    # with a dollar sign (not a hyphen), so the echo should work correctly.
13061    # The option is referenced via a variable to avoid confusing sed.
13062    lt_compile=`echo "$ac_compile" | $SED \
13063    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13065    -e 's:$: $lt_compiler_flag:'`
13066    (eval echo "\"\$as_me:13066: $lt_compile\"" >&5)
13067    (eval "$lt_compile" 2>conftest.err)
13068    ac_status=$?
13069    cat conftest.err >&5
13070    echo "$as_me:13070: \$? = $ac_status" >&5
13071    if (exit $ac_status) && test -s "$ac_outfile"; then
13072      # The compiler can only warn and ignore the option if not recognized
13073      # So say no if there are warnings other than the usual output.
13074      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13075      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13076      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13077        lt_prog_compiler_pic_works_CXX=yes
13078      fi
13079    fi
13080    $rm conftest*
13081
13082 fi
13083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13084 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13085
13086 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13087     case $lt_prog_compiler_pic_CXX in
13088      "" | " "*) ;;
13089      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13090      esac
13091 else
13092     lt_prog_compiler_pic_CXX=
13093      lt_prog_compiler_can_build_shared_CXX=no
13094 fi
13095
13096 fi
13097 case $host_os in
13098   # For platforms which do not support PIC, -DPIC is meaningless:
13099   *djgpp*)
13100     lt_prog_compiler_pic_CXX=
13101     ;;
13102   *)
13103     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13104     ;;
13105 esac
13106
13107 #
13108 # Check to make sure the static flag actually works.
13109 #
13110 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13111 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13112 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13113 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13114   echo $ECHO_N "(cached) $ECHO_C" >&6
13115 else
13116   lt_prog_compiler_static_works_CXX=no
13117    save_LDFLAGS="$LDFLAGS"
13118    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13119    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13121      # The linker can only warn and ignore the option if not recognized
13122      # So say no if there are warnings
13123      if test -s conftest.err; then
13124        # Append any errors to the config.log.
13125        cat conftest.err 1>&5
13126        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13128        if diff conftest.exp conftest.er2 >/dev/null; then
13129          lt_prog_compiler_static_works_CXX=yes
13130        fi
13131      else
13132        lt_prog_compiler_static_works_CXX=yes
13133      fi
13134    fi
13135    $rm conftest*
13136    LDFLAGS="$save_LDFLAGS"
13137
13138 fi
13139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13140 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13141
13142 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13143     :
13144 else
13145     lt_prog_compiler_static_CXX=
13146 fi
13147
13148
13149 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13151 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   lt_cv_prog_compiler_c_o_CXX=no
13155    $rm -r conftest 2>/dev/null
13156    mkdir conftest
13157    cd conftest
13158    mkdir out
13159    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13160
13161    lt_compiler_flag="-o out/conftest2.$ac_objext"
13162    # Insert the option either (1) after the last *FLAGS variable, or
13163    # (2) before a word containing "conftest.", or (3) at the end.
13164    # Note that $ac_compile itself does not contain backslashes and begins
13165    # with a dollar sign (not a hyphen), so the echo should work correctly.
13166    lt_compile=`echo "$ac_compile" | $SED \
13167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13169    -e 's:$: $lt_compiler_flag:'`
13170    (eval echo "\"\$as_me:13170: $lt_compile\"" >&5)
13171    (eval "$lt_compile" 2>out/conftest.err)
13172    ac_status=$?
13173    cat out/conftest.err >&5
13174    echo "$as_me:13174: \$? = $ac_status" >&5
13175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13176    then
13177      # The compiler can only warn and ignore the option if not recognized
13178      # So say no if there are warnings
13179      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13180      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13181      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13182        lt_cv_prog_compiler_c_o_CXX=yes
13183      fi
13184    fi
13185    chmod u+w . 2>&5
13186    $rm conftest*
13187    # SGI C++ compiler will create directory out/ii_files/ for
13188    # template instantiation
13189    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13190    $rm out/* && rmdir out
13191    cd ..
13192    rmdir conftest
13193    $rm conftest*
13194
13195 fi
13196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13198
13199
13200 hard_links="nottested"
13201 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13202   # do not overwrite the value of need_locks provided by the user
13203   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13205   hard_links=yes
13206   $rm conftest*
13207   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13208   touch conftest.a
13209   ln conftest.a conftest.b 2>&5 || hard_links=no
13210   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13211   { echo "$as_me:$LINENO: result: $hard_links" >&5
13212 echo "${ECHO_T}$hard_links" >&6; }
13213   if test "$hard_links" = no; then
13214     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13216     need_locks=warn
13217   fi
13218 else
13219   need_locks=no
13220 fi
13221
13222 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13224
13225   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13226   case $host_os in
13227   aix4* | aix5*)
13228     # If we're using GNU nm, then we don't want the "-C" option.
13229     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13230     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13231       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'
13232     else
13233       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'
13234     fi
13235     ;;
13236   pw32*)
13237     export_symbols_cmds_CXX="$ltdll_cmds"
13238   ;;
13239   cygwin* | mingw*)
13240     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'
13241   ;;
13242   linux* | k*bsd*-gnu)
13243     link_all_deplibs_CXX=no
13244   ;;
13245   *)
13246     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13247   ;;
13248   esac
13249
13250 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13251 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13252 test "$ld_shlibs_CXX" = no && can_build_shared=no
13253
13254 #
13255 # Do we need to explicitly link libc?
13256 #
13257 case "x$archive_cmds_need_lc_CXX" in
13258 x|xyes)
13259   # Assume -lc should be added
13260   archive_cmds_need_lc_CXX=yes
13261
13262   if test "$enable_shared" = yes && test "$GCC" = yes; then
13263     case $archive_cmds_CXX in
13264     *'~'*)
13265       # FIXME: we may have to deal with multi-command sequences.
13266       ;;
13267     '$CC '*)
13268       # Test whether the compiler implicitly links with -lc since on some
13269       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13270       # to ld, don't add -lc before -lgcc.
13271       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13272 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13273       $rm conftest*
13274       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13275
13276       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277   (eval $ac_compile) 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); } 2>conftest.err; then
13281         soname=conftest
13282         lib=conftest
13283         libobjs=conftest.$ac_objext
13284         deplibs=
13285         wl=$lt_prog_compiler_wl_CXX
13286         pic_flag=$lt_prog_compiler_pic_CXX
13287         compiler_flags=-v
13288         linker_flags=-v
13289         verstring=
13290         output_objdir=.
13291         libname=conftest
13292         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13293         allow_undefined_flag_CXX=
13294         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13295   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }
13299         then
13300           archive_cmds_need_lc_CXX=no
13301         else
13302           archive_cmds_need_lc_CXX=yes
13303         fi
13304         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13305       else
13306         cat conftest.err 1>&5
13307       fi
13308       $rm conftest*
13309       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13310 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13311       ;;
13312     esac
13313   fi
13314   ;;
13315 esac
13316
13317 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13318 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13319 library_names_spec=
13320 libname_spec='lib$name'
13321 soname_spec=
13322 shrext_cmds=".so"
13323 postinstall_cmds=
13324 postuninstall_cmds=
13325 finish_cmds=
13326 finish_eval=
13327 shlibpath_var=
13328 shlibpath_overrides_runpath=unknown
13329 version_type=none
13330 dynamic_linker="$host_os ld.so"
13331 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13332 if test "$GCC" = yes; then
13333   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13334   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13335     # if the path contains ";" then we assume it to be the separator
13336     # otherwise default to the standard path separator (i.e. ":") - it is
13337     # assumed that no part of a normal pathname contains ";" but that should
13338     # okay in the real world where ";" in dirpaths is itself problematic.
13339     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13340   else
13341     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13342   fi
13343 else
13344   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13345 fi
13346 need_lib_prefix=unknown
13347 hardcode_into_libs=no
13348
13349 # when you set need_version to no, make sure it does not cause -set_version
13350 # flags to be left without arguments
13351 need_version=unknown
13352
13353 case $host_os in
13354 aix3*)
13355   version_type=linux
13356   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13357   shlibpath_var=LIBPATH
13358
13359   # AIX 3 has no versioning support, so we append a major version to the name.
13360   soname_spec='${libname}${release}${shared_ext}$major'
13361   ;;
13362
13363 aix4* | aix5*)
13364   version_type=linux
13365   need_lib_prefix=no
13366   need_version=no
13367   hardcode_into_libs=yes
13368   if test "$host_cpu" = ia64; then
13369     # AIX 5 supports IA64
13370     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13371     shlibpath_var=LD_LIBRARY_PATH
13372   else
13373     # With GCC up to 2.95.x, collect2 would create an import file
13374     # for dependence libraries.  The import file would start with
13375     # the line `#! .'.  This would cause the generated library to
13376     # depend on `.', always an invalid library.  This was fixed in
13377     # development snapshots of GCC prior to 3.0.
13378     case $host_os in
13379       aix4 | aix4.[01] | aix4.[01].*)
13380       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13381            echo ' yes '
13382            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13383         :
13384       else
13385         can_build_shared=no
13386       fi
13387       ;;
13388     esac
13389     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13390     # soname into executable. Probably we can add versioning support to
13391     # collect2, so additional links can be useful in future.
13392     if test "$aix_use_runtimelinking" = yes; then
13393       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13394       # instead of lib<name>.a to let people know that these are not
13395       # typical AIX shared libraries.
13396       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397     else
13398       # We preserve .a as extension for shared libraries through AIX4.2
13399       # and later when we are not doing run time linking.
13400       library_names_spec='${libname}${release}.a $libname.a'
13401       soname_spec='${libname}${release}${shared_ext}$major'
13402     fi
13403     shlibpath_var=LIBPATH
13404   fi
13405   ;;
13406
13407 amigaos*)
13408   library_names_spec='$libname.ixlibrary $libname.a'
13409   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13410   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'
13411   ;;
13412
13413 beos*)
13414   library_names_spec='${libname}${shared_ext}'
13415   dynamic_linker="$host_os ld.so"
13416   shlibpath_var=LIBRARY_PATH
13417   ;;
13418
13419 bsdi[45]*)
13420   version_type=linux
13421   need_version=no
13422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423   soname_spec='${libname}${release}${shared_ext}$major'
13424   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13425   shlibpath_var=LD_LIBRARY_PATH
13426   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13427   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13428   # the default ld.so.conf also contains /usr/contrib/lib and
13429   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13430   # libtool to hard-code these into programs
13431   ;;
13432
13433 cygwin* | mingw* | pw32*)
13434   version_type=windows
13435   shrext_cmds=".dll"
13436   need_version=no
13437   need_lib_prefix=no
13438
13439   case $GCC,$host_os in
13440   yes,cygwin* | yes,mingw* | yes,pw32*)
13441     library_names_spec='$libname.dll.a'
13442     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13443     postinstall_cmds='base_file=`basename \${file}`~
13444       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13445       dldir=$destdir/`dirname \$dlpath`~
13446       test -d \$dldir || mkdir -p \$dldir~
13447       $install_prog $dir/$dlname \$dldir/$dlname~
13448       chmod a+x \$dldir/$dlname'
13449     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13450       dlpath=$dir/\$dldll~
13451        $rm \$dlpath'
13452     shlibpath_overrides_runpath=yes
13453
13454     case $host_os in
13455     cygwin*)
13456       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13457       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13458       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13459       ;;
13460     mingw*)
13461       # MinGW DLLs use traditional 'lib' prefix
13462       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13463       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13464       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13465         # It is most probably a Windows format PATH printed by
13466         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13467         # path with ; separators, and with drive letters. We can handle the
13468         # drive letters (cygwin fileutils understands them), so leave them,
13469         # especially as we might pass files found there to a mingw objdump,
13470         # which wouldn't understand a cygwinified path. Ahh.
13471         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13472       else
13473         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13474       fi
13475       ;;
13476     pw32*)
13477       # pw32 DLLs use 'pw' prefix rather than 'lib'
13478       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13479       ;;
13480     esac
13481     ;;
13482
13483   *)
13484     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13485     ;;
13486   esac
13487   dynamic_linker='Win32 ld.exe'
13488   # FIXME: first we should search . and the directory the executable is in
13489   shlibpath_var=PATH
13490   ;;
13491
13492 darwin* | rhapsody*)
13493   dynamic_linker="$host_os dyld"
13494   version_type=darwin
13495   need_lib_prefix=no
13496   need_version=no
13497   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13498   soname_spec='${libname}${release}${major}$shared_ext'
13499   shlibpath_overrides_runpath=yes
13500   shlibpath_var=DYLD_LIBRARY_PATH
13501   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13502   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13503   if test "$GCC" = yes; then
13504     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"`
13505   else
13506     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13507   fi
13508   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13509   ;;
13510
13511 dgux*)
13512   version_type=linux
13513   need_lib_prefix=no
13514   need_version=no
13515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13516   soname_spec='${libname}${release}${shared_ext}$major'
13517   shlibpath_var=LD_LIBRARY_PATH
13518   ;;
13519
13520 freebsd1*)
13521   dynamic_linker=no
13522   ;;
13523
13524 freebsd* | dragonfly*)
13525   # DragonFly does not have aout.  When/if they implement a new
13526   # versioning mechanism, adjust this.
13527   if test -x /usr/bin/objformat; then
13528     objformat=`/usr/bin/objformat`
13529   else
13530     case $host_os in
13531     freebsd[123]*) objformat=aout ;;
13532     *) objformat=elf ;;
13533     esac
13534   fi
13535   version_type=freebsd-$objformat
13536   case $version_type in
13537     freebsd-elf*)
13538       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13539       need_version=no
13540       need_lib_prefix=no
13541       ;;
13542     freebsd-*)
13543       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13544       need_version=yes
13545       ;;
13546   esac
13547   shlibpath_var=LD_LIBRARY_PATH
13548   case $host_os in
13549   freebsd2*)
13550     shlibpath_overrides_runpath=yes
13551     ;;
13552   freebsd3.[01]* | freebsdelf3.[01]*)
13553     shlibpath_overrides_runpath=yes
13554     hardcode_into_libs=yes
13555     ;;
13556   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13557   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13558     shlibpath_overrides_runpath=no
13559     hardcode_into_libs=yes
13560     ;;
13561   freebsd*) # from 4.6 on
13562     shlibpath_overrides_runpath=yes
13563     hardcode_into_libs=yes
13564     ;;
13565   esac
13566   ;;
13567
13568 gnu*)
13569   version_type=linux
13570   need_lib_prefix=no
13571   need_version=no
13572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13573   soname_spec='${libname}${release}${shared_ext}$major'
13574   shlibpath_var=LD_LIBRARY_PATH
13575   hardcode_into_libs=yes
13576   ;;
13577
13578 hpux9* | hpux10* | hpux11*)
13579   # Give a soname corresponding to the major version so that dld.sl refuses to
13580   # link against other versions.
13581   version_type=sunos
13582   need_lib_prefix=no
13583   need_version=no
13584   case $host_cpu in
13585   ia64*)
13586     shrext_cmds='.so'
13587     hardcode_into_libs=yes
13588     dynamic_linker="$host_os dld.so"
13589     shlibpath_var=LD_LIBRARY_PATH
13590     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592     soname_spec='${libname}${release}${shared_ext}$major'
13593     if test "X$HPUX_IA64_MODE" = X32; then
13594       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13595     else
13596       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13597     fi
13598     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13599     ;;
13600    hppa*64*)
13601      shrext_cmds='.sl'
13602      hardcode_into_libs=yes
13603      dynamic_linker="$host_os dld.sl"
13604      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13605      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13606      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607      soname_spec='${libname}${release}${shared_ext}$major'
13608      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13609      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13610      ;;
13611    *)
13612     shrext_cmds='.sl'
13613     dynamic_linker="$host_os dld.sl"
13614     shlibpath_var=SHLIB_PATH
13615     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617     soname_spec='${libname}${release}${shared_ext}$major'
13618     ;;
13619   esac
13620   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13621   postinstall_cmds='chmod 555 $lib'
13622   ;;
13623
13624 interix3*)
13625   version_type=linux
13626   need_lib_prefix=no
13627   need_version=no
13628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629   soname_spec='${libname}${release}${shared_ext}$major'
13630   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13631   shlibpath_var=LD_LIBRARY_PATH
13632   shlibpath_overrides_runpath=no
13633   hardcode_into_libs=yes
13634   ;;
13635
13636 irix5* | irix6* | nonstopux*)
13637   case $host_os in
13638     nonstopux*) version_type=nonstopux ;;
13639     *)
13640         if test "$lt_cv_prog_gnu_ld" = yes; then
13641                 version_type=linux
13642         else
13643                 version_type=irix
13644         fi ;;
13645   esac
13646   need_lib_prefix=no
13647   need_version=no
13648   soname_spec='${libname}${release}${shared_ext}$major'
13649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13650   case $host_os in
13651   irix5* | nonstopux*)
13652     libsuff= shlibsuff=
13653     ;;
13654   *)
13655     case $LD in # libtool.m4 will add one of these switches to LD
13656     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13657       libsuff= shlibsuff= libmagic=32-bit;;
13658     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13659       libsuff=32 shlibsuff=N32 libmagic=N32;;
13660     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13661       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13662     *) libsuff= shlibsuff= libmagic=never-match;;
13663     esac
13664     ;;
13665   esac
13666   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13667   shlibpath_overrides_runpath=no
13668   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13669   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13670   hardcode_into_libs=yes
13671   ;;
13672
13673 # No shared lib support for Linux oldld, aout, or coff.
13674 linux*oldld* | linux*aout* | linux*coff*)
13675   dynamic_linker=no
13676   ;;
13677
13678 # This must be Linux ELF.
13679 linux* | k*bsd*-gnu)
13680   version_type=linux
13681   need_lib_prefix=no
13682   need_version=no
13683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   shlibpath_overrides_runpath=no
13688   # This implies no fast_install, which is unacceptable.
13689   # Some rework will be needed to allow for fast_install
13690   # before this can be enabled.
13691   hardcode_into_libs=yes
13692
13693   # Append ld.so.conf contents to the search path
13694   if test -f /etc/ld.so.conf; then
13695     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' ' '`
13696     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13697   fi
13698
13699   # We used to test for /lib/ld.so.1 and disable shared libraries on
13700   # powerpc, because MkLinux only supported shared libraries with the
13701   # GNU dynamic linker.  Since this was broken with cross compilers,
13702   # most powerpc-linux boxes support dynamic linking these days and
13703   # people can always --disable-shared, the test was removed, and we
13704   # assume the GNU/Linux dynamic linker is in use.
13705   dynamic_linker='GNU/Linux ld.so'
13706   ;;
13707
13708 netbsdelf*-gnu)
13709   version_type=linux
13710   need_lib_prefix=no
13711   need_version=no
13712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13713   soname_spec='${libname}${release}${shared_ext}$major'
13714   shlibpath_var=LD_LIBRARY_PATH
13715   shlibpath_overrides_runpath=no
13716   hardcode_into_libs=yes
13717   dynamic_linker='NetBSD ld.elf_so'
13718   ;;
13719
13720 netbsd*)
13721   version_type=sunos
13722   need_lib_prefix=no
13723   need_version=no
13724   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13726     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13727     dynamic_linker='NetBSD (a.out) ld.so'
13728   else
13729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13730     soname_spec='${libname}${release}${shared_ext}$major'
13731     dynamic_linker='NetBSD ld.elf_so'
13732   fi
13733   shlibpath_var=LD_LIBRARY_PATH
13734   shlibpath_overrides_runpath=yes
13735   hardcode_into_libs=yes
13736   ;;
13737
13738 newsos6)
13739   version_type=linux
13740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741   shlibpath_var=LD_LIBRARY_PATH
13742   shlibpath_overrides_runpath=yes
13743   ;;
13744
13745 nto-qnx*)
13746   version_type=linux
13747   need_lib_prefix=no
13748   need_version=no
13749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750   soname_spec='${libname}${release}${shared_ext}$major'
13751   shlibpath_var=LD_LIBRARY_PATH
13752   shlibpath_overrides_runpath=yes
13753   ;;
13754
13755 openbsd*)
13756   version_type=sunos
13757   sys_lib_dlsearch_path_spec="/usr/lib"
13758   need_lib_prefix=no
13759   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13760   case $host_os in
13761     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13762     *)                         need_version=no  ;;
13763   esac
13764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13765   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13766   shlibpath_var=LD_LIBRARY_PATH
13767   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13768     case $host_os in
13769       openbsd2.[89] | openbsd2.[89].*)
13770         shlibpath_overrides_runpath=no
13771         ;;
13772       *)
13773         shlibpath_overrides_runpath=yes
13774         ;;
13775       esac
13776   else
13777     shlibpath_overrides_runpath=yes
13778   fi
13779   ;;
13780
13781 os2*)
13782   libname_spec='$name'
13783   shrext_cmds=".dll"
13784   need_lib_prefix=no
13785   library_names_spec='$libname${shared_ext} $libname.a'
13786   dynamic_linker='OS/2 ld.exe'
13787   shlibpath_var=LIBPATH
13788   ;;
13789
13790 osf3* | osf4* | osf5*)
13791   version_type=osf
13792   need_lib_prefix=no
13793   need_version=no
13794   soname_spec='${libname}${release}${shared_ext}$major'
13795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13796   shlibpath_var=LD_LIBRARY_PATH
13797   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13798   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13799   ;;
13800
13801 solaris*)
13802   version_type=linux
13803   need_lib_prefix=no
13804   need_version=no
13805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806   soname_spec='${libname}${release}${shared_ext}$major'
13807   shlibpath_var=LD_LIBRARY_PATH
13808   shlibpath_overrides_runpath=yes
13809   hardcode_into_libs=yes
13810   # ldd complains unless libraries are executable
13811   postinstall_cmds='chmod +x $lib'
13812   ;;
13813
13814 sunos4*)
13815   version_type=sunos
13816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13817   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13818   shlibpath_var=LD_LIBRARY_PATH
13819   shlibpath_overrides_runpath=yes
13820   if test "$with_gnu_ld" = yes; then
13821     need_lib_prefix=no
13822   fi
13823   need_version=yes
13824   ;;
13825
13826 sysv4 | sysv4.3*)
13827   version_type=linux
13828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829   soname_spec='${libname}${release}${shared_ext}$major'
13830   shlibpath_var=LD_LIBRARY_PATH
13831   case $host_vendor in
13832     sni)
13833       shlibpath_overrides_runpath=no
13834       need_lib_prefix=no
13835       export_dynamic_flag_spec='${wl}-Blargedynsym'
13836       runpath_var=LD_RUN_PATH
13837       ;;
13838     siemens)
13839       need_lib_prefix=no
13840       ;;
13841     motorola)
13842       need_lib_prefix=no
13843       need_version=no
13844       shlibpath_overrides_runpath=no
13845       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13846       ;;
13847   esac
13848   ;;
13849
13850 sysv4*MP*)
13851   if test -d /usr/nec ;then
13852     version_type=linux
13853     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13854     soname_spec='$libname${shared_ext}.$major'
13855     shlibpath_var=LD_LIBRARY_PATH
13856   fi
13857   ;;
13858
13859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13860   version_type=freebsd-elf
13861   need_lib_prefix=no
13862   need_version=no
13863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13864   soname_spec='${libname}${release}${shared_ext}$major'
13865   shlibpath_var=LD_LIBRARY_PATH
13866   hardcode_into_libs=yes
13867   if test "$with_gnu_ld" = yes; then
13868     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13869     shlibpath_overrides_runpath=no
13870   else
13871     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13872     shlibpath_overrides_runpath=yes
13873     case $host_os in
13874       sco3.2v5*)
13875         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13876         ;;
13877     esac
13878   fi
13879   sys_lib_dlsearch_path_spec='/usr/lib'
13880   ;;
13881
13882 uts4*)
13883   version_type=linux
13884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885   soname_spec='${libname}${release}${shared_ext}$major'
13886   shlibpath_var=LD_LIBRARY_PATH
13887   ;;
13888
13889 *)
13890   dynamic_linker=no
13891   ;;
13892 esac
13893 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13894 echo "${ECHO_T}$dynamic_linker" >&6; }
13895 test "$dynamic_linker" = no && can_build_shared=no
13896
13897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13898 if test "$GCC" = yes; then
13899   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13900 fi
13901
13902 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13903 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13904 hardcode_action_CXX=
13905 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13906    test -n "$runpath_var_CXX" || \
13907    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13908
13909   # We can hardcode non-existant directories.
13910   if test "$hardcode_direct_CXX" != no &&
13911      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13912      # have to relink, otherwise we might link with an installed library
13913      # when we should be linking with a yet-to-be-installed one
13914      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13915      test "$hardcode_minus_L_CXX" != no; then
13916     # Linking always hardcodes the temporary library directory.
13917     hardcode_action_CXX=relink
13918   else
13919     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13920     hardcode_action_CXX=immediate
13921   fi
13922 else
13923   # We cannot hardcode anything, or else we can only hardcode existing
13924   # directories.
13925   hardcode_action_CXX=unsupported
13926 fi
13927 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13928 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13929
13930 if test "$hardcode_action_CXX" = relink; then
13931   # Fast installation is not supported
13932   enable_fast_install=no
13933 elif test "$shlibpath_overrides_runpath" = yes ||
13934      test "$enable_shared" = no; then
13935   # Fast installation is not necessary
13936   enable_fast_install=needless
13937 fi
13938
13939
13940 # The else clause should only fire when bootstrapping the
13941 # libtool distribution, otherwise you forgot to ship ltmain.sh
13942 # with your package, and you will get complaints that there are
13943 # no rules to generate ltmain.sh.
13944 if test -f "$ltmain"; then
13945   # See if we are running on zsh, and set the options which allow our commands through
13946   # without removal of \ escapes.
13947   if test -n "${ZSH_VERSION+set}" ; then
13948     setopt NO_GLOB_SUBST
13949   fi
13950   # Now quote all the things that may contain metacharacters while being
13951   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13952   # variables and quote the copies for generation of the libtool script.
13953   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13954     SED SHELL STRIP \
13955     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13956     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13957     deplibs_check_method reload_flag reload_cmds need_locks \
13958     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13959     lt_cv_sys_global_symbol_to_c_name_address \
13960     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13961     old_postinstall_cmds old_postuninstall_cmds \
13962     compiler_CXX \
13963     CC_CXX \
13964     LD_CXX \
13965     lt_prog_compiler_wl_CXX \
13966     lt_prog_compiler_pic_CXX \
13967     lt_prog_compiler_static_CXX \
13968     lt_prog_compiler_no_builtin_flag_CXX \
13969     export_dynamic_flag_spec_CXX \
13970     thread_safe_flag_spec_CXX \
13971     whole_archive_flag_spec_CXX \
13972     enable_shared_with_static_runtimes_CXX \
13973     old_archive_cmds_CXX \
13974     old_archive_from_new_cmds_CXX \
13975     predep_objects_CXX \
13976     postdep_objects_CXX \
13977     predeps_CXX \
13978     postdeps_CXX \
13979     compiler_lib_search_path_CXX \
13980     archive_cmds_CXX \
13981     archive_expsym_cmds_CXX \
13982     postinstall_cmds_CXX \
13983     postuninstall_cmds_CXX \
13984     old_archive_from_expsyms_cmds_CXX \
13985     allow_undefined_flag_CXX \
13986     no_undefined_flag_CXX \
13987     export_symbols_cmds_CXX \
13988     hardcode_libdir_flag_spec_CXX \
13989     hardcode_libdir_flag_spec_ld_CXX \
13990     hardcode_libdir_separator_CXX \
13991     hardcode_automatic_CXX \
13992     module_cmds_CXX \
13993     module_expsym_cmds_CXX \
13994     lt_cv_prog_compiler_c_o_CXX \
13995     exclude_expsyms_CXX \
13996     include_expsyms_CXX; do
13997
13998     case $var in
13999     old_archive_cmds_CXX | \
14000     old_archive_from_new_cmds_CXX | \
14001     archive_cmds_CXX | \
14002     archive_expsym_cmds_CXX | \
14003     module_cmds_CXX | \
14004     module_expsym_cmds_CXX | \
14005     old_archive_from_expsyms_cmds_CXX | \
14006     export_symbols_cmds_CXX | \
14007     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14008     postinstall_cmds | postuninstall_cmds | \
14009     old_postinstall_cmds | old_postuninstall_cmds | \
14010     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14011       # Double-quote double-evaled strings.
14012       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14013       ;;
14014     *)
14015       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14016       ;;
14017     esac
14018   done
14019
14020   case $lt_echo in
14021   *'\$0 --fallback-echo"')
14022     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14023     ;;
14024   esac
14025
14026 cfgfile="$ofile"
14027
14028   cat <<__EOF__ >> "$cfgfile"
14029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14030
14031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14032
14033 # Shell to use when invoking shell scripts.
14034 SHELL=$lt_SHELL
14035
14036 # Whether or not to build shared libraries.
14037 build_libtool_libs=$enable_shared
14038
14039 # Whether or not to build static libraries.
14040 build_old_libs=$enable_static
14041
14042 # Whether or not to add -lc for building shared libraries.
14043 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14044
14045 # Whether or not to disallow shared libs when runtime libs are static
14046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14047
14048 # Whether or not to optimize for fast installation.
14049 fast_install=$enable_fast_install
14050
14051 # The host system.
14052 host_alias=$host_alias
14053 host=$host
14054 host_os=$host_os
14055
14056 # The build system.
14057 build_alias=$build_alias
14058 build=$build
14059 build_os=$build_os
14060
14061 # An echo program that does not interpret backslashes.
14062 echo=$lt_echo
14063
14064 # The archiver.
14065 AR=$lt_AR
14066 AR_FLAGS=$lt_AR_FLAGS
14067
14068 # A C compiler.
14069 LTCC=$lt_LTCC
14070
14071 # LTCC compiler flags.
14072 LTCFLAGS=$lt_LTCFLAGS
14073
14074 # A language-specific compiler.
14075 CC=$lt_compiler_CXX
14076
14077 # Is the compiler the GNU C compiler?
14078 with_gcc=$GCC_CXX
14079
14080 # An ERE matcher.
14081 EGREP=$lt_EGREP
14082
14083 # The linker used to build libraries.
14084 LD=$lt_LD_CXX
14085
14086 # Whether we need hard or soft links.
14087 LN_S=$lt_LN_S
14088
14089 # A BSD-compatible nm program.
14090 NM=$lt_NM
14091
14092 # A symbol stripping program
14093 STRIP=$lt_STRIP
14094
14095 # Used to examine libraries when file_magic_cmd begins "file"
14096 MAGIC_CMD=$MAGIC_CMD
14097
14098 # Used on cygwin: DLL creation program.
14099 DLLTOOL="$DLLTOOL"
14100
14101 # Used on cygwin: object dumper.
14102 OBJDUMP="$OBJDUMP"
14103
14104 # Used on cygwin: assembler.
14105 AS="$AS"
14106
14107 # The name of the directory that contains temporary libtool files.
14108 objdir=$objdir
14109
14110 # How to create reloadable object files.
14111 reload_flag=$lt_reload_flag
14112 reload_cmds=$lt_reload_cmds
14113
14114 # How to pass a linker flag through the compiler.
14115 wl=$lt_lt_prog_compiler_wl_CXX
14116
14117 # Object file suffix (normally "o").
14118 objext="$ac_objext"
14119
14120 # Old archive suffix (normally "a").
14121 libext="$libext"
14122
14123 # Shared library suffix (normally ".so").
14124 shrext_cmds='$shrext_cmds'
14125
14126 # Executable file suffix (normally "").
14127 exeext="$exeext"
14128
14129 # Additional compiler flags for building library objects.
14130 pic_flag=$lt_lt_prog_compiler_pic_CXX
14131 pic_mode=$pic_mode
14132
14133 # What is the maximum length of a command?
14134 max_cmd_len=$lt_cv_sys_max_cmd_len
14135
14136 # Does compiler simultaneously support -c and -o options?
14137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14138
14139 # Must we lock files when doing compilation?
14140 need_locks=$lt_need_locks
14141
14142 # Do we need the lib prefix for modules?
14143 need_lib_prefix=$need_lib_prefix
14144
14145 # Do we need a version for libraries?
14146 need_version=$need_version
14147
14148 # Whether dlopen is supported.
14149 dlopen_support=$enable_dlopen
14150
14151 # Whether dlopen of programs is supported.
14152 dlopen_self=$enable_dlopen_self
14153
14154 # Whether dlopen of statically linked programs is supported.
14155 dlopen_self_static=$enable_dlopen_self_static
14156
14157 # Compiler flag to prevent dynamic linking.
14158 link_static_flag=$lt_lt_prog_compiler_static_CXX
14159
14160 # Compiler flag to turn off builtin functions.
14161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14162
14163 # Compiler flag to allow reflexive dlopens.
14164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14165
14166 # Compiler flag to generate shared objects directly from archives.
14167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14168
14169 # Compiler flag to generate thread-safe objects.
14170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14171
14172 # Library versioning type.
14173 version_type=$version_type
14174
14175 # Format of library name prefix.
14176 libname_spec=$lt_libname_spec
14177
14178 # List of archive names.  First name is the real one, the rest are links.
14179 # The last name is the one that the linker finds with -lNAME.
14180 library_names_spec=$lt_library_names_spec
14181
14182 # The coded name of the library, if different from the real name.
14183 soname_spec=$lt_soname_spec
14184
14185 # Commands used to build and install an old-style archive.
14186 RANLIB=$lt_RANLIB
14187 old_archive_cmds=$lt_old_archive_cmds_CXX
14188 old_postinstall_cmds=$lt_old_postinstall_cmds
14189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14190
14191 # Create an old-style archive from a shared archive.
14192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14193
14194 # Create a temporary old-style archive to link instead of a shared archive.
14195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14196
14197 # Commands used to build and install a shared archive.
14198 archive_cmds=$lt_archive_cmds_CXX
14199 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14200 postinstall_cmds=$lt_postinstall_cmds
14201 postuninstall_cmds=$lt_postuninstall_cmds
14202
14203 # Commands used to build a loadable module (assumed same as above if empty)
14204 module_cmds=$lt_module_cmds_CXX
14205 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14206
14207 # Commands to strip libraries.
14208 old_striplib=$lt_old_striplib
14209 striplib=$lt_striplib
14210
14211 # Dependencies to place before the objects being linked to create a
14212 # shared library.
14213 predep_objects=$lt_predep_objects_CXX
14214
14215 # Dependencies to place after the objects being linked to create a
14216 # shared library.
14217 postdep_objects=$lt_postdep_objects_CXX
14218
14219 # Dependencies to place before the objects being linked to create a
14220 # shared library.
14221 predeps=$lt_predeps_CXX
14222
14223 # Dependencies to place after the objects being linked to create a
14224 # shared library.
14225 postdeps=$lt_postdeps_CXX
14226
14227 # The library search path used internally by the compiler when linking
14228 # a shared library.
14229 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14230
14231 # Method to check whether dependent libraries are shared objects.
14232 deplibs_check_method=$lt_deplibs_check_method
14233
14234 # Command to use when deplibs_check_method == file_magic.
14235 file_magic_cmd=$lt_file_magic_cmd
14236
14237 # Flag that allows shared libraries with undefined symbols to be built.
14238 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14239
14240 # Flag that forces no undefined symbols.
14241 no_undefined_flag=$lt_no_undefined_flag_CXX
14242
14243 # Commands used to finish a libtool library installation in a directory.
14244 finish_cmds=$lt_finish_cmds
14245
14246 # Same as above, but a single script fragment to be evaled but not shown.
14247 finish_eval=$lt_finish_eval
14248
14249 # Take the output of nm and produce a listing of raw symbols and C names.
14250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14251
14252 # Transform the output of nm in a proper C declaration
14253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14254
14255 # Transform the output of nm in a C name address pair
14256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14257
14258 # This is the shared library runtime path variable.
14259 runpath_var=$runpath_var
14260
14261 # This is the shared library path variable.
14262 shlibpath_var=$shlibpath_var
14263
14264 # Is shlibpath searched before the hard-coded library search path?
14265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14266
14267 # How to hardcode a shared library path into an executable.
14268 hardcode_action=$hardcode_action_CXX
14269
14270 # Whether we should hardcode library paths into libraries.
14271 hardcode_into_libs=$hardcode_into_libs
14272
14273 # Flag to hardcode \$libdir into a binary during linking.
14274 # This must work even if \$libdir does not exist.
14275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14276
14277 # If ld is used when linking, flag to hardcode \$libdir into
14278 # a binary during linking. This must work even if \$libdir does
14279 # not exist.
14280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14281
14282 # Whether we need a single -rpath flag with a separated argument.
14283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14284
14285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14286 # resulting binary.
14287 hardcode_direct=$hardcode_direct_CXX
14288
14289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14290 # resulting binary.
14291 hardcode_minus_L=$hardcode_minus_L_CXX
14292
14293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14294 # the resulting binary.
14295 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14296
14297 # Set to yes if building a shared library automatically hardcodes DIR into the library
14298 # and all subsequent libraries and executables linked against it.
14299 hardcode_automatic=$hardcode_automatic_CXX
14300
14301 # Variables whose values should be saved in libtool wrapper scripts and
14302 # restored at relink time.
14303 variables_saved_for_relink="$variables_saved_for_relink"
14304
14305 # Whether libtool must link a program against all its dependency libraries.
14306 link_all_deplibs=$link_all_deplibs_CXX
14307
14308 # Compile-time system search path for libraries
14309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14310
14311 # Run-time system search path for libraries
14312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14313
14314 # Fix the shell variable \$srcfile for the compiler.
14315 fix_srcfile_path="$fix_srcfile_path_CXX"
14316
14317 # Set to yes if exported symbols are required.
14318 always_export_symbols=$always_export_symbols_CXX
14319
14320 # The commands to list exported symbols.
14321 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14322
14323 # The commands to extract the exported symbol list from a shared archive.
14324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14325
14326 # Symbols that should not be listed in the preloaded symbols.
14327 exclude_expsyms=$lt_exclude_expsyms_CXX
14328
14329 # Symbols that must always be exported.
14330 include_expsyms=$lt_include_expsyms_CXX
14331
14332 # ### END LIBTOOL TAG CONFIG: $tagname
14333
14334 __EOF__
14335
14336
14337 else
14338   # If there is no Makefile yet, we rely on a make rule to execute
14339   # `config.status --recheck' to rerun these tests and create the
14340   # libtool script then.
14341   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14342   if test -f "$ltmain_in"; then
14343     test -f Makefile && make "$ltmain"
14344   fi
14345 fi
14346
14347
14348 ac_ext=c
14349 ac_cpp='$CPP $CPPFLAGS'
14350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14353
14354 CC=$lt_save_CC
14355 LDCXX=$LD
14356 LD=$lt_save_LD
14357 GCC=$lt_save_GCC
14358 with_gnu_ldcxx=$with_gnu_ld
14359 with_gnu_ld=$lt_save_with_gnu_ld
14360 lt_cv_path_LDCXX=$lt_cv_path_LD
14361 lt_cv_path_LD=$lt_save_path_LD
14362 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14363 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14364
14365         else
14366           tagname=""
14367         fi
14368         ;;
14369
14370       F77)
14371         if test -n "$F77" && test "X$F77" != "Xno"; then
14372
14373 ac_ext=f
14374 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14375 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14377
14378
14379 archive_cmds_need_lc_F77=no
14380 allow_undefined_flag_F77=
14381 always_export_symbols_F77=no
14382 archive_expsym_cmds_F77=
14383 export_dynamic_flag_spec_F77=
14384 hardcode_direct_F77=no
14385 hardcode_libdir_flag_spec_F77=
14386 hardcode_libdir_flag_spec_ld_F77=
14387 hardcode_libdir_separator_F77=
14388 hardcode_minus_L_F77=no
14389 hardcode_automatic_F77=no
14390 module_cmds_F77=
14391 module_expsym_cmds_F77=
14392 link_all_deplibs_F77=unknown
14393 old_archive_cmds_F77=$old_archive_cmds
14394 no_undefined_flag_F77=
14395 whole_archive_flag_spec_F77=
14396 enable_shared_with_static_runtimes_F77=no
14397
14398 # Source file extension for f77 test sources.
14399 ac_ext=f
14400
14401 # Object file extension for compiled f77 test sources.
14402 objext=o
14403 objext_F77=$objext
14404
14405 # Code to be used in simple compile tests
14406 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14407
14408 # Code to be used in simple link tests
14409 lt_simple_link_test_code="      program t\n      end\n"
14410
14411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14412
14413 # If no C compiler was specified, use CC.
14414 LTCC=${LTCC-"$CC"}
14415
14416 # If no C compiler flags were specified, use CFLAGS.
14417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14418
14419 # Allow CC to be a program name with arguments.
14420 compiler=$CC
14421
14422
14423 # save warnings/boilerplate of simple test code
14424 ac_outfile=conftest.$ac_objext
14425 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14427 _lt_compiler_boilerplate=`cat conftest.err`
14428 $rm conftest*
14429
14430 ac_outfile=conftest.$ac_objext
14431 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14433 _lt_linker_boilerplate=`cat conftest.err`
14434 $rm conftest*
14435
14436
14437 # Allow CC to be a program name with arguments.
14438 lt_save_CC="$CC"
14439 CC=${F77-"f77"}
14440 compiler=$CC
14441 compiler_F77=$CC
14442 for cc_temp in $compiler""; do
14443   case $cc_temp in
14444     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14445     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14446     \-*) ;;
14447     *) break;;
14448   esac
14449 done
14450 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14451
14452
14453 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14454 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14455 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14456 echo "${ECHO_T}$can_build_shared" >&6; }
14457
14458 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14459 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14460 test "$can_build_shared" = "no" && enable_shared=no
14461
14462 # On AIX, shared libraries and static libraries use the same namespace, and
14463 # are all built from PIC.
14464 case $host_os in
14465 aix3*)
14466   test "$enable_shared" = yes && enable_static=no
14467   if test -n "$RANLIB"; then
14468     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14469     postinstall_cmds='$RANLIB $lib'
14470   fi
14471   ;;
14472 aix4* | aix5*)
14473   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14474     test "$enable_shared" = yes && enable_static=no
14475   fi
14476   ;;
14477 esac
14478 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14479 echo "${ECHO_T}$enable_shared" >&6; }
14480
14481 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14482 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14483 # Make sure either enable_shared or enable_static is yes.
14484 test "$enable_shared" = yes || enable_static=yes
14485 { echo "$as_me:$LINENO: result: $enable_static" >&5
14486 echo "${ECHO_T}$enable_static" >&6; }
14487
14488 GCC_F77="$G77"
14489 LD_F77="$LD"
14490
14491 lt_prog_compiler_wl_F77=
14492 lt_prog_compiler_pic_F77=
14493 lt_prog_compiler_static_F77=
14494
14495 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14497
14498   if test "$GCC" = yes; then
14499     lt_prog_compiler_wl_F77='-Wl,'
14500     lt_prog_compiler_static_F77='-static'
14501
14502     case $host_os in
14503       aix*)
14504       # All AIX code is PIC.
14505       if test "$host_cpu" = ia64; then
14506         # AIX 5 now supports IA64 processor
14507         lt_prog_compiler_static_F77='-Bstatic'
14508       fi
14509       ;;
14510
14511     amigaos*)
14512       # FIXME: we need at least 68020 code to build shared libraries, but
14513       # adding the `-m68020' flag to GCC prevents building anything better,
14514       # like `-m68040'.
14515       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14516       ;;
14517
14518     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14519       # PIC is the default for these OSes.
14520       ;;
14521
14522     mingw* | pw32* | os2*)
14523       # This hack is so that the source file can tell whether it is being
14524       # built for inclusion in a dll (and should export symbols for example).
14525       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14526       ;;
14527
14528     darwin* | rhapsody*)
14529       # PIC is the default on this platform
14530       # Common symbols not allowed in MH_DYLIB files
14531       lt_prog_compiler_pic_F77='-fno-common'
14532       ;;
14533
14534     interix3*)
14535       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14536       # Instead, we relocate shared libraries at runtime.
14537       ;;
14538
14539     msdosdjgpp*)
14540       # Just because we use GCC doesn't mean we suddenly get shared libraries
14541       # on systems that don't support them.
14542       lt_prog_compiler_can_build_shared_F77=no
14543       enable_shared=no
14544       ;;
14545
14546     sysv4*MP*)
14547       if test -d /usr/nec; then
14548         lt_prog_compiler_pic_F77=-Kconform_pic
14549       fi
14550       ;;
14551
14552     hpux*)
14553       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14554       # not for PA HP-UX.
14555       case $host_cpu in
14556       hppa*64*|ia64*)
14557         # +Z the default
14558         ;;
14559       *)
14560         lt_prog_compiler_pic_F77='-fPIC'
14561         ;;
14562       esac
14563       ;;
14564
14565     *)
14566       lt_prog_compiler_pic_F77='-fPIC'
14567       ;;
14568     esac
14569   else
14570     # PORTME Check for flag to pass linker flags through the system compiler.
14571     case $host_os in
14572     aix*)
14573       lt_prog_compiler_wl_F77='-Wl,'
14574       if test "$host_cpu" = ia64; then
14575         # AIX 5 now supports IA64 processor
14576         lt_prog_compiler_static_F77='-Bstatic'
14577       else
14578         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14579       fi
14580       ;;
14581       darwin*)
14582         # PIC is the default on this platform
14583         # Common symbols not allowed in MH_DYLIB files
14584        case $cc_basename in
14585          xlc*)
14586          lt_prog_compiler_pic_F77='-qnocommon'
14587          lt_prog_compiler_wl_F77='-Wl,'
14588          ;;
14589        esac
14590        ;;
14591
14592     mingw* | pw32* | os2*)
14593       # This hack is so that the source file can tell whether it is being
14594       # built for inclusion in a dll (and should export symbols for example).
14595       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14596       ;;
14597
14598     hpux9* | hpux10* | hpux11*)
14599       lt_prog_compiler_wl_F77='-Wl,'
14600       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14601       # not for PA HP-UX.
14602       case $host_cpu in
14603       hppa*64*|ia64*)
14604         # +Z the default
14605         ;;
14606       *)
14607         lt_prog_compiler_pic_F77='+Z'
14608         ;;
14609       esac
14610       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14611       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14612       ;;
14613
14614     irix5* | irix6* | nonstopux*)
14615       lt_prog_compiler_wl_F77='-Wl,'
14616       # PIC (with -KPIC) is the default.
14617       lt_prog_compiler_static_F77='-non_shared'
14618       ;;
14619
14620     newsos6)
14621       lt_prog_compiler_pic_F77='-KPIC'
14622       lt_prog_compiler_static_F77='-Bstatic'
14623       ;;
14624
14625     linux* | k*bsd*-gnu)
14626       case $cc_basename in
14627       icc* | ecc*)
14628         lt_prog_compiler_wl_F77='-Wl,'
14629         lt_prog_compiler_pic_F77='-KPIC'
14630         lt_prog_compiler_static_F77='-static'
14631         ;;
14632       pgcc* | pgf77* | pgf90* | pgf95*)
14633         # Portland Group compilers (*not* the Pentium gcc compiler,
14634         # which looks to be a dead project)
14635         lt_prog_compiler_wl_F77='-Wl,'
14636         lt_prog_compiler_pic_F77='-fpic'
14637         lt_prog_compiler_static_F77='-Bstatic'
14638         ;;
14639       ccc*)
14640         lt_prog_compiler_wl_F77='-Wl,'
14641         # All Alpha code is PIC.
14642         lt_prog_compiler_static_F77='-non_shared'
14643         ;;
14644       esac
14645       ;;
14646
14647     osf3* | osf4* | osf5*)
14648       lt_prog_compiler_wl_F77='-Wl,'
14649       # All OSF/1 code is PIC.
14650       lt_prog_compiler_static_F77='-non_shared'
14651       ;;
14652
14653     solaris*)
14654       lt_prog_compiler_pic_F77='-KPIC'
14655       lt_prog_compiler_static_F77='-Bstatic'
14656       case $cc_basename in
14657       f77* | f90* | f95*)
14658         lt_prog_compiler_wl_F77='-Qoption ld ';;
14659       *)
14660         lt_prog_compiler_wl_F77='-Wl,';;
14661       esac
14662       ;;
14663
14664     sunos4*)
14665       lt_prog_compiler_wl_F77='-Qoption ld '
14666       lt_prog_compiler_pic_F77='-PIC'
14667       lt_prog_compiler_static_F77='-Bstatic'
14668       ;;
14669
14670     sysv4 | sysv4.2uw2* | sysv4.3*)
14671       lt_prog_compiler_wl_F77='-Wl,'
14672       lt_prog_compiler_pic_F77='-KPIC'
14673       lt_prog_compiler_static_F77='-Bstatic'
14674       ;;
14675
14676     sysv4*MP*)
14677       if test -d /usr/nec ;then
14678         lt_prog_compiler_pic_F77='-Kconform_pic'
14679         lt_prog_compiler_static_F77='-Bstatic'
14680       fi
14681       ;;
14682
14683     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14684       lt_prog_compiler_wl_F77='-Wl,'
14685       lt_prog_compiler_pic_F77='-KPIC'
14686       lt_prog_compiler_static_F77='-Bstatic'
14687       ;;
14688
14689     unicos*)
14690       lt_prog_compiler_wl_F77='-Wl,'
14691       lt_prog_compiler_can_build_shared_F77=no
14692       ;;
14693
14694     uts4*)
14695       lt_prog_compiler_pic_F77='-pic'
14696       lt_prog_compiler_static_F77='-Bstatic'
14697       ;;
14698
14699     *)
14700       lt_prog_compiler_can_build_shared_F77=no
14701       ;;
14702     esac
14703   fi
14704
14705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14706 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14707
14708 #
14709 # Check to make sure the PIC flag actually works.
14710 #
14711 if test -n "$lt_prog_compiler_pic_F77"; then
14712
14713 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14715 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   lt_prog_compiler_pic_works_F77=no
14719   ac_outfile=conftest.$ac_objext
14720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14721    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14722    # Insert the option either (1) after the last *FLAGS variable, or
14723    # (2) before a word containing "conftest.", or (3) at the end.
14724    # Note that $ac_compile itself does not contain backslashes and begins
14725    # with a dollar sign (not a hyphen), so the echo should work correctly.
14726    # The option is referenced via a variable to avoid confusing sed.
14727    lt_compile=`echo "$ac_compile" | $SED \
14728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14730    -e 's:$: $lt_compiler_flag:'`
14731    (eval echo "\"\$as_me:14731: $lt_compile\"" >&5)
14732    (eval "$lt_compile" 2>conftest.err)
14733    ac_status=$?
14734    cat conftest.err >&5
14735    echo "$as_me:14735: \$? = $ac_status" >&5
14736    if (exit $ac_status) && test -s "$ac_outfile"; then
14737      # The compiler can only warn and ignore the option if not recognized
14738      # So say no if there are warnings other than the usual output.
14739      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14740      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14741      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14742        lt_prog_compiler_pic_works_F77=yes
14743      fi
14744    fi
14745    $rm conftest*
14746
14747 fi
14748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14749 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14750
14751 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14752     case $lt_prog_compiler_pic_F77 in
14753      "" | " "*) ;;
14754      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14755      esac
14756 else
14757     lt_prog_compiler_pic_F77=
14758      lt_prog_compiler_can_build_shared_F77=no
14759 fi
14760
14761 fi
14762 case $host_os in
14763   # For platforms which do not support PIC, -DPIC is meaningless:
14764   *djgpp*)
14765     lt_prog_compiler_pic_F77=
14766     ;;
14767   *)
14768     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14769     ;;
14770 esac
14771
14772 #
14773 # Check to make sure the static flag actually works.
14774 #
14775 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14776 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14777 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14778 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   lt_prog_compiler_static_works_F77=no
14782    save_LDFLAGS="$LDFLAGS"
14783    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14784    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14785    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14786      # The linker can only warn and ignore the option if not recognized
14787      # So say no if there are warnings
14788      if test -s conftest.err; then
14789        # Append any errors to the config.log.
14790        cat conftest.err 1>&5
14791        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14792        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14793        if diff conftest.exp conftest.er2 >/dev/null; then
14794          lt_prog_compiler_static_works_F77=yes
14795        fi
14796      else
14797        lt_prog_compiler_static_works_F77=yes
14798      fi
14799    fi
14800    $rm conftest*
14801    LDFLAGS="$save_LDFLAGS"
14802
14803 fi
14804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14805 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14806
14807 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14808     :
14809 else
14810     lt_prog_compiler_static_F77=
14811 fi
14812
14813
14814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14816 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819   lt_cv_prog_compiler_c_o_F77=no
14820    $rm -r conftest 2>/dev/null
14821    mkdir conftest
14822    cd conftest
14823    mkdir out
14824    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14825
14826    lt_compiler_flag="-o out/conftest2.$ac_objext"
14827    # Insert the option either (1) after the last *FLAGS variable, or
14828    # (2) before a word containing "conftest.", or (3) at the end.
14829    # Note that $ac_compile itself does not contain backslashes and begins
14830    # with a dollar sign (not a hyphen), so the echo should work correctly.
14831    lt_compile=`echo "$ac_compile" | $SED \
14832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834    -e 's:$: $lt_compiler_flag:'`
14835    (eval echo "\"\$as_me:14835: $lt_compile\"" >&5)
14836    (eval "$lt_compile" 2>out/conftest.err)
14837    ac_status=$?
14838    cat out/conftest.err >&5
14839    echo "$as_me:14839: \$? = $ac_status" >&5
14840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14841    then
14842      # The compiler can only warn and ignore the option if not recognized
14843      # So say no if there are warnings
14844      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14847        lt_cv_prog_compiler_c_o_F77=yes
14848      fi
14849    fi
14850    chmod u+w . 2>&5
14851    $rm conftest*
14852    # SGI C++ compiler will create directory out/ii_files/ for
14853    # template instantiation
14854    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14855    $rm out/* && rmdir out
14856    cd ..
14857    rmdir conftest
14858    $rm conftest*
14859
14860 fi
14861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14863
14864
14865 hard_links="nottested"
14866 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14867   # do not overwrite the value of need_locks provided by the user
14868   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14870   hard_links=yes
14871   $rm conftest*
14872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14873   touch conftest.a
14874   ln conftest.a conftest.b 2>&5 || hard_links=no
14875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14876   { echo "$as_me:$LINENO: result: $hard_links" >&5
14877 echo "${ECHO_T}$hard_links" >&6; }
14878   if test "$hard_links" = no; then
14879     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14881     need_locks=warn
14882   fi
14883 else
14884   need_locks=no
14885 fi
14886
14887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14889
14890   runpath_var=
14891   allow_undefined_flag_F77=
14892   enable_shared_with_static_runtimes_F77=no
14893   archive_cmds_F77=
14894   archive_expsym_cmds_F77=
14895   old_archive_From_new_cmds_F77=
14896   old_archive_from_expsyms_cmds_F77=
14897   export_dynamic_flag_spec_F77=
14898   whole_archive_flag_spec_F77=
14899   thread_safe_flag_spec_F77=
14900   hardcode_libdir_flag_spec_F77=
14901   hardcode_libdir_flag_spec_ld_F77=
14902   hardcode_libdir_separator_F77=
14903   hardcode_direct_F77=no
14904   hardcode_minus_L_F77=no
14905   hardcode_shlibpath_var_F77=unsupported
14906   link_all_deplibs_F77=unknown
14907   hardcode_automatic_F77=no
14908   module_cmds_F77=
14909   module_expsym_cmds_F77=
14910   always_export_symbols_F77=no
14911   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14912   # include_expsyms should be a list of space-separated symbols to be *always*
14913   # included in the symbol list
14914   include_expsyms_F77=
14915   # exclude_expsyms can be an extended regexp of symbols to exclude
14916   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14917   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14918   # as well as any symbol that contains `d'.
14919   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14920   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14921   # platforms (ab)use it in PIC code, but their linkers get confused if
14922   # the symbol is explicitly referenced.  Since portable code cannot
14923   # rely on this symbol name, it's probably fine to never include it in
14924   # preloaded symbol tables.
14925   extract_expsyms_cmds=
14926   # Just being paranoid about ensuring that cc_basename is set.
14927   for cc_temp in $compiler""; do
14928   case $cc_temp in
14929     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14930     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14931     \-*) ;;
14932     *) break;;
14933   esac
14934 done
14935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14936
14937   case $host_os in
14938   cygwin* | mingw* | pw32*)
14939     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14940     # When not using gcc, we currently assume that we are using
14941     # Microsoft Visual C++.
14942     if test "$GCC" != yes; then
14943       with_gnu_ld=no
14944     fi
14945     ;;
14946   interix*)
14947     # we just hope/assume this is gcc and not c89 (= MSVC++)
14948     with_gnu_ld=yes
14949     ;;
14950   openbsd*)
14951     with_gnu_ld=no
14952     ;;
14953   esac
14954
14955   ld_shlibs_F77=yes
14956   if test "$with_gnu_ld" = yes; then
14957     # If archive_cmds runs LD, not CC, wlarc should be empty
14958     wlarc='${wl}'
14959
14960     # Set some defaults for GNU ld with shared library support. These
14961     # are reset later if shared libraries are not supported. Putting them
14962     # here allows them to be overridden if necessary.
14963     runpath_var=LD_RUN_PATH
14964     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14965     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14966     # ancient GNU ld didn't support --whole-archive et. al.
14967     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14968         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14969       else
14970         whole_archive_flag_spec_F77=
14971     fi
14972     supports_anon_versioning=no
14973     case `$LD -v 2>/dev/null` in
14974       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14975       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14976       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14977       *\ 2.11.*) ;; # other 2.11 versions
14978       *) supports_anon_versioning=yes ;;
14979     esac
14980
14981     # See if GNU ld supports shared libraries.
14982     case $host_os in
14983     aix3* | aix4* | aix5*)
14984       # On AIX/PPC, the GNU linker is very broken
14985       if test "$host_cpu" != ia64; then
14986         ld_shlibs_F77=no
14987         cat <<EOF 1>&2
14988
14989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14990 *** to be unable to reliably create shared libraries on AIX.
14991 *** Therefore, libtool is disabling shared libraries support.  If you
14992 *** really care for shared libraries, you may want to modify your PATH
14993 *** so that a non-GNU linker is found, and then restart.
14994
14995 EOF
14996       fi
14997       ;;
14998
14999     amigaos*)
15000       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)'
15001       hardcode_libdir_flag_spec_F77='-L$libdir'
15002       hardcode_minus_L_F77=yes
15003
15004       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15005       # that the semantics of dynamic libraries on AmigaOS, at least up
15006       # to version 4, is to share data among multiple programs linked
15007       # with the same dynamic library.  Since this doesn't match the
15008       # behavior of shared libraries on other platforms, we can't use
15009       # them.
15010       ld_shlibs_F77=no
15011       ;;
15012
15013     beos*)
15014       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15015         allow_undefined_flag_F77=unsupported
15016         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15017         # support --undefined.  This deserves some investigation.  FIXME
15018         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15019       else
15020         ld_shlibs_F77=no
15021       fi
15022       ;;
15023
15024     cygwin* | mingw* | pw32*)
15025       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15026       # as there is no search path for DLLs.
15027       hardcode_libdir_flag_spec_F77='-L$libdir'
15028       allow_undefined_flag_F77=unsupported
15029       always_export_symbols_F77=no
15030       enable_shared_with_static_runtimes_F77=yes
15031       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15032
15033       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15034         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15035         # If the export-symbols file already is a .def file (1st line
15036         # is EXPORTS), use it as is; otherwise, prepend...
15037         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15038           cp $export_symbols $output_objdir/$soname.def;
15039         else
15040           echo EXPORTS > $output_objdir/$soname.def;
15041           cat $export_symbols >> $output_objdir/$soname.def;
15042         fi~
15043         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15044       else
15045         ld_shlibs_F77=no
15046       fi
15047       ;;
15048
15049     interix3*)
15050       hardcode_direct_F77=no
15051       hardcode_shlibpath_var_F77=no
15052       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15053       export_dynamic_flag_spec_F77='${wl}-E'
15054       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15055       # Instead, shared libraries are loaded at an image base (0x10000000 by
15056       # default) and relocated if they conflict, which is a slow very memory
15057       # consuming and fragmenting process.  To avoid this, we pick a random,
15058       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15059       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15060       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'
15061       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'
15062       ;;
15063
15064     linux* | k*bsd*-gnu)
15065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15066         tmp_addflag=
15067         case $cc_basename,$host_cpu in
15068         pgcc*)                          # Portland Group C compiler
15069           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'
15070           tmp_addflag=' $pic_flag'
15071           ;;
15072         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15073           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'
15074           tmp_addflag=' $pic_flag -Mnomain' ;;
15075         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15076           tmp_addflag=' -i_dynamic' ;;
15077         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15078           tmp_addflag=' -i_dynamic -nofor_main' ;;
15079         ifc* | ifort*)                  # Intel Fortran compiler
15080           tmp_addflag=' -nofor_main' ;;
15081         esac
15082         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15083
15084         if test $supports_anon_versioning = yes; then
15085           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15086   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15087   $echo "local: *; };" >> $output_objdir/$libname.ver~
15088           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15089         fi
15090         link_all_deplibs_F77=no
15091       else
15092         ld_shlibs_F77=no
15093       fi
15094       ;;
15095
15096     netbsd* | netbsdelf*-gnu)
15097       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15098         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15099         wlarc=
15100       else
15101         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15103       fi
15104       ;;
15105
15106     solaris*)
15107       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15108         ld_shlibs_F77=no
15109         cat <<EOF 1>&2
15110
15111 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15112 *** create shared libraries on Solaris systems.  Therefore, libtool
15113 *** is disabling shared libraries support.  We urge you to upgrade GNU
15114 *** binutils to release 2.9.1 or newer.  Another option is to modify
15115 *** your PATH or compiler configuration so that the native linker is
15116 *** used, and then restart.
15117
15118 EOF
15119       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15122       else
15123         ld_shlibs_F77=no
15124       fi
15125       ;;
15126
15127     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15128       case `$LD -v 2>&1` in
15129         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15130         ld_shlibs_F77=no
15131         cat <<_LT_EOF 1>&2
15132
15133 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15134 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15135 *** is disabling shared libraries support.  We urge you to upgrade GNU
15136 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15139
15140 _LT_EOF
15141         ;;
15142         *)
15143           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15144             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15145             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15146             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15147           else
15148             ld_shlibs_F77=no
15149           fi
15150         ;;
15151       esac
15152       ;;
15153
15154     sunos4*)
15155       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15156       wlarc=
15157       hardcode_direct_F77=yes
15158       hardcode_shlibpath_var_F77=no
15159       ;;
15160
15161     *)
15162       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15163         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15165       else
15166         ld_shlibs_F77=no
15167       fi
15168       ;;
15169     esac
15170
15171     if test "$ld_shlibs_F77" = no; then
15172       runpath_var=
15173       hardcode_libdir_flag_spec_F77=
15174       export_dynamic_flag_spec_F77=
15175       whole_archive_flag_spec_F77=
15176     fi
15177   else
15178     # PORTME fill in a description of your system's linker (not GNU ld)
15179     case $host_os in
15180     aix3*)
15181       allow_undefined_flag_F77=unsupported
15182       always_export_symbols_F77=yes
15183       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'
15184       # Note: this linker hardcodes the directories in LIBPATH if there
15185       # are no directories specified by -L.
15186       hardcode_minus_L_F77=yes
15187       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15188         # Neither direct hardcoding nor static linking is supported with a
15189         # broken collect2.
15190         hardcode_direct_F77=unsupported
15191       fi
15192       ;;
15193
15194     aix4* | aix5*)
15195       if test "$host_cpu" = ia64; then
15196         # On IA64, the linker does run time linking by default, so we don't
15197         # have to do anything special.
15198         aix_use_runtimelinking=no
15199         exp_sym_flag='-Bexport'
15200         no_entry_flag=""
15201       else
15202         # If we're using GNU nm, then we don't want the "-C" option.
15203         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15204         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15205           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'
15206         else
15207           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'
15208         fi
15209         aix_use_runtimelinking=no
15210
15211         # Test if we are trying to use run time linking or normal
15212         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15213         # need to do runtime linking.
15214         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15215           for ld_flag in $LDFLAGS; do
15216           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15217             aix_use_runtimelinking=yes
15218             break
15219           fi
15220           done
15221           ;;
15222         esac
15223
15224         exp_sym_flag='-bexport'
15225         no_entry_flag='-bnoentry'
15226       fi
15227
15228       # When large executables or shared objects are built, AIX ld can
15229       # have problems creating the table of contents.  If linking a library
15230       # or program results in "error TOC overflow" add -mminimal-toc to
15231       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15232       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15233
15234       archive_cmds_F77=''
15235       hardcode_direct_F77=yes
15236       hardcode_libdir_separator_F77=':'
15237       link_all_deplibs_F77=yes
15238
15239       if test "$GCC" = yes; then
15240         case $host_os in aix4.[012]|aix4.[012].*)
15241         # We only want to do this on AIX 4.2 and lower, the check
15242         # below for broken collect2 doesn't work under 4.3+
15243           collect2name=`${CC} -print-prog-name=collect2`
15244           if test -f "$collect2name" && \
15245            strings "$collect2name" | grep resolve_lib_name >/dev/null
15246           then
15247           # We have reworked collect2
15248           hardcode_direct_F77=yes
15249           else
15250           # We have old collect2
15251           hardcode_direct_F77=unsupported
15252           # It fails to find uninstalled libraries when the uninstalled
15253           # path is not listed in the libpath.  Setting hardcode_minus_L
15254           # to unsupported forces relinking
15255           hardcode_minus_L_F77=yes
15256           hardcode_libdir_flag_spec_F77='-L$libdir'
15257           hardcode_libdir_separator_F77=
15258           fi
15259           ;;
15260         esac
15261         shared_flag='-shared'
15262         if test "$aix_use_runtimelinking" = yes; then
15263           shared_flag="$shared_flag "'${wl}-G'
15264         fi
15265       else
15266         # not using gcc
15267         if test "$host_cpu" = ia64; then
15268         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15269         # chokes on -Wl,-G. The following line is correct:
15270           shared_flag='-G'
15271         else
15272           if test "$aix_use_runtimelinking" = yes; then
15273             shared_flag='${wl}-G'
15274           else
15275             shared_flag='${wl}-bM:SRE'
15276           fi
15277         fi
15278       fi
15279
15280       # It seems that -bexpall does not export symbols beginning with
15281       # underscore (_), so it is better to generate a list of symbols to export.
15282       always_export_symbols_F77=yes
15283       if test "$aix_use_runtimelinking" = yes; then
15284         # Warning - without using the other runtime loading flags (-brtl),
15285         # -berok will link without error, but may produce a broken library.
15286         allow_undefined_flag_F77='-berok'
15287        # Determine the default libpath from the value encoded in an empty executable.
15288        cat >conftest.$ac_ext <<_ACEOF
15289       program main
15290
15291       end
15292 _ACEOF
15293 rm -f conftest.$ac_objext conftest$ac_exeext
15294 if { (ac_try="$ac_link"
15295 case "(($ac_try" in
15296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297   *) ac_try_echo=$ac_try;;
15298 esac
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300   (eval "$ac_link") 2>conftest.er1
15301   ac_status=$?
15302   grep -v '^ *+' conftest.er1 >conftest.err
15303   rm -f conftest.er1
15304   cat conftest.err >&5
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); } && {
15307          test -z "$ac_f77_werror_flag" ||
15308          test ! -s conftest.err
15309        } && test -s conftest$ac_exeext &&
15310        $as_test_x conftest$ac_exeext; then
15311
15312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15313 }'`
15314 # Check for a 64-bit object if we didn't find anything.
15315 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; }
15316 }'`; fi
15317 else
15318   echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15320
15321
15322 fi
15323
15324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15325       conftest$ac_exeext conftest.$ac_ext
15326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15327
15328        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15329         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"
15330        else
15331         if test "$host_cpu" = ia64; then
15332           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15333           allow_undefined_flag_F77="-z nodefs"
15334           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"
15335         else
15336          # Determine the default libpath from the value encoded in an empty executable.
15337          cat >conftest.$ac_ext <<_ACEOF
15338       program main
15339
15340       end
15341 _ACEOF
15342 rm -f conftest.$ac_objext conftest$ac_exeext
15343 if { (ac_try="$ac_link"
15344 case "(($ac_try" in
15345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346   *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349   (eval "$ac_link") 2>conftest.er1
15350   ac_status=$?
15351   grep -v '^ *+' conftest.er1 >conftest.err
15352   rm -f conftest.er1
15353   cat conftest.err >&5
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); } && {
15356          test -z "$ac_f77_werror_flag" ||
15357          test ! -s conftest.err
15358        } && test -s conftest$ac_exeext &&
15359        $as_test_x conftest$ac_exeext; then
15360
15361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15362 }'`
15363 # Check for a 64-bit object if we didn't find anything.
15364 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; }
15365 }'`; fi
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370
15371 fi
15372
15373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15374       conftest$ac_exeext conftest.$ac_ext
15375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15376
15377          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15378           # Warning - without using the other run time loading flags,
15379           # -berok will link without error, but may produce a broken library.
15380           no_undefined_flag_F77=' ${wl}-bernotok'
15381           allow_undefined_flag_F77=' ${wl}-berok'
15382           # Exported symbols can be pulled into shared objects from archives
15383           whole_archive_flag_spec_F77='$convenience'
15384           archive_cmds_need_lc_F77=yes
15385           # This is similar to how AIX traditionally builds its shared libraries.
15386           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'
15387         fi
15388       fi
15389       ;;
15390
15391     amigaos*)
15392       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)'
15393       hardcode_libdir_flag_spec_F77='-L$libdir'
15394       hardcode_minus_L_F77=yes
15395       # see comment about different semantics on the GNU ld section
15396       ld_shlibs_F77=no
15397       ;;
15398
15399     bsdi[45]*)
15400       export_dynamic_flag_spec_F77=-rdynamic
15401       ;;
15402
15403     cygwin* | mingw* | pw32*)
15404       # When not using gcc, we currently assume that we are using
15405       # Microsoft Visual C++.
15406       # hardcode_libdir_flag_spec is actually meaningless, as there is
15407       # no search path for DLLs.
15408       hardcode_libdir_flag_spec_F77=' '
15409       allow_undefined_flag_F77=unsupported
15410       # Tell ltmain to make .lib files, not .a files.
15411       libext=lib
15412       # Tell ltmain to make .dll files, not .so files.
15413       shrext_cmds=".dll"
15414       # FIXME: Setting linknames here is a bad hack.
15415       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15416       # The linker will automatically build a .lib file if we build a DLL.
15417       old_archive_From_new_cmds_F77='true'
15418       # FIXME: Should let the user specify the lib program.
15419       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15420       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15421       enable_shared_with_static_runtimes_F77=yes
15422       ;;
15423
15424     darwin* | rhapsody*)
15425       case $host_os in
15426         rhapsody* | darwin1.[012])
15427          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15428          ;;
15429        *) # Darwin 1.3 on
15430          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15431            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15432          else
15433            case ${MACOSX_DEPLOYMENT_TARGET} in
15434              10.[012])
15435                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15436                ;;
15437              10.*)
15438                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15439                ;;
15440            esac
15441          fi
15442          ;;
15443       esac
15444       archive_cmds_need_lc_F77=no
15445       hardcode_direct_F77=no
15446       hardcode_automatic_F77=yes
15447       hardcode_shlibpath_var_F77=unsupported
15448       whole_archive_flag_spec_F77=''
15449       link_all_deplibs_F77=yes
15450     if test "$GCC" = yes ; then
15451         output_verbose_link_cmd='echo'
15452         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15453       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15454       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15455       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}'
15456       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}'
15457     else
15458       case $cc_basename in
15459         xlc*)
15460          output_verbose_link_cmd='echo'
15461          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15462          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15463           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15464          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}'
15465           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}'
15466           ;;
15467        *)
15468          ld_shlibs_F77=no
15469           ;;
15470       esac
15471     fi
15472       ;;
15473
15474     dgux*)
15475       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476       hardcode_libdir_flag_spec_F77='-L$libdir'
15477       hardcode_shlibpath_var_F77=no
15478       ;;
15479
15480     freebsd1*)
15481       ld_shlibs_F77=no
15482       ;;
15483
15484     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15485     # support.  Future versions do this automatically, but an explicit c++rt0.o
15486     # does not break anything, and helps significantly (at the cost of a little
15487     # extra space).
15488     freebsd2.2*)
15489       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15490       hardcode_libdir_flag_spec_F77='-R$libdir'
15491       hardcode_direct_F77=yes
15492       hardcode_shlibpath_var_F77=no
15493       ;;
15494
15495     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15496     freebsd2*)
15497       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15498       hardcode_direct_F77=yes
15499       hardcode_minus_L_F77=yes
15500       hardcode_shlibpath_var_F77=no
15501       ;;
15502
15503     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15504     freebsd* | dragonfly*)
15505       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15506       hardcode_libdir_flag_spec_F77='-R$libdir'
15507       hardcode_direct_F77=yes
15508       hardcode_shlibpath_var_F77=no
15509       ;;
15510
15511     hpux9*)
15512       if test "$GCC" = yes; then
15513         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'
15514       else
15515         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'
15516       fi
15517       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15518       hardcode_libdir_separator_F77=:
15519       hardcode_direct_F77=yes
15520
15521       # hardcode_minus_L: Not really in the search PATH,
15522       # but as the default location of the library.
15523       hardcode_minus_L_F77=yes
15524       export_dynamic_flag_spec_F77='${wl}-E'
15525       ;;
15526
15527     hpux10*)
15528       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15529         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15530       else
15531         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15532       fi
15533       if test "$with_gnu_ld" = no; then
15534         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15535         hardcode_libdir_separator_F77=:
15536
15537         hardcode_direct_F77=yes
15538         export_dynamic_flag_spec_F77='${wl}-E'
15539
15540         # hardcode_minus_L: Not really in the search PATH,
15541         # but as the default location of the library.
15542         hardcode_minus_L_F77=yes
15543       fi
15544       ;;
15545
15546     hpux11*)
15547       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15548         case $host_cpu in
15549         hppa*64*)
15550           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15551           ;;
15552         ia64*)
15553           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15554           ;;
15555         *)
15556           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15557           ;;
15558         esac
15559       else
15560         case $host_cpu in
15561         hppa*64*)
15562           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15563           ;;
15564         ia64*)
15565           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15566           ;;
15567         *)
15568           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15569           ;;
15570         esac
15571       fi
15572       if test "$with_gnu_ld" = no; then
15573         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15574         hardcode_libdir_separator_F77=:
15575
15576         case $host_cpu in
15577         hppa*64*|ia64*)
15578           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15579           hardcode_direct_F77=no
15580           hardcode_shlibpath_var_F77=no
15581           ;;
15582         *)
15583           hardcode_direct_F77=yes
15584           export_dynamic_flag_spec_F77='${wl}-E'
15585
15586           # hardcode_minus_L: Not really in the search PATH,
15587           # but as the default location of the library.
15588           hardcode_minus_L_F77=yes
15589           ;;
15590         esac
15591       fi
15592       ;;
15593
15594     irix5* | irix6* | nonstopux*)
15595       if test "$GCC" = yes; then
15596         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'
15597       else
15598         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'
15599         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15600       fi
15601       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15602       hardcode_libdir_separator_F77=:
15603       link_all_deplibs_F77=yes
15604       ;;
15605
15606     netbsd* | netbsdelf*-gnu)
15607       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15608         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15609       else
15610         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15611       fi
15612       hardcode_libdir_flag_spec_F77='-R$libdir'
15613       hardcode_direct_F77=yes
15614       hardcode_shlibpath_var_F77=no
15615       ;;
15616
15617     newsos6)
15618       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619       hardcode_direct_F77=yes
15620       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15621       hardcode_libdir_separator_F77=:
15622       hardcode_shlibpath_var_F77=no
15623       ;;
15624
15625     openbsd*)
15626       hardcode_direct_F77=yes
15627       hardcode_shlibpath_var_F77=no
15628       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15629         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15630         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15631         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15632         export_dynamic_flag_spec_F77='${wl}-E'
15633       else
15634        case $host_os in
15635          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15636            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15637            hardcode_libdir_flag_spec_F77='-R$libdir'
15638            ;;
15639          *)
15640            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15642            ;;
15643        esac
15644       fi
15645       ;;
15646
15647     os2*)
15648       hardcode_libdir_flag_spec_F77='-L$libdir'
15649       hardcode_minus_L_F77=yes
15650       allow_undefined_flag_F77=unsupported
15651       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'
15652       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15653       ;;
15654
15655     osf3*)
15656       if test "$GCC" = yes; then
15657         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15658         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'
15659       else
15660         allow_undefined_flag_F77=' -expect_unresolved \*'
15661         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'
15662       fi
15663       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15664       hardcode_libdir_separator_F77=:
15665       ;;
15666
15667     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15668       if test "$GCC" = yes; then
15669         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15670         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'
15671         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15672       else
15673         allow_undefined_flag_F77=' -expect_unresolved \*'
15674         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'
15675         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~
15676         $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'
15677
15678         # Both c and cxx compiler support -rpath directly
15679         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15680       fi
15681       hardcode_libdir_separator_F77=:
15682       ;;
15683
15684     solaris*)
15685       no_undefined_flag_F77=' -z text'
15686       if test "$GCC" = yes; then
15687         wlarc='${wl}'
15688         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15690           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15691       else
15692         wlarc=''
15693         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15696       fi
15697       hardcode_libdir_flag_spec_F77='-R$libdir'
15698       hardcode_shlibpath_var_F77=no
15699       case $host_os in
15700       solaris2.[0-5] | solaris2.[0-5].*) ;;
15701       *)
15702         # The compiler driver will combine linker options so we
15703         # cannot just pass the convience library names through
15704         # without $wl, iff we do not link with $LD.
15705         # Luckily, gcc supports the same syntax we need for Sun Studio.
15706         # Supported since Solaris 2.6 (maybe 2.5.1?)
15707         case $wlarc in
15708         '')
15709           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15710         *)
15711           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' ;;
15712         esac ;;
15713       esac
15714       link_all_deplibs_F77=yes
15715       ;;
15716
15717     sunos4*)
15718       if test "x$host_vendor" = xsequent; then
15719         # Use $CC to link under sequent, because it throws in some extra .o
15720         # files that make .init and .fini sections work.
15721         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15722       else
15723         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15724       fi
15725       hardcode_libdir_flag_spec_F77='-L$libdir'
15726       hardcode_direct_F77=yes
15727       hardcode_minus_L_F77=yes
15728       hardcode_shlibpath_var_F77=no
15729       ;;
15730
15731     sysv4)
15732       case $host_vendor in
15733         sni)
15734           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15735           hardcode_direct_F77=yes # is this really true???
15736         ;;
15737         siemens)
15738           ## LD is ld it makes a PLAMLIB
15739           ## CC just makes a GrossModule.
15740           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15741           reload_cmds_F77='$CC -r -o $output$reload_objs'
15742           hardcode_direct_F77=no
15743         ;;
15744         motorola)
15745           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15746           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15747         ;;
15748       esac
15749       runpath_var='LD_RUN_PATH'
15750       hardcode_shlibpath_var_F77=no
15751       ;;
15752
15753     sysv4.3*)
15754       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15755       hardcode_shlibpath_var_F77=no
15756       export_dynamic_flag_spec_F77='-Bexport'
15757       ;;
15758
15759     sysv4*MP*)
15760       if test -d /usr/nec; then
15761         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762         hardcode_shlibpath_var_F77=no
15763         runpath_var=LD_RUN_PATH
15764         hardcode_runpath_var=yes
15765         ld_shlibs_F77=yes
15766       fi
15767       ;;
15768
15769     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15770       no_undefined_flag_F77='${wl}-z,text'
15771       archive_cmds_need_lc_F77=no
15772       hardcode_shlibpath_var_F77=no
15773       runpath_var='LD_RUN_PATH'
15774
15775       if test "$GCC" = yes; then
15776         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15777         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15778       else
15779         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15780         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15781       fi
15782       ;;
15783
15784     sysv5* | sco3.2v5* | sco5v6*)
15785       # Note: We can NOT use -z defs as we might desire, because we do not
15786       # link with -lc, and that would cause any symbols used from libc to
15787       # always be unresolved, which means just about no library would
15788       # ever link correctly.  If we're not using GNU ld we use -z text
15789       # though, which does catch some bad symbols but isn't as heavy-handed
15790       # as -z defs.
15791       no_undefined_flag_F77='${wl}-z,text'
15792       allow_undefined_flag_F77='${wl}-z,nodefs'
15793       archive_cmds_need_lc_F77=no
15794       hardcode_shlibpath_var_F77=no
15795       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15796       hardcode_libdir_separator_F77=':'
15797       link_all_deplibs_F77=yes
15798       export_dynamic_flag_spec_F77='${wl}-Bexport'
15799       runpath_var='LD_RUN_PATH'
15800
15801       if test "$GCC" = yes; then
15802         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15804       else
15805         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15806         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15807       fi
15808       ;;
15809
15810     uts4*)
15811       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812       hardcode_libdir_flag_spec_F77='-L$libdir'
15813       hardcode_shlibpath_var_F77=no
15814       ;;
15815
15816     *)
15817       ld_shlibs_F77=no
15818       ;;
15819     esac
15820   fi
15821
15822 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15823 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15824 test "$ld_shlibs_F77" = no && can_build_shared=no
15825
15826 #
15827 # Do we need to explicitly link libc?
15828 #
15829 case "x$archive_cmds_need_lc_F77" in
15830 x|xyes)
15831   # Assume -lc should be added
15832   archive_cmds_need_lc_F77=yes
15833
15834   if test "$enable_shared" = yes && test "$GCC" = yes; then
15835     case $archive_cmds_F77 in
15836     *'~'*)
15837       # FIXME: we may have to deal with multi-command sequences.
15838       ;;
15839     '$CC '*)
15840       # Test whether the compiler implicitly links with -lc since on some
15841       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15842       # to ld, don't add -lc before -lgcc.
15843       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15844 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15845       $rm conftest*
15846       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15847
15848       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849   (eval $ac_compile) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } 2>conftest.err; then
15853         soname=conftest
15854         lib=conftest
15855         libobjs=conftest.$ac_objext
15856         deplibs=
15857         wl=$lt_prog_compiler_wl_F77
15858         pic_flag=$lt_prog_compiler_pic_F77
15859         compiler_flags=-v
15860         linker_flags=-v
15861         verstring=
15862         output_objdir=.
15863         libname=conftest
15864         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15865         allow_undefined_flag_F77=
15866         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15867   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }
15871         then
15872           archive_cmds_need_lc_F77=no
15873         else
15874           archive_cmds_need_lc_F77=yes
15875         fi
15876         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15877       else
15878         cat conftest.err 1>&5
15879       fi
15880       $rm conftest*
15881       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15882 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15883       ;;
15884     esac
15885   fi
15886   ;;
15887 esac
15888
15889 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15890 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15891 library_names_spec=
15892 libname_spec='lib$name'
15893 soname_spec=
15894 shrext_cmds=".so"
15895 postinstall_cmds=
15896 postuninstall_cmds=
15897 finish_cmds=
15898 finish_eval=
15899 shlibpath_var=
15900 shlibpath_overrides_runpath=unknown
15901 version_type=none
15902 dynamic_linker="$host_os ld.so"
15903 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15904 if test "$GCC" = yes; then
15905   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15906   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15907     # if the path contains ";" then we assume it to be the separator
15908     # otherwise default to the standard path separator (i.e. ":") - it is
15909     # assumed that no part of a normal pathname contains ";" but that should
15910     # okay in the real world where ";" in dirpaths is itself problematic.
15911     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15912   else
15913     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15914   fi
15915 else
15916   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15917 fi
15918 need_lib_prefix=unknown
15919 hardcode_into_libs=no
15920
15921 # when you set need_version to no, make sure it does not cause -set_version
15922 # flags to be left without arguments
15923 need_version=unknown
15924
15925 case $host_os in
15926 aix3*)
15927   version_type=linux
15928   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15929   shlibpath_var=LIBPATH
15930
15931   # AIX 3 has no versioning support, so we append a major version to the name.
15932   soname_spec='${libname}${release}${shared_ext}$major'
15933   ;;
15934
15935 aix4* | aix5*)
15936   version_type=linux
15937   need_lib_prefix=no
15938   need_version=no
15939   hardcode_into_libs=yes
15940   if test "$host_cpu" = ia64; then
15941     # AIX 5 supports IA64
15942     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15943     shlibpath_var=LD_LIBRARY_PATH
15944   else
15945     # With GCC up to 2.95.x, collect2 would create an import file
15946     # for dependence libraries.  The import file would start with
15947     # the line `#! .'.  This would cause the generated library to
15948     # depend on `.', always an invalid library.  This was fixed in
15949     # development snapshots of GCC prior to 3.0.
15950     case $host_os in
15951       aix4 | aix4.[01] | aix4.[01].*)
15952       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15953            echo ' yes '
15954            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15955         :
15956       else
15957         can_build_shared=no
15958       fi
15959       ;;
15960     esac
15961     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15962     # soname into executable. Probably we can add versioning support to
15963     # collect2, so additional links can be useful in future.
15964     if test "$aix_use_runtimelinking" = yes; then
15965       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15966       # instead of lib<name>.a to let people know that these are not
15967       # typical AIX shared libraries.
15968       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969     else
15970       # We preserve .a as extension for shared libraries through AIX4.2
15971       # and later when we are not doing run time linking.
15972       library_names_spec='${libname}${release}.a $libname.a'
15973       soname_spec='${libname}${release}${shared_ext}$major'
15974     fi
15975     shlibpath_var=LIBPATH
15976   fi
15977   ;;
15978
15979 amigaos*)
15980   library_names_spec='$libname.ixlibrary $libname.a'
15981   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15982   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'
15983   ;;
15984
15985 beos*)
15986   library_names_spec='${libname}${shared_ext}'
15987   dynamic_linker="$host_os ld.so"
15988   shlibpath_var=LIBRARY_PATH
15989   ;;
15990
15991 bsdi[45]*)
15992   version_type=linux
15993   need_version=no
15994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995   soname_spec='${libname}${release}${shared_ext}$major'
15996   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15997   shlibpath_var=LD_LIBRARY_PATH
15998   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15999   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16000   # the default ld.so.conf also contains /usr/contrib/lib and
16001   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16002   # libtool to hard-code these into programs
16003   ;;
16004
16005 cygwin* | mingw* | pw32*)
16006   version_type=windows
16007   shrext_cmds=".dll"
16008   need_version=no
16009   need_lib_prefix=no
16010
16011   case $GCC,$host_os in
16012   yes,cygwin* | yes,mingw* | yes,pw32*)
16013     library_names_spec='$libname.dll.a'
16014     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16015     postinstall_cmds='base_file=`basename \${file}`~
16016       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16017       dldir=$destdir/`dirname \$dlpath`~
16018       test -d \$dldir || mkdir -p \$dldir~
16019       $install_prog $dir/$dlname \$dldir/$dlname~
16020       chmod a+x \$dldir/$dlname'
16021     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16022       dlpath=$dir/\$dldll~
16023        $rm \$dlpath'
16024     shlibpath_overrides_runpath=yes
16025
16026     case $host_os in
16027     cygwin*)
16028       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16029       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16030       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16031       ;;
16032     mingw*)
16033       # MinGW DLLs use traditional 'lib' prefix
16034       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16035       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16036       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16037         # It is most probably a Windows format PATH printed by
16038         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16039         # path with ; separators, and with drive letters. We can handle the
16040         # drive letters (cygwin fileutils understands them), so leave them,
16041         # especially as we might pass files found there to a mingw objdump,
16042         # which wouldn't understand a cygwinified path. Ahh.
16043         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16044       else
16045         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16046       fi
16047       ;;
16048     pw32*)
16049       # pw32 DLLs use 'pw' prefix rather than 'lib'
16050       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16051       ;;
16052     esac
16053     ;;
16054
16055   *)
16056     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16057     ;;
16058   esac
16059   dynamic_linker='Win32 ld.exe'
16060   # FIXME: first we should search . and the directory the executable is in
16061   shlibpath_var=PATH
16062   ;;
16063
16064 darwin* | rhapsody*)
16065   dynamic_linker="$host_os dyld"
16066   version_type=darwin
16067   need_lib_prefix=no
16068   need_version=no
16069   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16070   soname_spec='${libname}${release}${major}$shared_ext'
16071   shlibpath_overrides_runpath=yes
16072   shlibpath_var=DYLD_LIBRARY_PATH
16073   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16074   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16075   if test "$GCC" = yes; then
16076     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"`
16077   else
16078     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16079   fi
16080   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16081   ;;
16082
16083 dgux*)
16084   version_type=linux
16085   need_lib_prefix=no
16086   need_version=no
16087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16088   soname_spec='${libname}${release}${shared_ext}$major'
16089   shlibpath_var=LD_LIBRARY_PATH
16090   ;;
16091
16092 freebsd1*)
16093   dynamic_linker=no
16094   ;;
16095
16096 freebsd* | dragonfly*)
16097   # DragonFly does not have aout.  When/if they implement a new
16098   # versioning mechanism, adjust this.
16099   if test -x /usr/bin/objformat; then
16100     objformat=`/usr/bin/objformat`
16101   else
16102     case $host_os in
16103     freebsd[123]*) objformat=aout ;;
16104     *) objformat=elf ;;
16105     esac
16106   fi
16107   version_type=freebsd-$objformat
16108   case $version_type in
16109     freebsd-elf*)
16110       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16111       need_version=no
16112       need_lib_prefix=no
16113       ;;
16114     freebsd-*)
16115       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16116       need_version=yes
16117       ;;
16118   esac
16119   shlibpath_var=LD_LIBRARY_PATH
16120   case $host_os in
16121   freebsd2*)
16122     shlibpath_overrides_runpath=yes
16123     ;;
16124   freebsd3.[01]* | freebsdelf3.[01]*)
16125     shlibpath_overrides_runpath=yes
16126     hardcode_into_libs=yes
16127     ;;
16128   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16129   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16130     shlibpath_overrides_runpath=no
16131     hardcode_into_libs=yes
16132     ;;
16133   freebsd*) # from 4.6 on
16134     shlibpath_overrides_runpath=yes
16135     hardcode_into_libs=yes
16136     ;;
16137   esac
16138   ;;
16139
16140 gnu*)
16141   version_type=linux
16142   need_lib_prefix=no
16143   need_version=no
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16145   soname_spec='${libname}${release}${shared_ext}$major'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   hardcode_into_libs=yes
16148   ;;
16149
16150 hpux9* | hpux10* | hpux11*)
16151   # Give a soname corresponding to the major version so that dld.sl refuses to
16152   # link against other versions.
16153   version_type=sunos
16154   need_lib_prefix=no
16155   need_version=no
16156   case $host_cpu in
16157   ia64*)
16158     shrext_cmds='.so'
16159     hardcode_into_libs=yes
16160     dynamic_linker="$host_os dld.so"
16161     shlibpath_var=LD_LIBRARY_PATH
16162     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164     soname_spec='${libname}${release}${shared_ext}$major'
16165     if test "X$HPUX_IA64_MODE" = X32; then
16166       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16167     else
16168       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16169     fi
16170     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16171     ;;
16172    hppa*64*)
16173      shrext_cmds='.sl'
16174      hardcode_into_libs=yes
16175      dynamic_linker="$host_os dld.sl"
16176      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16177      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16178      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179      soname_spec='${libname}${release}${shared_ext}$major'
16180      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16181      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16182      ;;
16183    *)
16184     shrext_cmds='.sl'
16185     dynamic_linker="$host_os dld.sl"
16186     shlibpath_var=SHLIB_PATH
16187     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189     soname_spec='${libname}${release}${shared_ext}$major'
16190     ;;
16191   esac
16192   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16193   postinstall_cmds='chmod 555 $lib'
16194   ;;
16195
16196 interix3*)
16197   version_type=linux
16198   need_lib_prefix=no
16199   need_version=no
16200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201   soname_spec='${libname}${release}${shared_ext}$major'
16202   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16203   shlibpath_var=LD_LIBRARY_PATH
16204   shlibpath_overrides_runpath=no
16205   hardcode_into_libs=yes
16206   ;;
16207
16208 irix5* | irix6* | nonstopux*)
16209   case $host_os in
16210     nonstopux*) version_type=nonstopux ;;
16211     *)
16212         if test "$lt_cv_prog_gnu_ld" = yes; then
16213                 version_type=linux
16214         else
16215                 version_type=irix
16216         fi ;;
16217   esac
16218   need_lib_prefix=no
16219   need_version=no
16220   soname_spec='${libname}${release}${shared_ext}$major'
16221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16222   case $host_os in
16223   irix5* | nonstopux*)
16224     libsuff= shlibsuff=
16225     ;;
16226   *)
16227     case $LD in # libtool.m4 will add one of these switches to LD
16228     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16229       libsuff= shlibsuff= libmagic=32-bit;;
16230     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16231       libsuff=32 shlibsuff=N32 libmagic=N32;;
16232     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16233       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16234     *) libsuff= shlibsuff= libmagic=never-match;;
16235     esac
16236     ;;
16237   esac
16238   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16239   shlibpath_overrides_runpath=no
16240   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16241   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16242   hardcode_into_libs=yes
16243   ;;
16244
16245 # No shared lib support for Linux oldld, aout, or coff.
16246 linux*oldld* | linux*aout* | linux*coff*)
16247   dynamic_linker=no
16248   ;;
16249
16250 # This must be Linux ELF.
16251 linux* | k*bsd*-gnu)
16252   version_type=linux
16253   need_lib_prefix=no
16254   need_version=no
16255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256   soname_spec='${libname}${release}${shared_ext}$major'
16257   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16258   shlibpath_var=LD_LIBRARY_PATH
16259   shlibpath_overrides_runpath=no
16260   # This implies no fast_install, which is unacceptable.
16261   # Some rework will be needed to allow for fast_install
16262   # before this can be enabled.
16263   hardcode_into_libs=yes
16264
16265   # Append ld.so.conf contents to the search path
16266   if test -f /etc/ld.so.conf; then
16267     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' ' '`
16268     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16269   fi
16270
16271   # We used to test for /lib/ld.so.1 and disable shared libraries on
16272   # powerpc, because MkLinux only supported shared libraries with the
16273   # GNU dynamic linker.  Since this was broken with cross compilers,
16274   # most powerpc-linux boxes support dynamic linking these days and
16275   # people can always --disable-shared, the test was removed, and we
16276   # assume the GNU/Linux dynamic linker is in use.
16277   dynamic_linker='GNU/Linux ld.so'
16278   ;;
16279
16280 netbsdelf*-gnu)
16281   version_type=linux
16282   need_lib_prefix=no
16283   need_version=no
16284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16285   soname_spec='${libname}${release}${shared_ext}$major'
16286   shlibpath_var=LD_LIBRARY_PATH
16287   shlibpath_overrides_runpath=no
16288   hardcode_into_libs=yes
16289   dynamic_linker='NetBSD ld.elf_so'
16290   ;;
16291
16292 netbsd*)
16293   version_type=sunos
16294   need_lib_prefix=no
16295   need_version=no
16296   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16298     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16299     dynamic_linker='NetBSD (a.out) ld.so'
16300   else
16301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16302     soname_spec='${libname}${release}${shared_ext}$major'
16303     dynamic_linker='NetBSD ld.elf_so'
16304   fi
16305   shlibpath_var=LD_LIBRARY_PATH
16306   shlibpath_overrides_runpath=yes
16307   hardcode_into_libs=yes
16308   ;;
16309
16310 newsos6)
16311   version_type=linux
16312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313   shlibpath_var=LD_LIBRARY_PATH
16314   shlibpath_overrides_runpath=yes
16315   ;;
16316
16317 nto-qnx*)
16318   version_type=linux
16319   need_lib_prefix=no
16320   need_version=no
16321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322   soname_spec='${libname}${release}${shared_ext}$major'
16323   shlibpath_var=LD_LIBRARY_PATH
16324   shlibpath_overrides_runpath=yes
16325   ;;
16326
16327 openbsd*)
16328   version_type=sunos
16329   sys_lib_dlsearch_path_spec="/usr/lib"
16330   need_lib_prefix=no
16331   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16332   case $host_os in
16333     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16334     *)                         need_version=no  ;;
16335   esac
16336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16338   shlibpath_var=LD_LIBRARY_PATH
16339   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16340     case $host_os in
16341       openbsd2.[89] | openbsd2.[89].*)
16342         shlibpath_overrides_runpath=no
16343         ;;
16344       *)
16345         shlibpath_overrides_runpath=yes
16346         ;;
16347       esac
16348   else
16349     shlibpath_overrides_runpath=yes
16350   fi
16351   ;;
16352
16353 os2*)
16354   libname_spec='$name'
16355   shrext_cmds=".dll"
16356   need_lib_prefix=no
16357   library_names_spec='$libname${shared_ext} $libname.a'
16358   dynamic_linker='OS/2 ld.exe'
16359   shlibpath_var=LIBPATH
16360   ;;
16361
16362 osf3* | osf4* | osf5*)
16363   version_type=osf
16364   need_lib_prefix=no
16365   need_version=no
16366   soname_spec='${libname}${release}${shared_ext}$major'
16367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368   shlibpath_var=LD_LIBRARY_PATH
16369   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16370   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16371   ;;
16372
16373 solaris*)
16374   version_type=linux
16375   need_lib_prefix=no
16376   need_version=no
16377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378   soname_spec='${libname}${release}${shared_ext}$major'
16379   shlibpath_var=LD_LIBRARY_PATH
16380   shlibpath_overrides_runpath=yes
16381   hardcode_into_libs=yes
16382   # ldd complains unless libraries are executable
16383   postinstall_cmds='chmod +x $lib'
16384   ;;
16385
16386 sunos4*)
16387   version_type=sunos
16388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16389   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16390   shlibpath_var=LD_LIBRARY_PATH
16391   shlibpath_overrides_runpath=yes
16392   if test "$with_gnu_ld" = yes; then
16393     need_lib_prefix=no
16394   fi
16395   need_version=yes
16396   ;;
16397
16398 sysv4 | sysv4.3*)
16399   version_type=linux
16400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16401   soname_spec='${libname}${release}${shared_ext}$major'
16402   shlibpath_var=LD_LIBRARY_PATH
16403   case $host_vendor in
16404     sni)
16405       shlibpath_overrides_runpath=no
16406       need_lib_prefix=no
16407       export_dynamic_flag_spec='${wl}-Blargedynsym'
16408       runpath_var=LD_RUN_PATH
16409       ;;
16410     siemens)
16411       need_lib_prefix=no
16412       ;;
16413     motorola)
16414       need_lib_prefix=no
16415       need_version=no
16416       shlibpath_overrides_runpath=no
16417       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16418       ;;
16419   esac
16420   ;;
16421
16422 sysv4*MP*)
16423   if test -d /usr/nec ;then
16424     version_type=linux
16425     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16426     soname_spec='$libname${shared_ext}.$major'
16427     shlibpath_var=LD_LIBRARY_PATH
16428   fi
16429   ;;
16430
16431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16432   version_type=freebsd-elf
16433   need_lib_prefix=no
16434   need_version=no
16435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16436   soname_spec='${libname}${release}${shared_ext}$major'
16437   shlibpath_var=LD_LIBRARY_PATH
16438   hardcode_into_libs=yes
16439   if test "$with_gnu_ld" = yes; then
16440     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16441     shlibpath_overrides_runpath=no
16442   else
16443     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16444     shlibpath_overrides_runpath=yes
16445     case $host_os in
16446       sco3.2v5*)
16447         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16448         ;;
16449     esac
16450   fi
16451   sys_lib_dlsearch_path_spec='/usr/lib'
16452   ;;
16453
16454 uts4*)
16455   version_type=linux
16456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16457   soname_spec='${libname}${release}${shared_ext}$major'
16458   shlibpath_var=LD_LIBRARY_PATH
16459   ;;
16460
16461 *)
16462   dynamic_linker=no
16463   ;;
16464 esac
16465 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16466 echo "${ECHO_T}$dynamic_linker" >&6; }
16467 test "$dynamic_linker" = no && can_build_shared=no
16468
16469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16470 if test "$GCC" = yes; then
16471   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16472 fi
16473
16474 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16476 hardcode_action_F77=
16477 if test -n "$hardcode_libdir_flag_spec_F77" || \
16478    test -n "$runpath_var_F77" || \
16479    test "X$hardcode_automatic_F77" = "Xyes" ; then
16480
16481   # We can hardcode non-existant directories.
16482   if test "$hardcode_direct_F77" != no &&
16483      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16484      # have to relink, otherwise we might link with an installed library
16485      # when we should be linking with a yet-to-be-installed one
16486      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16487      test "$hardcode_minus_L_F77" != no; then
16488     # Linking always hardcodes the temporary library directory.
16489     hardcode_action_F77=relink
16490   else
16491     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16492     hardcode_action_F77=immediate
16493   fi
16494 else
16495   # We cannot hardcode anything, or else we can only hardcode existing
16496   # directories.
16497   hardcode_action_F77=unsupported
16498 fi
16499 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16500 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16501
16502 if test "$hardcode_action_F77" = relink; then
16503   # Fast installation is not supported
16504   enable_fast_install=no
16505 elif test "$shlibpath_overrides_runpath" = yes ||
16506      test "$enable_shared" = no; then
16507   # Fast installation is not necessary
16508   enable_fast_install=needless
16509 fi
16510
16511
16512 # The else clause should only fire when bootstrapping the
16513 # libtool distribution, otherwise you forgot to ship ltmain.sh
16514 # with your package, and you will get complaints that there are
16515 # no rules to generate ltmain.sh.
16516 if test -f "$ltmain"; then
16517   # See if we are running on zsh, and set the options which allow our commands through
16518   # without removal of \ escapes.
16519   if test -n "${ZSH_VERSION+set}" ; then
16520     setopt NO_GLOB_SUBST
16521   fi
16522   # Now quote all the things that may contain metacharacters while being
16523   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16524   # variables and quote the copies for generation of the libtool script.
16525   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16526     SED SHELL STRIP \
16527     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16528     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16529     deplibs_check_method reload_flag reload_cmds need_locks \
16530     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16531     lt_cv_sys_global_symbol_to_c_name_address \
16532     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16533     old_postinstall_cmds old_postuninstall_cmds \
16534     compiler_F77 \
16535     CC_F77 \
16536     LD_F77 \
16537     lt_prog_compiler_wl_F77 \
16538     lt_prog_compiler_pic_F77 \
16539     lt_prog_compiler_static_F77 \
16540     lt_prog_compiler_no_builtin_flag_F77 \
16541     export_dynamic_flag_spec_F77 \
16542     thread_safe_flag_spec_F77 \
16543     whole_archive_flag_spec_F77 \
16544     enable_shared_with_static_runtimes_F77 \
16545     old_archive_cmds_F77 \
16546     old_archive_from_new_cmds_F77 \
16547     predep_objects_F77 \
16548     postdep_objects_F77 \
16549     predeps_F77 \
16550     postdeps_F77 \
16551     compiler_lib_search_path_F77 \
16552     archive_cmds_F77 \
16553     archive_expsym_cmds_F77 \
16554     postinstall_cmds_F77 \
16555     postuninstall_cmds_F77 \
16556     old_archive_from_expsyms_cmds_F77 \
16557     allow_undefined_flag_F77 \
16558     no_undefined_flag_F77 \
16559     export_symbols_cmds_F77 \
16560     hardcode_libdir_flag_spec_F77 \
16561     hardcode_libdir_flag_spec_ld_F77 \
16562     hardcode_libdir_separator_F77 \
16563     hardcode_automatic_F77 \
16564     module_cmds_F77 \
16565     module_expsym_cmds_F77 \
16566     lt_cv_prog_compiler_c_o_F77 \
16567     exclude_expsyms_F77 \
16568     include_expsyms_F77; do
16569
16570     case $var in
16571     old_archive_cmds_F77 | \
16572     old_archive_from_new_cmds_F77 | \
16573     archive_cmds_F77 | \
16574     archive_expsym_cmds_F77 | \
16575     module_cmds_F77 | \
16576     module_expsym_cmds_F77 | \
16577     old_archive_from_expsyms_cmds_F77 | \
16578     export_symbols_cmds_F77 | \
16579     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16580     postinstall_cmds | postuninstall_cmds | \
16581     old_postinstall_cmds | old_postuninstall_cmds | \
16582     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16583       # Double-quote double-evaled strings.
16584       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16585       ;;
16586     *)
16587       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16588       ;;
16589     esac
16590   done
16591
16592   case $lt_echo in
16593   *'\$0 --fallback-echo"')
16594     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16595     ;;
16596   esac
16597
16598 cfgfile="$ofile"
16599
16600   cat <<__EOF__ >> "$cfgfile"
16601 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16602
16603 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16604
16605 # Shell to use when invoking shell scripts.
16606 SHELL=$lt_SHELL
16607
16608 # Whether or not to build shared libraries.
16609 build_libtool_libs=$enable_shared
16610
16611 # Whether or not to build static libraries.
16612 build_old_libs=$enable_static
16613
16614 # Whether or not to add -lc for building shared libraries.
16615 build_libtool_need_lc=$archive_cmds_need_lc_F77
16616
16617 # Whether or not to disallow shared libs when runtime libs are static
16618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16619
16620 # Whether or not to optimize for fast installation.
16621 fast_install=$enable_fast_install
16622
16623 # The host system.
16624 host_alias=$host_alias
16625 host=$host
16626 host_os=$host_os
16627
16628 # The build system.
16629 build_alias=$build_alias
16630 build=$build
16631 build_os=$build_os
16632
16633 # An echo program that does not interpret backslashes.
16634 echo=$lt_echo
16635
16636 # The archiver.
16637 AR=$lt_AR
16638 AR_FLAGS=$lt_AR_FLAGS
16639
16640 # A C compiler.
16641 LTCC=$lt_LTCC
16642
16643 # LTCC compiler flags.
16644 LTCFLAGS=$lt_LTCFLAGS
16645
16646 # A language-specific compiler.
16647 CC=$lt_compiler_F77
16648
16649 # Is the compiler the GNU C compiler?
16650 with_gcc=$GCC_F77
16651
16652 # An ERE matcher.
16653 EGREP=$lt_EGREP
16654
16655 # The linker used to build libraries.
16656 LD=$lt_LD_F77
16657
16658 # Whether we need hard or soft links.
16659 LN_S=$lt_LN_S
16660
16661 # A BSD-compatible nm program.
16662 NM=$lt_NM
16663
16664 # A symbol stripping program
16665 STRIP=$lt_STRIP
16666
16667 # Used to examine libraries when file_magic_cmd begins "file"
16668 MAGIC_CMD=$MAGIC_CMD
16669
16670 # Used on cygwin: DLL creation program.
16671 DLLTOOL="$DLLTOOL"
16672
16673 # Used on cygwin: object dumper.
16674 OBJDUMP="$OBJDUMP"
16675
16676 # Used on cygwin: assembler.
16677 AS="$AS"
16678
16679 # The name of the directory that contains temporary libtool files.
16680 objdir=$objdir
16681
16682 # How to create reloadable object files.
16683 reload_flag=$lt_reload_flag
16684 reload_cmds=$lt_reload_cmds
16685
16686 # How to pass a linker flag through the compiler.
16687 wl=$lt_lt_prog_compiler_wl_F77
16688
16689 # Object file suffix (normally "o").
16690 objext="$ac_objext"
16691
16692 # Old archive suffix (normally "a").
16693 libext="$libext"
16694
16695 # Shared library suffix (normally ".so").
16696 shrext_cmds='$shrext_cmds'
16697
16698 # Executable file suffix (normally "").
16699 exeext="$exeext"
16700
16701 # Additional compiler flags for building library objects.
16702 pic_flag=$lt_lt_prog_compiler_pic_F77
16703 pic_mode=$pic_mode
16704
16705 # What is the maximum length of a command?
16706 max_cmd_len=$lt_cv_sys_max_cmd_len
16707
16708 # Does compiler simultaneously support -c and -o options?
16709 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16710
16711 # Must we lock files when doing compilation?
16712 need_locks=$lt_need_locks
16713
16714 # Do we need the lib prefix for modules?
16715 need_lib_prefix=$need_lib_prefix
16716
16717 # Do we need a version for libraries?
16718 need_version=$need_version
16719
16720 # Whether dlopen is supported.
16721 dlopen_support=$enable_dlopen
16722
16723 # Whether dlopen of programs is supported.
16724 dlopen_self=$enable_dlopen_self
16725
16726 # Whether dlopen of statically linked programs is supported.
16727 dlopen_self_static=$enable_dlopen_self_static
16728
16729 # Compiler flag to prevent dynamic linking.
16730 link_static_flag=$lt_lt_prog_compiler_static_F77
16731
16732 # Compiler flag to turn off builtin functions.
16733 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16734
16735 # Compiler flag to allow reflexive dlopens.
16736 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16737
16738 # Compiler flag to generate shared objects directly from archives.
16739 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16740
16741 # Compiler flag to generate thread-safe objects.
16742 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16743
16744 # Library versioning type.
16745 version_type=$version_type
16746
16747 # Format of library name prefix.
16748 libname_spec=$lt_libname_spec
16749
16750 # List of archive names.  First name is the real one, the rest are links.
16751 # The last name is the one that the linker finds with -lNAME.
16752 library_names_spec=$lt_library_names_spec
16753
16754 # The coded name of the library, if different from the real name.
16755 soname_spec=$lt_soname_spec
16756
16757 # Commands used to build and install an old-style archive.
16758 RANLIB=$lt_RANLIB
16759 old_archive_cmds=$lt_old_archive_cmds_F77
16760 old_postinstall_cmds=$lt_old_postinstall_cmds
16761 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16762
16763 # Create an old-style archive from a shared archive.
16764 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16765
16766 # Create a temporary old-style archive to link instead of a shared archive.
16767 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16768
16769 # Commands used to build and install a shared archive.
16770 archive_cmds=$lt_archive_cmds_F77
16771 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16772 postinstall_cmds=$lt_postinstall_cmds
16773 postuninstall_cmds=$lt_postuninstall_cmds
16774
16775 # Commands used to build a loadable module (assumed same as above if empty)
16776 module_cmds=$lt_module_cmds_F77
16777 module_expsym_cmds=$lt_module_expsym_cmds_F77
16778
16779 # Commands to strip libraries.
16780 old_striplib=$lt_old_striplib
16781 striplib=$lt_striplib
16782
16783 # Dependencies to place before the objects being linked to create a
16784 # shared library.
16785 predep_objects=$lt_predep_objects_F77
16786
16787 # Dependencies to place after the objects being linked to create a
16788 # shared library.
16789 postdep_objects=$lt_postdep_objects_F77
16790
16791 # Dependencies to place before the objects being linked to create a
16792 # shared library.
16793 predeps=$lt_predeps_F77
16794
16795 # Dependencies to place after the objects being linked to create a
16796 # shared library.
16797 postdeps=$lt_postdeps_F77
16798
16799 # The library search path used internally by the compiler when linking
16800 # a shared library.
16801 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16802
16803 # Method to check whether dependent libraries are shared objects.
16804 deplibs_check_method=$lt_deplibs_check_method
16805
16806 # Command to use when deplibs_check_method == file_magic.
16807 file_magic_cmd=$lt_file_magic_cmd
16808
16809 # Flag that allows shared libraries with undefined symbols to be built.
16810 allow_undefined_flag=$lt_allow_undefined_flag_F77
16811
16812 # Flag that forces no undefined symbols.
16813 no_undefined_flag=$lt_no_undefined_flag_F77
16814
16815 # Commands used to finish a libtool library installation in a directory.
16816 finish_cmds=$lt_finish_cmds
16817
16818 # Same as above, but a single script fragment to be evaled but not shown.
16819 finish_eval=$lt_finish_eval
16820
16821 # Take the output of nm and produce a listing of raw symbols and C names.
16822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16823
16824 # Transform the output of nm in a proper C declaration
16825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16826
16827 # Transform the output of nm in a C name address pair
16828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16829
16830 # This is the shared library runtime path variable.
16831 runpath_var=$runpath_var
16832
16833 # This is the shared library path variable.
16834 shlibpath_var=$shlibpath_var
16835
16836 # Is shlibpath searched before the hard-coded library search path?
16837 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16838
16839 # How to hardcode a shared library path into an executable.
16840 hardcode_action=$hardcode_action_F77
16841
16842 # Whether we should hardcode library paths into libraries.
16843 hardcode_into_libs=$hardcode_into_libs
16844
16845 # Flag to hardcode \$libdir into a binary during linking.
16846 # This must work even if \$libdir does not exist.
16847 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16848
16849 # If ld is used when linking, flag to hardcode \$libdir into
16850 # a binary during linking. This must work even if \$libdir does
16851 # not exist.
16852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16853
16854 # Whether we need a single -rpath flag with a separated argument.
16855 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16856
16857 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16858 # resulting binary.
16859 hardcode_direct=$hardcode_direct_F77
16860
16861 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16862 # resulting binary.
16863 hardcode_minus_L=$hardcode_minus_L_F77
16864
16865 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16866 # the resulting binary.
16867 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16868
16869 # Set to yes if building a shared library automatically hardcodes DIR into the library
16870 # and all subsequent libraries and executables linked against it.
16871 hardcode_automatic=$hardcode_automatic_F77
16872
16873 # Variables whose values should be saved in libtool wrapper scripts and
16874 # restored at relink time.
16875 variables_saved_for_relink="$variables_saved_for_relink"
16876
16877 # Whether libtool must link a program against all its dependency libraries.
16878 link_all_deplibs=$link_all_deplibs_F77
16879
16880 # Compile-time system search path for libraries
16881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16882
16883 # Run-time system search path for libraries
16884 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16885
16886 # Fix the shell variable \$srcfile for the compiler.
16887 fix_srcfile_path="$fix_srcfile_path_F77"
16888
16889 # Set to yes if exported symbols are required.
16890 always_export_symbols=$always_export_symbols_F77
16891
16892 # The commands to list exported symbols.
16893 export_symbols_cmds=$lt_export_symbols_cmds_F77
16894
16895 # The commands to extract the exported symbol list from a shared archive.
16896 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16897
16898 # Symbols that should not be listed in the preloaded symbols.
16899 exclude_expsyms=$lt_exclude_expsyms_F77
16900
16901 # Symbols that must always be exported.
16902 include_expsyms=$lt_include_expsyms_F77
16903
16904 # ### END LIBTOOL TAG CONFIG: $tagname
16905
16906 __EOF__
16907
16908
16909 else
16910   # If there is no Makefile yet, we rely on a make rule to execute
16911   # `config.status --recheck' to rerun these tests and create the
16912   # libtool script then.
16913   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16914   if test -f "$ltmain_in"; then
16915     test -f Makefile && make "$ltmain"
16916   fi
16917 fi
16918
16919
16920 ac_ext=c
16921 ac_cpp='$CPP $CPPFLAGS'
16922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16925
16926 CC="$lt_save_CC"
16927
16928         else
16929           tagname=""
16930         fi
16931         ;;
16932
16933       GCJ)
16934         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16935
16936
16937 # Source file extension for Java test sources.
16938 ac_ext=java
16939
16940 # Object file extension for compiled Java test sources.
16941 objext=o
16942 objext_GCJ=$objext
16943
16944 # Code to be used in simple compile tests
16945 lt_simple_compile_test_code="class foo {}\n"
16946
16947 # Code to be used in simple link tests
16948 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16949
16950 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16951
16952 # If no C compiler was specified, use CC.
16953 LTCC=${LTCC-"$CC"}
16954
16955 # If no C compiler flags were specified, use CFLAGS.
16956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16957
16958 # Allow CC to be a program name with arguments.
16959 compiler=$CC
16960
16961
16962 # save warnings/boilerplate of simple test code
16963 ac_outfile=conftest.$ac_objext
16964 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16966 _lt_compiler_boilerplate=`cat conftest.err`
16967 $rm conftest*
16968
16969 ac_outfile=conftest.$ac_objext
16970 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16972 _lt_linker_boilerplate=`cat conftest.err`
16973 $rm conftest*
16974
16975
16976 # Allow CC to be a program name with arguments.
16977 lt_save_CC="$CC"
16978 CC=${GCJ-"gcj"}
16979 compiler=$CC
16980 compiler_GCJ=$CC
16981 for cc_temp in $compiler""; do
16982   case $cc_temp in
16983     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16984     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16985     \-*) ;;
16986     *) break;;
16987   esac
16988 done
16989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16990
16991
16992 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16993 archive_cmds_need_lc_GCJ=no
16994
16995 old_archive_cmds_GCJ=$old_archive_cmds
16996
16997
16998 lt_prog_compiler_no_builtin_flag_GCJ=
16999
17000 if test "$GCC" = yes; then
17001   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17002
17003
17004 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17005 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17006 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009   lt_cv_prog_compiler_rtti_exceptions=no
17010   ac_outfile=conftest.$ac_objext
17011    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17012    lt_compiler_flag="-fno-rtti -fno-exceptions"
17013    # Insert the option either (1) after the last *FLAGS variable, or
17014    # (2) before a word containing "conftest.", or (3) at the end.
17015    # Note that $ac_compile itself does not contain backslashes and begins
17016    # with a dollar sign (not a hyphen), so the echo should work correctly.
17017    # The option is referenced via a variable to avoid confusing sed.
17018    lt_compile=`echo "$ac_compile" | $SED \
17019    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17021    -e 's:$: $lt_compiler_flag:'`
17022    (eval echo "\"\$as_me:17022: $lt_compile\"" >&5)
17023    (eval "$lt_compile" 2>conftest.err)
17024    ac_status=$?
17025    cat conftest.err >&5
17026    echo "$as_me:17026: \$? = $ac_status" >&5
17027    if (exit $ac_status) && test -s "$ac_outfile"; then
17028      # The compiler can only warn and ignore the option if not recognized
17029      # So say no if there are warnings other than the usual output.
17030      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17031      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17032      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17033        lt_cv_prog_compiler_rtti_exceptions=yes
17034      fi
17035    fi
17036    $rm conftest*
17037
17038 fi
17039 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17040 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17041
17042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17043     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17044 else
17045     :
17046 fi
17047
17048 fi
17049
17050 lt_prog_compiler_wl_GCJ=
17051 lt_prog_compiler_pic_GCJ=
17052 lt_prog_compiler_static_GCJ=
17053
17054 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17055 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17056
17057   if test "$GCC" = yes; then
17058     lt_prog_compiler_wl_GCJ='-Wl,'
17059     lt_prog_compiler_static_GCJ='-static'
17060
17061     case $host_os in
17062       aix*)
17063       # All AIX code is PIC.
17064       if test "$host_cpu" = ia64; then
17065         # AIX 5 now supports IA64 processor
17066         lt_prog_compiler_static_GCJ='-Bstatic'
17067       fi
17068       ;;
17069
17070     amigaos*)
17071       # FIXME: we need at least 68020 code to build shared libraries, but
17072       # adding the `-m68020' flag to GCC prevents building anything better,
17073       # like `-m68040'.
17074       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17075       ;;
17076
17077     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17078       # PIC is the default for these OSes.
17079       ;;
17080
17081     mingw* | pw32* | os2*)
17082       # This hack is so that the source file can tell whether it is being
17083       # built for inclusion in a dll (and should export symbols for example).
17084       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17085       ;;
17086
17087     darwin* | rhapsody*)
17088       # PIC is the default on this platform
17089       # Common symbols not allowed in MH_DYLIB files
17090       lt_prog_compiler_pic_GCJ='-fno-common'
17091       ;;
17092
17093     interix3*)
17094       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17095       # Instead, we relocate shared libraries at runtime.
17096       ;;
17097
17098     msdosdjgpp*)
17099       # Just because we use GCC doesn't mean we suddenly get shared libraries
17100       # on systems that don't support them.
17101       lt_prog_compiler_can_build_shared_GCJ=no
17102       enable_shared=no
17103       ;;
17104
17105     sysv4*MP*)
17106       if test -d /usr/nec; then
17107         lt_prog_compiler_pic_GCJ=-Kconform_pic
17108       fi
17109       ;;
17110
17111     hpux*)
17112       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17113       # not for PA HP-UX.
17114       case $host_cpu in
17115       hppa*64*|ia64*)
17116         # +Z the default
17117         ;;
17118       *)
17119         lt_prog_compiler_pic_GCJ='-fPIC'
17120         ;;
17121       esac
17122       ;;
17123
17124     *)
17125       lt_prog_compiler_pic_GCJ='-fPIC'
17126       ;;
17127     esac
17128   else
17129     # PORTME Check for flag to pass linker flags through the system compiler.
17130     case $host_os in
17131     aix*)
17132       lt_prog_compiler_wl_GCJ='-Wl,'
17133       if test "$host_cpu" = ia64; then
17134         # AIX 5 now supports IA64 processor
17135         lt_prog_compiler_static_GCJ='-Bstatic'
17136       else
17137         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17138       fi
17139       ;;
17140       darwin*)
17141         # PIC is the default on this platform
17142         # Common symbols not allowed in MH_DYLIB files
17143        case $cc_basename in
17144          xlc*)
17145          lt_prog_compiler_pic_GCJ='-qnocommon'
17146          lt_prog_compiler_wl_GCJ='-Wl,'
17147          ;;
17148        esac
17149        ;;
17150
17151     mingw* | pw32* | os2*)
17152       # This hack is so that the source file can tell whether it is being
17153       # built for inclusion in a dll (and should export symbols for example).
17154       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17155       ;;
17156
17157     hpux9* | hpux10* | hpux11*)
17158       lt_prog_compiler_wl_GCJ='-Wl,'
17159       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17160       # not for PA HP-UX.
17161       case $host_cpu in
17162       hppa*64*|ia64*)
17163         # +Z the default
17164         ;;
17165       *)
17166         lt_prog_compiler_pic_GCJ='+Z'
17167         ;;
17168       esac
17169       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17170       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17171       ;;
17172
17173     irix5* | irix6* | nonstopux*)
17174       lt_prog_compiler_wl_GCJ='-Wl,'
17175       # PIC (with -KPIC) is the default.
17176       lt_prog_compiler_static_GCJ='-non_shared'
17177       ;;
17178
17179     newsos6)
17180       lt_prog_compiler_pic_GCJ='-KPIC'
17181       lt_prog_compiler_static_GCJ='-Bstatic'
17182       ;;
17183
17184     linux* | k*bsd*-gnu)
17185       case $cc_basename in
17186       icc* | ecc*)
17187         lt_prog_compiler_wl_GCJ='-Wl,'
17188         lt_prog_compiler_pic_GCJ='-KPIC'
17189         lt_prog_compiler_static_GCJ='-static'
17190         ;;
17191       pgcc* | pgf77* | pgf90* | pgf95*)
17192         # Portland Group compilers (*not* the Pentium gcc compiler,
17193         # which looks to be a dead project)
17194         lt_prog_compiler_wl_GCJ='-Wl,'
17195         lt_prog_compiler_pic_GCJ='-fpic'
17196         lt_prog_compiler_static_GCJ='-Bstatic'
17197         ;;
17198       ccc*)
17199         lt_prog_compiler_wl_GCJ='-Wl,'
17200         # All Alpha code is PIC.
17201         lt_prog_compiler_static_GCJ='-non_shared'
17202         ;;
17203       esac
17204       ;;
17205
17206     osf3* | osf4* | osf5*)
17207       lt_prog_compiler_wl_GCJ='-Wl,'
17208       # All OSF/1 code is PIC.
17209       lt_prog_compiler_static_GCJ='-non_shared'
17210       ;;
17211
17212     solaris*)
17213       lt_prog_compiler_pic_GCJ='-KPIC'
17214       lt_prog_compiler_static_GCJ='-Bstatic'
17215       case $cc_basename in
17216       f77* | f90* | f95*)
17217         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17218       *)
17219         lt_prog_compiler_wl_GCJ='-Wl,';;
17220       esac
17221       ;;
17222
17223     sunos4*)
17224       lt_prog_compiler_wl_GCJ='-Qoption ld '
17225       lt_prog_compiler_pic_GCJ='-PIC'
17226       lt_prog_compiler_static_GCJ='-Bstatic'
17227       ;;
17228
17229     sysv4 | sysv4.2uw2* | sysv4.3*)
17230       lt_prog_compiler_wl_GCJ='-Wl,'
17231       lt_prog_compiler_pic_GCJ='-KPIC'
17232       lt_prog_compiler_static_GCJ='-Bstatic'
17233       ;;
17234
17235     sysv4*MP*)
17236       if test -d /usr/nec ;then
17237         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17238         lt_prog_compiler_static_GCJ='-Bstatic'
17239       fi
17240       ;;
17241
17242     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17243       lt_prog_compiler_wl_GCJ='-Wl,'
17244       lt_prog_compiler_pic_GCJ='-KPIC'
17245       lt_prog_compiler_static_GCJ='-Bstatic'
17246       ;;
17247
17248     unicos*)
17249       lt_prog_compiler_wl_GCJ='-Wl,'
17250       lt_prog_compiler_can_build_shared_GCJ=no
17251       ;;
17252
17253     uts4*)
17254       lt_prog_compiler_pic_GCJ='-pic'
17255       lt_prog_compiler_static_GCJ='-Bstatic'
17256       ;;
17257
17258     *)
17259       lt_prog_compiler_can_build_shared_GCJ=no
17260       ;;
17261     esac
17262   fi
17263
17264 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17265 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17266
17267 #
17268 # Check to make sure the PIC flag actually works.
17269 #
17270 if test -n "$lt_prog_compiler_pic_GCJ"; then
17271
17272 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17273 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17274 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277   lt_prog_compiler_pic_works_GCJ=no
17278   ac_outfile=conftest.$ac_objext
17279    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17280    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17281    # Insert the option either (1) after the last *FLAGS variable, or
17282    # (2) before a word containing "conftest.", or (3) at the end.
17283    # Note that $ac_compile itself does not contain backslashes and begins
17284    # with a dollar sign (not a hyphen), so the echo should work correctly.
17285    # The option is referenced via a variable to avoid confusing sed.
17286    lt_compile=`echo "$ac_compile" | $SED \
17287    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17288    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17289    -e 's:$: $lt_compiler_flag:'`
17290    (eval echo "\"\$as_me:17290: $lt_compile\"" >&5)
17291    (eval "$lt_compile" 2>conftest.err)
17292    ac_status=$?
17293    cat conftest.err >&5
17294    echo "$as_me:17294: \$? = $ac_status" >&5
17295    if (exit $ac_status) && test -s "$ac_outfile"; then
17296      # The compiler can only warn and ignore the option if not recognized
17297      # So say no if there are warnings other than the usual output.
17298      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17299      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17300      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17301        lt_prog_compiler_pic_works_GCJ=yes
17302      fi
17303    fi
17304    $rm conftest*
17305
17306 fi
17307 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17308 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17309
17310 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17311     case $lt_prog_compiler_pic_GCJ in
17312      "" | " "*) ;;
17313      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17314      esac
17315 else
17316     lt_prog_compiler_pic_GCJ=
17317      lt_prog_compiler_can_build_shared_GCJ=no
17318 fi
17319
17320 fi
17321 case $host_os in
17322   # For platforms which do not support PIC, -DPIC is meaningless:
17323   *djgpp*)
17324     lt_prog_compiler_pic_GCJ=
17325     ;;
17326   *)
17327     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17328     ;;
17329 esac
17330
17331 #
17332 # Check to make sure the static flag actually works.
17333 #
17334 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17335 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17336 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17337 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   lt_prog_compiler_static_works_GCJ=no
17341    save_LDFLAGS="$LDFLAGS"
17342    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17343    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17344    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17345      # The linker can only warn and ignore the option if not recognized
17346      # So say no if there are warnings
17347      if test -s conftest.err; then
17348        # Append any errors to the config.log.
17349        cat conftest.err 1>&5
17350        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17351        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17352        if diff conftest.exp conftest.er2 >/dev/null; then
17353          lt_prog_compiler_static_works_GCJ=yes
17354        fi
17355      else
17356        lt_prog_compiler_static_works_GCJ=yes
17357      fi
17358    fi
17359    $rm conftest*
17360    LDFLAGS="$save_LDFLAGS"
17361
17362 fi
17363 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17364 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17365
17366 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17367     :
17368 else
17369     lt_prog_compiler_static_GCJ=
17370 fi
17371
17372
17373 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17375 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   lt_cv_prog_compiler_c_o_GCJ=no
17379    $rm -r conftest 2>/dev/null
17380    mkdir conftest
17381    cd conftest
17382    mkdir out
17383    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17384
17385    lt_compiler_flag="-o out/conftest2.$ac_objext"
17386    # Insert the option either (1) after the last *FLAGS variable, or
17387    # (2) before a word containing "conftest.", or (3) at the end.
17388    # Note that $ac_compile itself does not contain backslashes and begins
17389    # with a dollar sign (not a hyphen), so the echo should work correctly.
17390    lt_compile=`echo "$ac_compile" | $SED \
17391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17393    -e 's:$: $lt_compiler_flag:'`
17394    (eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
17395    (eval "$lt_compile" 2>out/conftest.err)
17396    ac_status=$?
17397    cat out/conftest.err >&5
17398    echo "$as_me:17398: \$? = $ac_status" >&5
17399    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17400    then
17401      # The compiler can only warn and ignore the option if not recognized
17402      # So say no if there are warnings
17403      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17404      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17405      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17406        lt_cv_prog_compiler_c_o_GCJ=yes
17407      fi
17408    fi
17409    chmod u+w . 2>&5
17410    $rm conftest*
17411    # SGI C++ compiler will create directory out/ii_files/ for
17412    # template instantiation
17413    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17414    $rm out/* && rmdir out
17415    cd ..
17416    rmdir conftest
17417    $rm conftest*
17418
17419 fi
17420 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17422
17423
17424 hard_links="nottested"
17425 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17426   # do not overwrite the value of need_locks provided by the user
17427   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17429   hard_links=yes
17430   $rm conftest*
17431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17432   touch conftest.a
17433   ln conftest.a conftest.b 2>&5 || hard_links=no
17434   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17435   { echo "$as_me:$LINENO: result: $hard_links" >&5
17436 echo "${ECHO_T}$hard_links" >&6; }
17437   if test "$hard_links" = no; then
17438     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17440     need_locks=warn
17441   fi
17442 else
17443   need_locks=no
17444 fi
17445
17446 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17448
17449   runpath_var=
17450   allow_undefined_flag_GCJ=
17451   enable_shared_with_static_runtimes_GCJ=no
17452   archive_cmds_GCJ=
17453   archive_expsym_cmds_GCJ=
17454   old_archive_From_new_cmds_GCJ=
17455   old_archive_from_expsyms_cmds_GCJ=
17456   export_dynamic_flag_spec_GCJ=
17457   whole_archive_flag_spec_GCJ=
17458   thread_safe_flag_spec_GCJ=
17459   hardcode_libdir_flag_spec_GCJ=
17460   hardcode_libdir_flag_spec_ld_GCJ=
17461   hardcode_libdir_separator_GCJ=
17462   hardcode_direct_GCJ=no
17463   hardcode_minus_L_GCJ=no
17464   hardcode_shlibpath_var_GCJ=unsupported
17465   link_all_deplibs_GCJ=unknown
17466   hardcode_automatic_GCJ=no
17467   module_cmds_GCJ=
17468   module_expsym_cmds_GCJ=
17469   always_export_symbols_GCJ=no
17470   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17471   # include_expsyms should be a list of space-separated symbols to be *always*
17472   # included in the symbol list
17473   include_expsyms_GCJ=
17474   # exclude_expsyms can be an extended regexp of symbols to exclude
17475   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17476   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17477   # as well as any symbol that contains `d'.
17478   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17479   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17480   # platforms (ab)use it in PIC code, but their linkers get confused if
17481   # the symbol is explicitly referenced.  Since portable code cannot
17482   # rely on this symbol name, it's probably fine to never include it in
17483   # preloaded symbol tables.
17484   extract_expsyms_cmds=
17485   # Just being paranoid about ensuring that cc_basename is set.
17486   for cc_temp in $compiler""; do
17487   case $cc_temp in
17488     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17489     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17490     \-*) ;;
17491     *) break;;
17492   esac
17493 done
17494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17495
17496   case $host_os in
17497   cygwin* | mingw* | pw32*)
17498     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17499     # When not using gcc, we currently assume that we are using
17500     # Microsoft Visual C++.
17501     if test "$GCC" != yes; then
17502       with_gnu_ld=no
17503     fi
17504     ;;
17505   interix*)
17506     # we just hope/assume this is gcc and not c89 (= MSVC++)
17507     with_gnu_ld=yes
17508     ;;
17509   openbsd*)
17510     with_gnu_ld=no
17511     ;;
17512   esac
17513
17514   ld_shlibs_GCJ=yes
17515   if test "$with_gnu_ld" = yes; then
17516     # If archive_cmds runs LD, not CC, wlarc should be empty
17517     wlarc='${wl}'
17518
17519     # Set some defaults for GNU ld with shared library support. These
17520     # are reset later if shared libraries are not supported. Putting them
17521     # here allows them to be overridden if necessary.
17522     runpath_var=LD_RUN_PATH
17523     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17524     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17525     # ancient GNU ld didn't support --whole-archive et. al.
17526     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17527         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17528       else
17529         whole_archive_flag_spec_GCJ=
17530     fi
17531     supports_anon_versioning=no
17532     case `$LD -v 2>/dev/null` in
17533       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17534       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17535       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17536       *\ 2.11.*) ;; # other 2.11 versions
17537       *) supports_anon_versioning=yes ;;
17538     esac
17539
17540     # See if GNU ld supports shared libraries.
17541     case $host_os in
17542     aix3* | aix4* | aix5*)
17543       # On AIX/PPC, the GNU linker is very broken
17544       if test "$host_cpu" != ia64; then
17545         ld_shlibs_GCJ=no
17546         cat <<EOF 1>&2
17547
17548 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17549 *** to be unable to reliably create shared libraries on AIX.
17550 *** Therefore, libtool is disabling shared libraries support.  If you
17551 *** really care for shared libraries, you may want to modify your PATH
17552 *** so that a non-GNU linker is found, and then restart.
17553
17554 EOF
17555       fi
17556       ;;
17557
17558     amigaos*)
17559       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)'
17560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561       hardcode_minus_L_GCJ=yes
17562
17563       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17564       # that the semantics of dynamic libraries on AmigaOS, at least up
17565       # to version 4, is to share data among multiple programs linked
17566       # with the same dynamic library.  Since this doesn't match the
17567       # behavior of shared libraries on other platforms, we can't use
17568       # them.
17569       ld_shlibs_GCJ=no
17570       ;;
17571
17572     beos*)
17573       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574         allow_undefined_flag_GCJ=unsupported
17575         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17576         # support --undefined.  This deserves some investigation.  FIXME
17577         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17578       else
17579         ld_shlibs_GCJ=no
17580       fi
17581       ;;
17582
17583     cygwin* | mingw* | pw32*)
17584       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17585       # as there is no search path for DLLs.
17586       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587       allow_undefined_flag_GCJ=unsupported
17588       always_export_symbols_GCJ=no
17589       enable_shared_with_static_runtimes_GCJ=yes
17590       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17591
17592       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17593         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17594         # If the export-symbols file already is a .def file (1st line
17595         # is EXPORTS), use it as is; otherwise, prepend...
17596         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17597           cp $export_symbols $output_objdir/$soname.def;
17598         else
17599           echo EXPORTS > $output_objdir/$soname.def;
17600           cat $export_symbols >> $output_objdir/$soname.def;
17601         fi~
17602         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17603       else
17604         ld_shlibs_GCJ=no
17605       fi
17606       ;;
17607
17608     interix3*)
17609       hardcode_direct_GCJ=no
17610       hardcode_shlibpath_var_GCJ=no
17611       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612       export_dynamic_flag_spec_GCJ='${wl}-E'
17613       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17614       # Instead, shared libraries are loaded at an image base (0x10000000 by
17615       # default) and relocated if they conflict, which is a slow very memory
17616       # consuming and fragmenting process.  To avoid this, we pick a random,
17617       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17618       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17619       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'
17620       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'
17621       ;;
17622
17623     linux* | k*bsd*-gnu)
17624       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17625         tmp_addflag=
17626         case $cc_basename,$host_cpu in
17627         pgcc*)                          # Portland Group C compiler
17628           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'
17629           tmp_addflag=' $pic_flag'
17630           ;;
17631         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17632           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'
17633           tmp_addflag=' $pic_flag -Mnomain' ;;
17634         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17635           tmp_addflag=' -i_dynamic' ;;
17636         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17637           tmp_addflag=' -i_dynamic -nofor_main' ;;
17638         ifc* | ifort*)                  # Intel Fortran compiler
17639           tmp_addflag=' -nofor_main' ;;
17640         esac
17641         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642
17643         if test $supports_anon_versioning = yes; then
17644           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17645   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17646   $echo "local: *; };" >> $output_objdir/$libname.ver~
17647           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17648         fi
17649         link_all_deplibs_GCJ=no
17650       else
17651         ld_shlibs_GCJ=no
17652       fi
17653       ;;
17654
17655     netbsd* | netbsdelf*-gnu)
17656       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17657         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17658         wlarc=
17659       else
17660         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17661         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17662       fi
17663       ;;
17664
17665     solaris*)
17666       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17667         ld_shlibs_GCJ=no
17668         cat <<EOF 1>&2
17669
17670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17671 *** create shared libraries on Solaris systems.  Therefore, libtool
17672 *** is disabling shared libraries support.  We urge you to upgrade GNU
17673 *** binutils to release 2.9.1 or newer.  Another option is to modify
17674 *** your PATH or compiler configuration so that the native linker is
17675 *** used, and then restart.
17676
17677 EOF
17678       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17679         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17680         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17681       else
17682         ld_shlibs_GCJ=no
17683       fi
17684       ;;
17685
17686     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17687       case `$LD -v 2>&1` in
17688         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17689         ld_shlibs_GCJ=no
17690         cat <<_LT_EOF 1>&2
17691
17692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17693 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17694 *** is disabling shared libraries support.  We urge you to upgrade GNU
17695 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17696 *** your PATH or compiler configuration so that the native linker is
17697 *** used, and then restart.
17698
17699 _LT_EOF
17700         ;;
17701         *)
17702           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17703             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17704             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17705             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17706           else
17707             ld_shlibs_GCJ=no
17708           fi
17709         ;;
17710       esac
17711       ;;
17712
17713     sunos4*)
17714       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17715       wlarc=
17716       hardcode_direct_GCJ=yes
17717       hardcode_shlibpath_var_GCJ=no
17718       ;;
17719
17720     *)
17721       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17722         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17723         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17724       else
17725         ld_shlibs_GCJ=no
17726       fi
17727       ;;
17728     esac
17729
17730     if test "$ld_shlibs_GCJ" = no; then
17731       runpath_var=
17732       hardcode_libdir_flag_spec_GCJ=
17733       export_dynamic_flag_spec_GCJ=
17734       whole_archive_flag_spec_GCJ=
17735     fi
17736   else
17737     # PORTME fill in a description of your system's linker (not GNU ld)
17738     case $host_os in
17739     aix3*)
17740       allow_undefined_flag_GCJ=unsupported
17741       always_export_symbols_GCJ=yes
17742       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'
17743       # Note: this linker hardcodes the directories in LIBPATH if there
17744       # are no directories specified by -L.
17745       hardcode_minus_L_GCJ=yes
17746       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17747         # Neither direct hardcoding nor static linking is supported with a
17748         # broken collect2.
17749         hardcode_direct_GCJ=unsupported
17750       fi
17751       ;;
17752
17753     aix4* | aix5*)
17754       if test "$host_cpu" = ia64; then
17755         # On IA64, the linker does run time linking by default, so we don't
17756         # have to do anything special.
17757         aix_use_runtimelinking=no
17758         exp_sym_flag='-Bexport'
17759         no_entry_flag=""
17760       else
17761         # If we're using GNU nm, then we don't want the "-C" option.
17762         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17763         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17764           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'
17765         else
17766           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'
17767         fi
17768         aix_use_runtimelinking=no
17769
17770         # Test if we are trying to use run time linking or normal
17771         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17772         # need to do runtime linking.
17773         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17774           for ld_flag in $LDFLAGS; do
17775           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17776             aix_use_runtimelinking=yes
17777             break
17778           fi
17779           done
17780           ;;
17781         esac
17782
17783         exp_sym_flag='-bexport'
17784         no_entry_flag='-bnoentry'
17785       fi
17786
17787       # When large executables or shared objects are built, AIX ld can
17788       # have problems creating the table of contents.  If linking a library
17789       # or program results in "error TOC overflow" add -mminimal-toc to
17790       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17791       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17792
17793       archive_cmds_GCJ=''
17794       hardcode_direct_GCJ=yes
17795       hardcode_libdir_separator_GCJ=':'
17796       link_all_deplibs_GCJ=yes
17797
17798       if test "$GCC" = yes; then
17799         case $host_os in aix4.[012]|aix4.[012].*)
17800         # We only want to do this on AIX 4.2 and lower, the check
17801         # below for broken collect2 doesn't work under 4.3+
17802           collect2name=`${CC} -print-prog-name=collect2`
17803           if test -f "$collect2name" && \
17804            strings "$collect2name" | grep resolve_lib_name >/dev/null
17805           then
17806           # We have reworked collect2
17807           hardcode_direct_GCJ=yes
17808           else
17809           # We have old collect2
17810           hardcode_direct_GCJ=unsupported
17811           # It fails to find uninstalled libraries when the uninstalled
17812           # path is not listed in the libpath.  Setting hardcode_minus_L
17813           # to unsupported forces relinking
17814           hardcode_minus_L_GCJ=yes
17815           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17816           hardcode_libdir_separator_GCJ=
17817           fi
17818           ;;
17819         esac
17820         shared_flag='-shared'
17821         if test "$aix_use_runtimelinking" = yes; then
17822           shared_flag="$shared_flag "'${wl}-G'
17823         fi
17824       else
17825         # not using gcc
17826         if test "$host_cpu" = ia64; then
17827         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17828         # chokes on -Wl,-G. The following line is correct:
17829           shared_flag='-G'
17830         else
17831           if test "$aix_use_runtimelinking" = yes; then
17832             shared_flag='${wl}-G'
17833           else
17834             shared_flag='${wl}-bM:SRE'
17835           fi
17836         fi
17837       fi
17838
17839       # It seems that -bexpall does not export symbols beginning with
17840       # underscore (_), so it is better to generate a list of symbols to export.
17841       always_export_symbols_GCJ=yes
17842       if test "$aix_use_runtimelinking" = yes; then
17843         # Warning - without using the other runtime loading flags (-brtl),
17844         # -berok will link without error, but may produce a broken library.
17845         allow_undefined_flag_GCJ='-berok'
17846        # Determine the default libpath from the value encoded in an empty executable.
17847        cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853
17854 int
17855 main ()
17856 {
17857
17858   ;
17859   return 0;
17860 }
17861 _ACEOF
17862 rm -f conftest.$ac_objext conftest$ac_exeext
17863 if { (ac_try="$ac_link"
17864 case "(($ac_try" in
17865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866   *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869   (eval "$ac_link") 2>conftest.er1
17870   ac_status=$?
17871   grep -v '^ *+' conftest.er1 >conftest.err
17872   rm -f conftest.er1
17873   cat conftest.err >&5
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); } && {
17876          test -z "$ac_c_werror_flag" ||
17877          test ! -s conftest.err
17878        } && test -s conftest$ac_exeext &&
17879        $as_test_x conftest$ac_exeext; then
17880
17881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17882 }'`
17883 # Check for a 64-bit object if we didn't find anything.
17884 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; }
17885 }'`; fi
17886 else
17887   echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890
17891 fi
17892
17893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894       conftest$ac_exeext conftest.$ac_ext
17895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17896
17897        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17898         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"
17899        else
17900         if test "$host_cpu" = ia64; then
17901           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17902           allow_undefined_flag_GCJ="-z nodefs"
17903           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"
17904         else
17905          # Determine the default libpath from the value encoded in an empty executable.
17906          cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h.  */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h.  */
17912
17913 int
17914 main ()
17915 {
17916
17917   ;
17918   return 0;
17919 }
17920 _ACEOF
17921 rm -f conftest.$ac_objext conftest$ac_exeext
17922 if { (ac_try="$ac_link"
17923 case "(($ac_try" in
17924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925   *) ac_try_echo=$ac_try;;
17926 esac
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928   (eval "$ac_link") 2>conftest.er1
17929   ac_status=$?
17930   grep -v '^ *+' conftest.er1 >conftest.err
17931   rm -f conftest.er1
17932   cat conftest.err >&5
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } && {
17935          test -z "$ac_c_werror_flag" ||
17936          test ! -s conftest.err
17937        } && test -s conftest$ac_exeext &&
17938        $as_test_x conftest$ac_exeext; then
17939
17940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17941 }'`
17942 # Check for a 64-bit object if we didn't find anything.
17943 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; }
17944 }'`; fi
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949
17950 fi
17951
17952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17953       conftest$ac_exeext conftest.$ac_ext
17954 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17955
17956          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17957           # Warning - without using the other run time loading flags,
17958           # -berok will link without error, but may produce a broken library.
17959           no_undefined_flag_GCJ=' ${wl}-bernotok'
17960           allow_undefined_flag_GCJ=' ${wl}-berok'
17961           # Exported symbols can be pulled into shared objects from archives
17962           whole_archive_flag_spec_GCJ='$convenience'
17963           archive_cmds_need_lc_GCJ=yes
17964           # This is similar to how AIX traditionally builds its shared libraries.
17965           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'
17966         fi
17967       fi
17968       ;;
17969
17970     amigaos*)
17971       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)'
17972       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973       hardcode_minus_L_GCJ=yes
17974       # see comment about different semantics on the GNU ld section
17975       ld_shlibs_GCJ=no
17976       ;;
17977
17978     bsdi[45]*)
17979       export_dynamic_flag_spec_GCJ=-rdynamic
17980       ;;
17981
17982     cygwin* | mingw* | pw32*)
17983       # When not using gcc, we currently assume that we are using
17984       # Microsoft Visual C++.
17985       # hardcode_libdir_flag_spec is actually meaningless, as there is
17986       # no search path for DLLs.
17987       hardcode_libdir_flag_spec_GCJ=' '
17988       allow_undefined_flag_GCJ=unsupported
17989       # Tell ltmain to make .lib files, not .a files.
17990       libext=lib
17991       # Tell ltmain to make .dll files, not .so files.
17992       shrext_cmds=".dll"
17993       # FIXME: Setting linknames here is a bad hack.
17994       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17995       # The linker will automatically build a .lib file if we build a DLL.
17996       old_archive_From_new_cmds_GCJ='true'
17997       # FIXME: Should let the user specify the lib program.
17998       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17999       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18000       enable_shared_with_static_runtimes_GCJ=yes
18001       ;;
18002
18003     darwin* | rhapsody*)
18004       case $host_os in
18005         rhapsody* | darwin1.[012])
18006          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18007          ;;
18008        *) # Darwin 1.3 on
18009          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18010            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18011          else
18012            case ${MACOSX_DEPLOYMENT_TARGET} in
18013              10.[012])
18014                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18015                ;;
18016              10.*)
18017                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18018                ;;
18019            esac
18020          fi
18021          ;;
18022       esac
18023       archive_cmds_need_lc_GCJ=no
18024       hardcode_direct_GCJ=no
18025       hardcode_automatic_GCJ=yes
18026       hardcode_shlibpath_var_GCJ=unsupported
18027       whole_archive_flag_spec_GCJ=''
18028       link_all_deplibs_GCJ=yes
18029     if test "$GCC" = yes ; then
18030         output_verbose_link_cmd='echo'
18031         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18032       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18033       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18034       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}'
18035       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}'
18036     else
18037       case $cc_basename in
18038         xlc*)
18039          output_verbose_link_cmd='echo'
18040          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18041          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18042           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18043          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}'
18044           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}'
18045           ;;
18046        *)
18047          ld_shlibs_GCJ=no
18048           ;;
18049       esac
18050     fi
18051       ;;
18052
18053     dgux*)
18054       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18056       hardcode_shlibpath_var_GCJ=no
18057       ;;
18058
18059     freebsd1*)
18060       ld_shlibs_GCJ=no
18061       ;;
18062
18063     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18064     # support.  Future versions do this automatically, but an explicit c++rt0.o
18065     # does not break anything, and helps significantly (at the cost of a little
18066     # extra space).
18067     freebsd2.2*)
18068       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18069       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18070       hardcode_direct_GCJ=yes
18071       hardcode_shlibpath_var_GCJ=no
18072       ;;
18073
18074     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18075     freebsd2*)
18076       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18077       hardcode_direct_GCJ=yes
18078       hardcode_minus_L_GCJ=yes
18079       hardcode_shlibpath_var_GCJ=no
18080       ;;
18081
18082     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18083     freebsd* | dragonfly*)
18084       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18085       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18086       hardcode_direct_GCJ=yes
18087       hardcode_shlibpath_var_GCJ=no
18088       ;;
18089
18090     hpux9*)
18091       if test "$GCC" = yes; then
18092         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'
18093       else
18094         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'
18095       fi
18096       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18097       hardcode_libdir_separator_GCJ=:
18098       hardcode_direct_GCJ=yes
18099
18100       # hardcode_minus_L: Not really in the search PATH,
18101       # but as the default location of the library.
18102       hardcode_minus_L_GCJ=yes
18103       export_dynamic_flag_spec_GCJ='${wl}-E'
18104       ;;
18105
18106     hpux10*)
18107       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18108         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18109       else
18110         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18111       fi
18112       if test "$with_gnu_ld" = no; then
18113         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18114         hardcode_libdir_separator_GCJ=:
18115
18116         hardcode_direct_GCJ=yes
18117         export_dynamic_flag_spec_GCJ='${wl}-E'
18118
18119         # hardcode_minus_L: Not really in the search PATH,
18120         # but as the default location of the library.
18121         hardcode_minus_L_GCJ=yes
18122       fi
18123       ;;
18124
18125     hpux11*)
18126       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18127         case $host_cpu in
18128         hppa*64*)
18129           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130           ;;
18131         ia64*)
18132           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18133           ;;
18134         *)
18135           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18136           ;;
18137         esac
18138       else
18139         case $host_cpu in
18140         hppa*64*)
18141           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142           ;;
18143         ia64*)
18144           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18145           ;;
18146         *)
18147           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18148           ;;
18149         esac
18150       fi
18151       if test "$with_gnu_ld" = no; then
18152         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18153         hardcode_libdir_separator_GCJ=:
18154
18155         case $host_cpu in
18156         hppa*64*|ia64*)
18157           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18158           hardcode_direct_GCJ=no
18159           hardcode_shlibpath_var_GCJ=no
18160           ;;
18161         *)
18162           hardcode_direct_GCJ=yes
18163           export_dynamic_flag_spec_GCJ='${wl}-E'
18164
18165           # hardcode_minus_L: Not really in the search PATH,
18166           # but as the default location of the library.
18167           hardcode_minus_L_GCJ=yes
18168           ;;
18169         esac
18170       fi
18171       ;;
18172
18173     irix5* | irix6* | nonstopux*)
18174       if test "$GCC" = yes; then
18175         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'
18176       else
18177         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'
18178         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18179       fi
18180       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18181       hardcode_libdir_separator_GCJ=:
18182       link_all_deplibs_GCJ=yes
18183       ;;
18184
18185     netbsd* | netbsdelf*-gnu)
18186       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18187         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18188       else
18189         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18190       fi
18191       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18192       hardcode_direct_GCJ=yes
18193       hardcode_shlibpath_var_GCJ=no
18194       ;;
18195
18196     newsos6)
18197       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198       hardcode_direct_GCJ=yes
18199       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18200       hardcode_libdir_separator_GCJ=:
18201       hardcode_shlibpath_var_GCJ=no
18202       ;;
18203
18204     openbsd*)
18205       hardcode_direct_GCJ=yes
18206       hardcode_shlibpath_var_GCJ=no
18207       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18208         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18209         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18210         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18211         export_dynamic_flag_spec_GCJ='${wl}-E'
18212       else
18213        case $host_os in
18214          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18215            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18216            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18217            ;;
18218          *)
18219            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18220            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18221            ;;
18222        esac
18223       fi
18224       ;;
18225
18226     os2*)
18227       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18228       hardcode_minus_L_GCJ=yes
18229       allow_undefined_flag_GCJ=unsupported
18230       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'
18231       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18232       ;;
18233
18234     osf3*)
18235       if test "$GCC" = yes; then
18236         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18237         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'
18238       else
18239         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18240         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'
18241       fi
18242       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18243       hardcode_libdir_separator_GCJ=:
18244       ;;
18245
18246     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18247       if test "$GCC" = yes; then
18248         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18249         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'
18250         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18251       else
18252         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18253         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'
18254         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~
18255         $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'
18256
18257         # Both c and cxx compiler support -rpath directly
18258         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18259       fi
18260       hardcode_libdir_separator_GCJ=:
18261       ;;
18262
18263     solaris*)
18264       no_undefined_flag_GCJ=' -z text'
18265       if test "$GCC" = yes; then
18266         wlarc='${wl}'
18267         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18268         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18269           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18270       else
18271         wlarc=''
18272         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18273         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18274         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18275       fi
18276       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18277       hardcode_shlibpath_var_GCJ=no
18278       case $host_os in
18279       solaris2.[0-5] | solaris2.[0-5].*) ;;
18280       *)
18281         # The compiler driver will combine linker options so we
18282         # cannot just pass the convience library names through
18283         # without $wl, iff we do not link with $LD.
18284         # Luckily, gcc supports the same syntax we need for Sun Studio.
18285         # Supported since Solaris 2.6 (maybe 2.5.1?)
18286         case $wlarc in
18287         '')
18288           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18289         *)
18290           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' ;;
18291         esac ;;
18292       esac
18293       link_all_deplibs_GCJ=yes
18294       ;;
18295
18296     sunos4*)
18297       if test "x$host_vendor" = xsequent; then
18298         # Use $CC to link under sequent, because it throws in some extra .o
18299         # files that make .init and .fini sections work.
18300         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18301       else
18302         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18303       fi
18304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305       hardcode_direct_GCJ=yes
18306       hardcode_minus_L_GCJ=yes
18307       hardcode_shlibpath_var_GCJ=no
18308       ;;
18309
18310     sysv4)
18311       case $host_vendor in
18312         sni)
18313           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314           hardcode_direct_GCJ=yes # is this really true???
18315         ;;
18316         siemens)
18317           ## LD is ld it makes a PLAMLIB
18318           ## CC just makes a GrossModule.
18319           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18320           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18321           hardcode_direct_GCJ=no
18322         ;;
18323         motorola)
18324           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18326         ;;
18327       esac
18328       runpath_var='LD_RUN_PATH'
18329       hardcode_shlibpath_var_GCJ=no
18330       ;;
18331
18332     sysv4.3*)
18333       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334       hardcode_shlibpath_var_GCJ=no
18335       export_dynamic_flag_spec_GCJ='-Bexport'
18336       ;;
18337
18338     sysv4*MP*)
18339       if test -d /usr/nec; then
18340         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341         hardcode_shlibpath_var_GCJ=no
18342         runpath_var=LD_RUN_PATH
18343         hardcode_runpath_var=yes
18344         ld_shlibs_GCJ=yes
18345       fi
18346       ;;
18347
18348     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18349       no_undefined_flag_GCJ='${wl}-z,text'
18350       archive_cmds_need_lc_GCJ=no
18351       hardcode_shlibpath_var_GCJ=no
18352       runpath_var='LD_RUN_PATH'
18353
18354       if test "$GCC" = yes; then
18355         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18356         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18357       else
18358         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18359         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18360       fi
18361       ;;
18362
18363     sysv5* | sco3.2v5* | sco5v6*)
18364       # Note: We can NOT use -z defs as we might desire, because we do not
18365       # link with -lc, and that would cause any symbols used from libc to
18366       # always be unresolved, which means just about no library would
18367       # ever link correctly.  If we're not using GNU ld we use -z text
18368       # though, which does catch some bad symbols but isn't as heavy-handed
18369       # as -z defs.
18370       no_undefined_flag_GCJ='${wl}-z,text'
18371       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18372       archive_cmds_need_lc_GCJ=no
18373       hardcode_shlibpath_var_GCJ=no
18374       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18375       hardcode_libdir_separator_GCJ=':'
18376       link_all_deplibs_GCJ=yes
18377       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18378       runpath_var='LD_RUN_PATH'
18379
18380       if test "$GCC" = yes; then
18381         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18382         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18383       else
18384         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18386       fi
18387       ;;
18388
18389     uts4*)
18390       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18392       hardcode_shlibpath_var_GCJ=no
18393       ;;
18394
18395     *)
18396       ld_shlibs_GCJ=no
18397       ;;
18398     esac
18399   fi
18400
18401 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18402 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18403 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18404
18405 #
18406 # Do we need to explicitly link libc?
18407 #
18408 case "x$archive_cmds_need_lc_GCJ" in
18409 x|xyes)
18410   # Assume -lc should be added
18411   archive_cmds_need_lc_GCJ=yes
18412
18413   if test "$enable_shared" = yes && test "$GCC" = yes; then
18414     case $archive_cmds_GCJ in
18415     *'~'*)
18416       # FIXME: we may have to deal with multi-command sequences.
18417       ;;
18418     '$CC '*)
18419       # Test whether the compiler implicitly links with -lc since on some
18420       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18421       # to ld, don't add -lc before -lgcc.
18422       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18423 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18424       $rm conftest*
18425       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18426
18427       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18428   (eval $ac_compile) 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } 2>conftest.err; then
18432         soname=conftest
18433         lib=conftest
18434         libobjs=conftest.$ac_objext
18435         deplibs=
18436         wl=$lt_prog_compiler_wl_GCJ
18437         pic_flag=$lt_prog_compiler_pic_GCJ
18438         compiler_flags=-v
18439         linker_flags=-v
18440         verstring=
18441         output_objdir=.
18442         libname=conftest
18443         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18444         allow_undefined_flag_GCJ=
18445         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18446   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }
18450         then
18451           archive_cmds_need_lc_GCJ=no
18452         else
18453           archive_cmds_need_lc_GCJ=yes
18454         fi
18455         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18456       else
18457         cat conftest.err 1>&5
18458       fi
18459       $rm conftest*
18460       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18461 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18462       ;;
18463     esac
18464   fi
18465   ;;
18466 esac
18467
18468 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18469 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18470 library_names_spec=
18471 libname_spec='lib$name'
18472 soname_spec=
18473 shrext_cmds=".so"
18474 postinstall_cmds=
18475 postuninstall_cmds=
18476 finish_cmds=
18477 finish_eval=
18478 shlibpath_var=
18479 shlibpath_overrides_runpath=unknown
18480 version_type=none
18481 dynamic_linker="$host_os ld.so"
18482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18483 if test "$GCC" = yes; then
18484   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18485   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18486     # if the path contains ";" then we assume it to be the separator
18487     # otherwise default to the standard path separator (i.e. ":") - it is
18488     # assumed that no part of a normal pathname contains ";" but that should
18489     # okay in the real world where ";" in dirpaths is itself problematic.
18490     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18491   else
18492     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18493   fi
18494 else
18495   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18496 fi
18497 need_lib_prefix=unknown
18498 hardcode_into_libs=no
18499
18500 # when you set need_version to no, make sure it does not cause -set_version
18501 # flags to be left without arguments
18502 need_version=unknown
18503
18504 case $host_os in
18505 aix3*)
18506   version_type=linux
18507   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18508   shlibpath_var=LIBPATH
18509
18510   # AIX 3 has no versioning support, so we append a major version to the name.
18511   soname_spec='${libname}${release}${shared_ext}$major'
18512   ;;
18513
18514 aix4* | aix5*)
18515   version_type=linux
18516   need_lib_prefix=no
18517   need_version=no
18518   hardcode_into_libs=yes
18519   if test "$host_cpu" = ia64; then
18520     # AIX 5 supports IA64
18521     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18522     shlibpath_var=LD_LIBRARY_PATH
18523   else
18524     # With GCC up to 2.95.x, collect2 would create an import file
18525     # for dependence libraries.  The import file would start with
18526     # the line `#! .'.  This would cause the generated library to
18527     # depend on `.', always an invalid library.  This was fixed in
18528     # development snapshots of GCC prior to 3.0.
18529     case $host_os in
18530       aix4 | aix4.[01] | aix4.[01].*)
18531       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18532            echo ' yes '
18533            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18534         :
18535       else
18536         can_build_shared=no
18537       fi
18538       ;;
18539     esac
18540     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18541     # soname into executable. Probably we can add versioning support to
18542     # collect2, so additional links can be useful in future.
18543     if test "$aix_use_runtimelinking" = yes; then
18544       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18545       # instead of lib<name>.a to let people know that these are not
18546       # typical AIX shared libraries.
18547       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18548     else
18549       # We preserve .a as extension for shared libraries through AIX4.2
18550       # and later when we are not doing run time linking.
18551       library_names_spec='${libname}${release}.a $libname.a'
18552       soname_spec='${libname}${release}${shared_ext}$major'
18553     fi
18554     shlibpath_var=LIBPATH
18555   fi
18556   ;;
18557
18558 amigaos*)
18559   library_names_spec='$libname.ixlibrary $libname.a'
18560   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18561   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'
18562   ;;
18563
18564 beos*)
18565   library_names_spec='${libname}${shared_ext}'
18566   dynamic_linker="$host_os ld.so"
18567   shlibpath_var=LIBRARY_PATH
18568   ;;
18569
18570 bsdi[45]*)
18571   version_type=linux
18572   need_version=no
18573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574   soname_spec='${libname}${release}${shared_ext}$major'
18575   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18576   shlibpath_var=LD_LIBRARY_PATH
18577   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18578   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18579   # the default ld.so.conf also contains /usr/contrib/lib and
18580   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18581   # libtool to hard-code these into programs
18582   ;;
18583
18584 cygwin* | mingw* | pw32*)
18585   version_type=windows
18586   shrext_cmds=".dll"
18587   need_version=no
18588   need_lib_prefix=no
18589
18590   case $GCC,$host_os in
18591   yes,cygwin* | yes,mingw* | yes,pw32*)
18592     library_names_spec='$libname.dll.a'
18593     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18594     postinstall_cmds='base_file=`basename \${file}`~
18595       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18596       dldir=$destdir/`dirname \$dlpath`~
18597       test -d \$dldir || mkdir -p \$dldir~
18598       $install_prog $dir/$dlname \$dldir/$dlname~
18599       chmod a+x \$dldir/$dlname'
18600     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18601       dlpath=$dir/\$dldll~
18602        $rm \$dlpath'
18603     shlibpath_overrides_runpath=yes
18604
18605     case $host_os in
18606     cygwin*)
18607       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18608       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18609       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18610       ;;
18611     mingw*)
18612       # MinGW DLLs use traditional 'lib' prefix
18613       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18614       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18615       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18616         # It is most probably a Windows format PATH printed by
18617         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18618         # path with ; separators, and with drive letters. We can handle the
18619         # drive letters (cygwin fileutils understands them), so leave them,
18620         # especially as we might pass files found there to a mingw objdump,
18621         # which wouldn't understand a cygwinified path. Ahh.
18622         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18623       else
18624         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18625       fi
18626       ;;
18627     pw32*)
18628       # pw32 DLLs use 'pw' prefix rather than 'lib'
18629       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18630       ;;
18631     esac
18632     ;;
18633
18634   *)
18635     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18636     ;;
18637   esac
18638   dynamic_linker='Win32 ld.exe'
18639   # FIXME: first we should search . and the directory the executable is in
18640   shlibpath_var=PATH
18641   ;;
18642
18643 darwin* | rhapsody*)
18644   dynamic_linker="$host_os dyld"
18645   version_type=darwin
18646   need_lib_prefix=no
18647   need_version=no
18648   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18649   soname_spec='${libname}${release}${major}$shared_ext'
18650   shlibpath_overrides_runpath=yes
18651   shlibpath_var=DYLD_LIBRARY_PATH
18652   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18653   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18654   if test "$GCC" = yes; then
18655     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"`
18656   else
18657     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18658   fi
18659   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18660   ;;
18661
18662 dgux*)
18663   version_type=linux
18664   need_lib_prefix=no
18665   need_version=no
18666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18667   soname_spec='${libname}${release}${shared_ext}$major'
18668   shlibpath_var=LD_LIBRARY_PATH
18669   ;;
18670
18671 freebsd1*)
18672   dynamic_linker=no
18673   ;;
18674
18675 freebsd* | dragonfly*)
18676   # DragonFly does not have aout.  When/if they implement a new
18677   # versioning mechanism, adjust this.
18678   if test -x /usr/bin/objformat; then
18679     objformat=`/usr/bin/objformat`
18680   else
18681     case $host_os in
18682     freebsd[123]*) objformat=aout ;;
18683     *) objformat=elf ;;
18684     esac
18685   fi
18686   version_type=freebsd-$objformat
18687   case $version_type in
18688     freebsd-elf*)
18689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18690       need_version=no
18691       need_lib_prefix=no
18692       ;;
18693     freebsd-*)
18694       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18695       need_version=yes
18696       ;;
18697   esac
18698   shlibpath_var=LD_LIBRARY_PATH
18699   case $host_os in
18700   freebsd2*)
18701     shlibpath_overrides_runpath=yes
18702     ;;
18703   freebsd3.[01]* | freebsdelf3.[01]*)
18704     shlibpath_overrides_runpath=yes
18705     hardcode_into_libs=yes
18706     ;;
18707   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18708   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18709     shlibpath_overrides_runpath=no
18710     hardcode_into_libs=yes
18711     ;;
18712   freebsd*) # from 4.6 on
18713     shlibpath_overrides_runpath=yes
18714     hardcode_into_libs=yes
18715     ;;
18716   esac
18717   ;;
18718
18719 gnu*)
18720   version_type=linux
18721   need_lib_prefix=no
18722   need_version=no
18723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18724   soname_spec='${libname}${release}${shared_ext}$major'
18725   shlibpath_var=LD_LIBRARY_PATH
18726   hardcode_into_libs=yes
18727   ;;
18728
18729 hpux9* | hpux10* | hpux11*)
18730   # Give a soname corresponding to the major version so that dld.sl refuses to
18731   # link against other versions.
18732   version_type=sunos
18733   need_lib_prefix=no
18734   need_version=no
18735   case $host_cpu in
18736   ia64*)
18737     shrext_cmds='.so'
18738     hardcode_into_libs=yes
18739     dynamic_linker="$host_os dld.so"
18740     shlibpath_var=LD_LIBRARY_PATH
18741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743     soname_spec='${libname}${release}${shared_ext}$major'
18744     if test "X$HPUX_IA64_MODE" = X32; then
18745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18746     else
18747       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18748     fi
18749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18750     ;;
18751    hppa*64*)
18752      shrext_cmds='.sl'
18753      hardcode_into_libs=yes
18754      dynamic_linker="$host_os dld.sl"
18755      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18756      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18758      soname_spec='${libname}${release}${shared_ext}$major'
18759      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18760      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18761      ;;
18762    *)
18763     shrext_cmds='.sl'
18764     dynamic_linker="$host_os dld.sl"
18765     shlibpath_var=SHLIB_PATH
18766     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768     soname_spec='${libname}${release}${shared_ext}$major'
18769     ;;
18770   esac
18771   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18772   postinstall_cmds='chmod 555 $lib'
18773   ;;
18774
18775 interix3*)
18776   version_type=linux
18777   need_lib_prefix=no
18778   need_version=no
18779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18780   soname_spec='${libname}${release}${shared_ext}$major'
18781   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18782   shlibpath_var=LD_LIBRARY_PATH
18783   shlibpath_overrides_runpath=no
18784   hardcode_into_libs=yes
18785   ;;
18786
18787 irix5* | irix6* | nonstopux*)
18788   case $host_os in
18789     nonstopux*) version_type=nonstopux ;;
18790     *)
18791         if test "$lt_cv_prog_gnu_ld" = yes; then
18792                 version_type=linux
18793         else
18794                 version_type=irix
18795         fi ;;
18796   esac
18797   need_lib_prefix=no
18798   need_version=no
18799   soname_spec='${libname}${release}${shared_ext}$major'
18800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18801   case $host_os in
18802   irix5* | nonstopux*)
18803     libsuff= shlibsuff=
18804     ;;
18805   *)
18806     case $LD in # libtool.m4 will add one of these switches to LD
18807     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18808       libsuff= shlibsuff= libmagic=32-bit;;
18809     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18810       libsuff=32 shlibsuff=N32 libmagic=N32;;
18811     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18812       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18813     *) libsuff= shlibsuff= libmagic=never-match;;
18814     esac
18815     ;;
18816   esac
18817   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18818   shlibpath_overrides_runpath=no
18819   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18820   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18821   hardcode_into_libs=yes
18822   ;;
18823
18824 # No shared lib support for Linux oldld, aout, or coff.
18825 linux*oldld* | linux*aout* | linux*coff*)
18826   dynamic_linker=no
18827   ;;
18828
18829 # This must be Linux ELF.
18830 linux* | k*bsd*-gnu)
18831   version_type=linux
18832   need_lib_prefix=no
18833   need_version=no
18834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835   soname_spec='${libname}${release}${shared_ext}$major'
18836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18837   shlibpath_var=LD_LIBRARY_PATH
18838   shlibpath_overrides_runpath=no
18839   # This implies no fast_install, which is unacceptable.
18840   # Some rework will be needed to allow for fast_install
18841   # before this can be enabled.
18842   hardcode_into_libs=yes
18843
18844   # Append ld.so.conf contents to the search path
18845   if test -f /etc/ld.so.conf; then
18846     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' ' '`
18847     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18848   fi
18849
18850   # We used to test for /lib/ld.so.1 and disable shared libraries on
18851   # powerpc, because MkLinux only supported shared libraries with the
18852   # GNU dynamic linker.  Since this was broken with cross compilers,
18853   # most powerpc-linux boxes support dynamic linking these days and
18854   # people can always --disable-shared, the test was removed, and we
18855   # assume the GNU/Linux dynamic linker is in use.
18856   dynamic_linker='GNU/Linux ld.so'
18857   ;;
18858
18859 netbsdelf*-gnu)
18860   version_type=linux
18861   need_lib_prefix=no
18862   need_version=no
18863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18864   soname_spec='${libname}${release}${shared_ext}$major'
18865   shlibpath_var=LD_LIBRARY_PATH
18866   shlibpath_overrides_runpath=no
18867   hardcode_into_libs=yes
18868   dynamic_linker='NetBSD ld.elf_so'
18869   ;;
18870
18871 netbsd*)
18872   version_type=sunos
18873   need_lib_prefix=no
18874   need_version=no
18875   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18877     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18878     dynamic_linker='NetBSD (a.out) ld.so'
18879   else
18880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18881     soname_spec='${libname}${release}${shared_ext}$major'
18882     dynamic_linker='NetBSD ld.elf_so'
18883   fi
18884   shlibpath_var=LD_LIBRARY_PATH
18885   shlibpath_overrides_runpath=yes
18886   hardcode_into_libs=yes
18887   ;;
18888
18889 newsos6)
18890   version_type=linux
18891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892   shlibpath_var=LD_LIBRARY_PATH
18893   shlibpath_overrides_runpath=yes
18894   ;;
18895
18896 nto-qnx*)
18897   version_type=linux
18898   need_lib_prefix=no
18899   need_version=no
18900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18901   soname_spec='${libname}${release}${shared_ext}$major'
18902   shlibpath_var=LD_LIBRARY_PATH
18903   shlibpath_overrides_runpath=yes
18904   ;;
18905
18906 openbsd*)
18907   version_type=sunos
18908   sys_lib_dlsearch_path_spec="/usr/lib"
18909   need_lib_prefix=no
18910   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18911   case $host_os in
18912     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18913     *)                         need_version=no  ;;
18914   esac
18915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18916   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18917   shlibpath_var=LD_LIBRARY_PATH
18918   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18919     case $host_os in
18920       openbsd2.[89] | openbsd2.[89].*)
18921         shlibpath_overrides_runpath=no
18922         ;;
18923       *)
18924         shlibpath_overrides_runpath=yes
18925         ;;
18926       esac
18927   else
18928     shlibpath_overrides_runpath=yes
18929   fi
18930   ;;
18931
18932 os2*)
18933   libname_spec='$name'
18934   shrext_cmds=".dll"
18935   need_lib_prefix=no
18936   library_names_spec='$libname${shared_ext} $libname.a'
18937   dynamic_linker='OS/2 ld.exe'
18938   shlibpath_var=LIBPATH
18939   ;;
18940
18941 osf3* | osf4* | osf5*)
18942   version_type=osf
18943   need_lib_prefix=no
18944   need_version=no
18945   soname_spec='${libname}${release}${shared_ext}$major'
18946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18947   shlibpath_var=LD_LIBRARY_PATH
18948   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18949   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18950   ;;
18951
18952 solaris*)
18953   version_type=linux
18954   need_lib_prefix=no
18955   need_version=no
18956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18957   soname_spec='${libname}${release}${shared_ext}$major'
18958   shlibpath_var=LD_LIBRARY_PATH
18959   shlibpath_overrides_runpath=yes
18960   hardcode_into_libs=yes
18961   # ldd complains unless libraries are executable
18962   postinstall_cmds='chmod +x $lib'
18963   ;;
18964
18965 sunos4*)
18966   version_type=sunos
18967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18968   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18969   shlibpath_var=LD_LIBRARY_PATH
18970   shlibpath_overrides_runpath=yes
18971   if test "$with_gnu_ld" = yes; then
18972     need_lib_prefix=no
18973   fi
18974   need_version=yes
18975   ;;
18976
18977 sysv4 | sysv4.3*)
18978   version_type=linux
18979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18980   soname_spec='${libname}${release}${shared_ext}$major'
18981   shlibpath_var=LD_LIBRARY_PATH
18982   case $host_vendor in
18983     sni)
18984       shlibpath_overrides_runpath=no
18985       need_lib_prefix=no
18986       export_dynamic_flag_spec='${wl}-Blargedynsym'
18987       runpath_var=LD_RUN_PATH
18988       ;;
18989     siemens)
18990       need_lib_prefix=no
18991       ;;
18992     motorola)
18993       need_lib_prefix=no
18994       need_version=no
18995       shlibpath_overrides_runpath=no
18996       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18997       ;;
18998   esac
18999   ;;
19000
19001 sysv4*MP*)
19002   if test -d /usr/nec ;then
19003     version_type=linux
19004     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19005     soname_spec='$libname${shared_ext}.$major'
19006     shlibpath_var=LD_LIBRARY_PATH
19007   fi
19008   ;;
19009
19010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19011   version_type=freebsd-elf
19012   need_lib_prefix=no
19013   need_version=no
19014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19015   soname_spec='${libname}${release}${shared_ext}$major'
19016   shlibpath_var=LD_LIBRARY_PATH
19017   hardcode_into_libs=yes
19018   if test "$with_gnu_ld" = yes; then
19019     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19020     shlibpath_overrides_runpath=no
19021   else
19022     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19023     shlibpath_overrides_runpath=yes
19024     case $host_os in
19025       sco3.2v5*)
19026         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19027         ;;
19028     esac
19029   fi
19030   sys_lib_dlsearch_path_spec='/usr/lib'
19031   ;;
19032
19033 uts4*)
19034   version_type=linux
19035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19036   soname_spec='${libname}${release}${shared_ext}$major'
19037   shlibpath_var=LD_LIBRARY_PATH
19038   ;;
19039
19040 *)
19041   dynamic_linker=no
19042   ;;
19043 esac
19044 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19045 echo "${ECHO_T}$dynamic_linker" >&6; }
19046 test "$dynamic_linker" = no && can_build_shared=no
19047
19048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19049 if test "$GCC" = yes; then
19050   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19051 fi
19052
19053 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19054 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19055 hardcode_action_GCJ=
19056 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19057    test -n "$runpath_var_GCJ" || \
19058    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19059
19060   # We can hardcode non-existant directories.
19061   if test "$hardcode_direct_GCJ" != no &&
19062      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19063      # have to relink, otherwise we might link with an installed library
19064      # when we should be linking with a yet-to-be-installed one
19065      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19066      test "$hardcode_minus_L_GCJ" != no; then
19067     # Linking always hardcodes the temporary library directory.
19068     hardcode_action_GCJ=relink
19069   else
19070     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19071     hardcode_action_GCJ=immediate
19072   fi
19073 else
19074   # We cannot hardcode anything, or else we can only hardcode existing
19075   # directories.
19076   hardcode_action_GCJ=unsupported
19077 fi
19078 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19079 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19080
19081 if test "$hardcode_action_GCJ" = relink; then
19082   # Fast installation is not supported
19083   enable_fast_install=no
19084 elif test "$shlibpath_overrides_runpath" = yes ||
19085      test "$enable_shared" = no; then
19086   # Fast installation is not necessary
19087   enable_fast_install=needless
19088 fi
19089
19090
19091 # The else clause should only fire when bootstrapping the
19092 # libtool distribution, otherwise you forgot to ship ltmain.sh
19093 # with your package, and you will get complaints that there are
19094 # no rules to generate ltmain.sh.
19095 if test -f "$ltmain"; then
19096   # See if we are running on zsh, and set the options which allow our commands through
19097   # without removal of \ escapes.
19098   if test -n "${ZSH_VERSION+set}" ; then
19099     setopt NO_GLOB_SUBST
19100   fi
19101   # Now quote all the things that may contain metacharacters while being
19102   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19103   # variables and quote the copies for generation of the libtool script.
19104   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19105     SED SHELL STRIP \
19106     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19107     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19108     deplibs_check_method reload_flag reload_cmds need_locks \
19109     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19110     lt_cv_sys_global_symbol_to_c_name_address \
19111     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19112     old_postinstall_cmds old_postuninstall_cmds \
19113     compiler_GCJ \
19114     CC_GCJ \
19115     LD_GCJ \
19116     lt_prog_compiler_wl_GCJ \
19117     lt_prog_compiler_pic_GCJ \
19118     lt_prog_compiler_static_GCJ \
19119     lt_prog_compiler_no_builtin_flag_GCJ \
19120     export_dynamic_flag_spec_GCJ \
19121     thread_safe_flag_spec_GCJ \
19122     whole_archive_flag_spec_GCJ \
19123     enable_shared_with_static_runtimes_GCJ \
19124     old_archive_cmds_GCJ \
19125     old_archive_from_new_cmds_GCJ \
19126     predep_objects_GCJ \
19127     postdep_objects_GCJ \
19128     predeps_GCJ \
19129     postdeps_GCJ \
19130     compiler_lib_search_path_GCJ \
19131     archive_cmds_GCJ \
19132     archive_expsym_cmds_GCJ \
19133     postinstall_cmds_GCJ \
19134     postuninstall_cmds_GCJ \
19135     old_archive_from_expsyms_cmds_GCJ \
19136     allow_undefined_flag_GCJ \
19137     no_undefined_flag_GCJ \
19138     export_symbols_cmds_GCJ \
19139     hardcode_libdir_flag_spec_GCJ \
19140     hardcode_libdir_flag_spec_ld_GCJ \
19141     hardcode_libdir_separator_GCJ \
19142     hardcode_automatic_GCJ \
19143     module_cmds_GCJ \
19144     module_expsym_cmds_GCJ \
19145     lt_cv_prog_compiler_c_o_GCJ \
19146     exclude_expsyms_GCJ \
19147     include_expsyms_GCJ; do
19148
19149     case $var in
19150     old_archive_cmds_GCJ | \
19151     old_archive_from_new_cmds_GCJ | \
19152     archive_cmds_GCJ | \
19153     archive_expsym_cmds_GCJ | \
19154     module_cmds_GCJ | \
19155     module_expsym_cmds_GCJ | \
19156     old_archive_from_expsyms_cmds_GCJ | \
19157     export_symbols_cmds_GCJ | \
19158     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19159     postinstall_cmds | postuninstall_cmds | \
19160     old_postinstall_cmds | old_postuninstall_cmds | \
19161     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19162       # Double-quote double-evaled strings.
19163       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19164       ;;
19165     *)
19166       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19167       ;;
19168     esac
19169   done
19170
19171   case $lt_echo in
19172   *'\$0 --fallback-echo"')
19173     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19174     ;;
19175   esac
19176
19177 cfgfile="$ofile"
19178
19179   cat <<__EOF__ >> "$cfgfile"
19180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19181
19182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19183
19184 # Shell to use when invoking shell scripts.
19185 SHELL=$lt_SHELL
19186
19187 # Whether or not to build shared libraries.
19188 build_libtool_libs=$enable_shared
19189
19190 # Whether or not to build static libraries.
19191 build_old_libs=$enable_static
19192
19193 # Whether or not to add -lc for building shared libraries.
19194 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19195
19196 # Whether or not to disallow shared libs when runtime libs are static
19197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19198
19199 # Whether or not to optimize for fast installation.
19200 fast_install=$enable_fast_install
19201
19202 # The host system.
19203 host_alias=$host_alias
19204 host=$host
19205 host_os=$host_os
19206
19207 # The build system.
19208 build_alias=$build_alias
19209 build=$build
19210 build_os=$build_os
19211
19212 # An echo program that does not interpret backslashes.
19213 echo=$lt_echo
19214
19215 # The archiver.
19216 AR=$lt_AR
19217 AR_FLAGS=$lt_AR_FLAGS
19218
19219 # A C compiler.
19220 LTCC=$lt_LTCC
19221
19222 # LTCC compiler flags.
19223 LTCFLAGS=$lt_LTCFLAGS
19224
19225 # A language-specific compiler.
19226 CC=$lt_compiler_GCJ
19227
19228 # Is the compiler the GNU C compiler?
19229 with_gcc=$GCC_GCJ
19230
19231 # An ERE matcher.
19232 EGREP=$lt_EGREP
19233
19234 # The linker used to build libraries.
19235 LD=$lt_LD_GCJ
19236
19237 # Whether we need hard or soft links.
19238 LN_S=$lt_LN_S
19239
19240 # A BSD-compatible nm program.
19241 NM=$lt_NM
19242
19243 # A symbol stripping program
19244 STRIP=$lt_STRIP
19245
19246 # Used to examine libraries when file_magic_cmd begins "file"
19247 MAGIC_CMD=$MAGIC_CMD
19248
19249 # Used on cygwin: DLL creation program.
19250 DLLTOOL="$DLLTOOL"
19251
19252 # Used on cygwin: object dumper.
19253 OBJDUMP="$OBJDUMP"
19254
19255 # Used on cygwin: assembler.
19256 AS="$AS"
19257
19258 # The name of the directory that contains temporary libtool files.
19259 objdir=$objdir
19260
19261 # How to create reloadable object files.
19262 reload_flag=$lt_reload_flag
19263 reload_cmds=$lt_reload_cmds
19264
19265 # How to pass a linker flag through the compiler.
19266 wl=$lt_lt_prog_compiler_wl_GCJ
19267
19268 # Object file suffix (normally "o").
19269 objext="$ac_objext"
19270
19271 # Old archive suffix (normally "a").
19272 libext="$libext"
19273
19274 # Shared library suffix (normally ".so").
19275 shrext_cmds='$shrext_cmds'
19276
19277 # Executable file suffix (normally "").
19278 exeext="$exeext"
19279
19280 # Additional compiler flags for building library objects.
19281 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19282 pic_mode=$pic_mode
19283
19284 # What is the maximum length of a command?
19285 max_cmd_len=$lt_cv_sys_max_cmd_len
19286
19287 # Does compiler simultaneously support -c and -o options?
19288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19289
19290 # Must we lock files when doing compilation?
19291 need_locks=$lt_need_locks
19292
19293 # Do we need the lib prefix for modules?
19294 need_lib_prefix=$need_lib_prefix
19295
19296 # Do we need a version for libraries?
19297 need_version=$need_version
19298
19299 # Whether dlopen is supported.
19300 dlopen_support=$enable_dlopen
19301
19302 # Whether dlopen of programs is supported.
19303 dlopen_self=$enable_dlopen_self
19304
19305 # Whether dlopen of statically linked programs is supported.
19306 dlopen_self_static=$enable_dlopen_self_static
19307
19308 # Compiler flag to prevent dynamic linking.
19309 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19310
19311 # Compiler flag to turn off builtin functions.
19312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19313
19314 # Compiler flag to allow reflexive dlopens.
19315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19316
19317 # Compiler flag to generate shared objects directly from archives.
19318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19319
19320 # Compiler flag to generate thread-safe objects.
19321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19322
19323 # Library versioning type.
19324 version_type=$version_type
19325
19326 # Format of library name prefix.
19327 libname_spec=$lt_libname_spec
19328
19329 # List of archive names.  First name is the real one, the rest are links.
19330 # The last name is the one that the linker finds with -lNAME.
19331 library_names_spec=$lt_library_names_spec
19332
19333 # The coded name of the library, if different from the real name.
19334 soname_spec=$lt_soname_spec
19335
19336 # Commands used to build and install an old-style archive.
19337 RANLIB=$lt_RANLIB
19338 old_archive_cmds=$lt_old_archive_cmds_GCJ
19339 old_postinstall_cmds=$lt_old_postinstall_cmds
19340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19341
19342 # Create an old-style archive from a shared archive.
19343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19344
19345 # Create a temporary old-style archive to link instead of a shared archive.
19346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19347
19348 # Commands used to build and install a shared archive.
19349 archive_cmds=$lt_archive_cmds_GCJ
19350 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19351 postinstall_cmds=$lt_postinstall_cmds
19352 postuninstall_cmds=$lt_postuninstall_cmds
19353
19354 # Commands used to build a loadable module (assumed same as above if empty)
19355 module_cmds=$lt_module_cmds_GCJ
19356 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19357
19358 # Commands to strip libraries.
19359 old_striplib=$lt_old_striplib
19360 striplib=$lt_striplib
19361
19362 # Dependencies to place before the objects being linked to create a
19363 # shared library.
19364 predep_objects=$lt_predep_objects_GCJ
19365
19366 # Dependencies to place after the objects being linked to create a
19367 # shared library.
19368 postdep_objects=$lt_postdep_objects_GCJ
19369
19370 # Dependencies to place before the objects being linked to create a
19371 # shared library.
19372 predeps=$lt_predeps_GCJ
19373
19374 # Dependencies to place after the objects being linked to create a
19375 # shared library.
19376 postdeps=$lt_postdeps_GCJ
19377
19378 # The library search path used internally by the compiler when linking
19379 # a shared library.
19380 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19381
19382 # Method to check whether dependent libraries are shared objects.
19383 deplibs_check_method=$lt_deplibs_check_method
19384
19385 # Command to use when deplibs_check_method == file_magic.
19386 file_magic_cmd=$lt_file_magic_cmd
19387
19388 # Flag that allows shared libraries with undefined symbols to be built.
19389 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19390
19391 # Flag that forces no undefined symbols.
19392 no_undefined_flag=$lt_no_undefined_flag_GCJ
19393
19394 # Commands used to finish a libtool library installation in a directory.
19395 finish_cmds=$lt_finish_cmds
19396
19397 # Same as above, but a single script fragment to be evaled but not shown.
19398 finish_eval=$lt_finish_eval
19399
19400 # Take the output of nm and produce a listing of raw symbols and C names.
19401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19402
19403 # Transform the output of nm in a proper C declaration
19404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19405
19406 # Transform the output of nm in a C name address pair
19407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19408
19409 # This is the shared library runtime path variable.
19410 runpath_var=$runpath_var
19411
19412 # This is the shared library path variable.
19413 shlibpath_var=$shlibpath_var
19414
19415 # Is shlibpath searched before the hard-coded library search path?
19416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19417
19418 # How to hardcode a shared library path into an executable.
19419 hardcode_action=$hardcode_action_GCJ
19420
19421 # Whether we should hardcode library paths into libraries.
19422 hardcode_into_libs=$hardcode_into_libs
19423
19424 # Flag to hardcode \$libdir into a binary during linking.
19425 # This must work even if \$libdir does not exist.
19426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19427
19428 # If ld is used when linking, flag to hardcode \$libdir into
19429 # a binary during linking. This must work even if \$libdir does
19430 # not exist.
19431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19432
19433 # Whether we need a single -rpath flag with a separated argument.
19434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19435
19436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19437 # resulting binary.
19438 hardcode_direct=$hardcode_direct_GCJ
19439
19440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19441 # resulting binary.
19442 hardcode_minus_L=$hardcode_minus_L_GCJ
19443
19444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19445 # the resulting binary.
19446 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19447
19448 # Set to yes if building a shared library automatically hardcodes DIR into the library
19449 # and all subsequent libraries and executables linked against it.
19450 hardcode_automatic=$hardcode_automatic_GCJ
19451
19452 # Variables whose values should be saved in libtool wrapper scripts and
19453 # restored at relink time.
19454 variables_saved_for_relink="$variables_saved_for_relink"
19455
19456 # Whether libtool must link a program against all its dependency libraries.
19457 link_all_deplibs=$link_all_deplibs_GCJ
19458
19459 # Compile-time system search path for libraries
19460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19461
19462 # Run-time system search path for libraries
19463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19464
19465 # Fix the shell variable \$srcfile for the compiler.
19466 fix_srcfile_path="$fix_srcfile_path_GCJ"
19467
19468 # Set to yes if exported symbols are required.
19469 always_export_symbols=$always_export_symbols_GCJ
19470
19471 # The commands to list exported symbols.
19472 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19473
19474 # The commands to extract the exported symbol list from a shared archive.
19475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19476
19477 # Symbols that should not be listed in the preloaded symbols.
19478 exclude_expsyms=$lt_exclude_expsyms_GCJ
19479
19480 # Symbols that must always be exported.
19481 include_expsyms=$lt_include_expsyms_GCJ
19482
19483 # ### END LIBTOOL TAG CONFIG: $tagname
19484
19485 __EOF__
19486
19487
19488 else
19489   # If there is no Makefile yet, we rely on a make rule to execute
19490   # `config.status --recheck' to rerun these tests and create the
19491   # libtool script then.
19492   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19493   if test -f "$ltmain_in"; then
19494     test -f Makefile && make "$ltmain"
19495   fi
19496 fi
19497
19498
19499 ac_ext=c
19500 ac_cpp='$CPP $CPPFLAGS'
19501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19504
19505 CC="$lt_save_CC"
19506
19507         else
19508           tagname=""
19509         fi
19510         ;;
19511
19512       RC)
19513
19514
19515 # Source file extension for RC test sources.
19516 ac_ext=rc
19517
19518 # Object file extension for compiled RC test sources.
19519 objext=o
19520 objext_RC=$objext
19521
19522 # Code to be used in simple compile tests
19523 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19524
19525 # Code to be used in simple link tests
19526 lt_simple_link_test_code="$lt_simple_compile_test_code"
19527
19528 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19529
19530 # If no C compiler was specified, use CC.
19531 LTCC=${LTCC-"$CC"}
19532
19533 # If no C compiler flags were specified, use CFLAGS.
19534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19535
19536 # Allow CC to be a program name with arguments.
19537 compiler=$CC
19538
19539
19540 # save warnings/boilerplate of simple test code
19541 ac_outfile=conftest.$ac_objext
19542 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19544 _lt_compiler_boilerplate=`cat conftest.err`
19545 $rm conftest*
19546
19547 ac_outfile=conftest.$ac_objext
19548 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550 _lt_linker_boilerplate=`cat conftest.err`
19551 $rm conftest*
19552
19553
19554 # Allow CC to be a program name with arguments.
19555 lt_save_CC="$CC"
19556 CC=${RC-"windres"}
19557 compiler=$CC
19558 compiler_RC=$CC
19559 for cc_temp in $compiler""; do
19560   case $cc_temp in
19561     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19562     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19563     \-*) ;;
19564     *) break;;
19565   esac
19566 done
19567 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19568
19569 lt_cv_prog_compiler_c_o_RC=yes
19570
19571 # The else clause should only fire when bootstrapping the
19572 # libtool distribution, otherwise you forgot to ship ltmain.sh
19573 # with your package, and you will get complaints that there are
19574 # no rules to generate ltmain.sh.
19575 if test -f "$ltmain"; then
19576   # See if we are running on zsh, and set the options which allow our commands through
19577   # without removal of \ escapes.
19578   if test -n "${ZSH_VERSION+set}" ; then
19579     setopt NO_GLOB_SUBST
19580   fi
19581   # Now quote all the things that may contain metacharacters while being
19582   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19583   # variables and quote the copies for generation of the libtool script.
19584   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19585     SED SHELL STRIP \
19586     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19587     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19588     deplibs_check_method reload_flag reload_cmds need_locks \
19589     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19590     lt_cv_sys_global_symbol_to_c_name_address \
19591     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19592     old_postinstall_cmds old_postuninstall_cmds \
19593     compiler_RC \
19594     CC_RC \
19595     LD_RC \
19596     lt_prog_compiler_wl_RC \
19597     lt_prog_compiler_pic_RC \
19598     lt_prog_compiler_static_RC \
19599     lt_prog_compiler_no_builtin_flag_RC \
19600     export_dynamic_flag_spec_RC \
19601     thread_safe_flag_spec_RC \
19602     whole_archive_flag_spec_RC \
19603     enable_shared_with_static_runtimes_RC \
19604     old_archive_cmds_RC \
19605     old_archive_from_new_cmds_RC \
19606     predep_objects_RC \
19607     postdep_objects_RC \
19608     predeps_RC \
19609     postdeps_RC \
19610     compiler_lib_search_path_RC \
19611     archive_cmds_RC \
19612     archive_expsym_cmds_RC \
19613     postinstall_cmds_RC \
19614     postuninstall_cmds_RC \
19615     old_archive_from_expsyms_cmds_RC \
19616     allow_undefined_flag_RC \
19617     no_undefined_flag_RC \
19618     export_symbols_cmds_RC \
19619     hardcode_libdir_flag_spec_RC \
19620     hardcode_libdir_flag_spec_ld_RC \
19621     hardcode_libdir_separator_RC \
19622     hardcode_automatic_RC \
19623     module_cmds_RC \
19624     module_expsym_cmds_RC \
19625     lt_cv_prog_compiler_c_o_RC \
19626     exclude_expsyms_RC \
19627     include_expsyms_RC; do
19628
19629     case $var in
19630     old_archive_cmds_RC | \
19631     old_archive_from_new_cmds_RC | \
19632     archive_cmds_RC | \
19633     archive_expsym_cmds_RC | \
19634     module_cmds_RC | \
19635     module_expsym_cmds_RC | \
19636     old_archive_from_expsyms_cmds_RC | \
19637     export_symbols_cmds_RC | \
19638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19639     postinstall_cmds | postuninstall_cmds | \
19640     old_postinstall_cmds | old_postuninstall_cmds | \
19641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19642       # Double-quote double-evaled strings.
19643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19644       ;;
19645     *)
19646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19647       ;;
19648     esac
19649   done
19650
19651   case $lt_echo in
19652   *'\$0 --fallback-echo"')
19653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19654     ;;
19655   esac
19656
19657 cfgfile="$ofile"
19658
19659   cat <<__EOF__ >> "$cfgfile"
19660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19661
19662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19663
19664 # Shell to use when invoking shell scripts.
19665 SHELL=$lt_SHELL
19666
19667 # Whether or not to build shared libraries.
19668 build_libtool_libs=$enable_shared
19669
19670 # Whether or not to build static libraries.
19671 build_old_libs=$enable_static
19672
19673 # Whether or not to add -lc for building shared libraries.
19674 build_libtool_need_lc=$archive_cmds_need_lc_RC
19675
19676 # Whether or not to disallow shared libs when runtime libs are static
19677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19678
19679 # Whether or not to optimize for fast installation.
19680 fast_install=$enable_fast_install
19681
19682 # The host system.
19683 host_alias=$host_alias
19684 host=$host
19685 host_os=$host_os
19686
19687 # The build system.
19688 build_alias=$build_alias
19689 build=$build
19690 build_os=$build_os
19691
19692 # An echo program that does not interpret backslashes.
19693 echo=$lt_echo
19694
19695 # The archiver.
19696 AR=$lt_AR
19697 AR_FLAGS=$lt_AR_FLAGS
19698
19699 # A C compiler.
19700 LTCC=$lt_LTCC
19701
19702 # LTCC compiler flags.
19703 LTCFLAGS=$lt_LTCFLAGS
19704
19705 # A language-specific compiler.
19706 CC=$lt_compiler_RC
19707
19708 # Is the compiler the GNU C compiler?
19709 with_gcc=$GCC_RC
19710
19711 # An ERE matcher.
19712 EGREP=$lt_EGREP
19713
19714 # The linker used to build libraries.
19715 LD=$lt_LD_RC
19716
19717 # Whether we need hard or soft links.
19718 LN_S=$lt_LN_S
19719
19720 # A BSD-compatible nm program.
19721 NM=$lt_NM
19722
19723 # A symbol stripping program
19724 STRIP=$lt_STRIP
19725
19726 # Used to examine libraries when file_magic_cmd begins "file"
19727 MAGIC_CMD=$MAGIC_CMD
19728
19729 # Used on cygwin: DLL creation program.
19730 DLLTOOL="$DLLTOOL"
19731
19732 # Used on cygwin: object dumper.
19733 OBJDUMP="$OBJDUMP"
19734
19735 # Used on cygwin: assembler.
19736 AS="$AS"
19737
19738 # The name of the directory that contains temporary libtool files.
19739 objdir=$objdir
19740
19741 # How to create reloadable object files.
19742 reload_flag=$lt_reload_flag
19743 reload_cmds=$lt_reload_cmds
19744
19745 # How to pass a linker flag through the compiler.
19746 wl=$lt_lt_prog_compiler_wl_RC
19747
19748 # Object file suffix (normally "o").
19749 objext="$ac_objext"
19750
19751 # Old archive suffix (normally "a").
19752 libext="$libext"
19753
19754 # Shared library suffix (normally ".so").
19755 shrext_cmds='$shrext_cmds'
19756
19757 # Executable file suffix (normally "").
19758 exeext="$exeext"
19759
19760 # Additional compiler flags for building library objects.
19761 pic_flag=$lt_lt_prog_compiler_pic_RC
19762 pic_mode=$pic_mode
19763
19764 # What is the maximum length of a command?
19765 max_cmd_len=$lt_cv_sys_max_cmd_len
19766
19767 # Does compiler simultaneously support -c and -o options?
19768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19769
19770 # Must we lock files when doing compilation?
19771 need_locks=$lt_need_locks
19772
19773 # Do we need the lib prefix for modules?
19774 need_lib_prefix=$need_lib_prefix
19775
19776 # Do we need a version for libraries?
19777 need_version=$need_version
19778
19779 # Whether dlopen is supported.
19780 dlopen_support=$enable_dlopen
19781
19782 # Whether dlopen of programs is supported.
19783 dlopen_self=$enable_dlopen_self
19784
19785 # Whether dlopen of statically linked programs is supported.
19786 dlopen_self_static=$enable_dlopen_self_static
19787
19788 # Compiler flag to prevent dynamic linking.
19789 link_static_flag=$lt_lt_prog_compiler_static_RC
19790
19791 # Compiler flag to turn off builtin functions.
19792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19793
19794 # Compiler flag to allow reflexive dlopens.
19795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19796
19797 # Compiler flag to generate shared objects directly from archives.
19798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19799
19800 # Compiler flag to generate thread-safe objects.
19801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19802
19803 # Library versioning type.
19804 version_type=$version_type
19805
19806 # Format of library name prefix.
19807 libname_spec=$lt_libname_spec
19808
19809 # List of archive names.  First name is the real one, the rest are links.
19810 # The last name is the one that the linker finds with -lNAME.
19811 library_names_spec=$lt_library_names_spec
19812
19813 # The coded name of the library, if different from the real name.
19814 soname_spec=$lt_soname_spec
19815
19816 # Commands used to build and install an old-style archive.
19817 RANLIB=$lt_RANLIB
19818 old_archive_cmds=$lt_old_archive_cmds_RC
19819 old_postinstall_cmds=$lt_old_postinstall_cmds
19820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19821
19822 # Create an old-style archive from a shared archive.
19823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19824
19825 # Create a temporary old-style archive to link instead of a shared archive.
19826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19827
19828 # Commands used to build and install a shared archive.
19829 archive_cmds=$lt_archive_cmds_RC
19830 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19831 postinstall_cmds=$lt_postinstall_cmds
19832 postuninstall_cmds=$lt_postuninstall_cmds
19833
19834 # Commands used to build a loadable module (assumed same as above if empty)
19835 module_cmds=$lt_module_cmds_RC
19836 module_expsym_cmds=$lt_module_expsym_cmds_RC
19837
19838 # Commands to strip libraries.
19839 old_striplib=$lt_old_striplib
19840 striplib=$lt_striplib
19841
19842 # Dependencies to place before the objects being linked to create a
19843 # shared library.
19844 predep_objects=$lt_predep_objects_RC
19845
19846 # Dependencies to place after the objects being linked to create a
19847 # shared library.
19848 postdep_objects=$lt_postdep_objects_RC
19849
19850 # Dependencies to place before the objects being linked to create a
19851 # shared library.
19852 predeps=$lt_predeps_RC
19853
19854 # Dependencies to place after the objects being linked to create a
19855 # shared library.
19856 postdeps=$lt_postdeps_RC
19857
19858 # The library search path used internally by the compiler when linking
19859 # a shared library.
19860 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19861
19862 # Method to check whether dependent libraries are shared objects.
19863 deplibs_check_method=$lt_deplibs_check_method
19864
19865 # Command to use when deplibs_check_method == file_magic.
19866 file_magic_cmd=$lt_file_magic_cmd
19867
19868 # Flag that allows shared libraries with undefined symbols to be built.
19869 allow_undefined_flag=$lt_allow_undefined_flag_RC
19870
19871 # Flag that forces no undefined symbols.
19872 no_undefined_flag=$lt_no_undefined_flag_RC
19873
19874 # Commands used to finish a libtool library installation in a directory.
19875 finish_cmds=$lt_finish_cmds
19876
19877 # Same as above, but a single script fragment to be evaled but not shown.
19878 finish_eval=$lt_finish_eval
19879
19880 # Take the output of nm and produce a listing of raw symbols and C names.
19881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19882
19883 # Transform the output of nm in a proper C declaration
19884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19885
19886 # Transform the output of nm in a C name address pair
19887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19888
19889 # This is the shared library runtime path variable.
19890 runpath_var=$runpath_var
19891
19892 # This is the shared library path variable.
19893 shlibpath_var=$shlibpath_var
19894
19895 # Is shlibpath searched before the hard-coded library search path?
19896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19897
19898 # How to hardcode a shared library path into an executable.
19899 hardcode_action=$hardcode_action_RC
19900
19901 # Whether we should hardcode library paths into libraries.
19902 hardcode_into_libs=$hardcode_into_libs
19903
19904 # Flag to hardcode \$libdir into a binary during linking.
19905 # This must work even if \$libdir does not exist.
19906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19907
19908 # If ld is used when linking, flag to hardcode \$libdir into
19909 # a binary during linking. This must work even if \$libdir does
19910 # not exist.
19911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19912
19913 # Whether we need a single -rpath flag with a separated argument.
19914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19915
19916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19917 # resulting binary.
19918 hardcode_direct=$hardcode_direct_RC
19919
19920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19921 # resulting binary.
19922 hardcode_minus_L=$hardcode_minus_L_RC
19923
19924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19925 # the resulting binary.
19926 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19927
19928 # Set to yes if building a shared library automatically hardcodes DIR into the library
19929 # and all subsequent libraries and executables linked against it.
19930 hardcode_automatic=$hardcode_automatic_RC
19931
19932 # Variables whose values should be saved in libtool wrapper scripts and
19933 # restored at relink time.
19934 variables_saved_for_relink="$variables_saved_for_relink"
19935
19936 # Whether libtool must link a program against all its dependency libraries.
19937 link_all_deplibs=$link_all_deplibs_RC
19938
19939 # Compile-time system search path for libraries
19940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19941
19942 # Run-time system search path for libraries
19943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19944
19945 # Fix the shell variable \$srcfile for the compiler.
19946 fix_srcfile_path="$fix_srcfile_path_RC"
19947
19948 # Set to yes if exported symbols are required.
19949 always_export_symbols=$always_export_symbols_RC
19950
19951 # The commands to list exported symbols.
19952 export_symbols_cmds=$lt_export_symbols_cmds_RC
19953
19954 # The commands to extract the exported symbol list from a shared archive.
19955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19956
19957 # Symbols that should not be listed in the preloaded symbols.
19958 exclude_expsyms=$lt_exclude_expsyms_RC
19959
19960 # Symbols that must always be exported.
19961 include_expsyms=$lt_include_expsyms_RC
19962
19963 # ### END LIBTOOL TAG CONFIG: $tagname
19964
19965 __EOF__
19966
19967
19968 else
19969   # If there is no Makefile yet, we rely on a make rule to execute
19970   # `config.status --recheck' to rerun these tests and create the
19971   # libtool script then.
19972   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19973   if test -f "$ltmain_in"; then
19974     test -f Makefile && make "$ltmain"
19975   fi
19976 fi
19977
19978
19979 ac_ext=c
19980 ac_cpp='$CPP $CPPFLAGS'
19981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19984
19985 CC="$lt_save_CC"
19986
19987         ;;
19988
19989       *)
19990         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19991 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19992    { (exit 1); exit 1; }; }
19993         ;;
19994       esac
19995
19996       # Append the new tag name to the list of available tags.
19997       if test -n "$tagname" ; then
19998       available_tags="$available_tags $tagname"
19999     fi
20000     fi
20001   done
20002   IFS="$lt_save_ifs"
20003
20004   # Now substitute the updated list of available tags.
20005   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20006     mv "${ofile}T" "$ofile"
20007     chmod +x "$ofile"
20008   else
20009     rm -f "${ofile}T"
20010     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20011 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20012    { (exit 1); exit 1; }; }
20013   fi
20014 fi
20015
20016
20017
20018 # This can be used to rebuild libtool when needed
20019 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20020
20021 # Always use our own libtool.
20022 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20023
20024 # Prevent multiple expansion
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046 ac_ext=c
20047 ac_cpp='$CPP $CPPFLAGS'
20048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20051
20052
20053 # Checks for libraries.
20054
20055 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
20056 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
20057 if test "${ac_cv_lib_apr_1_main+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060   ac_check_lib_save_LIBS=$LIBS
20061 LIBS="-lapr-1  $LIBS"
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068
20069
20070 int
20071 main ()
20072 {
20073 return main ();
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_link") 2>conftest.er1
20086   ac_status=$?
20087   grep -v '^ *+' conftest.er1 >conftest.err
20088   rm -f conftest.er1
20089   cat conftest.err >&5
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); } && {
20092          test -z "$ac_c_werror_flag" ||
20093          test ! -s conftest.err
20094        } && test -s conftest$ac_exeext &&
20095        $as_test_x conftest$ac_exeext; then
20096   ac_cv_lib_apr_1_main=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101         ac_cv_lib_apr_1_main=no
20102 fi
20103
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105       conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20107 fi
20108 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20109 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20110 if test $ac_cv_lib_apr_1_main = yes; then
20111   cat >>confdefs.h <<_ACEOF
20112 #define HAVE_LIBAPR_1 1
20113 _ACEOF
20114
20115   LIBS="-lapr-1 $LIBS"
20116
20117 fi
20118
20119
20120
20121 # Check whether --with-apache-header was given.
20122 if test "${with_apache_header+set}" = set; then
20123   withval=$with_apache_header;
20124 fi
20125
20126 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
20127
20128 if test "x$with_apache_header" = "xyes"; then
20129     { { echo "$as_me:$LINENO: error:
20130 Please specify the --with-apache-header option. And, please specify the place of the header file.
20131
20132 " >&5
20133 echo "$as_me: error:
20134 Please specify the --with-apache-header option. And, please specify the place of the header file.
20135
20136 " >&2;}
20137    { (exit 1); exit 1; }; }
20138 fi
20139
20140
20141 # Check whether --with-apxs was given.
20142 if test "${with_apxs+set}" = set; then
20143   withval=$with_apxs;
20144 fi
20145
20146 if test "x$with_apxs" = "x" ; then
20147   APXS=""
20148 fi
20149 if test "x$with_apxs" = "xyes" ; then
20150     { { echo "$as_me:$LINENO: error:
20151 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20152 " >&5
20153 echo "$as_me: error:
20154 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20155 " >&2;}
20156    { (exit 1); exit 1; }; }
20157 fi
20158
20159
20160 # Check whether --with-apr-config was given.
20161 if test "${with_apr_config+set}" = set; then
20162   withval=$with_apr_config;
20163 fi
20164
20165 if test "x$with_apr_config" = "xyes" ; then
20166     { { echo "$as_me:$LINENO: error:
20167 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20168 " >&5
20169 echo "$as_me: error:
20170 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20171 " >&2;}
20172    { (exit 1); exit 1; }; }
20173 fi
20174
20175
20176 # Check whether --with-apu-config was given.
20177 if test "${with_apu_config+set}" = set; then
20178   withval=$with_apu_config;
20179 fi
20180
20181 if test "x$with_apu_config" = "xyes" ; then
20182     { { echo "$as_me:$LINENO: error:
20183 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20184 " >&5
20185 echo "$as_me: error:
20186 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20187 " >&2;}
20188    { (exit 1); exit 1; }; }
20189 fi
20190
20191
20192 # Check whether --enable-img-conv-f was given.
20193 if test "${enable_img_conv_f+set}" = set; then
20194   enableval=$enable_img_conv_f;
20195 fi
20196
20197 if test "x$enable_img_conv_f" = "xyes"; then
20198   QDEFS=""
20199 else
20200   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
20201 fi
20202
20203 # Check whether --enable-dump-log was given.
20204 if test "${enable_dump_log+set}" = set; then
20205   enableval=$enable_dump_log;
20206 fi
20207
20208 if test "x$enable_dump_log" = "xyes"; then
20209   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
20210 else
20211     if test "x$enable_dump_log" != "x" ; then
20212         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
20213     fi
20214 fi
20215
20216
20217 if test "x$with_apxs" = "x" ; then
20218   # Extract the first word of "apxs2", so it can be a program name with args.
20219 set dummy apxs2; ac_word=$2
20220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20222 if test "${ac_cv_path_APXS2+set}" = set; then
20223   echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225   case $APXS2 in
20226   [\\/]* | ?:[\\/]*)
20227   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
20228   ;;
20229   *)
20230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20231 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20232 for as_dir in $as_dummy
20233 do
20234   IFS=$as_save_IFS
20235   test -z "$as_dir" && as_dir=.
20236   for ac_exec_ext in '' $ac_executable_extensions; do
20237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20238     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
20239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20240     break 2
20241   fi
20242 done
20243 done
20244 IFS=$as_save_IFS
20245
20246   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
20247   ;;
20248 esac
20249 fi
20250 APXS2=$ac_cv_path_APXS2
20251 if test -n "$APXS2"; then
20252   { echo "$as_me:$LINENO: result: $APXS2" >&5
20253 echo "${ECHO_T}$APXS2" >&6; }
20254 else
20255   { echo "$as_me:$LINENO: result: no" >&5
20256 echo "${ECHO_T}no" >&6; }
20257 fi
20258
20259
20260   if test "x$APXS2" = "xno"; then
20261       # Extract the first word of "apxs", so it can be a program name with args.
20262 set dummy apxs; ac_word=$2
20263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20265 if test "${ac_cv_path_APXS+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   case $APXS in
20269   [\\/]* | ?:[\\/]*)
20270   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
20271   ;;
20272   *)
20273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20274 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20275 for as_dir in $as_dummy
20276 do
20277   IFS=$as_save_IFS
20278   test -z "$as_dir" && as_dir=.
20279   for ac_exec_ext in '' $ac_executable_extensions; do
20280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20281     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
20282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20283     break 2
20284   fi
20285 done
20286 done
20287 IFS=$as_save_IFS
20288
20289   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
20290   ;;
20291 esac
20292 fi
20293 APXS=$ac_cv_path_APXS
20294 if test -n "$APXS"; then
20295   { echo "$as_me:$LINENO: result: $APXS" >&5
20296 echo "${ECHO_T}$APXS" >&6; }
20297 else
20298   { echo "$as_me:$LINENO: result: no" >&5
20299 echo "${ECHO_T}no" >&6; }
20300 fi
20301
20302
20303       if test "x$APXS" = "xno" ; then
20304         { { echo "$as_me:$LINENO: error: apxs not found." >&5
20305 echo "$as_me: error: apxs not found." >&2;}
20306    { (exit 1); exit 1; }; }
20307       fi
20308   else
20309     APXS="$APXS2"
20310   fi
20311 fi
20312 if test "x$with_apxs" != "x" ; then
20313   APXS=$with_apxs
20314 fi
20315
20316 # Extract the first word of "libtool", so it can be a program name with args.
20317 set dummy libtool; ac_word=$2
20318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20320 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323   case $LIBTOOL in
20324   [\\/]* | ?:[\\/]*)
20325   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20326   ;;
20327   *)
20328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20329 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20330 for as_dir in $as_dummy
20331 do
20332   IFS=$as_save_IFS
20333   test -z "$as_dir" && as_dir=.
20334   for ac_exec_ext in '' $ac_executable_extensions; do
20335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20336     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20338     break 2
20339   fi
20340 done
20341 done
20342 IFS=$as_save_IFS
20343
20344   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20345   ;;
20346 esac
20347 fi
20348 LIBTOOL=$ac_cv_path_LIBTOOL
20349 if test -n "$LIBTOOL"; then
20350   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20351 echo "${ECHO_T}$LIBTOOL" >&6; }
20352 else
20353   { echo "$as_me:$LINENO: result: no" >&5
20354 echo "${ECHO_T}no" >&6; }
20355 fi
20356
20357
20358 if test "x$LIBTOOL" = "xno"; then
20359     { { echo "$as_me:$LINENO: error: libtool not found." >&5
20360 echo "$as_me: error: libtool not found." >&2;}
20361    { (exit 1); exit 1; }; }
20362 fi
20363
20364
20365 # Extract the first word of "Wand-config", so it can be a program name with args.
20366 set dummy Wand-config; ac_word=$2
20367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20369 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
20370   echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372   case $WAND_CONFIG in
20373   [\\/]* | ?:[\\/]*)
20374   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
20375   ;;
20376   *)
20377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20379 for as_dir in $as_dummy
20380 do
20381   IFS=$as_save_IFS
20382   test -z "$as_dir" && as_dir=.
20383   for ac_exec_ext in '' $ac_executable_extensions; do
20384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20385     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20387     break 2
20388   fi
20389 done
20390 done
20391 IFS=$as_save_IFS
20392
20393   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
20394   ;;
20395 esac
20396 fi
20397 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
20398 if test -n "$WAND_CONFIG"; then
20399   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
20400 echo "${ECHO_T}$WAND_CONFIG" >&6; }
20401 else
20402   { echo "$as_me:$LINENO: result: no" >&5
20403 echo "${ECHO_T}no" >&6; }
20404 fi
20405
20406
20407 if test "x$WAND_CONFIG" = "xno" ; then
20408     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
20409 echo "$as_me: error: wand-config not found." >&2;}
20410    { (exit 1); exit 1; }; }
20411 fi
20412
20413
20414 if test "x$with_apr_config" = "x" ; then
20415   # Extract the first word of "apr-config", so it can be a program name with args.
20416 set dummy apr-config; ac_word=$2
20417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20419 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422   case $APR_CONFIG in
20423   [\\/]* | ?:[\\/]*)
20424   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20425   ;;
20426   *)
20427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20428 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20429 for as_dir in $as_dummy
20430 do
20431   IFS=$as_save_IFS
20432   test -z "$as_dir" && as_dir=.
20433   for ac_exec_ext in '' $ac_executable_extensions; do
20434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20435     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20437     break 2
20438   fi
20439 done
20440 done
20441 IFS=$as_save_IFS
20442
20443   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20444   ;;
20445 esac
20446 fi
20447 APR_CONFIG=$ac_cv_path_APR_CONFIG
20448 if test -n "$APR_CONFIG"; then
20449   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20450 echo "${ECHO_T}$APR_CONFIG" >&6; }
20451 else
20452   { echo "$as_me:$LINENO: result: no" >&5
20453 echo "${ECHO_T}no" >&6; }
20454 fi
20455
20456
20457   if test "x$APR_CONFIG" = "xno" ; then
20458     # Extract the first word of "apr-1-config", so it can be a program name with args.
20459 set dummy apr-1-config; ac_word=$2
20460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20462 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   case $APR_1_CONFIG in
20466   [\\/]* | ?:[\\/]*)
20467   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20468   ;;
20469   *)
20470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20471 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20472 for as_dir in $as_dummy
20473 do
20474   IFS=$as_save_IFS
20475   test -z "$as_dir" && as_dir=.
20476   for ac_exec_ext in '' $ac_executable_extensions; do
20477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20478     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20480     break 2
20481   fi
20482 done
20483 done
20484 IFS=$as_save_IFS
20485
20486   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20487   ;;
20488 esac
20489 fi
20490 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20491 if test -n "$APR_1_CONFIG"; then
20492   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20493 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20494 else
20495   { echo "$as_me:$LINENO: result: no" >&5
20496 echo "${ECHO_T}no" >&6; }
20497 fi
20498
20499
20500     if test "x$APR_1_CONFIG" = "xno" ; then
20501       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20502 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20503    { (exit 1); exit 1; }; }
20504     else
20505       APR_CONFIG="$APR_1_CONFIG"
20506     fi
20507   fi
20508 fi
20509 if test "x$with_apr_config" != "x" ; then
20510   APR_CONFIG=$with_apr_config
20511 fi
20512
20513 if test "x$with_apu_config" = "x" ; then
20514   # Extract the first word of "apu-config", so it can be a program name with args.
20515 set dummy apu-config; ac_word=$2
20516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20518 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   case $APU_CONFIG in
20522   [\\/]* | ?:[\\/]*)
20523   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20524   ;;
20525   *)
20526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20527 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20528 for as_dir in $as_dummy
20529 do
20530   IFS=$as_save_IFS
20531   test -z "$as_dir" && as_dir=.
20532   for ac_exec_ext in '' $ac_executable_extensions; do
20533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20534     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20536     break 2
20537   fi
20538 done
20539 done
20540 IFS=$as_save_IFS
20541
20542   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20543   ;;
20544 esac
20545 fi
20546 APU_CONFIG=$ac_cv_path_APU_CONFIG
20547 if test -n "$APU_CONFIG"; then
20548   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20549 echo "${ECHO_T}$APU_CONFIG" >&6; }
20550 else
20551   { echo "$as_me:$LINENO: result: no" >&5
20552 echo "${ECHO_T}no" >&6; }
20553 fi
20554
20555
20556   if test "x$APU_CONFIG" = "xno" ; then
20557     # Extract the first word of "apu-1-config", so it can be a program name with args.
20558 set dummy apu-1-config; ac_word=$2
20559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20561 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   case $APU_1_CONFIG in
20565   [\\/]* | ?:[\\/]*)
20566   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20567   ;;
20568   *)
20569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20570 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20571 for as_dir in $as_dummy
20572 do
20573   IFS=$as_save_IFS
20574   test -z "$as_dir" && as_dir=.
20575   for ac_exec_ext in '' $ac_executable_extensions; do
20576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20577     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20579     break 2
20580   fi
20581 done
20582 done
20583 IFS=$as_save_IFS
20584
20585   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20586   ;;
20587 esac
20588 fi
20589 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20590 if test -n "$APU_1_CONFIG"; then
20591   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20592 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20593 else
20594   { echo "$as_me:$LINENO: result: no" >&5
20595 echo "${ECHO_T}no" >&6; }
20596 fi
20597
20598
20599     if test "x$APU_1_CONFIG" = "xno" ; then
20600       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20601 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20602    { (exit 1); exit 1; }; }
20603     else
20604       APU_CONFIG="$APU_1_CONFIG"
20605     fi
20606   fi
20607 fi
20608 if test "x$with_apu_config" != "x" ; then
20609   APU_CONFIG=$with_apu_config
20610 fi
20611
20612 if test "x$with_apache_header" = "x" ; then
20613   with_apache_header=`${APXS} -q includedir`
20614
20615 fi
20616
20617 case $host_os in
20618   freebsd*)
20619     CFLAGS="${CFLAGS} -I/usr/local/include "
20620     ;;
20621 esac
20622
20623
20624 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20625 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20626 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20627 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20628 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20629 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20630 CFLAGS="${CFLAGS} -I${with_apache_header}"
20631 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` "
20632 CPPFLAGS="${CPPFLAGS} -I${with_apache_header}"
20633
20634 # Checks for header files.
20635 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20636 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20637 if test "${ac_cv_header_stdc+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640   cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h.  */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h.  */
20646 #include <stdlib.h>
20647 #include <stdarg.h>
20648 #include <string.h>
20649 #include <float.h>
20650
20651 int
20652 main ()
20653 {
20654
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (ac_try="$ac_compile"
20661 case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_compile") 2>conftest.er1
20667   ac_status=$?
20668   grep -v '^ *+' conftest.er1 >conftest.err
20669   rm -f conftest.er1
20670   cat conftest.err >&5
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } && {
20673          test -z "$ac_c_werror_flag" ||
20674          test ! -s conftest.err
20675        } && test -s conftest.$ac_objext; then
20676   ac_cv_header_stdc=yes
20677 else
20678   echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681         ac_cv_header_stdc=no
20682 fi
20683
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685
20686 if test $ac_cv_header_stdc = yes; then
20687   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20688   cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 #include <string.h>
20695
20696 _ACEOF
20697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20698   $EGREP "memchr" >/dev/null 2>&1; then
20699   :
20700 else
20701   ac_cv_header_stdc=no
20702 fi
20703 rm -f conftest*
20704
20705 fi
20706
20707 if test $ac_cv_header_stdc = yes; then
20708   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20709   cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h.  */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h.  */
20715 #include <stdlib.h>
20716
20717 _ACEOF
20718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20719   $EGREP "free" >/dev/null 2>&1; then
20720   :
20721 else
20722   ac_cv_header_stdc=no
20723 fi
20724 rm -f conftest*
20725
20726 fi
20727
20728 if test $ac_cv_header_stdc = yes; then
20729   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20730   if test "$cross_compiling" = yes; then
20731   :
20732 else
20733   cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739 #include <ctype.h>
20740 #include <stdlib.h>
20741 #if ((' ' & 0x0FF) == 0x020)
20742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20744 #else
20745 # define ISLOWER(c) \
20746                    (('a' <= (c) && (c) <= 'i') \
20747                      || ('j' <= (c) && (c) <= 'r') \
20748                      || ('s' <= (c) && (c) <= 'z'))
20749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20750 #endif
20751
20752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20753 int
20754 main ()
20755 {
20756   int i;
20757   for (i = 0; i < 256; i++)
20758     if (XOR (islower (i), ISLOWER (i))
20759         || toupper (i) != TOUPPER (i))
20760       return 2;
20761   return 0;
20762 }
20763 _ACEOF
20764 rm -f conftest$ac_exeext
20765 if { (ac_try="$ac_link"
20766 case "(($ac_try" in
20767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20768   *) ac_try_echo=$ac_try;;
20769 esac
20770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20771   (eval "$ac_link") 2>&5
20772   ac_status=$?
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20775   { (case "(($ac_try" in
20776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777   *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780   (eval "$ac_try") 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; }; then
20784   :
20785 else
20786   echo "$as_me: program exited with status $ac_status" >&5
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 ( exit $ac_status )
20791 ac_cv_header_stdc=no
20792 fi
20793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20794 fi
20795
20796
20797 fi
20798 fi
20799 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20800 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20801 if test $ac_cv_header_stdc = yes; then
20802
20803 cat >>confdefs.h <<\_ACEOF
20804 #define STDC_HEADERS 1
20805 _ACEOF
20806
20807 fi
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20818 do
20819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20824   echo $ECHO_N "(cached) $ECHO_C" >&6
20825 fi
20826 ac_res=`eval echo '${'$as_ac_Header'}'`
20827                { echo "$as_me:$LINENO: result: $ac_res" >&5
20828 echo "${ECHO_T}$ac_res" >&6; }
20829 else
20830   # Is the header compilable?
20831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
20840 #include <$ac_header>
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_compile") 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } && {
20856          test -z "$ac_c_werror_flag" ||
20857          test ! -s conftest.err
20858        } && test -s conftest.$ac_objext; then
20859   ac_header_compiler=yes
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864         ac_header_compiler=no
20865 fi
20866
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20869 echo "${ECHO_T}$ac_header_compiler" >&6; }
20870
20871 # Is the header present?
20872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h.  */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h.  */
20880 #include <$ac_header>
20881 _ACEOF
20882 if { (ac_try="$ac_cpp conftest.$ac_ext"
20883 case "(($ac_try" in
20884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885   *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20889   ac_status=$?
20890   grep -v '^ *+' conftest.er1 >conftest.err
20891   rm -f conftest.er1
20892   cat conftest.err >&5
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); } >/dev/null && {
20895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20896          test ! -s conftest.err
20897        }; then
20898   ac_header_preproc=yes
20899 else
20900   echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903   ac_header_preproc=no
20904 fi
20905
20906 rm -f conftest.err conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20908 echo "${ECHO_T}$ac_header_preproc" >&6; }
20909
20910 # So?  What about this header?
20911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20912   yes:no: )
20913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20917     ac_header_preproc=yes
20918     ;;
20919   no:yes:* )
20920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20932
20933     ;;
20934 esac
20935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20938   echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940   eval "$as_ac_Header=\$ac_header_preproc"
20941 fi
20942 ac_res=`eval echo '${'$as_ac_Header'}'`
20943                { echo "$as_me:$LINENO: result: $ac_res" >&5
20944 echo "${ECHO_T}$ac_res" >&6; }
20945
20946 fi
20947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20948   cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20950 _ACEOF
20951
20952 fi
20953
20954 done
20955
20956 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20957
20958
20959 for ac_header in apr_shm.h apr_global_mutex.h
20960 do
20961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20963   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 fi
20968 ac_res=`eval echo '${'$as_ac_Header'}'`
20969                { echo "$as_me:$LINENO: result: $ac_res" >&5
20970 echo "${ECHO_T}$ac_res" >&6; }
20971 else
20972   # Is the header compilable?
20973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 $ac_includes_default
20982 #include <$ac_header>
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991   (eval "$ac_compile") 2>conftest.er1
20992   ac_status=$?
20993   grep -v '^ *+' conftest.er1 >conftest.err
20994   rm -f conftest.er1
20995   cat conftest.err >&5
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } && {
20998          test -z "$ac_c_werror_flag" ||
20999          test ! -s conftest.err
21000        } && test -s conftest.$ac_objext; then
21001   ac_header_compiler=yes
21002 else
21003   echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21005
21006         ac_header_compiler=no
21007 fi
21008
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21011 echo "${ECHO_T}$ac_header_compiler" >&6; }
21012
21013 # Is the header present?
21014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022 #include <$ac_header>
21023 _ACEOF
21024 if { (ac_try="$ac_cpp conftest.$ac_ext"
21025 case "(($ac_try" in
21026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027   *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21031   ac_status=$?
21032   grep -v '^ *+' conftest.er1 >conftest.err
21033   rm -f conftest.er1
21034   cat conftest.err >&5
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); } >/dev/null && {
21037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21038          test ! -s conftest.err
21039        }; then
21040   ac_header_preproc=yes
21041 else
21042   echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045   ac_header_preproc=no
21046 fi
21047
21048 rm -f conftest.err conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21050 echo "${ECHO_T}$ac_header_preproc" >&6; }
21051
21052 # So?  What about this header?
21053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21054   yes:no: )
21055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21059     ac_header_preproc=yes
21060     ;;
21061   no:yes:* )
21062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21074
21075     ;;
21076 esac
21077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080   echo $ECHO_N "(cached) $ECHO_C" >&6
21081 else
21082   eval "$as_ac_Header=\$ac_header_preproc"
21083 fi
21084 ac_res=`eval echo '${'$as_ac_Header'}'`
21085                { echo "$as_me:$LINENO: result: $ac_res" >&5
21086 echo "${ECHO_T}$ac_res" >&6; }
21087
21088 fi
21089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21090   cat >>confdefs.h <<_ACEOF
21091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21092 _ACEOF
21093
21094 fi
21095
21096 done
21097
21098
21099 for ac_header in apr.h
21100 do
21101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21106   echo $ECHO_N "(cached) $ECHO_C" >&6
21107 fi
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109                { echo "$as_me:$LINENO: result: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21111 else
21112   # Is the header compilable?
21113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21115 cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h.  */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h.  */
21121 $ac_includes_default
21122 #include <$ac_header>
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_compile") 2>conftest.er1
21132   ac_status=$?
21133   grep -v '^ *+' conftest.er1 >conftest.err
21134   rm -f conftest.er1
21135   cat conftest.err >&5
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } && {
21138          test -z "$ac_c_werror_flag" ||
21139          test ! -s conftest.err
21140        } && test -s conftest.$ac_objext; then
21141   ac_header_compiler=yes
21142 else
21143   echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146         ac_header_compiler=no
21147 fi
21148
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21151 echo "${ECHO_T}$ac_header_compiler" >&6; }
21152
21153 # Is the header present?
21154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 #include <$ac_header>
21163 _ACEOF
21164 if { (ac_try="$ac_cpp conftest.$ac_ext"
21165 case "(($ac_try" in
21166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167   *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21171   ac_status=$?
21172   grep -v '^ *+' conftest.er1 >conftest.err
21173   rm -f conftest.er1
21174   cat conftest.err >&5
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); } >/dev/null && {
21177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21178          test ! -s conftest.err
21179        }; then
21180   ac_header_preproc=yes
21181 else
21182   echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185   ac_header_preproc=no
21186 fi
21187
21188 rm -f conftest.err conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21190 echo "${ECHO_T}$ac_header_preproc" >&6; }
21191
21192 # So?  What about this header?
21193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21194   yes:no: )
21195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21199     ac_header_preproc=yes
21200     ;;
21201   no:yes:* )
21202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21214
21215     ;;
21216 esac
21217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21220   echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222   eval "$as_ac_Header=\$ac_header_preproc"
21223 fi
21224 ac_res=`eval echo '${'$as_ac_Header'}'`
21225                { echo "$as_me:$LINENO: result: $ac_res" >&5
21226 echo "${ECHO_T}$ac_res" >&6; }
21227
21228 fi
21229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21230   cat >>confdefs.h <<_ACEOF
21231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21232 _ACEOF
21233
21234 fi
21235
21236 done
21237
21238
21239 for ac_header in ap_config.h
21240 do
21241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21243   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21246   echo $ECHO_N "(cached) $ECHO_C" >&6
21247 fi
21248 ac_res=`eval echo '${'$as_ac_Header'}'`
21249                { echo "$as_me:$LINENO: result: $ac_res" >&5
21250 echo "${ECHO_T}$ac_res" >&6; }
21251 else
21252   # Is the header compilable?
21253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h.  */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h.  */
21261 $ac_includes_default
21262 #include <$ac_header>
21263 _ACEOF
21264 rm -f conftest.$ac_objext
21265 if { (ac_try="$ac_compile"
21266 case "(($ac_try" in
21267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268   *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271   (eval "$ac_compile") 2>conftest.er1
21272   ac_status=$?
21273   grep -v '^ *+' conftest.er1 >conftest.err
21274   rm -f conftest.er1
21275   cat conftest.err >&5
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); } && {
21278          test -z "$ac_c_werror_flag" ||
21279          test ! -s conftest.err
21280        } && test -s conftest.$ac_objext; then
21281   ac_header_compiler=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286         ac_header_compiler=no
21287 fi
21288
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21291 echo "${ECHO_T}$ac_header_compiler" >&6; }
21292
21293 # Is the header present?
21294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21296 cat >conftest.$ac_ext <<_ACEOF
21297 /* confdefs.h.  */
21298 _ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h.  */
21302 #include <$ac_header>
21303 _ACEOF
21304 if { (ac_try="$ac_cpp conftest.$ac_ext"
21305 case "(($ac_try" in
21306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307   *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21311   ac_status=$?
21312   grep -v '^ *+' conftest.er1 >conftest.err
21313   rm -f conftest.er1
21314   cat conftest.err >&5
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); } >/dev/null && {
21317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21318          test ! -s conftest.err
21319        }; then
21320   ac_header_preproc=yes
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325   ac_header_preproc=no
21326 fi
21327
21328 rm -f conftest.err conftest.$ac_ext
21329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21330 echo "${ECHO_T}$ac_header_preproc" >&6; }
21331
21332 # So?  What about this header?
21333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21334   yes:no: )
21335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21339     ac_header_preproc=yes
21340     ;;
21341   no:yes:* )
21342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21354
21355     ;;
21356 esac
21357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362   eval "$as_ac_Header=\$ac_header_preproc"
21363 fi
21364 ac_res=`eval echo '${'$as_ac_Header'}'`
21365                { echo "$as_me:$LINENO: result: $ac_res" >&5
21366 echo "${ECHO_T}$ac_res" >&6; }
21367
21368 fi
21369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21370   cat >>confdefs.h <<_ACEOF
21371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21372 _ACEOF
21373
21374 fi
21375
21376 done
21377
21378
21379 for ac_header in ap_regex.h
21380 do
21381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21383   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 fi
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389                { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21391 else
21392   # Is the header compilable?
21393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h.  */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h.  */
21401 $ac_includes_default
21402 #include <$ac_header>
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (ac_try="$ac_compile"
21406 case "(($ac_try" in
21407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408   *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411   (eval "$ac_compile") 2>conftest.er1
21412   ac_status=$?
21413   grep -v '^ *+' conftest.er1 >conftest.err
21414   rm -f conftest.er1
21415   cat conftest.err >&5
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } && {
21418          test -z "$ac_c_werror_flag" ||
21419          test ! -s conftest.err
21420        } && test -s conftest.$ac_objext; then
21421   ac_header_compiler=yes
21422 else
21423   echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21425
21426         ac_header_compiler=no
21427 fi
21428
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431 echo "${ECHO_T}$ac_header_compiler" >&6; }
21432
21433 # Is the header present?
21434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h.  */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h.  */
21442 #include <$ac_header>
21443 _ACEOF
21444 if { (ac_try="$ac_cpp conftest.$ac_ext"
21445 case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21451   ac_status=$?
21452   grep -v '^ *+' conftest.er1 >conftest.err
21453   rm -f conftest.er1
21454   cat conftest.err >&5
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); } >/dev/null && {
21457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21458          test ! -s conftest.err
21459        }; then
21460   ac_header_preproc=yes
21461 else
21462   echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465   ac_header_preproc=no
21466 fi
21467
21468 rm -f conftest.err conftest.$ac_ext
21469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21470 echo "${ECHO_T}$ac_header_preproc" >&6; }
21471
21472 # So?  What about this header?
21473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21474   yes:no: )
21475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21479     ac_header_preproc=yes
21480     ;;
21481   no:yes:* )
21482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21494
21495     ;;
21496 esac
21497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500   echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502   eval "$as_ac_Header=\$ac_header_preproc"
21503 fi
21504 ac_res=`eval echo '${'$as_ac_Header'}'`
21505                { echo "$as_me:$LINENO: result: $ac_res" >&5
21506 echo "${ECHO_T}$ac_res" >&6; }
21507
21508 fi
21509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21510   cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21512 _ACEOF
21513  use_pcre_flag="no"
21514 else
21515   use_pcre_flag="yes"
21516 fi
21517
21518 done
21519
21520 if test "x$use_pcre_flag" = "xyes" ; then
21521   if test "x$with_pcre_config" = "x" ; then
21522     # Extract the first word of "pcre-config", so it can be a program name with args.
21523 set dummy pcre-config; ac_word=$2
21524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21526 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21527   echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529   case $PCRE_CONFIG in
21530   [\\/]* | ?:[\\/]*)
21531   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21532   ;;
21533   *)
21534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21535 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21536 for as_dir in $as_dummy
21537 do
21538   IFS=$as_save_IFS
21539   test -z "$as_dir" && as_dir=.
21540   for ac_exec_ext in '' $ac_executable_extensions; do
21541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21542     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21544     break 2
21545   fi
21546 done
21547 done
21548 IFS=$as_save_IFS
21549
21550   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21551   ;;
21552 esac
21553 fi
21554 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21555 if test -n "$PCRE_CONFIG"; then
21556   { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21557 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21558 else
21559   { echo "$as_me:$LINENO: result: no" >&5
21560 echo "${ECHO_T}no" >&6; }
21561 fi
21562
21563
21564     if test "x$PCRE_CONFIG" = "xno" ; then
21565       # Extract the first word of "pcre-1-config", so it can be a program name with args.
21566 set dummy pcre-1-config; ac_word=$2
21567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21569 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21570   echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572   case $PCRE_1_CONFIG in
21573   [\\/]* | ?:[\\/]*)
21574   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21575   ;;
21576   *)
21577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21578 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21579 for as_dir in $as_dummy
21580 do
21581   IFS=$as_save_IFS
21582   test -z "$as_dir" && as_dir=.
21583   for ac_exec_ext in '' $ac_executable_extensions; do
21584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21585     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21587     break 2
21588   fi
21589 done
21590 done
21591 IFS=$as_save_IFS
21592
21593   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21594   ;;
21595 esac
21596 fi
21597 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21598 if test -n "$PCRE_1_CONFIG"; then
21599   { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21600 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21601 else
21602   { echo "$as_me:$LINENO: result: no" >&5
21603 echo "${ECHO_T}no" >&6; }
21604 fi
21605
21606
21607       if test "x$PCRE_1_CONFIG" = "xno" ; then
21608         { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21609 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21610    { (exit 1); exit 1; }; }
21611       else
21612         PCRE_CONFIG="$PCRE_1_CONFIG"
21613       fi
21614     fi
21615   fi
21616   if test "x$with_pcre_config" != "x" ; then
21617     PCRE_CONFIG=$with_pcre_config
21618   fi
21619   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21620 else
21621
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_AP_REGEX_H
21624 _ACEOF
21625
21626 fi
21627
21628 # Checks for typedefs, structures, and compiler characteristics.
21629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21631 if test "${ac_cv_c_const+set}" = set; then
21632   echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634   cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h.  */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h.  */
21640
21641 int
21642 main ()
21643 {
21644 /* FIXME: Include the comments suggested by Paul. */
21645 #ifndef __cplusplus
21646   /* Ultrix mips cc rejects this.  */
21647   typedef int charset[2];
21648   const charset cs;
21649   /* SunOS 4.1.1 cc rejects this.  */
21650   char const *const *pcpcc;
21651   char **ppc;
21652   /* NEC SVR4.0.2 mips cc rejects this.  */
21653   struct point {int x, y;};
21654   static struct point const zero = {0,0};
21655   /* AIX XL C 1.02.0.0 rejects this.
21656      It does not let you subtract one const X* pointer from another in
21657      an arm of an if-expression whose if-part is not a constant
21658      expression */
21659   const char *g = "string";
21660   pcpcc = &g + (g ? g-g : 0);
21661   /* HPUX 7.0 cc rejects these. */
21662   ++pcpcc;
21663   ppc = (char**) pcpcc;
21664   pcpcc = (char const *const *) ppc;
21665   { /* SCO 3.2v4 cc rejects this.  */
21666     char *t;
21667     char const *s = 0 ? (char *) 0 : (char const *) 0;
21668
21669     *t++ = 0;
21670     if (s) return 0;
21671   }
21672   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21673     int x[] = {25, 17};
21674     const int *foo = &x[0];
21675     ++foo;
21676   }
21677   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21678     typedef const int *iptr;
21679     iptr p = 0;
21680     ++p;
21681   }
21682   { /* AIX XL C 1.02.0.0 rejects this saying
21683        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21684     struct s { int j; const int *ap[3]; };
21685     struct s *b; b->j = 5;
21686   }
21687   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21688     const int foo = 10;
21689     if (!foo) return 0;
21690   }
21691   return !cs[0] && !zero.x;
21692 #endif
21693
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705   (eval "$ac_compile") 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } && {
21712          test -z "$ac_c_werror_flag" ||
21713          test ! -s conftest.err
21714        } && test -s conftest.$ac_objext; then
21715   ac_cv_c_const=yes
21716 else
21717   echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21719
21720         ac_cv_c_const=no
21721 fi
21722
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 fi
21725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21727 if test $ac_cv_c_const = no; then
21728
21729 cat >>confdefs.h <<\_ACEOF
21730 #define const
21731 _ACEOF
21732
21733 fi
21734
21735
21736 # Checks for library functions.
21737
21738 for ac_header in stdlib.h
21739 do
21740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21742   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745   echo $ECHO_N "(cached) $ECHO_C" >&6
21746 fi
21747 ac_res=`eval echo '${'$as_ac_Header'}'`
21748                { echo "$as_me:$LINENO: result: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21750 else
21751   # Is the header compilable?
21752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 $ac_includes_default
21761 #include <$ac_header>
21762 _ACEOF
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767   *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770   (eval "$ac_compile") 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && {
21777          test -z "$ac_c_werror_flag" ||
21778          test ! -s conftest.err
21779        } && test -s conftest.$ac_objext; then
21780   ac_header_compiler=yes
21781 else
21782   echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785         ac_header_compiler=no
21786 fi
21787
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21790 echo "${ECHO_T}$ac_header_compiler" >&6; }
21791
21792 # Is the header present?
21793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21795 cat >conftest.$ac_ext <<_ACEOF
21796 /* confdefs.h.  */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h.  */
21801 #include <$ac_header>
21802 _ACEOF
21803 if { (ac_try="$ac_cpp conftest.$ac_ext"
21804 case "(($ac_try" in
21805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806   *) ac_try_echo=$ac_try;;
21807 esac
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21810   ac_status=$?
21811   grep -v '^ *+' conftest.er1 >conftest.err
21812   rm -f conftest.er1
21813   cat conftest.err >&5
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } >/dev/null && {
21816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21817          test ! -s conftest.err
21818        }; then
21819   ac_header_preproc=yes
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824   ac_header_preproc=no
21825 fi
21826
21827 rm -f conftest.err conftest.$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21829 echo "${ECHO_T}$ac_header_preproc" >&6; }
21830
21831 # So?  What about this header?
21832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21833   yes:no: )
21834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21838     ac_header_preproc=yes
21839     ;;
21840   no:yes:* )
21841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21853
21854     ;;
21855 esac
21856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21859   echo $ECHO_N "(cached) $ECHO_C" >&6
21860 else
21861   eval "$as_ac_Header=\$ac_header_preproc"
21862 fi
21863 ac_res=`eval echo '${'$as_ac_Header'}'`
21864                { echo "$as_me:$LINENO: result: $ac_res" >&5
21865 echo "${ECHO_T}$ac_res" >&6; }
21866
21867 fi
21868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21869   cat >>confdefs.h <<_ACEOF
21870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21871 _ACEOF
21872
21873 fi
21874
21875 done
21876
21877 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21878 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21879 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21880   echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882   if test "$cross_compiling" = yes; then
21883   ac_cv_func_malloc_0_nonnull=no
21884 else
21885   cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h.  */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h.  */
21891 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21892 # include <stdlib.h>
21893 #else
21894 char *malloc ();
21895 #endif
21896
21897 int
21898 main ()
21899 {
21900 return ! malloc (0);
21901   ;
21902   return 0;
21903 }
21904 _ACEOF
21905 rm -f conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_link") 2>&5
21913   ac_status=$?
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21916   { (case "(($ac_try" in
21917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918   *) ac_try_echo=$ac_try;;
21919 esac
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921   (eval "$ac_try") 2>&5
21922   ac_status=$?
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); }; }; then
21925   ac_cv_func_malloc_0_nonnull=yes
21926 else
21927   echo "$as_me: program exited with status $ac_status" >&5
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931 ( exit $ac_status )
21932 ac_cv_func_malloc_0_nonnull=no
21933 fi
21934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21935 fi
21936
21937
21938 fi
21939 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21940 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21941 if test $ac_cv_func_malloc_0_nonnull = yes; then
21942
21943 cat >>confdefs.h <<\_ACEOF
21944 #define HAVE_MALLOC 1
21945 _ACEOF
21946
21947 else
21948   cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_MALLOC 0
21950 _ACEOF
21951
21952    case " $LIBOBJS " in
21953   *" malloc.$ac_objext "* ) ;;
21954   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21955  ;;
21956 esac
21957
21958
21959 cat >>confdefs.h <<\_ACEOF
21960 #define malloc rpl_malloc
21961 _ACEOF
21962
21963 fi
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21976 do
21977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21981   echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983   cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h.  */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h.  */
21989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21991 #define $ac_func innocuous_$ac_func
21992
21993 /* System header to define __stub macros and hopefully few prototypes,
21994     which can conflict with char $ac_func (); below.
21995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21996     <limits.h> exists even on freestanding compilers.  */
21997
21998 #ifdef __STDC__
21999 # include <limits.h>
22000 #else
22001 # include <assert.h>
22002 #endif
22003
22004 #undef $ac_func
22005
22006 /* Override any GCC internal prototype to avoid an error.
22007    Use char because int might match the return type of a GCC
22008    builtin and then its argument prototype would still apply.  */
22009 #ifdef __cplusplus
22010 extern "C"
22011 #endif
22012 char $ac_func ();
22013 /* The GNU C library defines this for functions which it implements
22014     to always fail with ENOSYS.  Some functions are actually named
22015     something starting with __ and the normal name is an alias.  */
22016 #if defined __stub_$ac_func || defined __stub___$ac_func
22017 choke me
22018 #endif
22019
22020 int
22021 main ()
22022 {
22023 return $ac_func ();
22024   ;
22025   return 0;
22026 }
22027 _ACEOF
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032   *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035   (eval "$ac_link") 2>conftest.er1
22036   ac_status=$?
22037   grep -v '^ *+' conftest.er1 >conftest.err
22038   rm -f conftest.er1
22039   cat conftest.err >&5
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } && {
22042          test -z "$ac_c_werror_flag" ||
22043          test ! -s conftest.err
22044        } && test -s conftest$ac_exeext &&
22045        $as_test_x conftest$ac_exeext; then
22046   eval "$as_ac_var=yes"
22047 else
22048   echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22050
22051         eval "$as_ac_var=no"
22052 fi
22053
22054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22055       conftest$ac_exeext conftest.$ac_ext
22056 fi
22057 ac_res=`eval echo '${'$as_ac_var'}'`
22058                { echo "$as_me:$LINENO: result: $ac_res" >&5
22059 echo "${ECHO_T}$ac_res" >&6; }
22060 if test `eval echo '${'$as_ac_var'}'` = yes; then
22061   cat >>confdefs.h <<_ACEOF
22062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22063 _ACEOF
22064
22065 fi
22066 done
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077 ac_config_files="$ac_config_files Makefile src/Makefile"
22078
22079 cat >confcache <<\_ACEOF
22080 # This file is a shell script that caches the results of configure
22081 # tests run on this system so they can be shared between configure
22082 # scripts and configure runs, see configure's option --config-cache.
22083 # It is not useful on other systems.  If it contains results you don't
22084 # want to keep, you may remove or edit it.
22085 #
22086 # config.status only pays attention to the cache file if you give it
22087 # the --recheck option to rerun configure.
22088 #
22089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22091 # following values.
22092
22093 _ACEOF
22094
22095 # The following way of writing the cache mishandles newlines in values,
22096 # but we know of no workaround that is simple, portable, and efficient.
22097 # So, we kill variables containing newlines.
22098 # Ultrix sh set writes to stderr and can't be redirected directly,
22099 # and sets the high bit in the cache file unless we assign to the vars.
22100 (
22101   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22102     eval ac_val=\$$ac_var
22103     case $ac_val in #(
22104     *${as_nl}*)
22105       case $ac_var in #(
22106       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22107 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22108       esac
22109       case $ac_var in #(
22110       _ | IFS | as_nl) ;; #(
22111       *) $as_unset $ac_var ;;
22112       esac ;;
22113     esac
22114   done
22115
22116   (set) 2>&1 |
22117     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22118     *${as_nl}ac_space=\ *)
22119       # `set' does not quote correctly, so add quotes (double-quote
22120       # substitution turns \\\\ into \\, and sed turns \\ into \).
22121       sed -n \
22122         "s/'/'\\\\''/g;
22123           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22124       ;; #(
22125     *)
22126       # `set' quotes correctly as required by POSIX, so do not add quotes.
22127       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22128       ;;
22129     esac |
22130     sort
22131 ) |
22132   sed '
22133      /^ac_cv_env_/b end
22134      t clear
22135      :clear
22136      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22137      t end
22138      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22139      :end' >>confcache
22140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22141   if test -w "$cache_file"; then
22142     test "x$cache_file" != "x/dev/null" &&
22143       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22144 echo "$as_me: updating cache $cache_file" >&6;}
22145     cat confcache >$cache_file
22146   else
22147     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22148 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22149   fi
22150 fi
22151 rm -f confcache
22152
22153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22154 # Let make expand exec_prefix.
22155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22156
22157 DEFS=-DHAVE_CONFIG_H
22158
22159 ac_libobjs=
22160 ac_ltlibobjs=
22161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22162   # 1. Remove the extension, and $U if already installed.
22163   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22164   ac_i=`echo "$ac_i" | sed "$ac_script"`
22165   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22166   #    will be set to the directory where LIBOBJS objects are built.
22167   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22168   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22169 done
22170 LIBOBJS=$ac_libobjs
22171
22172 LTLIBOBJS=$ac_ltlibobjs
22173
22174
22175 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22176   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22177 Usually this means the macro was only invoked conditionally." >&5
22178 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22179 Usually this means the macro was only invoked conditionally." >&2;}
22180    { (exit 1); exit 1; }; }
22181 fi
22182 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22183   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22184 Usually this means the macro was only invoked conditionally." >&5
22185 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22186 Usually this means the macro was only invoked conditionally." >&2;}
22187    { (exit 1); exit 1; }; }
22188 fi
22189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22190   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22191 Usually this means the macro was only invoked conditionally." >&5
22192 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22193 Usually this means the macro was only invoked conditionally." >&2;}
22194    { (exit 1); exit 1; }; }
22195 fi
22196 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22197   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22198 Usually this means the macro was only invoked conditionally." >&5
22199 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22200 Usually this means the macro was only invoked conditionally." >&2;}
22201    { (exit 1); exit 1; }; }
22202 fi
22203
22204 : ${CONFIG_STATUS=./config.status}
22205 ac_clean_files_save=$ac_clean_files
22206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22207 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22208 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22209 cat >$CONFIG_STATUS <<_ACEOF
22210 #! $SHELL
22211 # Generated by $as_me.
22212 # Run this file to recreate the current configuration.
22213 # Compiler output produced by configure, useful for debugging
22214 # configure, is in config.log if it exists.
22215
22216 debug=false
22217 ac_cs_recheck=false
22218 ac_cs_silent=false
22219 SHELL=\${CONFIG_SHELL-$SHELL}
22220 _ACEOF
22221
22222 cat >>$CONFIG_STATUS <<\_ACEOF
22223 ## --------------------- ##
22224 ## M4sh Initialization.  ##
22225 ## --------------------- ##
22226
22227 # Be more Bourne compatible
22228 DUALCASE=1; export DUALCASE # for MKS sh
22229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22230   emulate sh
22231   NULLCMD=:
22232   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22233   # is contrary to our usage.  Disable this feature.
22234   alias -g '${1+"$@"}'='"$@"'
22235   setopt NO_GLOB_SUBST
22236 else
22237   case `(set -o) 2>/dev/null` in
22238   *posix*) set -o posix ;;
22239 esac
22240
22241 fi
22242
22243
22244
22245
22246 # PATH needs CR
22247 # Avoid depending upon Character Ranges.
22248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22251 as_cr_digits='0123456789'
22252 as_cr_alnum=$as_cr_Letters$as_cr_digits
22253
22254 # The user is always right.
22255 if test "${PATH_SEPARATOR+set}" != set; then
22256   echo "#! /bin/sh" >conf$$.sh
22257   echo  "exit 0"   >>conf$$.sh
22258   chmod +x conf$$.sh
22259   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22260     PATH_SEPARATOR=';'
22261   else
22262     PATH_SEPARATOR=:
22263   fi
22264   rm -f conf$$.sh
22265 fi
22266
22267 # Support unset when possible.
22268 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22269   as_unset=unset
22270 else
22271   as_unset=false
22272 fi
22273
22274
22275 # IFS
22276 # We need space, tab and new line, in precisely that order.  Quoting is
22277 # there to prevent editors from complaining about space-tab.
22278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22279 # splitting by setting IFS to empty value.)
22280 as_nl='
22281 '
22282 IFS=" ""        $as_nl"
22283
22284 # Find who we are.  Look in the path if we contain no directory separator.
22285 case $0 in
22286   *[\\/]* ) as_myself=$0 ;;
22287   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22288 for as_dir in $PATH
22289 do
22290   IFS=$as_save_IFS
22291   test -z "$as_dir" && as_dir=.
22292   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22293 done
22294 IFS=$as_save_IFS
22295
22296      ;;
22297 esac
22298 # We did not find ourselves, most probably we were run as `sh COMMAND'
22299 # in which case we are not to be found in the path.
22300 if test "x$as_myself" = x; then
22301   as_myself=$0
22302 fi
22303 if test ! -f "$as_myself"; then
22304   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22305   { (exit 1); exit 1; }
22306 fi
22307
22308 # Work around bugs in pre-3.0 UWIN ksh.
22309 for as_var in ENV MAIL MAILPATH
22310 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22311 done
22312 PS1='$ '
22313 PS2='> '
22314 PS4='+ '
22315
22316 # NLS nuisances.
22317 for as_var in \
22318   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22319   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22320   LC_TELEPHONE LC_TIME
22321 do
22322   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22323     eval $as_var=C; export $as_var
22324   else
22325     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22326   fi
22327 done
22328
22329 # Required to use basename.
22330 if expr a : '\(a\)' >/dev/null 2>&1 &&
22331    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22332   as_expr=expr
22333 else
22334   as_expr=false
22335 fi
22336
22337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22338   as_basename=basename
22339 else
22340   as_basename=false
22341 fi
22342
22343
22344 # Name of the executable.
22345 as_me=`$as_basename -- "$0" ||
22346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22347          X"$0" : 'X\(//\)$' \| \
22348          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22349 echo X/"$0" |
22350     sed '/^.*\/\([^/][^/]*\)\/*$/{
22351             s//\1/
22352             q
22353           }
22354           /^X\/\(\/\/\)$/{
22355             s//\1/
22356             q
22357           }
22358           /^X\/\(\/\).*/{
22359             s//\1/
22360             q
22361           }
22362           s/.*/./; q'`
22363
22364 # CDPATH.
22365 $as_unset CDPATH
22366
22367
22368
22369   as_lineno_1=$LINENO
22370   as_lineno_2=$LINENO
22371   test "x$as_lineno_1" != "x$as_lineno_2" &&
22372   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22373
22374   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22375   # uniformly replaced by the line number.  The first 'sed' inserts a
22376   # line-number line after each line using $LINENO; the second 'sed'
22377   # does the real work.  The second script uses 'N' to pair each
22378   # line-number line with the line containing $LINENO, and appends
22379   # trailing '-' during substitution so that $LINENO is not a special
22380   # case at line end.
22381   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22382   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22383   # E. McMahon (1931-1989) for sed's syntax.  :-)
22384   sed -n '
22385     p
22386     /[$]LINENO/=
22387   ' <$as_myself |
22388     sed '
22389       s/[$]LINENO.*/&-/
22390       t lineno
22391       b
22392       :lineno
22393       N
22394       :loop
22395       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22396       t loop
22397       s/-\n.*//
22398     ' >$as_me.lineno &&
22399   chmod +x "$as_me.lineno" ||
22400     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22401    { (exit 1); exit 1; }; }
22402
22403   # Don't try to exec as it changes $[0], causing all sort of problems
22404   # (the dirname of $[0] is not the place where we might find the
22405   # original and so on.  Autoconf is especially sensitive to this).
22406   . "./$as_me.lineno"
22407   # Exit status is that of the last command.
22408   exit
22409 }
22410
22411
22412 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22413   as_dirname=dirname
22414 else
22415   as_dirname=false
22416 fi
22417
22418 ECHO_C= ECHO_N= ECHO_T=
22419 case `echo -n x` in
22420 -n*)
22421   case `echo 'x\c'` in
22422   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22423   *)   ECHO_C='\c';;
22424   esac;;
22425 *)
22426   ECHO_N='-n';;
22427 esac
22428
22429 if expr a : '\(a\)' >/dev/null 2>&1 &&
22430    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22431   as_expr=expr
22432 else
22433   as_expr=false
22434 fi
22435
22436 rm -f conf$$ conf$$.exe conf$$.file
22437 if test -d conf$$.dir; then
22438   rm -f conf$$.dir/conf$$.file
22439 else
22440   rm -f conf$$.dir
22441   mkdir conf$$.dir
22442 fi
22443 echo >conf$$.file
22444 if ln -s conf$$.file conf$$ 2>/dev/null; then
22445   as_ln_s='ln -s'
22446   # ... but there are two gotchas:
22447   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22448   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22449   # In both cases, we have to default to `cp -p'.
22450   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22451     as_ln_s='cp -p'
22452 elif ln conf$$.file conf$$ 2>/dev/null; then
22453   as_ln_s=ln
22454 else
22455   as_ln_s='cp -p'
22456 fi
22457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22458 rmdir conf$$.dir 2>/dev/null
22459
22460 if mkdir -p . 2>/dev/null; then
22461   as_mkdir_p=:
22462 else
22463   test -d ./-p && rmdir ./-p
22464   as_mkdir_p=false
22465 fi
22466
22467 if test -x / >/dev/null 2>&1; then
22468   as_test_x='test -x'
22469 else
22470   if ls -dL / >/dev/null 2>&1; then
22471     as_ls_L_option=L
22472   else
22473     as_ls_L_option=
22474   fi
22475   as_test_x='
22476     eval sh -c '\''
22477       if test -d "$1"; then
22478         test -d "$1/.";
22479       else
22480         case $1 in
22481         -*)set "./$1";;
22482         esac;
22483         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22484         ???[sx]*):;;*)false;;esac;fi
22485     '\'' sh
22486   '
22487 fi
22488 as_executable_p=$as_test_x
22489
22490 # Sed expression to map a string onto a valid CPP name.
22491 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22492
22493 # Sed expression to map a string onto a valid variable name.
22494 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22495
22496
22497 exec 6>&1
22498
22499 # Save the log message, to keep $[0] and so on meaningful, and to
22500 # report actual input values of CONFIG_FILES etc. instead of their
22501 # values after options handling.
22502 ac_log="
22503 This file was extended by mod_chxj $as_me 1.0.0, which was
22504 generated by GNU Autoconf 2.61.  Invocation command line was
22505
22506   CONFIG_FILES    = $CONFIG_FILES
22507   CONFIG_HEADERS  = $CONFIG_HEADERS
22508   CONFIG_LINKS    = $CONFIG_LINKS
22509   CONFIG_COMMANDS = $CONFIG_COMMANDS
22510   $ $0 $@
22511
22512 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22513 "
22514
22515 _ACEOF
22516
22517 cat >>$CONFIG_STATUS <<_ACEOF
22518 # Files that config.status was made for.
22519 config_files="$ac_config_files"
22520 config_headers="$ac_config_headers"
22521 config_commands="$ac_config_commands"
22522
22523 _ACEOF
22524
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22526 ac_cs_usage="\
22527 \`$as_me' instantiates files from templates according to the
22528 current configuration.
22529
22530 Usage: $0 [OPTIONS] [FILE]...
22531
22532   -h, --help       print this help, then exit
22533   -V, --version    print version number and configuration settings, then exit
22534   -q, --quiet      do not print progress messages
22535   -d, --debug      don't remove temporary files
22536       --recheck    update $as_me by reconfiguring in the same conditions
22537   --file=FILE[:TEMPLATE]
22538                    instantiate the configuration file FILE
22539   --header=FILE[:TEMPLATE]
22540                    instantiate the configuration header FILE
22541
22542 Configuration files:
22543 $config_files
22544
22545 Configuration headers:
22546 $config_headers
22547
22548 Configuration commands:
22549 $config_commands
22550
22551 Report bugs to <bug-autoconf@gnu.org>."
22552
22553 _ACEOF
22554 cat >>$CONFIG_STATUS <<_ACEOF
22555 ac_cs_version="\\
22556 mod_chxj config.status 1.0.0
22557 configured by $0, generated by GNU Autoconf 2.61,
22558   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22559
22560 Copyright (C) 2006 Free Software Foundation, Inc.
22561 This config.status script is free software; the Free Software Foundation
22562 gives unlimited permission to copy, distribute and modify it."
22563
22564 ac_pwd='$ac_pwd'
22565 srcdir='$srcdir'
22566 INSTALL='$INSTALL'
22567 MKDIR_P='$MKDIR_P'
22568 _ACEOF
22569
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22571 # If no file are specified by the user, then we need to provide default
22572 # value.  By we need to know if files were specified by the user.
22573 ac_need_defaults=:
22574 while test $# != 0
22575 do
22576   case $1 in
22577   --*=*)
22578     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22579     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22580     ac_shift=:
22581     ;;
22582   *)
22583     ac_option=$1
22584     ac_optarg=$2
22585     ac_shift=shift
22586     ;;
22587   esac
22588
22589   case $ac_option in
22590   # Handling of the options.
22591   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22592     ac_cs_recheck=: ;;
22593   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22594     echo "$ac_cs_version"; exit ;;
22595   --debug | --debu | --deb | --de | --d | -d )
22596     debug=: ;;
22597   --file | --fil | --fi | --f )
22598     $ac_shift
22599     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22600     ac_need_defaults=false;;
22601   --header | --heade | --head | --hea )
22602     $ac_shift
22603     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22604     ac_need_defaults=false;;
22605   --he | --h)
22606     # Conflict between --help and --header
22607     { echo "$as_me: error: ambiguous option: $1
22608 Try \`$0 --help' for more information." >&2
22609    { (exit 1); exit 1; }; };;
22610   --help | --hel | -h )
22611     echo "$ac_cs_usage"; exit ;;
22612   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22613   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22614     ac_cs_silent=: ;;
22615
22616   # This is an error.
22617   -*) { echo "$as_me: error: unrecognized option: $1
22618 Try \`$0 --help' for more information." >&2
22619    { (exit 1); exit 1; }; } ;;
22620
22621   *) ac_config_targets="$ac_config_targets $1"
22622      ac_need_defaults=false ;;
22623
22624   esac
22625   shift
22626 done
22627
22628 ac_configure_extra_args=
22629
22630 if $ac_cs_silent; then
22631   exec 6>/dev/null
22632   ac_configure_extra_args="$ac_configure_extra_args --silent"
22633 fi
22634
22635 _ACEOF
22636 cat >>$CONFIG_STATUS <<_ACEOF
22637 if \$ac_cs_recheck; then
22638   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22639   CONFIG_SHELL=$SHELL
22640   export CONFIG_SHELL
22641   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22642 fi
22643
22644 _ACEOF
22645 cat >>$CONFIG_STATUS <<\_ACEOF
22646 exec 5>>config.log
22647 {
22648   echo
22649   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22650 ## Running $as_me. ##
22651 _ASBOX
22652   echo "$ac_log"
22653 } >&5
22654
22655 _ACEOF
22656 cat >>$CONFIG_STATUS <<_ACEOF
22657 #
22658 # INIT-COMMANDS
22659 #
22660 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22661
22662 _ACEOF
22663
22664 cat >>$CONFIG_STATUS <<\_ACEOF
22665
22666 # Handling of arguments.
22667 for ac_config_target in $ac_config_targets
22668 do
22669   case $ac_config_target in
22670     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22671     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22672     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22673     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22674
22675   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22676 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22677    { (exit 1); exit 1; }; };;
22678   esac
22679 done
22680
22681
22682 # If the user did not use the arguments to specify the items to instantiate,
22683 # then the envvar interface is used.  Set only those that are not.
22684 # We use the long form for the default assignment because of an extremely
22685 # bizarre bug on SunOS 4.1.3.
22686 if $ac_need_defaults; then
22687   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22688   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22689   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22690 fi
22691
22692 # Have a temporary directory for convenience.  Make it in the build tree
22693 # simply because there is no reason against having it here, and in addition,
22694 # creating and moving files from /tmp can sometimes cause problems.
22695 # Hook for its removal unless debugging.
22696 # Note that there is a small window in which the directory will not be cleaned:
22697 # after its creation but before its name has been assigned to `$tmp'.
22698 $debug ||
22699 {
22700   tmp=
22701   trap 'exit_status=$?
22702   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22703 ' 0
22704   trap '{ (exit 1); exit 1; }' 1 2 13 15
22705 }
22706 # Create a (secure) tmp directory for tmp files.
22707
22708 {
22709   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22710   test -n "$tmp" && test -d "$tmp"
22711 }  ||
22712 {
22713   tmp=./conf$$-$RANDOM
22714   (umask 077 && mkdir "$tmp")
22715 } ||
22716 {
22717    echo "$me: cannot create a temporary directory in ." >&2
22718    { (exit 1); exit 1; }
22719 }
22720
22721 #
22722 # Set up the sed scripts for CONFIG_FILES section.
22723 #
22724
22725 # No need to generate the scripts if there are no CONFIG_FILES.
22726 # This happens for instance when ./config.status config.h
22727 if test -n "$CONFIG_FILES"; then
22728
22729 _ACEOF
22730
22731
22732
22733 ac_delim='%!_!# '
22734 for ac_last_try in false false false false false :; do
22735   cat >conf$$subs.sed <<_ACEOF
22736 SHELL!$SHELL$ac_delim
22737 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22738 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22739 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22740 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22741 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22742 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22743 exec_prefix!$exec_prefix$ac_delim
22744 prefix!$prefix$ac_delim
22745 program_transform_name!$program_transform_name$ac_delim
22746 bindir!$bindir$ac_delim
22747 sbindir!$sbindir$ac_delim
22748 libexecdir!$libexecdir$ac_delim
22749 datarootdir!$datarootdir$ac_delim
22750 datadir!$datadir$ac_delim
22751 sysconfdir!$sysconfdir$ac_delim
22752 sharedstatedir!$sharedstatedir$ac_delim
22753 localstatedir!$localstatedir$ac_delim
22754 includedir!$includedir$ac_delim
22755 oldincludedir!$oldincludedir$ac_delim
22756 docdir!$docdir$ac_delim
22757 infodir!$infodir$ac_delim
22758 htmldir!$htmldir$ac_delim
22759 dvidir!$dvidir$ac_delim
22760 pdfdir!$pdfdir$ac_delim
22761 psdir!$psdir$ac_delim
22762 libdir!$libdir$ac_delim
22763 localedir!$localedir$ac_delim
22764 mandir!$mandir$ac_delim
22765 DEFS!$DEFS$ac_delim
22766 ECHO_C!$ECHO_C$ac_delim
22767 ECHO_N!$ECHO_N$ac_delim
22768 ECHO_T!$ECHO_T$ac_delim
22769 LIBS!$LIBS$ac_delim
22770 build_alias!$build_alias$ac_delim
22771 host_alias!$host_alias$ac_delim
22772 target_alias!$target_alias$ac_delim
22773 build!$build$ac_delim
22774 build_cpu!$build_cpu$ac_delim
22775 build_vendor!$build_vendor$ac_delim
22776 build_os!$build_os$ac_delim
22777 host!$host$ac_delim
22778 host_cpu!$host_cpu$ac_delim
22779 host_vendor!$host_vendor$ac_delim
22780 host_os!$host_os$ac_delim
22781 target!$target$ac_delim
22782 target_cpu!$target_cpu$ac_delim
22783 target_vendor!$target_vendor$ac_delim
22784 target_os!$target_os$ac_delim
22785 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22786 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22787 INSTALL_DATA!$INSTALL_DATA$ac_delim
22788 am__isrc!$am__isrc$ac_delim
22789 CYGPATH_W!$CYGPATH_W$ac_delim
22790 PACKAGE!$PACKAGE$ac_delim
22791 VERSION!$VERSION$ac_delim
22792 ACLOCAL!$ACLOCAL$ac_delim
22793 AUTOCONF!$AUTOCONF$ac_delim
22794 AUTOMAKE!$AUTOMAKE$ac_delim
22795 AUTOHEADER!$AUTOHEADER$ac_delim
22796 MAKEINFO!$MAKEINFO$ac_delim
22797 install_sh!$install_sh$ac_delim
22798 STRIP!$STRIP$ac_delim
22799 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22800 mkdir_p!$mkdir_p$ac_delim
22801 AWK!$AWK$ac_delim
22802 SET_MAKE!$SET_MAKE$ac_delim
22803 am__leading_dot!$am__leading_dot$ac_delim
22804 AMTAR!$AMTAR$ac_delim
22805 am__tar!$am__tar$ac_delim
22806 am__untar!$am__untar$ac_delim
22807 CC!$CC$ac_delim
22808 CFLAGS!$CFLAGS$ac_delim
22809 LDFLAGS!$LDFLAGS$ac_delim
22810 CPPFLAGS!$CPPFLAGS$ac_delim
22811 ac_ct_CC!$ac_ct_CC$ac_delim
22812 EXEEXT!$EXEEXT$ac_delim
22813 OBJEXT!$OBJEXT$ac_delim
22814 DEPDIR!$DEPDIR$ac_delim
22815 am__include!$am__include$ac_delim
22816 am__quote!$am__quote$ac_delim
22817 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22818 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22819 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22820 CCDEPMODE!$CCDEPMODE$ac_delim
22821 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22822 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22823 CPP!$CPP$ac_delim
22824 GREP!$GREP$ac_delim
22825 EGREP!$EGREP$ac_delim
22826 LN_S!$LN_S$ac_delim
22827 ECHO!$ECHO$ac_delim
22828 AR!$AR$ac_delim
22829 RANLIB!$RANLIB$ac_delim
22830 CXX!$CXX$ac_delim
22831 CXXFLAGS!$CXXFLAGS$ac_delim
22832 ac_ct_CXX!$ac_ct_CXX$ac_delim
22833 _ACEOF
22834
22835   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22836     break
22837   elif $ac_last_try; then
22838     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22840    { (exit 1); exit 1; }; }
22841   else
22842     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22843   fi
22844 done
22845
22846 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22847 if test -n "$ac_eof"; then
22848   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22849   ac_eof=`expr $ac_eof + 1`
22850 fi
22851
22852 cat >>$CONFIG_STATUS <<_ACEOF
22853 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22855 _ACEOF
22856 sed '
22857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22858 s/^/s,@/; s/!/@,|#_!!_#|/
22859 :n
22860 t n
22861 s/'"$ac_delim"'$/,g/; t
22862 s/$/\\/; p
22863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22864 ' >>$CONFIG_STATUS <conf$$subs.sed
22865 rm -f conf$$subs.sed
22866 cat >>$CONFIG_STATUS <<_ACEOF
22867 CEOF$ac_eof
22868 _ACEOF
22869
22870
22871 ac_delim='%!_!# '
22872 for ac_last_try in false false false false false :; do
22873   cat >conf$$subs.sed <<_ACEOF
22874 CXXDEPMODE!$CXXDEPMODE$ac_delim
22875 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22876 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22877 CXXCPP!$CXXCPP$ac_delim
22878 F77!$F77$ac_delim
22879 FFLAGS!$FFLAGS$ac_delim
22880 ac_ct_F77!$ac_ct_F77$ac_delim
22881 LIBTOOL!$LIBTOOL$ac_delim
22882 APXS2!$APXS2$ac_delim
22883 APXS!$APXS$ac_delim
22884 WAND_CONFIG!$WAND_CONFIG$ac_delim
22885 APR_CONFIG!$APR_CONFIG$ac_delim
22886 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22887 APU_CONFIG!$APU_CONFIG$ac_delim
22888 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22889 with_apache_header!$with_apache_header$ac_delim
22890 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22891 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22892 LIBOBJS!$LIBOBJS$ac_delim
22893 QDEFS!$QDEFS$ac_delim
22894 DDEFS!$DDEFS$ac_delim
22895 LTLIBOBJS!$LTLIBOBJS$ac_delim
22896 _ACEOF
22897
22898   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
22899     break
22900   elif $ac_last_try; then
22901     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22903    { (exit 1); exit 1; }; }
22904   else
22905     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22906   fi
22907 done
22908
22909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22910 if test -n "$ac_eof"; then
22911   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22912   ac_eof=`expr $ac_eof + 1`
22913 fi
22914
22915 cat >>$CONFIG_STATUS <<_ACEOF
22916 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22918 _ACEOF
22919 sed '
22920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22921 s/^/s,@/; s/!/@,|#_!!_#|/
22922 :n
22923 t n
22924 s/'"$ac_delim"'$/,g/; t
22925 s/$/\\/; p
22926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22927 ' >>$CONFIG_STATUS <conf$$subs.sed
22928 rm -f conf$$subs.sed
22929 cat >>$CONFIG_STATUS <<_ACEOF
22930 :end
22931 s/|#_!!_#|//g
22932 CEOF$ac_eof
22933 _ACEOF
22934
22935
22936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22938 # trailing colons and then remove the whole line if VPATH becomes empty
22939 # (actually we leave an empty line to preserve line numbers).
22940 if test "x$srcdir" = x.; then
22941   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22942 s/:*\$(srcdir):*/:/
22943 s/:*\${srcdir}:*/:/
22944 s/:*@srcdir@:*/:/
22945 s/^\([^=]*=[     ]*\):*/\1/
22946 s/:*$//
22947 s/^[^=]*=[       ]*$//
22948 }'
22949 fi
22950
22951 cat >>$CONFIG_STATUS <<\_ACEOF
22952 fi # test -n "$CONFIG_FILES"
22953
22954
22955 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22956 do
22957   case $ac_tag in
22958   :[FHLC]) ac_mode=$ac_tag; continue;;
22959   esac
22960   case $ac_mode$ac_tag in
22961   :[FHL]*:*);;
22962   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22963 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22964    { (exit 1); exit 1; }; };;
22965   :[FH]-) ac_tag=-:-;;
22966   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22967   esac
22968   ac_save_IFS=$IFS
22969   IFS=:
22970   set x $ac_tag
22971   IFS=$ac_save_IFS
22972   shift
22973   ac_file=$1
22974   shift
22975
22976   case $ac_mode in
22977   :L) ac_source=$1;;
22978   :[FH])
22979     ac_file_inputs=
22980     for ac_f
22981     do
22982       case $ac_f in
22983       -) ac_f="$tmp/stdin";;
22984       *) # Look for the file first in the build tree, then in the source tree
22985          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22986          # because $ac_f cannot contain `:'.
22987          test -f "$ac_f" ||
22988            case $ac_f in
22989            [\\/$]*) false;;
22990            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22991            esac ||
22992            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22993 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22994    { (exit 1); exit 1; }; };;
22995       esac
22996       ac_file_inputs="$ac_file_inputs $ac_f"
22997     done
22998
22999     # Let's still pretend it is `configure' which instantiates (i.e., don't
23000     # use $as_me), people would be surprised to read:
23001     #    /* config.h.  Generated by config.status.  */
23002     configure_input="Generated from "`IFS=:
23003           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23004     if test x"$ac_file" != x-; then
23005       configure_input="$ac_file.  $configure_input"
23006       { echo "$as_me:$LINENO: creating $ac_file" >&5
23007 echo "$as_me: creating $ac_file" >&6;}
23008     fi
23009
23010     case $ac_tag in
23011     *:-:* | *:-) cat >"$tmp/stdin";;
23012     esac
23013     ;;
23014   esac
23015
23016   ac_dir=`$as_dirname -- "$ac_file" ||
23017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018          X"$ac_file" : 'X\(//\)[^/]' \| \
23019          X"$ac_file" : 'X\(//\)$' \| \
23020          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23021 echo X"$ac_file" |
23022     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23023             s//\1/
23024             q
23025           }
23026           /^X\(\/\/\)[^/].*/{
23027             s//\1/
23028             q
23029           }
23030           /^X\(\/\/\)$/{
23031             s//\1/
23032             q
23033           }
23034           /^X\(\/\).*/{
23035             s//\1/
23036             q
23037           }
23038           s/.*/./; q'`
23039   { as_dir="$ac_dir"
23040   case $as_dir in #(
23041   -*) as_dir=./$as_dir;;
23042   esac
23043   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23044     as_dirs=
23045     while :; do
23046       case $as_dir in #(
23047       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23048       *) as_qdir=$as_dir;;
23049       esac
23050       as_dirs="'$as_qdir' $as_dirs"
23051       as_dir=`$as_dirname -- "$as_dir" ||
23052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23053          X"$as_dir" : 'X\(//\)[^/]' \| \
23054          X"$as_dir" : 'X\(//\)$' \| \
23055          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23056 echo X"$as_dir" |
23057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23058             s//\1/
23059             q
23060           }
23061           /^X\(\/\/\)[^/].*/{
23062             s//\1/
23063             q
23064           }
23065           /^X\(\/\/\)$/{
23066             s//\1/
23067             q
23068           }
23069           /^X\(\/\).*/{
23070             s//\1/
23071             q
23072           }
23073           s/.*/./; q'`
23074       test -d "$as_dir" && break
23075     done
23076     test -z "$as_dirs" || eval "mkdir $as_dirs"
23077   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23078 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23079    { (exit 1); exit 1; }; }; }
23080   ac_builddir=.
23081
23082 case "$ac_dir" in
23083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23084 *)
23085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23086   # A ".." for each directory in $ac_dir_suffix.
23087   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23088   case $ac_top_builddir_sub in
23089   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23090   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23091   esac ;;
23092 esac
23093 ac_abs_top_builddir=$ac_pwd
23094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23095 # for backward compatibility:
23096 ac_top_builddir=$ac_top_build_prefix
23097
23098 case $srcdir in
23099   .)  # We are building in place.
23100     ac_srcdir=.
23101     ac_top_srcdir=$ac_top_builddir_sub
23102     ac_abs_top_srcdir=$ac_pwd ;;
23103   [\\/]* | ?:[\\/]* )  # Absolute name.
23104     ac_srcdir=$srcdir$ac_dir_suffix;
23105     ac_top_srcdir=$srcdir
23106     ac_abs_top_srcdir=$srcdir ;;
23107   *) # Relative name.
23108     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23109     ac_top_srcdir=$ac_top_build_prefix$srcdir
23110     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23111 esac
23112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23113
23114
23115   case $ac_mode in
23116   :F)
23117   #
23118   # CONFIG_FILE
23119   #
23120
23121   case $INSTALL in
23122   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23123   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23124   esac
23125   ac_MKDIR_P=$MKDIR_P
23126   case $MKDIR_P in
23127   [\\/$]* | ?:[\\/]* ) ;;
23128   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23129   esac
23130 _ACEOF
23131
23132 cat >>$CONFIG_STATUS <<\_ACEOF
23133 # If the template does not know about datarootdir, expand it.
23134 # FIXME: This hack should be removed a few years after 2.60.
23135 ac_datarootdir_hack=; ac_datarootdir_seen=
23136
23137 case `sed -n '/datarootdir/ {
23138   p
23139   q
23140 }
23141 /@datadir@/p
23142 /@docdir@/p
23143 /@infodir@/p
23144 /@localedir@/p
23145 /@mandir@/p
23146 ' $ac_file_inputs` in
23147 *datarootdir*) ac_datarootdir_seen=yes;;
23148 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23149   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23150 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23151 _ACEOF
23152 cat >>$CONFIG_STATUS <<_ACEOF
23153   ac_datarootdir_hack='
23154   s&@datadir@&$datadir&g
23155   s&@docdir@&$docdir&g
23156   s&@infodir@&$infodir&g
23157   s&@localedir@&$localedir&g
23158   s&@mandir@&$mandir&g
23159     s&\\\${datarootdir}&$datarootdir&g' ;;
23160 esac
23161 _ACEOF
23162
23163 # Neutralize VPATH when `$srcdir' = `.'.
23164 # Shell code in configure.ac might set extrasub.
23165 # FIXME: do we really want to maintain this feature?
23166 cat >>$CONFIG_STATUS <<_ACEOF
23167   sed "$ac_vpsub
23168 $extrasub
23169 _ACEOF
23170 cat >>$CONFIG_STATUS <<\_ACEOF
23171 :t
23172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23173 s&@configure_input@&$configure_input&;t t
23174 s&@top_builddir@&$ac_top_builddir_sub&;t t
23175 s&@srcdir@&$ac_srcdir&;t t
23176 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23177 s&@top_srcdir@&$ac_top_srcdir&;t t
23178 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23179 s&@builddir@&$ac_builddir&;t t
23180 s&@abs_builddir@&$ac_abs_builddir&;t t
23181 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23182 s&@INSTALL@&$ac_INSTALL&;t t
23183 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23184 $ac_datarootdir_hack
23185 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23186
23187 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23188   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23189   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23190   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23191 which seems to be undefined.  Please make sure it is defined." >&5
23192 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23193 which seems to be undefined.  Please make sure it is defined." >&2;}
23194
23195   rm -f "$tmp/stdin"
23196   case $ac_file in
23197   -) cat "$tmp/out"; rm -f "$tmp/out";;
23198   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23199   esac
23200  ;;
23201   :H)
23202   #
23203   # CONFIG_HEADER
23204   #
23205 _ACEOF
23206
23207 # Transform confdefs.h into a sed script `conftest.defines', that
23208 # substitutes the proper values into config.h.in to produce config.h.
23209 rm -f conftest.defines conftest.tail
23210 # First, append a space to every undef/define line, to ease matching.
23211 echo 's/$/ /' >conftest.defines
23212 # Then, protect against being on the right side of a sed subst, or in
23213 # an unquoted here document, in config.status.  If some macros were
23214 # called several times there might be several #defines for the same
23215 # symbol, which is useless.  But do not sort them, since the last
23216 # AC_DEFINE must be honored.
23217 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23218 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23219 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23220 # PARAMS is the parameter list in the macro definition--in most cases, it's
23221 # just an empty string.
23222 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23223 ac_dB='\\)[      (].*,\\1define\\2'
23224 ac_dC=' '
23225 ac_dD=' ,'
23226
23227 uniq confdefs.h |
23228   sed -n '
23229         t rset
23230         :rset
23231         s/^[     ]*#[    ]*define[       ][      ]*//
23232         t ok
23233         d
23234         :ok
23235         s/[\\&,]/\\&/g
23236         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23237         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23238   ' >>conftest.defines
23239
23240 # Remove the space that was appended to ease matching.
23241 # Then replace #undef with comments.  This is necessary, for
23242 # example, in the case of _POSIX_SOURCE, which is predefined and required
23243 # on some systems where configure will not decide to define it.
23244 # (The regexp can be short, since the line contains either #define or #undef.)
23245 echo 's/ $//
23246 s,^[     #]*u.*,/* & */,' >>conftest.defines
23247
23248 # Break up conftest.defines:
23249 ac_max_sed_lines=50
23250
23251 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23252 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23253 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23254 # et cetera.
23255 ac_in='$ac_file_inputs'
23256 ac_out='"$tmp/out1"'
23257 ac_nxt='"$tmp/out2"'
23258
23259 while :
23260 do
23261   # Write a here document:
23262     cat >>$CONFIG_STATUS <<_ACEOF
23263     # First, check the format of the line:
23264     cat >"\$tmp/defines.sed" <<\\CEOF
23265 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23266 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23267 b
23268 :def
23269 _ACEOF
23270   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23271   echo 'CEOF
23272     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23273   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23274   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23275   grep . conftest.tail >/dev/null || break
23276   rm -f conftest.defines
23277   mv conftest.tail conftest.defines
23278 done
23279 rm -f conftest.defines conftest.tail
23280
23281 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23282 cat >>$CONFIG_STATUS <<\_ACEOF
23283   if test x"$ac_file" != x-; then
23284     echo "/* $configure_input  */" >"$tmp/config.h"
23285     cat "$ac_result" >>"$tmp/config.h"
23286     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23287       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23288 echo "$as_me: $ac_file is unchanged" >&6;}
23289     else
23290       rm -f $ac_file
23291       mv "$tmp/config.h" $ac_file
23292     fi
23293   else
23294     echo "/* $configure_input  */"
23295     cat "$ac_result"
23296   fi
23297   rm -f "$tmp/out12"
23298 # Compute $ac_file's index in $config_headers.
23299 _am_stamp_count=1
23300 for _am_header in $config_headers :; do
23301   case $_am_header in
23302     $ac_file | $ac_file:* )
23303       break ;;
23304     * )
23305       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23306   esac
23307 done
23308 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23309 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310          X$ac_file : 'X\(//\)[^/]' \| \
23311          X$ac_file : 'X\(//\)$' \| \
23312          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23313 echo X$ac_file |
23314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23315             s//\1/
23316             q
23317           }
23318           /^X\(\/\/\)[^/].*/{
23319             s//\1/
23320             q
23321           }
23322           /^X\(\/\/\)$/{
23323             s//\1/
23324             q
23325           }
23326           /^X\(\/\).*/{
23327             s//\1/
23328             q
23329           }
23330           s/.*/./; q'`/stamp-h$_am_stamp_count
23331  ;;
23332
23333   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23334 echo "$as_me: executing $ac_file commands" >&6;}
23335  ;;
23336   esac
23337
23338
23339   case $ac_file$ac_mode in
23340     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23341   # Strip MF so we end up with the name of the file.
23342   mf=`echo "$mf" | sed -e 's/:.*$//'`
23343   # Check whether this is an Automake generated Makefile or not.
23344   # We used to match only the files named `Makefile.in', but
23345   # some people rename them; so instead we look at the file content.
23346   # Grep'ing the first line is not enough: some people post-process
23347   # each Makefile.in and add a new line on top of each file to say so.
23348   # Grep'ing the whole file is not good either: AIX grep has a line
23349   # limit of 2048, but all sed's we know have understand at least 4000.
23350   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23351     dirpart=`$as_dirname -- "$mf" ||
23352 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23353          X"$mf" : 'X\(//\)[^/]' \| \
23354          X"$mf" : 'X\(//\)$' \| \
23355          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23356 echo X"$mf" |
23357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23358             s//\1/
23359             q
23360           }
23361           /^X\(\/\/\)[^/].*/{
23362             s//\1/
23363             q
23364           }
23365           /^X\(\/\/\)$/{
23366             s//\1/
23367             q
23368           }
23369           /^X\(\/\).*/{
23370             s//\1/
23371             q
23372           }
23373           s/.*/./; q'`
23374   else
23375     continue
23376   fi
23377   # Extract the definition of DEPDIR, am__include, and am__quote
23378   # from the Makefile without running `make'.
23379   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23380   test -z "$DEPDIR" && continue
23381   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23382   test -z "am__include" && continue
23383   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23384   # When using ansi2knr, U may be empty or an underscore; expand it
23385   U=`sed -n 's/^U = //p' < "$mf"`
23386   # Find all dependency output files, they are included files with
23387   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23388   # simplest approach to changing $(DEPDIR) to its actual value in the
23389   # expansion.
23390   for file in `sed -n "
23391     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23392        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23393     # Make sure the directory exists.
23394     test -f "$dirpart/$file" && continue
23395     fdir=`$as_dirname -- "$file" ||
23396 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23397          X"$file" : 'X\(//\)[^/]' \| \
23398          X"$file" : 'X\(//\)$' \| \
23399          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23400 echo X"$file" |
23401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23402             s//\1/
23403             q
23404           }
23405           /^X\(\/\/\)[^/].*/{
23406             s//\1/
23407             q
23408           }
23409           /^X\(\/\/\)$/{
23410             s//\1/
23411             q
23412           }
23413           /^X\(\/\).*/{
23414             s//\1/
23415             q
23416           }
23417           s/.*/./; q'`
23418     { as_dir=$dirpart/$fdir
23419   case $as_dir in #(
23420   -*) as_dir=./$as_dir;;
23421   esac
23422   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23423     as_dirs=
23424     while :; do
23425       case $as_dir in #(
23426       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23427       *) as_qdir=$as_dir;;
23428       esac
23429       as_dirs="'$as_qdir' $as_dirs"
23430       as_dir=`$as_dirname -- "$as_dir" ||
23431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23432          X"$as_dir" : 'X\(//\)[^/]' \| \
23433          X"$as_dir" : 'X\(//\)$' \| \
23434          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23435 echo X"$as_dir" |
23436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23437             s//\1/
23438             q
23439           }
23440           /^X\(\/\/\)[^/].*/{
23441             s//\1/
23442             q
23443           }
23444           /^X\(\/\/\)$/{
23445             s//\1/
23446             q
23447           }
23448           /^X\(\/\).*/{
23449             s//\1/
23450             q
23451           }
23452           s/.*/./; q'`
23453       test -d "$as_dir" && break
23454     done
23455     test -z "$as_dirs" || eval "mkdir $as_dirs"
23456   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23457 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23458    { (exit 1); exit 1; }; }; }
23459     # echo "creating $dirpart/$file"
23460     echo '# dummy' > "$dirpart/$file"
23461   done
23462 done
23463  ;;
23464
23465   esac
23466 done # for ac_tag
23467
23468
23469 { (exit 0); exit 0; }
23470 _ACEOF
23471 chmod +x $CONFIG_STATUS
23472 ac_clean_files=$ac_clean_files_save
23473
23474
23475 # configure is writing to config.log, and then calls config.status.
23476 # config.status does its own redirection, appending to config.log.
23477 # Unfortunately, on DOS this fails, as config.log is still kept open
23478 # by configure, so config.status won't be able to write to it; its
23479 # output is simply discarded.  So we exec the FD to /dev/null,
23480 # effectively closing config.log, so it can be properly (re)opened and
23481 # appended to by config.status.  When coming back to configure, we
23482 # need to make the FD available again.
23483 if test "$no_create" != yes; then
23484   ac_cs_success=:
23485   ac_config_status_args=
23486   test "$silent" = yes &&
23487     ac_config_status_args="$ac_config_status_args --quiet"
23488   exec 5>/dev/null
23489   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23490   exec 5>>config.log
23491   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23492   # would make configure fail if this is the last instruction.
23493   $ac_cs_success || { (exit 1); exit 1; }
23494 fi
23495