OSDN Git Service

Merge branch 'branch_0.12.0'
[modchxj/mod_chxj.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.13.0-rc.
4 #
5 # Report bugs to <konn@users.sourceforge.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='mod_chxj'
730 PACKAGE_TARNAME='mod_chxj'
731 PACKAGE_VERSION='0.13.0-rc'
732 PACKAGE_STRING='mod_chxj 0.13.0-rc'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
734
735 ac_unique_file="src/mod_chxj.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBTOOL_DEPS
878 APXS2
879 APXS
880 WAND_CONFIG
881 APR_CONFIG
882 APR_1_CONFIG
883 APU_CONFIG
884 APU_1_CONFIG
885 PCRE_CONFIG
886 PCRE_1_CONFIG
887 LIBOBJS
888 with_apache_header
889 QDEFS
890 DDEFS
891 OPENSSL_PATH
892 LTLIBOBJS'
893 ac_subst_files=''
894       ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CPP
903 CXX
904 CXXFLAGS
905 CCC
906 CXXCPP
907 F77
908 FFLAGS'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961   # If the previous option needs an argument, assign it.
962   if test -n "$ac_prev"; then
963     eval $ac_prev=\$ac_option
964     ac_prev=
965     continue
966   fi
967
968   case $ac_option in
969   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970   *)    ac_optarg=yes ;;
971   esac
972
973   # Accept the important Cygnus configure options, so we can diagnose typos.
974
975   case $ac_dashdash$ac_option in
976   --)
977     ac_dashdash=yes ;;
978
979   -bindir | --bindir | --bindi | --bind | --bin | --bi)
980     ac_prev=bindir ;;
981   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982     bindir=$ac_optarg ;;
983
984   -build | --build | --buil | --bui | --bu)
985     ac_prev=build_alias ;;
986   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987     build_alias=$ac_optarg ;;
988
989   -cache-file | --cache-file | --cache-fil | --cache-fi \
990   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991     ac_prev=cache_file ;;
992   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994     cache_file=$ac_optarg ;;
995
996   --config-cache | -C)
997     cache_file=config.cache ;;
998
999   -datadir | --datadir | --datadi | --datad)
1000     ac_prev=datadir ;;
1001   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002     datadir=$ac_optarg ;;
1003
1004   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005   | --dataroo | --dataro | --datar)
1006     ac_prev=datarootdir ;;
1007   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009     datarootdir=$ac_optarg ;;
1010
1011   -disable-* | --disable-*)
1012     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013     # Reject names that are not valid shell variable names.
1014     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016    { (exit 1); exit 1; }; }
1017     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018     eval enable_$ac_feature=no ;;
1019
1020   -docdir | --docdir | --docdi | --doc | --do)
1021     ac_prev=docdir ;;
1022   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023     docdir=$ac_optarg ;;
1024
1025   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026     ac_prev=dvidir ;;
1027   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028     dvidir=$ac_optarg ;;
1029
1030   -enable-* | --enable-*)
1031     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035    { (exit 1); exit 1; }; }
1036     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037     eval enable_$ac_feature=\$ac_optarg ;;
1038
1039   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041   | --exec | --exe | --ex)
1042     ac_prev=exec_prefix ;;
1043   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045   | --exec=* | --exe=* | --ex=*)
1046     exec_prefix=$ac_optarg ;;
1047
1048   -gas | --gas | --ga | --g)
1049     # Obsolete; use --with-gas.
1050     with_gas=yes ;;
1051
1052   -help | --help | --hel | --he | -h)
1053     ac_init_help=long ;;
1054   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055     ac_init_help=recursive ;;
1056   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057     ac_init_help=short ;;
1058
1059   -host | --host | --hos | --ho)
1060     ac_prev=host_alias ;;
1061   -host=* | --host=* | --hos=* | --ho=*)
1062     host_alias=$ac_optarg ;;
1063
1064   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065     ac_prev=htmldir ;;
1066   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067   | --ht=*)
1068     htmldir=$ac_optarg ;;
1069
1070   -includedir | --includedir | --includedi | --included | --include \
1071   | --includ | --inclu | --incl | --inc)
1072     ac_prev=includedir ;;
1073   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074   | --includ=* | --inclu=* | --incl=* | --inc=*)
1075     includedir=$ac_optarg ;;
1076
1077   -infodir | --infodir | --infodi | --infod | --info | --inf)
1078     ac_prev=infodir ;;
1079   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080     infodir=$ac_optarg ;;
1081
1082   -libdir | --libdir | --libdi | --libd)
1083     ac_prev=libdir ;;
1084   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085     libdir=$ac_optarg ;;
1086
1087   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088   | --libexe | --libex | --libe)
1089     ac_prev=libexecdir ;;
1090   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091   | --libexe=* | --libex=* | --libe=*)
1092     libexecdir=$ac_optarg ;;
1093
1094   -localedir | --localedir | --localedi | --localed | --locale)
1095     ac_prev=localedir ;;
1096   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097     localedir=$ac_optarg ;;
1098
1099   -localstatedir | --localstatedir | --localstatedi | --localstated \
1100   | --localstate | --localstat | --localsta | --localst | --locals)
1101     ac_prev=localstatedir ;;
1102   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104     localstatedir=$ac_optarg ;;
1105
1106   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107     ac_prev=mandir ;;
1108   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109     mandir=$ac_optarg ;;
1110
1111   -nfp | --nfp | --nf)
1112     # Obsolete; use --without-fp.
1113     with_fp=no ;;
1114
1115   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116   | --no-cr | --no-c | -n)
1117     no_create=yes ;;
1118
1119   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121     no_recursion=yes ;;
1122
1123   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125   | --oldin | --oldi | --old | --ol | --o)
1126     ac_prev=oldincludedir ;;
1127   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130     oldincludedir=$ac_optarg ;;
1131
1132   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133     ac_prev=prefix ;;
1134   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135     prefix=$ac_optarg ;;
1136
1137   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138   | --program-pre | --program-pr | --program-p)
1139     ac_prev=program_prefix ;;
1140   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142     program_prefix=$ac_optarg ;;
1143
1144   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145   | --program-suf | --program-su | --program-s)
1146     ac_prev=program_suffix ;;
1147   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149     program_suffix=$ac_optarg ;;
1150
1151   -program-transform-name | --program-transform-name \
1152   | --program-transform-nam | --program-transform-na \
1153   | --program-transform-n | --program-transform- \
1154   | --program-transform | --program-transfor \
1155   | --program-transfo | --program-transf \
1156   | --program-trans | --program-tran \
1157   | --progr-tra | --program-tr | --program-t)
1158     ac_prev=program_transform_name ;;
1159   -program-transform-name=* | --program-transform-name=* \
1160   | --program-transform-nam=* | --program-transform-na=* \
1161   | --program-transform-n=* | --program-transform-=* \
1162   | --program-transform=* | --program-transfor=* \
1163   | --program-transfo=* | --program-transf=* \
1164   | --program-trans=* | --program-tran=* \
1165   | --progr-tra=* | --program-tr=* | --program-t=*)
1166     program_transform_name=$ac_optarg ;;
1167
1168   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169     ac_prev=pdfdir ;;
1170   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171     pdfdir=$ac_optarg ;;
1172
1173   -psdir | --psdir | --psdi | --psd | --ps)
1174     ac_prev=psdir ;;
1175   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176     psdir=$ac_optarg ;;
1177
1178   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179   | -silent | --silent | --silen | --sile | --sil)
1180     silent=yes ;;
1181
1182   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183     ac_prev=sbindir ;;
1184   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185   | --sbi=* | --sb=*)
1186     sbindir=$ac_optarg ;;
1187
1188   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190   | --sharedst | --shareds | --shared | --share | --shar \
1191   | --sha | --sh)
1192     ac_prev=sharedstatedir ;;
1193   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196   | --sha=* | --sh=*)
1197     sharedstatedir=$ac_optarg ;;
1198
1199   -site | --site | --sit)
1200     ac_prev=site ;;
1201   -site=* | --site=* | --sit=*)
1202     site=$ac_optarg ;;
1203
1204   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205     ac_prev=srcdir ;;
1206   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207     srcdir=$ac_optarg ;;
1208
1209   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210   | --syscon | --sysco | --sysc | --sys | --sy)
1211     ac_prev=sysconfdir ;;
1212   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214     sysconfdir=$ac_optarg ;;
1215
1216   -target | --target | --targe | --targ | --tar | --ta | --t)
1217     ac_prev=target_alias ;;
1218   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219     target_alias=$ac_optarg ;;
1220
1221   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222     verbose=yes ;;
1223
1224   -version | --version | --versio | --versi | --vers | -V)
1225     ac_init_version=: ;;
1226
1227   -with-* | --with-*)
1228     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       { echo "$as_me: error: invalid package name: $ac_package" >&2
1232    { (exit 1); exit 1; }; }
1233     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234     eval with_$ac_package=\$ac_optarg ;;
1235
1236   -without-* | --without-*)
1237     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240       { echo "$as_me: error: invalid package name: $ac_package" >&2
1241    { (exit 1); exit 1; }; }
1242     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243     eval with_$ac_package=no ;;
1244
1245   --x)
1246     # Obsolete; use --with-x.
1247     with_x=yes ;;
1248
1249   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250   | --x-incl | --x-inc | --x-in | --x-i)
1251     ac_prev=x_includes ;;
1252   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254     x_includes=$ac_optarg ;;
1255
1256   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258     ac_prev=x_libraries ;;
1259   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261     x_libraries=$ac_optarg ;;
1262
1263   -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265    { (exit 1); exit 1; }; }
1266     ;;
1267
1268   *=*)
1269     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273    { (exit 1); exit 1; }; }
1274     eval $ac_envvar=\$ac_optarg
1275     export $ac_envvar ;;
1276
1277   *)
1278     # FIXME: should be removed in autoconf 3.0.
1279     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283     ;;
1284
1285   esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290   { echo "$as_me: error: missing argument to $ac_option" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293
1294 # Be sure to have absolute directory names.
1295 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296                 datadir sysconfdir sharedstatedir localstatedir includedir \
1297                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298                 libdir localedir mandir
1299 do
1300   eval ac_val=\$$ac_var
1301   case $ac_val in
1302     [\\/$]* | ?:[\\/]* )  continue;;
1303     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304   esac
1305   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306    { (exit 1); exit 1; }; }
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318   if test "x$build_alias" = x; then
1319     cross_compiling=maybe
1320     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321     If a cross compiler is detected then cross compile mode will be used." >&2
1322   elif test "x$build_alias" != "x$host_alias"; then
1323     cross_compiling=yes
1324   fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336   { echo "$as_me: error: Working directory cannot be determined" >&2
1337    { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339   { echo "$as_me: error: pwd does not report name of working directory" >&2
1340    { (exit 1); exit 1; }; }
1341
1342
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345   ac_srcdir_defaulted=yes
1346   # Try the directory containing this script, then the parent directory.
1347   ac_confdir=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349          X"$0" : 'X\(//\)[^/]' \| \
1350          X"$0" : 'X\(//\)$' \| \
1351          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 echo X"$0" |
1353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\/\)[^/].*/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)$/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\).*/{
1366             s//\1/
1367             q
1368           }
1369           s/.*/./; q'`
1370   srcdir=$ac_confdir
1371   if test ! -r "$srcdir/$ac_unique_file"; then
1372     srcdir=..
1373   fi
1374 else
1375   ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380    { (exit 1); exit 1; }; }
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385    { (exit 1); exit 1; }; }
1386         pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389   srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399   eval ac_env_${ac_var}_value=\$${ac_var}
1400   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408   # Omit some internal or obsolete options to make the list less imposing.
1409   # This message is too long to be a string in the A/UX 3.1 sh.
1410   cat <<_ACEOF
1411 \`configure' configures mod_chxj 0.13.0-rc to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE.  See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421   -h, --help              display this help and exit
1422       --help=short        display options specific to this package
1423       --help=recursive    display the short help of all the included packages
1424   -V, --version           display version information and exit
1425   -q, --quiet, --silent   do not print \`checking...' messages
1426       --cache-file=FILE   cache test results in FILE [disabled]
1427   -C, --config-cache      alias for \`--cache-file=config.cache'
1428   -n, --no-create         do not create output files
1429       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432   --prefix=PREFIX         install architecture-independent files in PREFIX
1433                           [$ac_default_prefix]
1434   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1435                           [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445   --bindir=DIR           user executables [EPREFIX/bin]
1446   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1447   --libexecdir=DIR       program executables [EPREFIX/libexec]
1448   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1449   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1450   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1451   --libdir=DIR           object code libraries [EPREFIX/lib]
1452   --includedir=DIR       C header files [PREFIX/include]
1453   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1454   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1455   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1456   --infodir=DIR          info documentation [DATAROOTDIR/info]
1457   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1458   --mandir=DIR           man documentation [DATAROOTDIR/man]
1459   --docdir=DIR           documentation root [DATAROOTDIR/doc/mod_chxj]
1460   --htmldir=DIR          html documentation [DOCDIR]
1461   --dvidir=DIR           dvi documentation [DOCDIR]
1462   --pdfdir=DIR           pdf documentation [DOCDIR]
1463   --psdir=DIR            ps documentation [DOCDIR]
1464 _ACEOF
1465
1466   cat <<\_ACEOF
1467
1468 Program names:
1469   --program-prefix=PREFIX            prepend PREFIX to installed program names
1470   --program-suffix=SUFFIX            append SUFFIX to installed program names
1471   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1472
1473 System types:
1474   --build=BUILD     configure for building on BUILD [guessed]
1475   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476   --target=TARGET   configure for building compilers for TARGET [HOST]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481   case $ac_init_help in
1482      short | recursive ) echo "Configuration of mod_chxj 0.13.0-rc:";;
1483    esac
1484   cat <<\_ACEOF
1485
1486 Optional Features:
1487   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489   --disable-dependency-tracking  speeds up one-time build
1490   --enable-dependency-tracking   do not reject slow dependency extractors
1491   --enable-shared[=PKGS]  build shared libraries [default=yes]
1492   --enable-static[=PKGS]  build static libraries [default=yes]
1493   --enable-fast-install[=PKGS]
1494                           optimize for fast installation [default=yes]
1495   --disable-libtool-lock  avoid locking (might break parallel builds)
1496   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1497 source by the automatic operation.
1498   --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1499   --enable-memcached-static use static link.
1500   --enable-mysql-cookie    Please specify it when you save Cookie in MySQL.
1501   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1502
1503 Optional Packages:
1504   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1507   --with-pic              try to use only PIC/non-PIC objects [default=use
1508                           both]
1509   --with-tags[=TAGS]      include additional configurations [automatic]
1510   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1511   --with-apxs=ARG Path of apxs program file.
1512   --with-apr-config=ARG  Path of apr-config program file.
1513   --with-apu-config=ARG  Path of apu-config program file.
1514   --with-pcre-config=ARG  Path of pcre-config program file.
1515   --with-memcached-header Path of "memcached.h"
1516   --with-memcached-lib-dir Path of "libmemcached.so"
1517   --with-mysql-header=ARG  Path of "mysql.h"
1518   --with-mysql-lib-dir=ARG Path of libmysqlclient
1519 APR_HELP_STRING(--with-openssl=PATH,Path to OpenSSL (eg. /usr/local/ssl))
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   CPP         C preprocessor
1530   CXX         C++ compiler command
1531   CXXFLAGS    C++ compiler flags
1532   CXXCPP      C++ preprocessor
1533   F77         Fortran 77 compiler command
1534   FFLAGS      Fortran 77 compiler flags
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <konn@users.sourceforge.jp>.
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545   # If there are subdirs, report their specific --help.
1546   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547     test -d "$ac_dir" || continue
1548     ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1554   # A ".." for each directory in $ac_dir_suffix.
1555   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1556   case $ac_top_builddir_sub in
1557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559   esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567   .)  # We are building in place.
1568     ac_srcdir=.
1569     ac_top_srcdir=$ac_top_builddir_sub
1570     ac_abs_top_srcdir=$ac_pwd ;;
1571   [\\/]* | ?:[\\/]* )  # Absolute name.
1572     ac_srcdir=$srcdir$ac_dir_suffix;
1573     ac_top_srcdir=$srcdir
1574     ac_abs_top_srcdir=$srcdir ;;
1575   *) # Relative name.
1576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577     ac_top_srcdir=$ac_top_build_prefix$srcdir
1578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582     cd "$ac_dir" || { ac_status=$?; continue; }
1583     # Check for guested configure.
1584     if test -f "$ac_srcdir/configure.gnu"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587     elif test -f "$ac_srcdir/configure"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure" --help=recursive
1590     else
1591       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592     fi || ac_status=$?
1593     cd "$ac_pwd" || { ac_status=$?; break; }
1594   done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599   cat <<\_ACEOF
1600 mod_chxj configure 0.13.0-rc
1601 generated by GNU Autoconf 2.61
1602
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608   exit
1609 fi
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1613
1614 It was created by mod_chxj $as_me 0.13.0-rc, which was
1615 generated by GNU Autoconf 2.61.  Invocation command line was
1616
1617   $ $0 $@
1618
1619 _ACEOF
1620 exec 5>>config.log
1621 {
1622 cat <<_ASUNAME
1623 ## --------- ##
1624 ## Platform. ##
1625 ## --------- ##
1626
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1632
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1635
1636 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1637 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1640 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1641 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1642 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1643
1644 _ASUNAME
1645
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   echo "PATH: $as_dir"
1652 done
1653 IFS=$as_save_IFS
1654
1655 } >&5
1656
1657 cat >&5 <<_ACEOF
1658
1659
1660 ## ----------- ##
1661 ## Core tests. ##
1662 ## ----------- ##
1663
1664 _ACEOF
1665
1666
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1672 ac_configure_args=
1673 ac_configure_args0=
1674 ac_configure_args1=
1675 ac_must_keep_next=false
1676 for ac_pass in 1 2
1677 do
1678   for ac_arg
1679   do
1680     case $ac_arg in
1681     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683     | -silent | --silent | --silen | --sile | --sil)
1684       continue ;;
1685     *\'*)
1686       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687     esac
1688     case $ac_pass in
1689     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690     2)
1691       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692       if test $ac_must_keep_next = true; then
1693         ac_must_keep_next=false # Got value, back to normal.
1694       else
1695         case $ac_arg in
1696           *=* | --config-cache | -C | -disable-* | --disable-* \
1697           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699           | -with-* | --with-* | -without-* | --without-* | --x)
1700             case "$ac_configure_args0 " in
1701               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702             esac
1703             ;;
1704           -* ) ac_must_keep_next=true ;;
1705         esac
1706       fi
1707       ac_configure_args="$ac_configure_args '$ac_arg'"
1708       ;;
1709     esac
1710   done
1711 done
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1714
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log.  We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721   # Save into config.log some information that might help in debugging.
1722   {
1723     echo
1724
1725     cat <<\_ASBOX
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1729 _ASBOX
1730     echo
1731     # The following way of writing the cache mishandles newlines in values,
1732 (
1733   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734     eval ac_val=\$$ac_var
1735     case $ac_val in #(
1736     *${as_nl}*)
1737       case $ac_var in #(
1738       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1740       esac
1741       case $ac_var in #(
1742       _ | IFS | as_nl) ;; #(
1743       *) $as_unset $ac_var ;;
1744       esac ;;
1745     esac
1746   done
1747   (set) 2>&1 |
1748     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749     *${as_nl}ac_space=\ *)
1750       sed -n \
1751         "s/'\''/'\''\\\\'\'''\''/g;
1752           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753       ;; #(
1754     *)
1755       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1756       ;;
1757     esac |
1758     sort
1759 )
1760     echo
1761
1762     cat <<\_ASBOX
1763 ## ----------------- ##
1764 ## Output variables. ##
1765 ## ----------------- ##
1766 _ASBOX
1767     echo
1768     for ac_var in $ac_subst_vars
1769     do
1770       eval ac_val=\$$ac_var
1771       case $ac_val in
1772       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773       esac
1774       echo "$ac_var='\''$ac_val'\''"
1775     done | sort
1776     echo
1777
1778     if test -n "$ac_subst_files"; then
1779       cat <<\_ASBOX
1780 ## ------------------- ##
1781 ## File substitutions. ##
1782 ## ------------------- ##
1783 _ASBOX
1784       echo
1785       for ac_var in $ac_subst_files
1786       do
1787         eval ac_val=\$$ac_var
1788         case $ac_val in
1789         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790         esac
1791         echo "$ac_var='\''$ac_val'\''"
1792       done | sort
1793       echo
1794     fi
1795
1796     if test -s confdefs.h; then
1797       cat <<\_ASBOX
1798 ## ----------- ##
1799 ## confdefs.h. ##
1800 ## ----------- ##
1801 _ASBOX
1802       echo
1803       cat confdefs.h
1804       echo
1805     fi
1806     test "$ac_signal" != 0 &&
1807       echo "$as_me: caught signal $ac_signal"
1808     echo "$as_me: exit $exit_status"
1809   } >&5
1810   rm -f core *.core core.conftest.* &&
1811     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1812     exit $exit_status
1813 ' 0
1814 for ac_signal in 1 2 13 15; do
1815   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816 done
1817 ac_signal=0
1818
1819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1820 rm -f -r conftest* confdefs.h
1821
1822 # Predefined preprocessor variables.
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_NAME "$PACKAGE_NAME"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_STRING "$PACKAGE_STRING"
1841 _ACEOF
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846 _ACEOF
1847
1848
1849 # Let the site file select an alternate cache file if it wants to.
1850 # Prefer explicitly selected file to automatically selected ones.
1851 if test -n "$CONFIG_SITE"; then
1852   set x "$CONFIG_SITE"
1853 elif test "x$prefix" != xNONE; then
1854   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1855 else
1856   set x "$ac_default_prefix/share/config.site" \
1857         "$ac_default_prefix/etc/config.site"
1858 fi
1859 shift
1860 for ac_site_file
1861 do
1862   if test -r "$ac_site_file"; then
1863     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 echo "$as_me: loading site script $ac_site_file" >&6;}
1865     sed 's/^/| /' "$ac_site_file" >&5
1866     . "$ac_site_file"
1867   fi
1868 done
1869
1870 if test -r "$cache_file"; then
1871   # Some versions of bash will fail to source /dev/null (special
1872   # files actually), so we avoid doing that.
1873   if test -f "$cache_file"; then
1874     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 echo "$as_me: loading cache $cache_file" >&6;}
1876     case $cache_file in
1877       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878       *)                      . "./$cache_file";;
1879     esac
1880   fi
1881 else
1882   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 echo "$as_me: creating cache $cache_file" >&6;}
1884   >$cache_file
1885 fi
1886
1887 # Check that the precious variables saved in the cache have kept the same
1888 # value.
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892   eval ac_new_set=\$ac_env_${ac_var}_set
1893   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894   eval ac_new_val=\$ac_env_${ac_var}_value
1895   case $ac_old_set,$ac_new_set in
1896     set,)
1897       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899       ac_cache_corrupted=: ;;
1900     ,set)
1901       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903       ac_cache_corrupted=: ;;
1904     ,);;
1905     *)
1906       if test "x$ac_old_val" != "x$ac_new_val"; then
1907         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1908 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1910 echo "$as_me:   former value:  $ac_old_val" >&2;}
1911         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1912 echo "$as_me:   current value: $ac_new_val" >&2;}
1913         ac_cache_corrupted=:
1914       fi;;
1915   esac
1916   # Pass precious variables to config.status.
1917   if test "$ac_new_set" = set; then
1918     case $ac_new_val in
1919     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1920     *) ac_arg=$ac_var=$ac_new_val ;;
1921     esac
1922     case " $ac_configure_args " in
1923       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1924       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1925     esac
1926   fi
1927 done
1928 if $ac_cache_corrupted; then
1929   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1930 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1931   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1932 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960 ac_ext=c
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965
1966
1967
1968
1969 ac_aux_dir=
1970 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1971   if test -f "$ac_dir/install-sh"; then
1972     ac_aux_dir=$ac_dir
1973     ac_install_sh="$ac_aux_dir/install-sh -c"
1974     break
1975   elif test -f "$ac_dir/install.sh"; then
1976     ac_aux_dir=$ac_dir
1977     ac_install_sh="$ac_aux_dir/install.sh -c"
1978     break
1979   elif test -f "$ac_dir/shtool"; then
1980     ac_aux_dir=$ac_dir
1981     ac_install_sh="$ac_aux_dir/shtool install -c"
1982     break
1983   fi
1984 done
1985 if test -z "$ac_aux_dir"; then
1986   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1987 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1988    { (exit 1); exit 1; }; }
1989 fi
1990
1991 # These three variables are undocumented and unsupported,
1992 # and are intended to be withdrawn in a future Autoconf release.
1993 # They can cause serious problems if a builder's source tree is in a directory
1994 # whose full name contains unusual characters.
1995 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1996 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1997 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1998
1999
2000 # Make sure we can run config.sub.
2001 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2002   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2003 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2004    { (exit 1); exit 1; }; }
2005
2006 { echo "$as_me:$LINENO: checking build system type" >&5
2007 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2008 if test "${ac_cv_build+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   ac_build_alias=$build_alias
2012 test "x$ac_build_alias" = x &&
2013   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2014 test "x$ac_build_alias" = x &&
2015   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017    { (exit 1); exit 1; }; }
2018 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2019   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2020 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2021    { (exit 1); exit 1; }; }
2022
2023 fi
2024 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2025 echo "${ECHO_T}$ac_cv_build" >&6; }
2026 case $ac_cv_build in
2027 *-*-*) ;;
2028 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2029 echo "$as_me: error: invalid value of canonical build" >&2;}
2030    { (exit 1); exit 1; }; };;
2031 esac
2032 build=$ac_cv_build
2033 ac_save_IFS=$IFS; IFS='-'
2034 set x $ac_cv_build
2035 shift
2036 build_cpu=$1
2037 build_vendor=$2
2038 shift; shift
2039 # Remember, the first character of IFS is used to create $*,
2040 # except with old shells:
2041 build_os=$*
2042 IFS=$ac_save_IFS
2043 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2044
2045
2046 { echo "$as_me:$LINENO: checking host system type" >&5
2047 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2048 if test "${ac_cv_host+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test "x$host_alias" = x; then
2052   ac_cv_host=$ac_cv_build
2053 else
2054   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2055     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2056 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2057    { (exit 1); exit 1; }; }
2058 fi
2059
2060 fi
2061 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2062 echo "${ECHO_T}$ac_cv_host" >&6; }
2063 case $ac_cv_host in
2064 *-*-*) ;;
2065 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2066 echo "$as_me: error: invalid value of canonical host" >&2;}
2067    { (exit 1); exit 1; }; };;
2068 esac
2069 host=$ac_cv_host
2070 ac_save_IFS=$IFS; IFS='-'
2071 set x $ac_cv_host
2072 shift
2073 host_cpu=$1
2074 host_vendor=$2
2075 shift; shift
2076 # Remember, the first character of IFS is used to create $*,
2077 # except with old shells:
2078 host_os=$*
2079 IFS=$ac_save_IFS
2080 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2081
2082
2083 { echo "$as_me:$LINENO: checking target system type" >&5
2084 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2085 if test "${ac_cv_target+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test "x$target_alias" = x; then
2089   ac_cv_target=$ac_cv_host
2090 else
2091   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2092     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2093 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2094    { (exit 1); exit 1; }; }
2095 fi
2096
2097 fi
2098 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2099 echo "${ECHO_T}$ac_cv_target" >&6; }
2100 case $ac_cv_target in
2101 *-*-*) ;;
2102 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2103 echo "$as_me: error: invalid value of canonical target" >&2;}
2104    { (exit 1); exit 1; }; };;
2105 esac
2106 target=$ac_cv_target
2107 ac_save_IFS=$IFS; IFS='-'
2108 set x $ac_cv_target
2109 shift
2110 target_cpu=$1
2111 target_vendor=$2
2112 shift; shift
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2115 target_os=$*
2116 IFS=$ac_save_IFS
2117 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2118
2119
2120 # The aliases save the names the user supplied, while $host etc.
2121 # will get canonicalized.
2122 test -n "$target_alias" &&
2123   test "$program_prefix$program_suffix$program_transform_name" = \
2124     NONENONEs,x,x, &&
2125   program_prefix=${target_alias}-
2126 am__api_version='1.10'
2127
2128 # Find a good install program.  We prefer a C program (faster),
2129 # so one script is as good as another.  But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2134 # AIX /bin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2142 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2143 if test -z "$INSTALL"; then
2144 if test "${ac_cv_path_install+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   # Account for people who put trailing slashes in PATH elements.
2153 case $as_dir/ in
2154   ./ | .// | /cC/* | \
2155   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2156   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2157   /usr/ucb/* ) ;;
2158   *)
2159     # OSF1 and SCO ODT 3.0 have their own names for install.
2160     # Don't use installbsd from OSF since it installs stuff as root
2161     # by default.
2162     for ac_prog in ginstall scoinst install; do
2163       for ac_exec_ext in '' $ac_executable_extensions; do
2164         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2165           if test $ac_prog = install &&
2166             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167             # AIX install.  It has an incompatible calling convention.
2168             :
2169           elif test $ac_prog = install &&
2170             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171             # program-specific install script used by HP pwplus--don't use.
2172             :
2173           else
2174             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2175             break 3
2176           fi
2177         fi
2178       done
2179     done
2180     ;;
2181 esac
2182 done
2183 IFS=$as_save_IFS
2184
2185
2186 fi
2187   if test "${ac_cv_path_install+set}" = set; then
2188     INSTALL=$ac_cv_path_install
2189   else
2190     # As a last resort, use the slow shell script.  Don't cache a
2191     # value for INSTALL within a source directory, because that will
2192     # break other packages using the cache if that directory is
2193     # removed, or if the value is a relative name.
2194     INSTALL=$ac_install_sh
2195   fi
2196 fi
2197 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2198 echo "${ECHO_T}$INSTALL" >&6; }
2199
2200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201 # It thinks the first close brace ends the variable substitution.
2202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2203
2204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2205
2206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207
2208 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2209 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2210 # Just in case
2211 sleep 1
2212 echo timestamp > conftest.file
2213 # Do `set' in a subshell so we don't clobber the current shell's
2214 # arguments.  Must try -L first in case configure is actually a
2215 # symlink; some systems play weird games with the mod time of symlinks
2216 # (eg FreeBSD returns the mod time of the symlink's containing
2217 # directory).
2218 if (
2219    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2220    if test "$*" = "X"; then
2221       # -L didn't work.
2222       set X `ls -t $srcdir/configure conftest.file`
2223    fi
2224    rm -f conftest.file
2225    if test "$*" != "X $srcdir/configure conftest.file" \
2226       && test "$*" != "X conftest.file $srcdir/configure"; then
2227
2228       # If neither matched, then we have a broken ls.  This can happen
2229       # if, for instance, CONFIG_SHELL is bash and it inherits a
2230       # broken ls alias from the environment.  This has actually
2231       # happened.  Such a system could not be considered "sane".
2232       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2233 alias in your environment" >&5
2234 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2235 alias in your environment" >&2;}
2236    { (exit 1); exit 1; }; }
2237    fi
2238
2239    test "$2" = conftest.file
2240    )
2241 then
2242    # Ok.
2243    :
2244 else
2245    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2246 Check your system clock" >&5
2247 echo "$as_me: error: newly created file is older than distributed files!
2248 Check your system clock" >&2;}
2249    { (exit 1); exit 1; }; }
2250 fi
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2253 test "$program_prefix" != NONE &&
2254   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2255 # Use a double $ so make ignores it.
2256 test "$program_suffix" != NONE &&
2257   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2258 # Double any \ or $.  echo might interpret backslashes.
2259 # By default was `s,x,x', remove it if useless.
2260 cat <<\_ACEOF >conftest.sed
2261 s/[\\$]/&&/g;s/;s,x,x,$//
2262 _ACEOF
2263 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2264 rm -f conftest.sed
2265
2266 # expand $ac_aux_dir to an absolute path
2267 am_aux_dir=`cd $ac_aux_dir && pwd`
2268
2269 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2270 # Use eval to expand $SHELL
2271 if eval "$MISSING --run true"; then
2272   am_missing_run="$MISSING --run "
2273 else
2274   am_missing_run=
2275   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2276 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2277 fi
2278
2279 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2280 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2281 if test -z "$MKDIR_P"; then
2282   if test "${ac_cv_path_mkdir+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_prog in mkdir gmkdir; do
2291          for ac_exec_ext in '' $ac_executable_extensions; do
2292            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2293            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2294              'mkdir (GNU coreutils) '* | \
2295              'mkdir (coreutils) '* | \
2296              'mkdir (fileutils) '4.1*)
2297                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2298                break 3;;
2299            esac
2300          done
2301        done
2302 done
2303 IFS=$as_save_IFS
2304
2305 fi
2306
2307   if test "${ac_cv_path_mkdir+set}" = set; then
2308     MKDIR_P="$ac_cv_path_mkdir -p"
2309   else
2310     # As a last resort, use the slow shell script.  Don't cache a
2311     # value for MKDIR_P within a source directory, because that will
2312     # break other packages using the cache if that directory is
2313     # removed, or if the value is a relative name.
2314     test -d ./--version && rmdir ./--version
2315     MKDIR_P="$ac_install_sh -d"
2316   fi
2317 fi
2318 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2319 echo "${ECHO_T}$MKDIR_P" >&6; }
2320
2321 mkdir_p="$MKDIR_P"
2322 case $mkdir_p in
2323   [\\/$]* | ?:[\\/]*) ;;
2324   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2325 esac
2326
2327 for ac_prog in gawk mawk nawk awk
2328 do
2329   # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_AWK+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$AWK"; then
2337   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346     ac_cv_prog_AWK="$ac_prog"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352 IFS=$as_save_IFS
2353
2354 fi
2355 fi
2356 AWK=$ac_cv_prog_AWK
2357 if test -n "$AWK"; then
2358   { echo "$as_me:$LINENO: result: $AWK" >&5
2359 echo "${ECHO_T}$AWK" >&6; }
2360 else
2361   { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2363 fi
2364
2365
2366   test -n "$AWK" && break
2367 done
2368
2369 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2370 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2371 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2372 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   cat >conftest.make <<\_ACEOF
2376 SHELL = /bin/sh
2377 all:
2378         @echo '@@@%%%=$(MAKE)=@@@%%%'
2379 _ACEOF
2380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2381 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2382   *@@@%%%=?*=@@@%%%*)
2383     eval ac_cv_prog_make_${ac_make}_set=yes;;
2384   *)
2385     eval ac_cv_prog_make_${ac_make}_set=no;;
2386 esac
2387 rm -f conftest.make
2388 fi
2389 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2390   { echo "$as_me:$LINENO: result: yes" >&5
2391 echo "${ECHO_T}yes" >&6; }
2392   SET_MAKE=
2393 else
2394   { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396   SET_MAKE="MAKE=${MAKE-make}"
2397 fi
2398
2399 rm -rf .tst 2>/dev/null
2400 mkdir .tst 2>/dev/null
2401 if test -d .tst; then
2402   am__leading_dot=.
2403 else
2404   am__leading_dot=_
2405 fi
2406 rmdir .tst 2>/dev/null
2407
2408 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2409   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2410   # is not polluted with repeated "-I."
2411   am__isrc=' -I$(srcdir)'
2412   # test to see if srcdir already configured
2413   if test -f $srcdir/config.status; then
2414     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2415 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2416    { (exit 1); exit 1; }; }
2417   fi
2418 fi
2419
2420 # test whether we have cygpath
2421 if test -z "$CYGPATH_W"; then
2422   if (cygpath --version) >/dev/null 2>/dev/null; then
2423     CYGPATH_W='cygpath -w'
2424   else
2425     CYGPATH_W=echo
2426   fi
2427 fi
2428
2429
2430 # Define the identity of the package.
2431  PACKAGE=mod_chxj
2432  VERSION=0.13.0-rc
2433
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE "$PACKAGE"
2437 _ACEOF
2438
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define VERSION "$VERSION"
2442 _ACEOF
2443
2444 # Some tools Automake needs.
2445
2446 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2447
2448
2449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2450
2451
2452 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2453
2454
2455 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2456
2457
2458 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2459
2460 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2461
2462 # Installed binaries are usually stripped using `strip' when the user
2463 # run `make install-strip'.  However `strip' might not be the right
2464 # tool to use in cross-compilation environments, therefore Automake
2465 # will honor the `STRIP' environment variable to overrule this program.
2466 if test "$cross_compiling" != no; then
2467   if test -n "$ac_tool_prefix"; then
2468   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469 set dummy ${ac_tool_prefix}strip; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_STRIP+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$STRIP"; then
2476   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 STRIP=$ac_cv_prog_STRIP
2496 if test -n "$STRIP"; then
2497   { echo "$as_me:$LINENO: result: $STRIP" >&5
2498 echo "${ECHO_T}$STRIP" >&6; }
2499 else
2500   { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2502 fi
2503
2504
2505 fi
2506 if test -z "$ac_cv_prog_STRIP"; then
2507   ac_ct_STRIP=$STRIP
2508   # Extract the first word of "strip", so it can be a program name with args.
2509 set dummy strip; ac_word=$2
2510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515   if test -n "$ac_ct_STRIP"; then
2516   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521   IFS=$as_save_IFS
2522   test -z "$as_dir" && as_dir=.
2523   for ac_exec_ext in '' $ac_executable_extensions; do
2524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525     ac_cv_prog_ac_ct_STRIP="strip"
2526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527     break 2
2528   fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536 if test -n "$ac_ct_STRIP"; then
2537   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2538 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2539 else
2540   { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 fi
2543
2544   if test "x$ac_ct_STRIP" = x; then
2545     STRIP=":"
2546   else
2547     case $cross_compiling:$ac_tool_warned in
2548 yes:)
2549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2550 whose name does not start with the host triplet.  If you think this
2551 configuration is useful to you, please write to autoconf@gnu.org." >&5
2552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2553 whose name does not start with the host triplet.  If you think this
2554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557     STRIP=$ac_ct_STRIP
2558   fi
2559 else
2560   STRIP="$ac_cv_prog_STRIP"
2561 fi
2562
2563 fi
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566 # We need awk for the "check" target.  The system "awk" is bad on
2567 # some platforms.
2568 # Always define AMTAR for backward compatibility.
2569
2570 AMTAR=${AMTAR-"${am_missing_run}tar"}
2571
2572 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2573
2574
2575
2576
2577
2578 ac_config_headers="$ac_config_headers include/config.h"
2579
2580
2581
2582 # Checks for programs.
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 if test -n "$ac_tool_prefix"; then
2589   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604   for ac_exec_ext in '' $ac_executable_extensions; do
2605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$ac_cv_prog_CC"; then
2628   ac_ct_CC=$CC
2629   # Extract the first word of "gcc", so it can be a program name with args.
2630 set dummy gcc; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   if test -n "$ac_ct_CC"; then
2637   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642   IFS=$as_save_IFS
2643   test -z "$as_dir" && as_dir=.
2644   for ac_exec_ext in '' $ac_executable_extensions; do
2645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646     ac_cv_prog_ac_ct_CC="gcc"
2647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648     break 2
2649   fi
2650 done
2651 done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657 if test -n "$ac_ct_CC"; then
2658   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659 echo "${ECHO_T}$ac_ct_CC" >&6; }
2660 else
2661   { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2663 fi
2664
2665   if test "x$ac_ct_CC" = x; then
2666     CC=""
2667   else
2668     case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet.  If you think this
2672 configuration is useful to you, please write to autoconf@gnu.org." >&5
2673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet.  If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2676 ac_tool_warned=yes ;;
2677 esac
2678     CC=$ac_ct_CC
2679   fi
2680 else
2681   CC="$ac_cv_prog_CC"
2682 fi
2683
2684 if test -z "$CC"; then
2685           if test -n "$ac_tool_prefix"; then
2686     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}cc; ac_word=$2
2688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691   echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693   if test -n "$CC"; then
2694   ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701   for ac_exec_ext in '' $ac_executable_extensions; do
2702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703     ac_cv_prog_CC="${ac_tool_prefix}cc"
2704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705     break 2
2706   fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715   { echo "$as_me:$LINENO: result: $CC" >&5
2716 echo "${ECHO_T}$CC" >&6; }
2717 else
2718   { echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6; }
2720 fi
2721
2722
2723   fi
2724 fi
2725 if test -z "$CC"; then
2726   # Extract the first word of "cc", so it can be a program name with args.
2727 set dummy cc; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   if test -n "$CC"; then
2734   ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736   ac_prog_rejected=no
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740   IFS=$as_save_IFS
2741   test -z "$as_dir" && as_dir=.
2742   for ac_exec_ext in '' $ac_executable_extensions; do
2743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745        ac_prog_rejected=yes
2746        continue
2747      fi
2748     ac_cv_prog_CC="cc"
2749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 if test $ac_prog_rejected = yes; then
2757   # We found a bogon in the path, so make sure we never use it.
2758   set dummy $ac_cv_prog_CC
2759   shift
2760   if test $# != 0; then
2761     # We chose a different compiler from the bogus one.
2762     # However, it has the same basename, so the bogon will be chosen
2763     # first if we set CC to just the basename; use the full file name.
2764     shift
2765     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2766   fi
2767 fi
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772   { echo "$as_me:$LINENO: result: $CC" >&5
2773 echo "${ECHO_T}$CC" >&6; }
2774 else
2775   { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2777 fi
2778
2779
2780 fi
2781 if test -z "$CC"; then
2782   if test -n "$ac_tool_prefix"; then
2783   for ac_prog in cl.exe
2784   do
2785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$CC"; then
2793   ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814   { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2816 else
2817   { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822     test -n "$CC" && break
2823   done
2824 fi
2825 if test -z "$CC"; then
2826   ac_ct_CC=$CC
2827   for ac_prog in cl.exe
2828 do
2829   # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$ac_ct_CC"; then
2837   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_ac_ct_CC="$ac_prog"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2859 echo "${ECHO_T}$ac_ct_CC" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866   test -n "$ac_ct_CC" && break
2867 done
2868
2869   if test "x$ac_ct_CC" = x; then
2870     CC=""
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet.  If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet.  If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882     CC=$ac_ct_CC
2883   fi
2884 fi
2885
2886 fi
2887
2888
2889 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details." >&2;}
2893    { (exit 1); exit 1; }; }
2894
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_compiler --version >&5") 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler -v >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler -V >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935
2936 int
2937 main ()
2938 {
2939
2940   ;
2941   return 0;
2942 }
2943 _ACEOF
2944 ac_clean_files_save=$ac_clean_files
2945 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2946 # Try to create an executable without -o first, disregard a.out.
2947 # It will help us diagnose broken compilers, and finding out an intuition
2948 # of exeext.
2949 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2950 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2951 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2952 #
2953 # List of possible output files, starting from the most likely.
2954 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2955 # only as a last resort.  b.out is created by i960 compilers.
2956 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2957 #
2958 # The IRIX 6 linker writes into existing files which may not be
2959 # executable, retaining their permissions.  Remove them first so a
2960 # subsequent execution test works.
2961 ac_rmfiles=
2962 for ac_file in $ac_files
2963 do
2964   case $ac_file in
2965     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2966     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967   esac
2968 done
2969 rm -f $ac_rmfiles
2970
2971 if { (ac_try="$ac_link_default"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_link_default") 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; then
2981   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2984 # so that the user can short-circuit this test for compilers unknown to
2985 # Autoconf.
2986 for ac_file in $ac_files ''
2987 do
2988   test -f "$ac_file" || continue
2989   case $ac_file in
2990     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2991         ;;
2992     [ab].out )
2993         # We found the default executable, but exeext='' is most
2994         # certainly right.
2995         break;;
2996     *.* )
2997         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998         then :; else
2999            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000         fi
3001         # We set ac_cv_exeext here because the later test for it is not
3002         # safe: cross compilers may not add the suffix if given an `-o'
3003         # argument, so we may need to know it at that point already.
3004         # Even if this section looks crufty: it has the advantage of
3005         # actually working.
3006         break;;
3007     * )
3008         break;;
3009   esac
3010 done
3011 test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013 else
3014   ac_file=''
3015 fi
3016
3017 { echo "$as_me:$LINENO: result: $ac_file" >&5
3018 echo "${ECHO_T}$ac_file" >&6; }
3019 if test -z "$ac_file"; then
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: C compiler cannot create executables
3026 See \`config.log' for more details." >&2;}
3027    { (exit 77); exit 77; }; }
3028 fi
3029
3030 ac_exeext=$ac_cv_exeext
3031
3032 # Check that the compiler produces executables we can run.  If not, either
3033 # the compiler is broken, or we cross compile.
3034 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3035 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3036 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3037 # If not cross compiling, check that we can run a simple program.
3038 if test "$cross_compiling" != yes; then
3039   if { ac_try='./$ac_file'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049     cross_compiling=no
3050   else
3051     if test "$cross_compiling" = maybe; then
3052         cross_compiling=yes
3053     else
3054         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3055 If you meant to cross compile, use \`--host'.
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." >&2;}
3060    { (exit 1); exit 1; }; }
3061     fi
3062   fi
3063 fi
3064 { echo "$as_me:$LINENO: result: yes" >&5
3065 echo "${ECHO_T}yes" >&6; }
3066
3067 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3068 ac_clean_files=$ac_clean_files_save
3069 # Check that the compiler produces executables we can run.  If not, either
3070 # the compiler is broken, or we cross compile.
3071 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3072 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3073 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3074 echo "${ECHO_T}$cross_compiling" >&6; }
3075
3076 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3077 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3078 if { (ac_try="$ac_link"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_link") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; then
3088   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3089 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3090 # work properly (i.e., refer to `conftest.exe'), while it won't with
3091 # `rm'.
3092 for ac_file in conftest.exe conftest conftest.*; do
3093   test -f "$ac_file" || continue
3094   case $ac_file in
3095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3097           break;;
3098     * ) break;;
3099   esac
3100 done
3101 else
3102   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." >&2;}
3106    { (exit 1); exit 1; }; }
3107 fi
3108
3109 rm -f conftest$ac_cv_exeext
3110 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3111 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3112
3113 rm -f conftest.$ac_ext
3114 EXEEXT=$ac_cv_exeext
3115 ac_exeext=$EXEEXT
3116 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3117 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3118 if test "${ac_cv_objext+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.o conftest.obj
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; then
3147   for ac_file in conftest.o conftest.obj conftest.*; do
3148   test -f "$ac_file" || continue;
3149   case $ac_file in
3150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3151     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3152        break;;
3153   esac
3154 done
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3162 See \`config.log' for more details." >&2;}
3163    { (exit 1); exit 1; }; }
3164 fi
3165
3166 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3167 fi
3168 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3169 echo "${ECHO_T}$ac_cv_objext" >&6; }
3170 OBJEXT=$ac_cv_objext
3171 ac_objext=$OBJEXT
3172 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3173 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3174 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187 #ifndef __GNUC__
3188        choke me
3189 #endif
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_compile") 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } && {
3209          test -z "$ac_c_werror_flag" ||
3210          test ! -s conftest.err
3211        } && test -s conftest.$ac_objext; then
3212   ac_compiler_gnu=yes
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217         ac_compiler_gnu=no
3218 fi
3219
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3222
3223 fi
3224 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3225 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3226 GCC=`test $ac_compiler_gnu = yes && echo yes`
3227 ac_test_CFLAGS=${CFLAGS+set}
3228 ac_save_CFLAGS=$CFLAGS
3229 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3230 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3231 if test "${ac_cv_prog_cc_g+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   ac_save_c_werror_flag=$ac_c_werror_flag
3235    ac_c_werror_flag=yes
3236    ac_cv_prog_cc_g=no
3237    CFLAGS="-g"
3238    cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_compile") 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } && {
3267          test -z "$ac_c_werror_flag" ||
3268          test ! -s conftest.err
3269        } && test -s conftest.$ac_objext; then
3270   ac_cv_prog_cc_g=yes
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275         CFLAGS=""
3276       cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282
3283 int
3284 main ()
3285 {
3286
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_compile") 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } && {
3305          test -z "$ac_c_werror_flag" ||
3306          test ! -s conftest.err
3307        } && test -s conftest.$ac_objext; then
3308   :
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313         ac_c_werror_flag=$ac_save_c_werror_flag
3314          CFLAGS="-g"
3315          cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321
3322 int
3323 main ()
3324 {
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_compile") 2>conftest.er1
3338   ac_status=$?
3339   grep -v '^ *+' conftest.er1 >conftest.err
3340   rm -f conftest.er1
3341   cat conftest.err >&5
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } && {
3344          test -z "$ac_c_werror_flag" ||
3345          test ! -s conftest.err
3346        } && test -s conftest.$ac_objext; then
3347   ac_cv_prog_cc_g=yes
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352
3353 fi
3354
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362    ac_c_werror_flag=$ac_save_c_werror_flag
3363 fi
3364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3366 if test "$ac_test_CFLAGS" = set; then
3367   CFLAGS=$ac_save_CFLAGS
3368 elif test $ac_cv_prog_cc_g = yes; then
3369   if test "$GCC" = yes; then
3370     CFLAGS="-g -O2"
3371   else
3372     CFLAGS="-g"
3373   fi
3374 else
3375   if test "$GCC" = yes; then
3376     CFLAGS="-O2"
3377   else
3378     CFLAGS=
3379   fi
3380 fi
3381 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3382 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_cc_c89+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   ac_cv_prog_cc_c89=no
3387 ac_save_CC=$CC
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <stdarg.h>
3395 #include <stdio.h>
3396 #include <sys/types.h>
3397 #include <sys/stat.h>
3398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3399 struct buf { int x; };
3400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401 static char *e (p, i)
3402      char **p;
3403      int i;
3404 {
3405   return p[i];
3406 }
3407 static char *f (char * (*g) (char **, int), char **p, ...)
3408 {
3409   char *s;
3410   va_list v;
3411   va_start (v,p);
3412   s = g (p, va_arg (v,int));
3413   va_end (v);
3414   return s;
3415 }
3416
3417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3418    function prototypes and stuff, but not '\xHH' hex character constants.
3419    These don't provoke an error unfortunately, instead are silently treated
3420    as 'x'.  The following induces an error, until -std is added to get
3421    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3422    array size at least.  It's necessary to write '\x00'==0 to get something
3423    that's true only with -std.  */
3424 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425
3426 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427    inside strings and character constants.  */
3428 #define FOO(x) 'x'
3429 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430
3431 int test (int i, double x);
3432 struct s1 {int (*f) (int a);};
3433 struct s2 {int (*f) (double a);};
3434 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435 int argc;
3436 char **argv;
3437 int
3438 main ()
3439 {
3440 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447 do
3448   CC="$ac_save_CC $ac_arg"
3449   rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456   (eval "$ac_compile") 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } && {
3463          test -z "$ac_c_werror_flag" ||
3464          test ! -s conftest.err
3465        } && test -s conftest.$ac_objext; then
3466   ac_cv_prog_cc_c89=$ac_arg
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471
3472 fi
3473
3474 rm -f core conftest.err conftest.$ac_objext
3475   test "x$ac_cv_prog_cc_c89" != "xno" && break
3476 done
3477 rm -f conftest.$ac_ext
3478 CC=$ac_save_CC
3479
3480 fi
3481 # AC_CACHE_VAL
3482 case "x$ac_cv_prog_cc_c89" in
3483   x)
3484     { echo "$as_me:$LINENO: result: none needed" >&5
3485 echo "${ECHO_T}none needed" >&6; } ;;
3486   xno)
3487     { echo "$as_me:$LINENO: result: unsupported" >&5
3488 echo "${ECHO_T}unsupported" >&6; } ;;
3489   *)
3490     CC="$CC $ac_cv_prog_cc_c89"
3491     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3492 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3493 esac
3494
3495
3496 ac_ext=c
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 DEPDIR="${am__leading_dot}deps"
3502
3503 ac_config_commands="$ac_config_commands depfiles"
3504
3505
3506 am_make=${MAKE-make}
3507 cat > confinc << 'END'
3508 am__doit:
3509         @echo done
3510 .PHONY: am__doit
3511 END
3512 # If we don't find an include directive, just comment out the code.
3513 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3514 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3515 am__include="#"
3516 am__quote=
3517 _am_result=none
3518 # First try GNU make style include.
3519 echo "include confinc" > confmf
3520 # We grep out `Entering directory' and `Leaving directory'
3521 # messages which can occur if `w' ends up in MAKEFLAGS.
3522 # In particular we don't look at `^make:' because GNU make might
3523 # be invoked under some other name (usually "gmake"), in which
3524 # case it prints its new name instead of `make'.
3525 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3526    am__include=include
3527    am__quote=
3528    _am_result=GNU
3529 fi
3530 # Now try BSD make style include.
3531 if test "$am__include" = "#"; then
3532    echo '.include "confinc"' > confmf
3533    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3534       am__include=.include
3535       am__quote="\""
3536       _am_result=BSD
3537    fi
3538 fi
3539
3540
3541 { echo "$as_me:$LINENO: result: $_am_result" >&5
3542 echo "${ECHO_T}$_am_result" >&6; }
3543 rm -f confinc confmf
3544
3545 # Check whether --enable-dependency-tracking was given.
3546 if test "${enable_dependency_tracking+set}" = set; then
3547   enableval=$enable_dependency_tracking;
3548 fi
3549
3550 if test "x$enable_dependency_tracking" != xno; then
3551   am_depcomp="$ac_aux_dir/depcomp"
3552   AMDEPBACKSLASH='\'
3553 fi
3554  if test "x$enable_dependency_tracking" != xno; then
3555   AMDEP_TRUE=
3556   AMDEP_FALSE='#'
3557 else
3558   AMDEP_TRUE='#'
3559   AMDEP_FALSE=
3560 fi
3561
3562
3563
3564 depcc="$CC"   am_compiler_list=
3565
3566 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3572   # We make a subdir and do the tests there.  Otherwise we can end up
3573   # making bogus files that we don't know about and never remove.  For
3574   # instance it was reported that on HP-UX the gcc test will end up
3575   # making a dummy file named `D' -- because `-MD' means `put the output
3576   # in D'.
3577   mkdir conftest.dir
3578   # Copy depcomp to subdir because otherwise we won't find it if we're
3579   # using a relative directory.
3580   cp "$am_depcomp" conftest.dir
3581   cd conftest.dir
3582   # We will build objects and dependencies in a subdirectory because
3583   # it helps to detect inapplicable dependency modes.  For instance
3584   # both Tru64's cc and ICC support -MD to output dependencies as a
3585   # side effect of compilation, but ICC will put the dependencies in
3586   # the current directory while Tru64 will put them in the object
3587   # directory.
3588   mkdir sub
3589
3590   am_cv_CC_dependencies_compiler_type=none
3591   if test "$am_compiler_list" = ""; then
3592      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3593   fi
3594   for depmode in $am_compiler_list; do
3595     # Setup a source with many dependencies, because some compilers
3596     # like to wrap large dependency lists on column 80 (with \), and
3597     # we should not choose a depcomp mode which is confused by this.
3598     #
3599     # We need to recreate these files for each test, as the compiler may
3600     # overwrite some of them when testing with obscure command lines.
3601     # This happens at least with the AIX C compiler.
3602     : > sub/conftest.c
3603     for i in 1 2 3 4 5 6; do
3604       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3605       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3606       # Solaris 8's {/usr,}/bin/sh.
3607       touch sub/conftst$i.h
3608     done
3609     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3610
3611     case $depmode in
3612     nosideeffect)
3613       # after this tag, mechanisms are not by side-effect, so they'll
3614       # only be used when explicitly requested
3615       if test "x$enable_dependency_tracking" = xyes; then
3616         continue
3617       else
3618         break
3619       fi
3620       ;;
3621     none) break ;;
3622     esac
3623     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3624     # mode.  It turns out that the SunPro C++ compiler does not properly
3625     # handle `-M -o', and we need to detect this.
3626     if depmode=$depmode \
3627        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3628        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3629        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3630          >/dev/null 2>conftest.err &&
3631        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3632        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3633        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3634        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3635       # icc doesn't choke on unknown options, it will just issue warnings
3636       # or remarks (even with -Werror).  So we grep stderr for any message
3637       # that says an option was ignored or not supported.
3638       # When given -MP, icc 7.0 and 7.1 complain thusly:
3639       #   icc: Command line warning: ignoring option '-M'; no argument required
3640       # The diagnosis changed in icc 8.0:
3641       #   icc: Command line remark: option '-MP' not supported
3642       if (grep 'ignoring option' conftest.err ||
3643           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3644         am_cv_CC_dependencies_compiler_type=$depmode
3645         break
3646       fi
3647     fi
3648   done
3649
3650   cd ..
3651   rm -rf conftest.dir
3652 else
3653   am_cv_CC_dependencies_compiler_type=none
3654 fi
3655
3656 fi
3657 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3658 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3659 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3660
3661  if
3662   test "x$enable_dependency_tracking" != xno \
3663   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3664   am__fastdepCC_TRUE=
3665   am__fastdepCC_FALSE='#'
3666 else
3667   am__fastdepCC_TRUE='#'
3668   am__fastdepCC_FALSE=
3669 fi
3670
3671
3672 # Find a good install program.  We prefer a C program (faster),
3673 # so one script is as good as another.  But avoid the broken or
3674 # incompatible versions:
3675 # SysV /etc/install, /usr/sbin/install
3676 # SunOS /usr/etc/install
3677 # IRIX /sbin/install
3678 # AIX /bin/install
3679 # AmigaOS /C/install, which installs bootblocks on floppy discs
3680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3683 # OS/2's system install, which has a completely different semantic
3684 # ./install, which can be erroneously created by make from ./install.sh.
3685 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3687 if test -z "$INSTALL"; then
3688 if test "${ac_cv_path_install+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694   IFS=$as_save_IFS
3695   test -z "$as_dir" && as_dir=.
3696   # Account for people who put trailing slashes in PATH elements.
3697 case $as_dir/ in
3698   ./ | .// | /cC/* | \
3699   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3700   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3701   /usr/ucb/* ) ;;
3702   *)
3703     # OSF1 and SCO ODT 3.0 have their own names for install.
3704     # Don't use installbsd from OSF since it installs stuff as root
3705     # by default.
3706     for ac_prog in ginstall scoinst install; do
3707       for ac_exec_ext in '' $ac_executable_extensions; do
3708         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3709           if test $ac_prog = install &&
3710             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3711             # AIX install.  It has an incompatible calling convention.
3712             :
3713           elif test $ac_prog = install &&
3714             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3715             # program-specific install script used by HP pwplus--don't use.
3716             :
3717           else
3718             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3719             break 3
3720           fi
3721         fi
3722       done
3723     done
3724     ;;
3725 esac
3726 done
3727 IFS=$as_save_IFS
3728
3729
3730 fi
3731   if test "${ac_cv_path_install+set}" = set; then
3732     INSTALL=$ac_cv_path_install
3733   else
3734     # As a last resort, use the slow shell script.  Don't cache a
3735     # value for INSTALL within a source directory, because that will
3736     # break other packages using the cache if that directory is
3737     # removed, or if the value is a relative name.
3738     INSTALL=$ac_install_sh
3739   fi
3740 fi
3741 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3742 echo "${ECHO_T}$INSTALL" >&6; }
3743
3744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3745 # It thinks the first close brace ends the variable substitution.
3746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3747
3748 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3749
3750 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3751
3752
3753
3754 # Check whether --enable-shared was given.
3755 if test "${enable_shared+set}" = set; then
3756   enableval=$enable_shared; p=${PACKAGE-default}
3757     case $enableval in
3758     yes) enable_shared=yes ;;
3759     no) enable_shared=no ;;
3760     *)
3761       enable_shared=no
3762       # Look at the argument we got.  We use all the common list separators.
3763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764       for pkg in $enableval; do
3765         IFS="$lt_save_ifs"
3766         if test "X$pkg" = "X$p"; then
3767           enable_shared=yes
3768         fi
3769       done
3770       IFS="$lt_save_ifs"
3771       ;;
3772     esac
3773 else
3774   enable_shared=yes
3775 fi
3776
3777
3778 # Check whether --enable-static was given.
3779 if test "${enable_static+set}" = set; then
3780   enableval=$enable_static; p=${PACKAGE-default}
3781     case $enableval in
3782     yes) enable_static=yes ;;
3783     no) enable_static=no ;;
3784     *)
3785      enable_static=no
3786       # Look at the argument we got.  We use all the common list separators.
3787       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3788       for pkg in $enableval; do
3789         IFS="$lt_save_ifs"
3790         if test "X$pkg" = "X$p"; then
3791           enable_static=yes
3792         fi
3793       done
3794       IFS="$lt_save_ifs"
3795       ;;
3796     esac
3797 else
3798   enable_static=yes
3799 fi
3800
3801
3802 # Check whether --enable-fast-install was given.
3803 if test "${enable_fast_install+set}" = set; then
3804   enableval=$enable_fast_install; p=${PACKAGE-default}
3805     case $enableval in
3806     yes) enable_fast_install=yes ;;
3807     no) enable_fast_install=no ;;
3808     *)
3809       enable_fast_install=no
3810       # Look at the argument we got.  We use all the common list separators.
3811       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3812       for pkg in $enableval; do
3813         IFS="$lt_save_ifs"
3814         if test "X$pkg" = "X$p"; then
3815           enable_fast_install=yes
3816         fi
3817       done
3818       IFS="$lt_save_ifs"
3819       ;;
3820     esac
3821 else
3822   enable_fast_install=yes
3823 fi
3824
3825
3826 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3827 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3828 if test "${lt_cv_path_SED+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   # Loop through the user's path and test for sed and gsed.
3832 # Then use that list of sed's as ones to test for truncation.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838   for lt_ac_prog in sed gsed; do
3839     for ac_exec_ext in '' $ac_executable_extensions; do
3840       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3841         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3842       fi
3843     done
3844   done
3845 done
3846 lt_ac_max=0
3847 lt_ac_count=0
3848 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3849 # along with /bin/sed that truncates output.
3850 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3851   test ! -f $lt_ac_sed && continue
3852   cat /dev/null > conftest.in
3853   lt_ac_count=0
3854   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3855   # Check for GNU sed and select it if it is found.
3856   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3857     lt_cv_path_SED=$lt_ac_sed
3858     break
3859   fi
3860   while true; do
3861     cat conftest.in conftest.in >conftest.tmp
3862     mv conftest.tmp conftest.in
3863     cp conftest.in conftest.nl
3864     echo >>conftest.nl
3865     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3866     cmp -s conftest.out conftest.nl || break
3867     # 10000 chars as input seems more than enough
3868     test $lt_ac_count -gt 10 && break
3869     lt_ac_count=`expr $lt_ac_count + 1`
3870     if test $lt_ac_count -gt $lt_ac_max; then
3871       lt_ac_max=$lt_ac_count
3872       lt_cv_path_SED=$lt_ac_sed
3873     fi
3874   done
3875 done
3876
3877 fi
3878
3879 SED=$lt_cv_path_SED
3880 { echo "$as_me:$LINENO: result: $SED" >&5
3881 echo "${ECHO_T}$SED" >&6; }
3882
3883 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3884 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   # Extract the first word of "grep ggrep" to use in msg output
3889 if test -z "$GREP"; then
3890 set dummy grep ggrep; ac_prog_name=$2
3891 if test "${ac_cv_path_GREP+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   ac_path_GREP_found=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901   for ac_prog in grep ggrep; do
3902   for ac_exec_ext in '' $ac_executable_extensions; do
3903     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3904     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3905     # Check for GNU ac_path_GREP and select it if it is found.
3906   # Check for GNU $ac_path_GREP
3907 case `"$ac_path_GREP" --version 2>&1` in
3908 *GNU*)
3909   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3910 *)
3911   ac_count=0
3912   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3913   while :
3914   do
3915     cat "conftest.in" "conftest.in" >"conftest.tmp"
3916     mv "conftest.tmp" "conftest.in"
3917     cp "conftest.in" "conftest.nl"
3918     echo 'GREP' >> "conftest.nl"
3919     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921     ac_count=`expr $ac_count + 1`
3922     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3923       # Best one so far, save it but keep looking for a better one
3924       ac_cv_path_GREP="$ac_path_GREP"
3925       ac_path_GREP_max=$ac_count
3926     fi
3927     # 10*(2^10) chars as input seems more than enough
3928     test $ac_count -gt 10 && break
3929   done
3930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931 esac
3932
3933
3934     $ac_path_GREP_found && break 3
3935   done
3936 done
3937
3938 done
3939 IFS=$as_save_IFS
3940
3941
3942 fi
3943
3944 GREP="$ac_cv_path_GREP"
3945 if test -z "$GREP"; then
3946   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3947 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3948    { (exit 1); exit 1; }; }
3949 fi
3950
3951 else
3952   ac_cv_path_GREP=$GREP
3953 fi
3954
3955
3956 fi
3957 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3958 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3959  GREP="$ac_cv_path_GREP"
3960
3961
3962 { echo "$as_me:$LINENO: checking for egrep" >&5
3963 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968    then ac_cv_path_EGREP="$GREP -E"
3969    else
3970      # Extract the first word of "egrep" to use in msg output
3971 if test -z "$EGREP"; then
3972 set dummy egrep; ac_prog_name=$2
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   ac_path_EGREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_prog in egrep; do
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3986     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3987     # Check for GNU ac_path_EGREP and select it if it is found.
3988   # Check for GNU $ac_path_EGREP
3989 case `"$ac_path_EGREP" --version 2>&1` in
3990 *GNU*)
3991   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3992 *)
3993   ac_count=0
3994   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3995   while :
3996   do
3997     cat "conftest.in" "conftest.in" >"conftest.tmp"
3998     mv "conftest.tmp" "conftest.in"
3999     cp "conftest.in" "conftest.nl"
4000     echo 'EGREP' >> "conftest.nl"
4001     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003     ac_count=`expr $ac_count + 1`
4004     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005       # Best one so far, save it but keep looking for a better one
4006       ac_cv_path_EGREP="$ac_path_EGREP"
4007       ac_path_EGREP_max=$ac_count
4008     fi
4009     # 10*(2^10) chars as input seems more than enough
4010     test $ac_count -gt 10 && break
4011   done
4012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 esac
4014
4015
4016     $ac_path_EGREP_found && break 3
4017   done
4018 done
4019
4020 done
4021 IFS=$as_save_IFS
4022
4023
4024 fi
4025
4026 EGREP="$ac_cv_path_EGREP"
4027 if test -z "$EGREP"; then
4028   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030    { (exit 1); exit 1; }; }
4031 fi
4032
4033 else
4034   ac_cv_path_EGREP=$EGREP
4035 fi
4036
4037
4038    fi
4039 fi
4040 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4041 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4042  EGREP="$ac_cv_path_EGREP"
4043
4044
4045
4046 # Check whether --with-gnu-ld was given.
4047 if test "${with_gnu_ld+set}" = set; then
4048   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4049 else
4050   with_gnu_ld=no
4051 fi
4052
4053 ac_prog=ld
4054 if test "$GCC" = yes; then
4055   # Check if gcc -print-prog-name=ld gives a path.
4056   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4057 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4058   case $host in
4059   *-*-mingw*)
4060     # gcc leaves a trailing carriage return which upsets mingw
4061     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4062   *)
4063     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4064   esac
4065   case $ac_prog in
4066     # Accept absolute paths.
4067     [\\/]* | ?:[\\/]*)
4068       re_direlt='/[^/][^/]*/\.\./'
4069       # Canonicalize the pathname of ld
4070       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4071       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4072         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4073       done
4074       test -z "$LD" && LD="$ac_prog"
4075       ;;
4076   "")
4077     # If it fails, then pretend we aren't using GCC.
4078     ac_prog=ld
4079     ;;
4080   *)
4081     # If it is relative, then search for the first ld in PATH.
4082     with_gnu_ld=unknown
4083     ;;
4084   esac
4085 elif test "$with_gnu_ld" = yes; then
4086   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4087 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4088 else
4089   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4090 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4091 fi
4092 if test "${lt_cv_path_LD+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -z "$LD"; then
4096   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4097   for ac_dir in $PATH; do
4098     IFS="$lt_save_ifs"
4099     test -z "$ac_dir" && ac_dir=.
4100     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4101       lt_cv_path_LD="$ac_dir/$ac_prog"
4102       # Check to see if the program is GNU ld.  I'd rather use --version,
4103       # but apparently some variants of GNU ld only accept -v.
4104       # Break only if it was the GNU/non-GNU ld that we prefer.
4105       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4106       *GNU* | *'with BFD'*)
4107         test "$with_gnu_ld" != no && break
4108         ;;
4109       *)
4110         test "$with_gnu_ld" != yes && break
4111         ;;
4112       esac
4113     fi
4114   done
4115   IFS="$lt_save_ifs"
4116 else
4117   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4118 fi
4119 fi
4120
4121 LD="$lt_cv_path_LD"
4122 if test -n "$LD"; then
4123   { echo "$as_me:$LINENO: result: $LD" >&5
4124 echo "${ECHO_T}$LD" >&6; }
4125 else
4126   { echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6; }
4128 fi
4129 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4130 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4131    { (exit 1); exit 1; }; }
4132 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4133 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4134 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4138 case `$LD -v 2>&1 </dev/null` in
4139 *GNU* | *'with BFD'*)
4140   lt_cv_prog_gnu_ld=yes
4141   ;;
4142 *)
4143   lt_cv_prog_gnu_ld=no
4144   ;;
4145 esac
4146 fi
4147 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4148 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4149 with_gnu_ld=$lt_cv_prog_gnu_ld
4150
4151
4152 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4153 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4154 if test "${lt_cv_ld_reload_flag+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   lt_cv_ld_reload_flag='-r'
4158 fi
4159 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4160 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4161 reload_flag=$lt_cv_ld_reload_flag
4162 case $reload_flag in
4163 "" | " "*) ;;
4164 *) reload_flag=" $reload_flag" ;;
4165 esac
4166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167 case $host_os in
4168   darwin*)
4169     if test "$GCC" = yes; then
4170       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4171     else
4172       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4173     fi
4174     ;;
4175 esac
4176
4177 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4178 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4179 if test "${lt_cv_path_NM+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   if test -n "$NM"; then
4183   # Let the user override the test.
4184   lt_cv_path_NM="$NM"
4185 else
4186   lt_nm_to_check="${ac_tool_prefix}nm"
4187   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4188     lt_nm_to_check="$lt_nm_to_check nm"
4189   fi
4190   for lt_tmp_nm in $lt_nm_to_check; do
4191     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4192     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4193       IFS="$lt_save_ifs"
4194       test -z "$ac_dir" && ac_dir=.
4195       tmp_nm="$ac_dir/$lt_tmp_nm"
4196       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4197         # Check to see if the nm accepts a BSD-compat flag.
4198         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4199         #   nm: unknown option "B" ignored
4200         # Tru64's nm complains that /dev/null is an invalid object file
4201         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4202         */dev/null* | *'Invalid file or object type'*)
4203           lt_cv_path_NM="$tmp_nm -B"
4204           break
4205           ;;
4206         *)
4207           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4208           */dev/null*)
4209             lt_cv_path_NM="$tmp_nm -p"
4210             break
4211             ;;
4212           *)
4213             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4214             continue # so that we can try to find one that supports BSD flags
4215             ;;
4216           esac
4217           ;;
4218         esac
4219       fi
4220     done
4221     IFS="$lt_save_ifs"
4222   done
4223   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4224 fi
4225 fi
4226 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4227 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4228 NM="$lt_cv_path_NM"
4229
4230 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4231 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4232 LN_S=$as_ln_s
4233 if test "$LN_S" = "ln -s"; then
4234   { echo "$as_me:$LINENO: result: yes" >&5
4235 echo "${ECHO_T}yes" >&6; }
4236 else
4237   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4238 echo "${ECHO_T}no, using $LN_S" >&6; }
4239 fi
4240
4241 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4242 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4243 if test "${lt_cv_deplibs_check_method+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   lt_cv_file_magic_cmd='$MAGIC_CMD'
4247 lt_cv_file_magic_test_file=
4248 lt_cv_deplibs_check_method='unknown'
4249 # Need to set the preceding variable on all platforms that support
4250 # interlibrary dependencies.
4251 # 'none' -- dependencies not supported.
4252 # `unknown' -- same as none, but documents that we really don't know.
4253 # 'pass_all' -- all dependencies passed with no checks.
4254 # 'test_compile' -- check by making test program.
4255 # 'file_magic [[regex]]' -- check by looking for files in library path
4256 # which responds to the $file_magic_cmd with a given extended regex.
4257 # If you have `file' or equivalent on your system and you're not sure
4258 # whether `pass_all' will *always* work, you probably want this one.
4259
4260 case $host_os in
4261 aix4* | aix5*)
4262   lt_cv_deplibs_check_method=pass_all
4263   ;;
4264
4265 beos*)
4266   lt_cv_deplibs_check_method=pass_all
4267   ;;
4268
4269 bsdi[45]*)
4270   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4271   lt_cv_file_magic_cmd='/usr/bin/file -L'
4272   lt_cv_file_magic_test_file=/shlib/libc.so
4273   ;;
4274
4275 cygwin*)
4276   # func_win32_libid is a shell function defined in ltmain.sh
4277   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4278   lt_cv_file_magic_cmd='func_win32_libid'
4279   ;;
4280
4281 mingw* | pw32*)
4282   # Base MSYS/MinGW do not provide the 'file' command needed by
4283   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4284   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4285   lt_cv_file_magic_cmd='$OBJDUMP -f'
4286   ;;
4287
4288 darwin* | rhapsody*)
4289   lt_cv_deplibs_check_method=pass_all
4290   ;;
4291
4292 freebsd* | dragonfly*)
4293   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4294     case $host_cpu in
4295     i*86 )
4296       # Not sure whether the presence of OpenBSD here was a mistake.
4297       # Let's accept both of them until this is cleared up.
4298       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4299       lt_cv_file_magic_cmd=/usr/bin/file
4300       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4301       ;;
4302     esac
4303   else
4304     lt_cv_deplibs_check_method=pass_all
4305   fi
4306   ;;
4307
4308 gnu*)
4309   lt_cv_deplibs_check_method=pass_all
4310   ;;
4311
4312 hpux10.20* | hpux11*)
4313   lt_cv_file_magic_cmd=/usr/bin/file
4314   case $host_cpu in
4315   ia64*)
4316     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4317     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4318     ;;
4319   hppa*64*)
4320     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]'
4321     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4322     ;;
4323   *)
4324     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4325     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4326     ;;
4327   esac
4328   ;;
4329
4330 interix3*)
4331   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4332   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4333   ;;
4334
4335 irix5* | irix6* | nonstopux*)
4336   case $LD in
4337   *-32|*"-32 ") libmagic=32-bit;;
4338   *-n32|*"-n32 ") libmagic=N32;;
4339   *-64|*"-64 ") libmagic=64-bit;;
4340   *) libmagic=never-match;;
4341   esac
4342   lt_cv_deplibs_check_method=pass_all
4343   ;;
4344
4345 # This must be Linux ELF.
4346 linux* | k*bsd*-gnu)
4347   lt_cv_deplibs_check_method=pass_all
4348   ;;
4349
4350 netbsd* | netbsdelf*-gnu)
4351   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4353   else
4354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4355   fi
4356   ;;
4357
4358 newos6*)
4359   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4360   lt_cv_file_magic_cmd=/usr/bin/file
4361   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4362   ;;
4363
4364 nto-qnx*)
4365   lt_cv_deplibs_check_method=unknown
4366   ;;
4367
4368 openbsd*)
4369   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4370     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4371   else
4372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4373   fi
4374   ;;
4375
4376 osf3* | osf4* | osf5*)
4377   lt_cv_deplibs_check_method=pass_all
4378   ;;
4379
4380 solaris*)
4381   lt_cv_deplibs_check_method=pass_all
4382   ;;
4383
4384 sysv4 | sysv4.3*)
4385   case $host_vendor in
4386   motorola)
4387     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]'
4388     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4389     ;;
4390   ncr)
4391     lt_cv_deplibs_check_method=pass_all
4392     ;;
4393   sequent)
4394     lt_cv_file_magic_cmd='/bin/file'
4395     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4396     ;;
4397   sni)
4398     lt_cv_file_magic_cmd='/bin/file'
4399     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4400     lt_cv_file_magic_test_file=/lib/libc.so
4401     ;;
4402   siemens)
4403     lt_cv_deplibs_check_method=pass_all
4404     ;;
4405   pc)
4406     lt_cv_deplibs_check_method=pass_all
4407     ;;
4408   esac
4409   ;;
4410
4411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4412   lt_cv_deplibs_check_method=pass_all
4413   ;;
4414 esac
4415
4416 fi
4417 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4418 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4419 file_magic_cmd=$lt_cv_file_magic_cmd
4420 deplibs_check_method=$lt_cv_deplibs_check_method
4421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4422
4423
4424
4425
4426 # If no C compiler was specified, use CC.
4427 LTCC=${LTCC-"$CC"}
4428
4429 # If no C compiler flags were specified, use CFLAGS.
4430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4431
4432 # Allow CC to be a program name with arguments.
4433 compiler=$CC
4434
4435
4436 # Check whether --enable-libtool-lock was given.
4437 if test "${enable_libtool_lock+set}" = set; then
4438   enableval=$enable_libtool_lock;
4439 fi
4440
4441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4442
4443 # Some flags need to be propagated to the compiler or linker for good
4444 # libtool support.
4445 case $host in
4446 ia64-*-hpux*)
4447   # Find out which ABI we are using.
4448   echo 'int i;' > conftest.$ac_ext
4449   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450   (eval $ac_compile) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; then
4454     case `/usr/bin/file conftest.$ac_objext` in
4455     *ELF-32*)
4456       HPUX_IA64_MODE="32"
4457       ;;
4458     *ELF-64*)
4459       HPUX_IA64_MODE="64"
4460       ;;
4461     esac
4462   fi
4463   rm -rf conftest*
4464   ;;
4465 *-*-irix6*)
4466   # Find out which ABI we are using.
4467   echo '#line 4467 "configure"' > conftest.$ac_ext
4468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469   (eval $ac_compile) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; then
4473    if test "$lt_cv_prog_gnu_ld" = yes; then
4474     case `/usr/bin/file conftest.$ac_objext` in
4475     *32-bit*)
4476       LD="${LD-ld} -melf32bsmip"
4477       ;;
4478     *N32*)
4479       LD="${LD-ld} -melf32bmipn32"
4480       ;;
4481     *64-bit*)
4482       LD="${LD-ld} -melf64bmip"
4483       ;;
4484     esac
4485    else
4486     case `/usr/bin/file conftest.$ac_objext` in
4487     *32-bit*)
4488       LD="${LD-ld} -32"
4489       ;;
4490     *N32*)
4491       LD="${LD-ld} -n32"
4492       ;;
4493     *64-bit*)
4494       LD="${LD-ld} -64"
4495       ;;
4496     esac
4497    fi
4498   fi
4499   rm -rf conftest*
4500   ;;
4501
4502 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4503   # Find out which ABI we are using.
4504   echo 'int i;' > conftest.$ac_ext
4505   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506   (eval $ac_compile) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; then
4510     case `/usr/bin/file conftest.o` in
4511     *32-bit*)
4512       case $host in
4513         x86_64-*linux*)
4514           LD="${LD-ld} -m elf_i386"
4515           ;;
4516         ppc64-*linux*|powerpc64-*linux*)
4517           LD="${LD-ld} -m elf32ppclinux"
4518           ;;
4519         s390x-*linux*)
4520           LD="${LD-ld} -m elf_s390"
4521           ;;
4522         sparc64-*linux*)
4523           LD="${LD-ld} -m elf32_sparc"
4524           ;;
4525       esac
4526       ;;
4527     *64-bit*)
4528       case $host in
4529         x86_64-*linux*)
4530           LD="${LD-ld} -m elf_x86_64"
4531           ;;
4532         ppc*-*linux*|powerpc*-*linux*)
4533           LD="${LD-ld} -m elf64ppc"
4534           ;;
4535         s390*-*linux*)
4536           LD="${LD-ld} -m elf64_s390"
4537           ;;
4538         sparc*-*linux*)
4539           LD="${LD-ld} -m elf64_sparc"
4540           ;;
4541       esac
4542       ;;
4543     esac
4544   fi
4545   rm -rf conftest*
4546   ;;
4547
4548 *-*-sco3.2v5*)
4549   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4550   SAVE_CFLAGS="$CFLAGS"
4551   CFLAGS="$CFLAGS -belf"
4552   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4553 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4554 if test "${lt_cv_cc_needs_belf+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   ac_ext=c
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563      cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569
4570 int
4571 main ()
4572 {
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext conftest$ac_exeext
4579 if { (ac_try="$ac_link"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585   (eval "$ac_link") 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } && {
4592          test -z "$ac_c_werror_flag" ||
4593          test ! -s conftest.err
4594        } && test -s conftest$ac_exeext &&
4595        $as_test_x conftest$ac_exeext; then
4596   lt_cv_cc_needs_belf=yes
4597 else
4598   echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601         lt_cv_cc_needs_belf=no
4602 fi
4603
4604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4605       conftest$ac_exeext conftest.$ac_ext
4606      ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
4612 fi
4613 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4614 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4615   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4616     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4617     CFLAGS="$SAVE_CFLAGS"
4618   fi
4619   ;;
4620 sparc*-*solaris*)
4621   # Find out which ABI we are using.
4622   echo 'int i;' > conftest.$ac_ext
4623   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624   (eval $ac_compile) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; then
4628     case `/usr/bin/file conftest.o` in
4629     *64-bit*)
4630       case $lt_cv_prog_gnu_ld in
4631       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4632       *)    LD="${LD-ld} -64" ;;
4633       esac
4634       ;;
4635     esac
4636   fi
4637   rm -rf conftest*
4638   ;;
4639
4640
4641 esac
4642
4643 need_locks="$enable_libtool_lock"
4644
4645
4646 ac_ext=c
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4653 # On Suns, sometimes $CPP names a directory.
4654 if test -n "$CPP" && test -d "$CPP"; then
4655   CPP=
4656 fi
4657 if test -z "$CPP"; then
4658   if test "${ac_cv_prog_CPP+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661       # Double quotes because CPP needs to be expanded
4662     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4663     do
4664       ac_preproc_ok=false
4665 for ac_c_preproc_warn_flag in '' yes
4666 do
4667   # Use a header file that comes with gcc, so configuring glibc
4668   # with a fresh cross-compiler works.
4669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670   # <limits.h> exists even on freestanding compilers.
4671   # On the NeXT, cc -E runs the code through the compiler's parser,
4672   # not just through cpp. "Syntax error" is here to catch this case.
4673   cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h.  */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h.  */
4679 #ifdef __STDC__
4680 # include <limits.h>
4681 #else
4682 # include <assert.h>
4683 #endif
4684                      Syntax error
4685 _ACEOF
4686 if { (ac_try="$ac_cpp conftest.$ac_ext"
4687 case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4693   ac_status=$?
4694   grep -v '^ *+' conftest.er1 >conftest.err
4695   rm -f conftest.er1
4696   cat conftest.err >&5
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } >/dev/null && {
4699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4700          test ! -s conftest.err
4701        }; then
4702   :
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707   # Broken: fails on valid input.
4708 continue
4709 fi
4710
4711 rm -f conftest.err conftest.$ac_ext
4712
4713   # OK, works on sane cases.  Now check whether nonexistent headers
4714   # can be detected and how.
4715   cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721 #include <ac_nonexistent.h>
4722 _ACEOF
4723 if { (ac_try="$ac_cpp conftest.$ac_ext"
4724 case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4730   ac_status=$?
4731   grep -v '^ *+' conftest.er1 >conftest.err
4732   rm -f conftest.er1
4733   cat conftest.err >&5
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } >/dev/null && {
4736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737          test ! -s conftest.err
4738        }; then
4739   # Broken: success on invalid input.
4740 continue
4741 else
4742   echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745   # Passes both tests.
4746 ac_preproc_ok=:
4747 break
4748 fi
4749
4750 rm -f conftest.err conftest.$ac_ext
4751
4752 done
4753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754 rm -f conftest.err conftest.$ac_ext
4755 if $ac_preproc_ok; then
4756   break
4757 fi
4758
4759     done
4760     ac_cv_prog_CPP=$CPP
4761
4762 fi
4763   CPP=$ac_cv_prog_CPP
4764 else
4765   ac_cv_prog_CPP=$CPP
4766 fi
4767 { echo "$as_me:$LINENO: result: $CPP" >&5
4768 echo "${ECHO_T}$CPP" >&6; }
4769 ac_preproc_ok=false
4770 for ac_c_preproc_warn_flag in '' yes
4771 do
4772   # Use a header file that comes with gcc, so configuring glibc
4773   # with a fresh cross-compiler works.
4774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775   # <limits.h> exists even on freestanding compilers.
4776   # On the NeXT, cc -E runs the code through the compiler's parser,
4777   # not just through cpp. "Syntax error" is here to catch this case.
4778   cat >conftest.$ac_ext <<_ACEOF
4779 /* confdefs.h.  */
4780 _ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h.  */
4784 #ifdef __STDC__
4785 # include <limits.h>
4786 #else
4787 # include <assert.h>
4788 #endif
4789                      Syntax error
4790 _ACEOF
4791 if { (ac_try="$ac_cpp conftest.$ac_ext"
4792 case "(($ac_try" in
4793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794   *) ac_try_echo=$ac_try;;
4795 esac
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4798   ac_status=$?
4799   grep -v '^ *+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } >/dev/null && {
4804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4805          test ! -s conftest.err
4806        }; then
4807   :
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812   # Broken: fails on valid input.
4813 continue
4814 fi
4815
4816 rm -f conftest.err conftest.$ac_ext
4817
4818   # OK, works on sane cases.  Now check whether nonexistent headers
4819   # can be detected and how.
4820   cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h.  */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h.  */
4826 #include <ac_nonexistent.h>
4827 _ACEOF
4828 if { (ac_try="$ac_cpp conftest.$ac_ext"
4829 case "(($ac_try" in
4830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831   *) ac_try_echo=$ac_try;;
4832 esac
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4835   ac_status=$?
4836   grep -v '^ *+' conftest.er1 >conftest.err
4837   rm -f conftest.er1
4838   cat conftest.err >&5
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } >/dev/null && {
4841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4842          test ! -s conftest.err
4843        }; then
4844   # Broken: success on invalid input.
4845 continue
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850   # Passes both tests.
4851 ac_preproc_ok=:
4852 break
4853 fi
4854
4855 rm -f conftest.err conftest.$ac_ext
4856
4857 done
4858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4859 rm -f conftest.err conftest.$ac_ext
4860 if $ac_preproc_ok; then
4861   :
4862 else
4863   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4864 See \`config.log' for more details." >&5
4865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4866 See \`config.log' for more details." >&2;}
4867    { (exit 1); exit 1; }; }
4868 fi
4869
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876
4877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4879 if test "${ac_cv_header_stdc+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <stdlib.h>
4889 #include <stdarg.h>
4890 #include <string.h>
4891 #include <float.h>
4892
4893 int
4894 main ()
4895 {
4896
4897   ;
4898   return 0;
4899 }
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (ac_try="$ac_compile"
4903 case "(($ac_try" in
4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905   *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908   (eval "$ac_compile") 2>conftest.er1
4909   ac_status=$?
4910   grep -v '^ *+' conftest.er1 >conftest.err
4911   rm -f conftest.er1
4912   cat conftest.err >&5
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); } && {
4915          test -z "$ac_c_werror_flag" ||
4916          test ! -s conftest.err
4917        } && test -s conftest.$ac_objext; then
4918   ac_cv_header_stdc=yes
4919 else
4920   echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923         ac_cv_header_stdc=no
4924 fi
4925
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927
4928 if test $ac_cv_header_stdc = yes; then
4929   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4930   cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936 #include <string.h>
4937
4938 _ACEOF
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940   $EGREP "memchr" >/dev/null 2>&1; then
4941   :
4942 else
4943   ac_cv_header_stdc=no
4944 fi
4945 rm -f conftest*
4946
4947 fi
4948
4949 if test $ac_cv_header_stdc = yes; then
4950   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4951   cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957 #include <stdlib.h>
4958
4959 _ACEOF
4960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961   $EGREP "free" >/dev/null 2>&1; then
4962   :
4963 else
4964   ac_cv_header_stdc=no
4965 fi
4966 rm -f conftest*
4967
4968 fi
4969
4970 if test $ac_cv_header_stdc = yes; then
4971   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4972   if test "$cross_compiling" = yes; then
4973   :
4974 else
4975   cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 #include <ctype.h>
4982 #include <stdlib.h>
4983 #if ((' ' & 0x0FF) == 0x020)
4984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4986 #else
4987 # define ISLOWER(c) \
4988                    (('a' <= (c) && (c) <= 'i') \
4989                      || ('j' <= (c) && (c) <= 'r') \
4990                      || ('s' <= (c) && (c) <= 'z'))
4991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4992 #endif
4993
4994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 int
4996 main ()
4997 {
4998   int i;
4999   for (i = 0; i < 256; i++)
5000     if (XOR (islower (i), ISLOWER (i))
5001         || toupper (i) != TOUPPER (i))
5002       return 2;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest$ac_exeext
5007 if { (ac_try="$ac_link"
5008 case "(($ac_try" in
5009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010   *) ac_try_echo=$ac_try;;
5011 esac
5012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013   (eval "$ac_link") 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5017   { (case "(($ac_try" in
5018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019   *) ac_try_echo=$ac_try;;
5020 esac
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022   (eval "$ac_try") 2>&5
5023   ac_status=$?
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); }; }; then
5026   :
5027 else
5028   echo "$as_me: program exited with status $ac_status" >&5
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032 ( exit $ac_status )
5033 ac_cv_header_stdc=no
5034 fi
5035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 fi
5037
5038
5039 fi
5040 fi
5041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5043 if test $ac_cv_header_stdc = yes; then
5044
5045 cat >>confdefs.h <<\_ACEOF
5046 #define STDC_HEADERS 1
5047 _ACEOF
5048
5049 fi
5050
5051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5062                   inttypes.h stdint.h unistd.h
5063 do
5064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 $ac_includes_default
5077
5078 #include <$ac_header>
5079 _ACEOF
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5082 case "(($ac_try" in
5083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084   *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087   (eval "$ac_compile") 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } && {
5094          test -z "$ac_c_werror_flag" ||
5095          test ! -s conftest.err
5096        } && test -s conftest.$ac_objext; then
5097   eval "$as_ac_Header=yes"
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102         eval "$as_ac_Header=no"
5103 fi
5104
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107 ac_res=`eval echo '${'$as_ac_Header'}'`
5108                { echo "$as_me:$LINENO: result: $ac_res" >&5
5109 echo "${ECHO_T}$ac_res" >&6; }
5110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5111   cat >>confdefs.h <<_ACEOF
5112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5113 _ACEOF
5114
5115 fi
5116
5117 done
5118
5119
5120
5121 for ac_header in dlfcn.h
5122 do
5123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5128   echo $ECHO_N "(cached) $ECHO_C" >&6
5129 fi
5130 ac_res=`eval echo '${'$as_ac_Header'}'`
5131                { echo "$as_me:$LINENO: result: $ac_res" >&5
5132 echo "${ECHO_T}$ac_res" >&6; }
5133 else
5134   # Is the header compilable?
5135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 $ac_includes_default
5144 #include <$ac_header>
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_compile") 2>conftest.er1
5154   ac_status=$?
5155   grep -v '^ *+' conftest.er1 >conftest.err
5156   rm -f conftest.er1
5157   cat conftest.err >&5
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } && {
5160          test -z "$ac_c_werror_flag" ||
5161          test ! -s conftest.err
5162        } && test -s conftest.$ac_objext; then
5163   ac_header_compiler=yes
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168         ac_header_compiler=no
5169 fi
5170
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5173 echo "${ECHO_T}$ac_header_compiler" >&6; }
5174
5175 # Is the header present?
5176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h.  */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h.  */
5184 #include <$ac_header>
5185 _ACEOF
5186 if { (ac_try="$ac_cpp conftest.$ac_ext"
5187 case "(($ac_try" in
5188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189   *) ac_try_echo=$ac_try;;
5190 esac
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } >/dev/null && {
5199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200          test ! -s conftest.err
5201        }; then
5202   ac_header_preproc=yes
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207   ac_header_preproc=no
5208 fi
5209
5210 rm -f conftest.err conftest.$ac_ext
5211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5212 echo "${ECHO_T}$ac_header_preproc" >&6; }
5213
5214 # So?  What about this header?
5215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5216   yes:no: )
5217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5221     ac_header_preproc=yes
5222     ;;
5223   no:yes:* )
5224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5236     ( cat <<\_ASBOX
5237 ## ---------------------------------------- ##
5238 ## Report this to konn@users.sourceforge.jp ##
5239 ## ---------------------------------------- ##
5240 _ASBOX
5241      ) | sed "s/^/$as_me: WARNING:     /" >&2
5242     ;;
5243 esac
5244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   eval "$as_ac_Header=\$ac_header_preproc"
5250 fi
5251 ac_res=`eval echo '${'$as_ac_Header'}'`
5252                { echo "$as_me:$LINENO: result: $ac_res" >&5
5253 echo "${ECHO_T}$ac_res" >&6; }
5254
5255 fi
5256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5257   cat >>confdefs.h <<_ACEOF
5258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5259 _ACEOF
5260
5261 fi
5262
5263 done
5264
5265 ac_ext=cpp
5266 ac_cpp='$CXXCPP $CPPFLAGS'
5267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270 if test -z "$CXX"; then
5271   if test -n "$CCC"; then
5272     CXX=$CCC
5273   else
5274     if test -n "$ac_tool_prefix"; then
5275   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5276   do
5277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_CXX+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -n "$CXX"; then
5285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302 fi
5303 fi
5304 CXX=$ac_cv_prog_CXX
5305 if test -n "$CXX"; then
5306   { echo "$as_me:$LINENO: result: $CXX" >&5
5307 echo "${ECHO_T}$CXX" >&6; }
5308 else
5309   { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5311 fi
5312
5313
5314     test -n "$CXX" && break
5315   done
5316 fi
5317 if test -z "$CXX"; then
5318   ac_ct_CXX=$CXX
5319   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5320 do
5321   # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   if test -n "$ac_ct_CXX"; then
5329   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336   for ac_exec_ext in '' $ac_executable_extensions; do
5337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338     ac_cv_prog_ac_ct_CXX="$ac_prog"
5339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343 done
5344 IFS=$as_save_IFS
5345
5346 fi
5347 fi
5348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5349 if test -n "$ac_ct_CXX"; then
5350   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5351 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5352 else
5353   { echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6; }
5355 fi
5356
5357
5358   test -n "$ac_ct_CXX" && break
5359 done
5360
5361   if test "x$ac_ct_CXX" = x; then
5362     CXX="g++"
5363   else
5364     case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5367 whose name does not start with the host triplet.  If you think this
5368 configuration is useful to you, please write to autoconf@gnu.org." >&5
5369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5370 whose name does not start with the host triplet.  If you think this
5371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5372 ac_tool_warned=yes ;;
5373 esac
5374     CXX=$ac_ct_CXX
5375   fi
5376 fi
5377
5378   fi
5379 fi
5380 # Provide some information about the compiler.
5381 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5382 ac_compiler=`set X $ac_compile; echo $2`
5383 { (ac_try="$ac_compiler --version >&5"
5384 case "(($ac_try" in
5385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386   *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389   (eval "$ac_compiler --version >&5") 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }
5393 { (ac_try="$ac_compiler -v >&5"
5394 case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399   (eval "$ac_compiler -v >&5") 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }
5403 { (ac_try="$ac_compiler -V >&5"
5404 case "(($ac_try" in
5405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406   *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409   (eval "$ac_compiler -V >&5") 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }
5413
5414 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5415 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5417   echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419   cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h.  */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h.  */
5425
5426 int
5427 main ()
5428 {
5429 #ifndef __GNUC__
5430        choke me
5431 #endif
5432
5433   ;
5434   return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5439 case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444   (eval "$ac_compile") 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } && {
5451          test -z "$ac_cxx_werror_flag" ||
5452          test ! -s conftest.err
5453        } && test -s conftest.$ac_objext; then
5454   ac_compiler_gnu=yes
5455 else
5456   echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459         ac_compiler_gnu=no
5460 fi
5461
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5464
5465 fi
5466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5467 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5468 GXX=`test $ac_compiler_gnu = yes && echo yes`
5469 ac_test_CXXFLAGS=${CXXFLAGS+set}
5470 ac_save_CXXFLAGS=$CXXFLAGS
5471 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5472 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5473 if test "${ac_cv_prog_cxx_g+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5477    ac_cxx_werror_flag=yes
5478    ac_cv_prog_cxx_g=no
5479    CXXFLAGS="-g"
5480    cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486
5487 int
5488 main ()
5489 {
5490
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 rm -f conftest.$ac_objext
5496 if { (ac_try="$ac_compile"
5497 case "(($ac_try" in
5498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499   *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502   (eval "$ac_compile") 2>conftest.er1
5503   ac_status=$?
5504   grep -v '^ *+' conftest.er1 >conftest.err
5505   rm -f conftest.er1
5506   cat conftest.err >&5
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } && {
5509          test -z "$ac_cxx_werror_flag" ||
5510          test ! -s conftest.err
5511        } && test -s conftest.$ac_objext; then
5512   ac_cv_prog_cxx_g=yes
5513 else
5514   echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517         CXXFLAGS=""
5518       cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524
5525 int
5526 main ()
5527 {
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537   *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540   (eval "$ac_compile") 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } && {
5547          test -z "$ac_cxx_werror_flag" ||
5548          test ! -s conftest.err
5549        } && test -s conftest.$ac_objext; then
5550   :
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5556          CXXFLAGS="-g"
5557          cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563
5564 int
5565 main ()
5566 {
5567
5568   ;
5569   return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5574 case "(($ac_try" in
5575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576   *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579   (eval "$ac_compile") 2>conftest.er1
5580   ac_status=$?
5581   grep -v '^ *+' conftest.er1 >conftest.err
5582   rm -f conftest.er1
5583   cat conftest.err >&5
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); } && {
5586          test -z "$ac_cxx_werror_flag" ||
5587          test ! -s conftest.err
5588        } && test -s conftest.$ac_objext; then
5589   ac_cv_prog_cxx_g=yes
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594
5595 fi
5596
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 fi
5599
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 fi
5602
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5605 fi
5606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5608 if test "$ac_test_CXXFLAGS" = set; then
5609   CXXFLAGS=$ac_save_CXXFLAGS
5610 elif test $ac_cv_prog_cxx_g = yes; then
5611   if test "$GXX" = yes; then
5612     CXXFLAGS="-g -O2"
5613   else
5614     CXXFLAGS="-g"
5615   fi
5616 else
5617   if test "$GXX" = yes; then
5618     CXXFLAGS="-O2"
5619   else
5620     CXXFLAGS=
5621   fi
5622 fi
5623 ac_ext=cpp
5624 ac_cpp='$CXXCPP $CPPFLAGS'
5625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5628
5629 depcc="$CXX"  am_compiler_list=
5630
5631 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5632 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5633 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5637   # We make a subdir and do the tests there.  Otherwise we can end up
5638   # making bogus files that we don't know about and never remove.  For
5639   # instance it was reported that on HP-UX the gcc test will end up
5640   # making a dummy file named `D' -- because `-MD' means `put the output
5641   # in D'.
5642   mkdir conftest.dir
5643   # Copy depcomp to subdir because otherwise we won't find it if we're
5644   # using a relative directory.
5645   cp "$am_depcomp" conftest.dir
5646   cd conftest.dir
5647   # We will build objects and dependencies in a subdirectory because
5648   # it helps to detect inapplicable dependency modes.  For instance
5649   # both Tru64's cc and ICC support -MD to output dependencies as a
5650   # side effect of compilation, but ICC will put the dependencies in
5651   # the current directory while Tru64 will put them in the object
5652   # directory.
5653   mkdir sub
5654
5655   am_cv_CXX_dependencies_compiler_type=none
5656   if test "$am_compiler_list" = ""; then
5657      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5658   fi
5659   for depmode in $am_compiler_list; do
5660     # Setup a source with many dependencies, because some compilers
5661     # like to wrap large dependency lists on column 80 (with \), and
5662     # we should not choose a depcomp mode which is confused by this.
5663     #
5664     # We need to recreate these files for each test, as the compiler may
5665     # overwrite some of them when testing with obscure command lines.
5666     # This happens at least with the AIX C compiler.
5667     : > sub/conftest.c
5668     for i in 1 2 3 4 5 6; do
5669       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5670       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5671       # Solaris 8's {/usr,}/bin/sh.
5672       touch sub/conftst$i.h
5673     done
5674     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5675
5676     case $depmode in
5677     nosideeffect)
5678       # after this tag, mechanisms are not by side-effect, so they'll
5679       # only be used when explicitly requested
5680       if test "x$enable_dependency_tracking" = xyes; then
5681         continue
5682       else
5683         break
5684       fi
5685       ;;
5686     none) break ;;
5687     esac
5688     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5689     # mode.  It turns out that the SunPro C++ compiler does not properly
5690     # handle `-M -o', and we need to detect this.
5691     if depmode=$depmode \
5692        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5693        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5694        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5695          >/dev/null 2>conftest.err &&
5696        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5697        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5698        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5699        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5700       # icc doesn't choke on unknown options, it will just issue warnings
5701       # or remarks (even with -Werror).  So we grep stderr for any message
5702       # that says an option was ignored or not supported.
5703       # When given -MP, icc 7.0 and 7.1 complain thusly:
5704       #   icc: Command line warning: ignoring option '-M'; no argument required
5705       # The diagnosis changed in icc 8.0:
5706       #   icc: Command line remark: option '-MP' not supported
5707       if (grep 'ignoring option' conftest.err ||
5708           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5709         am_cv_CXX_dependencies_compiler_type=$depmode
5710         break
5711       fi
5712     fi
5713   done
5714
5715   cd ..
5716   rm -rf conftest.dir
5717 else
5718   am_cv_CXX_dependencies_compiler_type=none
5719 fi
5720
5721 fi
5722 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5723 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5724 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5725
5726  if
5727   test "x$enable_dependency_tracking" != xno \
5728   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5729   am__fastdepCXX_TRUE=
5730   am__fastdepCXX_FALSE='#'
5731 else
5732   am__fastdepCXX_TRUE='#'
5733   am__fastdepCXX_FALSE=
5734 fi
5735
5736
5737
5738
5739 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5740     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5741     (test "X$CXX" != "Xg++"))) ; then
5742   ac_ext=cpp
5743 ac_cpp='$CXXCPP $CPPFLAGS'
5744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5747 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5748 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5749 if test -z "$CXXCPP"; then
5750   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753       # Double quotes because CXXCPP needs to be expanded
5754     for CXXCPP in "$CXX -E" "/lib/cpp"
5755     do
5756       ac_preproc_ok=false
5757 for ac_cxx_preproc_warn_flag in '' yes
5758 do
5759   # Use a header file that comes with gcc, so configuring glibc
5760   # with a fresh cross-compiler works.
5761   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762   # <limits.h> exists even on freestanding compilers.
5763   # On the NeXT, cc -E runs the code through the compiler's parser,
5764   # not just through cpp. "Syntax error" is here to catch this case.
5765   cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 #ifdef __STDC__
5772 # include <limits.h>
5773 #else
5774 # include <assert.h>
5775 #endif
5776                      Syntax error
5777 _ACEOF
5778 if { (ac_try="$ac_cpp conftest.$ac_ext"
5779 case "(($ac_try" in
5780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781   *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5785   ac_status=$?
5786   grep -v '^ *+' conftest.er1 >conftest.err
5787   rm -f conftest.er1
5788   cat conftest.err >&5
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } >/dev/null && {
5791          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5792          test ! -s conftest.err
5793        }; then
5794   :
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799   # Broken: fails on valid input.
5800 continue
5801 fi
5802
5803 rm -f conftest.err conftest.$ac_ext
5804
5805   # OK, works on sane cases.  Now check whether nonexistent headers
5806   # can be detected and how.
5807   cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813 #include <ac_nonexistent.h>
5814 _ACEOF
5815 if { (ac_try="$ac_cpp conftest.$ac_ext"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5822   ac_status=$?
5823   grep -v '^ *+' conftest.er1 >conftest.err
5824   rm -f conftest.er1
5825   cat conftest.err >&5
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } >/dev/null && {
5828          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5829          test ! -s conftest.err
5830        }; then
5831   # Broken: success on invalid input.
5832 continue
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837   # Passes both tests.
5838 ac_preproc_ok=:
5839 break
5840 fi
5841
5842 rm -f conftest.err conftest.$ac_ext
5843
5844 done
5845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846 rm -f conftest.err conftest.$ac_ext
5847 if $ac_preproc_ok; then
5848   break
5849 fi
5850
5851     done
5852     ac_cv_prog_CXXCPP=$CXXCPP
5853
5854 fi
5855   CXXCPP=$ac_cv_prog_CXXCPP
5856 else
5857   ac_cv_prog_CXXCPP=$CXXCPP
5858 fi
5859 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5860 echo "${ECHO_T}$CXXCPP" >&6; }
5861 ac_preproc_ok=false
5862 for ac_cxx_preproc_warn_flag in '' yes
5863 do
5864   # Use a header file that comes with gcc, so configuring glibc
5865   # with a fresh cross-compiler works.
5866   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867   # <limits.h> exists even on freestanding compilers.
5868   # On the NeXT, cc -E runs the code through the compiler's parser,
5869   # not just through cpp. "Syntax error" is here to catch this case.
5870   cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h.  */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h.  */
5876 #ifdef __STDC__
5877 # include <limits.h>
5878 #else
5879 # include <assert.h>
5880 #endif
5881                      Syntax error
5882 _ACEOF
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5884 case "(($ac_try" in
5885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886   *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890   ac_status=$?
5891   grep -v '^ *+' conftest.er1 >conftest.err
5892   rm -f conftest.er1
5893   cat conftest.err >&5
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); } >/dev/null && {
5896          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5897          test ! -s conftest.err
5898        }; then
5899   :
5900 else
5901   echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904   # Broken: fails on valid input.
5905 continue
5906 fi
5907
5908 rm -f conftest.err conftest.$ac_ext
5909
5910   # OK, works on sane cases.  Now check whether nonexistent headers
5911   # can be detected and how.
5912   cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 #include <ac_nonexistent.h>
5919 _ACEOF
5920 if { (ac_try="$ac_cpp conftest.$ac_ext"
5921 case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927   ac_status=$?
5928   grep -v '^ *+' conftest.er1 >conftest.err
5929   rm -f conftest.er1
5930   cat conftest.err >&5
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); } >/dev/null && {
5933          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5934          test ! -s conftest.err
5935        }; then
5936   # Broken: success on invalid input.
5937 continue
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942   # Passes both tests.
5943 ac_preproc_ok=:
5944 break
5945 fi
5946
5947 rm -f conftest.err conftest.$ac_ext
5948
5949 done
5950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951 rm -f conftest.err conftest.$ac_ext
5952 if $ac_preproc_ok; then
5953   :
5954 else
5955   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5956 See \`config.log' for more details." >&5
5957 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5958 See \`config.log' for more details." >&2;}
5959    { (exit 1); exit 1; }; }
5960 fi
5961
5962 ac_ext=cpp
5963 ac_cpp='$CXXCPP $CPPFLAGS'
5964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5967
5968 fi
5969
5970
5971 ac_ext=f
5972 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5973 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5975 if test -n "$ac_tool_prefix"; then
5976   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
5977   do
5978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_prog_F77+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   if test -n "$F77"; then
5986   ac_cv_prog_F77="$F77" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991   IFS=$as_save_IFS
5992   test -z "$as_dir" && as_dir=.
5993   for ac_exec_ext in '' $ac_executable_extensions; do
5994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997     break 2
5998   fi
5999 done
6000 done
6001 IFS=$as_save_IFS
6002
6003 fi
6004 fi
6005 F77=$ac_cv_prog_F77
6006 if test -n "$F77"; then
6007   { echo "$as_me:$LINENO: result: $F77" >&5
6008 echo "${ECHO_T}$F77" >&6; }
6009 else
6010   { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6012 fi
6013
6014
6015     test -n "$F77" && break
6016   done
6017 fi
6018 if test -z "$F77"; then
6019   ac_ct_F77=$F77
6020   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
6021 do
6022   # Extract the first word of "$ac_prog", so it can be a program name with args.
6023 set dummy $ac_prog; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   if test -n "$ac_ct_F77"; then
6030   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035   IFS=$as_save_IFS
6036   test -z "$as_dir" && as_dir=.
6037   for ac_exec_ext in '' $ac_executable_extensions; do
6038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039     ac_cv_prog_ac_ct_F77="$ac_prog"
6040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041     break 2
6042   fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6050 if test -n "$ac_ct_F77"; then
6051   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6052 echo "${ECHO_T}$ac_ct_F77" >&6; }
6053 else
6054   { echo "$as_me:$LINENO: result: no" >&5
6055 echo "${ECHO_T}no" >&6; }
6056 fi
6057
6058
6059   test -n "$ac_ct_F77" && break
6060 done
6061
6062   if test "x$ac_ct_F77" = x; then
6063     F77=""
6064   else
6065     case $cross_compiling:$ac_tool_warned in
6066 yes:)
6067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6068 whose name does not start with the host triplet.  If you think this
6069 configuration is useful to you, please write to autoconf@gnu.org." >&5
6070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6071 whose name does not start with the host triplet.  If you think this
6072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075     F77=$ac_ct_F77
6076   fi
6077 fi
6078
6079
6080 # Provide some information about the compiler.
6081 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6082 ac_compiler=`set X $ac_compile; echo $2`
6083 { (ac_try="$ac_compiler --version >&5"
6084 case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089   (eval "$ac_compiler --version >&5") 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }
6093 { (ac_try="$ac_compiler -v >&5"
6094 case "(($ac_try" in
6095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096   *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099   (eval "$ac_compiler -v >&5") 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }
6103 { (ac_try="$ac_compiler -V >&5"
6104 case "(($ac_try" in
6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106   *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109   (eval "$ac_compiler -V >&5") 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }
6113 rm -f a.out
6114
6115 # If we don't use `.F' as extension, the preprocessor is not run on the
6116 # input file.  (Note that this only needs to work for GNU compilers.)
6117 ac_save_ext=$ac_ext
6118 ac_ext=F
6119 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6120 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6121 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   cat >conftest.$ac_ext <<_ACEOF
6125       program main
6126 #ifndef __GNUC__
6127        choke me
6128 #endif
6129
6130       end
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6134 case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139   (eval "$ac_compile") 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } && {
6146          test -z "$ac_f77_werror_flag" ||
6147          test ! -s conftest.err
6148        } && test -s conftest.$ac_objext; then
6149   ac_compiler_gnu=yes
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154         ac_compiler_gnu=no
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6159
6160 fi
6161 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6162 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6163 ac_ext=$ac_save_ext
6164 ac_test_FFLAGS=${FFLAGS+set}
6165 ac_save_FFLAGS=$FFLAGS
6166 FFLAGS=
6167 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6168 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_f77_g+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   FFLAGS=-g
6173 cat >conftest.$ac_ext <<_ACEOF
6174       program main
6175
6176       end
6177 _ACEOF
6178 rm -f conftest.$ac_objext
6179 if { (ac_try="$ac_compile"
6180 case "(($ac_try" in
6181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182   *) ac_try_echo=$ac_try;;
6183 esac
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185   (eval "$ac_compile") 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } && {
6192          test -z "$ac_f77_werror_flag" ||
6193          test ! -s conftest.err
6194        } && test -s conftest.$ac_objext; then
6195   ac_cv_prog_f77_g=yes
6196 else
6197   echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6199
6200         ac_cv_prog_f77_g=no
6201 fi
6202
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204
6205 fi
6206 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6207 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6208 if test "$ac_test_FFLAGS" = set; then
6209   FFLAGS=$ac_save_FFLAGS
6210 elif test $ac_cv_prog_f77_g = yes; then
6211   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6212     FFLAGS="-g -O2"
6213   else
6214     FFLAGS="-g"
6215   fi
6216 else
6217   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6218     FFLAGS="-O2"
6219   else
6220     FFLAGS=
6221   fi
6222 fi
6223
6224 G77=`test $ac_compiler_gnu = yes && echo yes`
6225 ac_ext=c
6226 ac_cpp='$CPP $CPPFLAGS'
6227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6230
6231
6232
6233 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6234
6235 # find the maximum length of command line arguments
6236 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6237 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6238 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241     i=0
6242   teststring="ABCD"
6243
6244   case $build_os in
6245   msdosdjgpp*)
6246     # On DJGPP, this test can blow up pretty badly due to problems in libc
6247     # (any single argument exceeding 2000 bytes causes a buffer overrun
6248     # during glob expansion).  Even if it were fixed, the result of this
6249     # check would be larger than it should be.
6250     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6251     ;;
6252
6253   gnu*)
6254     # Under GNU Hurd, this test is not required because there is
6255     # no limit to the length of command line arguments.
6256     # Libtool will interpret -1 as no limit whatsoever
6257     lt_cv_sys_max_cmd_len=-1;
6258     ;;
6259
6260   cygwin* | mingw*)
6261     # On Win9x/ME, this test blows up -- it succeeds, but takes
6262     # about 5 minutes as the teststring grows exponentially.
6263     # Worse, since 9x/ME are not pre-emptively multitasking,
6264     # you end up with a "frozen" computer, even though with patience
6265     # the test eventually succeeds (with a max line length of 256k).
6266     # Instead, let's just punt: use the minimum linelength reported by
6267     # all of the supported platforms: 8192 (on NT/2K/XP).
6268     lt_cv_sys_max_cmd_len=8192;
6269     ;;
6270
6271   amigaos*)
6272     # On AmigaOS with pdksh, this test takes hours, literally.
6273     # So we just punt and use a minimum line length of 8192.
6274     lt_cv_sys_max_cmd_len=8192;
6275     ;;
6276
6277   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6278     # This has been around since 386BSD, at least.  Likely further.
6279     if test -x /sbin/sysctl; then
6280       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6281     elif test -x /usr/sbin/sysctl; then
6282       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6283     else
6284       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6285     fi
6286     # And add a safety zone
6287     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289     ;;
6290
6291   interix*)
6292     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6293     lt_cv_sys_max_cmd_len=196608
6294     ;;
6295
6296   osf*)
6297     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6298     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6299     # nice to cause kernel panics so lets avoid the loop below.
6300     # First set a reasonable default.
6301     lt_cv_sys_max_cmd_len=16384
6302     #
6303     if test -x /sbin/sysconfig; then
6304       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6305         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6306       esac
6307     fi
6308     ;;
6309   sco3.2v5*)
6310     lt_cv_sys_max_cmd_len=102400
6311     ;;
6312   sysv5* | sco5v6* | sysv4.2uw2*)
6313     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6314     if test -n "$kargmax"; then
6315       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6316     else
6317       lt_cv_sys_max_cmd_len=32768
6318     fi
6319     ;;
6320   *)
6321     # If test is not a shell built-in, we'll probably end up computing a
6322     # maximum length that is only half of the actual maximum length, but
6323     # we can't tell.
6324     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6325     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6326                = "XX$teststring") >/dev/null 2>&1 &&
6327             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6328             lt_cv_sys_max_cmd_len=$new_result &&
6329             test $i != 17 # 1/2 MB should be enough
6330     do
6331       i=`expr $i + 1`
6332       teststring=$teststring$teststring
6333     done
6334     teststring=
6335     # Add a significant safety factor because C++ compilers can tack on massive
6336     # amounts of additional arguments before passing them to the linker.
6337     # It appears as though 1/2 is a usable value.
6338     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6339     ;;
6340   esac
6341
6342 fi
6343
6344 if test -n $lt_cv_sys_max_cmd_len ; then
6345   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6346 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: none" >&5
6349 echo "${ECHO_T}none" >&6; }
6350 fi
6351
6352
6353
6354
6355 # Check for command to grab the raw symbol name followed by C symbol from nm.
6356 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6357 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6358 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361
6362 # These are sane defaults that work on at least a few old systems.
6363 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6364
6365 # Character class describing NM global symbol codes.
6366 symcode='[BCDEGRST]'
6367
6368 # Regexp to match symbols that can be accessed directly from C.
6369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6370
6371 # Transform an extracted symbol line into a proper C declaration
6372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6373
6374 # Transform an extracted symbol line into symbol name and symbol address
6375 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'"
6376
6377 # Define system-specific variables.
6378 case $host_os in
6379 aix*)
6380   symcode='[BCDT]'
6381   ;;
6382 cygwin* | mingw* | pw32*)
6383   symcode='[ABCDGISTW]'
6384   ;;
6385 hpux*) # Its linker distinguishes data from code symbols
6386   if test "$host_cpu" = ia64; then
6387     symcode='[ABCDEGRST]'
6388   fi
6389   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6390   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'"
6391   ;;
6392 linux* | k*bsd*-gnu)
6393   if test "$host_cpu" = ia64; then
6394     symcode='[ABCDGIRSTW]'
6395     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6396     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'"
6397   fi
6398   ;;
6399 irix* | nonstopux*)
6400   symcode='[BCDEGRST]'
6401   ;;
6402 osf*)
6403   symcode='[BCDEGQRST]'
6404   ;;
6405 solaris*)
6406   symcode='[BDRT]'
6407   ;;
6408 sco3.2v5*)
6409   symcode='[DT]'
6410   ;;
6411 sysv4.2uw2*)
6412   symcode='[DT]'
6413   ;;
6414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6415   symcode='[ABDT]'
6416   ;;
6417 sysv4)
6418   symcode='[DFNSTU]'
6419   ;;
6420 esac
6421
6422 # Handle CRLF in mingw tool chain
6423 opt_cr=
6424 case $build_os in
6425 mingw*)
6426   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6427   ;;
6428 esac
6429
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433   symcode='[ABCDGIRSTW]' ;;
6434 esac
6435
6436 # Try without a prefix undercore, then with it.
6437 for ac_symprfx in "" "_"; do
6438
6439   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6440   symxfrm="\\1 $ac_symprfx\\2 \\2"
6441
6442   # Write the raw and C identifiers.
6443   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6444
6445   # Check to see that the pipe works correctly.
6446   pipe_works=no
6447
6448   rm -f conftest*
6449   cat > conftest.$ac_ext <<EOF
6450 #ifdef __cplusplus
6451 extern "C" {
6452 #endif
6453 char nm_test_var;
6454 void nm_test_func(){}
6455 #ifdef __cplusplus
6456 }
6457 #endif
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6459 EOF
6460
6461   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462   (eval $ac_compile) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; then
6466     # Now try to grab the symbols.
6467     nlist=conftest.nm
6468     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6469   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } && test -s "$nlist"; then
6473       # Try sorting and uniquifying the output.
6474       if sort "$nlist" | uniq > "$nlist"T; then
6475         mv -f "$nlist"T "$nlist"
6476       else
6477         rm -f "$nlist"T
6478       fi
6479
6480       # Make sure that we snagged all the symbols we need.
6481       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6482         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6483           cat <<EOF > conftest.$ac_ext
6484 #ifdef __cplusplus
6485 extern "C" {
6486 #endif
6487
6488 EOF
6489           # Now generate the symbol file.
6490           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6491
6492           cat <<EOF >> conftest.$ac_ext
6493 #if defined (__STDC__) && __STDC__
6494 # define lt_ptr_t void *
6495 #else
6496 # define lt_ptr_t char *
6497 # define const
6498 #endif
6499
6500 /* The mapping between symbol names and symbols. */
6501 const struct {
6502   const char *name;
6503   lt_ptr_t address;
6504 }
6505 lt_preloaded_symbols[] =
6506 {
6507 EOF
6508           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6509           cat <<\EOF >> conftest.$ac_ext
6510   {0, (lt_ptr_t) 0}
6511 };
6512
6513 #ifdef __cplusplus
6514 }
6515 #endif
6516 EOF
6517           # Now try linking the two files.
6518           mv conftest.$ac_objext conftstm.$ac_objext
6519           lt_save_LIBS="$LIBS"
6520           lt_save_CFLAGS="$CFLAGS"
6521           LIBS="conftstm.$ac_objext"
6522           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6523           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524   (eval $ac_link) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6528             pipe_works=yes
6529           fi
6530           LIBS="$lt_save_LIBS"
6531           CFLAGS="$lt_save_CFLAGS"
6532         else
6533           echo "cannot find nm_test_func in $nlist" >&5
6534         fi
6535       else
6536         echo "cannot find nm_test_var in $nlist" >&5
6537       fi
6538     else
6539       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6540     fi
6541   else
6542     echo "$progname: failed program was:" >&5
6543     cat conftest.$ac_ext >&5
6544   fi
6545   rm -f conftest* conftst*
6546
6547   # Do not use the global_symbol_pipe unless it works.
6548   if test "$pipe_works" = yes; then
6549     break
6550   else
6551     lt_cv_sys_global_symbol_pipe=
6552   fi
6553 done
6554
6555 fi
6556
6557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6558   lt_cv_sys_global_symbol_to_cdecl=
6559 fi
6560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6561   { echo "$as_me:$LINENO: result: failed" >&5
6562 echo "${ECHO_T}failed" >&6; }
6563 else
6564   { echo "$as_me:$LINENO: result: ok" >&5
6565 echo "${ECHO_T}ok" >&6; }
6566 fi
6567
6568 { echo "$as_me:$LINENO: checking for objdir" >&5
6569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6570 if test "${lt_cv_objdir+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   rm -f .libs 2>/dev/null
6574 mkdir .libs 2>/dev/null
6575 if test -d .libs; then
6576   lt_cv_objdir=.libs
6577 else
6578   # MS-DOS does not allow filenames that begin with a dot.
6579   lt_cv_objdir=_libs
6580 fi
6581 rmdir .libs 2>/dev/null
6582 fi
6583 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6584 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6585 objdir=$lt_cv_objdir
6586
6587
6588
6589
6590
6591 case $host_os in
6592 aix3*)
6593   # AIX sometimes has problems with the GCC collect2 program.  For some
6594   # reason, if we set the COLLECT_NAMES environment variable, the problems
6595   # vanish in a puff of smoke.
6596   if test "X${COLLECT_NAMES+set}" != Xset; then
6597     COLLECT_NAMES=
6598     export COLLECT_NAMES
6599   fi
6600   ;;
6601 esac
6602
6603 # Sed substitution that helps us do robust quoting.  It backslashifies
6604 # metacharacters that are still active within double-quoted strings.
6605 Xsed='sed -e 1s/^X//'
6606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6607
6608 # Same as above, but do not quote variable references.
6609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6610
6611 # Sed substitution to delay expansion of an escaped shell variable in a
6612 # double_quote_subst'ed string.
6613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6614
6615 # Sed substitution to avoid accidental globbing in evaled expressions
6616 no_glob_subst='s/\*/\\\*/g'
6617
6618 # Constants:
6619 rm="rm -f"
6620
6621 # Global variables:
6622 default_ofile=libtool
6623 can_build_shared=yes
6624
6625 # All known linkers require a `.a' archive for static linking (except MSVC,
6626 # which needs '.lib').
6627 libext=a
6628 ltmain="$ac_aux_dir/ltmain.sh"
6629 ofile="$default_ofile"
6630 with_gnu_ld="$lt_cv_prog_gnu_ld"
6631
6632 if test -n "$ac_tool_prefix"; then
6633   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}ar; ac_word=$2
6635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6637 if test "${ac_cv_prog_AR+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   if test -n "$AR"; then
6641   ac_cv_prog_AR="$AR" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_prog_AR="${ac_tool_prefix}ar"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 AR=$ac_cv_prog_AR
6661 if test -n "$AR"; then
6662   { echo "$as_me:$LINENO: result: $AR" >&5
6663 echo "${ECHO_T}$AR" >&6; }
6664 else
6665   { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_AR"; then
6672   ac_ct_AR=$AR
6673   # Extract the first word of "ar", so it can be a program name with args.
6674 set dummy ar; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$ac_ct_AR"; then
6681   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_ac_ct_AR="ar"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6701 if test -n "$ac_ct_AR"; then
6702   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6703 echo "${ECHO_T}$ac_ct_AR" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709   if test "x$ac_ct_AR" = x; then
6710     AR="false"
6711   else
6712     case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet.  If you think this
6716 configuration is useful to you, please write to autoconf@gnu.org." >&5
6717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6718 whose name does not start with the host triplet.  If you think this
6719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722     AR=$ac_ct_AR
6723   fi
6724 else
6725   AR="$ac_cv_prog_AR"
6726 fi
6727
6728 if test -n "$ac_tool_prefix"; then
6729   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733 if test "${ac_cv_prog_RANLIB+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   if test -n "$RANLIB"; then
6737   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 RANLIB=$ac_cv_prog_RANLIB
6757 if test -n "$RANLIB"; then
6758   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6759 echo "${ECHO_T}$RANLIB" >&6; }
6760 else
6761   { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6763 fi
6764
6765
6766 fi
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768   ac_ct_RANLIB=$RANLIB
6769   # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$ac_ct_RANLIB"; then
6777   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_ac_ct_RANLIB="ranlib"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6799 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805   if test "x$ac_ct_RANLIB" = x; then
6806     RANLIB=":"
6807   else
6808     case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet.  If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&5
6813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet.  If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818     RANLIB=$ac_ct_RANLIB
6819   fi
6820 else
6821   RANLIB="$ac_cv_prog_RANLIB"
6822 fi
6823
6824 if test -n "$ac_tool_prefix"; then
6825   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_STRIP+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   if test -n "$STRIP"; then
6833   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 STRIP=$ac_cv_prog_STRIP
6853 if test -n "$STRIP"; then
6854   { echo "$as_me:$LINENO: result: $STRIP" >&5
6855 echo "${ECHO_T}$STRIP" >&6; }
6856 else
6857   { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_STRIP"; then
6864   ac_ct_STRIP=$STRIP
6865   # Extract the first word of "strip", so it can be a program name with args.
6866 set dummy strip; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   if test -n "$ac_ct_STRIP"; then
6873   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_ac_ct_STRIP="strip"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6893 if test -n "$ac_ct_STRIP"; then
6894   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6895 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901   if test "x$ac_ct_STRIP" = x; then
6902     STRIP=":"
6903   else
6904     case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet.  If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&5
6909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet.  If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914     STRIP=$ac_ct_STRIP
6915   fi
6916 else
6917   STRIP="$ac_cv_prog_STRIP"
6918 fi
6919
6920
6921 old_CC="$CC"
6922 old_CFLAGS="$CFLAGS"
6923
6924 # Set sane defaults for various variables
6925 test -z "$AR" && AR=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS=cru
6927 test -z "$AS" && AS=as
6928 test -z "$CC" && CC=cc
6929 test -z "$LTCC" && LTCC=$CC
6930 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6931 test -z "$DLLTOOL" && DLLTOOL=dlltool
6932 test -z "$LD" && LD=ld
6933 test -z "$LN_S" && LN_S="ln -s"
6934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6935 test -z "$NM" && NM=nm
6936 test -z "$SED" && SED=sed
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6938 test -z "$RANLIB" && RANLIB=:
6939 test -z "$STRIP" && STRIP=:
6940 test -z "$ac_objext" && ac_objext=o
6941
6942 # Determine commands to create old-style static archives.
6943 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6944 old_postinstall_cmds='chmod 644 $oldlib'
6945 old_postuninstall_cmds=
6946
6947 if test -n "$RANLIB"; then
6948   case $host_os in
6949   openbsd*)
6950     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6951     ;;
6952   *)
6953     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6954     ;;
6955   esac
6956   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6957 fi
6958
6959 for cc_temp in $compiler""; do
6960   case $cc_temp in
6961     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6962     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6963     \-*) ;;
6964     *) break;;
6965   esac
6966 done
6967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6968
6969
6970 # Only perform the check for file, if the check method requires it
6971 case $deplibs_check_method in
6972 file_magic*)
6973   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6974     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6975 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   case $MAGIC_CMD in
6980 [\\/*] |  ?:[\\/]*)
6981   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6982   ;;
6983 *)
6984   lt_save_MAGIC_CMD="$MAGIC_CMD"
6985   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6986   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6987   for ac_dir in $ac_dummy; do
6988     IFS="$lt_save_ifs"
6989     test -z "$ac_dir" && ac_dir=.
6990     if test -f $ac_dir/${ac_tool_prefix}file; then
6991       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6992       if test -n "$file_magic_test_file"; then
6993         case $deplibs_check_method in
6994         "file_magic "*)
6995           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6996           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6998             $EGREP "$file_magic_regex" > /dev/null; then
6999             :
7000           else
7001             cat <<EOF 1>&2
7002
7003 *** Warning: the command libtool uses to detect shared libraries,
7004 *** $file_magic_cmd, produces output that libtool cannot recognize.
7005 *** The result is that libtool may fail to recognize shared libraries
7006 *** as such.  This will affect the creation of libtool libraries that
7007 *** depend on shared libraries, but programs linked with such libtool
7008 *** libraries will work regardless of this problem.  Nevertheless, you
7009 *** may want to report the problem to your system manager and/or to
7010 *** bug-libtool@gnu.org
7011
7012 EOF
7013           fi ;;
7014         esac
7015       fi
7016       break
7017     fi
7018   done
7019   IFS="$lt_save_ifs"
7020   MAGIC_CMD="$lt_save_MAGIC_CMD"
7021   ;;
7022 esac
7023 fi
7024
7025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026 if test -n "$MAGIC_CMD"; then
7027   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7028 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7029 else
7030   { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7032 fi
7033
7034 if test -z "$lt_cv_path_MAGIC_CMD"; then
7035   if test -n "$ac_tool_prefix"; then
7036     { echo "$as_me:$LINENO: checking for file" >&5
7037 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7038 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $MAGIC_CMD in
7042 [\\/*] |  ?:[\\/]*)
7043   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7044   ;;
7045 *)
7046   lt_save_MAGIC_CMD="$MAGIC_CMD"
7047   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7048   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7049   for ac_dir in $ac_dummy; do
7050     IFS="$lt_save_ifs"
7051     test -z "$ac_dir" && ac_dir=.
7052     if test -f $ac_dir/file; then
7053       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7054       if test -n "$file_magic_test_file"; then
7055         case $deplibs_check_method in
7056         "file_magic "*)
7057           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7058           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7059           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7060             $EGREP "$file_magic_regex" > /dev/null; then
7061             :
7062           else
7063             cat <<EOF 1>&2
7064
7065 *** Warning: the command libtool uses to detect shared libraries,
7066 *** $file_magic_cmd, produces output that libtool cannot recognize.
7067 *** The result is that libtool may fail to recognize shared libraries
7068 *** as such.  This will affect the creation of libtool libraries that
7069 *** depend on shared libraries, but programs linked with such libtool
7070 *** libraries will work regardless of this problem.  Nevertheless, you
7071 *** may want to report the problem to your system manager and/or to
7072 *** bug-libtool@gnu.org
7073
7074 EOF
7075           fi ;;
7076         esac
7077       fi
7078       break
7079     fi
7080   done
7081   IFS="$lt_save_ifs"
7082   MAGIC_CMD="$lt_save_MAGIC_CMD"
7083   ;;
7084 esac
7085 fi
7086
7087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7088 if test -n "$MAGIC_CMD"; then
7089   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7090 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096   else
7097     MAGIC_CMD=:
7098   fi
7099 fi
7100
7101   fi
7102   ;;
7103 esac
7104
7105 enable_dlopen=no
7106 enable_win32_dll=no
7107
7108 # Check whether --enable-libtool-lock was given.
7109 if test "${enable_libtool_lock+set}" = set; then
7110   enableval=$enable_libtool_lock;
7111 fi
7112
7113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7114
7115
7116 # Check whether --with-pic was given.
7117 if test "${with_pic+set}" = set; then
7118   withval=$with_pic; pic_mode="$withval"
7119 else
7120   pic_mode=default
7121 fi
7122
7123 test -z "$pic_mode" && pic_mode=default
7124
7125 # Use C for the default configuration in the libtool script
7126 tagname=
7127 lt_save_CC="$CC"
7128 ac_ext=c
7129 ac_cpp='$CPP $CPPFLAGS'
7130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133
7134
7135 # Source file extension for C test sources.
7136 ac_ext=c
7137
7138 # Object file extension for compiled C test sources.
7139 objext=o
7140 objext=$objext
7141
7142 # Code to be used in simple compile tests
7143 lt_simple_compile_test_code="int some_variable = 0;\n"
7144
7145 # Code to be used in simple link tests
7146 lt_simple_link_test_code='int main(){return(0);}\n'
7147
7148
7149 # If no C compiler was specified, use CC.
7150 LTCC=${LTCC-"$CC"}
7151
7152 # If no C compiler flags were specified, use CFLAGS.
7153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7154
7155 # Allow CC to be a program name with arguments.
7156 compiler=$CC
7157
7158
7159 # save warnings/boilerplate of simple test code
7160 ac_outfile=conftest.$ac_objext
7161 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7163 _lt_compiler_boilerplate=`cat conftest.err`
7164 $rm conftest*
7165
7166 ac_outfile=conftest.$ac_objext
7167 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7169 _lt_linker_boilerplate=`cat conftest.err`
7170 $rm conftest*
7171
7172
7173
7174 lt_prog_compiler_no_builtin_flag=
7175
7176 if test "$GCC" = yes; then
7177   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7178
7179
7180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   lt_cv_prog_compiler_rtti_exceptions=no
7186   ac_outfile=conftest.$ac_objext
7187    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7188    lt_compiler_flag="-fno-rtti -fno-exceptions"
7189    # Insert the option either (1) after the last *FLAGS variable, or
7190    # (2) before a word containing "conftest.", or (3) at the end.
7191    # Note that $ac_compile itself does not contain backslashes and begins
7192    # with a dollar sign (not a hyphen), so the echo should work correctly.
7193    # The option is referenced via a variable to avoid confusing sed.
7194    lt_compile=`echo "$ac_compile" | $SED \
7195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7197    -e 's:$: $lt_compiler_flag:'`
7198    (eval echo "\"\$as_me:7198: $lt_compile\"" >&5)
7199    (eval "$lt_compile" 2>conftest.err)
7200    ac_status=$?
7201    cat conftest.err >&5
7202    echo "$as_me:7202: \$? = $ac_status" >&5
7203    if (exit $ac_status) && test -s "$ac_outfile"; then
7204      # The compiler can only warn and ignore the option if not recognized
7205      # So say no if there are warnings other than the usual output.
7206      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7207      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7208      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7209        lt_cv_prog_compiler_rtti_exceptions=yes
7210      fi
7211    fi
7212    $rm conftest*
7213
7214 fi
7215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7217
7218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7219     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7220 else
7221     :
7222 fi
7223
7224 fi
7225
7226 lt_prog_compiler_wl=
7227 lt_prog_compiler_pic=
7228 lt_prog_compiler_static=
7229
7230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7232
7233   if test "$GCC" = yes; then
7234     lt_prog_compiler_wl='-Wl,'
7235     lt_prog_compiler_static='-static'
7236
7237     case $host_os in
7238       aix*)
7239       # All AIX code is PIC.
7240       if test "$host_cpu" = ia64; then
7241         # AIX 5 now supports IA64 processor
7242         lt_prog_compiler_static='-Bstatic'
7243       fi
7244       ;;
7245
7246     amigaos*)
7247       # FIXME: we need at least 68020 code to build shared libraries, but
7248       # adding the `-m68020' flag to GCC prevents building anything better,
7249       # like `-m68040'.
7250       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7251       ;;
7252
7253     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7254       # PIC is the default for these OSes.
7255       ;;
7256
7257     mingw* | pw32* | os2*)
7258       # This hack is so that the source file can tell whether it is being
7259       # built for inclusion in a dll (and should export symbols for example).
7260       lt_prog_compiler_pic='-DDLL_EXPORT'
7261       ;;
7262
7263     darwin* | rhapsody*)
7264       # PIC is the default on this platform
7265       # Common symbols not allowed in MH_DYLIB files
7266       lt_prog_compiler_pic='-fno-common'
7267       ;;
7268
7269     interix3*)
7270       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7271       # Instead, we relocate shared libraries at runtime.
7272       ;;
7273
7274     msdosdjgpp*)
7275       # Just because we use GCC doesn't mean we suddenly get shared libraries
7276       # on systems that don't support them.
7277       lt_prog_compiler_can_build_shared=no
7278       enable_shared=no
7279       ;;
7280
7281     sysv4*MP*)
7282       if test -d /usr/nec; then
7283         lt_prog_compiler_pic=-Kconform_pic
7284       fi
7285       ;;
7286
7287     hpux*)
7288       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7289       # not for PA HP-UX.
7290       case $host_cpu in
7291       hppa*64*|ia64*)
7292         # +Z the default
7293         ;;
7294       *)
7295         lt_prog_compiler_pic='-fPIC'
7296         ;;
7297       esac
7298       ;;
7299
7300     *)
7301       lt_prog_compiler_pic='-fPIC'
7302       ;;
7303     esac
7304   else
7305     # PORTME Check for flag to pass linker flags through the system compiler.
7306     case $host_os in
7307     aix*)
7308       lt_prog_compiler_wl='-Wl,'
7309       if test "$host_cpu" = ia64; then
7310         # AIX 5 now supports IA64 processor
7311         lt_prog_compiler_static='-Bstatic'
7312       else
7313         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7314       fi
7315       ;;
7316       darwin*)
7317         # PIC is the default on this platform
7318         # Common symbols not allowed in MH_DYLIB files
7319        case $cc_basename in
7320          xlc*)
7321          lt_prog_compiler_pic='-qnocommon'
7322          lt_prog_compiler_wl='-Wl,'
7323          ;;
7324        esac
7325        ;;
7326
7327     mingw* | pw32* | os2*)
7328       # This hack is so that the source file can tell whether it is being
7329       # built for inclusion in a dll (and should export symbols for example).
7330       lt_prog_compiler_pic='-DDLL_EXPORT'
7331       ;;
7332
7333     hpux9* | hpux10* | hpux11*)
7334       lt_prog_compiler_wl='-Wl,'
7335       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7336       # not for PA HP-UX.
7337       case $host_cpu in
7338       hppa*64*|ia64*)
7339         # +Z the default
7340         ;;
7341       *)
7342         lt_prog_compiler_pic='+Z'
7343         ;;
7344       esac
7345       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7346       lt_prog_compiler_static='${wl}-a ${wl}archive'
7347       ;;
7348
7349     irix5* | irix6* | nonstopux*)
7350       lt_prog_compiler_wl='-Wl,'
7351       # PIC (with -KPIC) is the default.
7352       lt_prog_compiler_static='-non_shared'
7353       ;;
7354
7355     newsos6)
7356       lt_prog_compiler_pic='-KPIC'
7357       lt_prog_compiler_static='-Bstatic'
7358       ;;
7359
7360     linux* | k*bsd*-gnu)
7361       case $cc_basename in
7362       icc* | ecc*)
7363         lt_prog_compiler_wl='-Wl,'
7364         lt_prog_compiler_pic='-KPIC'
7365         lt_prog_compiler_static='-static'
7366         ;;
7367       pgcc* | pgf77* | pgf90* | pgf95*)
7368         # Portland Group compilers (*not* the Pentium gcc compiler,
7369         # which looks to be a dead project)
7370         lt_prog_compiler_wl='-Wl,'
7371         lt_prog_compiler_pic='-fpic'
7372         lt_prog_compiler_static='-Bstatic'
7373         ;;
7374       ccc*)
7375         lt_prog_compiler_wl='-Wl,'
7376         # All Alpha code is PIC.
7377         lt_prog_compiler_static='-non_shared'
7378         ;;
7379       esac
7380       ;;
7381
7382     osf3* | osf4* | osf5*)
7383       lt_prog_compiler_wl='-Wl,'
7384       # All OSF/1 code is PIC.
7385       lt_prog_compiler_static='-non_shared'
7386       ;;
7387
7388     solaris*)
7389       lt_prog_compiler_pic='-KPIC'
7390       lt_prog_compiler_static='-Bstatic'
7391       case $cc_basename in
7392       f77* | f90* | f95*)
7393         lt_prog_compiler_wl='-Qoption ld ';;
7394       *)
7395         lt_prog_compiler_wl='-Wl,';;
7396       esac
7397       ;;
7398
7399     sunos4*)
7400       lt_prog_compiler_wl='-Qoption ld '
7401       lt_prog_compiler_pic='-PIC'
7402       lt_prog_compiler_static='-Bstatic'
7403       ;;
7404
7405     sysv4 | sysv4.2uw2* | sysv4.3*)
7406       lt_prog_compiler_wl='-Wl,'
7407       lt_prog_compiler_pic='-KPIC'
7408       lt_prog_compiler_static='-Bstatic'
7409       ;;
7410
7411     sysv4*MP*)
7412       if test -d /usr/nec ;then
7413         lt_prog_compiler_pic='-Kconform_pic'
7414         lt_prog_compiler_static='-Bstatic'
7415       fi
7416       ;;
7417
7418     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7419       lt_prog_compiler_wl='-Wl,'
7420       lt_prog_compiler_pic='-KPIC'
7421       lt_prog_compiler_static='-Bstatic'
7422       ;;
7423
7424     unicos*)
7425       lt_prog_compiler_wl='-Wl,'
7426       lt_prog_compiler_can_build_shared=no
7427       ;;
7428
7429     uts4*)
7430       lt_prog_compiler_pic='-pic'
7431       lt_prog_compiler_static='-Bstatic'
7432       ;;
7433
7434     *)
7435       lt_prog_compiler_can_build_shared=no
7436       ;;
7437     esac
7438   fi
7439
7440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7441 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7442
7443 #
7444 # Check to make sure the PIC flag actually works.
7445 #
7446 if test -n "$lt_prog_compiler_pic"; then
7447
7448 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7450 if test "${lt_prog_compiler_pic_works+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   lt_prog_compiler_pic_works=no
7454   ac_outfile=conftest.$ac_objext
7455    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7456    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7457    # Insert the option either (1) after the last *FLAGS variable, or
7458    # (2) before a word containing "conftest.", or (3) at the end.
7459    # Note that $ac_compile itself does not contain backslashes and begins
7460    # with a dollar sign (not a hyphen), so the echo should work correctly.
7461    # The option is referenced via a variable to avoid confusing sed.
7462    lt_compile=`echo "$ac_compile" | $SED \
7463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465    -e 's:$: $lt_compiler_flag:'`
7466    (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
7467    (eval "$lt_compile" 2>conftest.err)
7468    ac_status=$?
7469    cat conftest.err >&5
7470    echo "$as_me:7470: \$? = $ac_status" >&5
7471    if (exit $ac_status) && test -s "$ac_outfile"; then
7472      # The compiler can only warn and ignore the option if not recognized
7473      # So say no if there are warnings other than the usual output.
7474      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7475      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7476      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7477        lt_prog_compiler_pic_works=yes
7478      fi
7479    fi
7480    $rm conftest*
7481
7482 fi
7483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7484 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7485
7486 if test x"$lt_prog_compiler_pic_works" = xyes; then
7487     case $lt_prog_compiler_pic in
7488      "" | " "*) ;;
7489      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7490      esac
7491 else
7492     lt_prog_compiler_pic=
7493      lt_prog_compiler_can_build_shared=no
7494 fi
7495
7496 fi
7497 case $host_os in
7498   # For platforms which do not support PIC, -DPIC is meaningless:
7499   *djgpp*)
7500     lt_prog_compiler_pic=
7501     ;;
7502   *)
7503     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7504     ;;
7505 esac
7506
7507 #
7508 # Check to make sure the static flag actually works.
7509 #
7510 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7511 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7513 if test "${lt_prog_compiler_static_works+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   lt_prog_compiler_static_works=no
7517    save_LDFLAGS="$LDFLAGS"
7518    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7519    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7520    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7521      # The linker can only warn and ignore the option if not recognized
7522      # So say no if there are warnings
7523      if test -s conftest.err; then
7524        # Append any errors to the config.log.
7525        cat conftest.err 1>&5
7526        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7527        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7528        if diff conftest.exp conftest.er2 >/dev/null; then
7529          lt_prog_compiler_static_works=yes
7530        fi
7531      else
7532        lt_prog_compiler_static_works=yes
7533      fi
7534    fi
7535    $rm conftest*
7536    LDFLAGS="$save_LDFLAGS"
7537
7538 fi
7539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7540 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7541
7542 if test x"$lt_prog_compiler_static_works" = xyes; then
7543     :
7544 else
7545     lt_prog_compiler_static=
7546 fi
7547
7548
7549 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7551 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   lt_cv_prog_compiler_c_o=no
7555    $rm -r conftest 2>/dev/null
7556    mkdir conftest
7557    cd conftest
7558    mkdir out
7559    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7560
7561    lt_compiler_flag="-o out/conftest2.$ac_objext"
7562    # Insert the option either (1) after the last *FLAGS variable, or
7563    # (2) before a word containing "conftest.", or (3) at the end.
7564    # Note that $ac_compile itself does not contain backslashes and begins
7565    # with a dollar sign (not a hyphen), so the echo should work correctly.
7566    lt_compile=`echo "$ac_compile" | $SED \
7567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7569    -e 's:$: $lt_compiler_flag:'`
7570    (eval echo "\"\$as_me:7570: $lt_compile\"" >&5)
7571    (eval "$lt_compile" 2>out/conftest.err)
7572    ac_status=$?
7573    cat out/conftest.err >&5
7574    echo "$as_me:7574: \$? = $ac_status" >&5
7575    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7576    then
7577      # The compiler can only warn and ignore the option if not recognized
7578      # So say no if there are warnings
7579      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7580      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7581      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7582        lt_cv_prog_compiler_c_o=yes
7583      fi
7584    fi
7585    chmod u+w . 2>&5
7586    $rm conftest*
7587    # SGI C++ compiler will create directory out/ii_files/ for
7588    # template instantiation
7589    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7590    $rm out/* && rmdir out
7591    cd ..
7592    rmdir conftest
7593    $rm conftest*
7594
7595 fi
7596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7598
7599
7600 hard_links="nottested"
7601 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7602   # do not overwrite the value of need_locks provided by the user
7603   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7605   hard_links=yes
7606   $rm conftest*
7607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7608   touch conftest.a
7609   ln conftest.a conftest.b 2>&5 || hard_links=no
7610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7611   { echo "$as_me:$LINENO: result: $hard_links" >&5
7612 echo "${ECHO_T}$hard_links" >&6; }
7613   if test "$hard_links" = no; then
7614     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7616     need_locks=warn
7617   fi
7618 else
7619   need_locks=no
7620 fi
7621
7622 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7624
7625   runpath_var=
7626   allow_undefined_flag=
7627   enable_shared_with_static_runtimes=no
7628   archive_cmds=
7629   archive_expsym_cmds=
7630   old_archive_From_new_cmds=
7631   old_archive_from_expsyms_cmds=
7632   export_dynamic_flag_spec=
7633   whole_archive_flag_spec=
7634   thread_safe_flag_spec=
7635   hardcode_libdir_flag_spec=
7636   hardcode_libdir_flag_spec_ld=
7637   hardcode_libdir_separator=
7638   hardcode_direct=no
7639   hardcode_minus_L=no
7640   hardcode_shlibpath_var=unsupported
7641   link_all_deplibs=unknown
7642   hardcode_automatic=no
7643   module_cmds=
7644   module_expsym_cmds=
7645   always_export_symbols=no
7646   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7647   # include_expsyms should be a list of space-separated symbols to be *always*
7648   # included in the symbol list
7649   include_expsyms=
7650   # exclude_expsyms can be an extended regexp of symbols to exclude
7651   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7652   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7653   # as well as any symbol that contains `d'.
7654   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7655   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7656   # platforms (ab)use it in PIC code, but their linkers get confused if
7657   # the symbol is explicitly referenced.  Since portable code cannot
7658   # rely on this symbol name, it's probably fine to never include it in
7659   # preloaded symbol tables.
7660   extract_expsyms_cmds=
7661   # Just being paranoid about ensuring that cc_basename is set.
7662   for cc_temp in $compiler""; do
7663   case $cc_temp in
7664     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7665     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7666     \-*) ;;
7667     *) break;;
7668   esac
7669 done
7670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7671
7672   case $host_os in
7673   cygwin* | mingw* | pw32*)
7674     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7675     # When not using gcc, we currently assume that we are using
7676     # Microsoft Visual C++.
7677     if test "$GCC" != yes; then
7678       with_gnu_ld=no
7679     fi
7680     ;;
7681   interix*)
7682     # we just hope/assume this is gcc and not c89 (= MSVC++)
7683     with_gnu_ld=yes
7684     ;;
7685   openbsd*)
7686     with_gnu_ld=no
7687     ;;
7688   esac
7689
7690   ld_shlibs=yes
7691   if test "$with_gnu_ld" = yes; then
7692     # If archive_cmds runs LD, not CC, wlarc should be empty
7693     wlarc='${wl}'
7694
7695     # Set some defaults for GNU ld with shared library support. These
7696     # are reset later if shared libraries are not supported. Putting them
7697     # here allows them to be overridden if necessary.
7698     runpath_var=LD_RUN_PATH
7699     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7700     export_dynamic_flag_spec='${wl}--export-dynamic'
7701     # ancient GNU ld didn't support --whole-archive et. al.
7702     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7703         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7704       else
7705         whole_archive_flag_spec=
7706     fi
7707     supports_anon_versioning=no
7708     case `$LD -v 2>/dev/null` in
7709       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7710       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7711       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7712       *\ 2.11.*) ;; # other 2.11 versions
7713       *) supports_anon_versioning=yes ;;
7714     esac
7715
7716     # See if GNU ld supports shared libraries.
7717     case $host_os in
7718     aix3* | aix4* | aix5*)
7719       # On AIX/PPC, the GNU linker is very broken
7720       if test "$host_cpu" != ia64; then
7721         ld_shlibs=no
7722         cat <<EOF 1>&2
7723
7724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7725 *** to be unable to reliably create shared libraries on AIX.
7726 *** Therefore, libtool is disabling shared libraries support.  If you
7727 *** really care for shared libraries, you may want to modify your PATH
7728 *** so that a non-GNU linker is found, and then restart.
7729
7730 EOF
7731       fi
7732       ;;
7733
7734     amigaos*)
7735       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)'
7736       hardcode_libdir_flag_spec='-L$libdir'
7737       hardcode_minus_L=yes
7738
7739       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7740       # that the semantics of dynamic libraries on AmigaOS, at least up
7741       # to version 4, is to share data among multiple programs linked
7742       # with the same dynamic library.  Since this doesn't match the
7743       # behavior of shared libraries on other platforms, we can't use
7744       # them.
7745       ld_shlibs=no
7746       ;;
7747
7748     beos*)
7749       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7750         allow_undefined_flag=unsupported
7751         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7752         # support --undefined.  This deserves some investigation.  FIXME
7753         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7754       else
7755         ld_shlibs=no
7756       fi
7757       ;;
7758
7759     cygwin* | mingw* | pw32*)
7760       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7761       # as there is no search path for DLLs.
7762       hardcode_libdir_flag_spec='-L$libdir'
7763       allow_undefined_flag=unsupported
7764       always_export_symbols=no
7765       enable_shared_with_static_runtimes=yes
7766       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7767
7768       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7770         # If the export-symbols file already is a .def file (1st line
7771         # is EXPORTS), use it as is; otherwise, prepend...
7772         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7773           cp $export_symbols $output_objdir/$soname.def;
7774         else
7775           echo EXPORTS > $output_objdir/$soname.def;
7776           cat $export_symbols >> $output_objdir/$soname.def;
7777         fi~
7778         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7779       else
7780         ld_shlibs=no
7781       fi
7782       ;;
7783
7784     interix3*)
7785       hardcode_direct=no
7786       hardcode_shlibpath_var=no
7787       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7788       export_dynamic_flag_spec='${wl}-E'
7789       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7790       # Instead, shared libraries are loaded at an image base (0x10000000 by
7791       # default) and relocated if they conflict, which is a slow very memory
7792       # consuming and fragmenting process.  To avoid this, we pick a random,
7793       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7794       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7795       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7796       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'
7797       ;;
7798
7799     linux* | k*bsd*-gnu)
7800       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7801         tmp_addflag=
7802         case $cc_basename,$host_cpu in
7803         pgcc*)                          # Portland Group C compiler
7804           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'
7805           tmp_addflag=' $pic_flag'
7806           ;;
7807         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7808           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'
7809           tmp_addflag=' $pic_flag -Mnomain' ;;
7810         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7811           tmp_addflag=' -i_dynamic' ;;
7812         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7813           tmp_addflag=' -i_dynamic -nofor_main' ;;
7814         ifc* | ifort*)                  # Intel Fortran compiler
7815           tmp_addflag=' -nofor_main' ;;
7816         esac
7817         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7818
7819         if test $supports_anon_versioning = yes; then
7820           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7821   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7822   $echo "local: *; };" >> $output_objdir/$libname.ver~
7823           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7824         fi
7825         link_all_deplibs=no
7826       else
7827         ld_shlibs=no
7828       fi
7829       ;;
7830
7831     netbsd* | netbsdelf*-gnu)
7832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7833         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7834         wlarc=
7835       else
7836         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7837         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7838       fi
7839       ;;
7840
7841     solaris*)
7842       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7843         ld_shlibs=no
7844         cat <<EOF 1>&2
7845
7846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7847 *** create shared libraries on Solaris systems.  Therefore, libtool
7848 *** is disabling shared libraries support.  We urge you to upgrade GNU
7849 *** binutils to release 2.9.1 or newer.  Another option is to modify
7850 *** your PATH or compiler configuration so that the native linker is
7851 *** used, and then restart.
7852
7853 EOF
7854       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7855         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7856         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7857       else
7858         ld_shlibs=no
7859       fi
7860       ;;
7861
7862     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7863       case `$LD -v 2>&1` in
7864         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7865         ld_shlibs=no
7866         cat <<_LT_EOF 1>&2
7867
7868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7869 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7870 *** is disabling shared libraries support.  We urge you to upgrade GNU
7871 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7872 *** your PATH or compiler configuration so that the native linker is
7873 *** used, and then restart.
7874
7875 _LT_EOF
7876         ;;
7877         *)
7878           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7879             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7880             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7881             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7882           else
7883             ld_shlibs=no
7884           fi
7885         ;;
7886       esac
7887       ;;
7888
7889     sunos4*)
7890       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7891       wlarc=
7892       hardcode_direct=yes
7893       hardcode_shlibpath_var=no
7894       ;;
7895
7896     *)
7897       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7898         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7900       else
7901         ld_shlibs=no
7902       fi
7903       ;;
7904     esac
7905
7906     if test "$ld_shlibs" = no; then
7907       runpath_var=
7908       hardcode_libdir_flag_spec=
7909       export_dynamic_flag_spec=
7910       whole_archive_flag_spec=
7911     fi
7912   else
7913     # PORTME fill in a description of your system's linker (not GNU ld)
7914     case $host_os in
7915     aix3*)
7916       allow_undefined_flag=unsupported
7917       always_export_symbols=yes
7918       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'
7919       # Note: this linker hardcodes the directories in LIBPATH if there
7920       # are no directories specified by -L.
7921       hardcode_minus_L=yes
7922       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7923         # Neither direct hardcoding nor static linking is supported with a
7924         # broken collect2.
7925         hardcode_direct=unsupported
7926       fi
7927       ;;
7928
7929     aix4* | aix5*)
7930       if test "$host_cpu" = ia64; then
7931         # On IA64, the linker does run time linking by default, so we don't
7932         # have to do anything special.
7933         aix_use_runtimelinking=no
7934         exp_sym_flag='-Bexport'
7935         no_entry_flag=""
7936       else
7937         # If we're using GNU nm, then we don't want the "-C" option.
7938         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7939         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7940           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'
7941         else
7942           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'
7943         fi
7944         aix_use_runtimelinking=no
7945
7946         # Test if we are trying to use run time linking or normal
7947         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7948         # need to do runtime linking.
7949         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7950           for ld_flag in $LDFLAGS; do
7951           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7952             aix_use_runtimelinking=yes
7953             break
7954           fi
7955           done
7956           ;;
7957         esac
7958
7959         exp_sym_flag='-bexport'
7960         no_entry_flag='-bnoentry'
7961       fi
7962
7963       # When large executables or shared objects are built, AIX ld can
7964       # have problems creating the table of contents.  If linking a library
7965       # or program results in "error TOC overflow" add -mminimal-toc to
7966       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7967       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7968
7969       archive_cmds=''
7970       hardcode_direct=yes
7971       hardcode_libdir_separator=':'
7972       link_all_deplibs=yes
7973
7974       if test "$GCC" = yes; then
7975         case $host_os in aix4.[012]|aix4.[012].*)
7976         # We only want to do this on AIX 4.2 and lower, the check
7977         # below for broken collect2 doesn't work under 4.3+
7978           collect2name=`${CC} -print-prog-name=collect2`
7979           if test -f "$collect2name" && \
7980            strings "$collect2name" | grep resolve_lib_name >/dev/null
7981           then
7982           # We have reworked collect2
7983           hardcode_direct=yes
7984           else
7985           # We have old collect2
7986           hardcode_direct=unsupported
7987           # It fails to find uninstalled libraries when the uninstalled
7988           # path is not listed in the libpath.  Setting hardcode_minus_L
7989           # to unsupported forces relinking
7990           hardcode_minus_L=yes
7991           hardcode_libdir_flag_spec='-L$libdir'
7992           hardcode_libdir_separator=
7993           fi
7994           ;;
7995         esac
7996         shared_flag='-shared'
7997         if test "$aix_use_runtimelinking" = yes; then
7998           shared_flag="$shared_flag "'${wl}-G'
7999         fi
8000       else
8001         # not using gcc
8002         if test "$host_cpu" = ia64; then
8003         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8004         # chokes on -Wl,-G. The following line is correct:
8005           shared_flag='-G'
8006         else
8007           if test "$aix_use_runtimelinking" = yes; then
8008             shared_flag='${wl}-G'
8009           else
8010             shared_flag='${wl}-bM:SRE'
8011           fi
8012         fi
8013       fi
8014
8015       # It seems that -bexpall does not export symbols beginning with
8016       # underscore (_), so it is better to generate a list of symbols to export.
8017       always_export_symbols=yes
8018       if test "$aix_use_runtimelinking" = yes; then
8019         # Warning - without using the other runtime loading flags (-brtl),
8020         # -berok will link without error, but may produce a broken library.
8021         allow_undefined_flag='-berok'
8022        # Determine the default libpath from the value encoded in an empty executable.
8023        cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029
8030 int
8031 main ()
8032 {
8033
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045   (eval "$ac_link") 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } && {
8052          test -z "$ac_c_werror_flag" ||
8053          test ! -s conftest.err
8054        } && test -s conftest$ac_exeext &&
8055        $as_test_x conftest$ac_exeext; then
8056
8057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8058 }'`
8059 # Check for a 64-bit object if we didn't find anything.
8060 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; }
8061 }'`; fi
8062 else
8063   echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066
8067 fi
8068
8069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8070       conftest$ac_exeext conftest.$ac_ext
8071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8072
8073        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8074         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"
8075        else
8076         if test "$host_cpu" = ia64; then
8077           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8078           allow_undefined_flag="-z nodefs"
8079           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"
8080         else
8081          # Determine the default libpath from the value encoded in an empty executable.
8082          cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088
8089 int
8090 main ()
8091 {
8092
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8099 case "(($ac_try" in
8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101   *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104   (eval "$ac_link") 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } && {
8111          test -z "$ac_c_werror_flag" ||
8112          test ! -s conftest.err
8113        } && test -s conftest$ac_exeext &&
8114        $as_test_x conftest$ac_exeext; then
8115
8116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8117 }'`
8118 # Check for a 64-bit object if we didn't find anything.
8119 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; }
8120 }'`; fi
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125
8126 fi
8127
8128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8129       conftest$ac_exeext conftest.$ac_ext
8130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8131
8132          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8133           # Warning - without using the other run time loading flags,
8134           # -berok will link without error, but may produce a broken library.
8135           no_undefined_flag=' ${wl}-bernotok'
8136           allow_undefined_flag=' ${wl}-berok'
8137           # Exported symbols can be pulled into shared objects from archives
8138           whole_archive_flag_spec='$convenience'
8139           archive_cmds_need_lc=yes
8140           # This is similar to how AIX traditionally builds its shared libraries.
8141           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'
8142         fi
8143       fi
8144       ;;
8145
8146     amigaos*)
8147       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)'
8148       hardcode_libdir_flag_spec='-L$libdir'
8149       hardcode_minus_L=yes
8150       # see comment about different semantics on the GNU ld section
8151       ld_shlibs=no
8152       ;;
8153
8154     bsdi[45]*)
8155       export_dynamic_flag_spec=-rdynamic
8156       ;;
8157
8158     cygwin* | mingw* | pw32*)
8159       # When not using gcc, we currently assume that we are using
8160       # Microsoft Visual C++.
8161       # hardcode_libdir_flag_spec is actually meaningless, as there is
8162       # no search path for DLLs.
8163       hardcode_libdir_flag_spec=' '
8164       allow_undefined_flag=unsupported
8165       # Tell ltmain to make .lib files, not .a files.
8166       libext=lib
8167       # Tell ltmain to make .dll files, not .so files.
8168       shrext_cmds=".dll"
8169       # FIXME: Setting linknames here is a bad hack.
8170       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8171       # The linker will automatically build a .lib file if we build a DLL.
8172       old_archive_From_new_cmds='true'
8173       # FIXME: Should let the user specify the lib program.
8174       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8175       fix_srcfile_path='`cygpath -w "$srcfile"`'
8176       enable_shared_with_static_runtimes=yes
8177       ;;
8178
8179     darwin* | rhapsody*)
8180       case $host_os in
8181         rhapsody* | darwin1.[012])
8182          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8183          ;;
8184        *) # Darwin 1.3 on
8185          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8186            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8187          else
8188            case ${MACOSX_DEPLOYMENT_TARGET} in
8189              10.[012])
8190                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8191                ;;
8192              10.*)
8193                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8194                ;;
8195            esac
8196          fi
8197          ;;
8198       esac
8199       archive_cmds_need_lc=no
8200       hardcode_direct=no
8201       hardcode_automatic=yes
8202       hardcode_shlibpath_var=unsupported
8203       whole_archive_flag_spec=''
8204       link_all_deplibs=yes
8205     if test "$GCC" = yes ; then
8206         output_verbose_link_cmd='echo'
8207         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8208       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8209       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8210       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}'
8211       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}'
8212     else
8213       case $cc_basename in
8214         xlc*)
8215          output_verbose_link_cmd='echo'
8216          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8217          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8218           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8219          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}'
8220           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}'
8221           ;;
8222        *)
8223          ld_shlibs=no
8224           ;;
8225       esac
8226     fi
8227       ;;
8228
8229     dgux*)
8230       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8231       hardcode_libdir_flag_spec='-L$libdir'
8232       hardcode_shlibpath_var=no
8233       ;;
8234
8235     freebsd1*)
8236       ld_shlibs=no
8237       ;;
8238
8239     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8240     # support.  Future versions do this automatically, but an explicit c++rt0.o
8241     # does not break anything, and helps significantly (at the cost of a little
8242     # extra space).
8243     freebsd2.2*)
8244       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8245       hardcode_libdir_flag_spec='-R$libdir'
8246       hardcode_direct=yes
8247       hardcode_shlibpath_var=no
8248       ;;
8249
8250     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8251     freebsd2*)
8252       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8253       hardcode_direct=yes
8254       hardcode_minus_L=yes
8255       hardcode_shlibpath_var=no
8256       ;;
8257
8258     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8259     freebsd* | dragonfly*)
8260       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8261       hardcode_libdir_flag_spec='-R$libdir'
8262       hardcode_direct=yes
8263       hardcode_shlibpath_var=no
8264       ;;
8265
8266     hpux9*)
8267       if test "$GCC" = yes; then
8268         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'
8269       else
8270         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'
8271       fi
8272       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8273       hardcode_libdir_separator=:
8274       hardcode_direct=yes
8275
8276       # hardcode_minus_L: Not really in the search PATH,
8277       # but as the default location of the library.
8278       hardcode_minus_L=yes
8279       export_dynamic_flag_spec='${wl}-E'
8280       ;;
8281
8282     hpux10*)
8283       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8284         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8285       else
8286         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8287       fi
8288       if test "$with_gnu_ld" = no; then
8289         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8290         hardcode_libdir_separator=:
8291
8292         hardcode_direct=yes
8293         export_dynamic_flag_spec='${wl}-E'
8294
8295         # hardcode_minus_L: Not really in the search PATH,
8296         # but as the default location of the library.
8297         hardcode_minus_L=yes
8298       fi
8299       ;;
8300
8301     hpux11*)
8302       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8303         case $host_cpu in
8304         hppa*64*)
8305           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8306           ;;
8307         ia64*)
8308           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8309           ;;
8310         *)
8311           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8312           ;;
8313         esac
8314       else
8315         case $host_cpu in
8316         hppa*64*)
8317           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8318           ;;
8319         ia64*)
8320           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8321           ;;
8322         *)
8323           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8324           ;;
8325         esac
8326       fi
8327       if test "$with_gnu_ld" = no; then
8328         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8329         hardcode_libdir_separator=:
8330
8331         case $host_cpu in
8332         hppa*64*|ia64*)
8333           hardcode_libdir_flag_spec_ld='+b $libdir'
8334           hardcode_direct=no
8335           hardcode_shlibpath_var=no
8336           ;;
8337         *)
8338           hardcode_direct=yes
8339           export_dynamic_flag_spec='${wl}-E'
8340
8341           # hardcode_minus_L: Not really in the search PATH,
8342           # but as the default location of the library.
8343           hardcode_minus_L=yes
8344           ;;
8345         esac
8346       fi
8347       ;;
8348
8349     irix5* | irix6* | nonstopux*)
8350       if test "$GCC" = yes; then
8351         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'
8352       else
8353         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'
8354         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8355       fi
8356       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357       hardcode_libdir_separator=:
8358       link_all_deplibs=yes
8359       ;;
8360
8361     netbsd* | netbsdelf*-gnu)
8362       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8363         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8364       else
8365         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8366       fi
8367       hardcode_libdir_flag_spec='-R$libdir'
8368       hardcode_direct=yes
8369       hardcode_shlibpath_var=no
8370       ;;
8371
8372     newsos6)
8373       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8374       hardcode_direct=yes
8375       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8376       hardcode_libdir_separator=:
8377       hardcode_shlibpath_var=no
8378       ;;
8379
8380     openbsd*)
8381       hardcode_direct=yes
8382       hardcode_shlibpath_var=no
8383       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8384         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8385         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8386         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8387         export_dynamic_flag_spec='${wl}-E'
8388       else
8389        case $host_os in
8390          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8391            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8392            hardcode_libdir_flag_spec='-R$libdir'
8393            ;;
8394          *)
8395            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8396            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8397            ;;
8398        esac
8399       fi
8400       ;;
8401
8402     os2*)
8403       hardcode_libdir_flag_spec='-L$libdir'
8404       hardcode_minus_L=yes
8405       allow_undefined_flag=unsupported
8406       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'
8407       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8408       ;;
8409
8410     osf3*)
8411       if test "$GCC" = yes; then
8412         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8413         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'
8414       else
8415         allow_undefined_flag=' -expect_unresolved \*'
8416         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'
8417       fi
8418       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8419       hardcode_libdir_separator=:
8420       ;;
8421
8422     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8423       if test "$GCC" = yes; then
8424         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8425         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'
8426         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8427       else
8428         allow_undefined_flag=' -expect_unresolved \*'
8429         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'
8430         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8431         $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'
8432
8433         # Both c and cxx compiler support -rpath directly
8434         hardcode_libdir_flag_spec='-rpath $libdir'
8435       fi
8436       hardcode_libdir_separator=:
8437       ;;
8438
8439     solaris*)
8440       no_undefined_flag=' -z text'
8441       if test "$GCC" = yes; then
8442         wlarc='${wl}'
8443         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8444         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8445           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8446       else
8447         wlarc=''
8448         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8450         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8451       fi
8452       hardcode_libdir_flag_spec='-R$libdir'
8453       hardcode_shlibpath_var=no
8454       case $host_os in
8455       solaris2.[0-5] | solaris2.[0-5].*) ;;
8456       *)
8457         # The compiler driver will combine linker options so we
8458         # cannot just pass the convience library names through
8459         # without $wl, iff we do not link with $LD.
8460         # Luckily, gcc supports the same syntax we need for Sun Studio.
8461         # Supported since Solaris 2.6 (maybe 2.5.1?)
8462         case $wlarc in
8463         '')
8464           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8465         *)
8466           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' ;;
8467         esac ;;
8468       esac
8469       link_all_deplibs=yes
8470       ;;
8471
8472     sunos4*)
8473       if test "x$host_vendor" = xsequent; then
8474         # Use $CC to link under sequent, because it throws in some extra .o
8475         # files that make .init and .fini sections work.
8476         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8477       else
8478         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8479       fi
8480       hardcode_libdir_flag_spec='-L$libdir'
8481       hardcode_direct=yes
8482       hardcode_minus_L=yes
8483       hardcode_shlibpath_var=no
8484       ;;
8485
8486     sysv4)
8487       case $host_vendor in
8488         sni)
8489           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490           hardcode_direct=yes # is this really true???
8491         ;;
8492         siemens)
8493           ## LD is ld it makes a PLAMLIB
8494           ## CC just makes a GrossModule.
8495           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8496           reload_cmds='$CC -r -o $output$reload_objs'
8497           hardcode_direct=no
8498         ;;
8499         motorola)
8500           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8502         ;;
8503       esac
8504       runpath_var='LD_RUN_PATH'
8505       hardcode_shlibpath_var=no
8506       ;;
8507
8508     sysv4.3*)
8509       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8510       hardcode_shlibpath_var=no
8511       export_dynamic_flag_spec='-Bexport'
8512       ;;
8513
8514     sysv4*MP*)
8515       if test -d /usr/nec; then
8516         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517         hardcode_shlibpath_var=no
8518         runpath_var=LD_RUN_PATH
8519         hardcode_runpath_var=yes
8520         ld_shlibs=yes
8521       fi
8522       ;;
8523
8524     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8525       no_undefined_flag='${wl}-z,text'
8526       archive_cmds_need_lc=no
8527       hardcode_shlibpath_var=no
8528       runpath_var='LD_RUN_PATH'
8529
8530       if test "$GCC" = yes; then
8531         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533       else
8534         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8535         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536       fi
8537       ;;
8538
8539     sysv5* | sco3.2v5* | sco5v6*)
8540       # Note: We can NOT use -z defs as we might desire, because we do not
8541       # link with -lc, and that would cause any symbols used from libc to
8542       # always be unresolved, which means just about no library would
8543       # ever link correctly.  If we're not using GNU ld we use -z text
8544       # though, which does catch some bad symbols but isn't as heavy-handed
8545       # as -z defs.
8546       no_undefined_flag='${wl}-z,text'
8547       allow_undefined_flag='${wl}-z,nodefs'
8548       archive_cmds_need_lc=no
8549       hardcode_shlibpath_var=no
8550       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8551       hardcode_libdir_separator=':'
8552       link_all_deplibs=yes
8553       export_dynamic_flag_spec='${wl}-Bexport'
8554       runpath_var='LD_RUN_PATH'
8555
8556       if test "$GCC" = yes; then
8557         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559       else
8560         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8562       fi
8563       ;;
8564
8565     uts4*)
8566       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8567       hardcode_libdir_flag_spec='-L$libdir'
8568       hardcode_shlibpath_var=no
8569       ;;
8570
8571     *)
8572       ld_shlibs=no
8573       ;;
8574     esac
8575   fi
8576
8577 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8578 echo "${ECHO_T}$ld_shlibs" >&6; }
8579 test "$ld_shlibs" = no && can_build_shared=no
8580
8581 #
8582 # Do we need to explicitly link libc?
8583 #
8584 case "x$archive_cmds_need_lc" in
8585 x|xyes)
8586   # Assume -lc should be added
8587   archive_cmds_need_lc=yes
8588
8589   if test "$enable_shared" = yes && test "$GCC" = yes; then
8590     case $archive_cmds in
8591     *'~'*)
8592       # FIXME: we may have to deal with multi-command sequences.
8593       ;;
8594     '$CC '*)
8595       # Test whether the compiler implicitly links with -lc since on some
8596       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8597       # to ld, don't add -lc before -lgcc.
8598       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8599 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8600       $rm conftest*
8601       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8602
8603       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604   (eval $ac_compile) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } 2>conftest.err; then
8608         soname=conftest
8609         lib=conftest
8610         libobjs=conftest.$ac_objext
8611         deplibs=
8612         wl=$lt_prog_compiler_wl
8613         pic_flag=$lt_prog_compiler_pic
8614         compiler_flags=-v
8615         linker_flags=-v
8616         verstring=
8617         output_objdir=.
8618         libname=conftest
8619         lt_save_allow_undefined_flag=$allow_undefined_flag
8620         allow_undefined_flag=
8621         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8622   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }
8626         then
8627           archive_cmds_need_lc=no
8628         else
8629           archive_cmds_need_lc=yes
8630         fi
8631         allow_undefined_flag=$lt_save_allow_undefined_flag
8632       else
8633         cat conftest.err 1>&5
8634       fi
8635       $rm conftest*
8636       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8637 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8638       ;;
8639     esac
8640   fi
8641   ;;
8642 esac
8643
8644 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8645 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8646 library_names_spec=
8647 libname_spec='lib$name'
8648 soname_spec=
8649 shrext_cmds=".so"
8650 postinstall_cmds=
8651 postuninstall_cmds=
8652 finish_cmds=
8653 finish_eval=
8654 shlibpath_var=
8655 shlibpath_overrides_runpath=unknown
8656 version_type=none
8657 dynamic_linker="$host_os ld.so"
8658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8659 if test "$GCC" = yes; then
8660   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8662     # if the path contains ";" then we assume it to be the separator
8663     # otherwise default to the standard path separator (i.e. ":") - it is
8664     # assumed that no part of a normal pathname contains ";" but that should
8665     # okay in the real world where ";" in dirpaths is itself problematic.
8666     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8667   else
8668     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8669   fi
8670 else
8671   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8672 fi
8673 need_lib_prefix=unknown
8674 hardcode_into_libs=no
8675
8676 # when you set need_version to no, make sure it does not cause -set_version
8677 # flags to be left without arguments
8678 need_version=unknown
8679
8680 case $host_os in
8681 aix3*)
8682   version_type=linux
8683   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8684   shlibpath_var=LIBPATH
8685
8686   # AIX 3 has no versioning support, so we append a major version to the name.
8687   soname_spec='${libname}${release}${shared_ext}$major'
8688   ;;
8689
8690 aix4* | aix5*)
8691   version_type=linux
8692   need_lib_prefix=no
8693   need_version=no
8694   hardcode_into_libs=yes
8695   if test "$host_cpu" = ia64; then
8696     # AIX 5 supports IA64
8697     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8698     shlibpath_var=LD_LIBRARY_PATH
8699   else
8700     # With GCC up to 2.95.x, collect2 would create an import file
8701     # for dependence libraries.  The import file would start with
8702     # the line `#! .'.  This would cause the generated library to
8703     # depend on `.', always an invalid library.  This was fixed in
8704     # development snapshots of GCC prior to 3.0.
8705     case $host_os in
8706       aix4 | aix4.[01] | aix4.[01].*)
8707       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8708            echo ' yes '
8709            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8710         :
8711       else
8712         can_build_shared=no
8713       fi
8714       ;;
8715     esac
8716     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8717     # soname into executable. Probably we can add versioning support to
8718     # collect2, so additional links can be useful in future.
8719     if test "$aix_use_runtimelinking" = yes; then
8720       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8721       # instead of lib<name>.a to let people know that these are not
8722       # typical AIX shared libraries.
8723       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724     else
8725       # We preserve .a as extension for shared libraries through AIX4.2
8726       # and later when we are not doing run time linking.
8727       library_names_spec='${libname}${release}.a $libname.a'
8728       soname_spec='${libname}${release}${shared_ext}$major'
8729     fi
8730     shlibpath_var=LIBPATH
8731   fi
8732   ;;
8733
8734 amigaos*)
8735   library_names_spec='$libname.ixlibrary $libname.a'
8736   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8737   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'
8738   ;;
8739
8740 beos*)
8741   library_names_spec='${libname}${shared_ext}'
8742   dynamic_linker="$host_os ld.so"
8743   shlibpath_var=LIBRARY_PATH
8744   ;;
8745
8746 bsdi[45]*)
8747   version_type=linux
8748   need_version=no
8749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750   soname_spec='${libname}${release}${shared_ext}$major'
8751   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8752   shlibpath_var=LD_LIBRARY_PATH
8753   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8754   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8755   # the default ld.so.conf also contains /usr/contrib/lib and
8756   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8757   # libtool to hard-code these into programs
8758   ;;
8759
8760 cygwin* | mingw* | pw32*)
8761   version_type=windows
8762   shrext_cmds=".dll"
8763   need_version=no
8764   need_lib_prefix=no
8765
8766   case $GCC,$host_os in
8767   yes,cygwin* | yes,mingw* | yes,pw32*)
8768     library_names_spec='$libname.dll.a'
8769     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8770     postinstall_cmds='base_file=`basename \${file}`~
8771       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8772       dldir=$destdir/`dirname \$dlpath`~
8773       test -d \$dldir || mkdir -p \$dldir~
8774       $install_prog $dir/$dlname \$dldir/$dlname~
8775       chmod a+x \$dldir/$dlname'
8776     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8777       dlpath=$dir/\$dldll~
8778        $rm \$dlpath'
8779     shlibpath_overrides_runpath=yes
8780
8781     case $host_os in
8782     cygwin*)
8783       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8784       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8785       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8786       ;;
8787     mingw*)
8788       # MinGW DLLs use traditional 'lib' prefix
8789       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8790       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8791       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8792         # It is most probably a Windows format PATH printed by
8793         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8794         # path with ; separators, and with drive letters. We can handle the
8795         # drive letters (cygwin fileutils understands them), so leave them,
8796         # especially as we might pass files found there to a mingw objdump,
8797         # which wouldn't understand a cygwinified path. Ahh.
8798         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8799       else
8800         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8801       fi
8802       ;;
8803     pw32*)
8804       # pw32 DLLs use 'pw' prefix rather than 'lib'
8805       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8806       ;;
8807     esac
8808     ;;
8809
8810   *)
8811     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8812     ;;
8813   esac
8814   dynamic_linker='Win32 ld.exe'
8815   # FIXME: first we should search . and the directory the executable is in
8816   shlibpath_var=PATH
8817   ;;
8818
8819 darwin* | rhapsody*)
8820   dynamic_linker="$host_os dyld"
8821   version_type=darwin
8822   need_lib_prefix=no
8823   need_version=no
8824   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8825   soname_spec='${libname}${release}${major}$shared_ext'
8826   shlibpath_overrides_runpath=yes
8827   shlibpath_var=DYLD_LIBRARY_PATH
8828   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8829   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8830   if test "$GCC" = yes; then
8831     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"`
8832   else
8833     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8834   fi
8835   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8836   ;;
8837
8838 dgux*)
8839   version_type=linux
8840   need_lib_prefix=no
8841   need_version=no
8842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8843   soname_spec='${libname}${release}${shared_ext}$major'
8844   shlibpath_var=LD_LIBRARY_PATH
8845   ;;
8846
8847 freebsd1*)
8848   dynamic_linker=no
8849   ;;
8850
8851 freebsd* | dragonfly*)
8852   # DragonFly does not have aout.  When/if they implement a new
8853   # versioning mechanism, adjust this.
8854   if test -x /usr/bin/objformat; then
8855     objformat=`/usr/bin/objformat`
8856   else
8857     case $host_os in
8858     freebsd[123]*) objformat=aout ;;
8859     *) objformat=elf ;;
8860     esac
8861   fi
8862   version_type=freebsd-$objformat
8863   case $version_type in
8864     freebsd-elf*)
8865       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8866       need_version=no
8867       need_lib_prefix=no
8868       ;;
8869     freebsd-*)
8870       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8871       need_version=yes
8872       ;;
8873   esac
8874   shlibpath_var=LD_LIBRARY_PATH
8875   case $host_os in
8876   freebsd2*)
8877     shlibpath_overrides_runpath=yes
8878     ;;
8879   freebsd3.[01]* | freebsdelf3.[01]*)
8880     shlibpath_overrides_runpath=yes
8881     hardcode_into_libs=yes
8882     ;;
8883   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8884   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8885     shlibpath_overrides_runpath=no
8886     hardcode_into_libs=yes
8887     ;;
8888   freebsd*) # from 4.6 on
8889     shlibpath_overrides_runpath=yes
8890     hardcode_into_libs=yes
8891     ;;
8892   esac
8893   ;;
8894
8895 gnu*)
8896   version_type=linux
8897   need_lib_prefix=no
8898   need_version=no
8899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8900   soname_spec='${libname}${release}${shared_ext}$major'
8901   shlibpath_var=LD_LIBRARY_PATH
8902   hardcode_into_libs=yes
8903   ;;
8904
8905 hpux9* | hpux10* | hpux11*)
8906   # Give a soname corresponding to the major version so that dld.sl refuses to
8907   # link against other versions.
8908   version_type=sunos
8909   need_lib_prefix=no
8910   need_version=no
8911   case $host_cpu in
8912   ia64*)
8913     shrext_cmds='.so'
8914     hardcode_into_libs=yes
8915     dynamic_linker="$host_os dld.so"
8916     shlibpath_var=LD_LIBRARY_PATH
8917     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919     soname_spec='${libname}${release}${shared_ext}$major'
8920     if test "X$HPUX_IA64_MODE" = X32; then
8921       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8922     else
8923       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8924     fi
8925     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8926     ;;
8927    hppa*64*)
8928      shrext_cmds='.sl'
8929      hardcode_into_libs=yes
8930      dynamic_linker="$host_os dld.sl"
8931      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8932      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8933      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934      soname_spec='${libname}${release}${shared_ext}$major'
8935      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8936      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8937      ;;
8938    *)
8939     shrext_cmds='.sl'
8940     dynamic_linker="$host_os dld.sl"
8941     shlibpath_var=SHLIB_PATH
8942     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944     soname_spec='${libname}${release}${shared_ext}$major'
8945     ;;
8946   esac
8947   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8948   postinstall_cmds='chmod 555 $lib'
8949   ;;
8950
8951 interix3*)
8952   version_type=linux
8953   need_lib_prefix=no
8954   need_version=no
8955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8956   soname_spec='${libname}${release}${shared_ext}$major'
8957   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8958   shlibpath_var=LD_LIBRARY_PATH
8959   shlibpath_overrides_runpath=no
8960   hardcode_into_libs=yes
8961   ;;
8962
8963 irix5* | irix6* | nonstopux*)
8964   case $host_os in
8965     nonstopux*) version_type=nonstopux ;;
8966     *)
8967         if test "$lt_cv_prog_gnu_ld" = yes; then
8968                 version_type=linux
8969         else
8970                 version_type=irix
8971         fi ;;
8972   esac
8973   need_lib_prefix=no
8974   need_version=no
8975   soname_spec='${libname}${release}${shared_ext}$major'
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8977   case $host_os in
8978   irix5* | nonstopux*)
8979     libsuff= shlibsuff=
8980     ;;
8981   *)
8982     case $LD in # libtool.m4 will add one of these switches to LD
8983     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8984       libsuff= shlibsuff= libmagic=32-bit;;
8985     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8986       libsuff=32 shlibsuff=N32 libmagic=N32;;
8987     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8988       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8989     *) libsuff= shlibsuff= libmagic=never-match;;
8990     esac
8991     ;;
8992   esac
8993   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8994   shlibpath_overrides_runpath=no
8995   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8996   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8997   hardcode_into_libs=yes
8998   ;;
8999
9000 # No shared lib support for Linux oldld, aout, or coff.
9001 linux*oldld* | linux*aout* | linux*coff*)
9002   dynamic_linker=no
9003   ;;
9004
9005 # This must be Linux ELF.
9006 linux* | k*bsd*-gnu)
9007   version_type=linux
9008   need_lib_prefix=no
9009   need_version=no
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011   soname_spec='${libname}${release}${shared_ext}$major'
9012   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9013   shlibpath_var=LD_LIBRARY_PATH
9014   shlibpath_overrides_runpath=no
9015   # This implies no fast_install, which is unacceptable.
9016   # Some rework will be needed to allow for fast_install
9017   # before this can be enabled.
9018   hardcode_into_libs=yes
9019
9020   # Append ld.so.conf contents to the search path
9021   if test -f /etc/ld.so.conf; then
9022     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' ' '`
9023     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9024   fi
9025
9026   # We used to test for /lib/ld.so.1 and disable shared libraries on
9027   # powerpc, because MkLinux only supported shared libraries with the
9028   # GNU dynamic linker.  Since this was broken with cross compilers,
9029   # most powerpc-linux boxes support dynamic linking these days and
9030   # people can always --disable-shared, the test was removed, and we
9031   # assume the GNU/Linux dynamic linker is in use.
9032   dynamic_linker='GNU/Linux ld.so'
9033   ;;
9034
9035 netbsdelf*-gnu)
9036   version_type=linux
9037   need_lib_prefix=no
9038   need_version=no
9039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040   soname_spec='${libname}${release}${shared_ext}$major'
9041   shlibpath_var=LD_LIBRARY_PATH
9042   shlibpath_overrides_runpath=no
9043   hardcode_into_libs=yes
9044   dynamic_linker='NetBSD ld.elf_so'
9045   ;;
9046
9047 netbsd*)
9048   version_type=sunos
9049   need_lib_prefix=no
9050   need_version=no
9051   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054     dynamic_linker='NetBSD (a.out) ld.so'
9055   else
9056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9057     soname_spec='${libname}${release}${shared_ext}$major'
9058     dynamic_linker='NetBSD ld.elf_so'
9059   fi
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=yes
9062   hardcode_into_libs=yes
9063   ;;
9064
9065 newsos6)
9066   version_type=linux
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   shlibpath_overrides_runpath=yes
9070   ;;
9071
9072 nto-qnx*)
9073   version_type=linux
9074   need_lib_prefix=no
9075   need_version=no
9076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   shlibpath_var=LD_LIBRARY_PATH
9079   shlibpath_overrides_runpath=yes
9080   ;;
9081
9082 openbsd*)
9083   version_type=sunos
9084   sys_lib_dlsearch_path_spec="/usr/lib"
9085   need_lib_prefix=no
9086   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9087   case $host_os in
9088     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9089     *)                         need_version=no  ;;
9090   esac
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9092   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9093   shlibpath_var=LD_LIBRARY_PATH
9094   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9095     case $host_os in
9096       openbsd2.[89] | openbsd2.[89].*)
9097         shlibpath_overrides_runpath=no
9098         ;;
9099       *)
9100         shlibpath_overrides_runpath=yes
9101         ;;
9102       esac
9103   else
9104     shlibpath_overrides_runpath=yes
9105   fi
9106   ;;
9107
9108 os2*)
9109   libname_spec='$name'
9110   shrext_cmds=".dll"
9111   need_lib_prefix=no
9112   library_names_spec='$libname${shared_ext} $libname.a'
9113   dynamic_linker='OS/2 ld.exe'
9114   shlibpath_var=LIBPATH
9115   ;;
9116
9117 osf3* | osf4* | osf5*)
9118   version_type=osf
9119   need_lib_prefix=no
9120   need_version=no
9121   soname_spec='${libname}${release}${shared_ext}$major'
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9125   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9126   ;;
9127
9128 solaris*)
9129   version_type=linux
9130   need_lib_prefix=no
9131   need_version=no
9132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133   soname_spec='${libname}${release}${shared_ext}$major'
9134   shlibpath_var=LD_LIBRARY_PATH
9135   shlibpath_overrides_runpath=yes
9136   hardcode_into_libs=yes
9137   # ldd complains unless libraries are executable
9138   postinstall_cmds='chmod +x $lib'
9139   ;;
9140
9141 sunos4*)
9142   version_type=sunos
9143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9144   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9145   shlibpath_var=LD_LIBRARY_PATH
9146   shlibpath_overrides_runpath=yes
9147   if test "$with_gnu_ld" = yes; then
9148     need_lib_prefix=no
9149   fi
9150   need_version=yes
9151   ;;
9152
9153 sysv4 | sysv4.3*)
9154   version_type=linux
9155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156   soname_spec='${libname}${release}${shared_ext}$major'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   case $host_vendor in
9159     sni)
9160       shlibpath_overrides_runpath=no
9161       need_lib_prefix=no
9162       export_dynamic_flag_spec='${wl}-Blargedynsym'
9163       runpath_var=LD_RUN_PATH
9164       ;;
9165     siemens)
9166       need_lib_prefix=no
9167       ;;
9168     motorola)
9169       need_lib_prefix=no
9170       need_version=no
9171       shlibpath_overrides_runpath=no
9172       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9173       ;;
9174   esac
9175   ;;
9176
9177 sysv4*MP*)
9178   if test -d /usr/nec ;then
9179     version_type=linux
9180     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9181     soname_spec='$libname${shared_ext}.$major'
9182     shlibpath_var=LD_LIBRARY_PATH
9183   fi
9184   ;;
9185
9186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9187   version_type=freebsd-elf
9188   need_lib_prefix=no
9189   need_version=no
9190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9191   soname_spec='${libname}${release}${shared_ext}$major'
9192   shlibpath_var=LD_LIBRARY_PATH
9193   hardcode_into_libs=yes
9194   if test "$with_gnu_ld" = yes; then
9195     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9196     shlibpath_overrides_runpath=no
9197   else
9198     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9199     shlibpath_overrides_runpath=yes
9200     case $host_os in
9201       sco3.2v5*)
9202         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9203         ;;
9204     esac
9205   fi
9206   sys_lib_dlsearch_path_spec='/usr/lib'
9207   ;;
9208
9209 uts4*)
9210   version_type=linux
9211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212   soname_spec='${libname}${release}${shared_ext}$major'
9213   shlibpath_var=LD_LIBRARY_PATH
9214   ;;
9215
9216 *)
9217   dynamic_linker=no
9218   ;;
9219 esac
9220 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9221 echo "${ECHO_T}$dynamic_linker" >&6; }
9222 test "$dynamic_linker" = no && can_build_shared=no
9223
9224 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9225 if test "$GCC" = yes; then
9226   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9227 fi
9228
9229 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9230 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9231 hardcode_action=
9232 if test -n "$hardcode_libdir_flag_spec" || \
9233    test -n "$runpath_var" || \
9234    test "X$hardcode_automatic" = "Xyes" ; then
9235
9236   # We can hardcode non-existant directories.
9237   if test "$hardcode_direct" != no &&
9238      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9239      # have to relink, otherwise we might link with an installed library
9240      # when we should be linking with a yet-to-be-installed one
9241      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9242      test "$hardcode_minus_L" != no; then
9243     # Linking always hardcodes the temporary library directory.
9244     hardcode_action=relink
9245   else
9246     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9247     hardcode_action=immediate
9248   fi
9249 else
9250   # We cannot hardcode anything, or else we can only hardcode existing
9251   # directories.
9252   hardcode_action=unsupported
9253 fi
9254 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9255 echo "${ECHO_T}$hardcode_action" >&6; }
9256
9257 if test "$hardcode_action" = relink; then
9258   # Fast installation is not supported
9259   enable_fast_install=no
9260 elif test "$shlibpath_overrides_runpath" = yes ||
9261      test "$enable_shared" = no; then
9262   # Fast installation is not necessary
9263   enable_fast_install=needless
9264 fi
9265
9266 striplib=
9267 old_striplib=
9268 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9269 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9270 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9271   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9272   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9273   { echo "$as_me:$LINENO: result: yes" >&5
9274 echo "${ECHO_T}yes" >&6; }
9275 else
9276 # FIXME - insert some real tests, host_os isn't really good enough
9277   case $host_os in
9278    darwin*)
9279        if test -n "$STRIP" ; then
9280          striplib="$STRIP -x"
9281          { echo "$as_me:$LINENO: result: yes" >&5
9282 echo "${ECHO_T}yes" >&6; }
9283        else
9284   { echo "$as_me:$LINENO: result: no" >&5
9285 echo "${ECHO_T}no" >&6; }
9286 fi
9287        ;;
9288    *)
9289   { echo "$as_me:$LINENO: result: no" >&5
9290 echo "${ECHO_T}no" >&6; }
9291     ;;
9292   esac
9293 fi
9294
9295 if test "x$enable_dlopen" != xyes; then
9296   enable_dlopen=unknown
9297   enable_dlopen_self=unknown
9298   enable_dlopen_self_static=unknown
9299 else
9300   lt_cv_dlopen=no
9301   lt_cv_dlopen_libs=
9302
9303   case $host_os in
9304   beos*)
9305     lt_cv_dlopen="load_add_on"
9306     lt_cv_dlopen_libs=
9307     lt_cv_dlopen_self=yes
9308     ;;
9309
9310   mingw* | pw32*)
9311     lt_cv_dlopen="LoadLibrary"
9312     lt_cv_dlopen_libs=
9313    ;;
9314
9315   cygwin*)
9316     lt_cv_dlopen="dlopen"
9317     lt_cv_dlopen_libs=
9318    ;;
9319
9320   darwin*)
9321   # if libdl is installed we need to link against it
9322     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9323 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9324 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   ac_check_lib_save_LIBS=$LIBS
9328 LIBS="-ldl  $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335
9336 /* Override any GCC internal prototype to avoid an error.
9337    Use char because int might match the return type of a GCC
9338    builtin and then its argument prototype would still apply.  */
9339 #ifdef __cplusplus
9340 extern "C"
9341 #endif
9342 char dlopen ();
9343 int
9344 main ()
9345 {
9346 return dlopen ();
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (ac_try="$ac_link"
9353 case "(($ac_try" in
9354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355   *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358   (eval "$ac_link") 2>conftest.er1
9359   ac_status=$?
9360   grep -v '^ *+' conftest.er1 >conftest.err
9361   rm -f conftest.er1
9362   cat conftest.err >&5
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); } && {
9365          test -z "$ac_c_werror_flag" ||
9366          test ! -s conftest.err
9367        } && test -s conftest$ac_exeext &&
9368        $as_test_x conftest$ac_exeext; then
9369   ac_cv_lib_dl_dlopen=yes
9370 else
9371   echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374         ac_cv_lib_dl_dlopen=no
9375 fi
9376
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378       conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9380 fi
9381 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9382 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9383 if test $ac_cv_lib_dl_dlopen = yes; then
9384   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9385 else
9386
9387     lt_cv_dlopen="dyld"
9388     lt_cv_dlopen_libs=
9389     lt_cv_dlopen_self=yes
9390
9391 fi
9392
9393    ;;
9394
9395   *)
9396     { echo "$as_me:$LINENO: checking for shl_load" >&5
9397 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9398 if test "${ac_cv_func_shl_load+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9409 #define shl_load innocuous_shl_load
9410
9411 /* System header to define __stub macros and hopefully few prototypes,
9412     which can conflict with char shl_load (); below.
9413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414     <limits.h> exists even on freestanding compilers.  */
9415
9416 #ifdef __STDC__
9417 # include <limits.h>
9418 #else
9419 # include <assert.h>
9420 #endif
9421
9422 #undef shl_load
9423
9424 /* Override any GCC internal prototype to avoid an error.
9425    Use char because int might match the return type of a GCC
9426    builtin and then its argument prototype would still apply.  */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 char shl_load ();
9431 /* The GNU C library defines this for functions which it implements
9432     to always fail with ENOSYS.  Some functions are actually named
9433     something starting with __ and the normal name is an alias.  */
9434 #if defined __stub_shl_load || defined __stub___shl_load
9435 choke me
9436 #endif
9437
9438 int
9439 main ()
9440 {
9441 return shl_load ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9448 case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_link") 2>conftest.er1
9454   ac_status=$?
9455   grep -v '^ *+' conftest.er1 >conftest.err
9456   rm -f conftest.er1
9457   cat conftest.err >&5
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } && {
9460          test -z "$ac_c_werror_flag" ||
9461          test ! -s conftest.err
9462        } && test -s conftest$ac_exeext &&
9463        $as_test_x conftest$ac_exeext; then
9464   ac_cv_func_shl_load=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469         ac_cv_func_shl_load=no
9470 fi
9471
9472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9473       conftest$ac_exeext conftest.$ac_ext
9474 fi
9475 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9476 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9477 if test $ac_cv_func_shl_load = yes; then
9478   lt_cv_dlopen="shl_load"
9479 else
9480   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9481 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9482 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   ac_check_lib_save_LIBS=$LIBS
9486 LIBS="-ldld  $LIBS"
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493
9494 /* Override any GCC internal prototype to avoid an error.
9495    Use char because int might match the return type of a GCC
9496    builtin and then its argument prototype would still apply.  */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 char shl_load ();
9501 int
9502 main ()
9503 {
9504 return shl_load ();
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (ac_try="$ac_link"
9511 case "(($ac_try" in
9512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513   *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516   (eval "$ac_link") 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } && {
9523          test -z "$ac_c_werror_flag" ||
9524          test ! -s conftest.err
9525        } && test -s conftest$ac_exeext &&
9526        $as_test_x conftest$ac_exeext; then
9527   ac_cv_lib_dld_shl_load=yes
9528 else
9529   echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532         ac_cv_lib_dld_shl_load=no
9533 fi
9534
9535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9536       conftest$ac_exeext conftest.$ac_ext
9537 LIBS=$ac_check_lib_save_LIBS
9538 fi
9539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9540 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9541 if test $ac_cv_lib_dld_shl_load = yes; then
9542   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9543 else
9544   { echo "$as_me:$LINENO: checking for dlopen" >&5
9545 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9546 if test "${ac_cv_func_dlopen+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9557 #define dlopen innocuous_dlopen
9558
9559 /* System header to define __stub macros and hopefully few prototypes,
9560     which can conflict with char dlopen (); below.
9561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562     <limits.h> exists even on freestanding compilers.  */
9563
9564 #ifdef __STDC__
9565 # include <limits.h>
9566 #else
9567 # include <assert.h>
9568 #endif
9569
9570 #undef dlopen
9571
9572 /* Override any GCC internal prototype to avoid an error.
9573    Use char because int might match the return type of a GCC
9574    builtin and then its argument prototype would still apply.  */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 char dlopen ();
9579 /* The GNU C library defines this for functions which it implements
9580     to always fail with ENOSYS.  Some functions are actually named
9581     something starting with __ and the normal name is an alias.  */
9582 #if defined __stub_dlopen || defined __stub___dlopen
9583 choke me
9584 #endif
9585
9586 int
9587 main ()
9588 {
9589 return dlopen ();
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9596 case "(($ac_try" in
9597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598   *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601   (eval "$ac_link") 2>conftest.er1
9602   ac_status=$?
9603   grep -v '^ *+' conftest.er1 >conftest.err
9604   rm -f conftest.er1
9605   cat conftest.err >&5
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } && {
9608          test -z "$ac_c_werror_flag" ||
9609          test ! -s conftest.err
9610        } && test -s conftest$ac_exeext &&
9611        $as_test_x conftest$ac_exeext; then
9612   ac_cv_func_dlopen=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617         ac_cv_func_dlopen=no
9618 fi
9619
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621       conftest$ac_exeext conftest.$ac_ext
9622 fi
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9624 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9625 if test $ac_cv_func_dlopen = yes; then
9626   lt_cv_dlopen="dlopen"
9627 else
9628   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9629 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9630 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   ac_check_lib_save_LIBS=$LIBS
9634 LIBS="-ldl  $LIBS"
9635 cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h.  */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h.  */
9641
9642 /* Override any GCC internal prototype to avoid an error.
9643    Use char because int might match the return type of a GCC
9644    builtin and then its argument prototype would still apply.  */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 char dlopen ();
9649 int
9650 main ()
9651 {
9652 return dlopen ();
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9659 case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_link") 2>conftest.er1
9665   ac_status=$?
9666   grep -v '^ *+' conftest.er1 >conftest.err
9667   rm -f conftest.er1
9668   cat conftest.err >&5
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); } && {
9671          test -z "$ac_c_werror_flag" ||
9672          test ! -s conftest.err
9673        } && test -s conftest$ac_exeext &&
9674        $as_test_x conftest$ac_exeext; then
9675   ac_cv_lib_dl_dlopen=yes
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680         ac_cv_lib_dl_dlopen=no
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684       conftest$ac_exeext conftest.$ac_ext
9685 LIBS=$ac_check_lib_save_LIBS
9686 fi
9687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9688 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9689 if test $ac_cv_lib_dl_dlopen = yes; then
9690   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9691 else
9692   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9693 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9694 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9695   echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697   ac_check_lib_save_LIBS=$LIBS
9698 LIBS="-lsvld  $LIBS"
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705
9706 /* Override any GCC internal prototype to avoid an error.
9707    Use char because int might match the return type of a GCC
9708    builtin and then its argument prototype would still apply.  */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 char dlopen ();
9713 int
9714 main ()
9715 {
9716 return dlopen ();
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9723 case "(($ac_try" in
9724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725   *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728   (eval "$ac_link") 2>conftest.er1
9729   ac_status=$?
9730   grep -v '^ *+' conftest.er1 >conftest.err
9731   rm -f conftest.er1
9732   cat conftest.err >&5
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } && {
9735          test -z "$ac_c_werror_flag" ||
9736          test ! -s conftest.err
9737        } && test -s conftest$ac_exeext &&
9738        $as_test_x conftest$ac_exeext; then
9739   ac_cv_lib_svld_dlopen=yes
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744         ac_cv_lib_svld_dlopen=no
9745 fi
9746
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748       conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9750 fi
9751 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9752 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9753 if test $ac_cv_lib_svld_dlopen = yes; then
9754   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9755 else
9756   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9757 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9758 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   ac_check_lib_save_LIBS=$LIBS
9762 LIBS="-ldld  $LIBS"
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769
9770 /* Override any GCC internal prototype to avoid an error.
9771    Use char because int might match the return type of a GCC
9772    builtin and then its argument prototype would still apply.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 char dld_link ();
9777 int
9778 main ()
9779 {
9780 return dld_link ();
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9787 case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792   (eval "$ac_link") 2>conftest.er1
9793   ac_status=$?
9794   grep -v '^ *+' conftest.er1 >conftest.err
9795   rm -f conftest.er1
9796   cat conftest.err >&5
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } && {
9799          test -z "$ac_c_werror_flag" ||
9800          test ! -s conftest.err
9801        } && test -s conftest$ac_exeext &&
9802        $as_test_x conftest$ac_exeext; then
9803   ac_cv_lib_dld_dld_link=yes
9804 else
9805   echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808         ac_cv_lib_dld_dld_link=no
9809 fi
9810
9811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9812       conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9814 fi
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9817 if test $ac_cv_lib_dld_dld_link = yes; then
9818   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9819 fi
9820
9821
9822 fi
9823
9824
9825 fi
9826
9827
9828 fi
9829
9830
9831 fi
9832
9833
9834 fi
9835
9836     ;;
9837   esac
9838
9839   if test "x$lt_cv_dlopen" != xno; then
9840     enable_dlopen=yes
9841   else
9842     enable_dlopen=no
9843   fi
9844
9845   case $lt_cv_dlopen in
9846   dlopen)
9847     save_CPPFLAGS="$CPPFLAGS"
9848     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9849
9850     save_LDFLAGS="$LDFLAGS"
9851     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9852
9853     save_LIBS="$LIBS"
9854     LIBS="$lt_cv_dlopen_libs $LIBS"
9855
9856     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9857 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9858 if test "${lt_cv_dlopen_self+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861           if test "$cross_compiling" = yes; then :
9862   lt_cv_dlopen_self=cross
9863 else
9864   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9865   lt_status=$lt_dlunknown
9866   cat > conftest.$ac_ext <<EOF
9867 #line 9867 "configure"
9868 #include "confdefs.h"
9869
9870 #if HAVE_DLFCN_H
9871 #include <dlfcn.h>
9872 #endif
9873
9874 #include <stdio.h>
9875
9876 #ifdef RTLD_GLOBAL
9877 #  define LT_DLGLOBAL           RTLD_GLOBAL
9878 #else
9879 #  ifdef DL_GLOBAL
9880 #    define LT_DLGLOBAL         DL_GLOBAL
9881 #  else
9882 #    define LT_DLGLOBAL         0
9883 #  endif
9884 #endif
9885
9886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9887    find out it does not work in some platform. */
9888 #ifndef LT_DLLAZY_OR_NOW
9889 #  ifdef RTLD_LAZY
9890 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9891 #  else
9892 #    ifdef DL_LAZY
9893 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9894 #    else
9895 #      ifdef RTLD_NOW
9896 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9897 #      else
9898 #        ifdef DL_NOW
9899 #          define LT_DLLAZY_OR_NOW      DL_NOW
9900 #        else
9901 #          define LT_DLLAZY_OR_NOW      0
9902 #        endif
9903 #      endif
9904 #    endif
9905 #  endif
9906 #endif
9907
9908 #ifdef __cplusplus
9909 extern "C" void exit (int);
9910 #endif
9911
9912 void fnord() { int i=42;}
9913 int main ()
9914 {
9915   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9916   int status = $lt_dlunknown;
9917
9918   if (self)
9919     {
9920       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9921       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9922       /* dlclose (self); */
9923     }
9924   else
9925     puts (dlerror ());
9926
9927     exit (status);
9928 }
9929 EOF
9930   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931   (eval $ac_link) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9935     (./conftest; exit; ) >&5 2>/dev/null
9936     lt_status=$?
9937     case x$lt_status in
9938       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9939       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9940       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9941     esac
9942   else :
9943     # compilation failed
9944     lt_cv_dlopen_self=no
9945   fi
9946 fi
9947 rm -fr conftest*
9948
9949
9950 fi
9951 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9952 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9953
9954     if test "x$lt_cv_dlopen_self" = xyes; then
9955       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9956       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9957 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9958 if test "${lt_cv_dlopen_self_static+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961           if test "$cross_compiling" = yes; then :
9962   lt_cv_dlopen_self_static=cross
9963 else
9964   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9965   lt_status=$lt_dlunknown
9966   cat > conftest.$ac_ext <<EOF
9967 #line 9967 "configure"
9968 #include "confdefs.h"
9969
9970 #if HAVE_DLFCN_H
9971 #include <dlfcn.h>
9972 #endif
9973
9974 #include <stdio.h>
9975
9976 #ifdef RTLD_GLOBAL
9977 #  define LT_DLGLOBAL           RTLD_GLOBAL
9978 #else
9979 #  ifdef DL_GLOBAL
9980 #    define LT_DLGLOBAL         DL_GLOBAL
9981 #  else
9982 #    define LT_DLGLOBAL         0
9983 #  endif
9984 #endif
9985
9986 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9987    find out it does not work in some platform. */
9988 #ifndef LT_DLLAZY_OR_NOW
9989 #  ifdef RTLD_LAZY
9990 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9991 #  else
9992 #    ifdef DL_LAZY
9993 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9994 #    else
9995 #      ifdef RTLD_NOW
9996 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9997 #      else
9998 #        ifdef DL_NOW
9999 #          define LT_DLLAZY_OR_NOW      DL_NOW
10000 #        else
10001 #          define LT_DLLAZY_OR_NOW      0
10002 #        endif
10003 #      endif
10004 #    endif
10005 #  endif
10006 #endif
10007
10008 #ifdef __cplusplus
10009 extern "C" void exit (int);
10010 #endif
10011
10012 void fnord() { int i=42;}
10013 int main ()
10014 {
10015   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10016   int status = $lt_dlunknown;
10017
10018   if (self)
10019     {
10020       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10021       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10022       /* dlclose (self); */
10023     }
10024   else
10025     puts (dlerror ());
10026
10027     exit (status);
10028 }
10029 EOF
10030   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031   (eval $ac_link) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10035     (./conftest; exit; ) >&5 2>/dev/null
10036     lt_status=$?
10037     case x$lt_status in
10038       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10039       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10040       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10041     esac
10042   else :
10043     # compilation failed
10044     lt_cv_dlopen_self_static=no
10045   fi
10046 fi
10047 rm -fr conftest*
10048
10049
10050 fi
10051 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10052 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10053     fi
10054
10055     CPPFLAGS="$save_CPPFLAGS"
10056     LDFLAGS="$save_LDFLAGS"
10057     LIBS="$save_LIBS"
10058     ;;
10059   esac
10060
10061   case $lt_cv_dlopen_self in
10062   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10063   *) enable_dlopen_self=unknown ;;
10064   esac
10065
10066   case $lt_cv_dlopen_self_static in
10067   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10068   *) enable_dlopen_self_static=unknown ;;
10069   esac
10070 fi
10071
10072
10073 # Report which library types will actually be built
10074 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10075 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10076 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10077 echo "${ECHO_T}$can_build_shared" >&6; }
10078
10079 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10080 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10081 test "$can_build_shared" = "no" && enable_shared=no
10082
10083 # On AIX, shared libraries and static libraries use the same namespace, and
10084 # are all built from PIC.
10085 case $host_os in
10086 aix3*)
10087   test "$enable_shared" = yes && enable_static=no
10088   if test -n "$RANLIB"; then
10089     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10090     postinstall_cmds='$RANLIB $lib'
10091   fi
10092   ;;
10093
10094 aix4* | aix5*)
10095   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10096     test "$enable_shared" = yes && enable_static=no
10097   fi
10098     ;;
10099 esac
10100 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10101 echo "${ECHO_T}$enable_shared" >&6; }
10102
10103 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10104 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10105 # Make sure either enable_shared or enable_static is yes.
10106 test "$enable_shared" = yes || enable_static=yes
10107 { echo "$as_me:$LINENO: result: $enable_static" >&5
10108 echo "${ECHO_T}$enable_static" >&6; }
10109
10110 # The else clause should only fire when bootstrapping the
10111 # libtool distribution, otherwise you forgot to ship ltmain.sh
10112 # with your package, and you will get complaints that there are
10113 # no rules to generate ltmain.sh.
10114 if test -f "$ltmain"; then
10115   # See if we are running on zsh, and set the options which allow our commands through
10116   # without removal of \ escapes.
10117   if test -n "${ZSH_VERSION+set}" ; then
10118     setopt NO_GLOB_SUBST
10119   fi
10120   # Now quote all the things that may contain metacharacters while being
10121   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10122   # variables and quote the copies for generation of the libtool script.
10123   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10124     SED SHELL STRIP \
10125     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10126     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10127     deplibs_check_method reload_flag reload_cmds need_locks \
10128     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10129     lt_cv_sys_global_symbol_to_c_name_address \
10130     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10131     old_postinstall_cmds old_postuninstall_cmds \
10132     compiler \
10133     CC \
10134     LD \
10135     lt_prog_compiler_wl \
10136     lt_prog_compiler_pic \
10137     lt_prog_compiler_static \
10138     lt_prog_compiler_no_builtin_flag \
10139     export_dynamic_flag_spec \
10140     thread_safe_flag_spec \
10141     whole_archive_flag_spec \
10142     enable_shared_with_static_runtimes \
10143     old_archive_cmds \
10144     old_archive_from_new_cmds \
10145     predep_objects \
10146     postdep_objects \
10147     predeps \
10148     postdeps \
10149     compiler_lib_search_path \
10150     archive_cmds \
10151     archive_expsym_cmds \
10152     postinstall_cmds \
10153     postuninstall_cmds \
10154     old_archive_from_expsyms_cmds \
10155     allow_undefined_flag \
10156     no_undefined_flag \
10157     export_symbols_cmds \
10158     hardcode_libdir_flag_spec \
10159     hardcode_libdir_flag_spec_ld \
10160     hardcode_libdir_separator \
10161     hardcode_automatic \
10162     module_cmds \
10163     module_expsym_cmds \
10164     lt_cv_prog_compiler_c_o \
10165     exclude_expsyms \
10166     include_expsyms; do
10167
10168     case $var in
10169     old_archive_cmds | \
10170     old_archive_from_new_cmds | \
10171     archive_cmds | \
10172     archive_expsym_cmds | \
10173     module_cmds | \
10174     module_expsym_cmds | \
10175     old_archive_from_expsyms_cmds | \
10176     export_symbols_cmds | \
10177     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10178     postinstall_cmds | postuninstall_cmds | \
10179     old_postinstall_cmds | old_postuninstall_cmds | \
10180     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10181       # Double-quote double-evaled strings.
10182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10183       ;;
10184     *)
10185       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10186       ;;
10187     esac
10188   done
10189
10190   case $lt_echo in
10191   *'\$0 --fallback-echo"')
10192     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10193     ;;
10194   esac
10195
10196 cfgfile="${ofile}T"
10197   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10198   $rm -f "$cfgfile"
10199   { echo "$as_me:$LINENO: creating $ofile" >&5
10200 echo "$as_me: creating $ofile" >&6;}
10201
10202   cat <<__EOF__ >> "$cfgfile"
10203 #! $SHELL
10204
10205 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10206 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10207 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10208 #
10209 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10210 # Free Software Foundation, Inc.
10211 #
10212 # This file is part of GNU Libtool:
10213 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10214 #
10215 # This program is free software; you can redistribute it and/or modify
10216 # it under the terms of the GNU General Public License as published by
10217 # the Free Software Foundation; either version 2 of the License, or
10218 # (at your option) any later version.
10219 #
10220 # This program is distributed in the hope that it will be useful, but
10221 # WITHOUT ANY WARRANTY; without even the implied warranty of
10222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10223 # General Public License for more details.
10224 #
10225 # You should have received a copy of the GNU General Public License
10226 # along with this program; if not, write to the Free Software
10227 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10228 #
10229 # As a special exception to the GNU General Public License, if you
10230 # distribute this file as part of a program that contains a
10231 # configuration script generated by Autoconf, you may include it under
10232 # the same distribution terms that you use for the rest of that program.
10233
10234 # A sed program that does not truncate output.
10235 SED=$lt_SED
10236
10237 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10238 Xsed="$SED -e 1s/^X//"
10239
10240 # The HP-UX ksh and POSIX shell print the target directory to stdout
10241 # if CDPATH is set.
10242 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10243
10244 # The names of the tagged configurations supported by this script.
10245 available_tags=
10246
10247 # ### BEGIN LIBTOOL CONFIG
10248
10249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10250
10251 # Shell to use when invoking shell scripts.
10252 SHELL=$lt_SHELL
10253
10254 # Whether or not to build shared libraries.
10255 build_libtool_libs=$enable_shared
10256
10257 # Whether or not to build static libraries.
10258 build_old_libs=$enable_static
10259
10260 # Whether or not to add -lc for building shared libraries.
10261 build_libtool_need_lc=$archive_cmds_need_lc
10262
10263 # Whether or not to disallow shared libs when runtime libs are static
10264 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10265
10266 # Whether or not to optimize for fast installation.
10267 fast_install=$enable_fast_install
10268
10269 # The host system.
10270 host_alias=$host_alias
10271 host=$host
10272 host_os=$host_os
10273
10274 # The build system.
10275 build_alias=$build_alias
10276 build=$build
10277 build_os=$build_os
10278
10279 # An echo program that does not interpret backslashes.
10280 echo=$lt_echo
10281
10282 # The archiver.
10283 AR=$lt_AR
10284 AR_FLAGS=$lt_AR_FLAGS
10285
10286 # A C compiler.
10287 LTCC=$lt_LTCC
10288
10289 # LTCC compiler flags.
10290 LTCFLAGS=$lt_LTCFLAGS
10291
10292 # A language-specific compiler.
10293 CC=$lt_compiler
10294
10295 # Is the compiler the GNU C compiler?
10296 with_gcc=$GCC
10297
10298 # An ERE matcher.
10299 EGREP=$lt_EGREP
10300
10301 # The linker used to build libraries.
10302 LD=$lt_LD
10303
10304 # Whether we need hard or soft links.
10305 LN_S=$lt_LN_S
10306
10307 # A BSD-compatible nm program.
10308 NM=$lt_NM
10309
10310 # A symbol stripping program
10311 STRIP=$lt_STRIP
10312
10313 # Used to examine libraries when file_magic_cmd begins "file"
10314 MAGIC_CMD=$MAGIC_CMD
10315
10316 # Used on cygwin: DLL creation program.
10317 DLLTOOL="$DLLTOOL"
10318
10319 # Used on cygwin: object dumper.
10320 OBJDUMP="$OBJDUMP"
10321
10322 # Used on cygwin: assembler.
10323 AS="$AS"
10324
10325 # The name of the directory that contains temporary libtool files.
10326 objdir=$objdir
10327
10328 # How to create reloadable object files.
10329 reload_flag=$lt_reload_flag
10330 reload_cmds=$lt_reload_cmds
10331
10332 # How to pass a linker flag through the compiler.
10333 wl=$lt_lt_prog_compiler_wl
10334
10335 # Object file suffix (normally "o").
10336 objext="$ac_objext"
10337
10338 # Old archive suffix (normally "a").
10339 libext="$libext"
10340
10341 # Shared library suffix (normally ".so").
10342 shrext_cmds='$shrext_cmds'
10343
10344 # Executable file suffix (normally "").
10345 exeext="$exeext"
10346
10347 # Additional compiler flags for building library objects.
10348 pic_flag=$lt_lt_prog_compiler_pic
10349 pic_mode=$pic_mode
10350
10351 # What is the maximum length of a command?
10352 max_cmd_len=$lt_cv_sys_max_cmd_len
10353
10354 # Does compiler simultaneously support -c and -o options?
10355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10356
10357 # Must we lock files when doing compilation?
10358 need_locks=$lt_need_locks
10359
10360 # Do we need the lib prefix for modules?
10361 need_lib_prefix=$need_lib_prefix
10362
10363 # Do we need a version for libraries?
10364 need_version=$need_version
10365
10366 # Whether dlopen is supported.
10367 dlopen_support=$enable_dlopen
10368
10369 # Whether dlopen of programs is supported.
10370 dlopen_self=$enable_dlopen_self
10371
10372 # Whether dlopen of statically linked programs is supported.
10373 dlopen_self_static=$enable_dlopen_self_static
10374
10375 # Compiler flag to prevent dynamic linking.
10376 link_static_flag=$lt_lt_prog_compiler_static
10377
10378 # Compiler flag to turn off builtin functions.
10379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10380
10381 # Compiler flag to allow reflexive dlopens.
10382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10383
10384 # Compiler flag to generate shared objects directly from archives.
10385 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10386
10387 # Compiler flag to generate thread-safe objects.
10388 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10389
10390 # Library versioning type.
10391 version_type=$version_type
10392
10393 # Format of library name prefix.
10394 libname_spec=$lt_libname_spec
10395
10396 # List of archive names.  First name is the real one, the rest are links.
10397 # The last name is the one that the linker finds with -lNAME.
10398 library_names_spec=$lt_library_names_spec
10399
10400 # The coded name of the library, if different from the real name.
10401 soname_spec=$lt_soname_spec
10402
10403 # Commands used to build and install an old-style archive.
10404 RANLIB=$lt_RANLIB
10405 old_archive_cmds=$lt_old_archive_cmds
10406 old_postinstall_cmds=$lt_old_postinstall_cmds
10407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10408
10409 # Create an old-style archive from a shared archive.
10410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10411
10412 # Create a temporary old-style archive to link instead of a shared archive.
10413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10414
10415 # Commands used to build and install a shared archive.
10416 archive_cmds=$lt_archive_cmds
10417 archive_expsym_cmds=$lt_archive_expsym_cmds
10418 postinstall_cmds=$lt_postinstall_cmds
10419 postuninstall_cmds=$lt_postuninstall_cmds
10420
10421 # Commands used to build a loadable module (assumed same as above if empty)
10422 module_cmds=$lt_module_cmds
10423 module_expsym_cmds=$lt_module_expsym_cmds
10424
10425 # Commands to strip libraries.
10426 old_striplib=$lt_old_striplib
10427 striplib=$lt_striplib
10428
10429 # Dependencies to place before the objects being linked to create a
10430 # shared library.
10431 predep_objects=$lt_predep_objects
10432
10433 # Dependencies to place after the objects being linked to create a
10434 # shared library.
10435 postdep_objects=$lt_postdep_objects
10436
10437 # Dependencies to place before the objects being linked to create a
10438 # shared library.
10439 predeps=$lt_predeps
10440
10441 # Dependencies to place after the objects being linked to create a
10442 # shared library.
10443 postdeps=$lt_postdeps
10444
10445 # The library search path used internally by the compiler when linking
10446 # a shared library.
10447 compiler_lib_search_path=$lt_compiler_lib_search_path
10448
10449 # Method to check whether dependent libraries are shared objects.
10450 deplibs_check_method=$lt_deplibs_check_method
10451
10452 # Command to use when deplibs_check_method == file_magic.
10453 file_magic_cmd=$lt_file_magic_cmd
10454
10455 # Flag that allows shared libraries with undefined symbols to be built.
10456 allow_undefined_flag=$lt_allow_undefined_flag
10457
10458 # Flag that forces no undefined symbols.
10459 no_undefined_flag=$lt_no_undefined_flag
10460
10461 # Commands used to finish a libtool library installation in a directory.
10462 finish_cmds=$lt_finish_cmds
10463
10464 # Same as above, but a single script fragment to be evaled but not shown.
10465 finish_eval=$lt_finish_eval
10466
10467 # Take the output of nm and produce a listing of raw symbols and C names.
10468 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10469
10470 # Transform the output of nm in a proper C declaration
10471 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10472
10473 # Transform the output of nm in a C name address pair
10474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10475
10476 # This is the shared library runtime path variable.
10477 runpath_var=$runpath_var
10478
10479 # This is the shared library path variable.
10480 shlibpath_var=$shlibpath_var
10481
10482 # Is shlibpath searched before the hard-coded library search path?
10483 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10484
10485 # How to hardcode a shared library path into an executable.
10486 hardcode_action=$hardcode_action
10487
10488 # Whether we should hardcode library paths into libraries.
10489 hardcode_into_libs=$hardcode_into_libs
10490
10491 # Flag to hardcode \$libdir into a binary during linking.
10492 # This must work even if \$libdir does not exist.
10493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10494
10495 # If ld is used when linking, flag to hardcode \$libdir into
10496 # a binary during linking. This must work even if \$libdir does
10497 # not exist.
10498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10499
10500 # Whether we need a single -rpath flag with a separated argument.
10501 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10502
10503 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10504 # resulting binary.
10505 hardcode_direct=$hardcode_direct
10506
10507 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10508 # resulting binary.
10509 hardcode_minus_L=$hardcode_minus_L
10510
10511 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10512 # the resulting binary.
10513 hardcode_shlibpath_var=$hardcode_shlibpath_var
10514
10515 # Set to yes if building a shared library automatically hardcodes DIR into the library
10516 # and all subsequent libraries and executables linked against it.
10517 hardcode_automatic=$hardcode_automatic
10518
10519 # Variables whose values should be saved in libtool wrapper scripts and
10520 # restored at relink time.
10521 variables_saved_for_relink="$variables_saved_for_relink"
10522
10523 # Whether libtool must link a program against all its dependency libraries.
10524 link_all_deplibs=$link_all_deplibs
10525
10526 # Compile-time system search path for libraries
10527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10528
10529 # Run-time system search path for libraries
10530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10531
10532 # Fix the shell variable \$srcfile for the compiler.
10533 fix_srcfile_path="$fix_srcfile_path"
10534
10535 # Set to yes if exported symbols are required.
10536 always_export_symbols=$always_export_symbols
10537
10538 # The commands to list exported symbols.
10539 export_symbols_cmds=$lt_export_symbols_cmds
10540
10541 # The commands to extract the exported symbol list from a shared archive.
10542 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10543
10544 # Symbols that should not be listed in the preloaded symbols.
10545 exclude_expsyms=$lt_exclude_expsyms
10546
10547 # Symbols that must always be exported.
10548 include_expsyms=$lt_include_expsyms
10549
10550 # ### END LIBTOOL CONFIG
10551
10552 __EOF__
10553
10554
10555   case $host_os in
10556   aix3*)
10557     cat <<\EOF >> "$cfgfile"
10558
10559 # AIX sometimes has problems with the GCC collect2 program.  For some
10560 # reason, if we set the COLLECT_NAMES environment variable, the problems
10561 # vanish in a puff of smoke.
10562 if test "X${COLLECT_NAMES+set}" != Xset; then
10563   COLLECT_NAMES=
10564   export COLLECT_NAMES
10565 fi
10566 EOF
10567     ;;
10568   esac
10569
10570   # We use sed instead of cat because bash on DJGPP gets confused if
10571   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10572   # text mode, it properly converts lines to CR/LF.  This bash problem
10573   # is reportedly fixed, but why not run on old versions too?
10574   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10575
10576   mv -f "$cfgfile" "$ofile" || \
10577     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10578   chmod +x "$ofile"
10579
10580 else
10581   # If there is no Makefile yet, we rely on a make rule to execute
10582   # `config.status --recheck' to rerun these tests and create the
10583   # libtool script then.
10584   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10585   if test -f "$ltmain_in"; then
10586     test -f Makefile && make "$ltmain"
10587   fi
10588 fi
10589
10590
10591 ac_ext=c
10592 ac_cpp='$CPP $CPPFLAGS'
10593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10596
10597 CC="$lt_save_CC"
10598
10599
10600 # Check whether --with-tags was given.
10601 if test "${with_tags+set}" = set; then
10602   withval=$with_tags; tagnames="$withval"
10603 fi
10604
10605
10606 if test -f "$ltmain" && test -n "$tagnames"; then
10607   if test ! -f "${ofile}"; then
10608     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10609 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10610   fi
10611
10612   if test -z "$LTCC"; then
10613     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10614     if test -z "$LTCC"; then
10615       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10616 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10617     else
10618       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10619 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10620     fi
10621   fi
10622   if test -z "$LTCFLAGS"; then
10623     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10624   fi
10625
10626   # Extract list of available tagged configurations in $ofile.
10627   # Note that this assumes the entire list is on one line.
10628   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10629
10630   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10631   for tagname in $tagnames; do
10632     IFS="$lt_save_ifs"
10633     # Check whether tagname contains only valid characters
10634     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10635     "") ;;
10636     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10637 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10638    { (exit 1); exit 1; }; }
10639         ;;
10640     esac
10641
10642     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10643     then
10644       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10645 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10646    { (exit 1); exit 1; }; }
10647     fi
10648
10649     # Update the list of available tags.
10650     if test -n "$tagname"; then
10651       echo appending configuration tag \"$tagname\" to $ofile
10652
10653       case $tagname in
10654       CXX)
10655         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10656             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10657             (test "X$CXX" != "Xg++"))) ; then
10658           ac_ext=cpp
10659 ac_cpp='$CXXCPP $CPPFLAGS'
10660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10663
10664
10665
10666
10667 archive_cmds_need_lc_CXX=no
10668 allow_undefined_flag_CXX=
10669 always_export_symbols_CXX=no
10670 archive_expsym_cmds_CXX=
10671 export_dynamic_flag_spec_CXX=
10672 hardcode_direct_CXX=no
10673 hardcode_libdir_flag_spec_CXX=
10674 hardcode_libdir_flag_spec_ld_CXX=
10675 hardcode_libdir_separator_CXX=
10676 hardcode_minus_L_CXX=no
10677 hardcode_shlibpath_var_CXX=unsupported
10678 hardcode_automatic_CXX=no
10679 module_cmds_CXX=
10680 module_expsym_cmds_CXX=
10681 link_all_deplibs_CXX=unknown
10682 old_archive_cmds_CXX=$old_archive_cmds
10683 no_undefined_flag_CXX=
10684 whole_archive_flag_spec_CXX=
10685 enable_shared_with_static_runtimes_CXX=no
10686
10687 # Dependencies to place before and after the object being linked:
10688 predep_objects_CXX=
10689 postdep_objects_CXX=
10690 predeps_CXX=
10691 postdeps_CXX=
10692 compiler_lib_search_path_CXX=
10693
10694 # Source file extension for C++ test sources.
10695 ac_ext=cpp
10696
10697 # Object file extension for compiled C++ test sources.
10698 objext=o
10699 objext_CXX=$objext
10700
10701 # Code to be used in simple compile tests
10702 lt_simple_compile_test_code="int some_variable = 0;\n"
10703
10704 # Code to be used in simple link tests
10705 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10706
10707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10708
10709 # If no C compiler was specified, use CC.
10710 LTCC=${LTCC-"$CC"}
10711
10712 # If no C compiler flags were specified, use CFLAGS.
10713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10714
10715 # Allow CC to be a program name with arguments.
10716 compiler=$CC
10717
10718
10719 # save warnings/boilerplate of simple test code
10720 ac_outfile=conftest.$ac_objext
10721 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10722 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10723 _lt_compiler_boilerplate=`cat conftest.err`
10724 $rm conftest*
10725
10726 ac_outfile=conftest.$ac_objext
10727 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10728 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10729 _lt_linker_boilerplate=`cat conftest.err`
10730 $rm conftest*
10731
10732
10733 # Allow CC to be a program name with arguments.
10734 lt_save_CC=$CC
10735 lt_save_LD=$LD
10736 lt_save_GCC=$GCC
10737 GCC=$GXX
10738 lt_save_with_gnu_ld=$with_gnu_ld
10739 lt_save_path_LD=$lt_cv_path_LD
10740 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10741   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10742 else
10743   $as_unset lt_cv_prog_gnu_ld
10744 fi
10745 if test -n "${lt_cv_path_LDCXX+set}"; then
10746   lt_cv_path_LD=$lt_cv_path_LDCXX
10747 else
10748   $as_unset lt_cv_path_LD
10749 fi
10750 test -z "${LDCXX+set}" || LD=$LDCXX
10751 CC=${CXX-"c++"}
10752 compiler=$CC
10753 compiler_CXX=$CC
10754 for cc_temp in $compiler""; do
10755   case $cc_temp in
10756     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10757     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10758     \-*) ;;
10759     *) break;;
10760   esac
10761 done
10762 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10763
10764
10765 # We don't want -fno-exception wen compiling C++ code, so set the
10766 # no_builtin_flag separately
10767 if test "$GXX" = yes; then
10768   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10769 else
10770   lt_prog_compiler_no_builtin_flag_CXX=
10771 fi
10772
10773 if test "$GXX" = yes; then
10774   # Set up default GNU C++ configuration
10775
10776
10777 # Check whether --with-gnu-ld was given.
10778 if test "${with_gnu_ld+set}" = set; then
10779   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10780 else
10781   with_gnu_ld=no
10782 fi
10783
10784 ac_prog=ld
10785 if test "$GCC" = yes; then
10786   # Check if gcc -print-prog-name=ld gives a path.
10787   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10788 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10789   case $host in
10790   *-*-mingw*)
10791     # gcc leaves a trailing carriage return which upsets mingw
10792     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10793   *)
10794     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10795   esac
10796   case $ac_prog in
10797     # Accept absolute paths.
10798     [\\/]* | ?:[\\/]*)
10799       re_direlt='/[^/][^/]*/\.\./'
10800       # Canonicalize the pathname of ld
10801       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10802       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10803         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10804       done
10805       test -z "$LD" && LD="$ac_prog"
10806       ;;
10807   "")
10808     # If it fails, then pretend we aren't using GCC.
10809     ac_prog=ld
10810     ;;
10811   *)
10812     # If it is relative, then search for the first ld in PATH.
10813     with_gnu_ld=unknown
10814     ;;
10815   esac
10816 elif test "$with_gnu_ld" = yes; then
10817   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10818 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10819 else
10820   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10821 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10822 fi
10823 if test "${lt_cv_path_LD+set}" = set; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   if test -z "$LD"; then
10827   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10828   for ac_dir in $PATH; do
10829     IFS="$lt_save_ifs"
10830     test -z "$ac_dir" && ac_dir=.
10831     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10832       lt_cv_path_LD="$ac_dir/$ac_prog"
10833       # Check to see if the program is GNU ld.  I'd rather use --version,
10834       # but apparently some variants of GNU ld only accept -v.
10835       # Break only if it was the GNU/non-GNU ld that we prefer.
10836       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10837       *GNU* | *'with BFD'*)
10838         test "$with_gnu_ld" != no && break
10839         ;;
10840       *)
10841         test "$with_gnu_ld" != yes && break
10842         ;;
10843       esac
10844     fi
10845   done
10846   IFS="$lt_save_ifs"
10847 else
10848   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10849 fi
10850 fi
10851
10852 LD="$lt_cv_path_LD"
10853 if test -n "$LD"; then
10854   { echo "$as_me:$LINENO: result: $LD" >&5
10855 echo "${ECHO_T}$LD" >&6; }
10856 else
10857   { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10859 fi
10860 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10861 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10862    { (exit 1); exit 1; }; }
10863 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10864 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10865 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10869 case `$LD -v 2>&1 </dev/null` in
10870 *GNU* | *'with BFD'*)
10871   lt_cv_prog_gnu_ld=yes
10872   ;;
10873 *)
10874   lt_cv_prog_gnu_ld=no
10875   ;;
10876 esac
10877 fi
10878 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10879 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10880 with_gnu_ld=$lt_cv_prog_gnu_ld
10881
10882
10883
10884   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10885   # archiving commands below assume that GNU ld is being used.
10886   if test "$with_gnu_ld" = yes; then
10887     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10888     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'
10889
10890     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10891     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10892
10893     # If archive_cmds runs LD, not CC, wlarc should be empty
10894     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10895     #     investigate it a little bit more. (MM)
10896     wlarc='${wl}'
10897
10898     # ancient GNU ld didn't support --whole-archive et. al.
10899     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10900         grep 'no-whole-archive' > /dev/null; then
10901       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10902     else
10903       whole_archive_flag_spec_CXX=
10904     fi
10905   else
10906     with_gnu_ld=no
10907     wlarc=
10908
10909     # A generic and very simple default shared library creation
10910     # command for GNU C++ for the case where it uses the native
10911     # linker, instead of GNU ld.  If possible, this setting should
10912     # overridden to take advantage of the native linker features on
10913     # the platform it is being used on.
10914     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10915   fi
10916
10917   # Commands to make compiler produce verbose output that lists
10918   # what "hidden" libraries, object files and flags are used when
10919   # linking a shared library.
10920   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10921
10922 else
10923   GXX=no
10924   with_gnu_ld=no
10925   wlarc=
10926 fi
10927
10928 # PORTME: fill in a description of your system's C++ link characteristics
10929 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10931 ld_shlibs_CXX=yes
10932 case $host_os in
10933   aix3*)
10934     # FIXME: insert proper C++ library support
10935     ld_shlibs_CXX=no
10936     ;;
10937   aix4* | aix5*)
10938     if test "$host_cpu" = ia64; then
10939       # On IA64, the linker does run time linking by default, so we don't
10940       # have to do anything special.
10941       aix_use_runtimelinking=no
10942       exp_sym_flag='-Bexport'
10943       no_entry_flag=""
10944     else
10945       aix_use_runtimelinking=no
10946
10947       # Test if we are trying to use run time linking or normal
10948       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10949       # need to do runtime linking.
10950       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10951         for ld_flag in $LDFLAGS; do
10952           case $ld_flag in
10953           *-brtl*)
10954             aix_use_runtimelinking=yes
10955             break
10956             ;;
10957           esac
10958         done
10959         ;;
10960       esac
10961
10962       exp_sym_flag='-bexport'
10963       no_entry_flag='-bnoentry'
10964     fi
10965
10966     # When large executables or shared objects are built, AIX ld can
10967     # have problems creating the table of contents.  If linking a library
10968     # or program results in "error TOC overflow" add -mminimal-toc to
10969     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10970     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10971
10972     archive_cmds_CXX=''
10973     hardcode_direct_CXX=yes
10974     hardcode_libdir_separator_CXX=':'
10975     link_all_deplibs_CXX=yes
10976
10977     if test "$GXX" = yes; then
10978       case $host_os in aix4.[012]|aix4.[012].*)
10979       # We only want to do this on AIX 4.2 and lower, the check
10980       # below for broken collect2 doesn't work under 4.3+
10981         collect2name=`${CC} -print-prog-name=collect2`
10982         if test -f "$collect2name" && \
10983            strings "$collect2name" | grep resolve_lib_name >/dev/null
10984         then
10985           # We have reworked collect2
10986           hardcode_direct_CXX=yes
10987         else
10988           # We have old collect2
10989           hardcode_direct_CXX=unsupported
10990           # It fails to find uninstalled libraries when the uninstalled
10991           # path is not listed in the libpath.  Setting hardcode_minus_L
10992           # to unsupported forces relinking
10993           hardcode_minus_L_CXX=yes
10994           hardcode_libdir_flag_spec_CXX='-L$libdir'
10995           hardcode_libdir_separator_CXX=
10996         fi
10997         ;;
10998       esac
10999       shared_flag='-shared'
11000       if test "$aix_use_runtimelinking" = yes; then
11001         shared_flag="$shared_flag "'${wl}-G'
11002       fi
11003     else
11004       # not using gcc
11005       if test "$host_cpu" = ia64; then
11006         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11007         # chokes on -Wl,-G. The following line is correct:
11008         shared_flag='-G'
11009       else
11010         if test "$aix_use_runtimelinking" = yes; then
11011           shared_flag='${wl}-G'
11012         else
11013           shared_flag='${wl}-bM:SRE'
11014         fi
11015       fi
11016     fi
11017
11018     # It seems that -bexpall does not export symbols beginning with
11019     # underscore (_), so it is better to generate a list of symbols to export.
11020     always_export_symbols_CXX=yes
11021     if test "$aix_use_runtimelinking" = yes; then
11022       # Warning - without using the other runtime loading flags (-brtl),
11023       # -berok will link without error, but may produce a broken library.
11024       allow_undefined_flag_CXX='-berok'
11025       # Determine the default libpath from the value encoded in an empty executable.
11026       cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032
11033 int
11034 main ()
11035 {
11036
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (ac_try="$ac_link"
11043 case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_link") 2>conftest.er1
11049   ac_status=$?
11050   grep -v '^ *+' conftest.er1 >conftest.err
11051   rm -f conftest.er1
11052   cat conftest.err >&5
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } && {
11055          test -z "$ac_cxx_werror_flag" ||
11056          test ! -s conftest.err
11057        } && test -s conftest$ac_exeext &&
11058        $as_test_x conftest$ac_exeext; then
11059
11060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11061 }'`
11062 # Check for a 64-bit object if we didn't find anything.
11063 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; }
11064 }'`; fi
11065 else
11066   echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069
11070 fi
11071
11072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11073       conftest$ac_exeext conftest.$ac_ext
11074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11075
11076       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11077
11078       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"
11079      else
11080       if test "$host_cpu" = ia64; then
11081         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11082         allow_undefined_flag_CXX="-z nodefs"
11083         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"
11084       else
11085         # Determine the default libpath from the value encoded in an empty executable.
11086         cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h.  */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h.  */
11092
11093 int
11094 main ()
11095 {
11096
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (ac_try="$ac_link"
11103 case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_link") 2>conftest.er1
11109   ac_status=$?
11110   grep -v '^ *+' conftest.er1 >conftest.err
11111   rm -f conftest.er1
11112   cat conftest.err >&5
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } && {
11115          test -z "$ac_cxx_werror_flag" ||
11116          test ! -s conftest.err
11117        } && test -s conftest$ac_exeext &&
11118        $as_test_x conftest$ac_exeext; then
11119
11120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11121 }'`
11122 # Check for a 64-bit object if we didn't find anything.
11123 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; }
11124 }'`; fi
11125 else
11126   echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
11129
11130 fi
11131
11132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11133       conftest$ac_exeext conftest.$ac_ext
11134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11135
11136         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11137         # Warning - without using the other run time loading flags,
11138         # -berok will link without error, but may produce a broken library.
11139         no_undefined_flag_CXX=' ${wl}-bernotok'
11140         allow_undefined_flag_CXX=' ${wl}-berok'
11141         # Exported symbols can be pulled into shared objects from archives
11142         whole_archive_flag_spec_CXX='$convenience'
11143         archive_cmds_need_lc_CXX=yes
11144         # This is similar to how AIX traditionally builds its shared libraries.
11145         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'
11146       fi
11147     fi
11148     ;;
11149
11150   beos*)
11151     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11152       allow_undefined_flag_CXX=unsupported
11153       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11154       # support --undefined.  This deserves some investigation.  FIXME
11155       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11156     else
11157       ld_shlibs_CXX=no
11158     fi
11159     ;;
11160
11161   chorus*)
11162     case $cc_basename in
11163       *)
11164         # FIXME: insert proper C++ library support
11165         ld_shlibs_CXX=no
11166         ;;
11167     esac
11168     ;;
11169
11170   cygwin* | mingw* | pw32*)
11171     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11172     # as there is no search path for DLLs.
11173     hardcode_libdir_flag_spec_CXX='-L$libdir'
11174     allow_undefined_flag_CXX=unsupported
11175     always_export_symbols_CXX=no
11176     enable_shared_with_static_runtimes_CXX=yes
11177
11178     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11179       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'
11180       # If the export-symbols file already is a .def file (1st line
11181       # is EXPORTS), use it as is; otherwise, prepend...
11182       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11183         cp $export_symbols $output_objdir/$soname.def;
11184       else
11185         echo EXPORTS > $output_objdir/$soname.def;
11186         cat $export_symbols >> $output_objdir/$soname.def;
11187       fi~
11188       $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'
11189     else
11190       ld_shlibs_CXX=no
11191     fi
11192   ;;
11193       darwin* | rhapsody*)
11194         case $host_os in
11195         rhapsody* | darwin1.[012])
11196          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11197          ;;
11198        *) # Darwin 1.3 on
11199          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11200            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11201          else
11202            case ${MACOSX_DEPLOYMENT_TARGET} in
11203              10.[012])
11204                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11205                ;;
11206              10.*)
11207                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11208                ;;
11209            esac
11210          fi
11211          ;;
11212         esac
11213       archive_cmds_need_lc_CXX=no
11214       hardcode_direct_CXX=no
11215       hardcode_automatic_CXX=yes
11216       hardcode_shlibpath_var_CXX=unsupported
11217       whole_archive_flag_spec_CXX=''
11218       link_all_deplibs_CXX=yes
11219
11220     if test "$GXX" = yes ; then
11221       lt_int_apple_cc_single_mod=no
11222       output_verbose_link_cmd='echo'
11223       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11224        lt_int_apple_cc_single_mod=yes
11225       fi
11226       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11227        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11228       else
11229           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'
11230         fi
11231         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11232         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11233           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11234             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}'
11235           else
11236             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}'
11237           fi
11238             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}'
11239       else
11240       case $cc_basename in
11241         xlc*)
11242          output_verbose_link_cmd='echo'
11243           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'
11244           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11245           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11246           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}'
11247           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}'
11248           ;;
11249        *)
11250          ld_shlibs_CXX=no
11251           ;;
11252       esac
11253       fi
11254         ;;
11255
11256   dgux*)
11257     case $cc_basename in
11258       ec++*)
11259         # FIXME: insert proper C++ library support
11260         ld_shlibs_CXX=no
11261         ;;
11262       ghcx*)
11263         # Green Hills C++ Compiler
11264         # FIXME: insert proper C++ library support
11265         ld_shlibs_CXX=no
11266         ;;
11267       *)
11268         # FIXME: insert proper C++ library support
11269         ld_shlibs_CXX=no
11270         ;;
11271     esac
11272     ;;
11273   freebsd[12]*)
11274     # C++ shared libraries reported to be fairly broken before switch to ELF
11275     ld_shlibs_CXX=no
11276     ;;
11277   freebsd-elf*)
11278     archive_cmds_need_lc_CXX=no
11279     ;;
11280   freebsd* | dragonfly*)
11281     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11282     # conventions
11283     ld_shlibs_CXX=yes
11284     ;;
11285   gnu*)
11286     ;;
11287   hpux9*)
11288     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11289     hardcode_libdir_separator_CXX=:
11290     export_dynamic_flag_spec_CXX='${wl}-E'
11291     hardcode_direct_CXX=yes
11292     hardcode_minus_L_CXX=yes # Not in the search PATH,
11293                                 # but as the default
11294                                 # location of the library.
11295
11296     case $cc_basename in
11297     CC*)
11298       # FIXME: insert proper C++ library support
11299       ld_shlibs_CXX=no
11300       ;;
11301     aCC*)
11302       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'
11303       # Commands to make compiler produce verbose output that lists
11304       # what "hidden" libraries, object files and flags are used when
11305       # linking a shared library.
11306       #
11307       # There doesn't appear to be a way to prevent this compiler from
11308       # explicitly linking system object files so we need to strip them
11309       # from the output so that they don't get included in the library
11310       # dependencies.
11311       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'
11312       ;;
11313     *)
11314       if test "$GXX" = yes; then
11315         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'
11316       else
11317         # FIXME: insert proper C++ library support
11318         ld_shlibs_CXX=no
11319       fi
11320       ;;
11321     esac
11322     ;;
11323   hpux10*|hpux11*)
11324     if test $with_gnu_ld = no; then
11325       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11326       hardcode_libdir_separator_CXX=:
11327
11328       case $host_cpu in
11329       hppa*64*|ia64*)
11330         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11331         ;;
11332       *)
11333         export_dynamic_flag_spec_CXX='${wl}-E'
11334         ;;
11335       esac
11336     fi
11337     case $host_cpu in
11338     hppa*64*|ia64*)
11339       hardcode_direct_CXX=no
11340       hardcode_shlibpath_var_CXX=no
11341       ;;
11342     *)
11343       hardcode_direct_CXX=yes
11344       hardcode_minus_L_CXX=yes # Not in the search PATH,
11345                                               # but as the default
11346                                               # location of the library.
11347       ;;
11348     esac
11349
11350     case $cc_basename in
11351       CC*)
11352         # FIXME: insert proper C++ library support
11353         ld_shlibs_CXX=no
11354         ;;
11355       aCC*)
11356         case $host_cpu in
11357         hppa*64*)
11358           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11359           ;;
11360         ia64*)
11361           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11362           ;;
11363         *)
11364           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11365           ;;
11366         esac
11367         # Commands to make compiler produce verbose output that lists
11368         # what "hidden" libraries, object files and flags are used when
11369         # linking a shared library.
11370         #
11371         # There doesn't appear to be a way to prevent this compiler from
11372         # explicitly linking system object files so we need to strip them
11373         # from the output so that they don't get included in the library
11374         # dependencies.
11375         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'
11376         ;;
11377       *)
11378         if test "$GXX" = yes; then
11379           if test $with_gnu_ld = no; then
11380             case $host_cpu in
11381             hppa*64*)
11382               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11383               ;;
11384             ia64*)
11385               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11386               ;;
11387             *)
11388               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'
11389               ;;
11390             esac
11391           fi
11392         else
11393           # FIXME: insert proper C++ library support
11394           ld_shlibs_CXX=no
11395         fi
11396         ;;
11397     esac
11398     ;;
11399   interix3*)
11400     hardcode_direct_CXX=no
11401     hardcode_shlibpath_var_CXX=no
11402     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11403     export_dynamic_flag_spec_CXX='${wl}-E'
11404     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11405     # Instead, shared libraries are loaded at an image base (0x10000000 by
11406     # default) and relocated if they conflict, which is a slow very memory
11407     # consuming and fragmenting process.  To avoid this, we pick a random,
11408     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11409     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11410     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'
11411     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'
11412     ;;
11413   irix5* | irix6*)
11414     case $cc_basename in
11415       CC*)
11416         # SGI C++
11417         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'
11418
11419         # Archives containing C++ object files must be created using
11420         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11421         # necessary to make sure instantiated templates are included
11422         # in the archive.
11423         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11424         ;;
11425       *)
11426         if test "$GXX" = yes; then
11427           if test "$with_gnu_ld" = no; then
11428             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'
11429           else
11430             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'
11431           fi
11432         fi
11433         link_all_deplibs_CXX=yes
11434         ;;
11435     esac
11436     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11437     hardcode_libdir_separator_CXX=:
11438     ;;
11439   linux* | k*bsd*-gnu)
11440     case $cc_basename in
11441       KCC*)
11442         # Kuck and Associates, Inc. (KAI) C++ Compiler
11443
11444         # KCC will only create a shared library if the output file
11445         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11446         # to its proper name (with version) after linking.
11447         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'
11448         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'
11449         # Commands to make compiler produce verbose output that lists
11450         # what "hidden" libraries, object files and flags are used when
11451         # linking a shared library.
11452         #
11453         # There doesn't appear to be a way to prevent this compiler from
11454         # explicitly linking system object files so we need to strip them
11455         # from the output so that they don't get included in the library
11456         # dependencies.
11457         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'
11458
11459         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11460         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11461
11462         # Archives containing C++ object files must be created using
11463         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11464         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11465         ;;
11466       icpc*)
11467         # Intel C++
11468         with_gnu_ld=yes
11469         # version 8.0 and above of icpc choke on multiply defined symbols
11470         # if we add $predep_objects and $postdep_objects, however 7.1 and
11471         # earlier do not add the objects themselves.
11472         case `$CC -V 2>&1` in
11473         *"Version 7."*)
11474           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11475           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'
11476           ;;
11477         *)  # Version 8.0 or newer
11478           tmp_idyn=
11479           case $host_cpu in
11480             ia64*) tmp_idyn=' -i_dynamic';;
11481           esac
11482           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11483           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'
11484           ;;
11485         esac
11486         archive_cmds_need_lc_CXX=no
11487         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11488         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11489         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11490         ;;
11491       pgCC*)
11492         # Portland Group C++ compiler
11493         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11494         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'
11495
11496         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11497         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11498         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'
11499         ;;
11500       cxx*)
11501         # Compaq C++
11502         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11503         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'
11504
11505         runpath_var=LD_RUN_PATH
11506         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11507         hardcode_libdir_separator_CXX=:
11508
11509         # Commands to make compiler produce verbose output that lists
11510         # what "hidden" libraries, object files and flags are used when
11511         # linking a shared library.
11512         #
11513         # There doesn't appear to be a way to prevent this compiler from
11514         # explicitly linking system object files so we need to strip them
11515         # from the output so that they don't get included in the library
11516         # dependencies.
11517         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'
11518         ;;
11519     esac
11520     ;;
11521   lynxos*)
11522     # FIXME: insert proper C++ library support
11523     ld_shlibs_CXX=no
11524     ;;
11525   m88k*)
11526     # FIXME: insert proper C++ library support
11527     ld_shlibs_CXX=no
11528     ;;
11529   mvs*)
11530     case $cc_basename in
11531       cxx*)
11532         # FIXME: insert proper C++ library support
11533         ld_shlibs_CXX=no
11534         ;;
11535       *)
11536         # FIXME: insert proper C++ library support
11537         ld_shlibs_CXX=no
11538         ;;
11539     esac
11540     ;;
11541   netbsd* | netbsdelf*-gnu)
11542     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11543       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11544       wlarc=
11545       hardcode_libdir_flag_spec_CXX='-R$libdir'
11546       hardcode_direct_CXX=yes
11547       hardcode_shlibpath_var_CXX=no
11548     fi
11549     # Workaround some broken pre-1.5 toolchains
11550     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11551     ;;
11552   openbsd2*)
11553     # C++ shared libraries are fairly broken
11554     ld_shlibs_CXX=no
11555     ;;
11556   openbsd*)
11557     hardcode_direct_CXX=yes
11558     hardcode_shlibpath_var_CXX=no
11559     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11560     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11561     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11562       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11563       export_dynamic_flag_spec_CXX='${wl}-E'
11564       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11565     fi
11566     output_verbose_link_cmd='echo'
11567     ;;
11568   osf3*)
11569     case $cc_basename in
11570       KCC*)
11571         # Kuck and Associates, Inc. (KAI) C++ Compiler
11572
11573         # KCC will only create a shared library if the output file
11574         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11575         # to its proper name (with version) after linking.
11576         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'
11577
11578         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11579         hardcode_libdir_separator_CXX=:
11580
11581         # Archives containing C++ object files must be created using
11582         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11583         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11584
11585         ;;
11586       RCC*)
11587         # Rational C++ 2.4.1
11588         # FIXME: insert proper C++ library support
11589         ld_shlibs_CXX=no
11590         ;;
11591       cxx*)
11592         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11593         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'
11594
11595         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11596         hardcode_libdir_separator_CXX=:
11597
11598         # Commands to make compiler produce verbose output that lists
11599         # what "hidden" libraries, object files and flags are used when
11600         # linking a shared library.
11601         #
11602         # There doesn't appear to be a way to prevent this compiler from
11603         # explicitly linking system object files so we need to strip them
11604         # from the output so that they don't get included in the library
11605         # dependencies.
11606         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'
11607         ;;
11608       *)
11609         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11610           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11611           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'
11612
11613           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11614           hardcode_libdir_separator_CXX=:
11615
11616           # Commands to make compiler produce verbose output that lists
11617           # what "hidden" libraries, object files and flags are used when
11618           # linking a shared library.
11619           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11620
11621         else
11622           # FIXME: insert proper C++ library support
11623           ld_shlibs_CXX=no
11624         fi
11625         ;;
11626     esac
11627     ;;
11628   osf4* | osf5*)
11629     case $cc_basename in
11630       KCC*)
11631         # Kuck and Associates, Inc. (KAI) C++ Compiler
11632
11633         # KCC will only create a shared library if the output file
11634         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11635         # to its proper name (with version) after linking.
11636         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'
11637
11638         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11639         hardcode_libdir_separator_CXX=:
11640
11641         # Archives containing C++ object files must be created using
11642         # the KAI C++ compiler.
11643         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11644         ;;
11645       RCC*)
11646         # Rational C++ 2.4.1
11647         # FIXME: insert proper C++ library support
11648         ld_shlibs_CXX=no
11649         ;;
11650       cxx*)
11651         allow_undefined_flag_CXX=' -expect_unresolved \*'
11652         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'
11653         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11654           echo "-hidden">> $lib.exp~
11655           $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~
11656           $rm $lib.exp'
11657
11658         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11659         hardcode_libdir_separator_CXX=:
11660
11661         # Commands to make compiler produce verbose output that lists
11662         # what "hidden" libraries, object files and flags are used when
11663         # linking a shared library.
11664         #
11665         # There doesn't appear to be a way to prevent this compiler from
11666         # explicitly linking system object files so we need to strip them
11667         # from the output so that they don't get included in the library
11668         # dependencies.
11669         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'
11670         ;;
11671       *)
11672         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11673           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11674          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'
11675
11676           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11677           hardcode_libdir_separator_CXX=:
11678
11679           # Commands to make compiler produce verbose output that lists
11680           # what "hidden" libraries, object files and flags are used when
11681           # linking a shared library.
11682           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11683
11684         else
11685           # FIXME: insert proper C++ library support
11686           ld_shlibs_CXX=no
11687         fi
11688         ;;
11689     esac
11690     ;;
11691   psos*)
11692     # FIXME: insert proper C++ library support
11693     ld_shlibs_CXX=no
11694     ;;
11695   sunos4*)
11696     case $cc_basename in
11697       CC*)
11698         # Sun C++ 4.x
11699         # FIXME: insert proper C++ library support
11700         ld_shlibs_CXX=no
11701         ;;
11702       lcc*)
11703         # Lucid
11704         # FIXME: insert proper C++ library support
11705         ld_shlibs_CXX=no
11706         ;;
11707       *)
11708         # FIXME: insert proper C++ library support
11709         ld_shlibs_CXX=no
11710         ;;
11711     esac
11712     ;;
11713   solaris*)
11714     case $cc_basename in
11715       CC*)
11716         # Sun C++ 4.2, 5.x and Centerline C++
11717         archive_cmds_need_lc_CXX=yes
11718         no_undefined_flag_CXX=' -zdefs'
11719         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11720         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11721         $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'
11722
11723         hardcode_libdir_flag_spec_CXX='-R$libdir'
11724         hardcode_shlibpath_var_CXX=no
11725         case $host_os in
11726           solaris2.[0-5] | solaris2.[0-5].*) ;;
11727           *)
11728             # The C++ compiler is used as linker so we must use $wl
11729             # flag to pass the commands to the underlying system
11730             # linker. We must also pass each convience library through
11731             # to the system linker between allextract/defaultextract.
11732             # The C++ compiler will combine linker options so we
11733             # cannot just pass the convience library names through
11734             # without $wl.
11735             # Supported since Solaris 2.6 (maybe 2.5.1?)
11736             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'
11737             ;;
11738         esac
11739         link_all_deplibs_CXX=yes
11740
11741         output_verbose_link_cmd='echo'
11742
11743         # Archives containing C++ object files must be created using
11744         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11745         # necessary to make sure instantiated templates are included
11746         # in the archive.
11747         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11748         ;;
11749       gcx*)
11750         # Green Hills C++ Compiler
11751         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11752
11753         # The C++ compiler must be used to create the archive.
11754         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11755         ;;
11756       *)
11757         # GNU C++ compiler with Solaris linker
11758         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11759           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11760           if $CC --version | grep -v '^2\.7' > /dev/null; then
11761             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11762             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11763                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11764
11765             # Commands to make compiler produce verbose output that lists
11766             # what "hidden" libraries, object files and flags are used when
11767             # linking a shared library.
11768             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11769           else
11770             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11771             # platform.
11772             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11773             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11774                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11775
11776             # Commands to make compiler produce verbose output that lists
11777             # what "hidden" libraries, object files and flags are used when
11778             # linking a shared library.
11779             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11780           fi
11781
11782           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11783         fi
11784         ;;
11785     esac
11786     ;;
11787   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11788     no_undefined_flag_CXX='${wl}-z,text'
11789     archive_cmds_need_lc_CXX=no
11790     hardcode_shlibpath_var_CXX=no
11791     runpath_var='LD_RUN_PATH'
11792
11793     case $cc_basename in
11794       CC*)
11795         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11796         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797         ;;
11798       *)
11799         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801         ;;
11802     esac
11803     ;;
11804   sysv5* | sco3.2v5* | sco5v6*)
11805     # Note: We can NOT use -z defs as we might desire, because we do not
11806     # link with -lc, and that would cause any symbols used from libc to
11807     # always be unresolved, which means just about no library would
11808     # ever link correctly.  If we're not using GNU ld we use -z text
11809     # though, which does catch some bad symbols but isn't as heavy-handed
11810     # as -z defs.
11811     # For security reasons, it is highly recommended that you always
11812     # use absolute paths for naming shared libraries, and exclude the
11813     # DT_RUNPATH tag from executables and libraries.  But doing so
11814     # requires that you compile everything twice, which is a pain.
11815     # So that behaviour is only enabled if SCOABSPATH is set to a
11816     # non-empty value in the environment.  Most likely only useful for
11817     # creating official distributions of packages.
11818     # This is a hack until libtool officially supports absolute path
11819     # names for shared libraries.
11820     no_undefined_flag_CXX='${wl}-z,text'
11821     allow_undefined_flag_CXX='${wl}-z,nodefs'
11822     archive_cmds_need_lc_CXX=no
11823     hardcode_shlibpath_var_CXX=no
11824     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11825     hardcode_libdir_separator_CXX=':'
11826     link_all_deplibs_CXX=yes
11827     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11828     runpath_var='LD_RUN_PATH'
11829
11830     case $cc_basename in
11831       CC*)
11832         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11833         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834         ;;
11835       *)
11836         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11837         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11838         ;;
11839     esac
11840     ;;
11841   tandem*)
11842     case $cc_basename in
11843       NCC*)
11844         # NonStop-UX NCC 3.20
11845         # FIXME: insert proper C++ library support
11846         ld_shlibs_CXX=no
11847         ;;
11848       *)
11849         # FIXME: insert proper C++ library support
11850         ld_shlibs_CXX=no
11851         ;;
11852     esac
11853     ;;
11854   vxworks*)
11855     # FIXME: insert proper C++ library support
11856     ld_shlibs_CXX=no
11857     ;;
11858   *)
11859     # FIXME: insert proper C++ library support
11860     ld_shlibs_CXX=no
11861     ;;
11862 esac
11863 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11864 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11865 test "$ld_shlibs_CXX" = no && can_build_shared=no
11866
11867 GCC_CXX="$GXX"
11868 LD_CXX="$LD"
11869
11870
11871 cat > conftest.$ac_ext <<EOF
11872 class Foo
11873 {
11874 public:
11875   Foo (void) { a = 0; }
11876 private:
11877   int a;
11878 };
11879 EOF
11880
11881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882   (eval $ac_compile) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; then
11886   # Parse the compiler output and extract the necessary
11887   # objects, libraries and library flags.
11888
11889   # Sentinel used to keep track of whether or not we are before
11890   # the conftest object file.
11891   pre_test_object_deps_done=no
11892
11893   # The `*' in the case matches for architectures that use `case' in
11894   # $output_verbose_cmd can trigger glob expansion during the loop
11895   # eval without this substitution.
11896   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11897
11898   for p in `eval $output_verbose_link_cmd`; do
11899     case $p in
11900
11901     -L* | -R* | -l*)
11902        # Some compilers place space between "-{L,R}" and the path.
11903        # Remove the space.
11904        if test $p = "-L" \
11905           || test $p = "-R"; then
11906          prev=$p
11907          continue
11908        else
11909          prev=
11910        fi
11911
11912        if test "$pre_test_object_deps_done" = no; then
11913          case $p in
11914          -L* | -R*)
11915            # Internal compiler library paths should come after those
11916            # provided the user.  The postdeps already come after the
11917            # user supplied libs so there is no need to process them.
11918            if test -z "$compiler_lib_search_path_CXX"; then
11919              compiler_lib_search_path_CXX="${prev}${p}"
11920            else
11921              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11922            fi
11923            ;;
11924          # The "-l" case would never come before the object being
11925          # linked, so don't bother handling this case.
11926          esac
11927        else
11928          if test -z "$postdeps_CXX"; then
11929            postdeps_CXX="${prev}${p}"
11930          else
11931            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11932          fi
11933        fi
11934        ;;
11935
11936     *.$objext)
11937        # This assumes that the test object file only shows up
11938        # once in the compiler output.
11939        if test "$p" = "conftest.$objext"; then
11940          pre_test_object_deps_done=yes
11941          continue
11942        fi
11943
11944        if test "$pre_test_object_deps_done" = no; then
11945          if test -z "$predep_objects_CXX"; then
11946            predep_objects_CXX="$p"
11947          else
11948            predep_objects_CXX="$predep_objects_CXX $p"
11949          fi
11950        else
11951          if test -z "$postdep_objects_CXX"; then
11952            postdep_objects_CXX="$p"
11953          else
11954            postdep_objects_CXX="$postdep_objects_CXX $p"
11955          fi
11956        fi
11957        ;;
11958
11959     *) ;; # Ignore the rest.
11960
11961     esac
11962   done
11963
11964   # Clean up.
11965   rm -f a.out a.exe
11966 else
11967   echo "libtool.m4: error: problem compiling CXX test program"
11968 fi
11969
11970 $rm -f confest.$objext
11971
11972 # PORTME: override above test on systems where it is broken
11973 case $host_os in
11974 interix3*)
11975   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11976   # hack all around it, let's just trust "g++" to DTRT.
11977   predep_objects_CXX=
11978   postdep_objects_CXX=
11979   postdeps_CXX=
11980   ;;
11981
11982 solaris*)
11983   case $cc_basename in
11984   CC*)
11985     # Adding this requires a known-good setup of shared libraries for
11986     # Sun compiler versions before 5.6, else PIC objects from an old
11987     # archive will be linked into the output, leading to subtle bugs.
11988     postdeps_CXX='-lCstd -lCrun'
11989     ;;
11990   esac
11991   ;;
11992 esac
11993
11994
11995 case " $postdeps_CXX " in
11996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11997 esac
11998
11999 lt_prog_compiler_wl_CXX=
12000 lt_prog_compiler_pic_CXX=
12001 lt_prog_compiler_static_CXX=
12002
12003 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12005
12006   # C++ specific cases for pic, static, wl, etc.
12007   if test "$GXX" = yes; then
12008     lt_prog_compiler_wl_CXX='-Wl,'
12009     lt_prog_compiler_static_CXX='-static'
12010
12011     case $host_os in
12012     aix*)
12013       # All AIX code is PIC.
12014       if test "$host_cpu" = ia64; then
12015         # AIX 5 now supports IA64 processor
12016         lt_prog_compiler_static_CXX='-Bstatic'
12017       fi
12018       ;;
12019     amigaos*)
12020       # FIXME: we need at least 68020 code to build shared libraries, but
12021       # adding the `-m68020' flag to GCC prevents building anything better,
12022       # like `-m68040'.
12023       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12024       ;;
12025     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12026       # PIC is the default for these OSes.
12027       ;;
12028     mingw* | os2* | pw32*)
12029       # This hack is so that the source file can tell whether it is being
12030       # built for inclusion in a dll (and should export symbols for example).
12031       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12032       ;;
12033     darwin* | rhapsody*)
12034       # PIC is the default on this platform
12035       # Common symbols not allowed in MH_DYLIB files
12036       lt_prog_compiler_pic_CXX='-fno-common'
12037       ;;
12038     *djgpp*)
12039       # DJGPP does not support shared libraries at all
12040       lt_prog_compiler_pic_CXX=
12041       ;;
12042     interix3*)
12043       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12044       # Instead, we relocate shared libraries at runtime.
12045       ;;
12046     sysv4*MP*)
12047       if test -d /usr/nec; then
12048         lt_prog_compiler_pic_CXX=-Kconform_pic
12049       fi
12050       ;;
12051     hpux*)
12052       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12053       # not for PA HP-UX.
12054       case $host_cpu in
12055       hppa*64*|ia64*)
12056         ;;
12057       *)
12058         lt_prog_compiler_pic_CXX='-fPIC'
12059         ;;
12060       esac
12061       ;;
12062     *)
12063       lt_prog_compiler_pic_CXX='-fPIC'
12064       ;;
12065     esac
12066   else
12067     case $host_os in
12068       aix4* | aix5*)
12069         # All AIX code is PIC.
12070         if test "$host_cpu" = ia64; then
12071           # AIX 5 now supports IA64 processor
12072           lt_prog_compiler_static_CXX='-Bstatic'
12073         else
12074           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12075         fi
12076         ;;
12077       chorus*)
12078         case $cc_basename in
12079         cxch68*)
12080           # Green Hills C++ Compiler
12081           # _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"
12082           ;;
12083         esac
12084         ;;
12085        darwin*)
12086          # PIC is the default on this platform
12087          # Common symbols not allowed in MH_DYLIB files
12088          case $cc_basename in
12089            xlc*)
12090            lt_prog_compiler_pic_CXX='-qnocommon'
12091            lt_prog_compiler_wl_CXX='-Wl,'
12092            ;;
12093          esac
12094        ;;
12095       dgux*)
12096         case $cc_basename in
12097           ec++*)
12098             lt_prog_compiler_pic_CXX='-KPIC'
12099             ;;
12100           ghcx*)
12101             # Green Hills C++ Compiler
12102             lt_prog_compiler_pic_CXX='-pic'
12103             ;;
12104           *)
12105             ;;
12106         esac
12107         ;;
12108       freebsd* | dragonfly*)
12109         # FreeBSD uses GNU C++
12110         ;;
12111       hpux9* | hpux10* | hpux11*)
12112         case $cc_basename in
12113           CC*)
12114             lt_prog_compiler_wl_CXX='-Wl,'
12115             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12116             if test "$host_cpu" != ia64; then
12117               lt_prog_compiler_pic_CXX='+Z'
12118             fi
12119             ;;
12120           aCC*)
12121             lt_prog_compiler_wl_CXX='-Wl,'
12122             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12123             case $host_cpu in
12124             hppa*64*|ia64*)
12125               # +Z the default
12126               ;;
12127             *)
12128               lt_prog_compiler_pic_CXX='+Z'
12129               ;;
12130             esac
12131             ;;
12132           *)
12133             ;;
12134         esac
12135         ;;
12136       interix*)
12137         # This is c89, which is MS Visual C++ (no shared libs)
12138         # Anyone wants to do a port?
12139         ;;
12140       irix5* | irix6* | nonstopux*)
12141         case $cc_basename in
12142           CC*)
12143             lt_prog_compiler_wl_CXX='-Wl,'
12144             lt_prog_compiler_static_CXX='-non_shared'
12145             # CC pic flag -KPIC is the default.
12146             ;;
12147           *)
12148             ;;
12149         esac
12150         ;;
12151       linux* | k*bsd*-gnu)
12152         case $cc_basename in
12153           KCC*)
12154             # KAI C++ Compiler
12155             lt_prog_compiler_wl_CXX='--backend -Wl,'
12156             lt_prog_compiler_pic_CXX='-fPIC'
12157             ;;
12158           icpc* | ecpc*)
12159             # Intel C++
12160             lt_prog_compiler_wl_CXX='-Wl,'
12161             lt_prog_compiler_pic_CXX='-KPIC'
12162             lt_prog_compiler_static_CXX='-static'
12163             ;;
12164           pgCC*)
12165             # Portland Group C++ compiler.
12166             lt_prog_compiler_wl_CXX='-Wl,'
12167             lt_prog_compiler_pic_CXX='-fpic'
12168             lt_prog_compiler_static_CXX='-Bstatic'
12169             ;;
12170           cxx*)
12171             # Compaq C++
12172             # Make sure the PIC flag is empty.  It appears that all Alpha
12173             # Linux and Compaq Tru64 Unix objects are PIC.
12174             lt_prog_compiler_pic_CXX=
12175             lt_prog_compiler_static_CXX='-non_shared'
12176             ;;
12177           *)
12178             ;;
12179         esac
12180         ;;
12181       lynxos*)
12182         ;;
12183       m88k*)
12184         ;;
12185       mvs*)
12186         case $cc_basename in
12187           cxx*)
12188             lt_prog_compiler_pic_CXX='-W c,exportall'
12189             ;;
12190           *)
12191             ;;
12192         esac
12193         ;;
12194       netbsd* | netbsdelf*-gnu)
12195         ;;
12196       osf3* | osf4* | osf5*)
12197         case $cc_basename in
12198           KCC*)
12199             lt_prog_compiler_wl_CXX='--backend -Wl,'
12200             ;;
12201           RCC*)
12202             # Rational C++ 2.4.1
12203             lt_prog_compiler_pic_CXX='-pic'
12204             ;;
12205           cxx*)
12206             # Digital/Compaq C++
12207             lt_prog_compiler_wl_CXX='-Wl,'
12208             # Make sure the PIC flag is empty.  It appears that all Alpha
12209             # Linux and Compaq Tru64 Unix objects are PIC.
12210             lt_prog_compiler_pic_CXX=
12211             lt_prog_compiler_static_CXX='-non_shared'
12212             ;;
12213           *)
12214             ;;
12215         esac
12216         ;;
12217       psos*)
12218         ;;
12219       solaris*)
12220         case $cc_basename in
12221           CC*)
12222             # Sun C++ 4.2, 5.x and Centerline C++
12223             lt_prog_compiler_pic_CXX='-KPIC'
12224             lt_prog_compiler_static_CXX='-Bstatic'
12225             lt_prog_compiler_wl_CXX='-Qoption ld '
12226             ;;
12227           gcx*)
12228             # Green Hills C++ Compiler
12229             lt_prog_compiler_pic_CXX='-PIC'
12230             ;;
12231           *)
12232             ;;
12233         esac
12234         ;;
12235       sunos4*)
12236         case $cc_basename in
12237           CC*)
12238             # Sun C++ 4.x
12239             lt_prog_compiler_pic_CXX='-pic'
12240             lt_prog_compiler_static_CXX='-Bstatic'
12241             ;;
12242           lcc*)
12243             # Lucid
12244             lt_prog_compiler_pic_CXX='-pic'
12245             ;;
12246           *)
12247             ;;
12248         esac
12249         ;;
12250       tandem*)
12251         case $cc_basename in
12252           NCC*)
12253             # NonStop-UX NCC 3.20
12254             lt_prog_compiler_pic_CXX='-KPIC'
12255             ;;
12256           *)
12257             ;;
12258         esac
12259         ;;
12260       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12261         case $cc_basename in
12262           CC*)
12263             lt_prog_compiler_wl_CXX='-Wl,'
12264             lt_prog_compiler_pic_CXX='-KPIC'
12265             lt_prog_compiler_static_CXX='-Bstatic'
12266             ;;
12267         esac
12268         ;;
12269       vxworks*)
12270         ;;
12271       *)
12272         lt_prog_compiler_can_build_shared_CXX=no
12273         ;;
12274     esac
12275   fi
12276
12277 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12278 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12279
12280 #
12281 # Check to make sure the PIC flag actually works.
12282 #
12283 if test -n "$lt_prog_compiler_pic_CXX"; then
12284
12285 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12286 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12287 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290   lt_prog_compiler_pic_works_CXX=no
12291   ac_outfile=conftest.$ac_objext
12292    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12293    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12294    # Insert the option either (1) after the last *FLAGS variable, or
12295    # (2) before a word containing "conftest.", or (3) at the end.
12296    # Note that $ac_compile itself does not contain backslashes and begins
12297    # with a dollar sign (not a hyphen), so the echo should work correctly.
12298    # The option is referenced via a variable to avoid confusing sed.
12299    lt_compile=`echo "$ac_compile" | $SED \
12300    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12301    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12302    -e 's:$: $lt_compiler_flag:'`
12303    (eval echo "\"\$as_me:12303: $lt_compile\"" >&5)
12304    (eval "$lt_compile" 2>conftest.err)
12305    ac_status=$?
12306    cat conftest.err >&5
12307    echo "$as_me:12307: \$? = $ac_status" >&5
12308    if (exit $ac_status) && test -s "$ac_outfile"; then
12309      # The compiler can only warn and ignore the option if not recognized
12310      # So say no if there are warnings other than the usual output.
12311      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12312      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12313      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12314        lt_prog_compiler_pic_works_CXX=yes
12315      fi
12316    fi
12317    $rm conftest*
12318
12319 fi
12320 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12321 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12322
12323 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12324     case $lt_prog_compiler_pic_CXX in
12325      "" | " "*) ;;
12326      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12327      esac
12328 else
12329     lt_prog_compiler_pic_CXX=
12330      lt_prog_compiler_can_build_shared_CXX=no
12331 fi
12332
12333 fi
12334 case $host_os in
12335   # For platforms which do not support PIC, -DPIC is meaningless:
12336   *djgpp*)
12337     lt_prog_compiler_pic_CXX=
12338     ;;
12339   *)
12340     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12341     ;;
12342 esac
12343
12344 #
12345 # Check to make sure the static flag actually works.
12346 #
12347 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12348 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12349 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12350 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12351   echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353   lt_prog_compiler_static_works_CXX=no
12354    save_LDFLAGS="$LDFLAGS"
12355    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12356    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12357    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12358      # The linker can only warn and ignore the option if not recognized
12359      # So say no if there are warnings
12360      if test -s conftest.err; then
12361        # Append any errors to the config.log.
12362        cat conftest.err 1>&5
12363        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12364        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12365        if diff conftest.exp conftest.er2 >/dev/null; then
12366          lt_prog_compiler_static_works_CXX=yes
12367        fi
12368      else
12369        lt_prog_compiler_static_works_CXX=yes
12370      fi
12371    fi
12372    $rm conftest*
12373    LDFLAGS="$save_LDFLAGS"
12374
12375 fi
12376 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12377 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12378
12379 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12380     :
12381 else
12382     lt_prog_compiler_static_CXX=
12383 fi
12384
12385
12386 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12387 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12388 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12389   echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391   lt_cv_prog_compiler_c_o_CXX=no
12392    $rm -r conftest 2>/dev/null
12393    mkdir conftest
12394    cd conftest
12395    mkdir out
12396    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12397
12398    lt_compiler_flag="-o out/conftest2.$ac_objext"
12399    # Insert the option either (1) after the last *FLAGS variable, or
12400    # (2) before a word containing "conftest.", or (3) at the end.
12401    # Note that $ac_compile itself does not contain backslashes and begins
12402    # with a dollar sign (not a hyphen), so the echo should work correctly.
12403    lt_compile=`echo "$ac_compile" | $SED \
12404    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12406    -e 's:$: $lt_compiler_flag:'`
12407    (eval echo "\"\$as_me:12407: $lt_compile\"" >&5)
12408    (eval "$lt_compile" 2>out/conftest.err)
12409    ac_status=$?
12410    cat out/conftest.err >&5
12411    echo "$as_me:12411: \$? = $ac_status" >&5
12412    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12413    then
12414      # The compiler can only warn and ignore the option if not recognized
12415      # So say no if there are warnings
12416      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12417      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12418      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12419        lt_cv_prog_compiler_c_o_CXX=yes
12420      fi
12421    fi
12422    chmod u+w . 2>&5
12423    $rm conftest*
12424    # SGI C++ compiler will create directory out/ii_files/ for
12425    # template instantiation
12426    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12427    $rm out/* && rmdir out
12428    cd ..
12429    rmdir conftest
12430    $rm conftest*
12431
12432 fi
12433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12434 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12435
12436
12437 hard_links="nottested"
12438 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12439   # do not overwrite the value of need_locks provided by the user
12440   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12441 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12442   hard_links=yes
12443   $rm conftest*
12444   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12445   touch conftest.a
12446   ln conftest.a conftest.b 2>&5 || hard_links=no
12447   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12448   { echo "$as_me:$LINENO: result: $hard_links" >&5
12449 echo "${ECHO_T}$hard_links" >&6; }
12450   if test "$hard_links" = no; then
12451     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12452 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12453     need_locks=warn
12454   fi
12455 else
12456   need_locks=no
12457 fi
12458
12459 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12460 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12461
12462   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12463   case $host_os in
12464   aix4* | aix5*)
12465     # If we're using GNU nm, then we don't want the "-C" option.
12466     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12467     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12468       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'
12469     else
12470       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'
12471     fi
12472     ;;
12473   pw32*)
12474     export_symbols_cmds_CXX="$ltdll_cmds"
12475   ;;
12476   cygwin* | mingw*)
12477     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'
12478   ;;
12479   linux* | k*bsd*-gnu)
12480     link_all_deplibs_CXX=no
12481   ;;
12482   *)
12483     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12484   ;;
12485   esac
12486
12487 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12488 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12489 test "$ld_shlibs_CXX" = no && can_build_shared=no
12490
12491 #
12492 # Do we need to explicitly link libc?
12493 #
12494 case "x$archive_cmds_need_lc_CXX" in
12495 x|xyes)
12496   # Assume -lc should be added
12497   archive_cmds_need_lc_CXX=yes
12498
12499   if test "$enable_shared" = yes && test "$GCC" = yes; then
12500     case $archive_cmds_CXX in
12501     *'~'*)
12502       # FIXME: we may have to deal with multi-command sequences.
12503       ;;
12504     '$CC '*)
12505       # Test whether the compiler implicitly links with -lc since on some
12506       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12507       # to ld, don't add -lc before -lgcc.
12508       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12509 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12510       $rm conftest*
12511       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12512
12513       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514   (eval $ac_compile) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } 2>conftest.err; then
12518         soname=conftest
12519         lib=conftest
12520         libobjs=conftest.$ac_objext
12521         deplibs=
12522         wl=$lt_prog_compiler_wl_CXX
12523         pic_flag=$lt_prog_compiler_pic_CXX
12524         compiler_flags=-v
12525         linker_flags=-v
12526         verstring=
12527         output_objdir=.
12528         libname=conftest
12529         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12530         allow_undefined_flag_CXX=
12531         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12532   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }
12536         then
12537           archive_cmds_need_lc_CXX=no
12538         else
12539           archive_cmds_need_lc_CXX=yes
12540         fi
12541         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12542       else
12543         cat conftest.err 1>&5
12544       fi
12545       $rm conftest*
12546       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12547 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12548       ;;
12549     esac
12550   fi
12551   ;;
12552 esac
12553
12554 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12556 library_names_spec=
12557 libname_spec='lib$name'
12558 soname_spec=
12559 shrext_cmds=".so"
12560 postinstall_cmds=
12561 postuninstall_cmds=
12562 finish_cmds=
12563 finish_eval=
12564 shlibpath_var=
12565 shlibpath_overrides_runpath=unknown
12566 version_type=none
12567 dynamic_linker="$host_os ld.so"
12568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12569 if test "$GCC" = yes; then
12570   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12571   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12572     # if the path contains ";" then we assume it to be the separator
12573     # otherwise default to the standard path separator (i.e. ":") - it is
12574     # assumed that no part of a normal pathname contains ";" but that should
12575     # okay in the real world where ";" in dirpaths is itself problematic.
12576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12577   else
12578     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12579   fi
12580 else
12581   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12582 fi
12583 need_lib_prefix=unknown
12584 hardcode_into_libs=no
12585
12586 # when you set need_version to no, make sure it does not cause -set_version
12587 # flags to be left without arguments
12588 need_version=unknown
12589
12590 case $host_os in
12591 aix3*)
12592   version_type=linux
12593   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12594   shlibpath_var=LIBPATH
12595
12596   # AIX 3 has no versioning support, so we append a major version to the name.
12597   soname_spec='${libname}${release}${shared_ext}$major'
12598   ;;
12599
12600 aix4* | aix5*)
12601   version_type=linux
12602   need_lib_prefix=no
12603   need_version=no
12604   hardcode_into_libs=yes
12605   if test "$host_cpu" = ia64; then
12606     # AIX 5 supports IA64
12607     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12608     shlibpath_var=LD_LIBRARY_PATH
12609   else
12610     # With GCC up to 2.95.x, collect2 would create an import file
12611     # for dependence libraries.  The import file would start with
12612     # the line `#! .'.  This would cause the generated library to
12613     # depend on `.', always an invalid library.  This was fixed in
12614     # development snapshots of GCC prior to 3.0.
12615     case $host_os in
12616       aix4 | aix4.[01] | aix4.[01].*)
12617       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12618            echo ' yes '
12619            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12620         :
12621       else
12622         can_build_shared=no
12623       fi
12624       ;;
12625     esac
12626     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12627     # soname into executable. Probably we can add versioning support to
12628     # collect2, so additional links can be useful in future.
12629     if test "$aix_use_runtimelinking" = yes; then
12630       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12631       # instead of lib<name>.a to let people know that these are not
12632       # typical AIX shared libraries.
12633       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12634     else
12635       # We preserve .a as extension for shared libraries through AIX4.2
12636       # and later when we are not doing run time linking.
12637       library_names_spec='${libname}${release}.a $libname.a'
12638       soname_spec='${libname}${release}${shared_ext}$major'
12639     fi
12640     shlibpath_var=LIBPATH
12641   fi
12642   ;;
12643
12644 amigaos*)
12645   library_names_spec='$libname.ixlibrary $libname.a'
12646   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12647   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'
12648   ;;
12649
12650 beos*)
12651   library_names_spec='${libname}${shared_ext}'
12652   dynamic_linker="$host_os ld.so"
12653   shlibpath_var=LIBRARY_PATH
12654   ;;
12655
12656 bsdi[45]*)
12657   version_type=linux
12658   need_version=no
12659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12660   soname_spec='${libname}${release}${shared_ext}$major'
12661   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12662   shlibpath_var=LD_LIBRARY_PATH
12663   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12664   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12665   # the default ld.so.conf also contains /usr/contrib/lib and
12666   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12667   # libtool to hard-code these into programs
12668   ;;
12669
12670 cygwin* | mingw* | pw32*)
12671   version_type=windows
12672   shrext_cmds=".dll"
12673   need_version=no
12674   need_lib_prefix=no
12675
12676   case $GCC,$host_os in
12677   yes,cygwin* | yes,mingw* | yes,pw32*)
12678     library_names_spec='$libname.dll.a'
12679     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12680     postinstall_cmds='base_file=`basename \${file}`~
12681       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12682       dldir=$destdir/`dirname \$dlpath`~
12683       test -d \$dldir || mkdir -p \$dldir~
12684       $install_prog $dir/$dlname \$dldir/$dlname~
12685       chmod a+x \$dldir/$dlname'
12686     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12687       dlpath=$dir/\$dldll~
12688        $rm \$dlpath'
12689     shlibpath_overrides_runpath=yes
12690
12691     case $host_os in
12692     cygwin*)
12693       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12694       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12695       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12696       ;;
12697     mingw*)
12698       # MinGW DLLs use traditional 'lib' prefix
12699       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12700       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12701       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12702         # It is most probably a Windows format PATH printed by
12703         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12704         # path with ; separators, and with drive letters. We can handle the
12705         # drive letters (cygwin fileutils understands them), so leave them,
12706         # especially as we might pass files found there to a mingw objdump,
12707         # which wouldn't understand a cygwinified path. Ahh.
12708         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12709       else
12710         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12711       fi
12712       ;;
12713     pw32*)
12714       # pw32 DLLs use 'pw' prefix rather than 'lib'
12715       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12716       ;;
12717     esac
12718     ;;
12719
12720   *)
12721     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12722     ;;
12723   esac
12724   dynamic_linker='Win32 ld.exe'
12725   # FIXME: first we should search . and the directory the executable is in
12726   shlibpath_var=PATH
12727   ;;
12728
12729 darwin* | rhapsody*)
12730   dynamic_linker="$host_os dyld"
12731   version_type=darwin
12732   need_lib_prefix=no
12733   need_version=no
12734   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12735   soname_spec='${libname}${release}${major}$shared_ext'
12736   shlibpath_overrides_runpath=yes
12737   shlibpath_var=DYLD_LIBRARY_PATH
12738   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12739   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12740   if test "$GCC" = yes; then
12741     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"`
12742   else
12743     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12744   fi
12745   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12746   ;;
12747
12748 dgux*)
12749   version_type=linux
12750   need_lib_prefix=no
12751   need_version=no
12752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12753   soname_spec='${libname}${release}${shared_ext}$major'
12754   shlibpath_var=LD_LIBRARY_PATH
12755   ;;
12756
12757 freebsd1*)
12758   dynamic_linker=no
12759   ;;
12760
12761 freebsd* | dragonfly*)
12762   # DragonFly does not have aout.  When/if they implement a new
12763   # versioning mechanism, adjust this.
12764   if test -x /usr/bin/objformat; then
12765     objformat=`/usr/bin/objformat`
12766   else
12767     case $host_os in
12768     freebsd[123]*) objformat=aout ;;
12769     *) objformat=elf ;;
12770     esac
12771   fi
12772   version_type=freebsd-$objformat
12773   case $version_type in
12774     freebsd-elf*)
12775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12776       need_version=no
12777       need_lib_prefix=no
12778       ;;
12779     freebsd-*)
12780       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12781       need_version=yes
12782       ;;
12783   esac
12784   shlibpath_var=LD_LIBRARY_PATH
12785   case $host_os in
12786   freebsd2*)
12787     shlibpath_overrides_runpath=yes
12788     ;;
12789   freebsd3.[01]* | freebsdelf3.[01]*)
12790     shlibpath_overrides_runpath=yes
12791     hardcode_into_libs=yes
12792     ;;
12793   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12794   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12795     shlibpath_overrides_runpath=no
12796     hardcode_into_libs=yes
12797     ;;
12798   freebsd*) # from 4.6 on
12799     shlibpath_overrides_runpath=yes
12800     hardcode_into_libs=yes
12801     ;;
12802   esac
12803   ;;
12804
12805 gnu*)
12806   version_type=linux
12807   need_lib_prefix=no
12808   need_version=no
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12810   soname_spec='${libname}${release}${shared_ext}$major'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   hardcode_into_libs=yes
12813   ;;
12814
12815 hpux9* | hpux10* | hpux11*)
12816   # Give a soname corresponding to the major version so that dld.sl refuses to
12817   # link against other versions.
12818   version_type=sunos
12819   need_lib_prefix=no
12820   need_version=no
12821   case $host_cpu in
12822   ia64*)
12823     shrext_cmds='.so'
12824     hardcode_into_libs=yes
12825     dynamic_linker="$host_os dld.so"
12826     shlibpath_var=LD_LIBRARY_PATH
12827     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829     soname_spec='${libname}${release}${shared_ext}$major'
12830     if test "X$HPUX_IA64_MODE" = X32; then
12831       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12832     else
12833       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12834     fi
12835     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12836     ;;
12837    hppa*64*)
12838      shrext_cmds='.sl'
12839      hardcode_into_libs=yes
12840      dynamic_linker="$host_os dld.sl"
12841      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12842      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12843      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844      soname_spec='${libname}${release}${shared_ext}$major'
12845      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12846      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12847      ;;
12848    *)
12849     shrext_cmds='.sl'
12850     dynamic_linker="$host_os dld.sl"
12851     shlibpath_var=SHLIB_PATH
12852     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854     soname_spec='${libname}${release}${shared_ext}$major'
12855     ;;
12856   esac
12857   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12858   postinstall_cmds='chmod 555 $lib'
12859   ;;
12860
12861 interix3*)
12862   version_type=linux
12863   need_lib_prefix=no
12864   need_version=no
12865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12866   soname_spec='${libname}${release}${shared_ext}$major'
12867   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12868   shlibpath_var=LD_LIBRARY_PATH
12869   shlibpath_overrides_runpath=no
12870   hardcode_into_libs=yes
12871   ;;
12872
12873 irix5* | irix6* | nonstopux*)
12874   case $host_os in
12875     nonstopux*) version_type=nonstopux ;;
12876     *)
12877         if test "$lt_cv_prog_gnu_ld" = yes; then
12878                 version_type=linux
12879         else
12880                 version_type=irix
12881         fi ;;
12882   esac
12883   need_lib_prefix=no
12884   need_version=no
12885   soname_spec='${libname}${release}${shared_ext}$major'
12886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12887   case $host_os in
12888   irix5* | nonstopux*)
12889     libsuff= shlibsuff=
12890     ;;
12891   *)
12892     case $LD in # libtool.m4 will add one of these switches to LD
12893     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12894       libsuff= shlibsuff= libmagic=32-bit;;
12895     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12896       libsuff=32 shlibsuff=N32 libmagic=N32;;
12897     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12898       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12899     *) libsuff= shlibsuff= libmagic=never-match;;
12900     esac
12901     ;;
12902   esac
12903   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12904   shlibpath_overrides_runpath=no
12905   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12906   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12907   hardcode_into_libs=yes
12908   ;;
12909
12910 # No shared lib support for Linux oldld, aout, or coff.
12911 linux*oldld* | linux*aout* | linux*coff*)
12912   dynamic_linker=no
12913   ;;
12914
12915 # This must be Linux ELF.
12916 linux* | k*bsd*-gnu)
12917   version_type=linux
12918   need_lib_prefix=no
12919   need_version=no
12920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921   soname_spec='${libname}${release}${shared_ext}$major'
12922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12923   shlibpath_var=LD_LIBRARY_PATH
12924   shlibpath_overrides_runpath=no
12925   # This implies no fast_install, which is unacceptable.
12926   # Some rework will be needed to allow for fast_install
12927   # before this can be enabled.
12928   hardcode_into_libs=yes
12929
12930   # Append ld.so.conf contents to the search path
12931   if test -f /etc/ld.so.conf; then
12932     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' ' '`
12933     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12934   fi
12935
12936   # We used to test for /lib/ld.so.1 and disable shared libraries on
12937   # powerpc, because MkLinux only supported shared libraries with the
12938   # GNU dynamic linker.  Since this was broken with cross compilers,
12939   # most powerpc-linux boxes support dynamic linking these days and
12940   # people can always --disable-shared, the test was removed, and we
12941   # assume the GNU/Linux dynamic linker is in use.
12942   dynamic_linker='GNU/Linux ld.so'
12943   ;;
12944
12945 netbsdelf*-gnu)
12946   version_type=linux
12947   need_lib_prefix=no
12948   need_version=no
12949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12950   soname_spec='${libname}${release}${shared_ext}$major'
12951   shlibpath_var=LD_LIBRARY_PATH
12952   shlibpath_overrides_runpath=no
12953   hardcode_into_libs=yes
12954   dynamic_linker='NetBSD ld.elf_so'
12955   ;;
12956
12957 netbsd*)
12958   version_type=sunos
12959   need_lib_prefix=no
12960   need_version=no
12961   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12963     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12964     dynamic_linker='NetBSD (a.out) ld.so'
12965   else
12966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12967     soname_spec='${libname}${release}${shared_ext}$major'
12968     dynamic_linker='NetBSD ld.elf_so'
12969   fi
12970   shlibpath_var=LD_LIBRARY_PATH
12971   shlibpath_overrides_runpath=yes
12972   hardcode_into_libs=yes
12973   ;;
12974
12975 newsos6)
12976   version_type=linux
12977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978   shlibpath_var=LD_LIBRARY_PATH
12979   shlibpath_overrides_runpath=yes
12980   ;;
12981
12982 nto-qnx*)
12983   version_type=linux
12984   need_lib_prefix=no
12985   need_version=no
12986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987   soname_spec='${libname}${release}${shared_ext}$major'
12988   shlibpath_var=LD_LIBRARY_PATH
12989   shlibpath_overrides_runpath=yes
12990   ;;
12991
12992 openbsd*)
12993   version_type=sunos
12994   sys_lib_dlsearch_path_spec="/usr/lib"
12995   need_lib_prefix=no
12996   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12997   case $host_os in
12998     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12999     *)                         need_version=no  ;;
13000   esac
13001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13002   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13003   shlibpath_var=LD_LIBRARY_PATH
13004   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13005     case $host_os in
13006       openbsd2.[89] | openbsd2.[89].*)
13007         shlibpath_overrides_runpath=no
13008         ;;
13009       *)
13010         shlibpath_overrides_runpath=yes
13011         ;;
13012       esac
13013   else
13014     shlibpath_overrides_runpath=yes
13015   fi
13016   ;;
13017
13018 os2*)
13019   libname_spec='$name'
13020   shrext_cmds=".dll"
13021   need_lib_prefix=no
13022   library_names_spec='$libname${shared_ext} $libname.a'
13023   dynamic_linker='OS/2 ld.exe'
13024   shlibpath_var=LIBPATH
13025   ;;
13026
13027 osf3* | osf4* | osf5*)
13028   version_type=osf
13029   need_lib_prefix=no
13030   need_version=no
13031   soname_spec='${libname}${release}${shared_ext}$major'
13032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033   shlibpath_var=LD_LIBRARY_PATH
13034   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13035   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13036   ;;
13037
13038 solaris*)
13039   version_type=linux
13040   need_lib_prefix=no
13041   need_version=no
13042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043   soname_spec='${libname}${release}${shared_ext}$major'
13044   shlibpath_var=LD_LIBRARY_PATH
13045   shlibpath_overrides_runpath=yes
13046   hardcode_into_libs=yes
13047   # ldd complains unless libraries are executable
13048   postinstall_cmds='chmod +x $lib'
13049   ;;
13050
13051 sunos4*)
13052   version_type=sunos
13053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13054   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13055   shlibpath_var=LD_LIBRARY_PATH
13056   shlibpath_overrides_runpath=yes
13057   if test "$with_gnu_ld" = yes; then
13058     need_lib_prefix=no
13059   fi
13060   need_version=yes
13061   ;;
13062
13063 sysv4 | sysv4.3*)
13064   version_type=linux
13065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066   soname_spec='${libname}${release}${shared_ext}$major'
13067   shlibpath_var=LD_LIBRARY_PATH
13068   case $host_vendor in
13069     sni)
13070       shlibpath_overrides_runpath=no
13071       need_lib_prefix=no
13072       export_dynamic_flag_spec='${wl}-Blargedynsym'
13073       runpath_var=LD_RUN_PATH
13074       ;;
13075     siemens)
13076       need_lib_prefix=no
13077       ;;
13078     motorola)
13079       need_lib_prefix=no
13080       need_version=no
13081       shlibpath_overrides_runpath=no
13082       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13083       ;;
13084   esac
13085   ;;
13086
13087 sysv4*MP*)
13088   if test -d /usr/nec ;then
13089     version_type=linux
13090     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13091     soname_spec='$libname${shared_ext}.$major'
13092     shlibpath_var=LD_LIBRARY_PATH
13093   fi
13094   ;;
13095
13096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13097   version_type=freebsd-elf
13098   need_lib_prefix=no
13099   need_version=no
13100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13101   soname_spec='${libname}${release}${shared_ext}$major'
13102   shlibpath_var=LD_LIBRARY_PATH
13103   hardcode_into_libs=yes
13104   if test "$with_gnu_ld" = yes; then
13105     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13106     shlibpath_overrides_runpath=no
13107   else
13108     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13109     shlibpath_overrides_runpath=yes
13110     case $host_os in
13111       sco3.2v5*)
13112         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13113         ;;
13114     esac
13115   fi
13116   sys_lib_dlsearch_path_spec='/usr/lib'
13117   ;;
13118
13119 uts4*)
13120   version_type=linux
13121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13122   soname_spec='${libname}${release}${shared_ext}$major'
13123   shlibpath_var=LD_LIBRARY_PATH
13124   ;;
13125
13126 *)
13127   dynamic_linker=no
13128   ;;
13129 esac
13130 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13131 echo "${ECHO_T}$dynamic_linker" >&6; }
13132 test "$dynamic_linker" = no && can_build_shared=no
13133
13134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13135 if test "$GCC" = yes; then
13136   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13137 fi
13138
13139 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13140 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13141 hardcode_action_CXX=
13142 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13143    test -n "$runpath_var_CXX" || \
13144    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13145
13146   # We can hardcode non-existant directories.
13147   if test "$hardcode_direct_CXX" != no &&
13148      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13149      # have to relink, otherwise we might link with an installed library
13150      # when we should be linking with a yet-to-be-installed one
13151      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13152      test "$hardcode_minus_L_CXX" != no; then
13153     # Linking always hardcodes the temporary library directory.
13154     hardcode_action_CXX=relink
13155   else
13156     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13157     hardcode_action_CXX=immediate
13158   fi
13159 else
13160   # We cannot hardcode anything, or else we can only hardcode existing
13161   # directories.
13162   hardcode_action_CXX=unsupported
13163 fi
13164 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13165 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13166
13167 if test "$hardcode_action_CXX" = relink; then
13168   # Fast installation is not supported
13169   enable_fast_install=no
13170 elif test "$shlibpath_overrides_runpath" = yes ||
13171      test "$enable_shared" = no; then
13172   # Fast installation is not necessary
13173   enable_fast_install=needless
13174 fi
13175
13176
13177 # The else clause should only fire when bootstrapping the
13178 # libtool distribution, otherwise you forgot to ship ltmain.sh
13179 # with your package, and you will get complaints that there are
13180 # no rules to generate ltmain.sh.
13181 if test -f "$ltmain"; then
13182   # See if we are running on zsh, and set the options which allow our commands through
13183   # without removal of \ escapes.
13184   if test -n "${ZSH_VERSION+set}" ; then
13185     setopt NO_GLOB_SUBST
13186   fi
13187   # Now quote all the things that may contain metacharacters while being
13188   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13189   # variables and quote the copies for generation of the libtool script.
13190   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13191     SED SHELL STRIP \
13192     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13193     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13194     deplibs_check_method reload_flag reload_cmds need_locks \
13195     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13196     lt_cv_sys_global_symbol_to_c_name_address \
13197     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13198     old_postinstall_cmds old_postuninstall_cmds \
13199     compiler_CXX \
13200     CC_CXX \
13201     LD_CXX \
13202     lt_prog_compiler_wl_CXX \
13203     lt_prog_compiler_pic_CXX \
13204     lt_prog_compiler_static_CXX \
13205     lt_prog_compiler_no_builtin_flag_CXX \
13206     export_dynamic_flag_spec_CXX \
13207     thread_safe_flag_spec_CXX \
13208     whole_archive_flag_spec_CXX \
13209     enable_shared_with_static_runtimes_CXX \
13210     old_archive_cmds_CXX \
13211     old_archive_from_new_cmds_CXX \
13212     predep_objects_CXX \
13213     postdep_objects_CXX \
13214     predeps_CXX \
13215     postdeps_CXX \
13216     compiler_lib_search_path_CXX \
13217     archive_cmds_CXX \
13218     archive_expsym_cmds_CXX \
13219     postinstall_cmds_CXX \
13220     postuninstall_cmds_CXX \
13221     old_archive_from_expsyms_cmds_CXX \
13222     allow_undefined_flag_CXX \
13223     no_undefined_flag_CXX \
13224     export_symbols_cmds_CXX \
13225     hardcode_libdir_flag_spec_CXX \
13226     hardcode_libdir_flag_spec_ld_CXX \
13227     hardcode_libdir_separator_CXX \
13228     hardcode_automatic_CXX \
13229     module_cmds_CXX \
13230     module_expsym_cmds_CXX \
13231     lt_cv_prog_compiler_c_o_CXX \
13232     exclude_expsyms_CXX \
13233     include_expsyms_CXX; do
13234
13235     case $var in
13236     old_archive_cmds_CXX | \
13237     old_archive_from_new_cmds_CXX | \
13238     archive_cmds_CXX | \
13239     archive_expsym_cmds_CXX | \
13240     module_cmds_CXX | \
13241     module_expsym_cmds_CXX | \
13242     old_archive_from_expsyms_cmds_CXX | \
13243     export_symbols_cmds_CXX | \
13244     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13245     postinstall_cmds | postuninstall_cmds | \
13246     old_postinstall_cmds | old_postuninstall_cmds | \
13247     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13248       # Double-quote double-evaled strings.
13249       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13250       ;;
13251     *)
13252       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13253       ;;
13254     esac
13255   done
13256
13257   case $lt_echo in
13258   *'\$0 --fallback-echo"')
13259     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13260     ;;
13261   esac
13262
13263 cfgfile="$ofile"
13264
13265   cat <<__EOF__ >> "$cfgfile"
13266 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13267
13268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13269
13270 # Shell to use when invoking shell scripts.
13271 SHELL=$lt_SHELL
13272
13273 # Whether or not to build shared libraries.
13274 build_libtool_libs=$enable_shared
13275
13276 # Whether or not to build static libraries.
13277 build_old_libs=$enable_static
13278
13279 # Whether or not to add -lc for building shared libraries.
13280 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13281
13282 # Whether or not to disallow shared libs when runtime libs are static
13283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13284
13285 # Whether or not to optimize for fast installation.
13286 fast_install=$enable_fast_install
13287
13288 # The host system.
13289 host_alias=$host_alias
13290 host=$host
13291 host_os=$host_os
13292
13293 # The build system.
13294 build_alias=$build_alias
13295 build=$build
13296 build_os=$build_os
13297
13298 # An echo program that does not interpret backslashes.
13299 echo=$lt_echo
13300
13301 # The archiver.
13302 AR=$lt_AR
13303 AR_FLAGS=$lt_AR_FLAGS
13304
13305 # A C compiler.
13306 LTCC=$lt_LTCC
13307
13308 # LTCC compiler flags.
13309 LTCFLAGS=$lt_LTCFLAGS
13310
13311 # A language-specific compiler.
13312 CC=$lt_compiler_CXX
13313
13314 # Is the compiler the GNU C compiler?
13315 with_gcc=$GCC_CXX
13316
13317 # An ERE matcher.
13318 EGREP=$lt_EGREP
13319
13320 # The linker used to build libraries.
13321 LD=$lt_LD_CXX
13322
13323 # Whether we need hard or soft links.
13324 LN_S=$lt_LN_S
13325
13326 # A BSD-compatible nm program.
13327 NM=$lt_NM
13328
13329 # A symbol stripping program
13330 STRIP=$lt_STRIP
13331
13332 # Used to examine libraries when file_magic_cmd begins "file"
13333 MAGIC_CMD=$MAGIC_CMD
13334
13335 # Used on cygwin: DLL creation program.
13336 DLLTOOL="$DLLTOOL"
13337
13338 # Used on cygwin: object dumper.
13339 OBJDUMP="$OBJDUMP"
13340
13341 # Used on cygwin: assembler.
13342 AS="$AS"
13343
13344 # The name of the directory that contains temporary libtool files.
13345 objdir=$objdir
13346
13347 # How to create reloadable object files.
13348 reload_flag=$lt_reload_flag
13349 reload_cmds=$lt_reload_cmds
13350
13351 # How to pass a linker flag through the compiler.
13352 wl=$lt_lt_prog_compiler_wl_CXX
13353
13354 # Object file suffix (normally "o").
13355 objext="$ac_objext"
13356
13357 # Old archive suffix (normally "a").
13358 libext="$libext"
13359
13360 # Shared library suffix (normally ".so").
13361 shrext_cmds='$shrext_cmds'
13362
13363 # Executable file suffix (normally "").
13364 exeext="$exeext"
13365
13366 # Additional compiler flags for building library objects.
13367 pic_flag=$lt_lt_prog_compiler_pic_CXX
13368 pic_mode=$pic_mode
13369
13370 # What is the maximum length of a command?
13371 max_cmd_len=$lt_cv_sys_max_cmd_len
13372
13373 # Does compiler simultaneously support -c and -o options?
13374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13375
13376 # Must we lock files when doing compilation?
13377 need_locks=$lt_need_locks
13378
13379 # Do we need the lib prefix for modules?
13380 need_lib_prefix=$need_lib_prefix
13381
13382 # Do we need a version for libraries?
13383 need_version=$need_version
13384
13385 # Whether dlopen is supported.
13386 dlopen_support=$enable_dlopen
13387
13388 # Whether dlopen of programs is supported.
13389 dlopen_self=$enable_dlopen_self
13390
13391 # Whether dlopen of statically linked programs is supported.
13392 dlopen_self_static=$enable_dlopen_self_static
13393
13394 # Compiler flag to prevent dynamic linking.
13395 link_static_flag=$lt_lt_prog_compiler_static_CXX
13396
13397 # Compiler flag to turn off builtin functions.
13398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13399
13400 # Compiler flag to allow reflexive dlopens.
13401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13402
13403 # Compiler flag to generate shared objects directly from archives.
13404 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13405
13406 # Compiler flag to generate thread-safe objects.
13407 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13408
13409 # Library versioning type.
13410 version_type=$version_type
13411
13412 # Format of library name prefix.
13413 libname_spec=$lt_libname_spec
13414
13415 # List of archive names.  First name is the real one, the rest are links.
13416 # The last name is the one that the linker finds with -lNAME.
13417 library_names_spec=$lt_library_names_spec
13418
13419 # The coded name of the library, if different from the real name.
13420 soname_spec=$lt_soname_spec
13421
13422 # Commands used to build and install an old-style archive.
13423 RANLIB=$lt_RANLIB
13424 old_archive_cmds=$lt_old_archive_cmds_CXX
13425 old_postinstall_cmds=$lt_old_postinstall_cmds
13426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13427
13428 # Create an old-style archive from a shared archive.
13429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13430
13431 # Create a temporary old-style archive to link instead of a shared archive.
13432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13433
13434 # Commands used to build and install a shared archive.
13435 archive_cmds=$lt_archive_cmds_CXX
13436 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13437 postinstall_cmds=$lt_postinstall_cmds
13438 postuninstall_cmds=$lt_postuninstall_cmds
13439
13440 # Commands used to build a loadable module (assumed same as above if empty)
13441 module_cmds=$lt_module_cmds_CXX
13442 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13443
13444 # Commands to strip libraries.
13445 old_striplib=$lt_old_striplib
13446 striplib=$lt_striplib
13447
13448 # Dependencies to place before the objects being linked to create a
13449 # shared library.
13450 predep_objects=$lt_predep_objects_CXX
13451
13452 # Dependencies to place after the objects being linked to create a
13453 # shared library.
13454 postdep_objects=$lt_postdep_objects_CXX
13455
13456 # Dependencies to place before the objects being linked to create a
13457 # shared library.
13458 predeps=$lt_predeps_CXX
13459
13460 # Dependencies to place after the objects being linked to create a
13461 # shared library.
13462 postdeps=$lt_postdeps_CXX
13463
13464 # The library search path used internally by the compiler when linking
13465 # a shared library.
13466 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13467
13468 # Method to check whether dependent libraries are shared objects.
13469 deplibs_check_method=$lt_deplibs_check_method
13470
13471 # Command to use when deplibs_check_method == file_magic.
13472 file_magic_cmd=$lt_file_magic_cmd
13473
13474 # Flag that allows shared libraries with undefined symbols to be built.
13475 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13476
13477 # Flag that forces no undefined symbols.
13478 no_undefined_flag=$lt_no_undefined_flag_CXX
13479
13480 # Commands used to finish a libtool library installation in a directory.
13481 finish_cmds=$lt_finish_cmds
13482
13483 # Same as above, but a single script fragment to be evaled but not shown.
13484 finish_eval=$lt_finish_eval
13485
13486 # Take the output of nm and produce a listing of raw symbols and C names.
13487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13488
13489 # Transform the output of nm in a proper C declaration
13490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13491
13492 # Transform the output of nm in a C name address pair
13493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13494
13495 # This is the shared library runtime path variable.
13496 runpath_var=$runpath_var
13497
13498 # This is the shared library path variable.
13499 shlibpath_var=$shlibpath_var
13500
13501 # Is shlibpath searched before the hard-coded library search path?
13502 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13503
13504 # How to hardcode a shared library path into an executable.
13505 hardcode_action=$hardcode_action_CXX
13506
13507 # Whether we should hardcode library paths into libraries.
13508 hardcode_into_libs=$hardcode_into_libs
13509
13510 # Flag to hardcode \$libdir into a binary during linking.
13511 # This must work even if \$libdir does not exist.
13512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13513
13514 # If ld is used when linking, flag to hardcode \$libdir into
13515 # a binary during linking. This must work even if \$libdir does
13516 # not exist.
13517 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13518
13519 # Whether we need a single -rpath flag with a separated argument.
13520 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13521
13522 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13523 # resulting binary.
13524 hardcode_direct=$hardcode_direct_CXX
13525
13526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13527 # resulting binary.
13528 hardcode_minus_L=$hardcode_minus_L_CXX
13529
13530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13531 # the resulting binary.
13532 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13533
13534 # Set to yes if building a shared library automatically hardcodes DIR into the library
13535 # and all subsequent libraries and executables linked against it.
13536 hardcode_automatic=$hardcode_automatic_CXX
13537
13538 # Variables whose values should be saved in libtool wrapper scripts and
13539 # restored at relink time.
13540 variables_saved_for_relink="$variables_saved_for_relink"
13541
13542 # Whether libtool must link a program against all its dependency libraries.
13543 link_all_deplibs=$link_all_deplibs_CXX
13544
13545 # Compile-time system search path for libraries
13546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13547
13548 # Run-time system search path for libraries
13549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13550
13551 # Fix the shell variable \$srcfile for the compiler.
13552 fix_srcfile_path="$fix_srcfile_path_CXX"
13553
13554 # Set to yes if exported symbols are required.
13555 always_export_symbols=$always_export_symbols_CXX
13556
13557 # The commands to list exported symbols.
13558 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13559
13560 # The commands to extract the exported symbol list from a shared archive.
13561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13562
13563 # Symbols that should not be listed in the preloaded symbols.
13564 exclude_expsyms=$lt_exclude_expsyms_CXX
13565
13566 # Symbols that must always be exported.
13567 include_expsyms=$lt_include_expsyms_CXX
13568
13569 # ### END LIBTOOL TAG CONFIG: $tagname
13570
13571 __EOF__
13572
13573
13574 else
13575   # If there is no Makefile yet, we rely on a make rule to execute
13576   # `config.status --recheck' to rerun these tests and create the
13577   # libtool script then.
13578   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13579   if test -f "$ltmain_in"; then
13580     test -f Makefile && make "$ltmain"
13581   fi
13582 fi
13583
13584
13585 ac_ext=c
13586 ac_cpp='$CPP $CPPFLAGS'
13587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13590
13591 CC=$lt_save_CC
13592 LDCXX=$LD
13593 LD=$lt_save_LD
13594 GCC=$lt_save_GCC
13595 with_gnu_ldcxx=$with_gnu_ld
13596 with_gnu_ld=$lt_save_with_gnu_ld
13597 lt_cv_path_LDCXX=$lt_cv_path_LD
13598 lt_cv_path_LD=$lt_save_path_LD
13599 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13600 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13601
13602         else
13603           tagname=""
13604         fi
13605         ;;
13606
13607       F77)
13608         if test -n "$F77" && test "X$F77" != "Xno"; then
13609
13610 ac_ext=f
13611 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13612 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13614
13615
13616 archive_cmds_need_lc_F77=no
13617 allow_undefined_flag_F77=
13618 always_export_symbols_F77=no
13619 archive_expsym_cmds_F77=
13620 export_dynamic_flag_spec_F77=
13621 hardcode_direct_F77=no
13622 hardcode_libdir_flag_spec_F77=
13623 hardcode_libdir_flag_spec_ld_F77=
13624 hardcode_libdir_separator_F77=
13625 hardcode_minus_L_F77=no
13626 hardcode_automatic_F77=no
13627 module_cmds_F77=
13628 module_expsym_cmds_F77=
13629 link_all_deplibs_F77=unknown
13630 old_archive_cmds_F77=$old_archive_cmds
13631 no_undefined_flag_F77=
13632 whole_archive_flag_spec_F77=
13633 enable_shared_with_static_runtimes_F77=no
13634
13635 # Source file extension for f77 test sources.
13636 ac_ext=f
13637
13638 # Object file extension for compiled f77 test sources.
13639 objext=o
13640 objext_F77=$objext
13641
13642 # Code to be used in simple compile tests
13643 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13644
13645 # Code to be used in simple link tests
13646 lt_simple_link_test_code="      program t\n      end\n"
13647
13648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13649
13650 # If no C compiler was specified, use CC.
13651 LTCC=${LTCC-"$CC"}
13652
13653 # If no C compiler flags were specified, use CFLAGS.
13654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13655
13656 # Allow CC to be a program name with arguments.
13657 compiler=$CC
13658
13659
13660 # save warnings/boilerplate of simple test code
13661 ac_outfile=conftest.$ac_objext
13662 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664 _lt_compiler_boilerplate=`cat conftest.err`
13665 $rm conftest*
13666
13667 ac_outfile=conftest.$ac_objext
13668 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13670 _lt_linker_boilerplate=`cat conftest.err`
13671 $rm conftest*
13672
13673
13674 # Allow CC to be a program name with arguments.
13675 lt_save_CC="$CC"
13676 CC=${F77-"f77"}
13677 compiler=$CC
13678 compiler_F77=$CC
13679 for cc_temp in $compiler""; do
13680   case $cc_temp in
13681     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13682     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13683     \-*) ;;
13684     *) break;;
13685   esac
13686 done
13687 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13688
13689
13690 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13691 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13692 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13693 echo "${ECHO_T}$can_build_shared" >&6; }
13694
13695 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13696 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13697 test "$can_build_shared" = "no" && enable_shared=no
13698
13699 # On AIX, shared libraries and static libraries use the same namespace, and
13700 # are all built from PIC.
13701 case $host_os in
13702 aix3*)
13703   test "$enable_shared" = yes && enable_static=no
13704   if test -n "$RANLIB"; then
13705     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13706     postinstall_cmds='$RANLIB $lib'
13707   fi
13708   ;;
13709 aix4* | aix5*)
13710   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13711     test "$enable_shared" = yes && enable_static=no
13712   fi
13713   ;;
13714 esac
13715 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13716 echo "${ECHO_T}$enable_shared" >&6; }
13717
13718 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13719 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13720 # Make sure either enable_shared or enable_static is yes.
13721 test "$enable_shared" = yes || enable_static=yes
13722 { echo "$as_me:$LINENO: result: $enable_static" >&5
13723 echo "${ECHO_T}$enable_static" >&6; }
13724
13725 GCC_F77="$G77"
13726 LD_F77="$LD"
13727
13728 lt_prog_compiler_wl_F77=
13729 lt_prog_compiler_pic_F77=
13730 lt_prog_compiler_static_F77=
13731
13732 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13734
13735   if test "$GCC" = yes; then
13736     lt_prog_compiler_wl_F77='-Wl,'
13737     lt_prog_compiler_static_F77='-static'
13738
13739     case $host_os in
13740       aix*)
13741       # All AIX code is PIC.
13742       if test "$host_cpu" = ia64; then
13743         # AIX 5 now supports IA64 processor
13744         lt_prog_compiler_static_F77='-Bstatic'
13745       fi
13746       ;;
13747
13748     amigaos*)
13749       # FIXME: we need at least 68020 code to build shared libraries, but
13750       # adding the `-m68020' flag to GCC prevents building anything better,
13751       # like `-m68040'.
13752       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13753       ;;
13754
13755     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13756       # PIC is the default for these OSes.
13757       ;;
13758
13759     mingw* | pw32* | os2*)
13760       # This hack is so that the source file can tell whether it is being
13761       # built for inclusion in a dll (and should export symbols for example).
13762       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13763       ;;
13764
13765     darwin* | rhapsody*)
13766       # PIC is the default on this platform
13767       # Common symbols not allowed in MH_DYLIB files
13768       lt_prog_compiler_pic_F77='-fno-common'
13769       ;;
13770
13771     interix3*)
13772       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13773       # Instead, we relocate shared libraries at runtime.
13774       ;;
13775
13776     msdosdjgpp*)
13777       # Just because we use GCC doesn't mean we suddenly get shared libraries
13778       # on systems that don't support them.
13779       lt_prog_compiler_can_build_shared_F77=no
13780       enable_shared=no
13781       ;;
13782
13783     sysv4*MP*)
13784       if test -d /usr/nec; then
13785         lt_prog_compiler_pic_F77=-Kconform_pic
13786       fi
13787       ;;
13788
13789     hpux*)
13790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13791       # not for PA HP-UX.
13792       case $host_cpu in
13793       hppa*64*|ia64*)
13794         # +Z the default
13795         ;;
13796       *)
13797         lt_prog_compiler_pic_F77='-fPIC'
13798         ;;
13799       esac
13800       ;;
13801
13802     *)
13803       lt_prog_compiler_pic_F77='-fPIC'
13804       ;;
13805     esac
13806   else
13807     # PORTME Check for flag to pass linker flags through the system compiler.
13808     case $host_os in
13809     aix*)
13810       lt_prog_compiler_wl_F77='-Wl,'
13811       if test "$host_cpu" = ia64; then
13812         # AIX 5 now supports IA64 processor
13813         lt_prog_compiler_static_F77='-Bstatic'
13814       else
13815         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13816       fi
13817       ;;
13818       darwin*)
13819         # PIC is the default on this platform
13820         # Common symbols not allowed in MH_DYLIB files
13821        case $cc_basename in
13822          xlc*)
13823          lt_prog_compiler_pic_F77='-qnocommon'
13824          lt_prog_compiler_wl_F77='-Wl,'
13825          ;;
13826        esac
13827        ;;
13828
13829     mingw* | pw32* | os2*)
13830       # This hack is so that the source file can tell whether it is being
13831       # built for inclusion in a dll (and should export symbols for example).
13832       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13833       ;;
13834
13835     hpux9* | hpux10* | hpux11*)
13836       lt_prog_compiler_wl_F77='-Wl,'
13837       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13838       # not for PA HP-UX.
13839       case $host_cpu in
13840       hppa*64*|ia64*)
13841         # +Z the default
13842         ;;
13843       *)
13844         lt_prog_compiler_pic_F77='+Z'
13845         ;;
13846       esac
13847       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13848       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13849       ;;
13850
13851     irix5* | irix6* | nonstopux*)
13852       lt_prog_compiler_wl_F77='-Wl,'
13853       # PIC (with -KPIC) is the default.
13854       lt_prog_compiler_static_F77='-non_shared'
13855       ;;
13856
13857     newsos6)
13858       lt_prog_compiler_pic_F77='-KPIC'
13859       lt_prog_compiler_static_F77='-Bstatic'
13860       ;;
13861
13862     linux* | k*bsd*-gnu)
13863       case $cc_basename in
13864       icc* | ecc*)
13865         lt_prog_compiler_wl_F77='-Wl,'
13866         lt_prog_compiler_pic_F77='-KPIC'
13867         lt_prog_compiler_static_F77='-static'
13868         ;;
13869       pgcc* | pgf77* | pgf90* | pgf95*)
13870         # Portland Group compilers (*not* the Pentium gcc compiler,
13871         # which looks to be a dead project)
13872         lt_prog_compiler_wl_F77='-Wl,'
13873         lt_prog_compiler_pic_F77='-fpic'
13874         lt_prog_compiler_static_F77='-Bstatic'
13875         ;;
13876       ccc*)
13877         lt_prog_compiler_wl_F77='-Wl,'
13878         # All Alpha code is PIC.
13879         lt_prog_compiler_static_F77='-non_shared'
13880         ;;
13881       esac
13882       ;;
13883
13884     osf3* | osf4* | osf5*)
13885       lt_prog_compiler_wl_F77='-Wl,'
13886       # All OSF/1 code is PIC.
13887       lt_prog_compiler_static_F77='-non_shared'
13888       ;;
13889
13890     solaris*)
13891       lt_prog_compiler_pic_F77='-KPIC'
13892       lt_prog_compiler_static_F77='-Bstatic'
13893       case $cc_basename in
13894       f77* | f90* | f95*)
13895         lt_prog_compiler_wl_F77='-Qoption ld ';;
13896       *)
13897         lt_prog_compiler_wl_F77='-Wl,';;
13898       esac
13899       ;;
13900
13901     sunos4*)
13902       lt_prog_compiler_wl_F77='-Qoption ld '
13903       lt_prog_compiler_pic_F77='-PIC'
13904       lt_prog_compiler_static_F77='-Bstatic'
13905       ;;
13906
13907     sysv4 | sysv4.2uw2* | sysv4.3*)
13908       lt_prog_compiler_wl_F77='-Wl,'
13909       lt_prog_compiler_pic_F77='-KPIC'
13910       lt_prog_compiler_static_F77='-Bstatic'
13911       ;;
13912
13913     sysv4*MP*)
13914       if test -d /usr/nec ;then
13915         lt_prog_compiler_pic_F77='-Kconform_pic'
13916         lt_prog_compiler_static_F77='-Bstatic'
13917       fi
13918       ;;
13919
13920     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13921       lt_prog_compiler_wl_F77='-Wl,'
13922       lt_prog_compiler_pic_F77='-KPIC'
13923       lt_prog_compiler_static_F77='-Bstatic'
13924       ;;
13925
13926     unicos*)
13927       lt_prog_compiler_wl_F77='-Wl,'
13928       lt_prog_compiler_can_build_shared_F77=no
13929       ;;
13930
13931     uts4*)
13932       lt_prog_compiler_pic_F77='-pic'
13933       lt_prog_compiler_static_F77='-Bstatic'
13934       ;;
13935
13936     *)
13937       lt_prog_compiler_can_build_shared_F77=no
13938       ;;
13939     esac
13940   fi
13941
13942 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13943 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13944
13945 #
13946 # Check to make sure the PIC flag actually works.
13947 #
13948 if test -n "$lt_prog_compiler_pic_F77"; then
13949
13950 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13952 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13953   echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955   lt_prog_compiler_pic_works_F77=no
13956   ac_outfile=conftest.$ac_objext
13957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13958    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13959    # Insert the option either (1) after the last *FLAGS variable, or
13960    # (2) before a word containing "conftest.", or (3) at the end.
13961    # Note that $ac_compile itself does not contain backslashes and begins
13962    # with a dollar sign (not a hyphen), so the echo should work correctly.
13963    # The option is referenced via a variable to avoid confusing sed.
13964    lt_compile=`echo "$ac_compile" | $SED \
13965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13967    -e 's:$: $lt_compiler_flag:'`
13968    (eval echo "\"\$as_me:13968: $lt_compile\"" >&5)
13969    (eval "$lt_compile" 2>conftest.err)
13970    ac_status=$?
13971    cat conftest.err >&5
13972    echo "$as_me:13972: \$? = $ac_status" >&5
13973    if (exit $ac_status) && test -s "$ac_outfile"; then
13974      # The compiler can only warn and ignore the option if not recognized
13975      # So say no if there are warnings other than the usual output.
13976      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13977      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13979        lt_prog_compiler_pic_works_F77=yes
13980      fi
13981    fi
13982    $rm conftest*
13983
13984 fi
13985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13986 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13987
13988 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13989     case $lt_prog_compiler_pic_F77 in
13990      "" | " "*) ;;
13991      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13992      esac
13993 else
13994     lt_prog_compiler_pic_F77=
13995      lt_prog_compiler_can_build_shared_F77=no
13996 fi
13997
13998 fi
13999 case $host_os in
14000   # For platforms which do not support PIC, -DPIC is meaningless:
14001   *djgpp*)
14002     lt_prog_compiler_pic_F77=
14003     ;;
14004   *)
14005     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14006     ;;
14007 esac
14008
14009 #
14010 # Check to make sure the static flag actually works.
14011 #
14012 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14013 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14014 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14015 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   lt_prog_compiler_static_works_F77=no
14019    save_LDFLAGS="$LDFLAGS"
14020    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14021    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14022    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14023      # The linker can only warn and ignore the option if not recognized
14024      # So say no if there are warnings
14025      if test -s conftest.err; then
14026        # Append any errors to the config.log.
14027        cat conftest.err 1>&5
14028        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14029        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14030        if diff conftest.exp conftest.er2 >/dev/null; then
14031          lt_prog_compiler_static_works_F77=yes
14032        fi
14033      else
14034        lt_prog_compiler_static_works_F77=yes
14035      fi
14036    fi
14037    $rm conftest*
14038    LDFLAGS="$save_LDFLAGS"
14039
14040 fi
14041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14042 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14043
14044 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14045     :
14046 else
14047     lt_prog_compiler_static_F77=
14048 fi
14049
14050
14051 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14053 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   lt_cv_prog_compiler_c_o_F77=no
14057    $rm -r conftest 2>/dev/null
14058    mkdir conftest
14059    cd conftest
14060    mkdir out
14061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14062
14063    lt_compiler_flag="-o out/conftest2.$ac_objext"
14064    # Insert the option either (1) after the last *FLAGS variable, or
14065    # (2) before a word containing "conftest.", or (3) at the end.
14066    # Note that $ac_compile itself does not contain backslashes and begins
14067    # with a dollar sign (not a hyphen), so the echo should work correctly.
14068    lt_compile=`echo "$ac_compile" | $SED \
14069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14071    -e 's:$: $lt_compiler_flag:'`
14072    (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
14073    (eval "$lt_compile" 2>out/conftest.err)
14074    ac_status=$?
14075    cat out/conftest.err >&5
14076    echo "$as_me:14076: \$? = $ac_status" >&5
14077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14078    then
14079      # The compiler can only warn and ignore the option if not recognized
14080      # So say no if there are warnings
14081      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14082      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14083      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14084        lt_cv_prog_compiler_c_o_F77=yes
14085      fi
14086    fi
14087    chmod u+w . 2>&5
14088    $rm conftest*
14089    # SGI C++ compiler will create directory out/ii_files/ for
14090    # template instantiation
14091    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14092    $rm out/* && rmdir out
14093    cd ..
14094    rmdir conftest
14095    $rm conftest*
14096
14097 fi
14098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14100
14101
14102 hard_links="nottested"
14103 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14104   # do not overwrite the value of need_locks provided by the user
14105   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14107   hard_links=yes
14108   $rm conftest*
14109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110   touch conftest.a
14111   ln conftest.a conftest.b 2>&5 || hard_links=no
14112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113   { echo "$as_me:$LINENO: result: $hard_links" >&5
14114 echo "${ECHO_T}$hard_links" >&6; }
14115   if test "$hard_links" = no; then
14116     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14118     need_locks=warn
14119   fi
14120 else
14121   need_locks=no
14122 fi
14123
14124 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14126
14127   runpath_var=
14128   allow_undefined_flag_F77=
14129   enable_shared_with_static_runtimes_F77=no
14130   archive_cmds_F77=
14131   archive_expsym_cmds_F77=
14132   old_archive_From_new_cmds_F77=
14133   old_archive_from_expsyms_cmds_F77=
14134   export_dynamic_flag_spec_F77=
14135   whole_archive_flag_spec_F77=
14136   thread_safe_flag_spec_F77=
14137   hardcode_libdir_flag_spec_F77=
14138   hardcode_libdir_flag_spec_ld_F77=
14139   hardcode_libdir_separator_F77=
14140   hardcode_direct_F77=no
14141   hardcode_minus_L_F77=no
14142   hardcode_shlibpath_var_F77=unsupported
14143   link_all_deplibs_F77=unknown
14144   hardcode_automatic_F77=no
14145   module_cmds_F77=
14146   module_expsym_cmds_F77=
14147   always_export_symbols_F77=no
14148   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14149   # include_expsyms should be a list of space-separated symbols to be *always*
14150   # included in the symbol list
14151   include_expsyms_F77=
14152   # exclude_expsyms can be an extended regexp of symbols to exclude
14153   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14154   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14155   # as well as any symbol that contains `d'.
14156   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14157   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14158   # platforms (ab)use it in PIC code, but their linkers get confused if
14159   # the symbol is explicitly referenced.  Since portable code cannot
14160   # rely on this symbol name, it's probably fine to never include it in
14161   # preloaded symbol tables.
14162   extract_expsyms_cmds=
14163   # Just being paranoid about ensuring that cc_basename is set.
14164   for cc_temp in $compiler""; do
14165   case $cc_temp in
14166     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14167     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14168     \-*) ;;
14169     *) break;;
14170   esac
14171 done
14172 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14173
14174   case $host_os in
14175   cygwin* | mingw* | pw32*)
14176     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14177     # When not using gcc, we currently assume that we are using
14178     # Microsoft Visual C++.
14179     if test "$GCC" != yes; then
14180       with_gnu_ld=no
14181     fi
14182     ;;
14183   interix*)
14184     # we just hope/assume this is gcc and not c89 (= MSVC++)
14185     with_gnu_ld=yes
14186     ;;
14187   openbsd*)
14188     with_gnu_ld=no
14189     ;;
14190   esac
14191
14192   ld_shlibs_F77=yes
14193   if test "$with_gnu_ld" = yes; then
14194     # If archive_cmds runs LD, not CC, wlarc should be empty
14195     wlarc='${wl}'
14196
14197     # Set some defaults for GNU ld with shared library support. These
14198     # are reset later if shared libraries are not supported. Putting them
14199     # here allows them to be overridden if necessary.
14200     runpath_var=LD_RUN_PATH
14201     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14202     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14203     # ancient GNU ld didn't support --whole-archive et. al.
14204     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14205         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14206       else
14207         whole_archive_flag_spec_F77=
14208     fi
14209     supports_anon_versioning=no
14210     case `$LD -v 2>/dev/null` in
14211       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14212       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14213       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14214       *\ 2.11.*) ;; # other 2.11 versions
14215       *) supports_anon_versioning=yes ;;
14216     esac
14217
14218     # See if GNU ld supports shared libraries.
14219     case $host_os in
14220     aix3* | aix4* | aix5*)
14221       # On AIX/PPC, the GNU linker is very broken
14222       if test "$host_cpu" != ia64; then
14223         ld_shlibs_F77=no
14224         cat <<EOF 1>&2
14225
14226 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14227 *** to be unable to reliably create shared libraries on AIX.
14228 *** Therefore, libtool is disabling shared libraries support.  If you
14229 *** really care for shared libraries, you may want to modify your PATH
14230 *** so that a non-GNU linker is found, and then restart.
14231
14232 EOF
14233       fi
14234       ;;
14235
14236     amigaos*)
14237       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)'
14238       hardcode_libdir_flag_spec_F77='-L$libdir'
14239       hardcode_minus_L_F77=yes
14240
14241       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14242       # that the semantics of dynamic libraries on AmigaOS, at least up
14243       # to version 4, is to share data among multiple programs linked
14244       # with the same dynamic library.  Since this doesn't match the
14245       # behavior of shared libraries on other platforms, we can't use
14246       # them.
14247       ld_shlibs_F77=no
14248       ;;
14249
14250     beos*)
14251       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14252         allow_undefined_flag_F77=unsupported
14253         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14254         # support --undefined.  This deserves some investigation.  FIXME
14255         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14256       else
14257         ld_shlibs_F77=no
14258       fi
14259       ;;
14260
14261     cygwin* | mingw* | pw32*)
14262       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14263       # as there is no search path for DLLs.
14264       hardcode_libdir_flag_spec_F77='-L$libdir'
14265       allow_undefined_flag_F77=unsupported
14266       always_export_symbols_F77=no
14267       enable_shared_with_static_runtimes_F77=yes
14268       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14269
14270       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14271         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14272         # If the export-symbols file already is a .def file (1st line
14273         # is EXPORTS), use it as is; otherwise, prepend...
14274         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14275           cp $export_symbols $output_objdir/$soname.def;
14276         else
14277           echo EXPORTS > $output_objdir/$soname.def;
14278           cat $export_symbols >> $output_objdir/$soname.def;
14279         fi~
14280         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14281       else
14282         ld_shlibs_F77=no
14283       fi
14284       ;;
14285
14286     interix3*)
14287       hardcode_direct_F77=no
14288       hardcode_shlibpath_var_F77=no
14289       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14290       export_dynamic_flag_spec_F77='${wl}-E'
14291       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14292       # Instead, shared libraries are loaded at an image base (0x10000000 by
14293       # default) and relocated if they conflict, which is a slow very memory
14294       # consuming and fragmenting process.  To avoid this, we pick a random,
14295       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14296       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14297       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'
14298       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'
14299       ;;
14300
14301     linux* | k*bsd*-gnu)
14302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14303         tmp_addflag=
14304         case $cc_basename,$host_cpu in
14305         pgcc*)                          # Portland Group C compiler
14306           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'
14307           tmp_addflag=' $pic_flag'
14308           ;;
14309         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14310           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'
14311           tmp_addflag=' $pic_flag -Mnomain' ;;
14312         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14313           tmp_addflag=' -i_dynamic' ;;
14314         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14315           tmp_addflag=' -i_dynamic -nofor_main' ;;
14316         ifc* | ifort*)                  # Intel Fortran compiler
14317           tmp_addflag=' -nofor_main' ;;
14318         esac
14319         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320
14321         if test $supports_anon_versioning = yes; then
14322           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14323   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14324   $echo "local: *; };" >> $output_objdir/$libname.ver~
14325           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14326         fi
14327         link_all_deplibs_F77=no
14328       else
14329         ld_shlibs_F77=no
14330       fi
14331       ;;
14332
14333     netbsd* | netbsdelf*-gnu)
14334       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14335         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14336         wlarc=
14337       else
14338         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14339         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14340       fi
14341       ;;
14342
14343     solaris*)
14344       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14345         ld_shlibs_F77=no
14346         cat <<EOF 1>&2
14347
14348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14349 *** create shared libraries on Solaris systems.  Therefore, libtool
14350 *** is disabling shared libraries support.  We urge you to upgrade GNU
14351 *** binutils to release 2.9.1 or newer.  Another option is to modify
14352 *** your PATH or compiler configuration so that the native linker is
14353 *** used, and then restart.
14354
14355 EOF
14356       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14357         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14358         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14359       else
14360         ld_shlibs_F77=no
14361       fi
14362       ;;
14363
14364     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14365       case `$LD -v 2>&1` in
14366         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14367         ld_shlibs_F77=no
14368         cat <<_LT_EOF 1>&2
14369
14370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14371 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14372 *** is disabling shared libraries support.  We urge you to upgrade GNU
14373 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14374 *** your PATH or compiler configuration so that the native linker is
14375 *** used, and then restart.
14376
14377 _LT_EOF
14378         ;;
14379         *)
14380           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14381             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14382             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14383             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14384           else
14385             ld_shlibs_F77=no
14386           fi
14387         ;;
14388       esac
14389       ;;
14390
14391     sunos4*)
14392       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14393       wlarc=
14394       hardcode_direct_F77=yes
14395       hardcode_shlibpath_var_F77=no
14396       ;;
14397
14398     *)
14399       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14400         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14401         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14402       else
14403         ld_shlibs_F77=no
14404       fi
14405       ;;
14406     esac
14407
14408     if test "$ld_shlibs_F77" = no; then
14409       runpath_var=
14410       hardcode_libdir_flag_spec_F77=
14411       export_dynamic_flag_spec_F77=
14412       whole_archive_flag_spec_F77=
14413     fi
14414   else
14415     # PORTME fill in a description of your system's linker (not GNU ld)
14416     case $host_os in
14417     aix3*)
14418       allow_undefined_flag_F77=unsupported
14419       always_export_symbols_F77=yes
14420       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'
14421       # Note: this linker hardcodes the directories in LIBPATH if there
14422       # are no directories specified by -L.
14423       hardcode_minus_L_F77=yes
14424       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14425         # Neither direct hardcoding nor static linking is supported with a
14426         # broken collect2.
14427         hardcode_direct_F77=unsupported
14428       fi
14429       ;;
14430
14431     aix4* | aix5*)
14432       if test "$host_cpu" = ia64; then
14433         # On IA64, the linker does run time linking by default, so we don't
14434         # have to do anything special.
14435         aix_use_runtimelinking=no
14436         exp_sym_flag='-Bexport'
14437         no_entry_flag=""
14438       else
14439         # If we're using GNU nm, then we don't want the "-C" option.
14440         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14441         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14442           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'
14443         else
14444           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'
14445         fi
14446         aix_use_runtimelinking=no
14447
14448         # Test if we are trying to use run time linking or normal
14449         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14450         # need to do runtime linking.
14451         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14452           for ld_flag in $LDFLAGS; do
14453           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14454             aix_use_runtimelinking=yes
14455             break
14456           fi
14457           done
14458           ;;
14459         esac
14460
14461         exp_sym_flag='-bexport'
14462         no_entry_flag='-bnoentry'
14463       fi
14464
14465       # When large executables or shared objects are built, AIX ld can
14466       # have problems creating the table of contents.  If linking a library
14467       # or program results in "error TOC overflow" add -mminimal-toc to
14468       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14469       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14470
14471       archive_cmds_F77=''
14472       hardcode_direct_F77=yes
14473       hardcode_libdir_separator_F77=':'
14474       link_all_deplibs_F77=yes
14475
14476       if test "$GCC" = yes; then
14477         case $host_os in aix4.[012]|aix4.[012].*)
14478         # We only want to do this on AIX 4.2 and lower, the check
14479         # below for broken collect2 doesn't work under 4.3+
14480           collect2name=`${CC} -print-prog-name=collect2`
14481           if test -f "$collect2name" && \
14482            strings "$collect2name" | grep resolve_lib_name >/dev/null
14483           then
14484           # We have reworked collect2
14485           hardcode_direct_F77=yes
14486           else
14487           # We have old collect2
14488           hardcode_direct_F77=unsupported
14489           # It fails to find uninstalled libraries when the uninstalled
14490           # path is not listed in the libpath.  Setting hardcode_minus_L
14491           # to unsupported forces relinking
14492           hardcode_minus_L_F77=yes
14493           hardcode_libdir_flag_spec_F77='-L$libdir'
14494           hardcode_libdir_separator_F77=
14495           fi
14496           ;;
14497         esac
14498         shared_flag='-shared'
14499         if test "$aix_use_runtimelinking" = yes; then
14500           shared_flag="$shared_flag "'${wl}-G'
14501         fi
14502       else
14503         # not using gcc
14504         if test "$host_cpu" = ia64; then
14505         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14506         # chokes on -Wl,-G. The following line is correct:
14507           shared_flag='-G'
14508         else
14509           if test "$aix_use_runtimelinking" = yes; then
14510             shared_flag='${wl}-G'
14511           else
14512             shared_flag='${wl}-bM:SRE'
14513           fi
14514         fi
14515       fi
14516
14517       # It seems that -bexpall does not export symbols beginning with
14518       # underscore (_), so it is better to generate a list of symbols to export.
14519       always_export_symbols_F77=yes
14520       if test "$aix_use_runtimelinking" = yes; then
14521         # Warning - without using the other runtime loading flags (-brtl),
14522         # -berok will link without error, but may produce a broken library.
14523         allow_undefined_flag_F77='-berok'
14524        # Determine the default libpath from the value encoded in an empty executable.
14525        cat >conftest.$ac_ext <<_ACEOF
14526       program main
14527
14528       end
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_link") 2>conftest.er1
14538   ac_status=$?
14539   grep -v '^ *+' conftest.er1 >conftest.err
14540   rm -f conftest.er1
14541   cat conftest.err >&5
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } && {
14544          test -z "$ac_f77_werror_flag" ||
14545          test ! -s conftest.err
14546        } && test -s conftest$ac_exeext &&
14547        $as_test_x conftest$ac_exeext; then
14548
14549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14550 }'`
14551 # Check for a 64-bit object if we didn't find anything.
14552 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; }
14553 }'`; fi
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558
14559 fi
14560
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562       conftest$ac_exeext conftest.$ac_ext
14563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14564
14565        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14566         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"
14567        else
14568         if test "$host_cpu" = ia64; then
14569           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14570           allow_undefined_flag_F77="-z nodefs"
14571           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"
14572         else
14573          # Determine the default libpath from the value encoded in an empty executable.
14574          cat >conftest.$ac_ext <<_ACEOF
14575       program main
14576
14577       end
14578 _ACEOF
14579 rm -f conftest.$ac_objext conftest$ac_exeext
14580 if { (ac_try="$ac_link"
14581 case "(($ac_try" in
14582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583   *) ac_try_echo=$ac_try;;
14584 esac
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586   (eval "$ac_link") 2>conftest.er1
14587   ac_status=$?
14588   grep -v '^ *+' conftest.er1 >conftest.err
14589   rm -f conftest.er1
14590   cat conftest.err >&5
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); } && {
14593          test -z "$ac_f77_werror_flag" ||
14594          test ! -s conftest.err
14595        } && test -s conftest$ac_exeext &&
14596        $as_test_x conftest$ac_exeext; then
14597
14598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14599 }'`
14600 # Check for a 64-bit object if we didn't find anything.
14601 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; }
14602 }'`; fi
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607
14608 fi
14609
14610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14611       conftest$ac_exeext conftest.$ac_ext
14612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14613
14614          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14615           # Warning - without using the other run time loading flags,
14616           # -berok will link without error, but may produce a broken library.
14617           no_undefined_flag_F77=' ${wl}-bernotok'
14618           allow_undefined_flag_F77=' ${wl}-berok'
14619           # Exported symbols can be pulled into shared objects from archives
14620           whole_archive_flag_spec_F77='$convenience'
14621           archive_cmds_need_lc_F77=yes
14622           # This is similar to how AIX traditionally builds its shared libraries.
14623           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'
14624         fi
14625       fi
14626       ;;
14627
14628     amigaos*)
14629       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)'
14630       hardcode_libdir_flag_spec_F77='-L$libdir'
14631       hardcode_minus_L_F77=yes
14632       # see comment about different semantics on the GNU ld section
14633       ld_shlibs_F77=no
14634       ;;
14635
14636     bsdi[45]*)
14637       export_dynamic_flag_spec_F77=-rdynamic
14638       ;;
14639
14640     cygwin* | mingw* | pw32*)
14641       # When not using gcc, we currently assume that we are using
14642       # Microsoft Visual C++.
14643       # hardcode_libdir_flag_spec is actually meaningless, as there is
14644       # no search path for DLLs.
14645       hardcode_libdir_flag_spec_F77=' '
14646       allow_undefined_flag_F77=unsupported
14647       # Tell ltmain to make .lib files, not .a files.
14648       libext=lib
14649       # Tell ltmain to make .dll files, not .so files.
14650       shrext_cmds=".dll"
14651       # FIXME: Setting linknames here is a bad hack.
14652       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14653       # The linker will automatically build a .lib file if we build a DLL.
14654       old_archive_From_new_cmds_F77='true'
14655       # FIXME: Should let the user specify the lib program.
14656       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14657       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14658       enable_shared_with_static_runtimes_F77=yes
14659       ;;
14660
14661     darwin* | rhapsody*)
14662       case $host_os in
14663         rhapsody* | darwin1.[012])
14664          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14665          ;;
14666        *) # Darwin 1.3 on
14667          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14668            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14669          else
14670            case ${MACOSX_DEPLOYMENT_TARGET} in
14671              10.[012])
14672                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14673                ;;
14674              10.*)
14675                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14676                ;;
14677            esac
14678          fi
14679          ;;
14680       esac
14681       archive_cmds_need_lc_F77=no
14682       hardcode_direct_F77=no
14683       hardcode_automatic_F77=yes
14684       hardcode_shlibpath_var_F77=unsupported
14685       whole_archive_flag_spec_F77=''
14686       link_all_deplibs_F77=yes
14687     if test "$GCC" = yes ; then
14688         output_verbose_link_cmd='echo'
14689         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14690       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14691       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14692       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}'
14693       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}'
14694     else
14695       case $cc_basename in
14696         xlc*)
14697          output_verbose_link_cmd='echo'
14698          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14699          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14700           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14701          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}'
14702           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}'
14703           ;;
14704        *)
14705          ld_shlibs_F77=no
14706           ;;
14707       esac
14708     fi
14709       ;;
14710
14711     dgux*)
14712       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14713       hardcode_libdir_flag_spec_F77='-L$libdir'
14714       hardcode_shlibpath_var_F77=no
14715       ;;
14716
14717     freebsd1*)
14718       ld_shlibs_F77=no
14719       ;;
14720
14721     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14722     # support.  Future versions do this automatically, but an explicit c++rt0.o
14723     # does not break anything, and helps significantly (at the cost of a little
14724     # extra space).
14725     freebsd2.2*)
14726       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14727       hardcode_libdir_flag_spec_F77='-R$libdir'
14728       hardcode_direct_F77=yes
14729       hardcode_shlibpath_var_F77=no
14730       ;;
14731
14732     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14733     freebsd2*)
14734       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14735       hardcode_direct_F77=yes
14736       hardcode_minus_L_F77=yes
14737       hardcode_shlibpath_var_F77=no
14738       ;;
14739
14740     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14741     freebsd* | dragonfly*)
14742       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14743       hardcode_libdir_flag_spec_F77='-R$libdir'
14744       hardcode_direct_F77=yes
14745       hardcode_shlibpath_var_F77=no
14746       ;;
14747
14748     hpux9*)
14749       if test "$GCC" = yes; then
14750         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'
14751       else
14752         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'
14753       fi
14754       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14755       hardcode_libdir_separator_F77=:
14756       hardcode_direct_F77=yes
14757
14758       # hardcode_minus_L: Not really in the search PATH,
14759       # but as the default location of the library.
14760       hardcode_minus_L_F77=yes
14761       export_dynamic_flag_spec_F77='${wl}-E'
14762       ;;
14763
14764     hpux10*)
14765       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14766         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14767       else
14768         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14769       fi
14770       if test "$with_gnu_ld" = no; then
14771         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14772         hardcode_libdir_separator_F77=:
14773
14774         hardcode_direct_F77=yes
14775         export_dynamic_flag_spec_F77='${wl}-E'
14776
14777         # hardcode_minus_L: Not really in the search PATH,
14778         # but as the default location of the library.
14779         hardcode_minus_L_F77=yes
14780       fi
14781       ;;
14782
14783     hpux11*)
14784       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14785         case $host_cpu in
14786         hppa*64*)
14787           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14788           ;;
14789         ia64*)
14790           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14791           ;;
14792         *)
14793           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14794           ;;
14795         esac
14796       else
14797         case $host_cpu in
14798         hppa*64*)
14799           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14800           ;;
14801         ia64*)
14802           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14803           ;;
14804         *)
14805           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14806           ;;
14807         esac
14808       fi
14809       if test "$with_gnu_ld" = no; then
14810         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14811         hardcode_libdir_separator_F77=:
14812
14813         case $host_cpu in
14814         hppa*64*|ia64*)
14815           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14816           hardcode_direct_F77=no
14817           hardcode_shlibpath_var_F77=no
14818           ;;
14819         *)
14820           hardcode_direct_F77=yes
14821           export_dynamic_flag_spec_F77='${wl}-E'
14822
14823           # hardcode_minus_L: Not really in the search PATH,
14824           # but as the default location of the library.
14825           hardcode_minus_L_F77=yes
14826           ;;
14827         esac
14828       fi
14829       ;;
14830
14831     irix5* | irix6* | nonstopux*)
14832       if test "$GCC" = yes; then
14833         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'
14834       else
14835         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'
14836         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14837       fi
14838       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14839       hardcode_libdir_separator_F77=:
14840       link_all_deplibs_F77=yes
14841       ;;
14842
14843     netbsd* | netbsdelf*-gnu)
14844       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14845         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14846       else
14847         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14848       fi
14849       hardcode_libdir_flag_spec_F77='-R$libdir'
14850       hardcode_direct_F77=yes
14851       hardcode_shlibpath_var_F77=no
14852       ;;
14853
14854     newsos6)
14855       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14856       hardcode_direct_F77=yes
14857       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14858       hardcode_libdir_separator_F77=:
14859       hardcode_shlibpath_var_F77=no
14860       ;;
14861
14862     openbsd*)
14863       hardcode_direct_F77=yes
14864       hardcode_shlibpath_var_F77=no
14865       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14866         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14867         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14868         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14869         export_dynamic_flag_spec_F77='${wl}-E'
14870       else
14871        case $host_os in
14872          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14873            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14874            hardcode_libdir_flag_spec_F77='-R$libdir'
14875            ;;
14876          *)
14877            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14878            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14879            ;;
14880        esac
14881       fi
14882       ;;
14883
14884     os2*)
14885       hardcode_libdir_flag_spec_F77='-L$libdir'
14886       hardcode_minus_L_F77=yes
14887       allow_undefined_flag_F77=unsupported
14888       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'
14889       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14890       ;;
14891
14892     osf3*)
14893       if test "$GCC" = yes; then
14894         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14895         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'
14896       else
14897         allow_undefined_flag_F77=' -expect_unresolved \*'
14898         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'
14899       fi
14900       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14901       hardcode_libdir_separator_F77=:
14902       ;;
14903
14904     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14905       if test "$GCC" = yes; then
14906         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14907         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'
14908         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14909       else
14910         allow_undefined_flag_F77=' -expect_unresolved \*'
14911         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'
14912         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~
14913         $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'
14914
14915         # Both c and cxx compiler support -rpath directly
14916         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14917       fi
14918       hardcode_libdir_separator_F77=:
14919       ;;
14920
14921     solaris*)
14922       no_undefined_flag_F77=' -z text'
14923       if test "$GCC" = yes; then
14924         wlarc='${wl}'
14925         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14926         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14927           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14928       else
14929         wlarc=''
14930         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14931         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14932         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14933       fi
14934       hardcode_libdir_flag_spec_F77='-R$libdir'
14935       hardcode_shlibpath_var_F77=no
14936       case $host_os in
14937       solaris2.[0-5] | solaris2.[0-5].*) ;;
14938       *)
14939         # The compiler driver will combine linker options so we
14940         # cannot just pass the convience library names through
14941         # without $wl, iff we do not link with $LD.
14942         # Luckily, gcc supports the same syntax we need for Sun Studio.
14943         # Supported since Solaris 2.6 (maybe 2.5.1?)
14944         case $wlarc in
14945         '')
14946           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14947         *)
14948           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' ;;
14949         esac ;;
14950       esac
14951       link_all_deplibs_F77=yes
14952       ;;
14953
14954     sunos4*)
14955       if test "x$host_vendor" = xsequent; then
14956         # Use $CC to link under sequent, because it throws in some extra .o
14957         # files that make .init and .fini sections work.
14958         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14959       else
14960         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14961       fi
14962       hardcode_libdir_flag_spec_F77='-L$libdir'
14963       hardcode_direct_F77=yes
14964       hardcode_minus_L_F77=yes
14965       hardcode_shlibpath_var_F77=no
14966       ;;
14967
14968     sysv4)
14969       case $host_vendor in
14970         sni)
14971           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14972           hardcode_direct_F77=yes # is this really true???
14973         ;;
14974         siemens)
14975           ## LD is ld it makes a PLAMLIB
14976           ## CC just makes a GrossModule.
14977           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14978           reload_cmds_F77='$CC -r -o $output$reload_objs'
14979           hardcode_direct_F77=no
14980         ;;
14981         motorola)
14982           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14983           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14984         ;;
14985       esac
14986       runpath_var='LD_RUN_PATH'
14987       hardcode_shlibpath_var_F77=no
14988       ;;
14989
14990     sysv4.3*)
14991       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14992       hardcode_shlibpath_var_F77=no
14993       export_dynamic_flag_spec_F77='-Bexport'
14994       ;;
14995
14996     sysv4*MP*)
14997       if test -d /usr/nec; then
14998         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999         hardcode_shlibpath_var_F77=no
15000         runpath_var=LD_RUN_PATH
15001         hardcode_runpath_var=yes
15002         ld_shlibs_F77=yes
15003       fi
15004       ;;
15005
15006     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15007       no_undefined_flag_F77='${wl}-z,text'
15008       archive_cmds_need_lc_F77=no
15009       hardcode_shlibpath_var_F77=no
15010       runpath_var='LD_RUN_PATH'
15011
15012       if test "$GCC" = yes; then
15013         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15014         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015       else
15016         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15018       fi
15019       ;;
15020
15021     sysv5* | sco3.2v5* | sco5v6*)
15022       # Note: We can NOT use -z defs as we might desire, because we do not
15023       # link with -lc, and that would cause any symbols used from libc to
15024       # always be unresolved, which means just about no library would
15025       # ever link correctly.  If we're not using GNU ld we use -z text
15026       # though, which does catch some bad symbols but isn't as heavy-handed
15027       # as -z defs.
15028       no_undefined_flag_F77='${wl}-z,text'
15029       allow_undefined_flag_F77='${wl}-z,nodefs'
15030       archive_cmds_need_lc_F77=no
15031       hardcode_shlibpath_var_F77=no
15032       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15033       hardcode_libdir_separator_F77=':'
15034       link_all_deplibs_F77=yes
15035       export_dynamic_flag_spec_F77='${wl}-Bexport'
15036       runpath_var='LD_RUN_PATH'
15037
15038       if test "$GCC" = yes; then
15039         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15040         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15041       else
15042         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15043         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15044       fi
15045       ;;
15046
15047     uts4*)
15048       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15049       hardcode_libdir_flag_spec_F77='-L$libdir'
15050       hardcode_shlibpath_var_F77=no
15051       ;;
15052
15053     *)
15054       ld_shlibs_F77=no
15055       ;;
15056     esac
15057   fi
15058
15059 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15060 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15061 test "$ld_shlibs_F77" = no && can_build_shared=no
15062
15063 #
15064 # Do we need to explicitly link libc?
15065 #
15066 case "x$archive_cmds_need_lc_F77" in
15067 x|xyes)
15068   # Assume -lc should be added
15069   archive_cmds_need_lc_F77=yes
15070
15071   if test "$enable_shared" = yes && test "$GCC" = yes; then
15072     case $archive_cmds_F77 in
15073     *'~'*)
15074       # FIXME: we may have to deal with multi-command sequences.
15075       ;;
15076     '$CC '*)
15077       # Test whether the compiler implicitly links with -lc since on some
15078       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15079       # to ld, don't add -lc before -lgcc.
15080       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15081 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15082       $rm conftest*
15083       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15084
15085       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15086   (eval $ac_compile) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); } 2>conftest.err; then
15090         soname=conftest
15091         lib=conftest
15092         libobjs=conftest.$ac_objext
15093         deplibs=
15094         wl=$lt_prog_compiler_wl_F77
15095         pic_flag=$lt_prog_compiler_pic_F77
15096         compiler_flags=-v
15097         linker_flags=-v
15098         verstring=
15099         output_objdir=.
15100         libname=conftest
15101         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15102         allow_undefined_flag_F77=
15103         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15104   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }
15108         then
15109           archive_cmds_need_lc_F77=no
15110         else
15111           archive_cmds_need_lc_F77=yes
15112         fi
15113         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15114       else
15115         cat conftest.err 1>&5
15116       fi
15117       $rm conftest*
15118       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15119 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15120       ;;
15121     esac
15122   fi
15123   ;;
15124 esac
15125
15126 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15127 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15128 library_names_spec=
15129 libname_spec='lib$name'
15130 soname_spec=
15131 shrext_cmds=".so"
15132 postinstall_cmds=
15133 postuninstall_cmds=
15134 finish_cmds=
15135 finish_eval=
15136 shlibpath_var=
15137 shlibpath_overrides_runpath=unknown
15138 version_type=none
15139 dynamic_linker="$host_os ld.so"
15140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15141 if test "$GCC" = yes; then
15142   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15143   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15144     # if the path contains ";" then we assume it to be the separator
15145     # otherwise default to the standard path separator (i.e. ":") - it is
15146     # assumed that no part of a normal pathname contains ";" but that should
15147     # okay in the real world where ";" in dirpaths is itself problematic.
15148     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15149   else
15150     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15151   fi
15152 else
15153   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15154 fi
15155 need_lib_prefix=unknown
15156 hardcode_into_libs=no
15157
15158 # when you set need_version to no, make sure it does not cause -set_version
15159 # flags to be left without arguments
15160 need_version=unknown
15161
15162 case $host_os in
15163 aix3*)
15164   version_type=linux
15165   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15166   shlibpath_var=LIBPATH
15167
15168   # AIX 3 has no versioning support, so we append a major version to the name.
15169   soname_spec='${libname}${release}${shared_ext}$major'
15170   ;;
15171
15172 aix4* | aix5*)
15173   version_type=linux
15174   need_lib_prefix=no
15175   need_version=no
15176   hardcode_into_libs=yes
15177   if test "$host_cpu" = ia64; then
15178     # AIX 5 supports IA64
15179     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15180     shlibpath_var=LD_LIBRARY_PATH
15181   else
15182     # With GCC up to 2.95.x, collect2 would create an import file
15183     # for dependence libraries.  The import file would start with
15184     # the line `#! .'.  This would cause the generated library to
15185     # depend on `.', always an invalid library.  This was fixed in
15186     # development snapshots of GCC prior to 3.0.
15187     case $host_os in
15188       aix4 | aix4.[01] | aix4.[01].*)
15189       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15190            echo ' yes '
15191            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15192         :
15193       else
15194         can_build_shared=no
15195       fi
15196       ;;
15197     esac
15198     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15199     # soname into executable. Probably we can add versioning support to
15200     # collect2, so additional links can be useful in future.
15201     if test "$aix_use_runtimelinking" = yes; then
15202       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15203       # instead of lib<name>.a to let people know that these are not
15204       # typical AIX shared libraries.
15205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206     else
15207       # We preserve .a as extension for shared libraries through AIX4.2
15208       # and later when we are not doing run time linking.
15209       library_names_spec='${libname}${release}.a $libname.a'
15210       soname_spec='${libname}${release}${shared_ext}$major'
15211     fi
15212     shlibpath_var=LIBPATH
15213   fi
15214   ;;
15215
15216 amigaos*)
15217   library_names_spec='$libname.ixlibrary $libname.a'
15218   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15219   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'
15220   ;;
15221
15222 beos*)
15223   library_names_spec='${libname}${shared_ext}'
15224   dynamic_linker="$host_os ld.so"
15225   shlibpath_var=LIBRARY_PATH
15226   ;;
15227
15228 bsdi[45]*)
15229   version_type=linux
15230   need_version=no
15231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232   soname_spec='${libname}${release}${shared_ext}$major'
15233   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15234   shlibpath_var=LD_LIBRARY_PATH
15235   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15236   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15237   # the default ld.so.conf also contains /usr/contrib/lib and
15238   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15239   # libtool to hard-code these into programs
15240   ;;
15241
15242 cygwin* | mingw* | pw32*)
15243   version_type=windows
15244   shrext_cmds=".dll"
15245   need_version=no
15246   need_lib_prefix=no
15247
15248   case $GCC,$host_os in
15249   yes,cygwin* | yes,mingw* | yes,pw32*)
15250     library_names_spec='$libname.dll.a'
15251     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15252     postinstall_cmds='base_file=`basename \${file}`~
15253       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15254       dldir=$destdir/`dirname \$dlpath`~
15255       test -d \$dldir || mkdir -p \$dldir~
15256       $install_prog $dir/$dlname \$dldir/$dlname~
15257       chmod a+x \$dldir/$dlname'
15258     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15259       dlpath=$dir/\$dldll~
15260        $rm \$dlpath'
15261     shlibpath_overrides_runpath=yes
15262
15263     case $host_os in
15264     cygwin*)
15265       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15266       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15267       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15268       ;;
15269     mingw*)
15270       # MinGW DLLs use traditional 'lib' prefix
15271       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15272       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15273       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15274         # It is most probably a Windows format PATH printed by
15275         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15276         # path with ; separators, and with drive letters. We can handle the
15277         # drive letters (cygwin fileutils understands them), so leave them,
15278         # especially as we might pass files found there to a mingw objdump,
15279         # which wouldn't understand a cygwinified path. Ahh.
15280         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15281       else
15282         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15283       fi
15284       ;;
15285     pw32*)
15286       # pw32 DLLs use 'pw' prefix rather than 'lib'
15287       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288       ;;
15289     esac
15290     ;;
15291
15292   *)
15293     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15294     ;;
15295   esac
15296   dynamic_linker='Win32 ld.exe'
15297   # FIXME: first we should search . and the directory the executable is in
15298   shlibpath_var=PATH
15299   ;;
15300
15301 darwin* | rhapsody*)
15302   dynamic_linker="$host_os dyld"
15303   version_type=darwin
15304   need_lib_prefix=no
15305   need_version=no
15306   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15307   soname_spec='${libname}${release}${major}$shared_ext'
15308   shlibpath_overrides_runpath=yes
15309   shlibpath_var=DYLD_LIBRARY_PATH
15310   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15311   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15312   if test "$GCC" = yes; then
15313     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"`
15314   else
15315     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15316   fi
15317   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15318   ;;
15319
15320 dgux*)
15321   version_type=linux
15322   need_lib_prefix=no
15323   need_version=no
15324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15325   soname_spec='${libname}${release}${shared_ext}$major'
15326   shlibpath_var=LD_LIBRARY_PATH
15327   ;;
15328
15329 freebsd1*)
15330   dynamic_linker=no
15331   ;;
15332
15333 freebsd* | dragonfly*)
15334   # DragonFly does not have aout.  When/if they implement a new
15335   # versioning mechanism, adjust this.
15336   if test -x /usr/bin/objformat; then
15337     objformat=`/usr/bin/objformat`
15338   else
15339     case $host_os in
15340     freebsd[123]*) objformat=aout ;;
15341     *) objformat=elf ;;
15342     esac
15343   fi
15344   version_type=freebsd-$objformat
15345   case $version_type in
15346     freebsd-elf*)
15347       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15348       need_version=no
15349       need_lib_prefix=no
15350       ;;
15351     freebsd-*)
15352       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15353       need_version=yes
15354       ;;
15355   esac
15356   shlibpath_var=LD_LIBRARY_PATH
15357   case $host_os in
15358   freebsd2*)
15359     shlibpath_overrides_runpath=yes
15360     ;;
15361   freebsd3.[01]* | freebsdelf3.[01]*)
15362     shlibpath_overrides_runpath=yes
15363     hardcode_into_libs=yes
15364     ;;
15365   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15366   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15367     shlibpath_overrides_runpath=no
15368     hardcode_into_libs=yes
15369     ;;
15370   freebsd*) # from 4.6 on
15371     shlibpath_overrides_runpath=yes
15372     hardcode_into_libs=yes
15373     ;;
15374   esac
15375   ;;
15376
15377 gnu*)
15378   version_type=linux
15379   need_lib_prefix=no
15380   need_version=no
15381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15382   soname_spec='${libname}${release}${shared_ext}$major'
15383   shlibpath_var=LD_LIBRARY_PATH
15384   hardcode_into_libs=yes
15385   ;;
15386
15387 hpux9* | hpux10* | hpux11*)
15388   # Give a soname corresponding to the major version so that dld.sl refuses to
15389   # link against other versions.
15390   version_type=sunos
15391   need_lib_prefix=no
15392   need_version=no
15393   case $host_cpu in
15394   ia64*)
15395     shrext_cmds='.so'
15396     hardcode_into_libs=yes
15397     dynamic_linker="$host_os dld.so"
15398     shlibpath_var=LD_LIBRARY_PATH
15399     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401     soname_spec='${libname}${release}${shared_ext}$major'
15402     if test "X$HPUX_IA64_MODE" = X32; then
15403       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15404     else
15405       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15406     fi
15407     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15408     ;;
15409    hppa*64*)
15410      shrext_cmds='.sl'
15411      hardcode_into_libs=yes
15412      dynamic_linker="$host_os dld.sl"
15413      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15414      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15415      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416      soname_spec='${libname}${release}${shared_ext}$major'
15417      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15418      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15419      ;;
15420    *)
15421     shrext_cmds='.sl'
15422     dynamic_linker="$host_os dld.sl"
15423     shlibpath_var=SHLIB_PATH
15424     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426     soname_spec='${libname}${release}${shared_ext}$major'
15427     ;;
15428   esac
15429   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15430   postinstall_cmds='chmod 555 $lib'
15431   ;;
15432
15433 interix3*)
15434   version_type=linux
15435   need_lib_prefix=no
15436   need_version=no
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15440   shlibpath_var=LD_LIBRARY_PATH
15441   shlibpath_overrides_runpath=no
15442   hardcode_into_libs=yes
15443   ;;
15444
15445 irix5* | irix6* | nonstopux*)
15446   case $host_os in
15447     nonstopux*) version_type=nonstopux ;;
15448     *)
15449         if test "$lt_cv_prog_gnu_ld" = yes; then
15450                 version_type=linux
15451         else
15452                 version_type=irix
15453         fi ;;
15454   esac
15455   need_lib_prefix=no
15456   need_version=no
15457   soname_spec='${libname}${release}${shared_ext}$major'
15458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15459   case $host_os in
15460   irix5* | nonstopux*)
15461     libsuff= shlibsuff=
15462     ;;
15463   *)
15464     case $LD in # libtool.m4 will add one of these switches to LD
15465     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15466       libsuff= shlibsuff= libmagic=32-bit;;
15467     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15468       libsuff=32 shlibsuff=N32 libmagic=N32;;
15469     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15470       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15471     *) libsuff= shlibsuff= libmagic=never-match;;
15472     esac
15473     ;;
15474   esac
15475   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15476   shlibpath_overrides_runpath=no
15477   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15478   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15479   hardcode_into_libs=yes
15480   ;;
15481
15482 # No shared lib support for Linux oldld, aout, or coff.
15483 linux*oldld* | linux*aout* | linux*coff*)
15484   dynamic_linker=no
15485   ;;
15486
15487 # This must be Linux ELF.
15488 linux* | k*bsd*-gnu)
15489   version_type=linux
15490   need_lib_prefix=no
15491   need_version=no
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493   soname_spec='${libname}${release}${shared_ext}$major'
15494   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15495   shlibpath_var=LD_LIBRARY_PATH
15496   shlibpath_overrides_runpath=no
15497   # This implies no fast_install, which is unacceptable.
15498   # Some rework will be needed to allow for fast_install
15499   # before this can be enabled.
15500   hardcode_into_libs=yes
15501
15502   # Append ld.so.conf contents to the search path
15503   if test -f /etc/ld.so.conf; then
15504     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' ' '`
15505     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15506   fi
15507
15508   # We used to test for /lib/ld.so.1 and disable shared libraries on
15509   # powerpc, because MkLinux only supported shared libraries with the
15510   # GNU dynamic linker.  Since this was broken with cross compilers,
15511   # most powerpc-linux boxes support dynamic linking these days and
15512   # people can always --disable-shared, the test was removed, and we
15513   # assume the GNU/Linux dynamic linker is in use.
15514   dynamic_linker='GNU/Linux ld.so'
15515   ;;
15516
15517 netbsdelf*-gnu)
15518   version_type=linux
15519   need_lib_prefix=no
15520   need_version=no
15521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15522   soname_spec='${libname}${release}${shared_ext}$major'
15523   shlibpath_var=LD_LIBRARY_PATH
15524   shlibpath_overrides_runpath=no
15525   hardcode_into_libs=yes
15526   dynamic_linker='NetBSD ld.elf_so'
15527   ;;
15528
15529 netbsd*)
15530   version_type=sunos
15531   need_lib_prefix=no
15532   need_version=no
15533   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15535     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15536     dynamic_linker='NetBSD (a.out) ld.so'
15537   else
15538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15539     soname_spec='${libname}${release}${shared_ext}$major'
15540     dynamic_linker='NetBSD ld.elf_so'
15541   fi
15542   shlibpath_var=LD_LIBRARY_PATH
15543   shlibpath_overrides_runpath=yes
15544   hardcode_into_libs=yes
15545   ;;
15546
15547 newsos6)
15548   version_type=linux
15549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550   shlibpath_var=LD_LIBRARY_PATH
15551   shlibpath_overrides_runpath=yes
15552   ;;
15553
15554 nto-qnx*)
15555   version_type=linux
15556   need_lib_prefix=no
15557   need_version=no
15558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559   soname_spec='${libname}${release}${shared_ext}$major'
15560   shlibpath_var=LD_LIBRARY_PATH
15561   shlibpath_overrides_runpath=yes
15562   ;;
15563
15564 openbsd*)
15565   version_type=sunos
15566   sys_lib_dlsearch_path_spec="/usr/lib"
15567   need_lib_prefix=no
15568   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15569   case $host_os in
15570     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15571     *)                         need_version=no  ;;
15572   esac
15573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15574   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15575   shlibpath_var=LD_LIBRARY_PATH
15576   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15577     case $host_os in
15578       openbsd2.[89] | openbsd2.[89].*)
15579         shlibpath_overrides_runpath=no
15580         ;;
15581       *)
15582         shlibpath_overrides_runpath=yes
15583         ;;
15584       esac
15585   else
15586     shlibpath_overrides_runpath=yes
15587   fi
15588   ;;
15589
15590 os2*)
15591   libname_spec='$name'
15592   shrext_cmds=".dll"
15593   need_lib_prefix=no
15594   library_names_spec='$libname${shared_ext} $libname.a'
15595   dynamic_linker='OS/2 ld.exe'
15596   shlibpath_var=LIBPATH
15597   ;;
15598
15599 osf3* | osf4* | osf5*)
15600   version_type=osf
15601   need_lib_prefix=no
15602   need_version=no
15603   soname_spec='${libname}${release}${shared_ext}$major'
15604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15607   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15608   ;;
15609
15610 solaris*)
15611   version_type=linux
15612   need_lib_prefix=no
15613   need_version=no
15614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615   soname_spec='${libname}${release}${shared_ext}$major'
15616   shlibpath_var=LD_LIBRARY_PATH
15617   shlibpath_overrides_runpath=yes
15618   hardcode_into_libs=yes
15619   # ldd complains unless libraries are executable
15620   postinstall_cmds='chmod +x $lib'
15621   ;;
15622
15623 sunos4*)
15624   version_type=sunos
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15626   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15627   shlibpath_var=LD_LIBRARY_PATH
15628   shlibpath_overrides_runpath=yes
15629   if test "$with_gnu_ld" = yes; then
15630     need_lib_prefix=no
15631   fi
15632   need_version=yes
15633   ;;
15634
15635 sysv4 | sysv4.3*)
15636   version_type=linux
15637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638   soname_spec='${libname}${release}${shared_ext}$major'
15639   shlibpath_var=LD_LIBRARY_PATH
15640   case $host_vendor in
15641     sni)
15642       shlibpath_overrides_runpath=no
15643       need_lib_prefix=no
15644       export_dynamic_flag_spec='${wl}-Blargedynsym'
15645       runpath_var=LD_RUN_PATH
15646       ;;
15647     siemens)
15648       need_lib_prefix=no
15649       ;;
15650     motorola)
15651       need_lib_prefix=no
15652       need_version=no
15653       shlibpath_overrides_runpath=no
15654       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15655       ;;
15656   esac
15657   ;;
15658
15659 sysv4*MP*)
15660   if test -d /usr/nec ;then
15661     version_type=linux
15662     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15663     soname_spec='$libname${shared_ext}.$major'
15664     shlibpath_var=LD_LIBRARY_PATH
15665   fi
15666   ;;
15667
15668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15669   version_type=freebsd-elf
15670   need_lib_prefix=no
15671   need_version=no
15672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15673   soname_spec='${libname}${release}${shared_ext}$major'
15674   shlibpath_var=LD_LIBRARY_PATH
15675   hardcode_into_libs=yes
15676   if test "$with_gnu_ld" = yes; then
15677     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15678     shlibpath_overrides_runpath=no
15679   else
15680     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15681     shlibpath_overrides_runpath=yes
15682     case $host_os in
15683       sco3.2v5*)
15684         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15685         ;;
15686     esac
15687   fi
15688   sys_lib_dlsearch_path_spec='/usr/lib'
15689   ;;
15690
15691 uts4*)
15692   version_type=linux
15693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694   soname_spec='${libname}${release}${shared_ext}$major'
15695   shlibpath_var=LD_LIBRARY_PATH
15696   ;;
15697
15698 *)
15699   dynamic_linker=no
15700   ;;
15701 esac
15702 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15703 echo "${ECHO_T}$dynamic_linker" >&6; }
15704 test "$dynamic_linker" = no && can_build_shared=no
15705
15706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15707 if test "$GCC" = yes; then
15708   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15709 fi
15710
15711 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15712 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15713 hardcode_action_F77=
15714 if test -n "$hardcode_libdir_flag_spec_F77" || \
15715    test -n "$runpath_var_F77" || \
15716    test "X$hardcode_automatic_F77" = "Xyes" ; then
15717
15718   # We can hardcode non-existant directories.
15719   if test "$hardcode_direct_F77" != no &&
15720      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15721      # have to relink, otherwise we might link with an installed library
15722      # when we should be linking with a yet-to-be-installed one
15723      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15724      test "$hardcode_minus_L_F77" != no; then
15725     # Linking always hardcodes the temporary library directory.
15726     hardcode_action_F77=relink
15727   else
15728     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15729     hardcode_action_F77=immediate
15730   fi
15731 else
15732   # We cannot hardcode anything, or else we can only hardcode existing
15733   # directories.
15734   hardcode_action_F77=unsupported
15735 fi
15736 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15737 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15738
15739 if test "$hardcode_action_F77" = relink; then
15740   # Fast installation is not supported
15741   enable_fast_install=no
15742 elif test "$shlibpath_overrides_runpath" = yes ||
15743      test "$enable_shared" = no; then
15744   # Fast installation is not necessary
15745   enable_fast_install=needless
15746 fi
15747
15748
15749 # The else clause should only fire when bootstrapping the
15750 # libtool distribution, otherwise you forgot to ship ltmain.sh
15751 # with your package, and you will get complaints that there are
15752 # no rules to generate ltmain.sh.
15753 if test -f "$ltmain"; then
15754   # See if we are running on zsh, and set the options which allow our commands through
15755   # without removal of \ escapes.
15756   if test -n "${ZSH_VERSION+set}" ; then
15757     setopt NO_GLOB_SUBST
15758   fi
15759   # Now quote all the things that may contain metacharacters while being
15760   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15761   # variables and quote the copies for generation of the libtool script.
15762   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15763     SED SHELL STRIP \
15764     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15765     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15766     deplibs_check_method reload_flag reload_cmds need_locks \
15767     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15768     lt_cv_sys_global_symbol_to_c_name_address \
15769     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15770     old_postinstall_cmds old_postuninstall_cmds \
15771     compiler_F77 \
15772     CC_F77 \
15773     LD_F77 \
15774     lt_prog_compiler_wl_F77 \
15775     lt_prog_compiler_pic_F77 \
15776     lt_prog_compiler_static_F77 \
15777     lt_prog_compiler_no_builtin_flag_F77 \
15778     export_dynamic_flag_spec_F77 \
15779     thread_safe_flag_spec_F77 \
15780     whole_archive_flag_spec_F77 \
15781     enable_shared_with_static_runtimes_F77 \
15782     old_archive_cmds_F77 \
15783     old_archive_from_new_cmds_F77 \
15784     predep_objects_F77 \
15785     postdep_objects_F77 \
15786     predeps_F77 \
15787     postdeps_F77 \
15788     compiler_lib_search_path_F77 \
15789     archive_cmds_F77 \
15790     archive_expsym_cmds_F77 \
15791     postinstall_cmds_F77 \
15792     postuninstall_cmds_F77 \
15793     old_archive_from_expsyms_cmds_F77 \
15794     allow_undefined_flag_F77 \
15795     no_undefined_flag_F77 \
15796     export_symbols_cmds_F77 \
15797     hardcode_libdir_flag_spec_F77 \
15798     hardcode_libdir_flag_spec_ld_F77 \
15799     hardcode_libdir_separator_F77 \
15800     hardcode_automatic_F77 \
15801     module_cmds_F77 \
15802     module_expsym_cmds_F77 \
15803     lt_cv_prog_compiler_c_o_F77 \
15804     exclude_expsyms_F77 \
15805     include_expsyms_F77; do
15806
15807     case $var in
15808     old_archive_cmds_F77 | \
15809     old_archive_from_new_cmds_F77 | \
15810     archive_cmds_F77 | \
15811     archive_expsym_cmds_F77 | \
15812     module_cmds_F77 | \
15813     module_expsym_cmds_F77 | \
15814     old_archive_from_expsyms_cmds_F77 | \
15815     export_symbols_cmds_F77 | \
15816     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15817     postinstall_cmds | postuninstall_cmds | \
15818     old_postinstall_cmds | old_postuninstall_cmds | \
15819     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15820       # Double-quote double-evaled strings.
15821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15822       ;;
15823     *)
15824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15825       ;;
15826     esac
15827   done
15828
15829   case $lt_echo in
15830   *'\$0 --fallback-echo"')
15831     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15832     ;;
15833   esac
15834
15835 cfgfile="$ofile"
15836
15837   cat <<__EOF__ >> "$cfgfile"
15838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15839
15840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15841
15842 # Shell to use when invoking shell scripts.
15843 SHELL=$lt_SHELL
15844
15845 # Whether or not to build shared libraries.
15846 build_libtool_libs=$enable_shared
15847
15848 # Whether or not to build static libraries.
15849 build_old_libs=$enable_static
15850
15851 # Whether or not to add -lc for building shared libraries.
15852 build_libtool_need_lc=$archive_cmds_need_lc_F77
15853
15854 # Whether or not to disallow shared libs when runtime libs are static
15855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15856
15857 # Whether or not to optimize for fast installation.
15858 fast_install=$enable_fast_install
15859
15860 # The host system.
15861 host_alias=$host_alias
15862 host=$host
15863 host_os=$host_os
15864
15865 # The build system.
15866 build_alias=$build_alias
15867 build=$build
15868 build_os=$build_os
15869
15870 # An echo program that does not interpret backslashes.
15871 echo=$lt_echo
15872
15873 # The archiver.
15874 AR=$lt_AR
15875 AR_FLAGS=$lt_AR_FLAGS
15876
15877 # A C compiler.
15878 LTCC=$lt_LTCC
15879
15880 # LTCC compiler flags.
15881 LTCFLAGS=$lt_LTCFLAGS
15882
15883 # A language-specific compiler.
15884 CC=$lt_compiler_F77
15885
15886 # Is the compiler the GNU C compiler?
15887 with_gcc=$GCC_F77
15888
15889 # An ERE matcher.
15890 EGREP=$lt_EGREP
15891
15892 # The linker used to build libraries.
15893 LD=$lt_LD_F77
15894
15895 # Whether we need hard or soft links.
15896 LN_S=$lt_LN_S
15897
15898 # A BSD-compatible nm program.
15899 NM=$lt_NM
15900
15901 # A symbol stripping program
15902 STRIP=$lt_STRIP
15903
15904 # Used to examine libraries when file_magic_cmd begins "file"
15905 MAGIC_CMD=$MAGIC_CMD
15906
15907 # Used on cygwin: DLL creation program.
15908 DLLTOOL="$DLLTOOL"
15909
15910 # Used on cygwin: object dumper.
15911 OBJDUMP="$OBJDUMP"
15912
15913 # Used on cygwin: assembler.
15914 AS="$AS"
15915
15916 # The name of the directory that contains temporary libtool files.
15917 objdir=$objdir
15918
15919 # How to create reloadable object files.
15920 reload_flag=$lt_reload_flag
15921 reload_cmds=$lt_reload_cmds
15922
15923 # How to pass a linker flag through the compiler.
15924 wl=$lt_lt_prog_compiler_wl_F77
15925
15926 # Object file suffix (normally "o").
15927 objext="$ac_objext"
15928
15929 # Old archive suffix (normally "a").
15930 libext="$libext"
15931
15932 # Shared library suffix (normally ".so").
15933 shrext_cmds='$shrext_cmds'
15934
15935 # Executable file suffix (normally "").
15936 exeext="$exeext"
15937
15938 # Additional compiler flags for building library objects.
15939 pic_flag=$lt_lt_prog_compiler_pic_F77
15940 pic_mode=$pic_mode
15941
15942 # What is the maximum length of a command?
15943 max_cmd_len=$lt_cv_sys_max_cmd_len
15944
15945 # Does compiler simultaneously support -c and -o options?
15946 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15947
15948 # Must we lock files when doing compilation?
15949 need_locks=$lt_need_locks
15950
15951 # Do we need the lib prefix for modules?
15952 need_lib_prefix=$need_lib_prefix
15953
15954 # Do we need a version for libraries?
15955 need_version=$need_version
15956
15957 # Whether dlopen is supported.
15958 dlopen_support=$enable_dlopen
15959
15960 # Whether dlopen of programs is supported.
15961 dlopen_self=$enable_dlopen_self
15962
15963 # Whether dlopen of statically linked programs is supported.
15964 dlopen_self_static=$enable_dlopen_self_static
15965
15966 # Compiler flag to prevent dynamic linking.
15967 link_static_flag=$lt_lt_prog_compiler_static_F77
15968
15969 # Compiler flag to turn off builtin functions.
15970 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15971
15972 # Compiler flag to allow reflexive dlopens.
15973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15974
15975 # Compiler flag to generate shared objects directly from archives.
15976 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15977
15978 # Compiler flag to generate thread-safe objects.
15979 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15980
15981 # Library versioning type.
15982 version_type=$version_type
15983
15984 # Format of library name prefix.
15985 libname_spec=$lt_libname_spec
15986
15987 # List of archive names.  First name is the real one, the rest are links.
15988 # The last name is the one that the linker finds with -lNAME.
15989 library_names_spec=$lt_library_names_spec
15990
15991 # The coded name of the library, if different from the real name.
15992 soname_spec=$lt_soname_spec
15993
15994 # Commands used to build and install an old-style archive.
15995 RANLIB=$lt_RANLIB
15996 old_archive_cmds=$lt_old_archive_cmds_F77
15997 old_postinstall_cmds=$lt_old_postinstall_cmds
15998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15999
16000 # Create an old-style archive from a shared archive.
16001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16002
16003 # Create a temporary old-style archive to link instead of a shared archive.
16004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16005
16006 # Commands used to build and install a shared archive.
16007 archive_cmds=$lt_archive_cmds_F77
16008 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16009 postinstall_cmds=$lt_postinstall_cmds
16010 postuninstall_cmds=$lt_postuninstall_cmds
16011
16012 # Commands used to build a loadable module (assumed same as above if empty)
16013 module_cmds=$lt_module_cmds_F77
16014 module_expsym_cmds=$lt_module_expsym_cmds_F77
16015
16016 # Commands to strip libraries.
16017 old_striplib=$lt_old_striplib
16018 striplib=$lt_striplib
16019
16020 # Dependencies to place before the objects being linked to create a
16021 # shared library.
16022 predep_objects=$lt_predep_objects_F77
16023
16024 # Dependencies to place after the objects being linked to create a
16025 # shared library.
16026 postdep_objects=$lt_postdep_objects_F77
16027
16028 # Dependencies to place before the objects being linked to create a
16029 # shared library.
16030 predeps=$lt_predeps_F77
16031
16032 # Dependencies to place after the objects being linked to create a
16033 # shared library.
16034 postdeps=$lt_postdeps_F77
16035
16036 # The library search path used internally by the compiler when linking
16037 # a shared library.
16038 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16039
16040 # Method to check whether dependent libraries are shared objects.
16041 deplibs_check_method=$lt_deplibs_check_method
16042
16043 # Command to use when deplibs_check_method == file_magic.
16044 file_magic_cmd=$lt_file_magic_cmd
16045
16046 # Flag that allows shared libraries with undefined symbols to be built.
16047 allow_undefined_flag=$lt_allow_undefined_flag_F77
16048
16049 # Flag that forces no undefined symbols.
16050 no_undefined_flag=$lt_no_undefined_flag_F77
16051
16052 # Commands used to finish a libtool library installation in a directory.
16053 finish_cmds=$lt_finish_cmds
16054
16055 # Same as above, but a single script fragment to be evaled but not shown.
16056 finish_eval=$lt_finish_eval
16057
16058 # Take the output of nm and produce a listing of raw symbols and C names.
16059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16060
16061 # Transform the output of nm in a proper C declaration
16062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16063
16064 # Transform the output of nm in a C name address pair
16065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16066
16067 # This is the shared library runtime path variable.
16068 runpath_var=$runpath_var
16069
16070 # This is the shared library path variable.
16071 shlibpath_var=$shlibpath_var
16072
16073 # Is shlibpath searched before the hard-coded library search path?
16074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16075
16076 # How to hardcode a shared library path into an executable.
16077 hardcode_action=$hardcode_action_F77
16078
16079 # Whether we should hardcode library paths into libraries.
16080 hardcode_into_libs=$hardcode_into_libs
16081
16082 # Flag to hardcode \$libdir into a binary during linking.
16083 # This must work even if \$libdir does not exist.
16084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16085
16086 # If ld is used when linking, flag to hardcode \$libdir into
16087 # a binary during linking. This must work even if \$libdir does
16088 # not exist.
16089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16090
16091 # Whether we need a single -rpath flag with a separated argument.
16092 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16093
16094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16095 # resulting binary.
16096 hardcode_direct=$hardcode_direct_F77
16097
16098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16099 # resulting binary.
16100 hardcode_minus_L=$hardcode_minus_L_F77
16101
16102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16103 # the resulting binary.
16104 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16105
16106 # Set to yes if building a shared library automatically hardcodes DIR into the library
16107 # and all subsequent libraries and executables linked against it.
16108 hardcode_automatic=$hardcode_automatic_F77
16109
16110 # Variables whose values should be saved in libtool wrapper scripts and
16111 # restored at relink time.
16112 variables_saved_for_relink="$variables_saved_for_relink"
16113
16114 # Whether libtool must link a program against all its dependency libraries.
16115 link_all_deplibs=$link_all_deplibs_F77
16116
16117 # Compile-time system search path for libraries
16118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16119
16120 # Run-time system search path for libraries
16121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16122
16123 # Fix the shell variable \$srcfile for the compiler.
16124 fix_srcfile_path="$fix_srcfile_path_F77"
16125
16126 # Set to yes if exported symbols are required.
16127 always_export_symbols=$always_export_symbols_F77
16128
16129 # The commands to list exported symbols.
16130 export_symbols_cmds=$lt_export_symbols_cmds_F77
16131
16132 # The commands to extract the exported symbol list from a shared archive.
16133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16134
16135 # Symbols that should not be listed in the preloaded symbols.
16136 exclude_expsyms=$lt_exclude_expsyms_F77
16137
16138 # Symbols that must always be exported.
16139 include_expsyms=$lt_include_expsyms_F77
16140
16141 # ### END LIBTOOL TAG CONFIG: $tagname
16142
16143 __EOF__
16144
16145
16146 else
16147   # If there is no Makefile yet, we rely on a make rule to execute
16148   # `config.status --recheck' to rerun these tests and create the
16149   # libtool script then.
16150   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16151   if test -f "$ltmain_in"; then
16152     test -f Makefile && make "$ltmain"
16153   fi
16154 fi
16155
16156
16157 ac_ext=c
16158 ac_cpp='$CPP $CPPFLAGS'
16159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16162
16163 CC="$lt_save_CC"
16164
16165         else
16166           tagname=""
16167         fi
16168         ;;
16169
16170       GCJ)
16171         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16172
16173
16174 # Source file extension for Java test sources.
16175 ac_ext=java
16176
16177 # Object file extension for compiled Java test sources.
16178 objext=o
16179 objext_GCJ=$objext
16180
16181 # Code to be used in simple compile tests
16182 lt_simple_compile_test_code="class foo {}\n"
16183
16184 # Code to be used in simple link tests
16185 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16186
16187 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16188
16189 # If no C compiler was specified, use CC.
16190 LTCC=${LTCC-"$CC"}
16191
16192 # If no C compiler flags were specified, use CFLAGS.
16193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16194
16195 # Allow CC to be a program name with arguments.
16196 compiler=$CC
16197
16198
16199 # save warnings/boilerplate of simple test code
16200 ac_outfile=conftest.$ac_objext
16201 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16203 _lt_compiler_boilerplate=`cat conftest.err`
16204 $rm conftest*
16205
16206 ac_outfile=conftest.$ac_objext
16207 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16209 _lt_linker_boilerplate=`cat conftest.err`
16210 $rm conftest*
16211
16212
16213 # Allow CC to be a program name with arguments.
16214 lt_save_CC="$CC"
16215 CC=${GCJ-"gcj"}
16216 compiler=$CC
16217 compiler_GCJ=$CC
16218 for cc_temp in $compiler""; do
16219   case $cc_temp in
16220     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16221     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16222     \-*) ;;
16223     *) break;;
16224   esac
16225 done
16226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16227
16228
16229 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16230 archive_cmds_need_lc_GCJ=no
16231
16232 old_archive_cmds_GCJ=$old_archive_cmds
16233
16234
16235 lt_prog_compiler_no_builtin_flag_GCJ=
16236
16237 if test "$GCC" = yes; then
16238   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16239
16240
16241 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16242 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16243 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   lt_cv_prog_compiler_rtti_exceptions=no
16247   ac_outfile=conftest.$ac_objext
16248    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16249    lt_compiler_flag="-fno-rtti -fno-exceptions"
16250    # Insert the option either (1) after the last *FLAGS variable, or
16251    # (2) before a word containing "conftest.", or (3) at the end.
16252    # Note that $ac_compile itself does not contain backslashes and begins
16253    # with a dollar sign (not a hyphen), so the echo should work correctly.
16254    # The option is referenced via a variable to avoid confusing sed.
16255    lt_compile=`echo "$ac_compile" | $SED \
16256    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16257    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16258    -e 's:$: $lt_compiler_flag:'`
16259    (eval echo "\"\$as_me:16259: $lt_compile\"" >&5)
16260    (eval "$lt_compile" 2>conftest.err)
16261    ac_status=$?
16262    cat conftest.err >&5
16263    echo "$as_me:16263: \$? = $ac_status" >&5
16264    if (exit $ac_status) && test -s "$ac_outfile"; then
16265      # The compiler can only warn and ignore the option if not recognized
16266      # So say no if there are warnings other than the usual output.
16267      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16268      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16269      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16270        lt_cv_prog_compiler_rtti_exceptions=yes
16271      fi
16272    fi
16273    $rm conftest*
16274
16275 fi
16276 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16277 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16278
16279 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16280     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16281 else
16282     :
16283 fi
16284
16285 fi
16286
16287 lt_prog_compiler_wl_GCJ=
16288 lt_prog_compiler_pic_GCJ=
16289 lt_prog_compiler_static_GCJ=
16290
16291 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16292 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16293
16294   if test "$GCC" = yes; then
16295     lt_prog_compiler_wl_GCJ='-Wl,'
16296     lt_prog_compiler_static_GCJ='-static'
16297
16298     case $host_os in
16299       aix*)
16300       # All AIX code is PIC.
16301       if test "$host_cpu" = ia64; then
16302         # AIX 5 now supports IA64 processor
16303         lt_prog_compiler_static_GCJ='-Bstatic'
16304       fi
16305       ;;
16306
16307     amigaos*)
16308       # FIXME: we need at least 68020 code to build shared libraries, but
16309       # adding the `-m68020' flag to GCC prevents building anything better,
16310       # like `-m68040'.
16311       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16312       ;;
16313
16314     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16315       # PIC is the default for these OSes.
16316       ;;
16317
16318     mingw* | pw32* | os2*)
16319       # This hack is so that the source file can tell whether it is being
16320       # built for inclusion in a dll (and should export symbols for example).
16321       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16322       ;;
16323
16324     darwin* | rhapsody*)
16325       # PIC is the default on this platform
16326       # Common symbols not allowed in MH_DYLIB files
16327       lt_prog_compiler_pic_GCJ='-fno-common'
16328       ;;
16329
16330     interix3*)
16331       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16332       # Instead, we relocate shared libraries at runtime.
16333       ;;
16334
16335     msdosdjgpp*)
16336       # Just because we use GCC doesn't mean we suddenly get shared libraries
16337       # on systems that don't support them.
16338       lt_prog_compiler_can_build_shared_GCJ=no
16339       enable_shared=no
16340       ;;
16341
16342     sysv4*MP*)
16343       if test -d /usr/nec; then
16344         lt_prog_compiler_pic_GCJ=-Kconform_pic
16345       fi
16346       ;;
16347
16348     hpux*)
16349       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16350       # not for PA HP-UX.
16351       case $host_cpu in
16352       hppa*64*|ia64*)
16353         # +Z the default
16354         ;;
16355       *)
16356         lt_prog_compiler_pic_GCJ='-fPIC'
16357         ;;
16358       esac
16359       ;;
16360
16361     *)
16362       lt_prog_compiler_pic_GCJ='-fPIC'
16363       ;;
16364     esac
16365   else
16366     # PORTME Check for flag to pass linker flags through the system compiler.
16367     case $host_os in
16368     aix*)
16369       lt_prog_compiler_wl_GCJ='-Wl,'
16370       if test "$host_cpu" = ia64; then
16371         # AIX 5 now supports IA64 processor
16372         lt_prog_compiler_static_GCJ='-Bstatic'
16373       else
16374         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16375       fi
16376       ;;
16377       darwin*)
16378         # PIC is the default on this platform
16379         # Common symbols not allowed in MH_DYLIB files
16380        case $cc_basename in
16381          xlc*)
16382          lt_prog_compiler_pic_GCJ='-qnocommon'
16383          lt_prog_compiler_wl_GCJ='-Wl,'
16384          ;;
16385        esac
16386        ;;
16387
16388     mingw* | pw32* | os2*)
16389       # This hack is so that the source file can tell whether it is being
16390       # built for inclusion in a dll (and should export symbols for example).
16391       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16392       ;;
16393
16394     hpux9* | hpux10* | hpux11*)
16395       lt_prog_compiler_wl_GCJ='-Wl,'
16396       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16397       # not for PA HP-UX.
16398       case $host_cpu in
16399       hppa*64*|ia64*)
16400         # +Z the default
16401         ;;
16402       *)
16403         lt_prog_compiler_pic_GCJ='+Z'
16404         ;;
16405       esac
16406       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16407       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16408       ;;
16409
16410     irix5* | irix6* | nonstopux*)
16411       lt_prog_compiler_wl_GCJ='-Wl,'
16412       # PIC (with -KPIC) is the default.
16413       lt_prog_compiler_static_GCJ='-non_shared'
16414       ;;
16415
16416     newsos6)
16417       lt_prog_compiler_pic_GCJ='-KPIC'
16418       lt_prog_compiler_static_GCJ='-Bstatic'
16419       ;;
16420
16421     linux* | k*bsd*-gnu)
16422       case $cc_basename in
16423       icc* | ecc*)
16424         lt_prog_compiler_wl_GCJ='-Wl,'
16425         lt_prog_compiler_pic_GCJ='-KPIC'
16426         lt_prog_compiler_static_GCJ='-static'
16427         ;;
16428       pgcc* | pgf77* | pgf90* | pgf95*)
16429         # Portland Group compilers (*not* the Pentium gcc compiler,
16430         # which looks to be a dead project)
16431         lt_prog_compiler_wl_GCJ='-Wl,'
16432         lt_prog_compiler_pic_GCJ='-fpic'
16433         lt_prog_compiler_static_GCJ='-Bstatic'
16434         ;;
16435       ccc*)
16436         lt_prog_compiler_wl_GCJ='-Wl,'
16437         # All Alpha code is PIC.
16438         lt_prog_compiler_static_GCJ='-non_shared'
16439         ;;
16440       esac
16441       ;;
16442
16443     osf3* | osf4* | osf5*)
16444       lt_prog_compiler_wl_GCJ='-Wl,'
16445       # All OSF/1 code is PIC.
16446       lt_prog_compiler_static_GCJ='-non_shared'
16447       ;;
16448
16449     solaris*)
16450       lt_prog_compiler_pic_GCJ='-KPIC'
16451       lt_prog_compiler_static_GCJ='-Bstatic'
16452       case $cc_basename in
16453       f77* | f90* | f95*)
16454         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16455       *)
16456         lt_prog_compiler_wl_GCJ='-Wl,';;
16457       esac
16458       ;;
16459
16460     sunos4*)
16461       lt_prog_compiler_wl_GCJ='-Qoption ld '
16462       lt_prog_compiler_pic_GCJ='-PIC'
16463       lt_prog_compiler_static_GCJ='-Bstatic'
16464       ;;
16465
16466     sysv4 | sysv4.2uw2* | sysv4.3*)
16467       lt_prog_compiler_wl_GCJ='-Wl,'
16468       lt_prog_compiler_pic_GCJ='-KPIC'
16469       lt_prog_compiler_static_GCJ='-Bstatic'
16470       ;;
16471
16472     sysv4*MP*)
16473       if test -d /usr/nec ;then
16474         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16475         lt_prog_compiler_static_GCJ='-Bstatic'
16476       fi
16477       ;;
16478
16479     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16480       lt_prog_compiler_wl_GCJ='-Wl,'
16481       lt_prog_compiler_pic_GCJ='-KPIC'
16482       lt_prog_compiler_static_GCJ='-Bstatic'
16483       ;;
16484
16485     unicos*)
16486       lt_prog_compiler_wl_GCJ='-Wl,'
16487       lt_prog_compiler_can_build_shared_GCJ=no
16488       ;;
16489
16490     uts4*)
16491       lt_prog_compiler_pic_GCJ='-pic'
16492       lt_prog_compiler_static_GCJ='-Bstatic'
16493       ;;
16494
16495     *)
16496       lt_prog_compiler_can_build_shared_GCJ=no
16497       ;;
16498     esac
16499   fi
16500
16501 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16502 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16503
16504 #
16505 # Check to make sure the PIC flag actually works.
16506 #
16507 if test -n "$lt_prog_compiler_pic_GCJ"; then
16508
16509 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16510 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16511 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16512   echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16514   lt_prog_compiler_pic_works_GCJ=no
16515   ac_outfile=conftest.$ac_objext
16516    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16517    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16518    # Insert the option either (1) after the last *FLAGS variable, or
16519    # (2) before a word containing "conftest.", or (3) at the end.
16520    # Note that $ac_compile itself does not contain backslashes and begins
16521    # with a dollar sign (not a hyphen), so the echo should work correctly.
16522    # The option is referenced via a variable to avoid confusing sed.
16523    lt_compile=`echo "$ac_compile" | $SED \
16524    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16525    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16526    -e 's:$: $lt_compiler_flag:'`
16527    (eval echo "\"\$as_me:16527: $lt_compile\"" >&5)
16528    (eval "$lt_compile" 2>conftest.err)
16529    ac_status=$?
16530    cat conftest.err >&5
16531    echo "$as_me:16531: \$? = $ac_status" >&5
16532    if (exit $ac_status) && test -s "$ac_outfile"; then
16533      # The compiler can only warn and ignore the option if not recognized
16534      # So say no if there are warnings other than the usual output.
16535      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16536      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16537      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16538        lt_prog_compiler_pic_works_GCJ=yes
16539      fi
16540    fi
16541    $rm conftest*
16542
16543 fi
16544 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16545 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16546
16547 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16548     case $lt_prog_compiler_pic_GCJ in
16549      "" | " "*) ;;
16550      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16551      esac
16552 else
16553     lt_prog_compiler_pic_GCJ=
16554      lt_prog_compiler_can_build_shared_GCJ=no
16555 fi
16556
16557 fi
16558 case $host_os in
16559   # For platforms which do not support PIC, -DPIC is meaningless:
16560   *djgpp*)
16561     lt_prog_compiler_pic_GCJ=
16562     ;;
16563   *)
16564     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16565     ;;
16566 esac
16567
16568 #
16569 # Check to make sure the static flag actually works.
16570 #
16571 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16572 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16573 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16574 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   lt_prog_compiler_static_works_GCJ=no
16578    save_LDFLAGS="$LDFLAGS"
16579    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16580    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16581    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16582      # The linker can only warn and ignore the option if not recognized
16583      # So say no if there are warnings
16584      if test -s conftest.err; then
16585        # Append any errors to the config.log.
16586        cat conftest.err 1>&5
16587        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16588        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16589        if diff conftest.exp conftest.er2 >/dev/null; then
16590          lt_prog_compiler_static_works_GCJ=yes
16591        fi
16592      else
16593        lt_prog_compiler_static_works_GCJ=yes
16594      fi
16595    fi
16596    $rm conftest*
16597    LDFLAGS="$save_LDFLAGS"
16598
16599 fi
16600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16601 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16602
16603 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16604     :
16605 else
16606     lt_prog_compiler_static_GCJ=
16607 fi
16608
16609
16610 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16611 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16612 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   lt_cv_prog_compiler_c_o_GCJ=no
16616    $rm -r conftest 2>/dev/null
16617    mkdir conftest
16618    cd conftest
16619    mkdir out
16620    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16621
16622    lt_compiler_flag="-o out/conftest2.$ac_objext"
16623    # Insert the option either (1) after the last *FLAGS variable, or
16624    # (2) before a word containing "conftest.", or (3) at the end.
16625    # Note that $ac_compile itself does not contain backslashes and begins
16626    # with a dollar sign (not a hyphen), so the echo should work correctly.
16627    lt_compile=`echo "$ac_compile" | $SED \
16628    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16629    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16630    -e 's:$: $lt_compiler_flag:'`
16631    (eval echo "\"\$as_me:16631: $lt_compile\"" >&5)
16632    (eval "$lt_compile" 2>out/conftest.err)
16633    ac_status=$?
16634    cat out/conftest.err >&5
16635    echo "$as_me:16635: \$? = $ac_status" >&5
16636    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16637    then
16638      # The compiler can only warn and ignore the option if not recognized
16639      # So say no if there are warnings
16640      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16641      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16642      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16643        lt_cv_prog_compiler_c_o_GCJ=yes
16644      fi
16645    fi
16646    chmod u+w . 2>&5
16647    $rm conftest*
16648    # SGI C++ compiler will create directory out/ii_files/ for
16649    # template instantiation
16650    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16651    $rm out/* && rmdir out
16652    cd ..
16653    rmdir conftest
16654    $rm conftest*
16655
16656 fi
16657 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16658 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16659
16660
16661 hard_links="nottested"
16662 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16663   # do not overwrite the value of need_locks provided by the user
16664   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16665 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16666   hard_links=yes
16667   $rm conftest*
16668   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16669   touch conftest.a
16670   ln conftest.a conftest.b 2>&5 || hard_links=no
16671   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16672   { echo "$as_me:$LINENO: result: $hard_links" >&5
16673 echo "${ECHO_T}$hard_links" >&6; }
16674   if test "$hard_links" = no; then
16675     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16676 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16677     need_locks=warn
16678   fi
16679 else
16680   need_locks=no
16681 fi
16682
16683 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16685
16686   runpath_var=
16687   allow_undefined_flag_GCJ=
16688   enable_shared_with_static_runtimes_GCJ=no
16689   archive_cmds_GCJ=
16690   archive_expsym_cmds_GCJ=
16691   old_archive_From_new_cmds_GCJ=
16692   old_archive_from_expsyms_cmds_GCJ=
16693   export_dynamic_flag_spec_GCJ=
16694   whole_archive_flag_spec_GCJ=
16695   thread_safe_flag_spec_GCJ=
16696   hardcode_libdir_flag_spec_GCJ=
16697   hardcode_libdir_flag_spec_ld_GCJ=
16698   hardcode_libdir_separator_GCJ=
16699   hardcode_direct_GCJ=no
16700   hardcode_minus_L_GCJ=no
16701   hardcode_shlibpath_var_GCJ=unsupported
16702   link_all_deplibs_GCJ=unknown
16703   hardcode_automatic_GCJ=no
16704   module_cmds_GCJ=
16705   module_expsym_cmds_GCJ=
16706   always_export_symbols_GCJ=no
16707   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16708   # include_expsyms should be a list of space-separated symbols to be *always*
16709   # included in the symbol list
16710   include_expsyms_GCJ=
16711   # exclude_expsyms can be an extended regexp of symbols to exclude
16712   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16713   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16714   # as well as any symbol that contains `d'.
16715   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16716   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16717   # platforms (ab)use it in PIC code, but their linkers get confused if
16718   # the symbol is explicitly referenced.  Since portable code cannot
16719   # rely on this symbol name, it's probably fine to never include it in
16720   # preloaded symbol tables.
16721   extract_expsyms_cmds=
16722   # Just being paranoid about ensuring that cc_basename is set.
16723   for cc_temp in $compiler""; do
16724   case $cc_temp in
16725     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16726     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16727     \-*) ;;
16728     *) break;;
16729   esac
16730 done
16731 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16732
16733   case $host_os in
16734   cygwin* | mingw* | pw32*)
16735     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16736     # When not using gcc, we currently assume that we are using
16737     # Microsoft Visual C++.
16738     if test "$GCC" != yes; then
16739       with_gnu_ld=no
16740     fi
16741     ;;
16742   interix*)
16743     # we just hope/assume this is gcc and not c89 (= MSVC++)
16744     with_gnu_ld=yes
16745     ;;
16746   openbsd*)
16747     with_gnu_ld=no
16748     ;;
16749   esac
16750
16751   ld_shlibs_GCJ=yes
16752   if test "$with_gnu_ld" = yes; then
16753     # If archive_cmds runs LD, not CC, wlarc should be empty
16754     wlarc='${wl}'
16755
16756     # Set some defaults for GNU ld with shared library support. These
16757     # are reset later if shared libraries are not supported. Putting them
16758     # here allows them to be overridden if necessary.
16759     runpath_var=LD_RUN_PATH
16760     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16761     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16762     # ancient GNU ld didn't support --whole-archive et. al.
16763     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16764         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16765       else
16766         whole_archive_flag_spec_GCJ=
16767     fi
16768     supports_anon_versioning=no
16769     case `$LD -v 2>/dev/null` in
16770       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16771       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16772       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16773       *\ 2.11.*) ;; # other 2.11 versions
16774       *) supports_anon_versioning=yes ;;
16775     esac
16776
16777     # See if GNU ld supports shared libraries.
16778     case $host_os in
16779     aix3* | aix4* | aix5*)
16780       # On AIX/PPC, the GNU linker is very broken
16781       if test "$host_cpu" != ia64; then
16782         ld_shlibs_GCJ=no
16783         cat <<EOF 1>&2
16784
16785 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16786 *** to be unable to reliably create shared libraries on AIX.
16787 *** Therefore, libtool is disabling shared libraries support.  If you
16788 *** really care for shared libraries, you may want to modify your PATH
16789 *** so that a non-GNU linker is found, and then restart.
16790
16791 EOF
16792       fi
16793       ;;
16794
16795     amigaos*)
16796       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)'
16797       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16798       hardcode_minus_L_GCJ=yes
16799
16800       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16801       # that the semantics of dynamic libraries on AmigaOS, at least up
16802       # to version 4, is to share data among multiple programs linked
16803       # with the same dynamic library.  Since this doesn't match the
16804       # behavior of shared libraries on other platforms, we can't use
16805       # them.
16806       ld_shlibs_GCJ=no
16807       ;;
16808
16809     beos*)
16810       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16811         allow_undefined_flag_GCJ=unsupported
16812         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16813         # support --undefined.  This deserves some investigation.  FIXME
16814         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815       else
16816         ld_shlibs_GCJ=no
16817       fi
16818       ;;
16819
16820     cygwin* | mingw* | pw32*)
16821       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16822       # as there is no search path for DLLs.
16823       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16824       allow_undefined_flag_GCJ=unsupported
16825       always_export_symbols_GCJ=no
16826       enable_shared_with_static_runtimes_GCJ=yes
16827       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16828
16829       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16830         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16831         # If the export-symbols file already is a .def file (1st line
16832         # is EXPORTS), use it as is; otherwise, prepend...
16833         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16834           cp $export_symbols $output_objdir/$soname.def;
16835         else
16836           echo EXPORTS > $output_objdir/$soname.def;
16837           cat $export_symbols >> $output_objdir/$soname.def;
16838         fi~
16839         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16840       else
16841         ld_shlibs_GCJ=no
16842       fi
16843       ;;
16844
16845     interix3*)
16846       hardcode_direct_GCJ=no
16847       hardcode_shlibpath_var_GCJ=no
16848       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16849       export_dynamic_flag_spec_GCJ='${wl}-E'
16850       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16851       # Instead, shared libraries are loaded at an image base (0x10000000 by
16852       # default) and relocated if they conflict, which is a slow very memory
16853       # consuming and fragmenting process.  To avoid this, we pick a random,
16854       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16855       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16856       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'
16857       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'
16858       ;;
16859
16860     linux* | k*bsd*-gnu)
16861       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16862         tmp_addflag=
16863         case $cc_basename,$host_cpu in
16864         pgcc*)                          # Portland Group C compiler
16865           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'
16866           tmp_addflag=' $pic_flag'
16867           ;;
16868         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16869           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'
16870           tmp_addflag=' $pic_flag -Mnomain' ;;
16871         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16872           tmp_addflag=' -i_dynamic' ;;
16873         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16874           tmp_addflag=' -i_dynamic -nofor_main' ;;
16875         ifc* | ifort*)                  # Intel Fortran compiler
16876           tmp_addflag=' -nofor_main' ;;
16877         esac
16878         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16879
16880         if test $supports_anon_versioning = yes; then
16881           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16882   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16883   $echo "local: *; };" >> $output_objdir/$libname.ver~
16884           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16885         fi
16886         link_all_deplibs_GCJ=no
16887       else
16888         ld_shlibs_GCJ=no
16889       fi
16890       ;;
16891
16892     netbsd* | netbsdelf*-gnu)
16893       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16894         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16895         wlarc=
16896       else
16897         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16898         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16899       fi
16900       ;;
16901
16902     solaris*)
16903       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16904         ld_shlibs_GCJ=no
16905         cat <<EOF 1>&2
16906
16907 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16908 *** create shared libraries on Solaris systems.  Therefore, libtool
16909 *** is disabling shared libraries support.  We urge you to upgrade GNU
16910 *** binutils to release 2.9.1 or newer.  Another option is to modify
16911 *** your PATH or compiler configuration so that the native linker is
16912 *** used, and then restart.
16913
16914 EOF
16915       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16916         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16917         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16918       else
16919         ld_shlibs_GCJ=no
16920       fi
16921       ;;
16922
16923     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16924       case `$LD -v 2>&1` in
16925         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16926         ld_shlibs_GCJ=no
16927         cat <<_LT_EOF 1>&2
16928
16929 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16930 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16931 *** is disabling shared libraries support.  We urge you to upgrade GNU
16932 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16933 *** your PATH or compiler configuration so that the native linker is
16934 *** used, and then restart.
16935
16936 _LT_EOF
16937         ;;
16938         *)
16939           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16940             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16941             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16942             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16943           else
16944             ld_shlibs_GCJ=no
16945           fi
16946         ;;
16947       esac
16948       ;;
16949
16950     sunos4*)
16951       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16952       wlarc=
16953       hardcode_direct_GCJ=yes
16954       hardcode_shlibpath_var_GCJ=no
16955       ;;
16956
16957     *)
16958       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16959         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16960         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16961       else
16962         ld_shlibs_GCJ=no
16963       fi
16964       ;;
16965     esac
16966
16967     if test "$ld_shlibs_GCJ" = no; then
16968       runpath_var=
16969       hardcode_libdir_flag_spec_GCJ=
16970       export_dynamic_flag_spec_GCJ=
16971       whole_archive_flag_spec_GCJ=
16972     fi
16973   else
16974     # PORTME fill in a description of your system's linker (not GNU ld)
16975     case $host_os in
16976     aix3*)
16977       allow_undefined_flag_GCJ=unsupported
16978       always_export_symbols_GCJ=yes
16979       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'
16980       # Note: this linker hardcodes the directories in LIBPATH if there
16981       # are no directories specified by -L.
16982       hardcode_minus_L_GCJ=yes
16983       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16984         # Neither direct hardcoding nor static linking is supported with a
16985         # broken collect2.
16986         hardcode_direct_GCJ=unsupported
16987       fi
16988       ;;
16989
16990     aix4* | aix5*)
16991       if test "$host_cpu" = ia64; then
16992         # On IA64, the linker does run time linking by default, so we don't
16993         # have to do anything special.
16994         aix_use_runtimelinking=no
16995         exp_sym_flag='-Bexport'
16996         no_entry_flag=""
16997       else
16998         # If we're using GNU nm, then we don't want the "-C" option.
16999         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17000         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17001           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'
17002         else
17003           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'
17004         fi
17005         aix_use_runtimelinking=no
17006
17007         # Test if we are trying to use run time linking or normal
17008         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17009         # need to do runtime linking.
17010         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17011           for ld_flag in $LDFLAGS; do
17012           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17013             aix_use_runtimelinking=yes
17014             break
17015           fi
17016           done
17017           ;;
17018         esac
17019
17020         exp_sym_flag='-bexport'
17021         no_entry_flag='-bnoentry'
17022       fi
17023
17024       # When large executables or shared objects are built, AIX ld can
17025       # have problems creating the table of contents.  If linking a library
17026       # or program results in "error TOC overflow" add -mminimal-toc to
17027       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17028       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17029
17030       archive_cmds_GCJ=''
17031       hardcode_direct_GCJ=yes
17032       hardcode_libdir_separator_GCJ=':'
17033       link_all_deplibs_GCJ=yes
17034
17035       if test "$GCC" = yes; then
17036         case $host_os in aix4.[012]|aix4.[012].*)
17037         # We only want to do this on AIX 4.2 and lower, the check
17038         # below for broken collect2 doesn't work under 4.3+
17039           collect2name=`${CC} -print-prog-name=collect2`
17040           if test -f "$collect2name" && \
17041            strings "$collect2name" | grep resolve_lib_name >/dev/null
17042           then
17043           # We have reworked collect2
17044           hardcode_direct_GCJ=yes
17045           else
17046           # We have old collect2
17047           hardcode_direct_GCJ=unsupported
17048           # It fails to find uninstalled libraries when the uninstalled
17049           # path is not listed in the libpath.  Setting hardcode_minus_L
17050           # to unsupported forces relinking
17051           hardcode_minus_L_GCJ=yes
17052           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17053           hardcode_libdir_separator_GCJ=
17054           fi
17055           ;;
17056         esac
17057         shared_flag='-shared'
17058         if test "$aix_use_runtimelinking" = yes; then
17059           shared_flag="$shared_flag "'${wl}-G'
17060         fi
17061       else
17062         # not using gcc
17063         if test "$host_cpu" = ia64; then
17064         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17065         # chokes on -Wl,-G. The following line is correct:
17066           shared_flag='-G'
17067         else
17068           if test "$aix_use_runtimelinking" = yes; then
17069             shared_flag='${wl}-G'
17070           else
17071             shared_flag='${wl}-bM:SRE'
17072           fi
17073         fi
17074       fi
17075
17076       # It seems that -bexpall does not export symbols beginning with
17077       # underscore (_), so it is better to generate a list of symbols to export.
17078       always_export_symbols_GCJ=yes
17079       if test "$aix_use_runtimelinking" = yes; then
17080         # Warning - without using the other runtime loading flags (-brtl),
17081         # -berok will link without error, but may produce a broken library.
17082         allow_undefined_flag_GCJ='-berok'
17083        # Determine the default libpath from the value encoded in an empty executable.
17084        cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h.  */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h.  */
17090
17091 int
17092 main ()
17093 {
17094
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_link") 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } && {
17113          test -z "$ac_c_werror_flag" ||
17114          test ! -s conftest.err
17115        } && test -s conftest$ac_exeext &&
17116        $as_test_x conftest$ac_exeext; then
17117
17118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17119 }'`
17120 # Check for a 64-bit object if we didn't find anything.
17121 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; }
17122 }'`; fi
17123 else
17124   echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127
17128 fi
17129
17130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17131       conftest$ac_exeext conftest.$ac_ext
17132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17133
17134        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17135         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"
17136        else
17137         if test "$host_cpu" = ia64; then
17138           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17139           allow_undefined_flag_GCJ="-z nodefs"
17140           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"
17141         else
17142          # Determine the default libpath from the value encoded in an empty executable.
17143          cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h.  */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h.  */
17149
17150 int
17151 main ()
17152 {
17153
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_link") 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } && {
17172          test -z "$ac_c_werror_flag" ||
17173          test ! -s conftest.err
17174        } && test -s conftest$ac_exeext &&
17175        $as_test_x conftest$ac_exeext; then
17176
17177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17178 }'`
17179 # Check for a 64-bit object if we didn't find anything.
17180 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; }
17181 }'`; fi
17182 else
17183   echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186
17187 fi
17188
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190       conftest$ac_exeext conftest.$ac_ext
17191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17192
17193          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17194           # Warning - without using the other run time loading flags,
17195           # -berok will link without error, but may produce a broken library.
17196           no_undefined_flag_GCJ=' ${wl}-bernotok'
17197           allow_undefined_flag_GCJ=' ${wl}-berok'
17198           # Exported symbols can be pulled into shared objects from archives
17199           whole_archive_flag_spec_GCJ='$convenience'
17200           archive_cmds_need_lc_GCJ=yes
17201           # This is similar to how AIX traditionally builds its shared libraries.
17202           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'
17203         fi
17204       fi
17205       ;;
17206
17207     amigaos*)
17208       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)'
17209       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17210       hardcode_minus_L_GCJ=yes
17211       # see comment about different semantics on the GNU ld section
17212       ld_shlibs_GCJ=no
17213       ;;
17214
17215     bsdi[45]*)
17216       export_dynamic_flag_spec_GCJ=-rdynamic
17217       ;;
17218
17219     cygwin* | mingw* | pw32*)
17220       # When not using gcc, we currently assume that we are using
17221       # Microsoft Visual C++.
17222       # hardcode_libdir_flag_spec is actually meaningless, as there is
17223       # no search path for DLLs.
17224       hardcode_libdir_flag_spec_GCJ=' '
17225       allow_undefined_flag_GCJ=unsupported
17226       # Tell ltmain to make .lib files, not .a files.
17227       libext=lib
17228       # Tell ltmain to make .dll files, not .so files.
17229       shrext_cmds=".dll"
17230       # FIXME: Setting linknames here is a bad hack.
17231       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17232       # The linker will automatically build a .lib file if we build a DLL.
17233       old_archive_From_new_cmds_GCJ='true'
17234       # FIXME: Should let the user specify the lib program.
17235       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17236       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17237       enable_shared_with_static_runtimes_GCJ=yes
17238       ;;
17239
17240     darwin* | rhapsody*)
17241       case $host_os in
17242         rhapsody* | darwin1.[012])
17243          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17244          ;;
17245        *) # Darwin 1.3 on
17246          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17247            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17248          else
17249            case ${MACOSX_DEPLOYMENT_TARGET} in
17250              10.[012])
17251                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17252                ;;
17253              10.*)
17254                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17255                ;;
17256            esac
17257          fi
17258          ;;
17259       esac
17260       archive_cmds_need_lc_GCJ=no
17261       hardcode_direct_GCJ=no
17262       hardcode_automatic_GCJ=yes
17263       hardcode_shlibpath_var_GCJ=unsupported
17264       whole_archive_flag_spec_GCJ=''
17265       link_all_deplibs_GCJ=yes
17266     if test "$GCC" = yes ; then
17267         output_verbose_link_cmd='echo'
17268         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17269       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17270       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17271       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}'
17272       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}'
17273     else
17274       case $cc_basename in
17275         xlc*)
17276          output_verbose_link_cmd='echo'
17277          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17278          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17279           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17280          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}'
17281           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}'
17282           ;;
17283        *)
17284          ld_shlibs_GCJ=no
17285           ;;
17286       esac
17287     fi
17288       ;;
17289
17290     dgux*)
17291       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17292       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17293       hardcode_shlibpath_var_GCJ=no
17294       ;;
17295
17296     freebsd1*)
17297       ld_shlibs_GCJ=no
17298       ;;
17299
17300     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17301     # support.  Future versions do this automatically, but an explicit c++rt0.o
17302     # does not break anything, and helps significantly (at the cost of a little
17303     # extra space).
17304     freebsd2.2*)
17305       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17306       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17307       hardcode_direct_GCJ=yes
17308       hardcode_shlibpath_var_GCJ=no
17309       ;;
17310
17311     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17312     freebsd2*)
17313       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17314       hardcode_direct_GCJ=yes
17315       hardcode_minus_L_GCJ=yes
17316       hardcode_shlibpath_var_GCJ=no
17317       ;;
17318
17319     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17320     freebsd* | dragonfly*)
17321       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17322       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17323       hardcode_direct_GCJ=yes
17324       hardcode_shlibpath_var_GCJ=no
17325       ;;
17326
17327     hpux9*)
17328       if test "$GCC" = yes; then
17329         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'
17330       else
17331         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'
17332       fi
17333       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17334       hardcode_libdir_separator_GCJ=:
17335       hardcode_direct_GCJ=yes
17336
17337       # hardcode_minus_L: Not really in the search PATH,
17338       # but as the default location of the library.
17339       hardcode_minus_L_GCJ=yes
17340       export_dynamic_flag_spec_GCJ='${wl}-E'
17341       ;;
17342
17343     hpux10*)
17344       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17345         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17346       else
17347         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17348       fi
17349       if test "$with_gnu_ld" = no; then
17350         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17351         hardcode_libdir_separator_GCJ=:
17352
17353         hardcode_direct_GCJ=yes
17354         export_dynamic_flag_spec_GCJ='${wl}-E'
17355
17356         # hardcode_minus_L: Not really in the search PATH,
17357         # but as the default location of the library.
17358         hardcode_minus_L_GCJ=yes
17359       fi
17360       ;;
17361
17362     hpux11*)
17363       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17364         case $host_cpu in
17365         hppa*64*)
17366           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17367           ;;
17368         ia64*)
17369           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17370           ;;
17371         *)
17372           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17373           ;;
17374         esac
17375       else
17376         case $host_cpu in
17377         hppa*64*)
17378           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17379           ;;
17380         ia64*)
17381           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17382           ;;
17383         *)
17384           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17385           ;;
17386         esac
17387       fi
17388       if test "$with_gnu_ld" = no; then
17389         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17390         hardcode_libdir_separator_GCJ=:
17391
17392         case $host_cpu in
17393         hppa*64*|ia64*)
17394           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17395           hardcode_direct_GCJ=no
17396           hardcode_shlibpath_var_GCJ=no
17397           ;;
17398         *)
17399           hardcode_direct_GCJ=yes
17400           export_dynamic_flag_spec_GCJ='${wl}-E'
17401
17402           # hardcode_minus_L: Not really in the search PATH,
17403           # but as the default location of the library.
17404           hardcode_minus_L_GCJ=yes
17405           ;;
17406         esac
17407       fi
17408       ;;
17409
17410     irix5* | irix6* | nonstopux*)
17411       if test "$GCC" = yes; then
17412         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'
17413       else
17414         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'
17415         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17416       fi
17417       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17418       hardcode_libdir_separator_GCJ=:
17419       link_all_deplibs_GCJ=yes
17420       ;;
17421
17422     netbsd* | netbsdelf*-gnu)
17423       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17424         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17425       else
17426         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17427       fi
17428       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17429       hardcode_direct_GCJ=yes
17430       hardcode_shlibpath_var_GCJ=no
17431       ;;
17432
17433     newsos6)
17434       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17435       hardcode_direct_GCJ=yes
17436       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17437       hardcode_libdir_separator_GCJ=:
17438       hardcode_shlibpath_var_GCJ=no
17439       ;;
17440
17441     openbsd*)
17442       hardcode_direct_GCJ=yes
17443       hardcode_shlibpath_var_GCJ=no
17444       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17445         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17446         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17447         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17448         export_dynamic_flag_spec_GCJ='${wl}-E'
17449       else
17450        case $host_os in
17451          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17452            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17453            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17454            ;;
17455          *)
17456            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17457            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17458            ;;
17459        esac
17460       fi
17461       ;;
17462
17463     os2*)
17464       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17465       hardcode_minus_L_GCJ=yes
17466       allow_undefined_flag_GCJ=unsupported
17467       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'
17468       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17469       ;;
17470
17471     osf3*)
17472       if test "$GCC" = yes; then
17473         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17474         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'
17475       else
17476         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17477         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'
17478       fi
17479       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17480       hardcode_libdir_separator_GCJ=:
17481       ;;
17482
17483     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17484       if test "$GCC" = yes; then
17485         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17486         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'
17487         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17488       else
17489         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17490         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'
17491         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~
17492         $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'
17493
17494         # Both c and cxx compiler support -rpath directly
17495         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17496       fi
17497       hardcode_libdir_separator_GCJ=:
17498       ;;
17499
17500     solaris*)
17501       no_undefined_flag_GCJ=' -z text'
17502       if test "$GCC" = yes; then
17503         wlarc='${wl}'
17504         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17505         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17506           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17507       else
17508         wlarc=''
17509         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17511         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17512       fi
17513       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17514       hardcode_shlibpath_var_GCJ=no
17515       case $host_os in
17516       solaris2.[0-5] | solaris2.[0-5].*) ;;
17517       *)
17518         # The compiler driver will combine linker options so we
17519         # cannot just pass the convience library names through
17520         # without $wl, iff we do not link with $LD.
17521         # Luckily, gcc supports the same syntax we need for Sun Studio.
17522         # Supported since Solaris 2.6 (maybe 2.5.1?)
17523         case $wlarc in
17524         '')
17525           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17526         *)
17527           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' ;;
17528         esac ;;
17529       esac
17530       link_all_deplibs_GCJ=yes
17531       ;;
17532
17533     sunos4*)
17534       if test "x$host_vendor" = xsequent; then
17535         # Use $CC to link under sequent, because it throws in some extra .o
17536         # files that make .init and .fini sections work.
17537         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17538       else
17539         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17540       fi
17541       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17542       hardcode_direct_GCJ=yes
17543       hardcode_minus_L_GCJ=yes
17544       hardcode_shlibpath_var_GCJ=no
17545       ;;
17546
17547     sysv4)
17548       case $host_vendor in
17549         sni)
17550           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551           hardcode_direct_GCJ=yes # is this really true???
17552         ;;
17553         siemens)
17554           ## LD is ld it makes a PLAMLIB
17555           ## CC just makes a GrossModule.
17556           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17557           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17558           hardcode_direct_GCJ=no
17559         ;;
17560         motorola)
17561           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17563         ;;
17564       esac
17565       runpath_var='LD_RUN_PATH'
17566       hardcode_shlibpath_var_GCJ=no
17567       ;;
17568
17569     sysv4.3*)
17570       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17571       hardcode_shlibpath_var_GCJ=no
17572       export_dynamic_flag_spec_GCJ='-Bexport'
17573       ;;
17574
17575     sysv4*MP*)
17576       if test -d /usr/nec; then
17577         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578         hardcode_shlibpath_var_GCJ=no
17579         runpath_var=LD_RUN_PATH
17580         hardcode_runpath_var=yes
17581         ld_shlibs_GCJ=yes
17582       fi
17583       ;;
17584
17585     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17586       no_undefined_flag_GCJ='${wl}-z,text'
17587       archive_cmds_need_lc_GCJ=no
17588       hardcode_shlibpath_var_GCJ=no
17589       runpath_var='LD_RUN_PATH'
17590
17591       if test "$GCC" = yes; then
17592         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17594       else
17595         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17596         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17597       fi
17598       ;;
17599
17600     sysv5* | sco3.2v5* | sco5v6*)
17601       # Note: We can NOT use -z defs as we might desire, because we do not
17602       # link with -lc, and that would cause any symbols used from libc to
17603       # always be unresolved, which means just about no library would
17604       # ever link correctly.  If we're not using GNU ld we use -z text
17605       # though, which does catch some bad symbols but isn't as heavy-handed
17606       # as -z defs.
17607       no_undefined_flag_GCJ='${wl}-z,text'
17608       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17609       archive_cmds_need_lc_GCJ=no
17610       hardcode_shlibpath_var_GCJ=no
17611       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17612       hardcode_libdir_separator_GCJ=':'
17613       link_all_deplibs_GCJ=yes
17614       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17615       runpath_var='LD_RUN_PATH'
17616
17617       if test "$GCC" = yes; then
17618         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17620       else
17621         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17622         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17623       fi
17624       ;;
17625
17626     uts4*)
17627       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17628       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629       hardcode_shlibpath_var_GCJ=no
17630       ;;
17631
17632     *)
17633       ld_shlibs_GCJ=no
17634       ;;
17635     esac
17636   fi
17637
17638 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17639 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17640 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17641
17642 #
17643 # Do we need to explicitly link libc?
17644 #
17645 case "x$archive_cmds_need_lc_GCJ" in
17646 x|xyes)
17647   # Assume -lc should be added
17648   archive_cmds_need_lc_GCJ=yes
17649
17650   if test "$enable_shared" = yes && test "$GCC" = yes; then
17651     case $archive_cmds_GCJ in
17652     *'~'*)
17653       # FIXME: we may have to deal with multi-command sequences.
17654       ;;
17655     '$CC '*)
17656       # Test whether the compiler implicitly links with -lc since on some
17657       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17658       # to ld, don't add -lc before -lgcc.
17659       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17660 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17661       $rm conftest*
17662       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17663
17664       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17665   (eval $ac_compile) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); } 2>conftest.err; then
17669         soname=conftest
17670         lib=conftest
17671         libobjs=conftest.$ac_objext
17672         deplibs=
17673         wl=$lt_prog_compiler_wl_GCJ
17674         pic_flag=$lt_prog_compiler_pic_GCJ
17675         compiler_flags=-v
17676         linker_flags=-v
17677         verstring=
17678         output_objdir=.
17679         libname=conftest
17680         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17681         allow_undefined_flag_GCJ=
17682         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17683   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); }
17687         then
17688           archive_cmds_need_lc_GCJ=no
17689         else
17690           archive_cmds_need_lc_GCJ=yes
17691         fi
17692         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17693       else
17694         cat conftest.err 1>&5
17695       fi
17696       $rm conftest*
17697       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17698 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17699       ;;
17700     esac
17701   fi
17702   ;;
17703 esac
17704
17705 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17706 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17707 library_names_spec=
17708 libname_spec='lib$name'
17709 soname_spec=
17710 shrext_cmds=".so"
17711 postinstall_cmds=
17712 postuninstall_cmds=
17713 finish_cmds=
17714 finish_eval=
17715 shlibpath_var=
17716 shlibpath_overrides_runpath=unknown
17717 version_type=none
17718 dynamic_linker="$host_os ld.so"
17719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17720 if test "$GCC" = yes; then
17721   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17722   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17723     # if the path contains ";" then we assume it to be the separator
17724     # otherwise default to the standard path separator (i.e. ":") - it is
17725     # assumed that no part of a normal pathname contains ";" but that should
17726     # okay in the real world where ";" in dirpaths is itself problematic.
17727     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17728   else
17729     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17730   fi
17731 else
17732   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17733 fi
17734 need_lib_prefix=unknown
17735 hardcode_into_libs=no
17736
17737 # when you set need_version to no, make sure it does not cause -set_version
17738 # flags to be left without arguments
17739 need_version=unknown
17740
17741 case $host_os in
17742 aix3*)
17743   version_type=linux
17744   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17745   shlibpath_var=LIBPATH
17746
17747   # AIX 3 has no versioning support, so we append a major version to the name.
17748   soname_spec='${libname}${release}${shared_ext}$major'
17749   ;;
17750
17751 aix4* | aix5*)
17752   version_type=linux
17753   need_lib_prefix=no
17754   need_version=no
17755   hardcode_into_libs=yes
17756   if test "$host_cpu" = ia64; then
17757     # AIX 5 supports IA64
17758     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17759     shlibpath_var=LD_LIBRARY_PATH
17760   else
17761     # With GCC up to 2.95.x, collect2 would create an import file
17762     # for dependence libraries.  The import file would start with
17763     # the line `#! .'.  This would cause the generated library to
17764     # depend on `.', always an invalid library.  This was fixed in
17765     # development snapshots of GCC prior to 3.0.
17766     case $host_os in
17767       aix4 | aix4.[01] | aix4.[01].*)
17768       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17769            echo ' yes '
17770            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17771         :
17772       else
17773         can_build_shared=no
17774       fi
17775       ;;
17776     esac
17777     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17778     # soname into executable. Probably we can add versioning support to
17779     # collect2, so additional links can be useful in future.
17780     if test "$aix_use_runtimelinking" = yes; then
17781       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17782       # instead of lib<name>.a to let people know that these are not
17783       # typical AIX shared libraries.
17784       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17785     else
17786       # We preserve .a as extension for shared libraries through AIX4.2
17787       # and later when we are not doing run time linking.
17788       library_names_spec='${libname}${release}.a $libname.a'
17789       soname_spec='${libname}${release}${shared_ext}$major'
17790     fi
17791     shlibpath_var=LIBPATH
17792   fi
17793   ;;
17794
17795 amigaos*)
17796   library_names_spec='$libname.ixlibrary $libname.a'
17797   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17798   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'
17799   ;;
17800
17801 beos*)
17802   library_names_spec='${libname}${shared_ext}'
17803   dynamic_linker="$host_os ld.so"
17804   shlibpath_var=LIBRARY_PATH
17805   ;;
17806
17807 bsdi[45]*)
17808   version_type=linux
17809   need_version=no
17810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811   soname_spec='${libname}${release}${shared_ext}$major'
17812   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17813   shlibpath_var=LD_LIBRARY_PATH
17814   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17815   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17816   # the default ld.so.conf also contains /usr/contrib/lib and
17817   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17818   # libtool to hard-code these into programs
17819   ;;
17820
17821 cygwin* | mingw* | pw32*)
17822   version_type=windows
17823   shrext_cmds=".dll"
17824   need_version=no
17825   need_lib_prefix=no
17826
17827   case $GCC,$host_os in
17828   yes,cygwin* | yes,mingw* | yes,pw32*)
17829     library_names_spec='$libname.dll.a'
17830     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17831     postinstall_cmds='base_file=`basename \${file}`~
17832       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17833       dldir=$destdir/`dirname \$dlpath`~
17834       test -d \$dldir || mkdir -p \$dldir~
17835       $install_prog $dir/$dlname \$dldir/$dlname~
17836       chmod a+x \$dldir/$dlname'
17837     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17838       dlpath=$dir/\$dldll~
17839        $rm \$dlpath'
17840     shlibpath_overrides_runpath=yes
17841
17842     case $host_os in
17843     cygwin*)
17844       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17845       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17846       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17847       ;;
17848     mingw*)
17849       # MinGW DLLs use traditional 'lib' prefix
17850       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17851       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17852       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17853         # It is most probably a Windows format PATH printed by
17854         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17855         # path with ; separators, and with drive letters. We can handle the
17856         # drive letters (cygwin fileutils understands them), so leave them,
17857         # especially as we might pass files found there to a mingw objdump,
17858         # which wouldn't understand a cygwinified path. Ahh.
17859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17860       else
17861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17862       fi
17863       ;;
17864     pw32*)
17865       # pw32 DLLs use 'pw' prefix rather than 'lib'
17866       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17867       ;;
17868     esac
17869     ;;
17870
17871   *)
17872     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17873     ;;
17874   esac
17875   dynamic_linker='Win32 ld.exe'
17876   # FIXME: first we should search . and the directory the executable is in
17877   shlibpath_var=PATH
17878   ;;
17879
17880 darwin* | rhapsody*)
17881   dynamic_linker="$host_os dyld"
17882   version_type=darwin
17883   need_lib_prefix=no
17884   need_version=no
17885   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17886   soname_spec='${libname}${release}${major}$shared_ext'
17887   shlibpath_overrides_runpath=yes
17888   shlibpath_var=DYLD_LIBRARY_PATH
17889   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17890   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17891   if test "$GCC" = yes; then
17892     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"`
17893   else
17894     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17895   fi
17896   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17897   ;;
17898
17899 dgux*)
17900   version_type=linux
17901   need_lib_prefix=no
17902   need_version=no
17903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17904   soname_spec='${libname}${release}${shared_ext}$major'
17905   shlibpath_var=LD_LIBRARY_PATH
17906   ;;
17907
17908 freebsd1*)
17909   dynamic_linker=no
17910   ;;
17911
17912 freebsd* | dragonfly*)
17913   # DragonFly does not have aout.  When/if they implement a new
17914   # versioning mechanism, adjust this.
17915   if test -x /usr/bin/objformat; then
17916     objformat=`/usr/bin/objformat`
17917   else
17918     case $host_os in
17919     freebsd[123]*) objformat=aout ;;
17920     *) objformat=elf ;;
17921     esac
17922   fi
17923   version_type=freebsd-$objformat
17924   case $version_type in
17925     freebsd-elf*)
17926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17927       need_version=no
17928       need_lib_prefix=no
17929       ;;
17930     freebsd-*)
17931       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17932       need_version=yes
17933       ;;
17934   esac
17935   shlibpath_var=LD_LIBRARY_PATH
17936   case $host_os in
17937   freebsd2*)
17938     shlibpath_overrides_runpath=yes
17939     ;;
17940   freebsd3.[01]* | freebsdelf3.[01]*)
17941     shlibpath_overrides_runpath=yes
17942     hardcode_into_libs=yes
17943     ;;
17944   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17945   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17946     shlibpath_overrides_runpath=no
17947     hardcode_into_libs=yes
17948     ;;
17949   freebsd*) # from 4.6 on
17950     shlibpath_overrides_runpath=yes
17951     hardcode_into_libs=yes
17952     ;;
17953   esac
17954   ;;
17955
17956 gnu*)
17957   version_type=linux
17958   need_lib_prefix=no
17959   need_version=no
17960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17961   soname_spec='${libname}${release}${shared_ext}$major'
17962   shlibpath_var=LD_LIBRARY_PATH
17963   hardcode_into_libs=yes
17964   ;;
17965
17966 hpux9* | hpux10* | hpux11*)
17967   # Give a soname corresponding to the major version so that dld.sl refuses to
17968   # link against other versions.
17969   version_type=sunos
17970   need_lib_prefix=no
17971   need_version=no
17972   case $host_cpu in
17973   ia64*)
17974     shrext_cmds='.so'
17975     hardcode_into_libs=yes
17976     dynamic_linker="$host_os dld.so"
17977     shlibpath_var=LD_LIBRARY_PATH
17978     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980     soname_spec='${libname}${release}${shared_ext}$major'
17981     if test "X$HPUX_IA64_MODE" = X32; then
17982       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17983     else
17984       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17985     fi
17986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17987     ;;
17988    hppa*64*)
17989      shrext_cmds='.sl'
17990      hardcode_into_libs=yes
17991      dynamic_linker="$host_os dld.sl"
17992      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17993      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17994      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17995      soname_spec='${libname}${release}${shared_ext}$major'
17996      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17997      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17998      ;;
17999    *)
18000     shrext_cmds='.sl'
18001     dynamic_linker="$host_os dld.sl"
18002     shlibpath_var=SHLIB_PATH
18003     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005     soname_spec='${libname}${release}${shared_ext}$major'
18006     ;;
18007   esac
18008   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18009   postinstall_cmds='chmod 555 $lib'
18010   ;;
18011
18012 interix3*)
18013   version_type=linux
18014   need_lib_prefix=no
18015   need_version=no
18016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18017   soname_spec='${libname}${release}${shared_ext}$major'
18018   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18019   shlibpath_var=LD_LIBRARY_PATH
18020   shlibpath_overrides_runpath=no
18021   hardcode_into_libs=yes
18022   ;;
18023
18024 irix5* | irix6* | nonstopux*)
18025   case $host_os in
18026     nonstopux*) version_type=nonstopux ;;
18027     *)
18028         if test "$lt_cv_prog_gnu_ld" = yes; then
18029                 version_type=linux
18030         else
18031                 version_type=irix
18032         fi ;;
18033   esac
18034   need_lib_prefix=no
18035   need_version=no
18036   soname_spec='${libname}${release}${shared_ext}$major'
18037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18038   case $host_os in
18039   irix5* | nonstopux*)
18040     libsuff= shlibsuff=
18041     ;;
18042   *)
18043     case $LD in # libtool.m4 will add one of these switches to LD
18044     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18045       libsuff= shlibsuff= libmagic=32-bit;;
18046     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18047       libsuff=32 shlibsuff=N32 libmagic=N32;;
18048     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18049       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18050     *) libsuff= shlibsuff= libmagic=never-match;;
18051     esac
18052     ;;
18053   esac
18054   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18055   shlibpath_overrides_runpath=no
18056   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18057   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18058   hardcode_into_libs=yes
18059   ;;
18060
18061 # No shared lib support for Linux oldld, aout, or coff.
18062 linux*oldld* | linux*aout* | linux*coff*)
18063   dynamic_linker=no
18064   ;;
18065
18066 # This must be Linux ELF.
18067 linux* | k*bsd*-gnu)
18068   version_type=linux
18069   need_lib_prefix=no
18070   need_version=no
18071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072   soname_spec='${libname}${release}${shared_ext}$major'
18073   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18074   shlibpath_var=LD_LIBRARY_PATH
18075   shlibpath_overrides_runpath=no
18076   # This implies no fast_install, which is unacceptable.
18077   # Some rework will be needed to allow for fast_install
18078   # before this can be enabled.
18079   hardcode_into_libs=yes
18080
18081   # Append ld.so.conf contents to the search path
18082   if test -f /etc/ld.so.conf; then
18083     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' ' '`
18084     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18085   fi
18086
18087   # We used to test for /lib/ld.so.1 and disable shared libraries on
18088   # powerpc, because MkLinux only supported shared libraries with the
18089   # GNU dynamic linker.  Since this was broken with cross compilers,
18090   # most powerpc-linux boxes support dynamic linking these days and
18091   # people can always --disable-shared, the test was removed, and we
18092   # assume the GNU/Linux dynamic linker is in use.
18093   dynamic_linker='GNU/Linux ld.so'
18094   ;;
18095
18096 netbsdelf*-gnu)
18097   version_type=linux
18098   need_lib_prefix=no
18099   need_version=no
18100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18101   soname_spec='${libname}${release}${shared_ext}$major'
18102   shlibpath_var=LD_LIBRARY_PATH
18103   shlibpath_overrides_runpath=no
18104   hardcode_into_libs=yes
18105   dynamic_linker='NetBSD ld.elf_so'
18106   ;;
18107
18108 netbsd*)
18109   version_type=sunos
18110   need_lib_prefix=no
18111   need_version=no
18112   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18114     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18115     dynamic_linker='NetBSD (a.out) ld.so'
18116   else
18117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18118     soname_spec='${libname}${release}${shared_ext}$major'
18119     dynamic_linker='NetBSD ld.elf_so'
18120   fi
18121   shlibpath_var=LD_LIBRARY_PATH
18122   shlibpath_overrides_runpath=yes
18123   hardcode_into_libs=yes
18124   ;;
18125
18126 newsos6)
18127   version_type=linux
18128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129   shlibpath_var=LD_LIBRARY_PATH
18130   shlibpath_overrides_runpath=yes
18131   ;;
18132
18133 nto-qnx*)
18134   version_type=linux
18135   need_lib_prefix=no
18136   need_version=no
18137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138   soname_spec='${libname}${release}${shared_ext}$major'
18139   shlibpath_var=LD_LIBRARY_PATH
18140   shlibpath_overrides_runpath=yes
18141   ;;
18142
18143 openbsd*)
18144   version_type=sunos
18145   sys_lib_dlsearch_path_spec="/usr/lib"
18146   need_lib_prefix=no
18147   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18148   case $host_os in
18149     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18150     *)                         need_version=no  ;;
18151   esac
18152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18154   shlibpath_var=LD_LIBRARY_PATH
18155   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18156     case $host_os in
18157       openbsd2.[89] | openbsd2.[89].*)
18158         shlibpath_overrides_runpath=no
18159         ;;
18160       *)
18161         shlibpath_overrides_runpath=yes
18162         ;;
18163       esac
18164   else
18165     shlibpath_overrides_runpath=yes
18166   fi
18167   ;;
18168
18169 os2*)
18170   libname_spec='$name'
18171   shrext_cmds=".dll"
18172   need_lib_prefix=no
18173   library_names_spec='$libname${shared_ext} $libname.a'
18174   dynamic_linker='OS/2 ld.exe'
18175   shlibpath_var=LIBPATH
18176   ;;
18177
18178 osf3* | osf4* | osf5*)
18179   version_type=osf
18180   need_lib_prefix=no
18181   need_version=no
18182   soname_spec='${libname}${release}${shared_ext}$major'
18183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184   shlibpath_var=LD_LIBRARY_PATH
18185   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18186   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18187   ;;
18188
18189 solaris*)
18190   version_type=linux
18191   need_lib_prefix=no
18192   need_version=no
18193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194   soname_spec='${libname}${release}${shared_ext}$major'
18195   shlibpath_var=LD_LIBRARY_PATH
18196   shlibpath_overrides_runpath=yes
18197   hardcode_into_libs=yes
18198   # ldd complains unless libraries are executable
18199   postinstall_cmds='chmod +x $lib'
18200   ;;
18201
18202 sunos4*)
18203   version_type=sunos
18204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18206   shlibpath_var=LD_LIBRARY_PATH
18207   shlibpath_overrides_runpath=yes
18208   if test "$with_gnu_ld" = yes; then
18209     need_lib_prefix=no
18210   fi
18211   need_version=yes
18212   ;;
18213
18214 sysv4 | sysv4.3*)
18215   version_type=linux
18216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217   soname_spec='${libname}${release}${shared_ext}$major'
18218   shlibpath_var=LD_LIBRARY_PATH
18219   case $host_vendor in
18220     sni)
18221       shlibpath_overrides_runpath=no
18222       need_lib_prefix=no
18223       export_dynamic_flag_spec='${wl}-Blargedynsym'
18224       runpath_var=LD_RUN_PATH
18225       ;;
18226     siemens)
18227       need_lib_prefix=no
18228       ;;
18229     motorola)
18230       need_lib_prefix=no
18231       need_version=no
18232       shlibpath_overrides_runpath=no
18233       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18234       ;;
18235   esac
18236   ;;
18237
18238 sysv4*MP*)
18239   if test -d /usr/nec ;then
18240     version_type=linux
18241     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18242     soname_spec='$libname${shared_ext}.$major'
18243     shlibpath_var=LD_LIBRARY_PATH
18244   fi
18245   ;;
18246
18247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18248   version_type=freebsd-elf
18249   need_lib_prefix=no
18250   need_version=no
18251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18252   soname_spec='${libname}${release}${shared_ext}$major'
18253   shlibpath_var=LD_LIBRARY_PATH
18254   hardcode_into_libs=yes
18255   if test "$with_gnu_ld" = yes; then
18256     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18257     shlibpath_overrides_runpath=no
18258   else
18259     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18260     shlibpath_overrides_runpath=yes
18261     case $host_os in
18262       sco3.2v5*)
18263         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18264         ;;
18265     esac
18266   fi
18267   sys_lib_dlsearch_path_spec='/usr/lib'
18268   ;;
18269
18270 uts4*)
18271   version_type=linux
18272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18273   soname_spec='${libname}${release}${shared_ext}$major'
18274   shlibpath_var=LD_LIBRARY_PATH
18275   ;;
18276
18277 *)
18278   dynamic_linker=no
18279   ;;
18280 esac
18281 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18282 echo "${ECHO_T}$dynamic_linker" >&6; }
18283 test "$dynamic_linker" = no && can_build_shared=no
18284
18285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18286 if test "$GCC" = yes; then
18287   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18288 fi
18289
18290 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18292 hardcode_action_GCJ=
18293 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18294    test -n "$runpath_var_GCJ" || \
18295    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18296
18297   # We can hardcode non-existant directories.
18298   if test "$hardcode_direct_GCJ" != no &&
18299      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18300      # have to relink, otherwise we might link with an installed library
18301      # when we should be linking with a yet-to-be-installed one
18302      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18303      test "$hardcode_minus_L_GCJ" != no; then
18304     # Linking always hardcodes the temporary library directory.
18305     hardcode_action_GCJ=relink
18306   else
18307     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18308     hardcode_action_GCJ=immediate
18309   fi
18310 else
18311   # We cannot hardcode anything, or else we can only hardcode existing
18312   # directories.
18313   hardcode_action_GCJ=unsupported
18314 fi
18315 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18316 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18317
18318 if test "$hardcode_action_GCJ" = relink; then
18319   # Fast installation is not supported
18320   enable_fast_install=no
18321 elif test "$shlibpath_overrides_runpath" = yes ||
18322      test "$enable_shared" = no; then
18323   # Fast installation is not necessary
18324   enable_fast_install=needless
18325 fi
18326
18327
18328 # The else clause should only fire when bootstrapping the
18329 # libtool distribution, otherwise you forgot to ship ltmain.sh
18330 # with your package, and you will get complaints that there are
18331 # no rules to generate ltmain.sh.
18332 if test -f "$ltmain"; then
18333   # See if we are running on zsh, and set the options which allow our commands through
18334   # without removal of \ escapes.
18335   if test -n "${ZSH_VERSION+set}" ; then
18336     setopt NO_GLOB_SUBST
18337   fi
18338   # Now quote all the things that may contain metacharacters while being
18339   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18340   # variables and quote the copies for generation of the libtool script.
18341   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18342     SED SHELL STRIP \
18343     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18344     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18345     deplibs_check_method reload_flag reload_cmds need_locks \
18346     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18347     lt_cv_sys_global_symbol_to_c_name_address \
18348     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18349     old_postinstall_cmds old_postuninstall_cmds \
18350     compiler_GCJ \
18351     CC_GCJ \
18352     LD_GCJ \
18353     lt_prog_compiler_wl_GCJ \
18354     lt_prog_compiler_pic_GCJ \
18355     lt_prog_compiler_static_GCJ \
18356     lt_prog_compiler_no_builtin_flag_GCJ \
18357     export_dynamic_flag_spec_GCJ \
18358     thread_safe_flag_spec_GCJ \
18359     whole_archive_flag_spec_GCJ \
18360     enable_shared_with_static_runtimes_GCJ \
18361     old_archive_cmds_GCJ \
18362     old_archive_from_new_cmds_GCJ \
18363     predep_objects_GCJ \
18364     postdep_objects_GCJ \
18365     predeps_GCJ \
18366     postdeps_GCJ \
18367     compiler_lib_search_path_GCJ \
18368     archive_cmds_GCJ \
18369     archive_expsym_cmds_GCJ \
18370     postinstall_cmds_GCJ \
18371     postuninstall_cmds_GCJ \
18372     old_archive_from_expsyms_cmds_GCJ \
18373     allow_undefined_flag_GCJ \
18374     no_undefined_flag_GCJ \
18375     export_symbols_cmds_GCJ \
18376     hardcode_libdir_flag_spec_GCJ \
18377     hardcode_libdir_flag_spec_ld_GCJ \
18378     hardcode_libdir_separator_GCJ \
18379     hardcode_automatic_GCJ \
18380     module_cmds_GCJ \
18381     module_expsym_cmds_GCJ \
18382     lt_cv_prog_compiler_c_o_GCJ \
18383     exclude_expsyms_GCJ \
18384     include_expsyms_GCJ; do
18385
18386     case $var in
18387     old_archive_cmds_GCJ | \
18388     old_archive_from_new_cmds_GCJ | \
18389     archive_cmds_GCJ | \
18390     archive_expsym_cmds_GCJ | \
18391     module_cmds_GCJ | \
18392     module_expsym_cmds_GCJ | \
18393     old_archive_from_expsyms_cmds_GCJ | \
18394     export_symbols_cmds_GCJ | \
18395     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18396     postinstall_cmds | postuninstall_cmds | \
18397     old_postinstall_cmds | old_postuninstall_cmds | \
18398     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18399       # Double-quote double-evaled strings.
18400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18401       ;;
18402     *)
18403       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18404       ;;
18405     esac
18406   done
18407
18408   case $lt_echo in
18409   *'\$0 --fallback-echo"')
18410     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18411     ;;
18412   esac
18413
18414 cfgfile="$ofile"
18415
18416   cat <<__EOF__ >> "$cfgfile"
18417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18418
18419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18420
18421 # Shell to use when invoking shell scripts.
18422 SHELL=$lt_SHELL
18423
18424 # Whether or not to build shared libraries.
18425 build_libtool_libs=$enable_shared
18426
18427 # Whether or not to build static libraries.
18428 build_old_libs=$enable_static
18429
18430 # Whether or not to add -lc for building shared libraries.
18431 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18432
18433 # Whether or not to disallow shared libs when runtime libs are static
18434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18435
18436 # Whether or not to optimize for fast installation.
18437 fast_install=$enable_fast_install
18438
18439 # The host system.
18440 host_alias=$host_alias
18441 host=$host
18442 host_os=$host_os
18443
18444 # The build system.
18445 build_alias=$build_alias
18446 build=$build
18447 build_os=$build_os
18448
18449 # An echo program that does not interpret backslashes.
18450 echo=$lt_echo
18451
18452 # The archiver.
18453 AR=$lt_AR
18454 AR_FLAGS=$lt_AR_FLAGS
18455
18456 # A C compiler.
18457 LTCC=$lt_LTCC
18458
18459 # LTCC compiler flags.
18460 LTCFLAGS=$lt_LTCFLAGS
18461
18462 # A language-specific compiler.
18463 CC=$lt_compiler_GCJ
18464
18465 # Is the compiler the GNU C compiler?
18466 with_gcc=$GCC_GCJ
18467
18468 # An ERE matcher.
18469 EGREP=$lt_EGREP
18470
18471 # The linker used to build libraries.
18472 LD=$lt_LD_GCJ
18473
18474 # Whether we need hard or soft links.
18475 LN_S=$lt_LN_S
18476
18477 # A BSD-compatible nm program.
18478 NM=$lt_NM
18479
18480 # A symbol stripping program
18481 STRIP=$lt_STRIP
18482
18483 # Used to examine libraries when file_magic_cmd begins "file"
18484 MAGIC_CMD=$MAGIC_CMD
18485
18486 # Used on cygwin: DLL creation program.
18487 DLLTOOL="$DLLTOOL"
18488
18489 # Used on cygwin: object dumper.
18490 OBJDUMP="$OBJDUMP"
18491
18492 # Used on cygwin: assembler.
18493 AS="$AS"
18494
18495 # The name of the directory that contains temporary libtool files.
18496 objdir=$objdir
18497
18498 # How to create reloadable object files.
18499 reload_flag=$lt_reload_flag
18500 reload_cmds=$lt_reload_cmds
18501
18502 # How to pass a linker flag through the compiler.
18503 wl=$lt_lt_prog_compiler_wl_GCJ
18504
18505 # Object file suffix (normally "o").
18506 objext="$ac_objext"
18507
18508 # Old archive suffix (normally "a").
18509 libext="$libext"
18510
18511 # Shared library suffix (normally ".so").
18512 shrext_cmds='$shrext_cmds'
18513
18514 # Executable file suffix (normally "").
18515 exeext="$exeext"
18516
18517 # Additional compiler flags for building library objects.
18518 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18519 pic_mode=$pic_mode
18520
18521 # What is the maximum length of a command?
18522 max_cmd_len=$lt_cv_sys_max_cmd_len
18523
18524 # Does compiler simultaneously support -c and -o options?
18525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18526
18527 # Must we lock files when doing compilation?
18528 need_locks=$lt_need_locks
18529
18530 # Do we need the lib prefix for modules?
18531 need_lib_prefix=$need_lib_prefix
18532
18533 # Do we need a version for libraries?
18534 need_version=$need_version
18535
18536 # Whether dlopen is supported.
18537 dlopen_support=$enable_dlopen
18538
18539 # Whether dlopen of programs is supported.
18540 dlopen_self=$enable_dlopen_self
18541
18542 # Whether dlopen of statically linked programs is supported.
18543 dlopen_self_static=$enable_dlopen_self_static
18544
18545 # Compiler flag to prevent dynamic linking.
18546 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18547
18548 # Compiler flag to turn off builtin functions.
18549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18550
18551 # Compiler flag to allow reflexive dlopens.
18552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18553
18554 # Compiler flag to generate shared objects directly from archives.
18555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18556
18557 # Compiler flag to generate thread-safe objects.
18558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18559
18560 # Library versioning type.
18561 version_type=$version_type
18562
18563 # Format of library name prefix.
18564 libname_spec=$lt_libname_spec
18565
18566 # List of archive names.  First name is the real one, the rest are links.
18567 # The last name is the one that the linker finds with -lNAME.
18568 library_names_spec=$lt_library_names_spec
18569
18570 # The coded name of the library, if different from the real name.
18571 soname_spec=$lt_soname_spec
18572
18573 # Commands used to build and install an old-style archive.
18574 RANLIB=$lt_RANLIB
18575 old_archive_cmds=$lt_old_archive_cmds_GCJ
18576 old_postinstall_cmds=$lt_old_postinstall_cmds
18577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18578
18579 # Create an old-style archive from a shared archive.
18580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18581
18582 # Create a temporary old-style archive to link instead of a shared archive.
18583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18584
18585 # Commands used to build and install a shared archive.
18586 archive_cmds=$lt_archive_cmds_GCJ
18587 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18588 postinstall_cmds=$lt_postinstall_cmds
18589 postuninstall_cmds=$lt_postuninstall_cmds
18590
18591 # Commands used to build a loadable module (assumed same as above if empty)
18592 module_cmds=$lt_module_cmds_GCJ
18593 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18594
18595 # Commands to strip libraries.
18596 old_striplib=$lt_old_striplib
18597 striplib=$lt_striplib
18598
18599 # Dependencies to place before the objects being linked to create a
18600 # shared library.
18601 predep_objects=$lt_predep_objects_GCJ
18602
18603 # Dependencies to place after the objects being linked to create a
18604 # shared library.
18605 postdep_objects=$lt_postdep_objects_GCJ
18606
18607 # Dependencies to place before the objects being linked to create a
18608 # shared library.
18609 predeps=$lt_predeps_GCJ
18610
18611 # Dependencies to place after the objects being linked to create a
18612 # shared library.
18613 postdeps=$lt_postdeps_GCJ
18614
18615 # The library search path used internally by the compiler when linking
18616 # a shared library.
18617 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18618
18619 # Method to check whether dependent libraries are shared objects.
18620 deplibs_check_method=$lt_deplibs_check_method
18621
18622 # Command to use when deplibs_check_method == file_magic.
18623 file_magic_cmd=$lt_file_magic_cmd
18624
18625 # Flag that allows shared libraries with undefined symbols to be built.
18626 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18627
18628 # Flag that forces no undefined symbols.
18629 no_undefined_flag=$lt_no_undefined_flag_GCJ
18630
18631 # Commands used to finish a libtool library installation in a directory.
18632 finish_cmds=$lt_finish_cmds
18633
18634 # Same as above, but a single script fragment to be evaled but not shown.
18635 finish_eval=$lt_finish_eval
18636
18637 # Take the output of nm and produce a listing of raw symbols and C names.
18638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18639
18640 # Transform the output of nm in a proper C declaration
18641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18642
18643 # Transform the output of nm in a C name address pair
18644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18645
18646 # This is the shared library runtime path variable.
18647 runpath_var=$runpath_var
18648
18649 # This is the shared library path variable.
18650 shlibpath_var=$shlibpath_var
18651
18652 # Is shlibpath searched before the hard-coded library search path?
18653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18654
18655 # How to hardcode a shared library path into an executable.
18656 hardcode_action=$hardcode_action_GCJ
18657
18658 # Whether we should hardcode library paths into libraries.
18659 hardcode_into_libs=$hardcode_into_libs
18660
18661 # Flag to hardcode \$libdir into a binary during linking.
18662 # This must work even if \$libdir does not exist.
18663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18664
18665 # If ld is used when linking, flag to hardcode \$libdir into
18666 # a binary during linking. This must work even if \$libdir does
18667 # not exist.
18668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18669
18670 # Whether we need a single -rpath flag with a separated argument.
18671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18672
18673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18674 # resulting binary.
18675 hardcode_direct=$hardcode_direct_GCJ
18676
18677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18678 # resulting binary.
18679 hardcode_minus_L=$hardcode_minus_L_GCJ
18680
18681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18682 # the resulting binary.
18683 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18684
18685 # Set to yes if building a shared library automatically hardcodes DIR into the library
18686 # and all subsequent libraries and executables linked against it.
18687 hardcode_automatic=$hardcode_automatic_GCJ
18688
18689 # Variables whose values should be saved in libtool wrapper scripts and
18690 # restored at relink time.
18691 variables_saved_for_relink="$variables_saved_for_relink"
18692
18693 # Whether libtool must link a program against all its dependency libraries.
18694 link_all_deplibs=$link_all_deplibs_GCJ
18695
18696 # Compile-time system search path for libraries
18697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18698
18699 # Run-time system search path for libraries
18700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18701
18702 # Fix the shell variable \$srcfile for the compiler.
18703 fix_srcfile_path="$fix_srcfile_path_GCJ"
18704
18705 # Set to yes if exported symbols are required.
18706 always_export_symbols=$always_export_symbols_GCJ
18707
18708 # The commands to list exported symbols.
18709 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18710
18711 # The commands to extract the exported symbol list from a shared archive.
18712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18713
18714 # Symbols that should not be listed in the preloaded symbols.
18715 exclude_expsyms=$lt_exclude_expsyms_GCJ
18716
18717 # Symbols that must always be exported.
18718 include_expsyms=$lt_include_expsyms_GCJ
18719
18720 # ### END LIBTOOL TAG CONFIG: $tagname
18721
18722 __EOF__
18723
18724
18725 else
18726   # If there is no Makefile yet, we rely on a make rule to execute
18727   # `config.status --recheck' to rerun these tests and create the
18728   # libtool script then.
18729   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18730   if test -f "$ltmain_in"; then
18731     test -f Makefile && make "$ltmain"
18732   fi
18733 fi
18734
18735
18736 ac_ext=c
18737 ac_cpp='$CPP $CPPFLAGS'
18738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18741
18742 CC="$lt_save_CC"
18743
18744         else
18745           tagname=""
18746         fi
18747         ;;
18748
18749       RC)
18750
18751
18752 # Source file extension for RC test sources.
18753 ac_ext=rc
18754
18755 # Object file extension for compiled RC test sources.
18756 objext=o
18757 objext_RC=$objext
18758
18759 # Code to be used in simple compile tests
18760 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18761
18762 # Code to be used in simple link tests
18763 lt_simple_link_test_code="$lt_simple_compile_test_code"
18764
18765 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18766
18767 # If no C compiler was specified, use CC.
18768 LTCC=${LTCC-"$CC"}
18769
18770 # If no C compiler flags were specified, use CFLAGS.
18771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18772
18773 # Allow CC to be a program name with arguments.
18774 compiler=$CC
18775
18776
18777 # save warnings/boilerplate of simple test code
18778 ac_outfile=conftest.$ac_objext
18779 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18781 _lt_compiler_boilerplate=`cat conftest.err`
18782 $rm conftest*
18783
18784 ac_outfile=conftest.$ac_objext
18785 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18787 _lt_linker_boilerplate=`cat conftest.err`
18788 $rm conftest*
18789
18790
18791 # Allow CC to be a program name with arguments.
18792 lt_save_CC="$CC"
18793 CC=${RC-"windres"}
18794 compiler=$CC
18795 compiler_RC=$CC
18796 for cc_temp in $compiler""; do
18797   case $cc_temp in
18798     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18799     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18800     \-*) ;;
18801     *) break;;
18802   esac
18803 done
18804 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18805
18806 lt_cv_prog_compiler_c_o_RC=yes
18807
18808 # The else clause should only fire when bootstrapping the
18809 # libtool distribution, otherwise you forgot to ship ltmain.sh
18810 # with your package, and you will get complaints that there are
18811 # no rules to generate ltmain.sh.
18812 if test -f "$ltmain"; then
18813   # See if we are running on zsh, and set the options which allow our commands through
18814   # without removal of \ escapes.
18815   if test -n "${ZSH_VERSION+set}" ; then
18816     setopt NO_GLOB_SUBST
18817   fi
18818   # Now quote all the things that may contain metacharacters while being
18819   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18820   # variables and quote the copies for generation of the libtool script.
18821   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18822     SED SHELL STRIP \
18823     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18824     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18825     deplibs_check_method reload_flag reload_cmds need_locks \
18826     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18827     lt_cv_sys_global_symbol_to_c_name_address \
18828     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18829     old_postinstall_cmds old_postuninstall_cmds \
18830     compiler_RC \
18831     CC_RC \
18832     LD_RC \
18833     lt_prog_compiler_wl_RC \
18834     lt_prog_compiler_pic_RC \
18835     lt_prog_compiler_static_RC \
18836     lt_prog_compiler_no_builtin_flag_RC \
18837     export_dynamic_flag_spec_RC \
18838     thread_safe_flag_spec_RC \
18839     whole_archive_flag_spec_RC \
18840     enable_shared_with_static_runtimes_RC \
18841     old_archive_cmds_RC \
18842     old_archive_from_new_cmds_RC \
18843     predep_objects_RC \
18844     postdep_objects_RC \
18845     predeps_RC \
18846     postdeps_RC \
18847     compiler_lib_search_path_RC \
18848     archive_cmds_RC \
18849     archive_expsym_cmds_RC \
18850     postinstall_cmds_RC \
18851     postuninstall_cmds_RC \
18852     old_archive_from_expsyms_cmds_RC \
18853     allow_undefined_flag_RC \
18854     no_undefined_flag_RC \
18855     export_symbols_cmds_RC \
18856     hardcode_libdir_flag_spec_RC \
18857     hardcode_libdir_flag_spec_ld_RC \
18858     hardcode_libdir_separator_RC \
18859     hardcode_automatic_RC \
18860     module_cmds_RC \
18861     module_expsym_cmds_RC \
18862     lt_cv_prog_compiler_c_o_RC \
18863     exclude_expsyms_RC \
18864     include_expsyms_RC; do
18865
18866     case $var in
18867     old_archive_cmds_RC | \
18868     old_archive_from_new_cmds_RC | \
18869     archive_cmds_RC | \
18870     archive_expsym_cmds_RC | \
18871     module_cmds_RC | \
18872     module_expsym_cmds_RC | \
18873     old_archive_from_expsyms_cmds_RC | \
18874     export_symbols_cmds_RC | \
18875     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18876     postinstall_cmds | postuninstall_cmds | \
18877     old_postinstall_cmds | old_postuninstall_cmds | \
18878     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18879       # Double-quote double-evaled strings.
18880       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18881       ;;
18882     *)
18883       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18884       ;;
18885     esac
18886   done
18887
18888   case $lt_echo in
18889   *'\$0 --fallback-echo"')
18890     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18891     ;;
18892   esac
18893
18894 cfgfile="$ofile"
18895
18896   cat <<__EOF__ >> "$cfgfile"
18897 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18898
18899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18900
18901 # Shell to use when invoking shell scripts.
18902 SHELL=$lt_SHELL
18903
18904 # Whether or not to build shared libraries.
18905 build_libtool_libs=$enable_shared
18906
18907 # Whether or not to build static libraries.
18908 build_old_libs=$enable_static
18909
18910 # Whether or not to add -lc for building shared libraries.
18911 build_libtool_need_lc=$archive_cmds_need_lc_RC
18912
18913 # Whether or not to disallow shared libs when runtime libs are static
18914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18915
18916 # Whether or not to optimize for fast installation.
18917 fast_install=$enable_fast_install
18918
18919 # The host system.
18920 host_alias=$host_alias
18921 host=$host
18922 host_os=$host_os
18923
18924 # The build system.
18925 build_alias=$build_alias
18926 build=$build
18927 build_os=$build_os
18928
18929 # An echo program that does not interpret backslashes.
18930 echo=$lt_echo
18931
18932 # The archiver.
18933 AR=$lt_AR
18934 AR_FLAGS=$lt_AR_FLAGS
18935
18936 # A C compiler.
18937 LTCC=$lt_LTCC
18938
18939 # LTCC compiler flags.
18940 LTCFLAGS=$lt_LTCFLAGS
18941
18942 # A language-specific compiler.
18943 CC=$lt_compiler_RC
18944
18945 # Is the compiler the GNU C compiler?
18946 with_gcc=$GCC_RC
18947
18948 # An ERE matcher.
18949 EGREP=$lt_EGREP
18950
18951 # The linker used to build libraries.
18952 LD=$lt_LD_RC
18953
18954 # Whether we need hard or soft links.
18955 LN_S=$lt_LN_S
18956
18957 # A BSD-compatible nm program.
18958 NM=$lt_NM
18959
18960 # A symbol stripping program
18961 STRIP=$lt_STRIP
18962
18963 # Used to examine libraries when file_magic_cmd begins "file"
18964 MAGIC_CMD=$MAGIC_CMD
18965
18966 # Used on cygwin: DLL creation program.
18967 DLLTOOL="$DLLTOOL"
18968
18969 # Used on cygwin: object dumper.
18970 OBJDUMP="$OBJDUMP"
18971
18972 # Used on cygwin: assembler.
18973 AS="$AS"
18974
18975 # The name of the directory that contains temporary libtool files.
18976 objdir=$objdir
18977
18978 # How to create reloadable object files.
18979 reload_flag=$lt_reload_flag
18980 reload_cmds=$lt_reload_cmds
18981
18982 # How to pass a linker flag through the compiler.
18983 wl=$lt_lt_prog_compiler_wl_RC
18984
18985 # Object file suffix (normally "o").
18986 objext="$ac_objext"
18987
18988 # Old archive suffix (normally "a").
18989 libext="$libext"
18990
18991 # Shared library suffix (normally ".so").
18992 shrext_cmds='$shrext_cmds'
18993
18994 # Executable file suffix (normally "").
18995 exeext="$exeext"
18996
18997 # Additional compiler flags for building library objects.
18998 pic_flag=$lt_lt_prog_compiler_pic_RC
18999 pic_mode=$pic_mode
19000
19001 # What is the maximum length of a command?
19002 max_cmd_len=$lt_cv_sys_max_cmd_len
19003
19004 # Does compiler simultaneously support -c and -o options?
19005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19006
19007 # Must we lock files when doing compilation?
19008 need_locks=$lt_need_locks
19009
19010 # Do we need the lib prefix for modules?
19011 need_lib_prefix=$need_lib_prefix
19012
19013 # Do we need a version for libraries?
19014 need_version=$need_version
19015
19016 # Whether dlopen is supported.
19017 dlopen_support=$enable_dlopen
19018
19019 # Whether dlopen of programs is supported.
19020 dlopen_self=$enable_dlopen_self
19021
19022 # Whether dlopen of statically linked programs is supported.
19023 dlopen_self_static=$enable_dlopen_self_static
19024
19025 # Compiler flag to prevent dynamic linking.
19026 link_static_flag=$lt_lt_prog_compiler_static_RC
19027
19028 # Compiler flag to turn off builtin functions.
19029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19030
19031 # Compiler flag to allow reflexive dlopens.
19032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19033
19034 # Compiler flag to generate shared objects directly from archives.
19035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19036
19037 # Compiler flag to generate thread-safe objects.
19038 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19039
19040 # Library versioning type.
19041 version_type=$version_type
19042
19043 # Format of library name prefix.
19044 libname_spec=$lt_libname_spec
19045
19046 # List of archive names.  First name is the real one, the rest are links.
19047 # The last name is the one that the linker finds with -lNAME.
19048 library_names_spec=$lt_library_names_spec
19049
19050 # The coded name of the library, if different from the real name.
19051 soname_spec=$lt_soname_spec
19052
19053 # Commands used to build and install an old-style archive.
19054 RANLIB=$lt_RANLIB
19055 old_archive_cmds=$lt_old_archive_cmds_RC
19056 old_postinstall_cmds=$lt_old_postinstall_cmds
19057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19058
19059 # Create an old-style archive from a shared archive.
19060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19061
19062 # Create a temporary old-style archive to link instead of a shared archive.
19063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19064
19065 # Commands used to build and install a shared archive.
19066 archive_cmds=$lt_archive_cmds_RC
19067 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19068 postinstall_cmds=$lt_postinstall_cmds
19069 postuninstall_cmds=$lt_postuninstall_cmds
19070
19071 # Commands used to build a loadable module (assumed same as above if empty)
19072 module_cmds=$lt_module_cmds_RC
19073 module_expsym_cmds=$lt_module_expsym_cmds_RC
19074
19075 # Commands to strip libraries.
19076 old_striplib=$lt_old_striplib
19077 striplib=$lt_striplib
19078
19079 # Dependencies to place before the objects being linked to create a
19080 # shared library.
19081 predep_objects=$lt_predep_objects_RC
19082
19083 # Dependencies to place after the objects being linked to create a
19084 # shared library.
19085 postdep_objects=$lt_postdep_objects_RC
19086
19087 # Dependencies to place before the objects being linked to create a
19088 # shared library.
19089 predeps=$lt_predeps_RC
19090
19091 # Dependencies to place after the objects being linked to create a
19092 # shared library.
19093 postdeps=$lt_postdeps_RC
19094
19095 # The library search path used internally by the compiler when linking
19096 # a shared library.
19097 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19098
19099 # Method to check whether dependent libraries are shared objects.
19100 deplibs_check_method=$lt_deplibs_check_method
19101
19102 # Command to use when deplibs_check_method == file_magic.
19103 file_magic_cmd=$lt_file_magic_cmd
19104
19105 # Flag that allows shared libraries with undefined symbols to be built.
19106 allow_undefined_flag=$lt_allow_undefined_flag_RC
19107
19108 # Flag that forces no undefined symbols.
19109 no_undefined_flag=$lt_no_undefined_flag_RC
19110
19111 # Commands used to finish a libtool library installation in a directory.
19112 finish_cmds=$lt_finish_cmds
19113
19114 # Same as above, but a single script fragment to be evaled but not shown.
19115 finish_eval=$lt_finish_eval
19116
19117 # Take the output of nm and produce a listing of raw symbols and C names.
19118 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19119
19120 # Transform the output of nm in a proper C declaration
19121 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19122
19123 # Transform the output of nm in a C name address pair
19124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19125
19126 # This is the shared library runtime path variable.
19127 runpath_var=$runpath_var
19128
19129 # This is the shared library path variable.
19130 shlibpath_var=$shlibpath_var
19131
19132 # Is shlibpath searched before the hard-coded library search path?
19133 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19134
19135 # How to hardcode a shared library path into an executable.
19136 hardcode_action=$hardcode_action_RC
19137
19138 # Whether we should hardcode library paths into libraries.
19139 hardcode_into_libs=$hardcode_into_libs
19140
19141 # Flag to hardcode \$libdir into a binary during linking.
19142 # This must work even if \$libdir does not exist.
19143 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19144
19145 # If ld is used when linking, flag to hardcode \$libdir into
19146 # a binary during linking. This must work even if \$libdir does
19147 # not exist.
19148 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19149
19150 # Whether we need a single -rpath flag with a separated argument.
19151 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19152
19153 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19154 # resulting binary.
19155 hardcode_direct=$hardcode_direct_RC
19156
19157 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19158 # resulting binary.
19159 hardcode_minus_L=$hardcode_minus_L_RC
19160
19161 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19162 # the resulting binary.
19163 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19164
19165 # Set to yes if building a shared library automatically hardcodes DIR into the library
19166 # and all subsequent libraries and executables linked against it.
19167 hardcode_automatic=$hardcode_automatic_RC
19168
19169 # Variables whose values should be saved in libtool wrapper scripts and
19170 # restored at relink time.
19171 variables_saved_for_relink="$variables_saved_for_relink"
19172
19173 # Whether libtool must link a program against all its dependency libraries.
19174 link_all_deplibs=$link_all_deplibs_RC
19175
19176 # Compile-time system search path for libraries
19177 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19178
19179 # Run-time system search path for libraries
19180 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19181
19182 # Fix the shell variable \$srcfile for the compiler.
19183 fix_srcfile_path="$fix_srcfile_path_RC"
19184
19185 # Set to yes if exported symbols are required.
19186 always_export_symbols=$always_export_symbols_RC
19187
19188 # The commands to list exported symbols.
19189 export_symbols_cmds=$lt_export_symbols_cmds_RC
19190
19191 # The commands to extract the exported symbol list from a shared archive.
19192 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19193
19194 # Symbols that should not be listed in the preloaded symbols.
19195 exclude_expsyms=$lt_exclude_expsyms_RC
19196
19197 # Symbols that must always be exported.
19198 include_expsyms=$lt_include_expsyms_RC
19199
19200 # ### END LIBTOOL TAG CONFIG: $tagname
19201
19202 __EOF__
19203
19204
19205 else
19206   # If there is no Makefile yet, we rely on a make rule to execute
19207   # `config.status --recheck' to rerun these tests and create the
19208   # libtool script then.
19209   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19210   if test -f "$ltmain_in"; then
19211     test -f Makefile && make "$ltmain"
19212   fi
19213 fi
19214
19215
19216 ac_ext=c
19217 ac_cpp='$CPP $CPPFLAGS'
19218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19221
19222 CC="$lt_save_CC"
19223
19224         ;;
19225
19226       *)
19227         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19228 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19229    { (exit 1); exit 1; }; }
19230         ;;
19231       esac
19232
19233       # Append the new tag name to the list of available tags.
19234       if test -n "$tagname" ; then
19235       available_tags="$available_tags $tagname"
19236     fi
19237     fi
19238   done
19239   IFS="$lt_save_ifs"
19240
19241   # Now substitute the updated list of available tags.
19242   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19243     mv "${ofile}T" "$ofile"
19244     chmod +x "$ofile"
19245   else
19246     rm -f "${ofile}T"
19247     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19248 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19249    { (exit 1); exit 1; }; }
19250   fi
19251 fi
19252
19253
19254
19255 # This can be used to rebuild libtool when needed
19256 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19257
19258 # Always use our own libtool.
19259 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19260
19261 # Prevent multiple expansion
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285 # Checks for libraries.
19286
19287 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19288 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19289 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292   ac_check_lib_save_LIBS=$LIBS
19293 LIBS="-lapr-1  $LIBS"
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300
19301
19302 int
19303 main ()
19304 {
19305 return main ();
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (ac_try="$ac_link"
19312 case "(($ac_try" in
19313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314   *) ac_try_echo=$ac_try;;
19315 esac
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317   (eval "$ac_link") 2>conftest.er1
19318   ac_status=$?
19319   grep -v '^ *+' conftest.er1 >conftest.err
19320   rm -f conftest.er1
19321   cat conftest.err >&5
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } && {
19324          test -z "$ac_c_werror_flag" ||
19325          test ! -s conftest.err
19326        } && test -s conftest$ac_exeext &&
19327        $as_test_x conftest$ac_exeext; then
19328   ac_cv_lib_apr_1_main=yes
19329 else
19330   echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333         ac_cv_lib_apr_1_main=no
19334 fi
19335
19336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19337       conftest$ac_exeext conftest.$ac_ext
19338 LIBS=$ac_check_lib_save_LIBS
19339 fi
19340 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19341 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19342 if test $ac_cv_lib_apr_1_main = yes; then
19343   cat >>confdefs.h <<_ACEOF
19344 #define HAVE_LIBAPR_1 1
19345 _ACEOF
19346
19347   LIBS="-lapr-1 $LIBS"
19348
19349 fi
19350
19351
19352
19353 # Check whether --with-apache-header was given.
19354 if test "${with_apache_header+set}" = set; then
19355   withval=$with_apache_header;
19356 fi
19357
19358 if test "x$with_apache_header" = "xyes"; then
19359     { { echo "$as_me:$LINENO: error:
19360 Please specify the --with-apache-header option. And, please specify the place of the header file.
19361
19362 " >&5
19363 echo "$as_me: error:
19364 Please specify the --with-apache-header option. And, please specify the place of the header file.
19365
19366 " >&2;}
19367    { (exit 1); exit 1; }; }
19368 fi
19369
19370
19371 # Check whether --with-apxs was given.
19372 if test "${with_apxs+set}" = set; then
19373   withval=$with_apxs;
19374 fi
19375
19376 if test "x$with_apxs" = "x" ; then
19377   APXS=""
19378 fi
19379 if test "x$with_apxs" = "xyes" ; then
19380     { { echo "$as_me:$LINENO: error:
19381 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19382 " >&5
19383 echo "$as_me: error:
19384 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19385 " >&2;}
19386    { (exit 1); exit 1; }; }
19387 fi
19388
19389
19390 # Check whether --with-apr-config was given.
19391 if test "${with_apr_config+set}" = set; then
19392   withval=$with_apr_config;
19393 fi
19394
19395 if test "x$with_apr_config" = "xyes" ; then
19396     { { echo "$as_me:$LINENO: error:
19397 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19398 " >&5
19399 echo "$as_me: error:
19400 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19401 " >&2;}
19402    { (exit 1); exit 1; }; }
19403 fi
19404
19405
19406 # Check whether --with-apu-config was given.
19407 if test "${with_apu_config+set}" = set; then
19408   withval=$with_apu_config;
19409 fi
19410
19411 if test "x$with_apu_config" = "xyes" ; then
19412     { { echo "$as_me:$LINENO: error:
19413 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19414 " >&5
19415 echo "$as_me: error:
19416 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19417 " >&2;}
19418    { (exit 1); exit 1; }; }
19419 fi
19420
19421
19422 # Check whether --with-pcre-config was given.
19423 if test "${with_pcre_config+set}" = set; then
19424   withval=$with_pcre_config;
19425 fi
19426
19427 if test "x$with_pcre_config" = "xyes" ; then
19428     { { echo "$as_me:$LINENO: error:
19429 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19430 " >&5
19431 echo "$as_me: error:
19432 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19433 " >&2;}
19434    { (exit 1); exit 1; }; }
19435 fi
19436
19437
19438
19439 # Check whether --enable-img-conv-f was given.
19440 if test "${enable_img_conv_f+set}" = set; then
19441   enableval=$enable_img_conv_f;
19442 fi
19443
19444 if test "x$enable_img_conv_f" = "xyes"; then
19445   QDEFS=""
19446 else
19447   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19448 fi
19449
19450
19451 # Check whether --enable-memcache-cookie was given.
19452 if test "${enable_memcache_cookie+set}" = set; then
19453   enableval=$enable_memcache_cookie;
19454 fi
19455
19456 # Check whether --enable-memcached-static was given.
19457 if test "${enable_memcached_static+set}" = set; then
19458   enableval=$enable_memcached_static;
19459 fi
19460
19461
19462 # Check whether --with-memcached-header was given.
19463 if test "${with_memcached_header+set}" = set; then
19464   withval=$with_memcached_header;
19465 fi
19466
19467
19468 # Check whether --with-memcached-lib-dir was given.
19469 if test "${with_memcached_lib_dir+set}" = set; then
19470   withval=$with_memcached_lib_dir;
19471 fi
19472
19473 if test "x$enable_memcache_cookie" = "xyes" ; then
19474         if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
19475     { { echo "$as_me:$LINENO: error:
19476 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19477 " >&5
19478 echo "$as_me: error:
19479 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19480 " >&2;}
19481    { (exit 1); exit 1; }; }
19482   fi
19483   if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
19484     { { echo "$as_me:$LINENO: error:
19485 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19486 " >&5
19487 echo "$as_me: error:
19488 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19489 " >&2;}
19490    { (exit 1); exit 1; }; }
19491   fi
19492   if test "x$enable_memcached_static" = "xyes" ; then
19493     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19494     MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
19495   else
19496     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19497     MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
19498   fi
19499 else
19500         MEMCACHE_COOKIE_DEFS=""
19501   MEMCACHE_COOKIE_LIBS=""
19502 fi
19503 # Check whether --enable-mysql-cookie was given.
19504 if test "${enable_mysql_cookie+set}" = set; then
19505   enableval=$enable_mysql_cookie;
19506 fi
19507
19508
19509 # Check whether --with-mysql-header was given.
19510 if test "${with_mysql_header+set}" = set; then
19511   withval=$with_mysql_header;
19512 fi
19513
19514
19515 # Check whether --with-mysql-lib-dir was given.
19516 if test "${with_mysql_lib_dir+set}" = set; then
19517   withval=$with_mysql_lib_dir;
19518 fi
19519
19520 if test "x$enable_mysql_cookie" = "xyes"; then
19521         if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19522     { { echo "$as_me:$LINENO: error:
19523 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19524 " >&5
19525 echo "$as_me: error:
19526 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19527 " >&2;}
19528    { (exit 1); exit 1; }; }
19529   fi
19530   if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19531     { { echo "$as_me:$LINENO: error:
19532 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19533 " >&5
19534 echo "$as_me: error:
19535 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19536 " >&2;}
19537    { (exit 1); exit 1; }; }
19538   fi
19539   MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19540   MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19541 else
19542         MYSQL_COOKIE_DEFS=""
19543   MYSQL_COOKIE_LIBS=""
19544 fi
19545
19546 OPENSSL_PATH=""
19547
19548 # Check whether --with-openssl was given.
19549 if test "${with_openssl+set}" = set; then
19550   withval=$with_openssl;
19551   if test "$withval" = "yes"; then
19552     { { echo "$as_me:$LINENO: error: --with-openssl requires a path" >&5
19553 echo "$as_me: error: --with-openssl requires a path" >&2;}
19554    { (exit 1); exit 1; }; }
19555   else
19556     openssl_prefix=$withval
19557
19558     if test "x$openssl_prefix" != "x" -a ! -d "$openssl_prefix"; then
19559       { { echo "$as_me:$LINENO: error: '--with-openssl requires a path to a directory'" >&5
19560 echo "$as_me: error: '--with-openssl requires a path to a directory'" >&2;}
19561    { (exit 1); exit 1; }; }
19562     fi
19563
19564     CPPFLAGS="${CPPFLAGS} -I${openssl_prefix}/include"
19565     LDFLAGS="${LDFLAGS} -L${openssl_prefix}/lib"
19566     LDFLAGS="${LDFLAGS} -R${openssl_prefix}/lib"
19567     OPENSSL_PATH="--with-openssl ${openssl_prefix}"
19568   fi
19569
19570 fi
19571
19572
19573 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
19574   { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
19575 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
19576 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
19577   echo $ECHO_N "(cached) $ECHO_C" >&6
19578 fi
19579 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
19580 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
19581 else
19582   # Is the header compilable?
19583 { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
19584 echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591 $ac_includes_default
19592 #include <openssl/opensslv.h>
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (ac_try="$ac_compile"
19596 case "(($ac_try" in
19597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598   *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601   (eval "$ac_compile") 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } && {
19608          test -z "$ac_c_werror_flag" ||
19609          test ! -s conftest.err
19610        } && test -s conftest.$ac_objext; then
19611   ac_header_compiler=yes
19612 else
19613   echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19615
19616         ac_header_compiler=no
19617 fi
19618
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19621 echo "${ECHO_T}$ac_header_compiler" >&6; }
19622
19623 # Is the header present?
19624 { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
19625 echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
19626 cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632 #include <openssl/opensslv.h>
19633 _ACEOF
19634 if { (ac_try="$ac_cpp conftest.$ac_ext"
19635 case "(($ac_try" in
19636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637   *) ac_try_echo=$ac_try;;
19638 esac
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } >/dev/null && {
19647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19648          test ! -s conftest.err
19649        }; then
19650   ac_header_preproc=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655   ac_header_preproc=no
19656 fi
19657
19658 rm -f conftest.err conftest.$ac_ext
19659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19660 echo "${ECHO_T}$ac_header_preproc" >&6; }
19661
19662 # So?  What about this header?
19663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19664   yes:no: )
19665     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
19666 echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19667     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
19668 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
19669     ac_header_preproc=yes
19670     ;;
19671   no:yes:* )
19672     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
19673 echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
19674     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&5
19675 echo "$as_me: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&2;}
19676     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
19677 echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
19678     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&5
19679 echo "$as_me: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
19681 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
19682     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
19683 echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
19684     ( cat <<\_ASBOX
19685 ## ---------------------------------------- ##
19686 ## Report this to konn@users.sourceforge.jp ##
19687 ## ---------------------------------------- ##
19688 _ASBOX
19689      ) | sed "s/^/$as_me: WARNING:     /" >&2
19690     ;;
19691 esac
19692 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
19693 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
19694 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
19695   echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697   ac_cv_header_openssl_opensslv_h=$ac_header_preproc
19698 fi
19699 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
19700 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
19701
19702 fi
19703 if test $ac_cv_header_openssl_opensslv_h = yes; then
19704   :
19705 else
19706   { { echo "$as_me:$LINENO: error: We require OpenSSL; try --with-openssl" >&5
19707 echo "$as_me: error: We require OpenSSL; try --with-openssl" >&2;}
19708    { (exit 1); exit 1; }; }
19709 fi
19710
19711
19712
19713 # Check whether --enable-dump-log was given.
19714 if test "${enable_dump_log+set}" = set; then
19715   enableval=$enable_dump_log;
19716 fi
19717
19718 if test "x$enable_dump_log" = "xyes"; then
19719   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19720 else
19721     if test "x$enable_dump_log" != "x" ; then
19722         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19723     fi
19724 fi
19725
19726
19727 if test "x$with_apxs" = "x" ; then
19728   # Extract the first word of "apxs2", so it can be a program name with args.
19729 set dummy apxs2; ac_word=$2
19730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19732 if test "${ac_cv_path_APXS2+set}" = set; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735   case $APXS2 in
19736   [\\/]* | ?:[\\/]*)
19737   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19738   ;;
19739   *)
19740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19741 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19742 for as_dir in $as_dummy
19743 do
19744   IFS=$as_save_IFS
19745   test -z "$as_dir" && as_dir=.
19746   for ac_exec_ext in '' $ac_executable_extensions; do
19747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19748     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19750     break 2
19751   fi
19752 done
19753 done
19754 IFS=$as_save_IFS
19755
19756   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19757   ;;
19758 esac
19759 fi
19760 APXS2=$ac_cv_path_APXS2
19761 if test -n "$APXS2"; then
19762   { echo "$as_me:$LINENO: result: $APXS2" >&5
19763 echo "${ECHO_T}$APXS2" >&6; }
19764 else
19765   { echo "$as_me:$LINENO: result: no" >&5
19766 echo "${ECHO_T}no" >&6; }
19767 fi
19768
19769
19770   if test "x$APXS2" = "xno"; then
19771     # Extract the first word of "apxs", so it can be a program name with args.
19772 set dummy apxs; ac_word=$2
19773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19775 if test "${ac_cv_path_APXS+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   case $APXS in
19779   [\\/]* | ?:[\\/]*)
19780   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19781   ;;
19782   *)
19783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19785 for as_dir in $as_dummy
19786 do
19787   IFS=$as_save_IFS
19788   test -z "$as_dir" && as_dir=.
19789   for ac_exec_ext in '' $ac_executable_extensions; do
19790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19791     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19793     break 2
19794   fi
19795 done
19796 done
19797 IFS=$as_save_IFS
19798
19799   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19800   ;;
19801 esac
19802 fi
19803 APXS=$ac_cv_path_APXS
19804 if test -n "$APXS"; then
19805   { echo "$as_me:$LINENO: result: $APXS" >&5
19806 echo "${ECHO_T}$APXS" >&6; }
19807 else
19808   { echo "$as_me:$LINENO: result: no" >&5
19809 echo "${ECHO_T}no" >&6; }
19810 fi
19811
19812
19813     if test "x$APXS" = "xno" ; then
19814       { { echo "$as_me:$LINENO: error: apxs not found." >&5
19815 echo "$as_me: error: apxs not found." >&2;}
19816    { (exit 1); exit 1; }; }
19817     fi
19818   else
19819     APXS="$APXS2"
19820   fi
19821 fi
19822 if test "x$with_apxs" != "x" ; then
19823   APXS=$with_apxs
19824 fi
19825
19826 # Extract the first word of "libtool", so it can be a program name with args.
19827 set dummy libtool; ac_word=$2
19828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19830 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   case $LIBTOOL in
19834   [\\/]* | ?:[\\/]*)
19835   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19836   ;;
19837   *)
19838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19839 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19840 for as_dir in $as_dummy
19841 do
19842   IFS=$as_save_IFS
19843   test -z "$as_dir" && as_dir=.
19844   for ac_exec_ext in '' $ac_executable_extensions; do
19845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19846     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19848     break 2
19849   fi
19850 done
19851 done
19852 IFS=$as_save_IFS
19853
19854   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19855   ;;
19856 esac
19857 fi
19858 LIBTOOL=$ac_cv_path_LIBTOOL
19859 if test -n "$LIBTOOL"; then
19860   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19861 echo "${ECHO_T}$LIBTOOL" >&6; }
19862 else
19863   { echo "$as_me:$LINENO: result: no" >&5
19864 echo "${ECHO_T}no" >&6; }
19865 fi
19866
19867
19868 if test "x$LIBTOOL" = "xno"; then
19869     { { echo "$as_me:$LINENO: error: libtool not found." >&5
19870 echo "$as_me: error: libtool not found." >&2;}
19871    { (exit 1); exit 1; }; }
19872 fi
19873
19874
19875 # Extract the first word of "Wand-config", so it can be a program name with args.
19876 set dummy Wand-config; ac_word=$2
19877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19879 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19880   echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882   case $WAND_CONFIG in
19883   [\\/]* | ?:[\\/]*)
19884   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19885   ;;
19886   *)
19887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19888 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19889 for as_dir in $as_dummy
19890 do
19891   IFS=$as_save_IFS
19892   test -z "$as_dir" && as_dir=.
19893   for ac_exec_ext in '' $ac_executable_extensions; do
19894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19895     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19897     break 2
19898   fi
19899 done
19900 done
19901 IFS=$as_save_IFS
19902
19903   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19904   ;;
19905 esac
19906 fi
19907 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19908 if test -n "$WAND_CONFIG"; then
19909   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19910 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19911 else
19912   { echo "$as_me:$LINENO: result: no" >&5
19913 echo "${ECHO_T}no" >&6; }
19914 fi
19915
19916
19917 if test "x$WAND_CONFIG" = "xno" ; then
19918     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19919 echo "$as_me: error: wand-config not found." >&2;}
19920    { (exit 1); exit 1; }; }
19921 fi
19922
19923 if test "x$with_apr_config" = "x" ; then
19924   # Extract the first word of "apr-config", so it can be a program name with args.
19925 set dummy apr-config; ac_word=$2
19926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19928 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931   case $APR_CONFIG in
19932   [\\/]* | ?:[\\/]*)
19933   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19934   ;;
19935   *)
19936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19937 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19938 for as_dir in $as_dummy
19939 do
19940   IFS=$as_save_IFS
19941   test -z "$as_dir" && as_dir=.
19942   for ac_exec_ext in '' $ac_executable_extensions; do
19943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19944     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19946     break 2
19947   fi
19948 done
19949 done
19950 IFS=$as_save_IFS
19951
19952   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19953   ;;
19954 esac
19955 fi
19956 APR_CONFIG=$ac_cv_path_APR_CONFIG
19957 if test -n "$APR_CONFIG"; then
19958   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19959 echo "${ECHO_T}$APR_CONFIG" >&6; }
19960 else
19961   { echo "$as_me:$LINENO: result: no" >&5
19962 echo "${ECHO_T}no" >&6; }
19963 fi
19964
19965
19966   if test "x$APR_CONFIG" = "xno" ; then
19967     # Extract the first word of "apr-1-config", so it can be a program name with args.
19968 set dummy apr-1-config; ac_word=$2
19969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19971 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974   case $APR_1_CONFIG in
19975   [\\/]* | ?:[\\/]*)
19976   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19977   ;;
19978   *)
19979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19980 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19981 for as_dir in $as_dummy
19982 do
19983   IFS=$as_save_IFS
19984   test -z "$as_dir" && as_dir=.
19985   for ac_exec_ext in '' $ac_executable_extensions; do
19986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19987     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19989     break 2
19990   fi
19991 done
19992 done
19993 IFS=$as_save_IFS
19994
19995   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19996   ;;
19997 esac
19998 fi
19999 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20000 if test -n "$APR_1_CONFIG"; then
20001   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20002 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20003 else
20004   { echo "$as_me:$LINENO: result: no" >&5
20005 echo "${ECHO_T}no" >&6; }
20006 fi
20007
20008
20009     if test "x$APR_1_CONFIG" = "xno" ; then
20010       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20011 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20012    { (exit 1); exit 1; }; }
20013     else
20014       APR_CONFIG="$APR_1_CONFIG"
20015     fi
20016   fi
20017 fi
20018 if test "x$with_apr_config" != "x" ; then
20019   APR_CONFIG=$with_apr_config
20020 fi
20021 if test "x$with_apu_config" = "x" ; then
20022   # Extract the first word of "apu-config", so it can be a program name with args.
20023 set dummy apu-config; ac_word=$2
20024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20026 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20027   echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20029   case $APU_CONFIG in
20030   [\\/]* | ?:[\\/]*)
20031   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20032   ;;
20033   *)
20034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20035 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20036 for as_dir in $as_dummy
20037 do
20038   IFS=$as_save_IFS
20039   test -z "$as_dir" && as_dir=.
20040   for ac_exec_ext in '' $ac_executable_extensions; do
20041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20042     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20044     break 2
20045   fi
20046 done
20047 done
20048 IFS=$as_save_IFS
20049
20050   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20051   ;;
20052 esac
20053 fi
20054 APU_CONFIG=$ac_cv_path_APU_CONFIG
20055 if test -n "$APU_CONFIG"; then
20056   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20057 echo "${ECHO_T}$APU_CONFIG" >&6; }
20058 else
20059   { echo "$as_me:$LINENO: result: no" >&5
20060 echo "${ECHO_T}no" >&6; }
20061 fi
20062
20063
20064   if test "x$APU_CONFIG" = "xno" ; then
20065     # Extract the first word of "apu-1-config", so it can be a program name with args.
20066 set dummy apu-1-config; ac_word=$2
20067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20069 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20070   echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072   case $APU_1_CONFIG in
20073   [\\/]* | ?:[\\/]*)
20074   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20075   ;;
20076   *)
20077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20078 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20079 for as_dir in $as_dummy
20080 do
20081   IFS=$as_save_IFS
20082   test -z "$as_dir" && as_dir=.
20083   for ac_exec_ext in '' $ac_executable_extensions; do
20084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20085     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20087     break 2
20088   fi
20089 done
20090 done
20091 IFS=$as_save_IFS
20092
20093   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20094   ;;
20095 esac
20096 fi
20097 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20098 if test -n "$APU_1_CONFIG"; then
20099   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20100 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20101 else
20102   { echo "$as_me:$LINENO: result: no" >&5
20103 echo "${ECHO_T}no" >&6; }
20104 fi
20105
20106
20107     if test "x$APU_1_CONFIG" = "xno" ; then
20108       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20109 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20110    { (exit 1); exit 1; }; }
20111     else
20112       APU_CONFIG="$APU_1_CONFIG"
20113     fi
20114   fi
20115 fi
20116 if test "x$with_apu_config" != "x" ; then
20117   APU_CONFIG=$with_apu_config
20118 fi
20119
20120 case $host_os in
20121   freebsd*)
20122     CFLAGS="${CFLAGS} -I/usr/local/include "
20123     ;;
20124 esac
20125
20126 if test "x${with_apache_header}" = "x" ; then
20127   with_apache_header=`${APXS} -q includedir`
20128 fi
20129
20130 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20131 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20132 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20133 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
20134 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
20135 LIBS="${LIBS} css/src/.libs/libscss.a"
20136 LIBS="${LIBS} -lcrypto -lssl "
20137 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20138 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20139 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20140 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
20141 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20142 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
20143 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
20144 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20145
20146 # Checks for header files.
20147 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20149 if test "${ac_cv_header_stdc+set}" = set; then
20150   echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152   cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h.  */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h.  */
20158 #include <stdlib.h>
20159 #include <stdarg.h>
20160 #include <string.h>
20161 #include <float.h>
20162
20163 int
20164 main ()
20165 {
20166
20167   ;
20168   return 0;
20169 }
20170 _ACEOF
20171 rm -f conftest.$ac_objext
20172 if { (ac_try="$ac_compile"
20173 case "(($ac_try" in
20174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175   *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178   (eval "$ac_compile") 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } && {
20185          test -z "$ac_c_werror_flag" ||
20186          test ! -s conftest.err
20187        } && test -s conftest.$ac_objext; then
20188   ac_cv_header_stdc=yes
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193         ac_cv_header_stdc=no
20194 fi
20195
20196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197
20198 if test $ac_cv_header_stdc = yes; then
20199   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20200   cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206 #include <string.h>
20207
20208 _ACEOF
20209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20210   $EGREP "memchr" >/dev/null 2>&1; then
20211   :
20212 else
20213   ac_cv_header_stdc=no
20214 fi
20215 rm -f conftest*
20216
20217 fi
20218
20219 if test $ac_cv_header_stdc = yes; then
20220   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20221   cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227 #include <stdlib.h>
20228
20229 _ACEOF
20230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20231   $EGREP "free" >/dev/null 2>&1; then
20232   :
20233 else
20234   ac_cv_header_stdc=no
20235 fi
20236 rm -f conftest*
20237
20238 fi
20239
20240 if test $ac_cv_header_stdc = yes; then
20241   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20242   if test "$cross_compiling" = yes; then
20243   :
20244 else
20245   cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 #include <ctype.h>
20252 #include <stdlib.h>
20253 #if ((' ' & 0x0FF) == 0x020)
20254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20256 #else
20257 # define ISLOWER(c) \
20258                    (('a' <= (c) && (c) <= 'i') \
20259                      || ('j' <= (c) && (c) <= 'r') \
20260                      || ('s' <= (c) && (c) <= 'z'))
20261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20262 #endif
20263
20264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20265 int
20266 main ()
20267 {
20268   int i;
20269   for (i = 0; i < 256; i++)
20270     if (XOR (islower (i), ISLOWER (i))
20271         || toupper (i) != TOUPPER (i))
20272       return 2;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest$ac_exeext
20277 if { (ac_try="$ac_link"
20278 case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_link") 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20287   { (case "(($ac_try" in
20288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289   *) ac_try_echo=$ac_try;;
20290 esac
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292   (eval "$ac_try") 2>&5
20293   ac_status=$?
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); }; }; then
20296   :
20297 else
20298   echo "$as_me: program exited with status $ac_status" >&5
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ( exit $ac_status )
20303 ac_cv_header_stdc=no
20304 fi
20305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20306 fi
20307
20308
20309 fi
20310 fi
20311 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20312 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20313 if test $ac_cv_header_stdc = yes; then
20314
20315 cat >>confdefs.h <<\_ACEOF
20316 #define STDC_HEADERS 1
20317 _ACEOF
20318
20319 fi
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20330 do
20331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20333   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 fi
20338 ac_res=`eval echo '${'$as_ac_Header'}'`
20339                { echo "$as_me:$LINENO: result: $ac_res" >&5
20340 echo "${ECHO_T}$ac_res" >&6; }
20341 else
20342   # Is the header compilable?
20343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351 $ac_includes_default
20352 #include <$ac_header>
20353 _ACEOF
20354 rm -f conftest.$ac_objext
20355 if { (ac_try="$ac_compile"
20356 case "(($ac_try" in
20357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358   *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361   (eval "$ac_compile") 2>conftest.er1
20362   ac_status=$?
20363   grep -v '^ *+' conftest.er1 >conftest.err
20364   rm -f conftest.er1
20365   cat conftest.err >&5
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } && {
20368          test -z "$ac_c_werror_flag" ||
20369          test ! -s conftest.err
20370        } && test -s conftest.$ac_objext; then
20371   ac_header_compiler=yes
20372 else
20373   echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376         ac_header_compiler=no
20377 fi
20378
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20381 echo "${ECHO_T}$ac_header_compiler" >&6; }
20382
20383 # Is the header present?
20384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20386 cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392 #include <$ac_header>
20393 _ACEOF
20394 if { (ac_try="$ac_cpp conftest.$ac_ext"
20395 case "(($ac_try" in
20396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397   *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20401   ac_status=$?
20402   grep -v '^ *+' conftest.er1 >conftest.err
20403   rm -f conftest.er1
20404   cat conftest.err >&5
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); } >/dev/null && {
20407          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20408          test ! -s conftest.err
20409        }; then
20410   ac_header_preproc=yes
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415   ac_header_preproc=no
20416 fi
20417
20418 rm -f conftest.err conftest.$ac_ext
20419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20420 echo "${ECHO_T}$ac_header_preproc" >&6; }
20421
20422 # So?  What about this header?
20423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20424   yes:no: )
20425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20429     ac_header_preproc=yes
20430     ;;
20431   no:yes:* )
20432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20444     ( cat <<\_ASBOX
20445 ## ---------------------------------------- ##
20446 ## Report this to konn@users.sourceforge.jp ##
20447 ## ---------------------------------------- ##
20448 _ASBOX
20449      ) | sed "s/^/$as_me: WARNING:     /" >&2
20450     ;;
20451 esac
20452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457   eval "$as_ac_Header=\$ac_header_preproc"
20458 fi
20459 ac_res=`eval echo '${'$as_ac_Header'}'`
20460                { echo "$as_me:$LINENO: result: $ac_res" >&5
20461 echo "${ECHO_T}$ac_res" >&6; }
20462
20463 fi
20464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20465   cat >>confdefs.h <<_ACEOF
20466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20467 _ACEOF
20468
20469 fi
20470
20471 done
20472
20473 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20474
20475
20476 for ac_header in apr_shm.h apr_global_mutex.h
20477 do
20478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20480   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 fi
20485 ac_res=`eval echo '${'$as_ac_Header'}'`
20486                { echo "$as_me:$LINENO: result: $ac_res" >&5
20487 echo "${ECHO_T}$ac_res" >&6; }
20488 else
20489   # Is the header compilable?
20490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499 #include <$ac_header>
20500 _ACEOF
20501 rm -f conftest.$ac_objext
20502 if { (ac_try="$ac_compile"
20503 case "(($ac_try" in
20504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505   *) ac_try_echo=$ac_try;;
20506 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508   (eval "$ac_compile") 2>conftest.er1
20509   ac_status=$?
20510   grep -v '^ *+' conftest.er1 >conftest.err
20511   rm -f conftest.er1
20512   cat conftest.err >&5
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); } && {
20515          test -z "$ac_c_werror_flag" ||
20516          test ! -s conftest.err
20517        } && test -s conftest.$ac_objext; then
20518   ac_header_compiler=yes
20519 else
20520   echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523         ac_header_compiler=no
20524 fi
20525
20526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20528 echo "${ECHO_T}$ac_header_compiler" >&6; }
20529
20530 # Is the header present?
20531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539 #include <$ac_header>
20540 _ACEOF
20541 if { (ac_try="$ac_cpp conftest.$ac_ext"
20542 case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } >/dev/null && {
20554          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20555          test ! -s conftest.err
20556        }; then
20557   ac_header_preproc=yes
20558 else
20559   echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20561
20562   ac_header_preproc=no
20563 fi
20564
20565 rm -f conftest.err conftest.$ac_ext
20566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20567 echo "${ECHO_T}$ac_header_preproc" >&6; }
20568
20569 # So?  What about this header?
20570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20571   yes:no: )
20572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20576     ac_header_preproc=yes
20577     ;;
20578   no:yes:* )
20579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20591     ( cat <<\_ASBOX
20592 ## ---------------------------------------- ##
20593 ## Report this to konn@users.sourceforge.jp ##
20594 ## ---------------------------------------- ##
20595 _ASBOX
20596      ) | sed "s/^/$as_me: WARNING:     /" >&2
20597     ;;
20598 esac
20599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20602   echo $ECHO_N "(cached) $ECHO_C" >&6
20603 else
20604   eval "$as_ac_Header=\$ac_header_preproc"
20605 fi
20606 ac_res=`eval echo '${'$as_ac_Header'}'`
20607                { echo "$as_me:$LINENO: result: $ac_res" >&5
20608 echo "${ECHO_T}$ac_res" >&6; }
20609
20610 fi
20611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20612   cat >>confdefs.h <<_ACEOF
20613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20614 _ACEOF
20615
20616 fi
20617
20618 done
20619
20620
20621 for ac_header in apr.h
20622 do
20623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20625   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 fi
20630 ac_res=`eval echo '${'$as_ac_Header'}'`
20631                { echo "$as_me:$LINENO: result: $ac_res" >&5
20632 echo "${ECHO_T}$ac_res" >&6; }
20633 else
20634   # Is the header compilable?
20635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20637 cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 $ac_includes_default
20644 #include <$ac_header>
20645 _ACEOF
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653   (eval "$ac_compile") 2>conftest.er1
20654   ac_status=$?
20655   grep -v '^ *+' conftest.er1 >conftest.err
20656   rm -f conftest.er1
20657   cat conftest.err >&5
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); } && {
20660          test -z "$ac_c_werror_flag" ||
20661          test ! -s conftest.err
20662        } && test -s conftest.$ac_objext; then
20663   ac_header_compiler=yes
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668         ac_header_compiler=no
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20673 echo "${ECHO_T}$ac_header_compiler" >&6; }
20674
20675 # Is the header present?
20676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 #include <$ac_header>
20685 _ACEOF
20686 if { (ac_try="$ac_cpp conftest.$ac_ext"
20687 case "(($ac_try" in
20688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689   *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20693   ac_status=$?
20694   grep -v '^ *+' conftest.er1 >conftest.err
20695   rm -f conftest.er1
20696   cat conftest.err >&5
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } >/dev/null && {
20699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20700          test ! -s conftest.err
20701        }; then
20702   ac_header_preproc=yes
20703 else
20704   echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707   ac_header_preproc=no
20708 fi
20709
20710 rm -f conftest.err conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20712 echo "${ECHO_T}$ac_header_preproc" >&6; }
20713
20714 # So?  What about this header?
20715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20716   yes:no: )
20717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20721     ac_header_preproc=yes
20722     ;;
20723   no:yes:* )
20724     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20726     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20727 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20728     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20730     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20731 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20734     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20736     ( cat <<\_ASBOX
20737 ## ---------------------------------------- ##
20738 ## Report this to konn@users.sourceforge.jp ##
20739 ## ---------------------------------------- ##
20740 _ASBOX
20741      ) | sed "s/^/$as_me: WARNING:     /" >&2
20742     ;;
20743 esac
20744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20747   echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749   eval "$as_ac_Header=\$ac_header_preproc"
20750 fi
20751 ac_res=`eval echo '${'$as_ac_Header'}'`
20752                { echo "$as_me:$LINENO: result: $ac_res" >&5
20753 echo "${ECHO_T}$ac_res" >&6; }
20754
20755 fi
20756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20757   cat >>confdefs.h <<_ACEOF
20758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20759 _ACEOF
20760
20761 fi
20762
20763 done
20764
20765
20766 for ac_header in ap_config.h
20767 do
20768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20770   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20773   echo $ECHO_N "(cached) $ECHO_C" >&6
20774 fi
20775 ac_res=`eval echo '${'$as_ac_Header'}'`
20776                { echo "$as_me:$LINENO: result: $ac_res" >&5
20777 echo "${ECHO_T}$ac_res" >&6; }
20778 else
20779   # Is the header compilable?
20780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788 $ac_includes_default
20789 #include <$ac_header>
20790 _ACEOF
20791 rm -f conftest.$ac_objext
20792 if { (ac_try="$ac_compile"
20793 case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_compile") 2>conftest.er1
20799   ac_status=$?
20800   grep -v '^ *+' conftest.er1 >conftest.err
20801   rm -f conftest.er1
20802   cat conftest.err >&5
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } && {
20805          test -z "$ac_c_werror_flag" ||
20806          test ! -s conftest.err
20807        } && test -s conftest.$ac_objext; then
20808   ac_header_compiler=yes
20809 else
20810   echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813         ac_header_compiler=no
20814 fi
20815
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20818 echo "${ECHO_T}$ac_header_compiler" >&6; }
20819
20820 # Is the header present?
20821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20823 cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829 #include <$ac_header>
20830 _ACEOF
20831 if { (ac_try="$ac_cpp conftest.$ac_ext"
20832 case "(($ac_try" in
20833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834   *) ac_try_echo=$ac_try;;
20835 esac
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20838   ac_status=$?
20839   grep -v '^ *+' conftest.er1 >conftest.err
20840   rm -f conftest.er1
20841   cat conftest.err >&5
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } >/dev/null && {
20844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20845          test ! -s conftest.err
20846        }; then
20847   ac_header_preproc=yes
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852   ac_header_preproc=no
20853 fi
20854
20855 rm -f conftest.err conftest.$ac_ext
20856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20857 echo "${ECHO_T}$ac_header_preproc" >&6; }
20858
20859 # So?  What about this header?
20860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20861   yes:no: )
20862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20866     ac_header_preproc=yes
20867     ;;
20868   no:yes:* )
20869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20881     ( cat <<\_ASBOX
20882 ## ---------------------------------------- ##
20883 ## Report this to konn@users.sourceforge.jp ##
20884 ## ---------------------------------------- ##
20885 _ASBOX
20886      ) | sed "s/^/$as_me: WARNING:     /" >&2
20887     ;;
20888 esac
20889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20892   echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894   eval "$as_ac_Header=\$ac_header_preproc"
20895 fi
20896 ac_res=`eval echo '${'$as_ac_Header'}'`
20897                { echo "$as_me:$LINENO: result: $ac_res" >&5
20898 echo "${ECHO_T}$ac_res" >&6; }
20899
20900 fi
20901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20902   cat >>confdefs.h <<_ACEOF
20903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20904 _ACEOF
20905
20906 fi
20907
20908 done
20909
20910
20911 for ac_header in ap_regex.h
20912 do
20913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20915   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20918   echo $ECHO_N "(cached) $ECHO_C" >&6
20919 fi
20920 ac_res=`eval echo '${'$as_ac_Header'}'`
20921                { echo "$as_me:$LINENO: result: $ac_res" >&5
20922 echo "${ECHO_T}$ac_res" >&6; }
20923 else
20924   # Is the header compilable?
20925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20927 cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h.  */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h.  */
20933 $ac_includes_default
20934 #include <$ac_header>
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940   *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943   (eval "$ac_compile") 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } && {
20950          test -z "$ac_c_werror_flag" ||
20951          test ! -s conftest.err
20952        } && test -s conftest.$ac_objext; then
20953   ac_header_compiler=yes
20954 else
20955   echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958         ac_header_compiler=no
20959 fi
20960
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20963 echo "${ECHO_T}$ac_header_compiler" >&6; }
20964
20965 # Is the header present?
20966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <$ac_header>
20975 _ACEOF
20976 if { (ac_try="$ac_cpp conftest.$ac_ext"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } >/dev/null && {
20989          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20990          test ! -s conftest.err
20991        }; then
20992   ac_header_preproc=yes
20993 else
20994   echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997   ac_header_preproc=no
20998 fi
20999
21000 rm -f conftest.err conftest.$ac_ext
21001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21002 echo "${ECHO_T}$ac_header_preproc" >&6; }
21003
21004 # So?  What about this header?
21005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21006   yes:no: )
21007     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21011     ac_header_preproc=yes
21012     ;;
21013   no:yes:* )
21014     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21016     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21017 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21018     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21020     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21021 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21024     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21026     ( cat <<\_ASBOX
21027 ## ---------------------------------------- ##
21028 ## Report this to konn@users.sourceforge.jp ##
21029 ## ---------------------------------------- ##
21030 _ASBOX
21031      ) | sed "s/^/$as_me: WARNING:     /" >&2
21032     ;;
21033 esac
21034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21037   echo $ECHO_N "(cached) $ECHO_C" >&6
21038 else
21039   eval "$as_ac_Header=\$ac_header_preproc"
21040 fi
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042                { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21044
21045 fi
21046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21047   cat >>confdefs.h <<_ACEOF
21048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21049 _ACEOF
21050  use_pcre_flag="no"
21051 else
21052   use_pcre_flag="yes"
21053 fi
21054
21055 done
21056
21057
21058 for ac_header in libgen.h
21059 do
21060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21062   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 fi
21067 ac_res=`eval echo '${'$as_ac_Header'}'`
21068                { echo "$as_me:$LINENO: result: $ac_res" >&5
21069 echo "${ECHO_T}$ac_res" >&6; }
21070 else
21071   # Is the header compilable?
21072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 $ac_includes_default
21081 #include <$ac_header>
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087   *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090   (eval "$ac_compile") 2>conftest.er1
21091   ac_status=$?
21092   grep -v '^ *+' conftest.er1 >conftest.err
21093   rm -f conftest.er1
21094   cat conftest.err >&5
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } && {
21097          test -z "$ac_c_werror_flag" ||
21098          test ! -s conftest.err
21099        } && test -s conftest.$ac_objext; then
21100   ac_header_compiler=yes
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105         ac_header_compiler=no
21106 fi
21107
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21110 echo "${ECHO_T}$ac_header_compiler" >&6; }
21111
21112 # Is the header present?
21113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21114 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
21122 _ACEOF
21123 if { (ac_try="$ac_cpp conftest.$ac_ext"
21124 case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21130   ac_status=$?
21131   grep -v '^ *+' conftest.er1 >conftest.err
21132   rm -f conftest.er1
21133   cat conftest.err >&5
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); } >/dev/null && {
21136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21137          test ! -s conftest.err
21138        }; then
21139   ac_header_preproc=yes
21140 else
21141   echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144   ac_header_preproc=no
21145 fi
21146
21147 rm -f conftest.err conftest.$ac_ext
21148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21149 echo "${ECHO_T}$ac_header_preproc" >&6; }
21150
21151 # So?  What about this header?
21152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21153   yes:no: )
21154     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21158     ac_header_preproc=yes
21159     ;;
21160   no:yes:* )
21161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21163     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21164 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21165     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21167     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21168 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21171     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21173     ( cat <<\_ASBOX
21174 ## ---------------------------------------- ##
21175 ## Report this to konn@users.sourceforge.jp ##
21176 ## ---------------------------------------- ##
21177 _ASBOX
21178      ) | sed "s/^/$as_me: WARNING:     /" >&2
21179     ;;
21180 esac
21181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186   eval "$as_ac_Header=\$ac_header_preproc"
21187 fi
21188 ac_res=`eval echo '${'$as_ac_Header'}'`
21189                { echo "$as_me:$LINENO: result: $ac_res" >&5
21190 echo "${ECHO_T}$ac_res" >&6; }
21191
21192 fi
21193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21194   cat >>confdefs.h <<_ACEOF
21195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21196 _ACEOF
21197
21198 fi
21199
21200 done
21201
21202 if test "x$use_pcre_flag" = "xyes" ; then
21203   if test "x$with_pcre_config" = "x" ; then
21204     # Extract the first word of "pcre-config", so it can be a program name with args.
21205 set dummy pcre-config; ac_word=$2
21206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21208 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211   case $PCRE_CONFIG in
21212   [\\/]* | ?:[\\/]*)
21213   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21214   ;;
21215   *)
21216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21217 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21218 for as_dir in $as_dummy
21219 do
21220   IFS=$as_save_IFS
21221   test -z "$as_dir" && as_dir=.
21222   for ac_exec_ext in '' $ac_executable_extensions; do
21223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21224     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21226     break 2
21227   fi
21228 done
21229 done
21230 IFS=$as_save_IFS
21231
21232   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21233   ;;
21234 esac
21235 fi
21236 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21237 if test -n "$PCRE_CONFIG"; then
21238   { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21239 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21240 else
21241   { echo "$as_me:$LINENO: result: no" >&5
21242 echo "${ECHO_T}no" >&6; }
21243 fi
21244
21245
21246     if test "x$PCRE_CONFIG" = "xno" ; then
21247       # Extract the first word of "pcre-1-config", so it can be a program name with args.
21248 set dummy pcre-1-config; ac_word=$2
21249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21251 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254   case $PCRE_1_CONFIG in
21255   [\\/]* | ?:[\\/]*)
21256   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21257   ;;
21258   *)
21259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21260 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21261 for as_dir in $as_dummy
21262 do
21263   IFS=$as_save_IFS
21264   test -z "$as_dir" && as_dir=.
21265   for ac_exec_ext in '' $ac_executable_extensions; do
21266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21267     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21269     break 2
21270   fi
21271 done
21272 done
21273 IFS=$as_save_IFS
21274
21275   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21276   ;;
21277 esac
21278 fi
21279 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21280 if test -n "$PCRE_1_CONFIG"; then
21281   { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21282 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21283 else
21284   { echo "$as_me:$LINENO: result: no" >&5
21285 echo "${ECHO_T}no" >&6; }
21286 fi
21287
21288
21289       if test "x$PCRE_1_CONFIG" = "xno" ; then
21290         { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21291 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21292    { (exit 1); exit 1; }; }
21293       else
21294         PCRE_CONFIG="$PCRE_1_CONFIG"
21295       fi
21296     fi
21297   fi
21298   if test "x$with_pcre_config" != "x" ; then
21299     PCRE_CONFIG=$with_pcre_config
21300   fi
21301   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21302 else
21303
21304 cat >>confdefs.h <<\_ACEOF
21305 #define HAVE_AP_REGEX_H 1
21306 _ACEOF
21307
21308 fi
21309
21310 # Checks for typedefs, structures, and compiler characteristics.
21311 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21312 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21313 if test "${ac_cv_c_const+set}" = set; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316   cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322
21323 int
21324 main ()
21325 {
21326 /* FIXME: Include the comments suggested by Paul. */
21327 #ifndef __cplusplus
21328   /* Ultrix mips cc rejects this.  */
21329   typedef int charset[2];
21330   const charset cs;
21331   /* SunOS 4.1.1 cc rejects this.  */
21332   char const *const *pcpcc;
21333   char **ppc;
21334   /* NEC SVR4.0.2 mips cc rejects this.  */
21335   struct point {int x, y;};
21336   static struct point const zero = {0,0};
21337   /* AIX XL C 1.02.0.0 rejects this.
21338      It does not let you subtract one const X* pointer from another in
21339      an arm of an if-expression whose if-part is not a constant
21340      expression */
21341   const char *g = "string";
21342   pcpcc = &g + (g ? g-g : 0);
21343   /* HPUX 7.0 cc rejects these. */
21344   ++pcpcc;
21345   ppc = (char**) pcpcc;
21346   pcpcc = (char const *const *) ppc;
21347   { /* SCO 3.2v4 cc rejects this.  */
21348     char *t;
21349     char const *s = 0 ? (char *) 0 : (char const *) 0;
21350
21351     *t++ = 0;
21352     if (s) return 0;
21353   }
21354   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21355     int x[] = {25, 17};
21356     const int *foo = &x[0];
21357     ++foo;
21358   }
21359   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21360     typedef const int *iptr;
21361     iptr p = 0;
21362     ++p;
21363   }
21364   { /* AIX XL C 1.02.0.0 rejects this saying
21365        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21366     struct s { int j; const int *ap[3]; };
21367     struct s *b; b->j = 5;
21368   }
21369   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21370     const int foo = 10;
21371     if (!foo) return 0;
21372   }
21373   return !cs[0] && !zero.x;
21374 #endif
21375
21376   ;
21377   return 0;
21378 }
21379 _ACEOF
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384   *) ac_try_echo=$ac_try;;
21385 esac
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387   (eval "$ac_compile") 2>conftest.er1
21388   ac_status=$?
21389   grep -v '^ *+' conftest.er1 >conftest.err
21390   rm -f conftest.er1
21391   cat conftest.err >&5
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); } && {
21394          test -z "$ac_c_werror_flag" ||
21395          test ! -s conftest.err
21396        } && test -s conftest.$ac_objext; then
21397   ac_cv_c_const=yes
21398 else
21399   echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21401
21402         ac_cv_c_const=no
21403 fi
21404
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406 fi
21407 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21408 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21409 if test $ac_cv_c_const = no; then
21410
21411 cat >>confdefs.h <<\_ACEOF
21412 #define const
21413 _ACEOF
21414
21415 fi
21416
21417
21418 # Checks for library functions.
21419
21420 for ac_header in stdlib.h
21421 do
21422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427   echo $ECHO_N "(cached) $ECHO_C" >&6
21428 fi
21429 ac_res=`eval echo '${'$as_ac_Header'}'`
21430                { echo "$as_me:$LINENO: result: $ac_res" >&5
21431 echo "${ECHO_T}$ac_res" >&6; }
21432 else
21433   # Is the header compilable?
21434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21435 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
21443 #include <$ac_header>
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_compile") 2>conftest.er1
21453   ac_status=$?
21454   grep -v '^ *+' conftest.er1 >conftest.err
21455   rm -f conftest.er1
21456   cat conftest.err >&5
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); } && {
21459          test -z "$ac_c_werror_flag" ||
21460          test ! -s conftest.err
21461        } && test -s conftest.$ac_objext; then
21462   ac_header_compiler=yes
21463 else
21464   echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467         ac_header_compiler=no
21468 fi
21469
21470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21472 echo "${ECHO_T}$ac_header_compiler" >&6; }
21473
21474 # Is the header present?
21475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483 #include <$ac_header>
21484 _ACEOF
21485 if { (ac_try="$ac_cpp conftest.$ac_ext"
21486 case "(($ac_try" in
21487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488   *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } >/dev/null && {
21498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499          test ! -s conftest.err
21500        }; then
21501   ac_header_preproc=yes
21502 else
21503   echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506   ac_header_preproc=no
21507 fi
21508
21509 rm -f conftest.err conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511 echo "${ECHO_T}$ac_header_preproc" >&6; }
21512
21513 # So?  What about this header?
21514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515   yes:no: )
21516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21520     ac_header_preproc=yes
21521     ;;
21522   no:yes:* )
21523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21535     ( cat <<\_ASBOX
21536 ## ---------------------------------------- ##
21537 ## Report this to konn@users.sourceforge.jp ##
21538 ## ---------------------------------------- ##
21539 _ASBOX
21540      ) | sed "s/^/$as_me: WARNING:     /" >&2
21541     ;;
21542 esac
21543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21546   echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548   eval "$as_ac_Header=\$ac_header_preproc"
21549 fi
21550 ac_res=`eval echo '${'$as_ac_Header'}'`
21551                { echo "$as_me:$LINENO: result: $ac_res" >&5
21552 echo "${ECHO_T}$ac_res" >&6; }
21553
21554 fi
21555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21556   cat >>confdefs.h <<_ACEOF
21557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21558 _ACEOF
21559
21560 fi
21561
21562 done
21563
21564 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21565 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21566 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21567   echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569   if test "$cross_compiling" = yes; then
21570   ac_cv_func_malloc_0_nonnull=no
21571 else
21572   cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h.  */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h.  */
21578 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21579 # include <stdlib.h>
21580 #else
21581 char *malloc ();
21582 #endif
21583
21584 int
21585 main ()
21586 {
21587 return ! malloc (0);
21588   ;
21589   return 0;
21590 }
21591 _ACEOF
21592 rm -f conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596   *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599   (eval "$ac_link") 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21603   { (case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_try") 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; }; then
21612   ac_cv_func_malloc_0_nonnull=yes
21613 else
21614   echo "$as_me: program exited with status $ac_status" >&5
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618 ( exit $ac_status )
21619 ac_cv_func_malloc_0_nonnull=no
21620 fi
21621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21622 fi
21623
21624
21625 fi
21626 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21627 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21628 if test $ac_cv_func_malloc_0_nonnull = yes; then
21629
21630 cat >>confdefs.h <<\_ACEOF
21631 #define HAVE_MALLOC 1
21632 _ACEOF
21633
21634 else
21635   cat >>confdefs.h <<\_ACEOF
21636 #define HAVE_MALLOC 0
21637 _ACEOF
21638
21639    case " $LIBOBJS " in
21640   *" malloc.$ac_objext "* ) ;;
21641   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21642  ;;
21643 esac
21644
21645
21646 cat >>confdefs.h <<\_ACEOF
21647 #define malloc rpl_malloc
21648 _ACEOF
21649
21650 fi
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21663 do
21664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21668   echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670   cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21678 #define $ac_func innocuous_$ac_func
21679
21680 /* System header to define __stub macros and hopefully few prototypes,
21681     which can conflict with char $ac_func (); below.
21682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21683     <limits.h> exists even on freestanding compilers.  */
21684
21685 #ifdef __STDC__
21686 # include <limits.h>
21687 #else
21688 # include <assert.h>
21689 #endif
21690
21691 #undef $ac_func
21692
21693 /* Override any GCC internal prototype to avoid an error.
21694    Use char because int might match the return type of a GCC
21695    builtin and then its argument prototype would still apply.  */
21696 #ifdef __cplusplus
21697 extern "C"
21698 #endif
21699 char $ac_func ();
21700 /* The GNU C library defines this for functions which it implements
21701     to always fail with ENOSYS.  Some functions are actually named
21702     something starting with __ and the normal name is an alias.  */
21703 #if defined __stub_$ac_func || defined __stub___$ac_func
21704 choke me
21705 #endif
21706
21707 int
21708 main ()
21709 {
21710 return $ac_func ();
21711   ;
21712   return 0;
21713 }
21714 _ACEOF
21715 rm -f conftest.$ac_objext conftest$ac_exeext
21716 if { (ac_try="$ac_link"
21717 case "(($ac_try" in
21718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719   *) ac_try_echo=$ac_try;;
21720 esac
21721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722   (eval "$ac_link") 2>conftest.er1
21723   ac_status=$?
21724   grep -v '^ *+' conftest.er1 >conftest.err
21725   rm -f conftest.er1
21726   cat conftest.err >&5
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); } && {
21729          test -z "$ac_c_werror_flag" ||
21730          test ! -s conftest.err
21731        } && test -s conftest$ac_exeext &&
21732        $as_test_x conftest$ac_exeext; then
21733   eval "$as_ac_var=yes"
21734 else
21735   echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738         eval "$as_ac_var=no"
21739 fi
21740
21741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21742       conftest$ac_exeext conftest.$ac_ext
21743 fi
21744 ac_res=`eval echo '${'$as_ac_var'}'`
21745                { echo "$as_me:$LINENO: result: $ac_res" >&5
21746 echo "${ECHO_T}$ac_res" >&6; }
21747 if test `eval echo '${'$as_ac_var'}'` = yes; then
21748   cat >>confdefs.h <<_ACEOF
21749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21750 _ACEOF
21751
21752 fi
21753 done
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765 ac_config_files="$ac_config_files Makefile src/Makefile support/centos/mod-chxj.spec"
21766
21767 cat >confcache <<\_ACEOF
21768 # This file is a shell script that caches the results of configure
21769 # tests run on this system so they can be shared between configure
21770 # scripts and configure runs, see configure's option --config-cache.
21771 # It is not useful on other systems.  If it contains results you don't
21772 # want to keep, you may remove or edit it.
21773 #
21774 # config.status only pays attention to the cache file if you give it
21775 # the --recheck option to rerun configure.
21776 #
21777 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21779 # following values.
21780
21781 _ACEOF
21782
21783 # The following way of writing the cache mishandles newlines in values,
21784 # but we know of no workaround that is simple, portable, and efficient.
21785 # So, we kill variables containing newlines.
21786 # Ultrix sh set writes to stderr and can't be redirected directly,
21787 # and sets the high bit in the cache file unless we assign to the vars.
21788 (
21789   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21790     eval ac_val=\$$ac_var
21791     case $ac_val in #(
21792     *${as_nl}*)
21793       case $ac_var in #(
21794       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21795 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21796       esac
21797       case $ac_var in #(
21798       _ | IFS | as_nl) ;; #(
21799       *) $as_unset $ac_var ;;
21800       esac ;;
21801     esac
21802   done
21803
21804   (set) 2>&1 |
21805     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21806     *${as_nl}ac_space=\ *)
21807       # `set' does not quote correctly, so add quotes (double-quote
21808       # substitution turns \\\\ into \\, and sed turns \\ into \).
21809       sed -n \
21810         "s/'/'\\\\''/g;
21811           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21812       ;; #(
21813     *)
21814       # `set' quotes correctly as required by POSIX, so do not add quotes.
21815       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21816       ;;
21817     esac |
21818     sort
21819 ) |
21820   sed '
21821      /^ac_cv_env_/b end
21822      t clear
21823      :clear
21824      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21825      t end
21826      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21827      :end' >>confcache
21828 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21829   if test -w "$cache_file"; then
21830     test "x$cache_file" != "x/dev/null" &&
21831       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21832 echo "$as_me: updating cache $cache_file" >&6;}
21833     cat confcache >$cache_file
21834   else
21835     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21836 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21837   fi
21838 fi
21839 rm -f confcache
21840
21841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21842 # Let make expand exec_prefix.
21843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21844
21845 DEFS=-DHAVE_CONFIG_H
21846
21847 ac_libobjs=
21848 ac_ltlibobjs=
21849 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21850   # 1. Remove the extension, and $U if already installed.
21851   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21852   ac_i=`echo "$ac_i" | sed "$ac_script"`
21853   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21854   #    will be set to the directory where LIBOBJS objects are built.
21855   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21856   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21857 done
21858 LIBOBJS=$ac_libobjs
21859
21860 LTLIBOBJS=$ac_ltlibobjs
21861
21862
21863 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21864   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21865 Usually this means the macro was only invoked conditionally." >&5
21866 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21867 Usually this means the macro was only invoked conditionally." >&2;}
21868    { (exit 1); exit 1; }; }
21869 fi
21870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21871   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21872 Usually this means the macro was only invoked conditionally." >&5
21873 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21874 Usually this means the macro was only invoked conditionally." >&2;}
21875    { (exit 1); exit 1; }; }
21876 fi
21877 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21878   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21879 Usually this means the macro was only invoked conditionally." >&5
21880 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21881 Usually this means the macro was only invoked conditionally." >&2;}
21882    { (exit 1); exit 1; }; }
21883 fi
21884
21885 : ${CONFIG_STATUS=./config.status}
21886 ac_clean_files_save=$ac_clean_files
21887 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21888 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21889 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21890 cat >$CONFIG_STATUS <<_ACEOF
21891 #! $SHELL
21892 # Generated by $as_me.
21893 # Run this file to recreate the current configuration.
21894 # Compiler output produced by configure, useful for debugging
21895 # configure, is in config.log if it exists.
21896
21897 debug=false
21898 ac_cs_recheck=false
21899 ac_cs_silent=false
21900 SHELL=\${CONFIG_SHELL-$SHELL}
21901 _ACEOF
21902
21903 cat >>$CONFIG_STATUS <<\_ACEOF
21904 ## --------------------- ##
21905 ## M4sh Initialization.  ##
21906 ## --------------------- ##
21907
21908 # Be more Bourne compatible
21909 DUALCASE=1; export DUALCASE # for MKS sh
21910 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21911   emulate sh
21912   NULLCMD=:
21913   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21914   # is contrary to our usage.  Disable this feature.
21915   alias -g '${1+"$@"}'='"$@"'
21916   setopt NO_GLOB_SUBST
21917 else
21918   case `(set -o) 2>/dev/null` in
21919   *posix*) set -o posix ;;
21920 esac
21921
21922 fi
21923
21924
21925
21926
21927 # PATH needs CR
21928 # Avoid depending upon Character Ranges.
21929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21932 as_cr_digits='0123456789'
21933 as_cr_alnum=$as_cr_Letters$as_cr_digits
21934
21935 # The user is always right.
21936 if test "${PATH_SEPARATOR+set}" != set; then
21937   echo "#! /bin/sh" >conf$$.sh
21938   echo  "exit 0"   >>conf$$.sh
21939   chmod +x conf$$.sh
21940   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21941     PATH_SEPARATOR=';'
21942   else
21943     PATH_SEPARATOR=:
21944   fi
21945   rm -f conf$$.sh
21946 fi
21947
21948 # Support unset when possible.
21949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21950   as_unset=unset
21951 else
21952   as_unset=false
21953 fi
21954
21955
21956 # IFS
21957 # We need space, tab and new line, in precisely that order.  Quoting is
21958 # there to prevent editors from complaining about space-tab.
21959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21960 # splitting by setting IFS to empty value.)
21961 as_nl='
21962 '
21963 IFS=" ""        $as_nl"
21964
21965 # Find who we are.  Look in the path if we contain no directory separator.
21966 case $0 in
21967   *[\\/]* ) as_myself=$0 ;;
21968   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21969 for as_dir in $PATH
21970 do
21971   IFS=$as_save_IFS
21972   test -z "$as_dir" && as_dir=.
21973   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21974 done
21975 IFS=$as_save_IFS
21976
21977      ;;
21978 esac
21979 # We did not find ourselves, most probably we were run as `sh COMMAND'
21980 # in which case we are not to be found in the path.
21981 if test "x$as_myself" = x; then
21982   as_myself=$0
21983 fi
21984 if test ! -f "$as_myself"; then
21985   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21986   { (exit 1); exit 1; }
21987 fi
21988
21989 # Work around bugs in pre-3.0 UWIN ksh.
21990 for as_var in ENV MAIL MAILPATH
21991 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21992 done
21993 PS1='$ '
21994 PS2='> '
21995 PS4='+ '
21996
21997 # NLS nuisances.
21998 for as_var in \
21999   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22000   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22001   LC_TELEPHONE LC_TIME
22002 do
22003   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22004     eval $as_var=C; export $as_var
22005   else
22006     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22007   fi
22008 done
22009
22010 # Required to use basename.
22011 if expr a : '\(a\)' >/dev/null 2>&1 &&
22012    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22013   as_expr=expr
22014 else
22015   as_expr=false
22016 fi
22017
22018 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22019   as_basename=basename
22020 else
22021   as_basename=false
22022 fi
22023
22024
22025 # Name of the executable.
22026 as_me=`$as_basename -- "$0" ||
22027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22028          X"$0" : 'X\(//\)$' \| \
22029          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22030 echo X/"$0" |
22031     sed '/^.*\/\([^/][^/]*\)\/*$/{
22032             s//\1/
22033             q
22034           }
22035           /^X\/\(\/\/\)$/{
22036             s//\1/
22037             q
22038           }
22039           /^X\/\(\/\).*/{
22040             s//\1/
22041             q
22042           }
22043           s/.*/./; q'`
22044
22045 # CDPATH.
22046 $as_unset CDPATH
22047
22048
22049
22050   as_lineno_1=$LINENO
22051   as_lineno_2=$LINENO
22052   test "x$as_lineno_1" != "x$as_lineno_2" &&
22053   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22054
22055   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22056   # uniformly replaced by the line number.  The first 'sed' inserts a
22057   # line-number line after each line using $LINENO; the second 'sed'
22058   # does the real work.  The second script uses 'N' to pair each
22059   # line-number line with the line containing $LINENO, and appends
22060   # trailing '-' during substitution so that $LINENO is not a special
22061   # case at line end.
22062   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22063   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22064   # E. McMahon (1931-1989) for sed's syntax.  :-)
22065   sed -n '
22066     p
22067     /[$]LINENO/=
22068   ' <$as_myself |
22069     sed '
22070       s/[$]LINENO.*/&-/
22071       t lineno
22072       b
22073       :lineno
22074       N
22075       :loop
22076       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22077       t loop
22078       s/-\n.*//
22079     ' >$as_me.lineno &&
22080   chmod +x "$as_me.lineno" ||
22081     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22082    { (exit 1); exit 1; }; }
22083
22084   # Don't try to exec as it changes $[0], causing all sort of problems
22085   # (the dirname of $[0] is not the place where we might find the
22086   # original and so on.  Autoconf is especially sensitive to this).
22087   . "./$as_me.lineno"
22088   # Exit status is that of the last command.
22089   exit
22090 }
22091
22092
22093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22094   as_dirname=dirname
22095 else
22096   as_dirname=false
22097 fi
22098
22099 ECHO_C= ECHO_N= ECHO_T=
22100 case `echo -n x` in
22101 -n*)
22102   case `echo 'x\c'` in
22103   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22104   *)   ECHO_C='\c';;
22105   esac;;
22106 *)
22107   ECHO_N='-n';;
22108 esac
22109
22110 if expr a : '\(a\)' >/dev/null 2>&1 &&
22111    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22112   as_expr=expr
22113 else
22114   as_expr=false
22115 fi
22116
22117 rm -f conf$$ conf$$.exe conf$$.file
22118 if test -d conf$$.dir; then
22119   rm -f conf$$.dir/conf$$.file
22120 else
22121   rm -f conf$$.dir
22122   mkdir conf$$.dir
22123 fi
22124 echo >conf$$.file
22125 if ln -s conf$$.file conf$$ 2>/dev/null; then
22126   as_ln_s='ln -s'
22127   # ... but there are two gotchas:
22128   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22129   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22130   # In both cases, we have to default to `cp -p'.
22131   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22132     as_ln_s='cp -p'
22133 elif ln conf$$.file conf$$ 2>/dev/null; then
22134   as_ln_s=ln
22135 else
22136   as_ln_s='cp -p'
22137 fi
22138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22139 rmdir conf$$.dir 2>/dev/null
22140
22141 if mkdir -p . 2>/dev/null; then
22142   as_mkdir_p=:
22143 else
22144   test -d ./-p && rmdir ./-p
22145   as_mkdir_p=false
22146 fi
22147
22148 if test -x / >/dev/null 2>&1; then
22149   as_test_x='test -x'
22150 else
22151   if ls -dL / >/dev/null 2>&1; then
22152     as_ls_L_option=L
22153   else
22154     as_ls_L_option=
22155   fi
22156   as_test_x='
22157     eval sh -c '\''
22158       if test -d "$1"; then
22159         test -d "$1/.";
22160       else
22161         case $1 in
22162         -*)set "./$1";;
22163         esac;
22164         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22165         ???[sx]*):;;*)false;;esac;fi
22166     '\'' sh
22167   '
22168 fi
22169 as_executable_p=$as_test_x
22170
22171 # Sed expression to map a string onto a valid CPP name.
22172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22173
22174 # Sed expression to map a string onto a valid variable name.
22175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22176
22177
22178 exec 6>&1
22179
22180 # Save the log message, to keep $[0] and so on meaningful, and to
22181 # report actual input values of CONFIG_FILES etc. instead of their
22182 # values after options handling.
22183 ac_log="
22184 This file was extended by mod_chxj $as_me 0.13.0-rc, which was
22185 generated by GNU Autoconf 2.61.  Invocation command line was
22186
22187   CONFIG_FILES    = $CONFIG_FILES
22188   CONFIG_HEADERS  = $CONFIG_HEADERS
22189   CONFIG_LINKS    = $CONFIG_LINKS
22190   CONFIG_COMMANDS = $CONFIG_COMMANDS
22191   $ $0 $@
22192
22193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22194 "
22195
22196 _ACEOF
22197
22198 cat >>$CONFIG_STATUS <<_ACEOF
22199 # Files that config.status was made for.
22200 config_files="$ac_config_files"
22201 config_headers="$ac_config_headers"
22202 config_commands="$ac_config_commands"
22203
22204 _ACEOF
22205
22206 cat >>$CONFIG_STATUS <<\_ACEOF
22207 ac_cs_usage="\
22208 \`$as_me' instantiates files from templates according to the
22209 current configuration.
22210
22211 Usage: $0 [OPTIONS] [FILE]...
22212
22213   -h, --help       print this help, then exit
22214   -V, --version    print version number and configuration settings, then exit
22215   -q, --quiet      do not print progress messages
22216   -d, --debug      don't remove temporary files
22217       --recheck    update $as_me by reconfiguring in the same conditions
22218   --file=FILE[:TEMPLATE]
22219                    instantiate the configuration file FILE
22220   --header=FILE[:TEMPLATE]
22221                    instantiate the configuration header FILE
22222
22223 Configuration files:
22224 $config_files
22225
22226 Configuration headers:
22227 $config_headers
22228
22229 Configuration commands:
22230 $config_commands
22231
22232 Report bugs to <bug-autoconf@gnu.org>."
22233
22234 _ACEOF
22235 cat >>$CONFIG_STATUS <<_ACEOF
22236 ac_cs_version="\\
22237 mod_chxj config.status 0.13.0-rc
22238 configured by $0, generated by GNU Autoconf 2.61,
22239   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22240
22241 Copyright (C) 2006 Free Software Foundation, Inc.
22242 This config.status script is free software; the Free Software Foundation
22243 gives unlimited permission to copy, distribute and modify it."
22244
22245 ac_pwd='$ac_pwd'
22246 srcdir='$srcdir'
22247 INSTALL='$INSTALL'
22248 MKDIR_P='$MKDIR_P'
22249 _ACEOF
22250
22251 cat >>$CONFIG_STATUS <<\_ACEOF
22252 # If no file are specified by the user, then we need to provide default
22253 # value.  By we need to know if files were specified by the user.
22254 ac_need_defaults=:
22255 while test $# != 0
22256 do
22257   case $1 in
22258   --*=*)
22259     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22260     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22261     ac_shift=:
22262     ;;
22263   *)
22264     ac_option=$1
22265     ac_optarg=$2
22266     ac_shift=shift
22267     ;;
22268   esac
22269
22270   case $ac_option in
22271   # Handling of the options.
22272   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22273     ac_cs_recheck=: ;;
22274   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22275     echo "$ac_cs_version"; exit ;;
22276   --debug | --debu | --deb | --de | --d | -d )
22277     debug=: ;;
22278   --file | --fil | --fi | --f )
22279     $ac_shift
22280     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22281     ac_need_defaults=false;;
22282   --header | --heade | --head | --hea )
22283     $ac_shift
22284     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22285     ac_need_defaults=false;;
22286   --he | --h)
22287     # Conflict between --help and --header
22288     { echo "$as_me: error: ambiguous option: $1
22289 Try \`$0 --help' for more information." >&2
22290    { (exit 1); exit 1; }; };;
22291   --help | --hel | -h )
22292     echo "$ac_cs_usage"; exit ;;
22293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22294   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22295     ac_cs_silent=: ;;
22296
22297   # This is an error.
22298   -*) { echo "$as_me: error: unrecognized option: $1
22299 Try \`$0 --help' for more information." >&2
22300    { (exit 1); exit 1; }; } ;;
22301
22302   *) ac_config_targets="$ac_config_targets $1"
22303      ac_need_defaults=false ;;
22304
22305   esac
22306   shift
22307 done
22308
22309 ac_configure_extra_args=
22310
22311 if $ac_cs_silent; then
22312   exec 6>/dev/null
22313   ac_configure_extra_args="$ac_configure_extra_args --silent"
22314 fi
22315
22316 _ACEOF
22317 cat >>$CONFIG_STATUS <<_ACEOF
22318 if \$ac_cs_recheck; then
22319   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22320   CONFIG_SHELL=$SHELL
22321   export CONFIG_SHELL
22322   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22323 fi
22324
22325 _ACEOF
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22327 exec 5>>config.log
22328 {
22329   echo
22330   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22331 ## Running $as_me. ##
22332 _ASBOX
22333   echo "$ac_log"
22334 } >&5
22335
22336 _ACEOF
22337 cat >>$CONFIG_STATUS <<_ACEOF
22338 #
22339 # INIT-COMMANDS
22340 #
22341 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22342
22343 _ACEOF
22344
22345 cat >>$CONFIG_STATUS <<\_ACEOF
22346
22347 # Handling of arguments.
22348 for ac_config_target in $ac_config_targets
22349 do
22350   case $ac_config_target in
22351     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22352     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22353     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22354     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22355     "support/centos/mod-chxj.spec") CONFIG_FILES="$CONFIG_FILES support/centos/mod-chxj.spec" ;;
22356
22357   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22358 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22359    { (exit 1); exit 1; }; };;
22360   esac
22361 done
22362
22363
22364 # If the user did not use the arguments to specify the items to instantiate,
22365 # then the envvar interface is used.  Set only those that are not.
22366 # We use the long form for the default assignment because of an extremely
22367 # bizarre bug on SunOS 4.1.3.
22368 if $ac_need_defaults; then
22369   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22370   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22371   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22372 fi
22373
22374 # Have a temporary directory for convenience.  Make it in the build tree
22375 # simply because there is no reason against having it here, and in addition,
22376 # creating and moving files from /tmp can sometimes cause problems.
22377 # Hook for its removal unless debugging.
22378 # Note that there is a small window in which the directory will not be cleaned:
22379 # after its creation but before its name has been assigned to `$tmp'.
22380 $debug ||
22381 {
22382   tmp=
22383   trap 'exit_status=$?
22384   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22385 ' 0
22386   trap '{ (exit 1); exit 1; }' 1 2 13 15
22387 }
22388 # Create a (secure) tmp directory for tmp files.
22389
22390 {
22391   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22392   test -n "$tmp" && test -d "$tmp"
22393 }  ||
22394 {
22395   tmp=./conf$$-$RANDOM
22396   (umask 077 && mkdir "$tmp")
22397 } ||
22398 {
22399    echo "$me: cannot create a temporary directory in ." >&2
22400    { (exit 1); exit 1; }
22401 }
22402
22403 #
22404 # Set up the sed scripts for CONFIG_FILES section.
22405 #
22406
22407 # No need to generate the scripts if there are no CONFIG_FILES.
22408 # This happens for instance when ./config.status config.h
22409 if test -n "$CONFIG_FILES"; then
22410
22411 _ACEOF
22412
22413
22414
22415 ac_delim='%!_!# '
22416 for ac_last_try in false false false false false :; do
22417   cat >conf$$subs.sed <<_ACEOF
22418 SHELL!$SHELL$ac_delim
22419 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22420 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22421 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22422 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22423 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22424 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22425 exec_prefix!$exec_prefix$ac_delim
22426 prefix!$prefix$ac_delim
22427 program_transform_name!$program_transform_name$ac_delim
22428 bindir!$bindir$ac_delim
22429 sbindir!$sbindir$ac_delim
22430 libexecdir!$libexecdir$ac_delim
22431 datarootdir!$datarootdir$ac_delim
22432 datadir!$datadir$ac_delim
22433 sysconfdir!$sysconfdir$ac_delim
22434 sharedstatedir!$sharedstatedir$ac_delim
22435 localstatedir!$localstatedir$ac_delim
22436 includedir!$includedir$ac_delim
22437 oldincludedir!$oldincludedir$ac_delim
22438 docdir!$docdir$ac_delim
22439 infodir!$infodir$ac_delim
22440 htmldir!$htmldir$ac_delim
22441 dvidir!$dvidir$ac_delim
22442 pdfdir!$pdfdir$ac_delim
22443 psdir!$psdir$ac_delim
22444 libdir!$libdir$ac_delim
22445 localedir!$localedir$ac_delim
22446 mandir!$mandir$ac_delim
22447 DEFS!$DEFS$ac_delim
22448 ECHO_C!$ECHO_C$ac_delim
22449 ECHO_N!$ECHO_N$ac_delim
22450 ECHO_T!$ECHO_T$ac_delim
22451 LIBS!$LIBS$ac_delim
22452 build_alias!$build_alias$ac_delim
22453 host_alias!$host_alias$ac_delim
22454 target_alias!$target_alias$ac_delim
22455 build!$build$ac_delim
22456 build_cpu!$build_cpu$ac_delim
22457 build_vendor!$build_vendor$ac_delim
22458 build_os!$build_os$ac_delim
22459 host!$host$ac_delim
22460 host_cpu!$host_cpu$ac_delim
22461 host_vendor!$host_vendor$ac_delim
22462 host_os!$host_os$ac_delim
22463 target!$target$ac_delim
22464 target_cpu!$target_cpu$ac_delim
22465 target_vendor!$target_vendor$ac_delim
22466 target_os!$target_os$ac_delim
22467 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22468 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22469 INSTALL_DATA!$INSTALL_DATA$ac_delim
22470 am__isrc!$am__isrc$ac_delim
22471 CYGPATH_W!$CYGPATH_W$ac_delim
22472 PACKAGE!$PACKAGE$ac_delim
22473 VERSION!$VERSION$ac_delim
22474 ACLOCAL!$ACLOCAL$ac_delim
22475 AUTOCONF!$AUTOCONF$ac_delim
22476 AUTOMAKE!$AUTOMAKE$ac_delim
22477 AUTOHEADER!$AUTOHEADER$ac_delim
22478 MAKEINFO!$MAKEINFO$ac_delim
22479 install_sh!$install_sh$ac_delim
22480 STRIP!$STRIP$ac_delim
22481 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22482 mkdir_p!$mkdir_p$ac_delim
22483 AWK!$AWK$ac_delim
22484 SET_MAKE!$SET_MAKE$ac_delim
22485 am__leading_dot!$am__leading_dot$ac_delim
22486 AMTAR!$AMTAR$ac_delim
22487 am__tar!$am__tar$ac_delim
22488 am__untar!$am__untar$ac_delim
22489 CC!$CC$ac_delim
22490 CFLAGS!$CFLAGS$ac_delim
22491 LDFLAGS!$LDFLAGS$ac_delim
22492 CPPFLAGS!$CPPFLAGS$ac_delim
22493 ac_ct_CC!$ac_ct_CC$ac_delim
22494 EXEEXT!$EXEEXT$ac_delim
22495 OBJEXT!$OBJEXT$ac_delim
22496 DEPDIR!$DEPDIR$ac_delim
22497 am__include!$am__include$ac_delim
22498 am__quote!$am__quote$ac_delim
22499 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22500 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22501 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22502 CCDEPMODE!$CCDEPMODE$ac_delim
22503 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22504 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22505 GREP!$GREP$ac_delim
22506 EGREP!$EGREP$ac_delim
22507 LN_S!$LN_S$ac_delim
22508 ECHO!$ECHO$ac_delim
22509 AR!$AR$ac_delim
22510 RANLIB!$RANLIB$ac_delim
22511 CPP!$CPP$ac_delim
22512 CXX!$CXX$ac_delim
22513 CXXFLAGS!$CXXFLAGS$ac_delim
22514 ac_ct_CXX!$ac_ct_CXX$ac_delim
22515 _ACEOF
22516
22517   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22518     break
22519   elif $ac_last_try; then
22520     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22522    { (exit 1); exit 1; }; }
22523   else
22524     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22525   fi
22526 done
22527
22528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22529 if test -n "$ac_eof"; then
22530   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22531   ac_eof=`expr $ac_eof + 1`
22532 fi
22533
22534 cat >>$CONFIG_STATUS <<_ACEOF
22535 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22537 _ACEOF
22538 sed '
22539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22540 s/^/s,@/; s/!/@,|#_!!_#|/
22541 :n
22542 t n
22543 s/'"$ac_delim"'$/,g/; t
22544 s/$/\\/; p
22545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22546 ' >>$CONFIG_STATUS <conf$$subs.sed
22547 rm -f conf$$subs.sed
22548 cat >>$CONFIG_STATUS <<_ACEOF
22549 CEOF$ac_eof
22550 _ACEOF
22551
22552
22553 ac_delim='%!_!# '
22554 for ac_last_try in false false false false false :; do
22555   cat >conf$$subs.sed <<_ACEOF
22556 CXXDEPMODE!$CXXDEPMODE$ac_delim
22557 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22558 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22559 CXXCPP!$CXXCPP$ac_delim
22560 F77!$F77$ac_delim
22561 FFLAGS!$FFLAGS$ac_delim
22562 ac_ct_F77!$ac_ct_F77$ac_delim
22563 LIBTOOL!$LIBTOOL$ac_delim
22564 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22565 APXS2!$APXS2$ac_delim
22566 APXS!$APXS$ac_delim
22567 WAND_CONFIG!$WAND_CONFIG$ac_delim
22568 APR_CONFIG!$APR_CONFIG$ac_delim
22569 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22570 APU_CONFIG!$APU_CONFIG$ac_delim
22571 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22572 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22573 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22574 LIBOBJS!$LIBOBJS$ac_delim
22575 with_apache_header!$with_apache_header$ac_delim
22576 QDEFS!$QDEFS$ac_delim
22577 DDEFS!$DDEFS$ac_delim
22578 OPENSSL_PATH!$OPENSSL_PATH$ac_delim
22579 LTLIBOBJS!$LTLIBOBJS$ac_delim
22580 _ACEOF
22581
22582   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
22583     break
22584   elif $ac_last_try; then
22585     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22587    { (exit 1); exit 1; }; }
22588   else
22589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22590   fi
22591 done
22592
22593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22594 if test -n "$ac_eof"; then
22595   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22596   ac_eof=`expr $ac_eof + 1`
22597 fi
22598
22599 cat >>$CONFIG_STATUS <<_ACEOF
22600 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22602 _ACEOF
22603 sed '
22604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22605 s/^/s,@/; s/!/@,|#_!!_#|/
22606 :n
22607 t n
22608 s/'"$ac_delim"'$/,g/; t
22609 s/$/\\/; p
22610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22611 ' >>$CONFIG_STATUS <conf$$subs.sed
22612 rm -f conf$$subs.sed
22613 cat >>$CONFIG_STATUS <<_ACEOF
22614 :end
22615 s/|#_!!_#|//g
22616 CEOF$ac_eof
22617 _ACEOF
22618
22619
22620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22622 # trailing colons and then remove the whole line if VPATH becomes empty
22623 # (actually we leave an empty line to preserve line numbers).
22624 if test "x$srcdir" = x.; then
22625   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22626 s/:*\$(srcdir):*/:/
22627 s/:*\${srcdir}:*/:/
22628 s/:*@srcdir@:*/:/
22629 s/^\([^=]*=[     ]*\):*/\1/
22630 s/:*$//
22631 s/^[^=]*=[       ]*$//
22632 }'
22633 fi
22634
22635 cat >>$CONFIG_STATUS <<\_ACEOF
22636 fi # test -n "$CONFIG_FILES"
22637
22638
22639 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22640 do
22641   case $ac_tag in
22642   :[FHLC]) ac_mode=$ac_tag; continue;;
22643   esac
22644   case $ac_mode$ac_tag in
22645   :[FHL]*:*);;
22646   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22647 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22648    { (exit 1); exit 1; }; };;
22649   :[FH]-) ac_tag=-:-;;
22650   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22651   esac
22652   ac_save_IFS=$IFS
22653   IFS=:
22654   set x $ac_tag
22655   IFS=$ac_save_IFS
22656   shift
22657   ac_file=$1
22658   shift
22659
22660   case $ac_mode in
22661   :L) ac_source=$1;;
22662   :[FH])
22663     ac_file_inputs=
22664     for ac_f
22665     do
22666       case $ac_f in
22667       -) ac_f="$tmp/stdin";;
22668       *) # Look for the file first in the build tree, then in the source tree
22669          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22670          # because $ac_f cannot contain `:'.
22671          test -f "$ac_f" ||
22672            case $ac_f in
22673            [\\/$]*) false;;
22674            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22675            esac ||
22676            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22677 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22678    { (exit 1); exit 1; }; };;
22679       esac
22680       ac_file_inputs="$ac_file_inputs $ac_f"
22681     done
22682
22683     # Let's still pretend it is `configure' which instantiates (i.e., don't
22684     # use $as_me), people would be surprised to read:
22685     #    /* config.h.  Generated by config.status.  */
22686     configure_input="Generated from "`IFS=:
22687           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22688     if test x"$ac_file" != x-; then
22689       configure_input="$ac_file.  $configure_input"
22690       { echo "$as_me:$LINENO: creating $ac_file" >&5
22691 echo "$as_me: creating $ac_file" >&6;}
22692     fi
22693
22694     case $ac_tag in
22695     *:-:* | *:-) cat >"$tmp/stdin";;
22696     esac
22697     ;;
22698   esac
22699
22700   ac_dir=`$as_dirname -- "$ac_file" ||
22701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22702          X"$ac_file" : 'X\(//\)[^/]' \| \
22703          X"$ac_file" : 'X\(//\)$' \| \
22704          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22705 echo X"$ac_file" |
22706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22707             s//\1/
22708             q
22709           }
22710           /^X\(\/\/\)[^/].*/{
22711             s//\1/
22712             q
22713           }
22714           /^X\(\/\/\)$/{
22715             s//\1/
22716             q
22717           }
22718           /^X\(\/\).*/{
22719             s//\1/
22720             q
22721           }
22722           s/.*/./; q'`
22723   { as_dir="$ac_dir"
22724   case $as_dir in #(
22725   -*) as_dir=./$as_dir;;
22726   esac
22727   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22728     as_dirs=
22729     while :; do
22730       case $as_dir in #(
22731       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22732       *) as_qdir=$as_dir;;
22733       esac
22734       as_dirs="'$as_qdir' $as_dirs"
22735       as_dir=`$as_dirname -- "$as_dir" ||
22736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22737          X"$as_dir" : 'X\(//\)[^/]' \| \
22738          X"$as_dir" : 'X\(//\)$' \| \
22739          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22740 echo X"$as_dir" |
22741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22742             s//\1/
22743             q
22744           }
22745           /^X\(\/\/\)[^/].*/{
22746             s//\1/
22747             q
22748           }
22749           /^X\(\/\/\)$/{
22750             s//\1/
22751             q
22752           }
22753           /^X\(\/\).*/{
22754             s//\1/
22755             q
22756           }
22757           s/.*/./; q'`
22758       test -d "$as_dir" && break
22759     done
22760     test -z "$as_dirs" || eval "mkdir $as_dirs"
22761   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22762 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22763    { (exit 1); exit 1; }; }; }
22764   ac_builddir=.
22765
22766 case "$ac_dir" in
22767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22768 *)
22769   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22770   # A ".." for each directory in $ac_dir_suffix.
22771   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22772   case $ac_top_builddir_sub in
22773   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22774   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22775   esac ;;
22776 esac
22777 ac_abs_top_builddir=$ac_pwd
22778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22779 # for backward compatibility:
22780 ac_top_builddir=$ac_top_build_prefix
22781
22782 case $srcdir in
22783   .)  # We are building in place.
22784     ac_srcdir=.
22785     ac_top_srcdir=$ac_top_builddir_sub
22786     ac_abs_top_srcdir=$ac_pwd ;;
22787   [\\/]* | ?:[\\/]* )  # Absolute name.
22788     ac_srcdir=$srcdir$ac_dir_suffix;
22789     ac_top_srcdir=$srcdir
22790     ac_abs_top_srcdir=$srcdir ;;
22791   *) # Relative name.
22792     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22793     ac_top_srcdir=$ac_top_build_prefix$srcdir
22794     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22795 esac
22796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22797
22798
22799   case $ac_mode in
22800   :F)
22801   #
22802   # CONFIG_FILE
22803   #
22804
22805   case $INSTALL in
22806   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22807   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22808   esac
22809   ac_MKDIR_P=$MKDIR_P
22810   case $MKDIR_P in
22811   [\\/$]* | ?:[\\/]* ) ;;
22812   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22813   esac
22814 _ACEOF
22815
22816 cat >>$CONFIG_STATUS <<\_ACEOF
22817 # If the template does not know about datarootdir, expand it.
22818 # FIXME: This hack should be removed a few years after 2.60.
22819 ac_datarootdir_hack=; ac_datarootdir_seen=
22820
22821 case `sed -n '/datarootdir/ {
22822   p
22823   q
22824 }
22825 /@datadir@/p
22826 /@docdir@/p
22827 /@infodir@/p
22828 /@localedir@/p
22829 /@mandir@/p
22830 ' $ac_file_inputs` in
22831 *datarootdir*) ac_datarootdir_seen=yes;;
22832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22833   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22834 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22835 _ACEOF
22836 cat >>$CONFIG_STATUS <<_ACEOF
22837   ac_datarootdir_hack='
22838   s&@datadir@&$datadir&g
22839   s&@docdir@&$docdir&g
22840   s&@infodir@&$infodir&g
22841   s&@localedir@&$localedir&g
22842   s&@mandir@&$mandir&g
22843     s&\\\${datarootdir}&$datarootdir&g' ;;
22844 esac
22845 _ACEOF
22846
22847 # Neutralize VPATH when `$srcdir' = `.'.
22848 # Shell code in configure.ac might set extrasub.
22849 # FIXME: do we really want to maintain this feature?
22850 cat >>$CONFIG_STATUS <<_ACEOF
22851   sed "$ac_vpsub
22852 $extrasub
22853 _ACEOF
22854 cat >>$CONFIG_STATUS <<\_ACEOF
22855 :t
22856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22857 s&@configure_input@&$configure_input&;t t
22858 s&@top_builddir@&$ac_top_builddir_sub&;t t
22859 s&@srcdir@&$ac_srcdir&;t t
22860 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22861 s&@top_srcdir@&$ac_top_srcdir&;t t
22862 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22863 s&@builddir@&$ac_builddir&;t t
22864 s&@abs_builddir@&$ac_abs_builddir&;t t
22865 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22866 s&@INSTALL@&$ac_INSTALL&;t t
22867 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22868 $ac_datarootdir_hack
22869 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22870
22871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22872   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22873   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22874   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22875 which seems to be undefined.  Please make sure it is defined." >&5
22876 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22877 which seems to be undefined.  Please make sure it is defined." >&2;}
22878
22879   rm -f "$tmp/stdin"
22880   case $ac_file in
22881   -) cat "$tmp/out"; rm -f "$tmp/out";;
22882   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22883   esac
22884  ;;
22885   :H)
22886   #
22887   # CONFIG_HEADER
22888   #
22889 _ACEOF
22890
22891 # Transform confdefs.h into a sed script `conftest.defines', that
22892 # substitutes the proper values into config.h.in to produce config.h.
22893 rm -f conftest.defines conftest.tail
22894 # First, append a space to every undef/define line, to ease matching.
22895 echo 's/$/ /' >conftest.defines
22896 # Then, protect against being on the right side of a sed subst, or in
22897 # an unquoted here document, in config.status.  If some macros were
22898 # called several times there might be several #defines for the same
22899 # symbol, which is useless.  But do not sort them, since the last
22900 # AC_DEFINE must be honored.
22901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22902 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22903 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22904 # PARAMS is the parameter list in the macro definition--in most cases, it's
22905 # just an empty string.
22906 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22907 ac_dB='\\)[      (].*,\\1define\\2'
22908 ac_dC=' '
22909 ac_dD=' ,'
22910
22911 uniq confdefs.h |
22912   sed -n '
22913         t rset
22914         :rset
22915         s/^[     ]*#[    ]*define[       ][      ]*//
22916         t ok
22917         d
22918         :ok
22919         s/[\\&,]/\\&/g
22920         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22921         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22922   ' >>conftest.defines
22923
22924 # Remove the space that was appended to ease matching.
22925 # Then replace #undef with comments.  This is necessary, for
22926 # example, in the case of _POSIX_SOURCE, which is predefined and required
22927 # on some systems where configure will not decide to define it.
22928 # (The regexp can be short, since the line contains either #define or #undef.)
22929 echo 's/ $//
22930 s,^[     #]*u.*,/* & */,' >>conftest.defines
22931
22932 # Break up conftest.defines:
22933 ac_max_sed_lines=50
22934
22935 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22936 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22937 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22938 # et cetera.
22939 ac_in='$ac_file_inputs'
22940 ac_out='"$tmp/out1"'
22941 ac_nxt='"$tmp/out2"'
22942
22943 while :
22944 do
22945   # Write a here document:
22946     cat >>$CONFIG_STATUS <<_ACEOF
22947     # First, check the format of the line:
22948     cat >"\$tmp/defines.sed" <<\\CEOF
22949 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22950 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22951 b
22952 :def
22953 _ACEOF
22954   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22955   echo 'CEOF
22956     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22957   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22958   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22959   grep . conftest.tail >/dev/null || break
22960   rm -f conftest.defines
22961   mv conftest.tail conftest.defines
22962 done
22963 rm -f conftest.defines conftest.tail
22964
22965 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22966 cat >>$CONFIG_STATUS <<\_ACEOF
22967   if test x"$ac_file" != x-; then
22968     echo "/* $configure_input  */" >"$tmp/config.h"
22969     cat "$ac_result" >>"$tmp/config.h"
22970     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22971       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22972 echo "$as_me: $ac_file is unchanged" >&6;}
22973     else
22974       rm -f $ac_file
22975       mv "$tmp/config.h" $ac_file
22976     fi
22977   else
22978     echo "/* $configure_input  */"
22979     cat "$ac_result"
22980   fi
22981   rm -f "$tmp/out12"
22982 # Compute $ac_file's index in $config_headers.
22983 _am_stamp_count=1
22984 for _am_header in $config_headers :; do
22985   case $_am_header in
22986     $ac_file | $ac_file:* )
22987       break ;;
22988     * )
22989       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22990   esac
22991 done
22992 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22993 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22994          X$ac_file : 'X\(//\)[^/]' \| \
22995          X$ac_file : 'X\(//\)$' \| \
22996          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22997 echo X$ac_file |
22998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22999             s//\1/
23000             q
23001           }
23002           /^X\(\/\/\)[^/].*/{
23003             s//\1/
23004             q
23005           }
23006           /^X\(\/\/\)$/{
23007             s//\1/
23008             q
23009           }
23010           /^X\(\/\).*/{
23011             s//\1/
23012             q
23013           }
23014           s/.*/./; q'`/stamp-h$_am_stamp_count
23015  ;;
23016
23017   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23018 echo "$as_me: executing $ac_file commands" >&6;}
23019  ;;
23020   esac
23021
23022
23023   case $ac_file$ac_mode in
23024     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23025   # Strip MF so we end up with the name of the file.
23026   mf=`echo "$mf" | sed -e 's/:.*$//'`
23027   # Check whether this is an Automake generated Makefile or not.
23028   # We used to match only the files named `Makefile.in', but
23029   # some people rename them; so instead we look at the file content.
23030   # Grep'ing the first line is not enough: some people post-process
23031   # each Makefile.in and add a new line on top of each file to say so.
23032   # Grep'ing the whole file is not good either: AIX grep has a line
23033   # limit of 2048, but all sed's we know have understand at least 4000.
23034   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23035     dirpart=`$as_dirname -- "$mf" ||
23036 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23037          X"$mf" : 'X\(//\)[^/]' \| \
23038          X"$mf" : 'X\(//\)$' \| \
23039          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23040 echo X"$mf" |
23041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23042             s//\1/
23043             q
23044           }
23045           /^X\(\/\/\)[^/].*/{
23046             s//\1/
23047             q
23048           }
23049           /^X\(\/\/\)$/{
23050             s//\1/
23051             q
23052           }
23053           /^X\(\/\).*/{
23054             s//\1/
23055             q
23056           }
23057           s/.*/./; q'`
23058   else
23059     continue
23060   fi
23061   # Extract the definition of DEPDIR, am__include, and am__quote
23062   # from the Makefile without running `make'.
23063   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23064   test -z "$DEPDIR" && continue
23065   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23066   test -z "am__include" && continue
23067   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23068   # When using ansi2knr, U may be empty or an underscore; expand it
23069   U=`sed -n 's/^U = //p' < "$mf"`
23070   # Find all dependency output files, they are included files with
23071   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23072   # simplest approach to changing $(DEPDIR) to its actual value in the
23073   # expansion.
23074   for file in `sed -n "
23075     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23076        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23077     # Make sure the directory exists.
23078     test -f "$dirpart/$file" && continue
23079     fdir=`$as_dirname -- "$file" ||
23080 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23081          X"$file" : 'X\(//\)[^/]' \| \
23082          X"$file" : 'X\(//\)$' \| \
23083          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23084 echo X"$file" |
23085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23086             s//\1/
23087             q
23088           }
23089           /^X\(\/\/\)[^/].*/{
23090             s//\1/
23091             q
23092           }
23093           /^X\(\/\/\)$/{
23094             s//\1/
23095             q
23096           }
23097           /^X\(\/\).*/{
23098             s//\1/
23099             q
23100           }
23101           s/.*/./; q'`
23102     { as_dir=$dirpart/$fdir
23103   case $as_dir in #(
23104   -*) as_dir=./$as_dir;;
23105   esac
23106   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23107     as_dirs=
23108     while :; do
23109       case $as_dir in #(
23110       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23111       *) as_qdir=$as_dir;;
23112       esac
23113       as_dirs="'$as_qdir' $as_dirs"
23114       as_dir=`$as_dirname -- "$as_dir" ||
23115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23116          X"$as_dir" : 'X\(//\)[^/]' \| \
23117          X"$as_dir" : 'X\(//\)$' \| \
23118          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23119 echo X"$as_dir" |
23120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23121             s//\1/
23122             q
23123           }
23124           /^X\(\/\/\)[^/].*/{
23125             s//\1/
23126             q
23127           }
23128           /^X\(\/\/\)$/{
23129             s//\1/
23130             q
23131           }
23132           /^X\(\/\).*/{
23133             s//\1/
23134             q
23135           }
23136           s/.*/./; q'`
23137       test -d "$as_dir" && break
23138     done
23139     test -z "$as_dirs" || eval "mkdir $as_dirs"
23140   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23141 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23142    { (exit 1); exit 1; }; }; }
23143     # echo "creating $dirpart/$file"
23144     echo '# dummy' > "$dirpart/$file"
23145   done
23146 done
23147  ;;
23148
23149   esac
23150 done # for ac_tag
23151
23152
23153 { (exit 0); exit 0; }
23154 _ACEOF
23155 chmod +x $CONFIG_STATUS
23156 ac_clean_files=$ac_clean_files_save
23157
23158
23159 # configure is writing to config.log, and then calls config.status.
23160 # config.status does its own redirection, appending to config.log.
23161 # Unfortunately, on DOS this fails, as config.log is still kept open
23162 # by configure, so config.status won't be able to write to it; its
23163 # output is simply discarded.  So we exec the FD to /dev/null,
23164 # effectively closing config.log, so it can be properly (re)opened and
23165 # appended to by config.status.  When coming back to configure, we
23166 # need to make the FD available again.
23167 if test "$no_create" != yes; then
23168   ac_cs_success=:
23169   ac_config_status_args=
23170   test "$silent" = yes &&
23171     ac_config_status_args="$ac_config_status_args --quiet"
23172   exec 5>/dev/null
23173   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23174   exec 5>>config.log
23175   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23176   # would make configure fail if this is the last instruction.
23177   $ac_cs_success || { (exit 1); exit 1; }
23178 fi
23179