OSDN Git Service

* version up.
[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.12.27.
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.12.27'
732 PACKAGE_STRING='mod_chxj 0.12.27'
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 LTLIBOBJS'
892 ac_subst_files=''
893       ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CPP
902 CXX
903 CXXFLAGS
904 CCC
905 CXXCPP
906 F77
907 FFLAGS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960   # If the previous option needs an argument, assign it.
961   if test -n "$ac_prev"; then
962     eval $ac_prev=\$ac_option
963     ac_prev=
964     continue
965   fi
966
967   case $ac_option in
968   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969   *)    ac_optarg=yes ;;
970   esac
971
972   # Accept the important Cygnus configure options, so we can diagnose typos.
973
974   case $ac_dashdash$ac_option in
975   --)
976     ac_dashdash=yes ;;
977
978   -bindir | --bindir | --bindi | --bind | --bin | --bi)
979     ac_prev=bindir ;;
980   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981     bindir=$ac_optarg ;;
982
983   -build | --build | --buil | --bui | --bu)
984     ac_prev=build_alias ;;
985   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986     build_alias=$ac_optarg ;;
987
988   -cache-file | --cache-file | --cache-fil | --cache-fi \
989   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990     ac_prev=cache_file ;;
991   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993     cache_file=$ac_optarg ;;
994
995   --config-cache | -C)
996     cache_file=config.cache ;;
997
998   -datadir | --datadir | --datadi | --datad)
999     ac_prev=datadir ;;
1000   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001     datadir=$ac_optarg ;;
1002
1003   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004   | --dataroo | --dataro | --datar)
1005     ac_prev=datarootdir ;;
1006   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008     datarootdir=$ac_optarg ;;
1009
1010   -disable-* | --disable-*)
1011     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017     eval enable_$ac_feature=no ;;
1018
1019   -docdir | --docdir | --docdi | --doc | --do)
1020     ac_prev=docdir ;;
1021   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022     docdir=$ac_optarg ;;
1023
1024   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025     ac_prev=dvidir ;;
1026   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027     dvidir=$ac_optarg ;;
1028
1029   -enable-* | --enable-*)
1030     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036     eval enable_$ac_feature=\$ac_optarg ;;
1037
1038   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040   | --exec | --exe | --ex)
1041     ac_prev=exec_prefix ;;
1042   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044   | --exec=* | --exe=* | --ex=*)
1045     exec_prefix=$ac_optarg ;;
1046
1047   -gas | --gas | --ga | --g)
1048     # Obsolete; use --with-gas.
1049     with_gas=yes ;;
1050
1051   -help | --help | --hel | --he | -h)
1052     ac_init_help=long ;;
1053   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054     ac_init_help=recursive ;;
1055   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056     ac_init_help=short ;;
1057
1058   -host | --host | --hos | --ho)
1059     ac_prev=host_alias ;;
1060   -host=* | --host=* | --hos=* | --ho=*)
1061     host_alias=$ac_optarg ;;
1062
1063   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064     ac_prev=htmldir ;;
1065   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066   | --ht=*)
1067     htmldir=$ac_optarg ;;
1068
1069   -includedir | --includedir | --includedi | --included | --include \
1070   | --includ | --inclu | --incl | --inc)
1071     ac_prev=includedir ;;
1072   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073   | --includ=* | --inclu=* | --incl=* | --inc=*)
1074     includedir=$ac_optarg ;;
1075
1076   -infodir | --infodir | --infodi | --infod | --info | --inf)
1077     ac_prev=infodir ;;
1078   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079     infodir=$ac_optarg ;;
1080
1081   -libdir | --libdir | --libdi | --libd)
1082     ac_prev=libdir ;;
1083   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084     libdir=$ac_optarg ;;
1085
1086   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087   | --libexe | --libex | --libe)
1088     ac_prev=libexecdir ;;
1089   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090   | --libexe=* | --libex=* | --libe=*)
1091     libexecdir=$ac_optarg ;;
1092
1093   -localedir | --localedir | --localedi | --localed | --locale)
1094     ac_prev=localedir ;;
1095   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096     localedir=$ac_optarg ;;
1097
1098   -localstatedir | --localstatedir | --localstatedi | --localstated \
1099   | --localstate | --localstat | --localsta | --localst | --locals)
1100     ac_prev=localstatedir ;;
1101   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103     localstatedir=$ac_optarg ;;
1104
1105   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106     ac_prev=mandir ;;
1107   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108     mandir=$ac_optarg ;;
1109
1110   -nfp | --nfp | --nf)
1111     # Obsolete; use --without-fp.
1112     with_fp=no ;;
1113
1114   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115   | --no-cr | --no-c | -n)
1116     no_create=yes ;;
1117
1118   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120     no_recursion=yes ;;
1121
1122   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124   | --oldin | --oldi | --old | --ol | --o)
1125     ac_prev=oldincludedir ;;
1126   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129     oldincludedir=$ac_optarg ;;
1130
1131   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132     ac_prev=prefix ;;
1133   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134     prefix=$ac_optarg ;;
1135
1136   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137   | --program-pre | --program-pr | --program-p)
1138     ac_prev=program_prefix ;;
1139   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141     program_prefix=$ac_optarg ;;
1142
1143   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144   | --program-suf | --program-su | --program-s)
1145     ac_prev=program_suffix ;;
1146   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148     program_suffix=$ac_optarg ;;
1149
1150   -program-transform-name | --program-transform-name \
1151   | --program-transform-nam | --program-transform-na \
1152   | --program-transform-n | --program-transform- \
1153   | --program-transform | --program-transfor \
1154   | --program-transfo | --program-transf \
1155   | --program-trans | --program-tran \
1156   | --progr-tra | --program-tr | --program-t)
1157     ac_prev=program_transform_name ;;
1158   -program-transform-name=* | --program-transform-name=* \
1159   | --program-transform-nam=* | --program-transform-na=* \
1160   | --program-transform-n=* | --program-transform-=* \
1161   | --program-transform=* | --program-transfor=* \
1162   | --program-transfo=* | --program-transf=* \
1163   | --program-trans=* | --program-tran=* \
1164   | --progr-tra=* | --program-tr=* | --program-t=*)
1165     program_transform_name=$ac_optarg ;;
1166
1167   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168     ac_prev=pdfdir ;;
1169   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170     pdfdir=$ac_optarg ;;
1171
1172   -psdir | --psdir | --psdi | --psd | --ps)
1173     ac_prev=psdir ;;
1174   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175     psdir=$ac_optarg ;;
1176
1177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178   | -silent | --silent | --silen | --sile | --sil)
1179     silent=yes ;;
1180
1181   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182     ac_prev=sbindir ;;
1183   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184   | --sbi=* | --sb=*)
1185     sbindir=$ac_optarg ;;
1186
1187   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189   | --sharedst | --shareds | --shared | --share | --shar \
1190   | --sha | --sh)
1191     ac_prev=sharedstatedir ;;
1192   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195   | --sha=* | --sh=*)
1196     sharedstatedir=$ac_optarg ;;
1197
1198   -site | --site | --sit)
1199     ac_prev=site ;;
1200   -site=* | --site=* | --sit=*)
1201     site=$ac_optarg ;;
1202
1203   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204     ac_prev=srcdir ;;
1205   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206     srcdir=$ac_optarg ;;
1207
1208   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209   | --syscon | --sysco | --sysc | --sys | --sy)
1210     ac_prev=sysconfdir ;;
1211   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213     sysconfdir=$ac_optarg ;;
1214
1215   -target | --target | --targe | --targ | --tar | --ta | --t)
1216     ac_prev=target_alias ;;
1217   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218     target_alias=$ac_optarg ;;
1219
1220   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221     verbose=yes ;;
1222
1223   -version | --version | --versio | --versi | --vers | -V)
1224     ac_init_version=: ;;
1225
1226   -with-* | --with-*)
1227     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       { echo "$as_me: error: invalid package name: $ac_package" >&2
1231    { (exit 1); exit 1; }; }
1232     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233     eval with_$ac_package=\$ac_optarg ;;
1234
1235   -without-* | --without-*)
1236     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid package name: $ac_package" >&2
1240    { (exit 1); exit 1; }; }
1241     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242     eval with_$ac_package=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264    { (exit 1); exit 1; }; }
1265     ;;
1266
1267   *=*)
1268     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272    { (exit 1); exit 1; }; }
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   { echo "$as_me: error: missing argument to $ac_option" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 # Be sure to have absolute directory names.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   case $ac_val in
1301     [\\/$]* | ?:[\\/]* )  continue;;
1302     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303   esac
1304   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305    { (exit 1); exit 1; }; }
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317   if test "x$build_alias" = x; then
1318     cross_compiling=maybe
1319     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320     If a cross compiler is detected then cross compile mode will be used." >&2
1321   elif test "x$build_alias" != "x$host_alias"; then
1322     cross_compiling=yes
1323   fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335   { echo "$as_me: error: Working directory cannot be determined" >&2
1336    { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338   { echo "$as_me: error: pwd does not report name of working directory" >&2
1339    { (exit 1); exit 1; }; }
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$0" : 'X\(//\)[^/]' \| \
1349          X"$0" : 'X\(//\)$' \| \
1350          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351 echo X"$0" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379    { (exit 1); exit 1; }; }
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384    { (exit 1); exit 1; }; }
1385         pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388   srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_env_${ac_var}_value=\$${ac_var}
1399   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407   # Omit some internal or obsolete options to make the list less imposing.
1408   # This message is too long to be a string in the A/UX 3.1 sh.
1409   cat <<_ACEOF
1410 \`configure' configures mod_chxj 0.12.27 to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420   -h, --help              display this help and exit
1421       --help=short        display options specific to this package
1422       --help=recursive    display the short help of all the included packages
1423   -V, --version           display version information and exit
1424   -q, --quiet, --silent   do not print \`checking...' messages
1425       --cache-file=FILE   cache test results in FILE [disabled]
1426   -C, --config-cache      alias for \`--cache-file=config.cache'
1427   -n, --no-create         do not create output files
1428       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431   --prefix=PREFIX         install architecture-independent files in PREFIX
1432                           [$ac_default_prefix]
1433   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                           [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444   --bindir=DIR           user executables [EPREFIX/bin]
1445   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1446   --libexecdir=DIR       program executables [EPREFIX/libexec]
1447   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1448   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1449   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1450   --libdir=DIR           object code libraries [EPREFIX/lib]
1451   --includedir=DIR       C header files [PREFIX/include]
1452   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR          info documentation [DATAROOTDIR/info]
1456   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR           man documentation [DATAROOTDIR/man]
1458   --docdir=DIR           documentation root [DATAROOTDIR/doc/mod_chxj]
1459   --htmldir=DIR          html documentation [DOCDIR]
1460   --dvidir=DIR           dvi documentation [DOCDIR]
1461   --pdfdir=DIR           pdf documentation [DOCDIR]
1462   --psdir=DIR            ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 Program names:
1468   --program-prefix=PREFIX            prepend PREFIX to installed program names
1469   --program-suffix=SUFFIX            append SUFFIX to installed program names
1470   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475   --target=TARGET   configure for building compilers for TARGET [HOST]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480   case $ac_init_help in
1481      short | recursive ) echo "Configuration of mod_chxj 0.12.27:";;
1482    esac
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --disable-dependency-tracking  speeds up one-time build
1489   --enable-dependency-tracking   do not reject slow dependency extractors
1490   --enable-shared[=PKGS]  build shared libraries [default=yes]
1491   --enable-static[=PKGS]  build static libraries [default=yes]
1492   --enable-fast-install[=PKGS]
1493                           optimize for fast installation [default=yes]
1494   --disable-libtool-lock  avoid locking (might break parallel builds)
1495   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1496 source by the automatic operation.
1497   --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1498   --enable-memcached-static use static link.
1499   --enable-mysql-cookie    Please specify it when you save Cookie in MySQL.
1500   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1501
1502 Optional Packages:
1503   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1506   --with-pic              try to use only PIC/non-PIC objects [default=use
1507                           both]
1508   --with-tags[=TAGS]      include additional configurations [automatic]
1509   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1510   --with-apxs=ARG Path of apxs program file.
1511   --with-apr-config=ARG  Path of apr-config program file.
1512   --with-apu-config=ARG  Path of apu-config program file.
1513   --with-pcre-config=ARG  Path of pcre-config program file.
1514   --with-memcached-header Path of "memcached.h"
1515   --with-memcached-lib-dir Path of "libmemcached.so"
1516   --with-mysql-header=ARG  Path of "mysql.h"
1517   --with-mysql-lib-dir=ARG Path of libmysqlclient
1518
1519 Some influential environment variables:
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CPP         C preprocessor
1528   CXX         C++ compiler command
1529   CXXFLAGS    C++ compiler flags
1530   CXXCPP      C++ preprocessor
1531   F77         Fortran 77 compiler command
1532   FFLAGS      Fortran 77 compiler flags
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to <konn@users.sourceforge.jp>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543   # If there are subdirs, report their specific --help.
1544   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545     test -d "$ac_dir" || continue
1546     ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1552   # A ".." for each directory in $ac_dir_suffix.
1553   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1554   case $ac_top_builddir_sub in
1555   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557   esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565   .)  # We are building in place.
1566     ac_srcdir=.
1567     ac_top_srcdir=$ac_top_builddir_sub
1568     ac_abs_top_srcdir=$ac_pwd ;;
1569   [\\/]* | ?:[\\/]* )  # Absolute name.
1570     ac_srcdir=$srcdir$ac_dir_suffix;
1571     ac_top_srcdir=$srcdir
1572     ac_abs_top_srcdir=$srcdir ;;
1573   *) # Relative name.
1574     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575     ac_top_srcdir=$ac_top_build_prefix$srcdir
1576     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580     cd "$ac_dir" || { ac_status=$?; continue; }
1581     # Check for guested configure.
1582     if test -f "$ac_srcdir/configure.gnu"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585     elif test -f "$ac_srcdir/configure"; then
1586       echo &&
1587       $SHELL "$ac_srcdir/configure" --help=recursive
1588     else
1589       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590     fi || ac_status=$?
1591     cd "$ac_pwd" || { ac_status=$?; break; }
1592   done
1593 fi
1594
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597   cat <<\_ACEOF
1598 mod_chxj configure 0.12.27
1599 generated by GNU Autoconf 2.61
1600
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608 cat >config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1611
1612 It was created by mod_chxj $as_me 0.12.27, which was
1613 generated by GNU Autoconf 2.61.  Invocation command line was
1614
1615   $ $0 $@
1616
1617 _ACEOF
1618 exec 5>>config.log
1619 {
1620 cat <<_ASUNAME
1621 ## --------- ##
1622 ## Platform. ##
1623 ## --------- ##
1624
1625 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1630
1631 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1633
1634 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1635 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1636 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1638 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1639 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1640 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1641
1642 _ASUNAME
1643
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   echo "PATH: $as_dir"
1650 done
1651 IFS=$as_save_IFS
1652
1653 } >&5
1654
1655 cat >&5 <<_ACEOF
1656
1657
1658 ## ----------- ##
1659 ## Core tests. ##
1660 ## ----------- ##
1661
1662 _ACEOF
1663
1664
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_configure_args=
1671 ac_configure_args0=
1672 ac_configure_args1=
1673 ac_must_keep_next=false
1674 for ac_pass in 1 2
1675 do
1676   for ac_arg
1677   do
1678     case $ac_arg in
1679     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681     | -silent | --silent | --silen | --sile | --sil)
1682       continue ;;
1683     *\'*)
1684       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685     esac
1686     case $ac_pass in
1687     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1688     2)
1689       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690       if test $ac_must_keep_next = true; then
1691         ac_must_keep_next=false # Got value, back to normal.
1692       else
1693         case $ac_arg in
1694           *=* | --config-cache | -C | -disable-* | --disable-* \
1695           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697           | -with-* | --with-* | -without-* | --without-* | --x)
1698             case "$ac_configure_args0 " in
1699               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700             esac
1701             ;;
1702           -* ) ac_must_keep_next=true ;;
1703         esac
1704       fi
1705       ac_configure_args="$ac_configure_args '$ac_arg'"
1706       ;;
1707     esac
1708   done
1709 done
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1712
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log.  We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719   # Save into config.log some information that might help in debugging.
1720   {
1721     echo
1722
1723     cat <<\_ASBOX
1724 ## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##
1727 _ASBOX
1728     echo
1729     # The following way of writing the cache mishandles newlines in values,
1730 (
1731   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732     eval ac_val=\$$ac_var
1733     case $ac_val in #(
1734     *${as_nl}*)
1735       case $ac_var in #(
1736       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1737 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1738       esac
1739       case $ac_var in #(
1740       _ | IFS | as_nl) ;; #(
1741       *) $as_unset $ac_var ;;
1742       esac ;;
1743     esac
1744   done
1745   (set) 2>&1 |
1746     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1747     *${as_nl}ac_space=\ *)
1748       sed -n \
1749         "s/'\''/'\''\\\\'\'''\''/g;
1750           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1751       ;; #(
1752     *)
1753       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754       ;;
1755     esac |
1756     sort
1757 )
1758     echo
1759
1760     cat <<\_ASBOX
1761 ## ----------------- ##
1762 ## Output variables. ##
1763 ## ----------------- ##
1764 _ASBOX
1765     echo
1766     for ac_var in $ac_subst_vars
1767     do
1768       eval ac_val=\$$ac_var
1769       case $ac_val in
1770       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771       esac
1772       echo "$ac_var='\''$ac_val'\''"
1773     done | sort
1774     echo
1775
1776     if test -n "$ac_subst_files"; then
1777       cat <<\_ASBOX
1778 ## ------------------- ##
1779 ## File substitutions. ##
1780 ## ------------------- ##
1781 _ASBOX
1782       echo
1783       for ac_var in $ac_subst_files
1784       do
1785         eval ac_val=\$$ac_var
1786         case $ac_val in
1787         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788         esac
1789         echo "$ac_var='\''$ac_val'\''"
1790       done | sort
1791       echo
1792     fi
1793
1794     if test -s confdefs.h; then
1795       cat <<\_ASBOX
1796 ## ----------- ##
1797 ## confdefs.h. ##
1798 ## ----------- ##
1799 _ASBOX
1800       echo
1801       cat confdefs.h
1802       echo
1803     fi
1804     test "$ac_signal" != 0 &&
1805       echo "$as_me: caught signal $ac_signal"
1806     echo "$as_me: exit $exit_status"
1807   } >&5
1808   rm -f core *.core core.conftest.* &&
1809     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1810     exit $exit_status
1811 ' 0
1812 for ac_signal in 1 2 13 15; do
1813   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 done
1815 ac_signal=0
1816
1817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1818 rm -f -r conftest* confdefs.h
1819
1820 # Predefined preprocessor variables.
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 _ACEOF
1845
1846
1847 # Let the site file select an alternate cache file if it wants to.
1848 # Prefer explicitly selected file to automatically selected ones.
1849 if test -n "$CONFIG_SITE"; then
1850   set x "$CONFIG_SITE"
1851 elif test "x$prefix" != xNONE; then
1852   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1853 else
1854   set x "$ac_default_prefix/share/config.site" \
1855         "$ac_default_prefix/etc/config.site"
1856 fi
1857 shift
1858 for ac_site_file
1859 do
1860   if test -r "$ac_site_file"; then
1861     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1862 echo "$as_me: loading site script $ac_site_file" >&6;}
1863     sed 's/^/| /' "$ac_site_file" >&5
1864     . "$ac_site_file"
1865   fi
1866 done
1867
1868 if test -r "$cache_file"; then
1869   # Some versions of bash will fail to source /dev/null (special
1870   # files actually), so we avoid doing that.
1871   if test -f "$cache_file"; then
1872     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1873 echo "$as_me: loading cache $cache_file" >&6;}
1874     case $cache_file in
1875       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1876       *)                      . "./$cache_file";;
1877     esac
1878   fi
1879 else
1880   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1881 echo "$as_me: creating cache $cache_file" >&6;}
1882   >$cache_file
1883 fi
1884
1885 # Check that the precious variables saved in the cache have kept the same
1886 # value.
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890   eval ac_new_set=\$ac_env_${ac_var}_set
1891   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892   eval ac_new_val=\$ac_env_${ac_var}_value
1893   case $ac_old_set,$ac_new_set in
1894     set,)
1895       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897       ac_cache_corrupted=: ;;
1898     ,set)
1899       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1901       ac_cache_corrupted=: ;;
1902     ,);;
1903     *)
1904       if test "x$ac_old_val" != "x$ac_new_val"; then
1905         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1906 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1907         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1908 echo "$as_me:   former value:  $ac_old_val" >&2;}
1909         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1910 echo "$as_me:   current value: $ac_new_val" >&2;}
1911         ac_cache_corrupted=:
1912       fi;;
1913   esac
1914   # Pass precious variables to config.status.
1915   if test "$ac_new_set" = set; then
1916     case $ac_new_val in
1917     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918     *) ac_arg=$ac_var=$ac_new_val ;;
1919     esac
1920     case " $ac_configure_args " in
1921       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1922       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923     esac
1924   fi
1925 done
1926 if $ac_cache_corrupted; then
1927   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931    { (exit 1); exit 1; }; }
1932 fi
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958 ac_ext=c
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965
1966
1967 ac_aux_dir=
1968 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1969   if test -f "$ac_dir/install-sh"; then
1970     ac_aux_dir=$ac_dir
1971     ac_install_sh="$ac_aux_dir/install-sh -c"
1972     break
1973   elif test -f "$ac_dir/install.sh"; then
1974     ac_aux_dir=$ac_dir
1975     ac_install_sh="$ac_aux_dir/install.sh -c"
1976     break
1977   elif test -f "$ac_dir/shtool"; then
1978     ac_aux_dir=$ac_dir
1979     ac_install_sh="$ac_aux_dir/shtool install -c"
1980     break
1981   fi
1982 done
1983 if test -z "$ac_aux_dir"; then
1984   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1985 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989 # These three variables are undocumented and unsupported,
1990 # and are intended to be withdrawn in a future Autoconf release.
1991 # They can cause serious problems if a builder's source tree is in a directory
1992 # whose full name contains unusual characters.
1993 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1994 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1995 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1996
1997
1998 # Make sure we can run config.sub.
1999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2000   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2001 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2002    { (exit 1); exit 1; }; }
2003
2004 { echo "$as_me:$LINENO: checking build system type" >&5
2005 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2006 if test "${ac_cv_build+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   ac_build_alias=$build_alias
2010 test "x$ac_build_alias" = x &&
2011   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2012 test "x$ac_build_alias" = x &&
2013   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2014 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2015    { (exit 1); exit 1; }; }
2016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2017   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2019    { (exit 1); exit 1; }; }
2020
2021 fi
2022 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2023 echo "${ECHO_T}$ac_cv_build" >&6; }
2024 case $ac_cv_build in
2025 *-*-*) ;;
2026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2027 echo "$as_me: error: invalid value of canonical build" >&2;}
2028    { (exit 1); exit 1; }; };;
2029 esac
2030 build=$ac_cv_build
2031 ac_save_IFS=$IFS; IFS='-'
2032 set x $ac_cv_build
2033 shift
2034 build_cpu=$1
2035 build_vendor=$2
2036 shift; shift
2037 # Remember, the first character of IFS is used to create $*,
2038 # except with old shells:
2039 build_os=$*
2040 IFS=$ac_save_IFS
2041 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2042
2043
2044 { echo "$as_me:$LINENO: checking host system type" >&5
2045 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2046 if test "${ac_cv_host+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test "x$host_alias" = x; then
2050   ac_cv_host=$ac_cv_build
2051 else
2052   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2053     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2055    { (exit 1); exit 1; }; }
2056 fi
2057
2058 fi
2059 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2060 echo "${ECHO_T}$ac_cv_host" >&6; }
2061 case $ac_cv_host in
2062 *-*-*) ;;
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2064 echo "$as_me: error: invalid value of canonical host" >&2;}
2065    { (exit 1); exit 1; }; };;
2066 esac
2067 host=$ac_cv_host
2068 ac_save_IFS=$IFS; IFS='-'
2069 set x $ac_cv_host
2070 shift
2071 host_cpu=$1
2072 host_vendor=$2
2073 shift; shift
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2076 host_os=$*
2077 IFS=$ac_save_IFS
2078 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2079
2080
2081 { echo "$as_me:$LINENO: checking target system type" >&5
2082 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_target+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test "x$target_alias" = x; then
2087   ac_cv_target=$ac_cv_host
2088 else
2089   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2090     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2092    { (exit 1); exit 1; }; }
2093 fi
2094
2095 fi
2096 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2097 echo "${ECHO_T}$ac_cv_target" >&6; }
2098 case $ac_cv_target in
2099 *-*-*) ;;
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2101 echo "$as_me: error: invalid value of canonical target" >&2;}
2102    { (exit 1); exit 1; }; };;
2103 esac
2104 target=$ac_cv_target
2105 ac_save_IFS=$IFS; IFS='-'
2106 set x $ac_cv_target
2107 shift
2108 target_cpu=$1
2109 target_vendor=$2
2110 shift; shift
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2113 target_os=$*
2114 IFS=$ac_save_IFS
2115 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2116
2117
2118 # The aliases save the names the user supplied, while $host etc.
2119 # will get canonicalized.
2120 test -n "$target_alias" &&
2121   test "$program_prefix$program_suffix$program_transform_name" = \
2122     NONENONEs,x,x, &&
2123   program_prefix=${target_alias}-
2124 am__api_version='1.10'
2125
2126 # Find a good install program.  We prefer a C program (faster),
2127 # so one script is as good as another.  But avoid the broken or
2128 # incompatible versions:
2129 # SysV /etc/install, /usr/sbin/install
2130 # SunOS /usr/etc/install
2131 # IRIX /sbin/install
2132 # AIX /bin/install
2133 # AmigaOS /C/install, which installs bootblocks on floppy discs
2134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2137 # OS/2's system install, which has a completely different semantic
2138 # ./install, which can be erroneously created by make from ./install.sh.
2139 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2140 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2141 if test -z "$INSTALL"; then
2142 if test "${ac_cv_path_install+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   # Account for people who put trailing slashes in PATH elements.
2151 case $as_dir/ in
2152   ./ | .// | /cC/* | \
2153   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2155   /usr/ucb/* ) ;;
2156   *)
2157     # OSF1 and SCO ODT 3.0 have their own names for install.
2158     # Don't use installbsd from OSF since it installs stuff as root
2159     # by default.
2160     for ac_prog in ginstall scoinst install; do
2161       for ac_exec_ext in '' $ac_executable_extensions; do
2162         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163           if test $ac_prog = install &&
2164             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # AIX install.  It has an incompatible calling convention.
2166             :
2167           elif test $ac_prog = install &&
2168             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169             # program-specific install script used by HP pwplus--don't use.
2170             :
2171           else
2172             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2173             break 3
2174           fi
2175         fi
2176       done
2177     done
2178     ;;
2179 esac
2180 done
2181 IFS=$as_save_IFS
2182
2183
2184 fi
2185   if test "${ac_cv_path_install+set}" = set; then
2186     INSTALL=$ac_cv_path_install
2187   else
2188     # As a last resort, use the slow shell script.  Don't cache a
2189     # value for INSTALL within a source directory, because that will
2190     # break other packages using the cache if that directory is
2191     # removed, or if the value is a relative name.
2192     INSTALL=$ac_install_sh
2193   fi
2194 fi
2195 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2196 echo "${ECHO_T}$INSTALL" >&6; }
2197
2198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2199 # It thinks the first close brace ends the variable substitution.
2200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2201
2202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2203
2204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2205
2206 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2207 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2208 # Just in case
2209 sleep 1
2210 echo timestamp > conftest.file
2211 # Do `set' in a subshell so we don't clobber the current shell's
2212 # arguments.  Must try -L first in case configure is actually a
2213 # symlink; some systems play weird games with the mod time of symlinks
2214 # (eg FreeBSD returns the mod time of the symlink's containing
2215 # directory).
2216 if (
2217    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2218    if test "$*" = "X"; then
2219       # -L didn't work.
2220       set X `ls -t $srcdir/configure conftest.file`
2221    fi
2222    rm -f conftest.file
2223    if test "$*" != "X $srcdir/configure conftest.file" \
2224       && test "$*" != "X conftest.file $srcdir/configure"; then
2225
2226       # If neither matched, then we have a broken ls.  This can happen
2227       # if, for instance, CONFIG_SHELL is bash and it inherits a
2228       # broken ls alias from the environment.  This has actually
2229       # happened.  Such a system could not be considered "sane".
2230       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2231 alias in your environment" >&5
2232 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2233 alias in your environment" >&2;}
2234    { (exit 1); exit 1; }; }
2235    fi
2236
2237    test "$2" = conftest.file
2238    )
2239 then
2240    # Ok.
2241    :
2242 else
2243    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2244 Check your system clock" >&5
2245 echo "$as_me: error: newly created file is older than distributed files!
2246 Check your system clock" >&2;}
2247    { (exit 1); exit 1; }; }
2248 fi
2249 { echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6; }
2251 test "$program_prefix" != NONE &&
2252   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2253 # Use a double $ so make ignores it.
2254 test "$program_suffix" != NONE &&
2255   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2256 # Double any \ or $.  echo might interpret backslashes.
2257 # By default was `s,x,x', remove it if useless.
2258 cat <<\_ACEOF >conftest.sed
2259 s/[\\$]/&&/g;s/;s,x,x,$//
2260 _ACEOF
2261 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2262 rm -f conftest.sed
2263
2264 # expand $ac_aux_dir to an absolute path
2265 am_aux_dir=`cd $ac_aux_dir && pwd`
2266
2267 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2268 # Use eval to expand $SHELL
2269 if eval "$MISSING --run true"; then
2270   am_missing_run="$MISSING --run "
2271 else
2272   am_missing_run=
2273   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2274 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2275 fi
2276
2277 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2278 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2279 if test -z "$MKDIR_P"; then
2280   if test "${ac_cv_path_mkdir+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_prog in mkdir gmkdir; do
2289          for ac_exec_ext in '' $ac_executable_extensions; do
2290            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2291            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2292              'mkdir (GNU coreutils) '* | \
2293              'mkdir (coreutils) '* | \
2294              'mkdir (fileutils) '4.1*)
2295                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2296                break 3;;
2297            esac
2298          done
2299        done
2300 done
2301 IFS=$as_save_IFS
2302
2303 fi
2304
2305   if test "${ac_cv_path_mkdir+set}" = set; then
2306     MKDIR_P="$ac_cv_path_mkdir -p"
2307   else
2308     # As a last resort, use the slow shell script.  Don't cache a
2309     # value for MKDIR_P within a source directory, because that will
2310     # break other packages using the cache if that directory is
2311     # removed, or if the value is a relative name.
2312     test -d ./--version && rmdir ./--version
2313     MKDIR_P="$ac_install_sh -d"
2314   fi
2315 fi
2316 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2317 echo "${ECHO_T}$MKDIR_P" >&6; }
2318
2319 mkdir_p="$MKDIR_P"
2320 case $mkdir_p in
2321   [\\/$]* | ?:[\\/]*) ;;
2322   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2323 esac
2324
2325 for ac_prog in gawk mawk nawk awk
2326 do
2327   # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331 if test "${ac_cv_prog_AWK+set}" = set; then
2332   echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334   if test -n "$AWK"; then
2335   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_exec_ext in '' $ac_executable_extensions; do
2343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344     ac_cv_prog_AWK="$ac_prog"
2345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346     break 2
2347   fi
2348 done
2349 done
2350 IFS=$as_save_IFS
2351
2352 fi
2353 fi
2354 AWK=$ac_cv_prog_AWK
2355 if test -n "$AWK"; then
2356   { echo "$as_me:$LINENO: result: $AWK" >&5
2357 echo "${ECHO_T}$AWK" >&6; }
2358 else
2359   { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2361 fi
2362
2363
2364   test -n "$AWK" && break
2365 done
2366
2367 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2368 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2369 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   cat >conftest.make <<\_ACEOF
2374 SHELL = /bin/sh
2375 all:
2376         @echo '@@@%%%=$(MAKE)=@@@%%%'
2377 _ACEOF
2378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2380   *@@@%%%=?*=@@@%%%*)
2381     eval ac_cv_prog_make_${ac_make}_set=yes;;
2382   *)
2383     eval ac_cv_prog_make_${ac_make}_set=no;;
2384 esac
2385 rm -f conftest.make
2386 fi
2387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2388   { echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2390   SET_MAKE=
2391 else
2392   { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394   SET_MAKE="MAKE=${MAKE-make}"
2395 fi
2396
2397 rm -rf .tst 2>/dev/null
2398 mkdir .tst 2>/dev/null
2399 if test -d .tst; then
2400   am__leading_dot=.
2401 else
2402   am__leading_dot=_
2403 fi
2404 rmdir .tst 2>/dev/null
2405
2406 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2407   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2408   # is not polluted with repeated "-I."
2409   am__isrc=' -I$(srcdir)'
2410   # test to see if srcdir already configured
2411   if test -f $srcdir/config.status; then
2412     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2413 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2414    { (exit 1); exit 1; }; }
2415   fi
2416 fi
2417
2418 # test whether we have cygpath
2419 if test -z "$CYGPATH_W"; then
2420   if (cygpath --version) >/dev/null 2>/dev/null; then
2421     CYGPATH_W='cygpath -w'
2422   else
2423     CYGPATH_W=echo
2424   fi
2425 fi
2426
2427
2428 # Define the identity of the package.
2429  PACKAGE=mod_chxj
2430  VERSION=0.12.27
2431
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE "$PACKAGE"
2435 _ACEOF
2436
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define VERSION "$VERSION"
2440 _ACEOF
2441
2442 # Some tools Automake needs.
2443
2444 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2445
2446
2447 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2448
2449
2450 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2451
2452
2453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2454
2455
2456 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2457
2458 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2459
2460 # Installed binaries are usually stripped using `strip' when the user
2461 # run `make install-strip'.  However `strip' might not be the right
2462 # tool to use in cross-compilation environments, therefore Automake
2463 # will honor the `STRIP' environment variable to overrule this program.
2464 if test "$cross_compiling" != no; then
2465   if test -n "$ac_tool_prefix"; then
2466   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}strip; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_STRIP+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$STRIP"; then
2474   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481   for ac_exec_ext in '' $ac_executable_extensions; do
2482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486   fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 STRIP=$ac_cv_prog_STRIP
2494 if test -n "$STRIP"; then
2495   { echo "$as_me:$LINENO: result: $STRIP" >&5
2496 echo "${ECHO_T}$STRIP" >&6; }
2497 else
2498   { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2500 fi
2501
2502
2503 fi
2504 if test -z "$ac_cv_prog_STRIP"; then
2505   ac_ct_STRIP=$STRIP
2506   # Extract the first word of "strip", so it can be a program name with args.
2507 set dummy strip; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   if test -n "$ac_ct_STRIP"; then
2514   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521   for ac_exec_ext in '' $ac_executable_extensions; do
2522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523     ac_cv_prog_ac_ct_STRIP="strip"
2524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526   fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2534 if test -n "$ac_ct_STRIP"; then
2535   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2536 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2537 else
2538   { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2540 fi
2541
2542   if test "x$ac_ct_STRIP" = x; then
2543     STRIP=":"
2544   else
2545     case $cross_compiling:$ac_tool_warned in
2546 yes:)
2547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet.  If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&5
2550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2551 whose name does not start with the host triplet.  If you think this
2552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2553 ac_tool_warned=yes ;;
2554 esac
2555     STRIP=$ac_ct_STRIP
2556   fi
2557 else
2558   STRIP="$ac_cv_prog_STRIP"
2559 fi
2560
2561 fi
2562 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2563
2564 # We need awk for the "check" target.  The system "awk" is bad on
2565 # some platforms.
2566 # Always define AMTAR for backward compatibility.
2567
2568 AMTAR=${AMTAR-"${am_missing_run}tar"}
2569
2570 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2571
2572
2573
2574
2575
2576 ac_config_headers="$ac_config_headers include/config.h"
2577
2578
2579
2580 # Checks for programs.
2581 ac_ext=c
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 if test -n "$ac_tool_prefix"; then
2587   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   if test -n "$CC"; then
2595   ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602   for ac_exec_ext in '' $ac_executable_extensions; do
2603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606     break 2
2607   fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616   { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2618 else
2619   { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624 fi
2625 if test -z "$ac_cv_prog_CC"; then
2626   ac_ct_CC=$CC
2627   # Extract the first word of "gcc", so it can be a program name with args.
2628 set dummy gcc; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   if test -n "$ac_ct_CC"; then
2635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642   for ac_exec_ext in '' $ac_executable_extensions; do
2643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644     ac_cv_prog_ac_ct_CC="gcc"
2645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646     break 2
2647   fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655 if test -n "$ac_ct_CC"; then
2656   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657 echo "${ECHO_T}$ac_ct_CC" >&6; }
2658 else
2659   { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2661 fi
2662
2663   if test "x$ac_ct_CC" = x; then
2664     CC=""
2665   else
2666     case $cross_compiling:$ac_tool_warned in
2667 yes:)
2668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet.  If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&5
2671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet.  If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2674 ac_tool_warned=yes ;;
2675 esac
2676     CC=$ac_ct_CC
2677   fi
2678 else
2679   CC="$ac_cv_prog_CC"
2680 fi
2681
2682 if test -z "$CC"; then
2683           if test -n "$ac_tool_prefix"; then
2684     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}cc; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   if test -n "$CC"; then
2692   ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699   for ac_exec_ext in '' $ac_executable_extensions; do
2700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701     ac_cv_prog_CC="${ac_tool_prefix}cc"
2702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713   { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2715 else
2716   { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2718 fi
2719
2720
2721   fi
2722 fi
2723 if test -z "$CC"; then
2724   # Extract the first word of "cc", so it can be a program name with args.
2725 set dummy cc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   if test -n "$CC"; then
2732   ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734   ac_prog_rejected=no
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2743        ac_prog_rejected=yes
2744        continue
2745      fi
2746     ac_cv_prog_CC="cc"
2747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748     break 2
2749   fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 if test $ac_prog_rejected = yes; then
2755   # We found a bogon in the path, so make sure we never use it.
2756   set dummy $ac_cv_prog_CC
2757   shift
2758   if test $# != 0; then
2759     # We chose a different compiler from the bogus one.
2760     # However, it has the same basename, so the bogon will be chosen
2761     # first if we set CC to just the basename; use the full file name.
2762     shift
2763     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2764   fi
2765 fi
2766 fi
2767 fi
2768 CC=$ac_cv_prog_CC
2769 if test -n "$CC"; then
2770   { echo "$as_me:$LINENO: result: $CC" >&5
2771 echo "${ECHO_T}$CC" >&6; }
2772 else
2773   { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2775 fi
2776
2777
2778 fi
2779 if test -z "$CC"; then
2780   if test -n "$ac_tool_prefix"; then
2781   for ac_prog in cl.exe
2782   do
2783     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_CC+set}" = set; then
2788   echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790   if test -n "$CC"; then
2791   ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798   for ac_exec_ext in '' $ac_executable_extensions; do
2799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812   { echo "$as_me:$LINENO: result: $CC" >&5
2813 echo "${ECHO_T}$CC" >&6; }
2814 else
2815   { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819
2820     test -n "$CC" && break
2821   done
2822 fi
2823 if test -z "$CC"; then
2824   ac_ct_CC=$CC
2825   for ac_prog in cl.exe
2826 do
2827   # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$ac_ct_CC"; then
2835   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_ac_ct_CC="$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2857 echo "${ECHO_T}$ac_ct_CC" >&6; }
2858 else
2859   { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2861 fi
2862
2863
2864   test -n "$ac_ct_CC" && break
2865 done
2866
2867   if test "x$ac_ct_CC" = x; then
2868     CC=""
2869   else
2870     case $cross_compiling:$ac_tool_warned in
2871 yes:)
2872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet.  If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&5
2875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880     CC=$ac_ct_CC
2881   fi
2882 fi
2883
2884 fi
2885
2886
2887 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2888 See \`config.log' for more details." >&5
2889 echo "$as_me: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&2;}
2891    { (exit 1); exit 1; }; }
2892
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler --version >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compiler -v >&5") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compiler -V >&5") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926
2927 cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 ac_clean_files_save=$ac_clean_files
2943 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2944 # Try to create an executable without -o first, disregard a.out.
2945 # It will help us diagnose broken compilers, and finding out an intuition
2946 # of exeext.
2947 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2948 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2949 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2950 #
2951 # List of possible output files, starting from the most likely.
2952 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2953 # only as a last resort.  b.out is created by i960 compilers.
2954 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2955 #
2956 # The IRIX 6 linker writes into existing files which may not be
2957 # executable, retaining their permissions.  Remove them first so a
2958 # subsequent execution test works.
2959 ac_rmfiles=
2960 for ac_file in $ac_files
2961 do
2962   case $ac_file in
2963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2964     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2965   esac
2966 done
2967 rm -f $ac_rmfiles
2968
2969 if { (ac_try="$ac_link_default"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_link_default") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; then
2979   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2980 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2981 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2982 # so that the user can short-circuit this test for compilers unknown to
2983 # Autoconf.
2984 for ac_file in $ac_files ''
2985 do
2986   test -f "$ac_file" || continue
2987   case $ac_file in
2988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2989         ;;
2990     [ab].out )
2991         # We found the default executable, but exeext='' is most
2992         # certainly right.
2993         break;;
2994     *.* )
2995         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2996         then :; else
2997            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998         fi
2999         # We set ac_cv_exeext here because the later test for it is not
3000         # safe: cross compilers may not add the suffix if given an `-o'
3001         # argument, so we may need to know it at that point already.
3002         # Even if this section looks crufty: it has the advantage of
3003         # actually working.
3004         break;;
3005     * )
3006         break;;
3007   esac
3008 done
3009 test "$ac_cv_exeext" = no && ac_cv_exeext=
3010
3011 else
3012   ac_file=''
3013 fi
3014
3015 { echo "$as_me:$LINENO: result: $ac_file" >&5
3016 echo "${ECHO_T}$ac_file" >&6; }
3017 if test -z "$ac_file"; then
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3022 See \`config.log' for more details." >&5
3023 echo "$as_me: error: C compiler cannot create executables
3024 See \`config.log' for more details." >&2;}
3025    { (exit 77); exit 77; }; }
3026 fi
3027
3028 ac_exeext=$ac_cv_exeext
3029
3030 # Check that the compiler produces executables we can run.  If not, either
3031 # the compiler is broken, or we cross compile.
3032 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3033 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3034 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3035 # If not cross compiling, check that we can run a simple program.
3036 if test "$cross_compiling" != yes; then
3037   if { ac_try='./$ac_file'
3038   { (case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_try") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047     cross_compiling=no
3048   else
3049     if test "$cross_compiling" = maybe; then
3050         cross_compiling=yes
3051     else
3052         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: cannot run C compiled programs.
3056 If you meant to cross compile, use \`--host'.
3057 See \`config.log' for more details." >&2;}
3058    { (exit 1); exit 1; }; }
3059     fi
3060   fi
3061 fi
3062 { echo "$as_me:$LINENO: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6; }
3064
3065 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 # Check that the compiler produces executables we can run.  If not, either
3068 # the compiler is broken, or we cross compile.
3069 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3071 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3072 echo "${ECHO_T}$cross_compiling" >&6; }
3073
3074 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3076 if { (ac_try="$ac_link"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_link") 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }; then
3086   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3088 # work properly (i.e., refer to `conftest.exe'), while it won't with
3089 # `rm'.
3090 for ac_file in conftest.exe conftest conftest.*; do
3091   test -f "$ac_file" || continue
3092   case $ac_file in
3093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3094     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095           break;;
3096     * ) break;;
3097   esac
3098 done
3099 else
3100   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105 fi
3106
3107 rm -f conftest$ac_cv_exeext
3108 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3109 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3110
3111 rm -f conftest.$ac_ext
3112 EXEEXT=$ac_cv_exeext
3113 ac_exeext=$EXEEXT
3114 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3116 if test "${ac_cv_objext+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.o conftest.obj
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_compile") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; then
3145   for ac_file in conftest.o conftest.obj conftest.*; do
3146   test -f "$ac_file" || continue;
3147   case $ac_file in
3148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3149     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3150        break;;
3151   esac
3152 done
3153 else
3154   echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&2;}
3161    { (exit 1); exit 1; }; }
3162 fi
3163
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 fi
3166 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3167 echo "${ECHO_T}$ac_cv_objext" >&6; }
3168 OBJEXT=$ac_cv_objext
3169 ac_objext=$OBJEXT
3170 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185 #ifndef __GNUC__
3186        choke me
3187 #endif
3188
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_compile") 2>conftest.er1
3201   ac_status=$?
3202   grep -v '^ *+' conftest.er1 >conftest.err
3203   rm -f conftest.er1
3204   cat conftest.err >&5
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } && {
3207          test -z "$ac_c_werror_flag" ||
3208          test ! -s conftest.err
3209        } && test -s conftest.$ac_objext; then
3210   ac_compiler_gnu=yes
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215         ac_compiler_gnu=no
3216 fi
3217
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220
3221 fi
3222 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3224 GCC=`test $ac_compiler_gnu = yes && echo yes`
3225 ac_test_CFLAGS=${CFLAGS+set}
3226 ac_save_CFLAGS=$CFLAGS
3227 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_g+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   ac_save_c_werror_flag=$ac_c_werror_flag
3233    ac_c_werror_flag=yes
3234    ac_cv_prog_cc_g=no
3235    CFLAGS="-g"
3236    cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h.  */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h.  */
3242
3243 int
3244 main ()
3245 {
3246
3247   ;
3248   return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258   (eval "$ac_compile") 2>conftest.er1
3259   ac_status=$?
3260   grep -v '^ *+' conftest.er1 >conftest.err
3261   rm -f conftest.er1
3262   cat conftest.err >&5
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } && {
3265          test -z "$ac_c_werror_flag" ||
3266          test ! -s conftest.err
3267        } && test -s conftest.$ac_objext; then
3268   ac_cv_prog_cc_g=yes
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273         CFLAGS=""
3274       cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_compile") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } && {
3303          test -z "$ac_c_werror_flag" ||
3304          test ! -s conftest.err
3305        } && test -s conftest.$ac_objext; then
3306   :
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311         ac_c_werror_flag=$ac_save_c_werror_flag
3312          CFLAGS="-g"
3313          cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h.  */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h.  */
3319
3320 int
3321 main ()
3322 {
3323
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_compile") 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } && {
3342          test -z "$ac_c_werror_flag" ||
3343          test ! -s conftest.err
3344        } && test -s conftest.$ac_objext; then
3345   ac_cv_prog_cc_g=yes
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360    ac_c_werror_flag=$ac_save_c_werror_flag
3361 fi
3362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3364 if test "$ac_test_CFLAGS" = set; then
3365   CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367   if test "$GCC" = yes; then
3368     CFLAGS="-g -O2"
3369   else
3370     CFLAGS="-g"
3371   fi
3372 else
3373   if test "$GCC" = yes; then
3374     CFLAGS="-O2"
3375   else
3376     CFLAGS=
3377   fi
3378 fi
3379 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3380 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_c89+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   ac_cv_prog_cc_c89=no
3385 ac_save_CC=$CC
3386 cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3400      char **p;
3401      int i;
3402 {
3403   return p[i];
3404 }
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3406 {
3407   char *s;
3408   va_list v;
3409   va_start (v,p);
3410   s = g (p, va_arg (v,int));
3411   va_end (v);
3412   return s;
3413 }
3414
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3416    function prototypes and stuff, but not '\xHH' hex character constants.
3417    These don't provoke an error unfortunately, instead are silently treated
3418    as 'x'.  The following induces an error, until -std is added to get
3419    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3420    array size at least.  It's necessary to write '\x00'==0 to get something
3421    that's true only with -std.  */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423
3424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425    inside strings and character constants.  */
3426 #define FOO(x) 'x'
3427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3428
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 int argc;
3434 char **argv;
3435 int
3436 main ()
3437 {
3438 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 do
3446   CC="$ac_save_CC $ac_arg"
3447   rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_compile") 2>conftest.er1
3455   ac_status=$?
3456   grep -v '^ *+' conftest.er1 >conftest.err
3457   rm -f conftest.er1
3458   cat conftest.err >&5
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); } && {
3461          test -z "$ac_c_werror_flag" ||
3462          test ! -s conftest.err
3463        } && test -s conftest.$ac_objext; then
3464   ac_cv_prog_cc_c89=$ac_arg
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469
3470 fi
3471
3472 rm -f core conftest.err conftest.$ac_objext
3473   test "x$ac_cv_prog_cc_c89" != "xno" && break
3474 done
3475 rm -f conftest.$ac_ext
3476 CC=$ac_save_CC
3477
3478 fi
3479 # AC_CACHE_VAL
3480 case "x$ac_cv_prog_cc_c89" in
3481   x)
3482     { echo "$as_me:$LINENO: result: none needed" >&5
3483 echo "${ECHO_T}none needed" >&6; } ;;
3484   xno)
3485     { echo "$as_me:$LINENO: result: unsupported" >&5
3486 echo "${ECHO_T}unsupported" >&6; } ;;
3487   *)
3488     CC="$CC $ac_cv_prog_cc_c89"
3489     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3490 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3491 esac
3492
3493
3494 ac_ext=c
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 DEPDIR="${am__leading_dot}deps"
3500
3501 ac_config_commands="$ac_config_commands depfiles"
3502
3503
3504 am_make=${MAKE-make}
3505 cat > confinc << 'END'
3506 am__doit:
3507         @echo done
3508 .PHONY: am__doit
3509 END
3510 # If we don't find an include directive, just comment out the code.
3511 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3513 am__include="#"
3514 am__quote=
3515 _am_result=none
3516 # First try GNU make style include.
3517 echo "include confinc" > confmf
3518 # We grep out `Entering directory' and `Leaving directory'
3519 # messages which can occur if `w' ends up in MAKEFLAGS.
3520 # In particular we don't look at `^make:' because GNU make might
3521 # be invoked under some other name (usually "gmake"), in which
3522 # case it prints its new name instead of `make'.
3523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3524    am__include=include
3525    am__quote=
3526    _am_result=GNU
3527 fi
3528 # Now try BSD make style include.
3529 if test "$am__include" = "#"; then
3530    echo '.include "confinc"' > confmf
3531    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3532       am__include=.include
3533       am__quote="\""
3534       _am_result=BSD
3535    fi
3536 fi
3537
3538
3539 { echo "$as_me:$LINENO: result: $_am_result" >&5
3540 echo "${ECHO_T}$_am_result" >&6; }
3541 rm -f confinc confmf
3542
3543 # Check whether --enable-dependency-tracking was given.
3544 if test "${enable_dependency_tracking+set}" = set; then
3545   enableval=$enable_dependency_tracking;
3546 fi
3547
3548 if test "x$enable_dependency_tracking" != xno; then
3549   am_depcomp="$ac_aux_dir/depcomp"
3550   AMDEPBACKSLASH='\'
3551 fi
3552  if test "x$enable_dependency_tracking" != xno; then
3553   AMDEP_TRUE=
3554   AMDEP_FALSE='#'
3555 else
3556   AMDEP_TRUE='#'
3557   AMDEP_FALSE=
3558 fi
3559
3560
3561
3562 depcc="$CC"   am_compiler_list=
3563
3564 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3565 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3566 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570   # We make a subdir and do the tests there.  Otherwise we can end up
3571   # making bogus files that we don't know about and never remove.  For
3572   # instance it was reported that on HP-UX the gcc test will end up
3573   # making a dummy file named `D' -- because `-MD' means `put the output
3574   # in D'.
3575   mkdir conftest.dir
3576   # Copy depcomp to subdir because otherwise we won't find it if we're
3577   # using a relative directory.
3578   cp "$am_depcomp" conftest.dir
3579   cd conftest.dir
3580   # We will build objects and dependencies in a subdirectory because
3581   # it helps to detect inapplicable dependency modes.  For instance
3582   # both Tru64's cc and ICC support -MD to output dependencies as a
3583   # side effect of compilation, but ICC will put the dependencies in
3584   # the current directory while Tru64 will put them in the object
3585   # directory.
3586   mkdir sub
3587
3588   am_cv_CC_dependencies_compiler_type=none
3589   if test "$am_compiler_list" = ""; then
3590      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591   fi
3592   for depmode in $am_compiler_list; do
3593     # Setup a source with many dependencies, because some compilers
3594     # like to wrap large dependency lists on column 80 (with \), and
3595     # we should not choose a depcomp mode which is confused by this.
3596     #
3597     # We need to recreate these files for each test, as the compiler may
3598     # overwrite some of them when testing with obscure command lines.
3599     # This happens at least with the AIX C compiler.
3600     : > sub/conftest.c
3601     for i in 1 2 3 4 5 6; do
3602       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3603       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3604       # Solaris 8's {/usr,}/bin/sh.
3605       touch sub/conftst$i.h
3606     done
3607     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3608
3609     case $depmode in
3610     nosideeffect)
3611       # after this tag, mechanisms are not by side-effect, so they'll
3612       # only be used when explicitly requested
3613       if test "x$enable_dependency_tracking" = xyes; then
3614         continue
3615       else
3616         break
3617       fi
3618       ;;
3619     none) break ;;
3620     esac
3621     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3622     # mode.  It turns out that the SunPro C++ compiler does not properly
3623     # handle `-M -o', and we need to detect this.
3624     if depmode=$depmode \
3625        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3626        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3628          >/dev/null 2>conftest.err &&
3629        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3630        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3631        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3632        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3633       # icc doesn't choke on unknown options, it will just issue warnings
3634       # or remarks (even with -Werror).  So we grep stderr for any message
3635       # that says an option was ignored or not supported.
3636       # When given -MP, icc 7.0 and 7.1 complain thusly:
3637       #   icc: Command line warning: ignoring option '-M'; no argument required
3638       # The diagnosis changed in icc 8.0:
3639       #   icc: Command line remark: option '-MP' not supported
3640       if (grep 'ignoring option' conftest.err ||
3641           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3642         am_cv_CC_dependencies_compiler_type=$depmode
3643         break
3644       fi
3645     fi
3646   done
3647
3648   cd ..
3649   rm -rf conftest.dir
3650 else
3651   am_cv_CC_dependencies_compiler_type=none
3652 fi
3653
3654 fi
3655 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3656 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3657 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3658
3659  if
3660   test "x$enable_dependency_tracking" != xno \
3661   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3662   am__fastdepCC_TRUE=
3663   am__fastdepCC_FALSE='#'
3664 else
3665   am__fastdepCC_TRUE='#'
3666   am__fastdepCC_FALSE=
3667 fi
3668
3669
3670 # Find a good install program.  We prefer a C program (faster),
3671 # so one script is as good as another.  But avoid the broken or
3672 # incompatible versions:
3673 # SysV /etc/install, /usr/sbin/install
3674 # SunOS /usr/etc/install
3675 # IRIX /sbin/install
3676 # AIX /bin/install
3677 # AmigaOS /C/install, which installs bootblocks on floppy discs
3678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3681 # OS/2's system install, which has a completely different semantic
3682 # ./install, which can be erroneously created by make from ./install.sh.
3683 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3684 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3685 if test -z "$INSTALL"; then
3686 if test "${ac_cv_path_install+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694   # Account for people who put trailing slashes in PATH elements.
3695 case $as_dir/ in
3696   ./ | .// | /cC/* | \
3697   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3698   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3699   /usr/ucb/* ) ;;
3700   *)
3701     # OSF1 and SCO ODT 3.0 have their own names for install.
3702     # Don't use installbsd from OSF since it installs stuff as root
3703     # by default.
3704     for ac_prog in ginstall scoinst install; do
3705       for ac_exec_ext in '' $ac_executable_extensions; do
3706         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3707           if test $ac_prog = install &&
3708             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3709             # AIX install.  It has an incompatible calling convention.
3710             :
3711           elif test $ac_prog = install &&
3712             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713             # program-specific install script used by HP pwplus--don't use.
3714             :
3715           else
3716             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3717             break 3
3718           fi
3719         fi
3720       done
3721     done
3722     ;;
3723 esac
3724 done
3725 IFS=$as_save_IFS
3726
3727
3728 fi
3729   if test "${ac_cv_path_install+set}" = set; then
3730     INSTALL=$ac_cv_path_install
3731   else
3732     # As a last resort, use the slow shell script.  Don't cache a
3733     # value for INSTALL within a source directory, because that will
3734     # break other packages using the cache if that directory is
3735     # removed, or if the value is a relative name.
3736     INSTALL=$ac_install_sh
3737   fi
3738 fi
3739 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3740 echo "${ECHO_T}$INSTALL" >&6; }
3741
3742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3743 # It thinks the first close brace ends the variable substitution.
3744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3745
3746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3747
3748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3749
3750
3751
3752 # Check whether --enable-shared was given.
3753 if test "${enable_shared+set}" = set; then
3754   enableval=$enable_shared; p=${PACKAGE-default}
3755     case $enableval in
3756     yes) enable_shared=yes ;;
3757     no) enable_shared=no ;;
3758     *)
3759       enable_shared=no
3760       # Look at the argument we got.  We use all the common list separators.
3761       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3762       for pkg in $enableval; do
3763         IFS="$lt_save_ifs"
3764         if test "X$pkg" = "X$p"; then
3765           enable_shared=yes
3766         fi
3767       done
3768       IFS="$lt_save_ifs"
3769       ;;
3770     esac
3771 else
3772   enable_shared=yes
3773 fi
3774
3775
3776 # Check whether --enable-static was given.
3777 if test "${enable_static+set}" = set; then
3778   enableval=$enable_static; p=${PACKAGE-default}
3779     case $enableval in
3780     yes) enable_static=yes ;;
3781     no) enable_static=no ;;
3782     *)
3783      enable_static=no
3784       # Look at the argument we got.  We use all the common list separators.
3785       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3786       for pkg in $enableval; do
3787         IFS="$lt_save_ifs"
3788         if test "X$pkg" = "X$p"; then
3789           enable_static=yes
3790         fi
3791       done
3792       IFS="$lt_save_ifs"
3793       ;;
3794     esac
3795 else
3796   enable_static=yes
3797 fi
3798
3799
3800 # Check whether --enable-fast-install was given.
3801 if test "${enable_fast_install+set}" = set; then
3802   enableval=$enable_fast_install; p=${PACKAGE-default}
3803     case $enableval in
3804     yes) enable_fast_install=yes ;;
3805     no) enable_fast_install=no ;;
3806     *)
3807       enable_fast_install=no
3808       # Look at the argument we got.  We use all the common list separators.
3809       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3810       for pkg in $enableval; do
3811         IFS="$lt_save_ifs"
3812         if test "X$pkg" = "X$p"; then
3813           enable_fast_install=yes
3814         fi
3815       done
3816       IFS="$lt_save_ifs"
3817       ;;
3818     esac
3819 else
3820   enable_fast_install=yes
3821 fi
3822
3823
3824 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3825 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3826 if test "${lt_cv_path_SED+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   # Loop through the user's path and test for sed and gsed.
3830 # Then use that list of sed's as ones to test for truncation.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   for lt_ac_prog in sed gsed; do
3837     for ac_exec_ext in '' $ac_executable_extensions; do
3838       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3839         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3840       fi
3841     done
3842   done
3843 done
3844 lt_ac_max=0
3845 lt_ac_count=0
3846 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3847 # along with /bin/sed that truncates output.
3848 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3849   test ! -f $lt_ac_sed && continue
3850   cat /dev/null > conftest.in
3851   lt_ac_count=0
3852   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3853   # Check for GNU sed and select it if it is found.
3854   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3855     lt_cv_path_SED=$lt_ac_sed
3856     break
3857   fi
3858   while true; do
3859     cat conftest.in conftest.in >conftest.tmp
3860     mv conftest.tmp conftest.in
3861     cp conftest.in conftest.nl
3862     echo >>conftest.nl
3863     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3864     cmp -s conftest.out conftest.nl || break
3865     # 10000 chars as input seems more than enough
3866     test $lt_ac_count -gt 10 && break
3867     lt_ac_count=`expr $lt_ac_count + 1`
3868     if test $lt_ac_count -gt $lt_ac_max; then
3869       lt_ac_max=$lt_ac_count
3870       lt_cv_path_SED=$lt_ac_sed
3871     fi
3872   done
3873 done
3874
3875 fi
3876
3877 SED=$lt_cv_path_SED
3878 { echo "$as_me:$LINENO: result: $SED" >&5
3879 echo "${ECHO_T}$SED" >&6; }
3880
3881 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3882 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3883 if test "${ac_cv_path_GREP+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   # Extract the first word of "grep ggrep" to use in msg output
3887 if test -z "$GREP"; then
3888 set dummy grep ggrep; ac_prog_name=$2
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   ac_path_GREP_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896 do
3897   IFS=$as_save_IFS
3898   test -z "$as_dir" && as_dir=.
3899   for ac_prog in grep ggrep; do
3900   for ac_exec_ext in '' $ac_executable_extensions; do
3901     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3902     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3903     # Check for GNU ac_path_GREP and select it if it is found.
3904   # Check for GNU $ac_path_GREP
3905 case `"$ac_path_GREP" --version 2>&1` in
3906 *GNU*)
3907   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3908 *)
3909   ac_count=0
3910   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3911   while :
3912   do
3913     cat "conftest.in" "conftest.in" >"conftest.tmp"
3914     mv "conftest.tmp" "conftest.in"
3915     cp "conftest.in" "conftest.nl"
3916     echo 'GREP' >> "conftest.nl"
3917     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919     ac_count=`expr $ac_count + 1`
3920     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3921       # Best one so far, save it but keep looking for a better one
3922       ac_cv_path_GREP="$ac_path_GREP"
3923       ac_path_GREP_max=$ac_count
3924     fi
3925     # 10*(2^10) chars as input seems more than enough
3926     test $ac_count -gt 10 && break
3927   done
3928   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 esac
3930
3931
3932     $ac_path_GREP_found && break 3
3933   done
3934 done
3935
3936 done
3937 IFS=$as_save_IFS
3938
3939
3940 fi
3941
3942 GREP="$ac_cv_path_GREP"
3943 if test -z "$GREP"; then
3944   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3945 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3946    { (exit 1); exit 1; }; }
3947 fi
3948
3949 else
3950   ac_cv_path_GREP=$GREP
3951 fi
3952
3953
3954 fi
3955 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3956 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3957  GREP="$ac_cv_path_GREP"
3958
3959
3960 { echo "$as_me:$LINENO: checking for egrep" >&5
3961 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3962 if test "${ac_cv_path_EGREP+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3966    then ac_cv_path_EGREP="$GREP -E"
3967    else
3968      # Extract the first word of "egrep" to use in msg output
3969 if test -z "$EGREP"; then
3970 set dummy egrep; ac_prog_name=$2
3971 if test "${ac_cv_path_EGREP+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   ac_path_EGREP_found=false
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 do
3979   IFS=$as_save_IFS
3980   test -z "$as_dir" && as_dir=.
3981   for ac_prog in egrep; do
3982   for ac_exec_ext in '' $ac_executable_extensions; do
3983     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3984     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3985     # Check for GNU ac_path_EGREP and select it if it is found.
3986   # Check for GNU $ac_path_EGREP
3987 case `"$ac_path_EGREP" --version 2>&1` in
3988 *GNU*)
3989   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990 *)
3991   ac_count=0
3992   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993   while :
3994   do
3995     cat "conftest.in" "conftest.in" >"conftest.tmp"
3996     mv "conftest.tmp" "conftest.in"
3997     cp "conftest.in" "conftest.nl"
3998     echo 'EGREP' >> "conftest.nl"
3999     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001     ac_count=`expr $ac_count + 1`
4002     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4003       # Best one so far, save it but keep looking for a better one
4004       ac_cv_path_EGREP="$ac_path_EGREP"
4005       ac_path_EGREP_max=$ac_count
4006     fi
4007     # 10*(2^10) chars as input seems more than enough
4008     test $ac_count -gt 10 && break
4009   done
4010   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 esac
4012
4013
4014     $ac_path_EGREP_found && break 3
4015   done
4016 done
4017
4018 done
4019 IFS=$as_save_IFS
4020
4021
4022 fi
4023
4024 EGREP="$ac_cv_path_EGREP"
4025 if test -z "$EGREP"; then
4026   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4027 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4028    { (exit 1); exit 1; }; }
4029 fi
4030
4031 else
4032   ac_cv_path_EGREP=$EGREP
4033 fi
4034
4035
4036    fi
4037 fi
4038 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4039 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4040  EGREP="$ac_cv_path_EGREP"
4041
4042
4043
4044 # Check whether --with-gnu-ld was given.
4045 if test "${with_gnu_ld+set}" = set; then
4046   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4047 else
4048   with_gnu_ld=no
4049 fi
4050
4051 ac_prog=ld
4052 if test "$GCC" = yes; then
4053   # Check if gcc -print-prog-name=ld gives a path.
4054   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4055 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4056   case $host in
4057   *-*-mingw*)
4058     # gcc leaves a trailing carriage return which upsets mingw
4059     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4060   *)
4061     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4062   esac
4063   case $ac_prog in
4064     # Accept absolute paths.
4065     [\\/]* | ?:[\\/]*)
4066       re_direlt='/[^/][^/]*/\.\./'
4067       # Canonicalize the pathname of ld
4068       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4069       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4070         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4071       done
4072       test -z "$LD" && LD="$ac_prog"
4073       ;;
4074   "")
4075     # If it fails, then pretend we aren't using GCC.
4076     ac_prog=ld
4077     ;;
4078   *)
4079     # If it is relative, then search for the first ld in PATH.
4080     with_gnu_ld=unknown
4081     ;;
4082   esac
4083 elif test "$with_gnu_ld" = yes; then
4084   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4085 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4086 else
4087   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4088 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4089 fi
4090 if test "${lt_cv_path_LD+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   if test -z "$LD"; then
4094   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4095   for ac_dir in $PATH; do
4096     IFS="$lt_save_ifs"
4097     test -z "$ac_dir" && ac_dir=.
4098     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4099       lt_cv_path_LD="$ac_dir/$ac_prog"
4100       # Check to see if the program is GNU ld.  I'd rather use --version,
4101       # but apparently some variants of GNU ld only accept -v.
4102       # Break only if it was the GNU/non-GNU ld that we prefer.
4103       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4104       *GNU* | *'with BFD'*)
4105         test "$with_gnu_ld" != no && break
4106         ;;
4107       *)
4108         test "$with_gnu_ld" != yes && break
4109         ;;
4110       esac
4111     fi
4112   done
4113   IFS="$lt_save_ifs"
4114 else
4115   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4116 fi
4117 fi
4118
4119 LD="$lt_cv_path_LD"
4120 if test -n "$LD"; then
4121   { echo "$as_me:$LINENO: result: $LD" >&5
4122 echo "${ECHO_T}$LD" >&6; }
4123 else
4124   { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4126 fi
4127 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4128 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4129    { (exit 1); exit 1; }; }
4130 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4131 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4132 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4136 case `$LD -v 2>&1 </dev/null` in
4137 *GNU* | *'with BFD'*)
4138   lt_cv_prog_gnu_ld=yes
4139   ;;
4140 *)
4141   lt_cv_prog_gnu_ld=no
4142   ;;
4143 esac
4144 fi
4145 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4146 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4147 with_gnu_ld=$lt_cv_prog_gnu_ld
4148
4149
4150 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4151 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4152 if test "${lt_cv_ld_reload_flag+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   lt_cv_ld_reload_flag='-r'
4156 fi
4157 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4158 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4159 reload_flag=$lt_cv_ld_reload_flag
4160 case $reload_flag in
4161 "" | " "*) ;;
4162 *) reload_flag=" $reload_flag" ;;
4163 esac
4164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4165 case $host_os in
4166   darwin*)
4167     if test "$GCC" = yes; then
4168       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4169     else
4170       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4171     fi
4172     ;;
4173 esac
4174
4175 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4176 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4177 if test "${lt_cv_path_NM+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   if test -n "$NM"; then
4181   # Let the user override the test.
4182   lt_cv_path_NM="$NM"
4183 else
4184   lt_nm_to_check="${ac_tool_prefix}nm"
4185   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4186     lt_nm_to_check="$lt_nm_to_check nm"
4187   fi
4188   for lt_tmp_nm in $lt_nm_to_check; do
4189     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4190     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4191       IFS="$lt_save_ifs"
4192       test -z "$ac_dir" && ac_dir=.
4193       tmp_nm="$ac_dir/$lt_tmp_nm"
4194       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4195         # Check to see if the nm accepts a BSD-compat flag.
4196         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4197         #   nm: unknown option "B" ignored
4198         # Tru64's nm complains that /dev/null is an invalid object file
4199         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4200         */dev/null* | *'Invalid file or object type'*)
4201           lt_cv_path_NM="$tmp_nm -B"
4202           break
4203           ;;
4204         *)
4205           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4206           */dev/null*)
4207             lt_cv_path_NM="$tmp_nm -p"
4208             break
4209             ;;
4210           *)
4211             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4212             continue # so that we can try to find one that supports BSD flags
4213             ;;
4214           esac
4215           ;;
4216         esac
4217       fi
4218     done
4219     IFS="$lt_save_ifs"
4220   done
4221   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4222 fi
4223 fi
4224 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4225 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4226 NM="$lt_cv_path_NM"
4227
4228 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4229 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4230 LN_S=$as_ln_s
4231 if test "$LN_S" = "ln -s"; then
4232   { echo "$as_me:$LINENO: result: yes" >&5
4233 echo "${ECHO_T}yes" >&6; }
4234 else
4235   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4236 echo "${ECHO_T}no, using $LN_S" >&6; }
4237 fi
4238
4239 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4240 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4241 if test "${lt_cv_deplibs_check_method+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   lt_cv_file_magic_cmd='$MAGIC_CMD'
4245 lt_cv_file_magic_test_file=
4246 lt_cv_deplibs_check_method='unknown'
4247 # Need to set the preceding variable on all platforms that support
4248 # interlibrary dependencies.
4249 # 'none' -- dependencies not supported.
4250 # `unknown' -- same as none, but documents that we really don't know.
4251 # 'pass_all' -- all dependencies passed with no checks.
4252 # 'test_compile' -- check by making test program.
4253 # 'file_magic [[regex]]' -- check by looking for files in library path
4254 # which responds to the $file_magic_cmd with a given extended regex.
4255 # If you have `file' or equivalent on your system and you're not sure
4256 # whether `pass_all' will *always* work, you probably want this one.
4257
4258 case $host_os in
4259 aix4* | aix5*)
4260   lt_cv_deplibs_check_method=pass_all
4261   ;;
4262
4263 beos*)
4264   lt_cv_deplibs_check_method=pass_all
4265   ;;
4266
4267 bsdi[45]*)
4268   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4269   lt_cv_file_magic_cmd='/usr/bin/file -L'
4270   lt_cv_file_magic_test_file=/shlib/libc.so
4271   ;;
4272
4273 cygwin*)
4274   # func_win32_libid is a shell function defined in ltmain.sh
4275   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4276   lt_cv_file_magic_cmd='func_win32_libid'
4277   ;;
4278
4279 mingw* | pw32*)
4280   # Base MSYS/MinGW do not provide the 'file' command needed by
4281   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4282   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4283   lt_cv_file_magic_cmd='$OBJDUMP -f'
4284   ;;
4285
4286 darwin* | rhapsody*)
4287   lt_cv_deplibs_check_method=pass_all
4288   ;;
4289
4290 freebsd* | dragonfly*)
4291   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4292     case $host_cpu in
4293     i*86 )
4294       # Not sure whether the presence of OpenBSD here was a mistake.
4295       # Let's accept both of them until this is cleared up.
4296       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4297       lt_cv_file_magic_cmd=/usr/bin/file
4298       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4299       ;;
4300     esac
4301   else
4302     lt_cv_deplibs_check_method=pass_all
4303   fi
4304   ;;
4305
4306 gnu*)
4307   lt_cv_deplibs_check_method=pass_all
4308   ;;
4309
4310 hpux10.20* | hpux11*)
4311   lt_cv_file_magic_cmd=/usr/bin/file
4312   case $host_cpu in
4313   ia64*)
4314     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4315     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4316     ;;
4317   hppa*64*)
4318     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]'
4319     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4320     ;;
4321   *)
4322     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4323     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4324     ;;
4325   esac
4326   ;;
4327
4328 interix3*)
4329   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4330   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4331   ;;
4332
4333 irix5* | irix6* | nonstopux*)
4334   case $LD in
4335   *-32|*"-32 ") libmagic=32-bit;;
4336   *-n32|*"-n32 ") libmagic=N32;;
4337   *-64|*"-64 ") libmagic=64-bit;;
4338   *) libmagic=never-match;;
4339   esac
4340   lt_cv_deplibs_check_method=pass_all
4341   ;;
4342
4343 # This must be Linux ELF.
4344 linux* | k*bsd*-gnu)
4345   lt_cv_deplibs_check_method=pass_all
4346   ;;
4347
4348 netbsd* | netbsdelf*-gnu)
4349   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4351   else
4352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4353   fi
4354   ;;
4355
4356 newos6*)
4357   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4358   lt_cv_file_magic_cmd=/usr/bin/file
4359   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4360   ;;
4361
4362 nto-qnx*)
4363   lt_cv_deplibs_check_method=unknown
4364   ;;
4365
4366 openbsd*)
4367   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4369   else
4370     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371   fi
4372   ;;
4373
4374 osf3* | osf4* | osf5*)
4375   lt_cv_deplibs_check_method=pass_all
4376   ;;
4377
4378 solaris*)
4379   lt_cv_deplibs_check_method=pass_all
4380   ;;
4381
4382 sysv4 | sysv4.3*)
4383   case $host_vendor in
4384   motorola)
4385     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]'
4386     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4387     ;;
4388   ncr)
4389     lt_cv_deplibs_check_method=pass_all
4390     ;;
4391   sequent)
4392     lt_cv_file_magic_cmd='/bin/file'
4393     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4394     ;;
4395   sni)
4396     lt_cv_file_magic_cmd='/bin/file'
4397     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4398     lt_cv_file_magic_test_file=/lib/libc.so
4399     ;;
4400   siemens)
4401     lt_cv_deplibs_check_method=pass_all
4402     ;;
4403   pc)
4404     lt_cv_deplibs_check_method=pass_all
4405     ;;
4406   esac
4407   ;;
4408
4409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4410   lt_cv_deplibs_check_method=pass_all
4411   ;;
4412 esac
4413
4414 fi
4415 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4416 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4417 file_magic_cmd=$lt_cv_file_magic_cmd
4418 deplibs_check_method=$lt_cv_deplibs_check_method
4419 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4420
4421
4422
4423
4424 # If no C compiler was specified, use CC.
4425 LTCC=${LTCC-"$CC"}
4426
4427 # If no C compiler flags were specified, use CFLAGS.
4428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4429
4430 # Allow CC to be a program name with arguments.
4431 compiler=$CC
4432
4433
4434 # Check whether --enable-libtool-lock was given.
4435 if test "${enable_libtool_lock+set}" = set; then
4436   enableval=$enable_libtool_lock;
4437 fi
4438
4439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4440
4441 # Some flags need to be propagated to the compiler or linker for good
4442 # libtool support.
4443 case $host in
4444 ia64-*-hpux*)
4445   # Find out which ABI we are using.
4446   echo 'int i;' > conftest.$ac_ext
4447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448   (eval $ac_compile) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; then
4452     case `/usr/bin/file conftest.$ac_objext` in
4453     *ELF-32*)
4454       HPUX_IA64_MODE="32"
4455       ;;
4456     *ELF-64*)
4457       HPUX_IA64_MODE="64"
4458       ;;
4459     esac
4460   fi
4461   rm -rf conftest*
4462   ;;
4463 *-*-irix6*)
4464   # Find out which ABI we are using.
4465   echo '#line 4465 "configure"' > conftest.$ac_ext
4466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467   (eval $ac_compile) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; then
4471    if test "$lt_cv_prog_gnu_ld" = yes; then
4472     case `/usr/bin/file conftest.$ac_objext` in
4473     *32-bit*)
4474       LD="${LD-ld} -melf32bsmip"
4475       ;;
4476     *N32*)
4477       LD="${LD-ld} -melf32bmipn32"
4478       ;;
4479     *64-bit*)
4480       LD="${LD-ld} -melf64bmip"
4481       ;;
4482     esac
4483    else
4484     case `/usr/bin/file conftest.$ac_objext` in
4485     *32-bit*)
4486       LD="${LD-ld} -32"
4487       ;;
4488     *N32*)
4489       LD="${LD-ld} -n32"
4490       ;;
4491     *64-bit*)
4492       LD="${LD-ld} -64"
4493       ;;
4494     esac
4495    fi
4496   fi
4497   rm -rf conftest*
4498   ;;
4499
4500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4501   # Find out which ABI we are using.
4502   echo 'int i;' > conftest.$ac_ext
4503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504   (eval $ac_compile) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; then
4508     case `/usr/bin/file conftest.o` in
4509     *32-bit*)
4510       case $host in
4511         x86_64-*linux*)
4512           LD="${LD-ld} -m elf_i386"
4513           ;;
4514         ppc64-*linux*|powerpc64-*linux*)
4515           LD="${LD-ld} -m elf32ppclinux"
4516           ;;
4517         s390x-*linux*)
4518           LD="${LD-ld} -m elf_s390"
4519           ;;
4520         sparc64-*linux*)
4521           LD="${LD-ld} -m elf32_sparc"
4522           ;;
4523       esac
4524       ;;
4525     *64-bit*)
4526       case $host in
4527         x86_64-*linux*)
4528           LD="${LD-ld} -m elf_x86_64"
4529           ;;
4530         ppc*-*linux*|powerpc*-*linux*)
4531           LD="${LD-ld} -m elf64ppc"
4532           ;;
4533         s390*-*linux*)
4534           LD="${LD-ld} -m elf64_s390"
4535           ;;
4536         sparc*-*linux*)
4537           LD="${LD-ld} -m elf64_sparc"
4538           ;;
4539       esac
4540       ;;
4541     esac
4542   fi
4543   rm -rf conftest*
4544   ;;
4545
4546 *-*-sco3.2v5*)
4547   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4548   SAVE_CFLAGS="$CFLAGS"
4549   CFLAGS="$CFLAGS -belf"
4550   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4552 if test "${lt_cv_cc_needs_belf+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   ac_ext=c
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561      cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567
4568 int
4569 main ()
4570 {
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 rm -f conftest.$ac_objext conftest$ac_exeext
4577 if { (ac_try="$ac_link"
4578 case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583   (eval "$ac_link") 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } && {
4590          test -z "$ac_c_werror_flag" ||
4591          test ! -s conftest.err
4592        } && test -s conftest$ac_exeext &&
4593        $as_test_x conftest$ac_exeext; then
4594   lt_cv_cc_needs_belf=yes
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599         lt_cv_cc_needs_belf=no
4600 fi
4601
4602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4603       conftest$ac_exeext conftest.$ac_ext
4604      ac_ext=c
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610 fi
4611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4613   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4615     CFLAGS="$SAVE_CFLAGS"
4616   fi
4617   ;;
4618 sparc*-*solaris*)
4619   # Find out which ABI we are using.
4620   echo 'int i;' > conftest.$ac_ext
4621   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622   (eval $ac_compile) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; then
4626     case `/usr/bin/file conftest.o` in
4627     *64-bit*)
4628       case $lt_cv_prog_gnu_ld in
4629       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4630       *)    LD="${LD-ld} -64" ;;
4631       esac
4632       ;;
4633     esac
4634   fi
4635   rm -rf conftest*
4636   ;;
4637
4638
4639 esac
4640
4641 need_locks="$enable_libtool_lock"
4642
4643
4644 ac_ext=c
4645 ac_cpp='$CPP $CPPFLAGS'
4646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4650 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4651 # On Suns, sometimes $CPP names a directory.
4652 if test -n "$CPP" && test -d "$CPP"; then
4653   CPP=
4654 fi
4655 if test -z "$CPP"; then
4656   if test "${ac_cv_prog_CPP+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659       # Double quotes because CPP needs to be expanded
4660     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4661     do
4662       ac_preproc_ok=false
4663 for ac_c_preproc_warn_flag in '' yes
4664 do
4665   # Use a header file that comes with gcc, so configuring glibc
4666   # with a fresh cross-compiler works.
4667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668   # <limits.h> exists even on freestanding compilers.
4669   # On the NeXT, cc -E runs the code through the compiler's parser,
4670   # not just through cpp. "Syntax error" is here to catch this case.
4671   cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 #ifdef __STDC__
4678 # include <limits.h>
4679 #else
4680 # include <assert.h>
4681 #endif
4682                      Syntax error
4683 _ACEOF
4684 if { (ac_try="$ac_cpp conftest.$ac_ext"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } >/dev/null && {
4697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4698          test ! -s conftest.err
4699        }; then
4700   :
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705   # Broken: fails on valid input.
4706 continue
4707 fi
4708
4709 rm -f conftest.err conftest.$ac_ext
4710
4711   # OK, works on sane cases.  Now check whether nonexistent headers
4712   # can be detected and how.
4713   cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719 #include <ac_nonexistent.h>
4720 _ACEOF
4721 if { (ac_try="$ac_cpp conftest.$ac_ext"
4722 case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } >/dev/null && {
4734          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4735          test ! -s conftest.err
4736        }; then
4737   # Broken: success on invalid input.
4738 continue
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743   # Passes both tests.
4744 ac_preproc_ok=:
4745 break
4746 fi
4747
4748 rm -f conftest.err conftest.$ac_ext
4749
4750 done
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then
4754   break
4755 fi
4756
4757     done
4758     ac_cv_prog_CPP=$CPP
4759
4760 fi
4761   CPP=$ac_cv_prog_CPP
4762 else
4763   ac_cv_prog_CPP=$CPP
4764 fi
4765 { echo "$as_me:$LINENO: result: $CPP" >&5
4766 echo "${ECHO_T}$CPP" >&6; }
4767 ac_preproc_ok=false
4768 for ac_c_preproc_warn_flag in '' yes
4769 do
4770   # Use a header file that comes with gcc, so configuring glibc
4771   # with a fresh cross-compiler works.
4772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4773   # <limits.h> exists even on freestanding compilers.
4774   # On the NeXT, cc -E runs the code through the compiler's parser,
4775   # not just through cpp. "Syntax error" is here to catch this case.
4776   cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782 #ifdef __STDC__
4783 # include <limits.h>
4784 #else
4785 # include <assert.h>
4786 #endif
4787                      Syntax error
4788 _ACEOF
4789 if { (ac_try="$ac_cpp conftest.$ac_ext"
4790 case "(($ac_try" in
4791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792   *) ac_try_echo=$ac_try;;
4793 esac
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4796   ac_status=$?
4797   grep -v '^ *+' conftest.er1 >conftest.err
4798   rm -f conftest.er1
4799   cat conftest.err >&5
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); } >/dev/null && {
4802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4803          test ! -s conftest.err
4804        }; then
4805   :
4806 else
4807   echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810   # Broken: fails on valid input.
4811 continue
4812 fi
4813
4814 rm -f conftest.err conftest.$ac_ext
4815
4816   # OK, works on sane cases.  Now check whether nonexistent headers
4817   # can be detected and how.
4818   cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h.  */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h.  */
4824 #include <ac_nonexistent.h>
4825 _ACEOF
4826 if { (ac_try="$ac_cpp conftest.$ac_ext"
4827 case "(($ac_try" in
4828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829   *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4833   ac_status=$?
4834   grep -v '^ *+' conftest.er1 >conftest.err
4835   rm -f conftest.er1
4836   cat conftest.err >&5
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } >/dev/null && {
4839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4840          test ! -s conftest.err
4841        }; then
4842   # Broken: success on invalid input.
4843 continue
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848   # Passes both tests.
4849 ac_preproc_ok=:
4850 break
4851 fi
4852
4853 rm -f conftest.err conftest.$ac_ext
4854
4855 done
4856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4857 rm -f conftest.err conftest.$ac_ext
4858 if $ac_preproc_ok; then
4859   :
4860 else
4861   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4862 See \`config.log' for more details." >&5
4863 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4864 See \`config.log' for more details." >&2;}
4865    { (exit 1); exit 1; }; }
4866 fi
4867
4868 ac_ext=c
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873
4874
4875 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4877 if test "${ac_cv_header_stdc+set}" = set; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886 #include <stdlib.h>
4887 #include <stdarg.h>
4888 #include <string.h>
4889 #include <float.h>
4890
4891 int
4892 main ()
4893 {
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (ac_try="$ac_compile"
4901 case "(($ac_try" in
4902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903   *) ac_try_echo=$ac_try;;
4904 esac
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906   (eval "$ac_compile") 2>conftest.er1
4907   ac_status=$?
4908   grep -v '^ *+' conftest.er1 >conftest.err
4909   rm -f conftest.er1
4910   cat conftest.err >&5
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } && {
4913          test -z "$ac_c_werror_flag" ||
4914          test ! -s conftest.err
4915        } && test -s conftest.$ac_objext; then
4916   ac_cv_header_stdc=yes
4917 else
4918   echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921         ac_cv_header_stdc=no
4922 fi
4923
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925
4926 if test $ac_cv_header_stdc = yes; then
4927   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #include <string.h>
4935
4936 _ACEOF
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938   $EGREP "memchr" >/dev/null 2>&1; then
4939   :
4940 else
4941   ac_cv_header_stdc=no
4942 fi
4943 rm -f conftest*
4944
4945 fi
4946
4947 if test $ac_cv_header_stdc = yes; then
4948   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4949   cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #include <stdlib.h>
4956
4957 _ACEOF
4958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959   $EGREP "free" >/dev/null 2>&1; then
4960   :
4961 else
4962   ac_cv_header_stdc=no
4963 fi
4964 rm -f conftest*
4965
4966 fi
4967
4968 if test $ac_cv_header_stdc = yes; then
4969   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4970   if test "$cross_compiling" = yes; then
4971   :
4972 else
4973   cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 #include <ctype.h>
4980 #include <stdlib.h>
4981 #if ((' ' & 0x0FF) == 0x020)
4982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4984 #else
4985 # define ISLOWER(c) \
4986                    (('a' <= (c) && (c) <= 'i') \
4987                      || ('j' <= (c) && (c) <= 'r') \
4988                      || ('s' <= (c) && (c) <= 'z'))
4989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4990 #endif
4991
4992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4993 int
4994 main ()
4995 {
4996   int i;
4997   for (i = 0; i < 256; i++)
4998     if (XOR (islower (i), ISLOWER (i))
4999         || toupper (i) != TOUPPER (i))
5000       return 2;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest$ac_exeext
5005 if { (ac_try="$ac_link"
5006 case "(($ac_try" in
5007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008   *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011   (eval "$ac_link") 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5015   { (case "(($ac_try" in
5016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017   *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020   (eval "$ac_try") 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; }; then
5024   :
5025 else
5026   echo "$as_me: program exited with status $ac_status" >&5
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 ( exit $ac_status )
5031 ac_cv_header_stdc=no
5032 fi
5033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5034 fi
5035
5036
5037 fi
5038 fi
5039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5040 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5041 if test $ac_cv_header_stdc = yes; then
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define STDC_HEADERS 1
5045 _ACEOF
5046
5047 fi
5048
5049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5060                   inttypes.h stdint.h unistd.h
5061 do
5062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 $ac_includes_default
5075
5076 #include <$ac_header>
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5080 case "(($ac_try" in
5081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082   *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085   (eval "$ac_compile") 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } && {
5092          test -z "$ac_c_werror_flag" ||
5093          test ! -s conftest.err
5094        } && test -s conftest.$ac_objext; then
5095   eval "$as_ac_Header=yes"
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100         eval "$as_ac_Header=no"
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 ac_res=`eval echo '${'$as_ac_Header'}'`
5106                { echo "$as_me:$LINENO: result: $ac_res" >&5
5107 echo "${ECHO_T}$ac_res" >&6; }
5108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5109   cat >>confdefs.h <<_ACEOF
5110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 _ACEOF
5112
5113 fi
5114
5115 done
5116
5117
5118
5119 for ac_header in dlfcn.h
5120 do
5121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5123   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 fi
5128 ac_res=`eval echo '${'$as_ac_Header'}'`
5129                { echo "$as_me:$LINENO: result: $ac_res" >&5
5130 echo "${ECHO_T}$ac_res" >&6; }
5131 else
5132   # Is the header compilable?
5133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 $ac_includes_default
5142 #include <$ac_header>
5143 _ACEOF
5144 rm -f conftest.$ac_objext
5145 if { (ac_try="$ac_compile"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_compile") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } && {
5158          test -z "$ac_c_werror_flag" ||
5159          test ! -s conftest.err
5160        } && test -s conftest.$ac_objext; then
5161   ac_header_compiler=yes
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166         ac_header_compiler=no
5167 fi
5168
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5171 echo "${ECHO_T}$ac_header_compiler" >&6; }
5172
5173 # Is the header present?
5174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 #include <$ac_header>
5183 _ACEOF
5184 if { (ac_try="$ac_cpp conftest.$ac_ext"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } >/dev/null && {
5197          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198          test ! -s conftest.err
5199        }; then
5200   ac_header_preproc=yes
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205   ac_header_preproc=no
5206 fi
5207
5208 rm -f conftest.err conftest.$ac_ext
5209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5210 echo "${ECHO_T}$ac_header_preproc" >&6; }
5211
5212 # So?  What about this header?
5213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5214   yes:no: )
5215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5219     ac_header_preproc=yes
5220     ;;
5221   no:yes:* )
5222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5234     ( cat <<\_ASBOX
5235 ## ---------------------------------------- ##
5236 ## Report this to konn@users.sourceforge.jp ##
5237 ## ---------------------------------------- ##
5238 _ASBOX
5239      ) | sed "s/^/$as_me: WARNING:     /" >&2
5240     ;;
5241 esac
5242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   eval "$as_ac_Header=\$ac_header_preproc"
5248 fi
5249 ac_res=`eval echo '${'$as_ac_Header'}'`
5250                { echo "$as_me:$LINENO: result: $ac_res" >&5
5251 echo "${ECHO_T}$ac_res" >&6; }
5252
5253 fi
5254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5255   cat >>confdefs.h <<_ACEOF
5256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5257 _ACEOF
5258
5259 fi
5260
5261 done
5262
5263 ac_ext=cpp
5264 ac_cpp='$CXXCPP $CPPFLAGS'
5265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268 if test -z "$CXX"; then
5269   if test -n "$CCC"; then
5270     CXX=$CCC
5271   else
5272     if test -n "$ac_tool_prefix"; then
5273   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5274   do
5275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_prog_CXX+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   if test -n "$CXX"; then
5283   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290   for ac_exec_ext in '' $ac_executable_extensions; do
5291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 CXX=$ac_cv_prog_CXX
5303 if test -n "$CXX"; then
5304   { echo "$as_me:$LINENO: result: $CXX" >&5
5305 echo "${ECHO_T}$CXX" >&6; }
5306 else
5307   { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5309 fi
5310
5311
5312     test -n "$CXX" && break
5313   done
5314 fi
5315 if test -z "$CXX"; then
5316   ac_ct_CXX=$CXX
5317   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5318 do
5319   # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   if test -n "$ac_ct_CXX"; then
5327   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334   for ac_exec_ext in '' $ac_executable_extensions; do
5335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336     ac_cv_prog_ac_ct_CXX="$ac_prog"
5337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5347 if test -n "$ac_ct_CXX"; then
5348   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5349 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5350 else
5351   { echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6; }
5353 fi
5354
5355
5356   test -n "$ac_ct_CXX" && break
5357 done
5358
5359   if test "x$ac_ct_CXX" = x; then
5360     CXX="g++"
5361   else
5362     case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5365 whose name does not start with the host triplet.  If you think this
5366 configuration is useful to you, please write to autoconf@gnu.org." >&5
5367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5368 whose name does not start with the host triplet.  If you think this
5369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372     CXX=$ac_ct_CXX
5373   fi
5374 fi
5375
5376   fi
5377 fi
5378 # Provide some information about the compiler.
5379 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5380 ac_compiler=`set X $ac_compile; echo $2`
5381 { (ac_try="$ac_compiler --version >&5"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_compiler --version >&5") 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }
5391 { (ac_try="$ac_compiler -v >&5"
5392 case "(($ac_try" in
5393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394   *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397   (eval "$ac_compiler -v >&5") 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }
5401 { (ac_try="$ac_compiler -V >&5"
5402 case "(($ac_try" in
5403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404   *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407   (eval "$ac_compiler -V >&5") 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }
5411
5412 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5413 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5414 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423
5424 int
5425 main ()
5426 {
5427 #ifndef __GNUC__
5428        choke me
5429 #endif
5430
5431   ;
5432   return 0;
5433 }
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442   (eval "$ac_compile") 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } && {
5449          test -z "$ac_cxx_werror_flag" ||
5450          test ! -s conftest.err
5451        } && test -s conftest.$ac_objext; then
5452   ac_compiler_gnu=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457         ac_compiler_gnu=no
5458 fi
5459
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5462
5463 fi
5464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5465 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5466 GXX=`test $ac_compiler_gnu = yes && echo yes`
5467 ac_test_CXXFLAGS=${CXXFLAGS+set}
5468 ac_save_CXXFLAGS=$CXXFLAGS
5469 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5470 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5471 if test "${ac_cv_prog_cxx_g+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5475    ac_cxx_werror_flag=yes
5476    ac_cv_prog_cxx_g=no
5477    CXXFLAGS="-g"
5478    cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h.  */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h.  */
5484
5485 int
5486 main ()
5487 {
5488
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5495 case "(($ac_try" in
5496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497   *) ac_try_echo=$ac_try;;
5498 esac
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500   (eval "$ac_compile") 2>conftest.er1
5501   ac_status=$?
5502   grep -v '^ *+' conftest.er1 >conftest.err
5503   rm -f conftest.er1
5504   cat conftest.err >&5
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); } && {
5507          test -z "$ac_cxx_werror_flag" ||
5508          test ! -s conftest.err
5509        } && test -s conftest.$ac_objext; then
5510   ac_cv_prog_cxx_g=yes
5511 else
5512   echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515         CXXFLAGS=""
5516       cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522
5523 int
5524 main ()
5525 {
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535   *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538   (eval "$ac_compile") 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } && {
5545          test -z "$ac_cxx_werror_flag" ||
5546          test ! -s conftest.err
5547        } && test -s conftest.$ac_objext; then
5548   :
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5554          CXXFLAGS="-g"
5555          cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561
5562 int
5563 main ()
5564 {
5565
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577   (eval "$ac_compile") 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } && {
5584          test -z "$ac_cxx_werror_flag" ||
5585          test ! -s conftest.err
5586        } && test -s conftest.$ac_objext; then
5587   ac_cv_prog_cxx_g=yes
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5597
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5603 fi
5604 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5605 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5606 if test "$ac_test_CXXFLAGS" = set; then
5607   CXXFLAGS=$ac_save_CXXFLAGS
5608 elif test $ac_cv_prog_cxx_g = yes; then
5609   if test "$GXX" = yes; then
5610     CXXFLAGS="-g -O2"
5611   else
5612     CXXFLAGS="-g"
5613   fi
5614 else
5615   if test "$GXX" = yes; then
5616     CXXFLAGS="-O2"
5617   else
5618     CXXFLAGS=
5619   fi
5620 fi
5621 ac_ext=cpp
5622 ac_cpp='$CXXCPP $CPPFLAGS'
5623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5626
5627 depcc="$CXX"  am_compiler_list=
5628
5629 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5630 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5631 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5635   # We make a subdir and do the tests there.  Otherwise we can end up
5636   # making bogus files that we don't know about and never remove.  For
5637   # instance it was reported that on HP-UX the gcc test will end up
5638   # making a dummy file named `D' -- because `-MD' means `put the output
5639   # in D'.
5640   mkdir conftest.dir
5641   # Copy depcomp to subdir because otherwise we won't find it if we're
5642   # using a relative directory.
5643   cp "$am_depcomp" conftest.dir
5644   cd conftest.dir
5645   # We will build objects and dependencies in a subdirectory because
5646   # it helps to detect inapplicable dependency modes.  For instance
5647   # both Tru64's cc and ICC support -MD to output dependencies as a
5648   # side effect of compilation, but ICC will put the dependencies in
5649   # the current directory while Tru64 will put them in the object
5650   # directory.
5651   mkdir sub
5652
5653   am_cv_CXX_dependencies_compiler_type=none
5654   if test "$am_compiler_list" = ""; then
5655      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5656   fi
5657   for depmode in $am_compiler_list; do
5658     # Setup a source with many dependencies, because some compilers
5659     # like to wrap large dependency lists on column 80 (with \), and
5660     # we should not choose a depcomp mode which is confused by this.
5661     #
5662     # We need to recreate these files for each test, as the compiler may
5663     # overwrite some of them when testing with obscure command lines.
5664     # This happens at least with the AIX C compiler.
5665     : > sub/conftest.c
5666     for i in 1 2 3 4 5 6; do
5667       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5668       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5669       # Solaris 8's {/usr,}/bin/sh.
5670       touch sub/conftst$i.h
5671     done
5672     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5673
5674     case $depmode in
5675     nosideeffect)
5676       # after this tag, mechanisms are not by side-effect, so they'll
5677       # only be used when explicitly requested
5678       if test "x$enable_dependency_tracking" = xyes; then
5679         continue
5680       else
5681         break
5682       fi
5683       ;;
5684     none) break ;;
5685     esac
5686     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5687     # mode.  It turns out that the SunPro C++ compiler does not properly
5688     # handle `-M -o', and we need to detect this.
5689     if depmode=$depmode \
5690        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5691        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5692        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5693          >/dev/null 2>conftest.err &&
5694        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5695        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5696        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5697        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5698       # icc doesn't choke on unknown options, it will just issue warnings
5699       # or remarks (even with -Werror).  So we grep stderr for any message
5700       # that says an option was ignored or not supported.
5701       # When given -MP, icc 7.0 and 7.1 complain thusly:
5702       #   icc: Command line warning: ignoring option '-M'; no argument required
5703       # The diagnosis changed in icc 8.0:
5704       #   icc: Command line remark: option '-MP' not supported
5705       if (grep 'ignoring option' conftest.err ||
5706           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5707         am_cv_CXX_dependencies_compiler_type=$depmode
5708         break
5709       fi
5710     fi
5711   done
5712
5713   cd ..
5714   rm -rf conftest.dir
5715 else
5716   am_cv_CXX_dependencies_compiler_type=none
5717 fi
5718
5719 fi
5720 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5721 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5722 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5723
5724  if
5725   test "x$enable_dependency_tracking" != xno \
5726   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5727   am__fastdepCXX_TRUE=
5728   am__fastdepCXX_FALSE='#'
5729 else
5730   am__fastdepCXX_TRUE='#'
5731   am__fastdepCXX_FALSE=
5732 fi
5733
5734
5735
5736
5737 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5738     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5739     (test "X$CXX" != "Xg++"))) ; then
5740   ac_ext=cpp
5741 ac_cpp='$CXXCPP $CPPFLAGS'
5742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5745 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5746 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5747 if test -z "$CXXCPP"; then
5748   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751       # Double quotes because CXXCPP needs to be expanded
5752     for CXXCPP in "$CXX -E" "/lib/cpp"
5753     do
5754       ac_preproc_ok=false
5755 for ac_cxx_preproc_warn_flag in '' yes
5756 do
5757   # Use a header file that comes with gcc, so configuring glibc
5758   # with a fresh cross-compiler works.
5759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760   # <limits.h> exists even on freestanding compilers.
5761   # On the NeXT, cc -E runs the code through the compiler's parser,
5762   # not just through cpp. "Syntax error" is here to catch this case.
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #ifdef __STDC__
5770 # include <limits.h>
5771 #else
5772 # include <assert.h>
5773 #endif
5774                      Syntax error
5775 _ACEOF
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } >/dev/null && {
5789          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5790          test ! -s conftest.err
5791        }; then
5792   :
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797   # Broken: fails on valid input.
5798 continue
5799 fi
5800
5801 rm -f conftest.err conftest.$ac_ext
5802
5803   # OK, works on sane cases.  Now check whether nonexistent headers
5804   # can be detected and how.
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <ac_nonexistent.h>
5812 _ACEOF
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 case "(($ac_try" in
5815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816   *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } >/dev/null && {
5826          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827          test ! -s conftest.err
5828        }; then
5829   # Broken: success on invalid input.
5830 continue
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835   # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839
5840 rm -f conftest.err conftest.$ac_ext
5841
5842 done
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5846   break
5847 fi
5848
5849     done
5850     ac_cv_prog_CXXCPP=$CXXCPP
5851
5852 fi
5853   CXXCPP=$ac_cv_prog_CXXCPP
5854 else
5855   ac_cv_prog_CXXCPP=$CXXCPP
5856 fi
5857 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5858 echo "${ECHO_T}$CXXCPP" >&6; }
5859 ac_preproc_ok=false
5860 for ac_cxx_preproc_warn_flag in '' yes
5861 do
5862   # Use a header file that comes with gcc, so configuring glibc
5863   # with a fresh cross-compiler works.
5864   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5865   # <limits.h> exists even on freestanding compilers.
5866   # On the NeXT, cc -E runs the code through the compiler's parser,
5867   # not just through cpp. "Syntax error" is here to catch this case.
5868   cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h.  */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h.  */
5874 #ifdef __STDC__
5875 # include <limits.h>
5876 #else
5877 # include <assert.h>
5878 #endif
5879                      Syntax error
5880 _ACEOF
5881 if { (ac_try="$ac_cpp conftest.$ac_ext"
5882 case "(($ac_try" in
5883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884   *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5888   ac_status=$?
5889   grep -v '^ *+' conftest.er1 >conftest.err
5890   rm -f conftest.er1
5891   cat conftest.err >&5
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } >/dev/null && {
5894          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5895          test ! -s conftest.err
5896        }; then
5897   :
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902   # Broken: fails on valid input.
5903 continue
5904 fi
5905
5906 rm -f conftest.err conftest.$ac_ext
5907
5908   # OK, works on sane cases.  Now check whether nonexistent headers
5909   # can be detected and how.
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 #include <ac_nonexistent.h>
5917 _ACEOF
5918 if { (ac_try="$ac_cpp conftest.$ac_ext"
5919 case "(($ac_try" in
5920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921   *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925   ac_status=$?
5926   grep -v '^ *+' conftest.er1 >conftest.err
5927   rm -f conftest.er1
5928   cat conftest.err >&5
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } >/dev/null && {
5931          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5932          test ! -s conftest.err
5933        }; then
5934   # Broken: success on invalid input.
5935 continue
5936 else
5937   echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940   # Passes both tests.
5941 ac_preproc_ok=:
5942 break
5943 fi
5944
5945 rm -f conftest.err conftest.$ac_ext
5946
5947 done
5948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5949 rm -f conftest.err conftest.$ac_ext
5950 if $ac_preproc_ok; then
5951   :
5952 else
5953   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5954 See \`config.log' for more details." >&5
5955 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5956 See \`config.log' for more details." >&2;}
5957    { (exit 1); exit 1; }; }
5958 fi
5959
5960 ac_ext=cpp
5961 ac_cpp='$CXXCPP $CPPFLAGS'
5962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5965
5966 fi
5967
5968
5969 ac_ext=f
5970 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5971 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5973 if test -n "$ac_tool_prefix"; then
5974   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
5975   do
5976     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980 if test "${ac_cv_prog_F77+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   if test -n "$F77"; then
5984   ac_cv_prog_F77="$F77" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991   for ac_exec_ext in '' $ac_executable_extensions; do
5992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995     break 2
5996   fi
5997 done
5998 done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 F77=$ac_cv_prog_F77
6004 if test -n "$F77"; then
6005   { echo "$as_me:$LINENO: result: $F77" >&5
6006 echo "${ECHO_T}$F77" >&6; }
6007 else
6008   { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6010 fi
6011
6012
6013     test -n "$F77" && break
6014   done
6015 fi
6016 if test -z "$F77"; then
6017   ac_ct_F77=$F77
6018   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
6019 do
6020   # Extract the first word of "$ac_prog", so it can be a program name with args.
6021 set dummy $ac_prog; ac_word=$2
6022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   if test -n "$ac_ct_F77"; then
6028   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035   for ac_exec_ext in '' $ac_executable_extensions; do
6036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037     ac_cv_prog_ac_ct_F77="$ac_prog"
6038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6048 if test -n "$ac_ct_F77"; then
6049   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6050 echo "${ECHO_T}$ac_ct_F77" >&6; }
6051 else
6052   { echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6; }
6054 fi
6055
6056
6057   test -n "$ac_ct_F77" && break
6058 done
6059
6060   if test "x$ac_ct_F77" = x; then
6061     F77=""
6062   else
6063     case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6066 whose name does not start with the host triplet.  If you think this
6067 configuration is useful to you, please write to autoconf@gnu.org." >&5
6068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6069 whose name does not start with the host triplet.  If you think this
6070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6071 ac_tool_warned=yes ;;
6072 esac
6073     F77=$ac_ct_F77
6074   fi
6075 fi
6076
6077
6078 # Provide some information about the compiler.
6079 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6080 ac_compiler=`set X $ac_compile; echo $2`
6081 { (ac_try="$ac_compiler --version >&5"
6082 case "(($ac_try" in
6083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084   *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087   (eval "$ac_compiler --version >&5") 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }
6091 { (ac_try="$ac_compiler -v >&5"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097   (eval "$ac_compiler -v >&5") 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }
6101 { (ac_try="$ac_compiler -V >&5"
6102 case "(($ac_try" in
6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104   *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107   (eval "$ac_compiler -V >&5") 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }
6111 rm -f a.out
6112
6113 # If we don't use `.F' as extension, the preprocessor is not run on the
6114 # input file.  (Note that this only needs to work for GNU compilers.)
6115 ac_save_ext=$ac_ext
6116 ac_ext=F
6117 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6118 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6119 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   cat >conftest.$ac_ext <<_ACEOF
6123       program main
6124 #ifndef __GNUC__
6125        choke me
6126 #endif
6127
6128       end
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134   *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137   (eval "$ac_compile") 2>conftest.er1
6138   ac_status=$?
6139   grep -v '^ *+' conftest.er1 >conftest.err
6140   rm -f conftest.er1
6141   cat conftest.err >&5
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } && {
6144          test -z "$ac_f77_werror_flag" ||
6145          test ! -s conftest.err
6146        } && test -s conftest.$ac_objext; then
6147   ac_compiler_gnu=yes
6148 else
6149   echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152         ac_compiler_gnu=no
6153 fi
6154
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6157
6158 fi
6159 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6160 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6161 ac_ext=$ac_save_ext
6162 ac_test_FFLAGS=${FFLAGS+set}
6163 ac_save_FFLAGS=$FFLAGS
6164 FFLAGS=
6165 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6166 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6167 if test "${ac_cv_prog_f77_g+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   FFLAGS=-g
6171 cat >conftest.$ac_ext <<_ACEOF
6172       program main
6173
6174       end
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6178 case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_compile") 2>conftest.er1
6184   ac_status=$?
6185   grep -v '^ *+' conftest.er1 >conftest.err
6186   rm -f conftest.er1
6187   cat conftest.err >&5
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } && {
6190          test -z "$ac_f77_werror_flag" ||
6191          test ! -s conftest.err
6192        } && test -s conftest.$ac_objext; then
6193   ac_cv_prog_f77_g=yes
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198         ac_cv_prog_f77_g=no
6199 fi
6200
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202
6203 fi
6204 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6205 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6206 if test "$ac_test_FFLAGS" = set; then
6207   FFLAGS=$ac_save_FFLAGS
6208 elif test $ac_cv_prog_f77_g = yes; then
6209   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6210     FFLAGS="-g -O2"
6211   else
6212     FFLAGS="-g"
6213   fi
6214 else
6215   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6216     FFLAGS="-O2"
6217   else
6218     FFLAGS=
6219   fi
6220 fi
6221
6222 G77=`test $ac_compiler_gnu = yes && echo yes`
6223 ac_ext=c
6224 ac_cpp='$CPP $CPPFLAGS'
6225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228
6229
6230
6231 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6232
6233 # find the maximum length of command line arguments
6234 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6235 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6236 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239     i=0
6240   teststring="ABCD"
6241
6242   case $build_os in
6243   msdosdjgpp*)
6244     # On DJGPP, this test can blow up pretty badly due to problems in libc
6245     # (any single argument exceeding 2000 bytes causes a buffer overrun
6246     # during glob expansion).  Even if it were fixed, the result of this
6247     # check would be larger than it should be.
6248     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6249     ;;
6250
6251   gnu*)
6252     # Under GNU Hurd, this test is not required because there is
6253     # no limit to the length of command line arguments.
6254     # Libtool will interpret -1 as no limit whatsoever
6255     lt_cv_sys_max_cmd_len=-1;
6256     ;;
6257
6258   cygwin* | mingw*)
6259     # On Win9x/ME, this test blows up -- it succeeds, but takes
6260     # about 5 minutes as the teststring grows exponentially.
6261     # Worse, since 9x/ME are not pre-emptively multitasking,
6262     # you end up with a "frozen" computer, even though with patience
6263     # the test eventually succeeds (with a max line length of 256k).
6264     # Instead, let's just punt: use the minimum linelength reported by
6265     # all of the supported platforms: 8192 (on NT/2K/XP).
6266     lt_cv_sys_max_cmd_len=8192;
6267     ;;
6268
6269   amigaos*)
6270     # On AmigaOS with pdksh, this test takes hours, literally.
6271     # So we just punt and use a minimum line length of 8192.
6272     lt_cv_sys_max_cmd_len=8192;
6273     ;;
6274
6275   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6276     # This has been around since 386BSD, at least.  Likely further.
6277     if test -x /sbin/sysctl; then
6278       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6279     elif test -x /usr/sbin/sysctl; then
6280       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6281     else
6282       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6283     fi
6284     # And add a safety zone
6285     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6286     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6287     ;;
6288
6289   interix*)
6290     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6291     lt_cv_sys_max_cmd_len=196608
6292     ;;
6293
6294   osf*)
6295     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6296     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6297     # nice to cause kernel panics so lets avoid the loop below.
6298     # First set a reasonable default.
6299     lt_cv_sys_max_cmd_len=16384
6300     #
6301     if test -x /sbin/sysconfig; then
6302       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6303         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6304       esac
6305     fi
6306     ;;
6307   sco3.2v5*)
6308     lt_cv_sys_max_cmd_len=102400
6309     ;;
6310   sysv5* | sco5v6* | sysv4.2uw2*)
6311     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6312     if test -n "$kargmax"; then
6313       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6314     else
6315       lt_cv_sys_max_cmd_len=32768
6316     fi
6317     ;;
6318   *)
6319     # If test is not a shell built-in, we'll probably end up computing a
6320     # maximum length that is only half of the actual maximum length, but
6321     # we can't tell.
6322     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6323     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6324                = "XX$teststring") >/dev/null 2>&1 &&
6325             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6326             lt_cv_sys_max_cmd_len=$new_result &&
6327             test $i != 17 # 1/2 MB should be enough
6328     do
6329       i=`expr $i + 1`
6330       teststring=$teststring$teststring
6331     done
6332     teststring=
6333     # Add a significant safety factor because C++ compilers can tack on massive
6334     # amounts of additional arguments before passing them to the linker.
6335     # It appears as though 1/2 is a usable value.
6336     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6337     ;;
6338   esac
6339
6340 fi
6341
6342 if test -n $lt_cv_sys_max_cmd_len ; then
6343   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6344 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6345 else
6346   { echo "$as_me:$LINENO: result: none" >&5
6347 echo "${ECHO_T}none" >&6; }
6348 fi
6349
6350
6351
6352
6353 # Check for command to grab the raw symbol name followed by C symbol from nm.
6354 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6355 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6356 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359
6360 # These are sane defaults that work on at least a few old systems.
6361 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6362
6363 # Character class describing NM global symbol codes.
6364 symcode='[BCDEGRST]'
6365
6366 # Regexp to match symbols that can be accessed directly from C.
6367 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6368
6369 # Transform an extracted symbol line into a proper C declaration
6370 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6371
6372 # Transform an extracted symbol line into symbol name and symbol address
6373 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'"
6374
6375 # Define system-specific variables.
6376 case $host_os in
6377 aix*)
6378   symcode='[BCDT]'
6379   ;;
6380 cygwin* | mingw* | pw32*)
6381   symcode='[ABCDGISTW]'
6382   ;;
6383 hpux*) # Its linker distinguishes data from code symbols
6384   if test "$host_cpu" = ia64; then
6385     symcode='[ABCDEGRST]'
6386   fi
6387   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6388   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'"
6389   ;;
6390 linux* | k*bsd*-gnu)
6391   if test "$host_cpu" = ia64; then
6392     symcode='[ABCDGIRSTW]'
6393     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6394     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'"
6395   fi
6396   ;;
6397 irix* | nonstopux*)
6398   symcode='[BCDEGRST]'
6399   ;;
6400 osf*)
6401   symcode='[BCDEGQRST]'
6402   ;;
6403 solaris*)
6404   symcode='[BDRT]'
6405   ;;
6406 sco3.2v5*)
6407   symcode='[DT]'
6408   ;;
6409 sysv4.2uw2*)
6410   symcode='[DT]'
6411   ;;
6412 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6413   symcode='[ABDT]'
6414   ;;
6415 sysv4)
6416   symcode='[DFNSTU]'
6417   ;;
6418 esac
6419
6420 # Handle CRLF in mingw tool chain
6421 opt_cr=
6422 case $build_os in
6423 mingw*)
6424   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6425   ;;
6426 esac
6427
6428 # If we're using GNU nm, then use its standard symbol codes.
6429 case `$NM -V 2>&1` in
6430 *GNU* | *'with BFD'*)
6431   symcode='[ABCDGIRSTW]' ;;
6432 esac
6433
6434 # Try without a prefix undercore, then with it.
6435 for ac_symprfx in "" "_"; do
6436
6437   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6438   symxfrm="\\1 $ac_symprfx\\2 \\2"
6439
6440   # Write the raw and C identifiers.
6441   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6442
6443   # Check to see that the pipe works correctly.
6444   pipe_works=no
6445
6446   rm -f conftest*
6447   cat > conftest.$ac_ext <<EOF
6448 #ifdef __cplusplus
6449 extern "C" {
6450 #endif
6451 char nm_test_var;
6452 void nm_test_func(){}
6453 #ifdef __cplusplus
6454 }
6455 #endif
6456 int main(){nm_test_var='a';nm_test_func();return(0);}
6457 EOF
6458
6459   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460   (eval $ac_compile) 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; then
6464     # Now try to grab the symbols.
6465     nlist=conftest.nm
6466     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6467   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); } && test -s "$nlist"; then
6471       # Try sorting and uniquifying the output.
6472       if sort "$nlist" | uniq > "$nlist"T; then
6473         mv -f "$nlist"T "$nlist"
6474       else
6475         rm -f "$nlist"T
6476       fi
6477
6478       # Make sure that we snagged all the symbols we need.
6479       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6480         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6481           cat <<EOF > conftest.$ac_ext
6482 #ifdef __cplusplus
6483 extern "C" {
6484 #endif
6485
6486 EOF
6487           # Now generate the symbol file.
6488           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6489
6490           cat <<EOF >> conftest.$ac_ext
6491 #if defined (__STDC__) && __STDC__
6492 # define lt_ptr_t void *
6493 #else
6494 # define lt_ptr_t char *
6495 # define const
6496 #endif
6497
6498 /* The mapping between symbol names and symbols. */
6499 const struct {
6500   const char *name;
6501   lt_ptr_t address;
6502 }
6503 lt_preloaded_symbols[] =
6504 {
6505 EOF
6506           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6507           cat <<\EOF >> conftest.$ac_ext
6508   {0, (lt_ptr_t) 0}
6509 };
6510
6511 #ifdef __cplusplus
6512 }
6513 #endif
6514 EOF
6515           # Now try linking the two files.
6516           mv conftest.$ac_objext conftstm.$ac_objext
6517           lt_save_LIBS="$LIBS"
6518           lt_save_CFLAGS="$CFLAGS"
6519           LIBS="conftstm.$ac_objext"
6520           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6521           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522   (eval $ac_link) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6526             pipe_works=yes
6527           fi
6528           LIBS="$lt_save_LIBS"
6529           CFLAGS="$lt_save_CFLAGS"
6530         else
6531           echo "cannot find nm_test_func in $nlist" >&5
6532         fi
6533       else
6534         echo "cannot find nm_test_var in $nlist" >&5
6535       fi
6536     else
6537       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6538     fi
6539   else
6540     echo "$progname: failed program was:" >&5
6541     cat conftest.$ac_ext >&5
6542   fi
6543   rm -f conftest* conftst*
6544
6545   # Do not use the global_symbol_pipe unless it works.
6546   if test "$pipe_works" = yes; then
6547     break
6548   else
6549     lt_cv_sys_global_symbol_pipe=
6550   fi
6551 done
6552
6553 fi
6554
6555 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6556   lt_cv_sys_global_symbol_to_cdecl=
6557 fi
6558 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6559   { echo "$as_me:$LINENO: result: failed" >&5
6560 echo "${ECHO_T}failed" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: ok" >&5
6563 echo "${ECHO_T}ok" >&6; }
6564 fi
6565
6566 { echo "$as_me:$LINENO: checking for objdir" >&5
6567 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6568 if test "${lt_cv_objdir+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   rm -f .libs 2>/dev/null
6572 mkdir .libs 2>/dev/null
6573 if test -d .libs; then
6574   lt_cv_objdir=.libs
6575 else
6576   # MS-DOS does not allow filenames that begin with a dot.
6577   lt_cv_objdir=_libs
6578 fi
6579 rmdir .libs 2>/dev/null
6580 fi
6581 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6582 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6583 objdir=$lt_cv_objdir
6584
6585
6586
6587
6588
6589 case $host_os in
6590 aix3*)
6591   # AIX sometimes has problems with the GCC collect2 program.  For some
6592   # reason, if we set the COLLECT_NAMES environment variable, the problems
6593   # vanish in a puff of smoke.
6594   if test "X${COLLECT_NAMES+set}" != Xset; then
6595     COLLECT_NAMES=
6596     export COLLECT_NAMES
6597   fi
6598   ;;
6599 esac
6600
6601 # Sed substitution that helps us do robust quoting.  It backslashifies
6602 # metacharacters that are still active within double-quoted strings.
6603 Xsed='sed -e 1s/^X//'
6604 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6605
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6608
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6612
6613 # Sed substitution to avoid accidental globbing in evaled expressions
6614 no_glob_subst='s/\*/\\\*/g'
6615
6616 # Constants:
6617 rm="rm -f"
6618
6619 # Global variables:
6620 default_ofile=libtool
6621 can_build_shared=yes
6622
6623 # All known linkers require a `.a' archive for static linking (except MSVC,
6624 # which needs '.lib').
6625 libext=a
6626 ltmain="$ac_aux_dir/ltmain.sh"
6627 ofile="$default_ofile"
6628 with_gnu_ld="$lt_cv_prog_gnu_ld"
6629
6630 if test -n "$ac_tool_prefix"; then
6631   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}ar; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_prog_AR+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   if test -n "$AR"; then
6639   ac_cv_prog_AR="$AR" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646   for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_prog_AR="${ac_tool_prefix}ar"
6649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 AR=$ac_cv_prog_AR
6659 if test -n "$AR"; then
6660   { echo "$as_me:$LINENO: result: $AR" >&5
6661 echo "${ECHO_T}$AR" >&6; }
6662 else
6663   { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if test -z "$ac_cv_prog_AR"; then
6670   ac_ct_AR=$AR
6671   # Extract the first word of "ar", so it can be a program name with args.
6672 set dummy ar; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   if test -n "$ac_ct_AR"; then
6679   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_prog_ac_ct_AR="ar"
6689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6699 if test -n "$ac_ct_AR"; then
6700   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6701 echo "${ECHO_T}$ac_ct_AR" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707   if test "x$ac_ct_AR" = x; then
6708     AR="false"
6709   else
6710     case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713 whose name does not start with the host triplet.  If you think this
6714 configuration is useful to you, please write to autoconf@gnu.org." >&5
6715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716 whose name does not start with the host triplet.  If you think this
6717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720     AR=$ac_ct_AR
6721   fi
6722 else
6723   AR="$ac_cv_prog_AR"
6724 fi
6725
6726 if test -n "$ac_tool_prefix"; then
6727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_prog_RANLIB+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   if test -n "$RANLIB"; then
6735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742   for ac_exec_ext in '' $ac_executable_extensions; do
6743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 RANLIB=$ac_cv_prog_RANLIB
6755 if test -n "$RANLIB"; then
6756   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6757 echo "${ECHO_T}$RANLIB" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764 fi
6765 if test -z "$ac_cv_prog_RANLIB"; then
6766   ac_ct_RANLIB=$RANLIB
6767   # Extract the first word of "ranlib", so it can be a program name with args.
6768 set dummy ranlib; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   if test -n "$ac_ct_RANLIB"; then
6775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782   for ac_exec_ext in '' $ac_executable_extensions; do
6783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784     ac_cv_prog_ac_ct_RANLIB="ranlib"
6785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6795 if test -n "$ac_ct_RANLIB"; then
6796   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6797 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6798 else
6799   { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6801 fi
6802
6803   if test "x$ac_ct_RANLIB" = x; then
6804     RANLIB=":"
6805   else
6806     case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6809 whose name does not start with the host triplet.  If you think this
6810 configuration is useful to you, please write to autoconf@gnu.org." >&5
6811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6812 whose name does not start with the host triplet.  If you think this
6813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816     RANLIB=$ac_ct_RANLIB
6817   fi
6818 else
6819   RANLIB="$ac_cv_prog_RANLIB"
6820 fi
6821
6822 if test -n "$ac_tool_prefix"; then
6823   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}strip; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_prog_STRIP+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   if test -n "$STRIP"; then
6831   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 STRIP=$ac_cv_prog_STRIP
6851 if test -n "$STRIP"; then
6852   { echo "$as_me:$LINENO: result: $STRIP" >&5
6853 echo "${ECHO_T}$STRIP" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_STRIP"; then
6862   ac_ct_STRIP=$STRIP
6863   # Extract the first word of "strip", so it can be a program name with args.
6864 set dummy strip; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   if test -n "$ac_ct_STRIP"; then
6871   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878   for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_STRIP="strip"
6881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6891 if test -n "$ac_ct_STRIP"; then
6892   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6893 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6894 else
6895   { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6897 fi
6898
6899   if test "x$ac_ct_STRIP" = x; then
6900     STRIP=":"
6901   else
6902     case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6905 whose name does not start with the host triplet.  If you think this
6906 configuration is useful to you, please write to autoconf@gnu.org." >&5
6907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6908 whose name does not start with the host triplet.  If you think this
6909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912     STRIP=$ac_ct_STRIP
6913   fi
6914 else
6915   STRIP="$ac_cv_prog_STRIP"
6916 fi
6917
6918
6919 old_CC="$CC"
6920 old_CFLAGS="$CFLAGS"
6921
6922 # Set sane defaults for various variables
6923 test -z "$AR" && AR=ar
6924 test -z "$AR_FLAGS" && AR_FLAGS=cru
6925 test -z "$AS" && AS=as
6926 test -z "$CC" && CC=cc
6927 test -z "$LTCC" && LTCC=$CC
6928 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6929 test -z "$DLLTOOL" && DLLTOOL=dlltool
6930 test -z "$LD" && LD=ld
6931 test -z "$LN_S" && LN_S="ln -s"
6932 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6933 test -z "$NM" && NM=nm
6934 test -z "$SED" && SED=sed
6935 test -z "$OBJDUMP" && OBJDUMP=objdump
6936 test -z "$RANLIB" && RANLIB=:
6937 test -z "$STRIP" && STRIP=:
6938 test -z "$ac_objext" && ac_objext=o
6939
6940 # Determine commands to create old-style static archives.
6941 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6942 old_postinstall_cmds='chmod 644 $oldlib'
6943 old_postuninstall_cmds=
6944
6945 if test -n "$RANLIB"; then
6946   case $host_os in
6947   openbsd*)
6948     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6949     ;;
6950   *)
6951     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6952     ;;
6953   esac
6954   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6955 fi
6956
6957 for cc_temp in $compiler""; do
6958   case $cc_temp in
6959     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6960     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6961     \-*) ;;
6962     *) break;;
6963   esac
6964 done
6965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6966
6967
6968 # Only perform the check for file, if the check method requires it
6969 case $deplibs_check_method in
6970 file_magic*)
6971   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6972     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6973 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   case $MAGIC_CMD in
6978 [\\/*] |  ?:[\\/]*)
6979   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6980   ;;
6981 *)
6982   lt_save_MAGIC_CMD="$MAGIC_CMD"
6983   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6984   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6985   for ac_dir in $ac_dummy; do
6986     IFS="$lt_save_ifs"
6987     test -z "$ac_dir" && ac_dir=.
6988     if test -f $ac_dir/${ac_tool_prefix}file; then
6989       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6990       if test -n "$file_magic_test_file"; then
6991         case $deplibs_check_method in
6992         "file_magic "*)
6993           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6994           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6996             $EGREP "$file_magic_regex" > /dev/null; then
6997             :
6998           else
6999             cat <<EOF 1>&2
7000
7001 *** Warning: the command libtool uses to detect shared libraries,
7002 *** $file_magic_cmd, produces output that libtool cannot recognize.
7003 *** The result is that libtool may fail to recognize shared libraries
7004 *** as such.  This will affect the creation of libtool libraries that
7005 *** depend on shared libraries, but programs linked with such libtool
7006 *** libraries will work regardless of this problem.  Nevertheless, you
7007 *** may want to report the problem to your system manager and/or to
7008 *** bug-libtool@gnu.org
7009
7010 EOF
7011           fi ;;
7012         esac
7013       fi
7014       break
7015     fi
7016   done
7017   IFS="$lt_save_ifs"
7018   MAGIC_CMD="$lt_save_MAGIC_CMD"
7019   ;;
7020 esac
7021 fi
7022
7023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024 if test -n "$MAGIC_CMD"; then
7025   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7026 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7027 else
7028   { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7030 fi
7031
7032 if test -z "$lt_cv_path_MAGIC_CMD"; then
7033   if test -n "$ac_tool_prefix"; then
7034     { echo "$as_me:$LINENO: checking for file" >&5
7035 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7036 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   case $MAGIC_CMD in
7040 [\\/*] |  ?:[\\/]*)
7041   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7042   ;;
7043 *)
7044   lt_save_MAGIC_CMD="$MAGIC_CMD"
7045   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7046   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7047   for ac_dir in $ac_dummy; do
7048     IFS="$lt_save_ifs"
7049     test -z "$ac_dir" && ac_dir=.
7050     if test -f $ac_dir/file; then
7051       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7052       if test -n "$file_magic_test_file"; then
7053         case $deplibs_check_method in
7054         "file_magic "*)
7055           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7056           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7058             $EGREP "$file_magic_regex" > /dev/null; then
7059             :
7060           else
7061             cat <<EOF 1>&2
7062
7063 *** Warning: the command libtool uses to detect shared libraries,
7064 *** $file_magic_cmd, produces output that libtool cannot recognize.
7065 *** The result is that libtool may fail to recognize shared libraries
7066 *** as such.  This will affect the creation of libtool libraries that
7067 *** depend on shared libraries, but programs linked with such libtool
7068 *** libraries will work regardless of this problem.  Nevertheless, you
7069 *** may want to report the problem to your system manager and/or to
7070 *** bug-libtool@gnu.org
7071
7072 EOF
7073           fi ;;
7074         esac
7075       fi
7076       break
7077     fi
7078   done
7079   IFS="$lt_save_ifs"
7080   MAGIC_CMD="$lt_save_MAGIC_CMD"
7081   ;;
7082 esac
7083 fi
7084
7085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7086 if test -n "$MAGIC_CMD"; then
7087   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7088 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7089 else
7090   { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7092 fi
7093
7094   else
7095     MAGIC_CMD=:
7096   fi
7097 fi
7098
7099   fi
7100   ;;
7101 esac
7102
7103 enable_dlopen=no
7104 enable_win32_dll=no
7105
7106 # Check whether --enable-libtool-lock was given.
7107 if test "${enable_libtool_lock+set}" = set; then
7108   enableval=$enable_libtool_lock;
7109 fi
7110
7111 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7112
7113
7114 # Check whether --with-pic was given.
7115 if test "${with_pic+set}" = set; then
7116   withval=$with_pic; pic_mode="$withval"
7117 else
7118   pic_mode=default
7119 fi
7120
7121 test -z "$pic_mode" && pic_mode=default
7122
7123 # Use C for the default configuration in the libtool script
7124 tagname=
7125 lt_save_CC="$CC"
7126 ac_ext=c
7127 ac_cpp='$CPP $CPPFLAGS'
7128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7131
7132
7133 # Source file extension for C test sources.
7134 ac_ext=c
7135
7136 # Object file extension for compiled C test sources.
7137 objext=o
7138 objext=$objext
7139
7140 # Code to be used in simple compile tests
7141 lt_simple_compile_test_code="int some_variable = 0;\n"
7142
7143 # Code to be used in simple link tests
7144 lt_simple_link_test_code='int main(){return(0);}\n'
7145
7146
7147 # If no C compiler was specified, use CC.
7148 LTCC=${LTCC-"$CC"}
7149
7150 # If no C compiler flags were specified, use CFLAGS.
7151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7152
7153 # Allow CC to be a program name with arguments.
7154 compiler=$CC
7155
7156
7157 # save warnings/boilerplate of simple test code
7158 ac_outfile=conftest.$ac_objext
7159 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7161 _lt_compiler_boilerplate=`cat conftest.err`
7162 $rm conftest*
7163
7164 ac_outfile=conftest.$ac_objext
7165 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7167 _lt_linker_boilerplate=`cat conftest.err`
7168 $rm conftest*
7169
7170
7171
7172 lt_prog_compiler_no_builtin_flag=
7173
7174 if test "$GCC" = yes; then
7175   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7176
7177
7178 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7179 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7180 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183   lt_cv_prog_compiler_rtti_exceptions=no
7184   ac_outfile=conftest.$ac_objext
7185    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7186    lt_compiler_flag="-fno-rtti -fno-exceptions"
7187    # Insert the option either (1) after the last *FLAGS variable, or
7188    # (2) before a word containing "conftest.", or (3) at the end.
7189    # Note that $ac_compile itself does not contain backslashes and begins
7190    # with a dollar sign (not a hyphen), so the echo should work correctly.
7191    # The option is referenced via a variable to avoid confusing sed.
7192    lt_compile=`echo "$ac_compile" | $SED \
7193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7195    -e 's:$: $lt_compiler_flag:'`
7196    (eval echo "\"\$as_me:7196: $lt_compile\"" >&5)
7197    (eval "$lt_compile" 2>conftest.err)
7198    ac_status=$?
7199    cat conftest.err >&5
7200    echo "$as_me:7200: \$? = $ac_status" >&5
7201    if (exit $ac_status) && test -s "$ac_outfile"; then
7202      # The compiler can only warn and ignore the option if not recognized
7203      # So say no if there are warnings other than the usual output.
7204      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7205      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7206      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7207        lt_cv_prog_compiler_rtti_exceptions=yes
7208      fi
7209    fi
7210    $rm conftest*
7211
7212 fi
7213 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7214 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7215
7216 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7217     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7218 else
7219     :
7220 fi
7221
7222 fi
7223
7224 lt_prog_compiler_wl=
7225 lt_prog_compiler_pic=
7226 lt_prog_compiler_static=
7227
7228 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7229 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7230
7231   if test "$GCC" = yes; then
7232     lt_prog_compiler_wl='-Wl,'
7233     lt_prog_compiler_static='-static'
7234
7235     case $host_os in
7236       aix*)
7237       # All AIX code is PIC.
7238       if test "$host_cpu" = ia64; then
7239         # AIX 5 now supports IA64 processor
7240         lt_prog_compiler_static='-Bstatic'
7241       fi
7242       ;;
7243
7244     amigaos*)
7245       # FIXME: we need at least 68020 code to build shared libraries, but
7246       # adding the `-m68020' flag to GCC prevents building anything better,
7247       # like `-m68040'.
7248       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7249       ;;
7250
7251     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7252       # PIC is the default for these OSes.
7253       ;;
7254
7255     mingw* | pw32* | os2*)
7256       # This hack is so that the source file can tell whether it is being
7257       # built for inclusion in a dll (and should export symbols for example).
7258       lt_prog_compiler_pic='-DDLL_EXPORT'
7259       ;;
7260
7261     darwin* | rhapsody*)
7262       # PIC is the default on this platform
7263       # Common symbols not allowed in MH_DYLIB files
7264       lt_prog_compiler_pic='-fno-common'
7265       ;;
7266
7267     interix3*)
7268       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7269       # Instead, we relocate shared libraries at runtime.
7270       ;;
7271
7272     msdosdjgpp*)
7273       # Just because we use GCC doesn't mean we suddenly get shared libraries
7274       # on systems that don't support them.
7275       lt_prog_compiler_can_build_shared=no
7276       enable_shared=no
7277       ;;
7278
7279     sysv4*MP*)
7280       if test -d /usr/nec; then
7281         lt_prog_compiler_pic=-Kconform_pic
7282       fi
7283       ;;
7284
7285     hpux*)
7286       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7287       # not for PA HP-UX.
7288       case $host_cpu in
7289       hppa*64*|ia64*)
7290         # +Z the default
7291         ;;
7292       *)
7293         lt_prog_compiler_pic='-fPIC'
7294         ;;
7295       esac
7296       ;;
7297
7298     *)
7299       lt_prog_compiler_pic='-fPIC'
7300       ;;
7301     esac
7302   else
7303     # PORTME Check for flag to pass linker flags through the system compiler.
7304     case $host_os in
7305     aix*)
7306       lt_prog_compiler_wl='-Wl,'
7307       if test "$host_cpu" = ia64; then
7308         # AIX 5 now supports IA64 processor
7309         lt_prog_compiler_static='-Bstatic'
7310       else
7311         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7312       fi
7313       ;;
7314       darwin*)
7315         # PIC is the default on this platform
7316         # Common symbols not allowed in MH_DYLIB files
7317        case $cc_basename in
7318          xlc*)
7319          lt_prog_compiler_pic='-qnocommon'
7320          lt_prog_compiler_wl='-Wl,'
7321          ;;
7322        esac
7323        ;;
7324
7325     mingw* | pw32* | os2*)
7326       # This hack is so that the source file can tell whether it is being
7327       # built for inclusion in a dll (and should export symbols for example).
7328       lt_prog_compiler_pic='-DDLL_EXPORT'
7329       ;;
7330
7331     hpux9* | hpux10* | hpux11*)
7332       lt_prog_compiler_wl='-Wl,'
7333       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7334       # not for PA HP-UX.
7335       case $host_cpu in
7336       hppa*64*|ia64*)
7337         # +Z the default
7338         ;;
7339       *)
7340         lt_prog_compiler_pic='+Z'
7341         ;;
7342       esac
7343       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7344       lt_prog_compiler_static='${wl}-a ${wl}archive'
7345       ;;
7346
7347     irix5* | irix6* | nonstopux*)
7348       lt_prog_compiler_wl='-Wl,'
7349       # PIC (with -KPIC) is the default.
7350       lt_prog_compiler_static='-non_shared'
7351       ;;
7352
7353     newsos6)
7354       lt_prog_compiler_pic='-KPIC'
7355       lt_prog_compiler_static='-Bstatic'
7356       ;;
7357
7358     linux* | k*bsd*-gnu)
7359       case $cc_basename in
7360       icc* | ecc*)
7361         lt_prog_compiler_wl='-Wl,'
7362         lt_prog_compiler_pic='-KPIC'
7363         lt_prog_compiler_static='-static'
7364         ;;
7365       pgcc* | pgf77* | pgf90* | pgf95*)
7366         # Portland Group compilers (*not* the Pentium gcc compiler,
7367         # which looks to be a dead project)
7368         lt_prog_compiler_wl='-Wl,'
7369         lt_prog_compiler_pic='-fpic'
7370         lt_prog_compiler_static='-Bstatic'
7371         ;;
7372       ccc*)
7373         lt_prog_compiler_wl='-Wl,'
7374         # All Alpha code is PIC.
7375         lt_prog_compiler_static='-non_shared'
7376         ;;
7377       esac
7378       ;;
7379
7380     osf3* | osf4* | osf5*)
7381       lt_prog_compiler_wl='-Wl,'
7382       # All OSF/1 code is PIC.
7383       lt_prog_compiler_static='-non_shared'
7384       ;;
7385
7386     solaris*)
7387       lt_prog_compiler_pic='-KPIC'
7388       lt_prog_compiler_static='-Bstatic'
7389       case $cc_basename in
7390       f77* | f90* | f95*)
7391         lt_prog_compiler_wl='-Qoption ld ';;
7392       *)
7393         lt_prog_compiler_wl='-Wl,';;
7394       esac
7395       ;;
7396
7397     sunos4*)
7398       lt_prog_compiler_wl='-Qoption ld '
7399       lt_prog_compiler_pic='-PIC'
7400       lt_prog_compiler_static='-Bstatic'
7401       ;;
7402
7403     sysv4 | sysv4.2uw2* | sysv4.3*)
7404       lt_prog_compiler_wl='-Wl,'
7405       lt_prog_compiler_pic='-KPIC'
7406       lt_prog_compiler_static='-Bstatic'
7407       ;;
7408
7409     sysv4*MP*)
7410       if test -d /usr/nec ;then
7411         lt_prog_compiler_pic='-Kconform_pic'
7412         lt_prog_compiler_static='-Bstatic'
7413       fi
7414       ;;
7415
7416     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7417       lt_prog_compiler_wl='-Wl,'
7418       lt_prog_compiler_pic='-KPIC'
7419       lt_prog_compiler_static='-Bstatic'
7420       ;;
7421
7422     unicos*)
7423       lt_prog_compiler_wl='-Wl,'
7424       lt_prog_compiler_can_build_shared=no
7425       ;;
7426
7427     uts4*)
7428       lt_prog_compiler_pic='-pic'
7429       lt_prog_compiler_static='-Bstatic'
7430       ;;
7431
7432     *)
7433       lt_prog_compiler_can_build_shared=no
7434       ;;
7435     esac
7436   fi
7437
7438 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7439 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7440
7441 #
7442 # Check to make sure the PIC flag actually works.
7443 #
7444 if test -n "$lt_prog_compiler_pic"; then
7445
7446 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7447 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7448 if test "${lt_prog_compiler_pic_works+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   lt_prog_compiler_pic_works=no
7452   ac_outfile=conftest.$ac_objext
7453    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7454    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7455    # Insert the option either (1) after the last *FLAGS variable, or
7456    # (2) before a word containing "conftest.", or (3) at the end.
7457    # Note that $ac_compile itself does not contain backslashes and begins
7458    # with a dollar sign (not a hyphen), so the echo should work correctly.
7459    # The option is referenced via a variable to avoid confusing sed.
7460    lt_compile=`echo "$ac_compile" | $SED \
7461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7463    -e 's:$: $lt_compiler_flag:'`
7464    (eval echo "\"\$as_me:7464: $lt_compile\"" >&5)
7465    (eval "$lt_compile" 2>conftest.err)
7466    ac_status=$?
7467    cat conftest.err >&5
7468    echo "$as_me:7468: \$? = $ac_status" >&5
7469    if (exit $ac_status) && test -s "$ac_outfile"; then
7470      # The compiler can only warn and ignore the option if not recognized
7471      # So say no if there are warnings other than the usual output.
7472      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7473      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7474      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7475        lt_prog_compiler_pic_works=yes
7476      fi
7477    fi
7478    $rm conftest*
7479
7480 fi
7481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7482 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7483
7484 if test x"$lt_prog_compiler_pic_works" = xyes; then
7485     case $lt_prog_compiler_pic in
7486      "" | " "*) ;;
7487      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7488      esac
7489 else
7490     lt_prog_compiler_pic=
7491      lt_prog_compiler_can_build_shared=no
7492 fi
7493
7494 fi
7495 case $host_os in
7496   # For platforms which do not support PIC, -DPIC is meaningless:
7497   *djgpp*)
7498     lt_prog_compiler_pic=
7499     ;;
7500   *)
7501     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7502     ;;
7503 esac
7504
7505 #
7506 # Check to make sure the static flag actually works.
7507 #
7508 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7509 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7510 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7511 if test "${lt_prog_compiler_static_works+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   lt_prog_compiler_static_works=no
7515    save_LDFLAGS="$LDFLAGS"
7516    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7517    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7518    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7519      # The linker can only warn and ignore the option if not recognized
7520      # So say no if there are warnings
7521      if test -s conftest.err; then
7522        # Append any errors to the config.log.
7523        cat conftest.err 1>&5
7524        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7525        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7526        if diff conftest.exp conftest.er2 >/dev/null; then
7527          lt_prog_compiler_static_works=yes
7528        fi
7529      else
7530        lt_prog_compiler_static_works=yes
7531      fi
7532    fi
7533    $rm conftest*
7534    LDFLAGS="$save_LDFLAGS"
7535
7536 fi
7537 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7538 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7539
7540 if test x"$lt_prog_compiler_static_works" = xyes; then
7541     :
7542 else
7543     lt_prog_compiler_static=
7544 fi
7545
7546
7547 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   lt_cv_prog_compiler_c_o=no
7553    $rm -r conftest 2>/dev/null
7554    mkdir conftest
7555    cd conftest
7556    mkdir out
7557    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7558
7559    lt_compiler_flag="-o out/conftest2.$ac_objext"
7560    # Insert the option either (1) after the last *FLAGS variable, or
7561    # (2) before a word containing "conftest.", or (3) at the end.
7562    # Note that $ac_compile itself does not contain backslashes and begins
7563    # with a dollar sign (not a hyphen), so the echo should work correctly.
7564    lt_compile=`echo "$ac_compile" | $SED \
7565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567    -e 's:$: $lt_compiler_flag:'`
7568    (eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
7569    (eval "$lt_compile" 2>out/conftest.err)
7570    ac_status=$?
7571    cat out/conftest.err >&5
7572    echo "$as_me:7572: \$? = $ac_status" >&5
7573    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7574    then
7575      # The compiler can only warn and ignore the option if not recognized
7576      # So say no if there are warnings
7577      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7578      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7579      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7580        lt_cv_prog_compiler_c_o=yes
7581      fi
7582    fi
7583    chmod u+w . 2>&5
7584    $rm conftest*
7585    # SGI C++ compiler will create directory out/ii_files/ for
7586    # template instantiation
7587    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7588    $rm out/* && rmdir out
7589    cd ..
7590    rmdir conftest
7591    $rm conftest*
7592
7593 fi
7594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7595 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7596
7597
7598 hard_links="nottested"
7599 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7600   # do not overwrite the value of need_locks provided by the user
7601   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7603   hard_links=yes
7604   $rm conftest*
7605   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7606   touch conftest.a
7607   ln conftest.a conftest.b 2>&5 || hard_links=no
7608   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7609   { echo "$as_me:$LINENO: result: $hard_links" >&5
7610 echo "${ECHO_T}$hard_links" >&6; }
7611   if test "$hard_links" = no; then
7612     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7614     need_locks=warn
7615   fi
7616 else
7617   need_locks=no
7618 fi
7619
7620 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7621 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7622
7623   runpath_var=
7624   allow_undefined_flag=
7625   enable_shared_with_static_runtimes=no
7626   archive_cmds=
7627   archive_expsym_cmds=
7628   old_archive_From_new_cmds=
7629   old_archive_from_expsyms_cmds=
7630   export_dynamic_flag_spec=
7631   whole_archive_flag_spec=
7632   thread_safe_flag_spec=
7633   hardcode_libdir_flag_spec=
7634   hardcode_libdir_flag_spec_ld=
7635   hardcode_libdir_separator=
7636   hardcode_direct=no
7637   hardcode_minus_L=no
7638   hardcode_shlibpath_var=unsupported
7639   link_all_deplibs=unknown
7640   hardcode_automatic=no
7641   module_cmds=
7642   module_expsym_cmds=
7643   always_export_symbols=no
7644   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7645   # include_expsyms should be a list of space-separated symbols to be *always*
7646   # included in the symbol list
7647   include_expsyms=
7648   # exclude_expsyms can be an extended regexp of symbols to exclude
7649   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7650   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7651   # as well as any symbol that contains `d'.
7652   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7653   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7654   # platforms (ab)use it in PIC code, but their linkers get confused if
7655   # the symbol is explicitly referenced.  Since portable code cannot
7656   # rely on this symbol name, it's probably fine to never include it in
7657   # preloaded symbol tables.
7658   extract_expsyms_cmds=
7659   # Just being paranoid about ensuring that cc_basename is set.
7660   for cc_temp in $compiler""; do
7661   case $cc_temp in
7662     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7663     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7664     \-*) ;;
7665     *) break;;
7666   esac
7667 done
7668 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7669
7670   case $host_os in
7671   cygwin* | mingw* | pw32*)
7672     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7673     # When not using gcc, we currently assume that we are using
7674     # Microsoft Visual C++.
7675     if test "$GCC" != yes; then
7676       with_gnu_ld=no
7677     fi
7678     ;;
7679   interix*)
7680     # we just hope/assume this is gcc and not c89 (= MSVC++)
7681     with_gnu_ld=yes
7682     ;;
7683   openbsd*)
7684     with_gnu_ld=no
7685     ;;
7686   esac
7687
7688   ld_shlibs=yes
7689   if test "$with_gnu_ld" = yes; then
7690     # If archive_cmds runs LD, not CC, wlarc should be empty
7691     wlarc='${wl}'
7692
7693     # Set some defaults for GNU ld with shared library support. These
7694     # are reset later if shared libraries are not supported. Putting them
7695     # here allows them to be overridden if necessary.
7696     runpath_var=LD_RUN_PATH
7697     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7698     export_dynamic_flag_spec='${wl}--export-dynamic'
7699     # ancient GNU ld didn't support --whole-archive et. al.
7700     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7701         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7702       else
7703         whole_archive_flag_spec=
7704     fi
7705     supports_anon_versioning=no
7706     case `$LD -v 2>/dev/null` in
7707       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7708       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7709       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7710       *\ 2.11.*) ;; # other 2.11 versions
7711       *) supports_anon_versioning=yes ;;
7712     esac
7713
7714     # See if GNU ld supports shared libraries.
7715     case $host_os in
7716     aix3* | aix4* | aix5*)
7717       # On AIX/PPC, the GNU linker is very broken
7718       if test "$host_cpu" != ia64; then
7719         ld_shlibs=no
7720         cat <<EOF 1>&2
7721
7722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7723 *** to be unable to reliably create shared libraries on AIX.
7724 *** Therefore, libtool is disabling shared libraries support.  If you
7725 *** really care for shared libraries, you may want to modify your PATH
7726 *** so that a non-GNU linker is found, and then restart.
7727
7728 EOF
7729       fi
7730       ;;
7731
7732     amigaos*)
7733       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)'
7734       hardcode_libdir_flag_spec='-L$libdir'
7735       hardcode_minus_L=yes
7736
7737       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7738       # that the semantics of dynamic libraries on AmigaOS, at least up
7739       # to version 4, is to share data among multiple programs linked
7740       # with the same dynamic library.  Since this doesn't match the
7741       # behavior of shared libraries on other platforms, we can't use
7742       # them.
7743       ld_shlibs=no
7744       ;;
7745
7746     beos*)
7747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748         allow_undefined_flag=unsupported
7749         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7750         # support --undefined.  This deserves some investigation.  FIXME
7751         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752       else
7753         ld_shlibs=no
7754       fi
7755       ;;
7756
7757     cygwin* | mingw* | pw32*)
7758       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7759       # as there is no search path for DLLs.
7760       hardcode_libdir_flag_spec='-L$libdir'
7761       allow_undefined_flag=unsupported
7762       always_export_symbols=no
7763       enable_shared_with_static_runtimes=yes
7764       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7765
7766       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7768         # If the export-symbols file already is a .def file (1st line
7769         # is EXPORTS), use it as is; otherwise, prepend...
7770         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7771           cp $export_symbols $output_objdir/$soname.def;
7772         else
7773           echo EXPORTS > $output_objdir/$soname.def;
7774           cat $export_symbols >> $output_objdir/$soname.def;
7775         fi~
7776         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7777       else
7778         ld_shlibs=no
7779       fi
7780       ;;
7781
7782     interix3*)
7783       hardcode_direct=no
7784       hardcode_shlibpath_var=no
7785       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7786       export_dynamic_flag_spec='${wl}-E'
7787       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7788       # Instead, shared libraries are loaded at an image base (0x10000000 by
7789       # default) and relocated if they conflict, which is a slow very memory
7790       # consuming and fragmenting process.  To avoid this, we pick a random,
7791       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7792       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7793       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7794       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'
7795       ;;
7796
7797     linux* | k*bsd*-gnu)
7798       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7799         tmp_addflag=
7800         case $cc_basename,$host_cpu in
7801         pgcc*)                          # Portland Group C compiler
7802           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'
7803           tmp_addflag=' $pic_flag'
7804           ;;
7805         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7806           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'
7807           tmp_addflag=' $pic_flag -Mnomain' ;;
7808         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7809           tmp_addflag=' -i_dynamic' ;;
7810         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7811           tmp_addflag=' -i_dynamic -nofor_main' ;;
7812         ifc* | ifort*)                  # Intel Fortran compiler
7813           tmp_addflag=' -nofor_main' ;;
7814         esac
7815         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816
7817         if test $supports_anon_versioning = yes; then
7818           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7819   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7820   $echo "local: *; };" >> $output_objdir/$libname.ver~
7821           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7822         fi
7823         link_all_deplibs=no
7824       else
7825         ld_shlibs=no
7826       fi
7827       ;;
7828
7829     netbsd* | netbsdelf*-gnu)
7830       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7831         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7832         wlarc=
7833       else
7834         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7835         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7836       fi
7837       ;;
7838
7839     solaris*)
7840       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7841         ld_shlibs=no
7842         cat <<EOF 1>&2
7843
7844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7845 *** create shared libraries on Solaris systems.  Therefore, libtool
7846 *** is disabling shared libraries support.  We urge you to upgrade GNU
7847 *** binutils to release 2.9.1 or newer.  Another option is to modify
7848 *** your PATH or compiler configuration so that the native linker is
7849 *** used, and then restart.
7850
7851 EOF
7852       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7853         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7855       else
7856         ld_shlibs=no
7857       fi
7858       ;;
7859
7860     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7861       case `$LD -v 2>&1` in
7862         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7863         ld_shlibs=no
7864         cat <<_LT_EOF 1>&2
7865
7866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7867 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7868 *** is disabling shared libraries support.  We urge you to upgrade GNU
7869 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7870 *** your PATH or compiler configuration so that the native linker is
7871 *** used, and then restart.
7872
7873 _LT_EOF
7874         ;;
7875         *)
7876           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7877             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7878             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7879             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7880           else
7881             ld_shlibs=no
7882           fi
7883         ;;
7884       esac
7885       ;;
7886
7887     sunos4*)
7888       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7889       wlarc=
7890       hardcode_direct=yes
7891       hardcode_shlibpath_var=no
7892       ;;
7893
7894     *)
7895       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7896         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7897         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7898       else
7899         ld_shlibs=no
7900       fi
7901       ;;
7902     esac
7903
7904     if test "$ld_shlibs" = no; then
7905       runpath_var=
7906       hardcode_libdir_flag_spec=
7907       export_dynamic_flag_spec=
7908       whole_archive_flag_spec=
7909     fi
7910   else
7911     # PORTME fill in a description of your system's linker (not GNU ld)
7912     case $host_os in
7913     aix3*)
7914       allow_undefined_flag=unsupported
7915       always_export_symbols=yes
7916       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'
7917       # Note: this linker hardcodes the directories in LIBPATH if there
7918       # are no directories specified by -L.
7919       hardcode_minus_L=yes
7920       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7921         # Neither direct hardcoding nor static linking is supported with a
7922         # broken collect2.
7923         hardcode_direct=unsupported
7924       fi
7925       ;;
7926
7927     aix4* | aix5*)
7928       if test "$host_cpu" = ia64; then
7929         # On IA64, the linker does run time linking by default, so we don't
7930         # have to do anything special.
7931         aix_use_runtimelinking=no
7932         exp_sym_flag='-Bexport'
7933         no_entry_flag=""
7934       else
7935         # If we're using GNU nm, then we don't want the "-C" option.
7936         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7937         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7938           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'
7939         else
7940           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'
7941         fi
7942         aix_use_runtimelinking=no
7943
7944         # Test if we are trying to use run time linking or normal
7945         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7946         # need to do runtime linking.
7947         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7948           for ld_flag in $LDFLAGS; do
7949           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7950             aix_use_runtimelinking=yes
7951             break
7952           fi
7953           done
7954           ;;
7955         esac
7956
7957         exp_sym_flag='-bexport'
7958         no_entry_flag='-bnoentry'
7959       fi
7960
7961       # When large executables or shared objects are built, AIX ld can
7962       # have problems creating the table of contents.  If linking a library
7963       # or program results in "error TOC overflow" add -mminimal-toc to
7964       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7965       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7966
7967       archive_cmds=''
7968       hardcode_direct=yes
7969       hardcode_libdir_separator=':'
7970       link_all_deplibs=yes
7971
7972       if test "$GCC" = yes; then
7973         case $host_os in aix4.[012]|aix4.[012].*)
7974         # We only want to do this on AIX 4.2 and lower, the check
7975         # below for broken collect2 doesn't work under 4.3+
7976           collect2name=`${CC} -print-prog-name=collect2`
7977           if test -f "$collect2name" && \
7978            strings "$collect2name" | grep resolve_lib_name >/dev/null
7979           then
7980           # We have reworked collect2
7981           hardcode_direct=yes
7982           else
7983           # We have old collect2
7984           hardcode_direct=unsupported
7985           # It fails to find uninstalled libraries when the uninstalled
7986           # path is not listed in the libpath.  Setting hardcode_minus_L
7987           # to unsupported forces relinking
7988           hardcode_minus_L=yes
7989           hardcode_libdir_flag_spec='-L$libdir'
7990           hardcode_libdir_separator=
7991           fi
7992           ;;
7993         esac
7994         shared_flag='-shared'
7995         if test "$aix_use_runtimelinking" = yes; then
7996           shared_flag="$shared_flag "'${wl}-G'
7997         fi
7998       else
7999         # not using gcc
8000         if test "$host_cpu" = ia64; then
8001         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8002         # chokes on -Wl,-G. The following line is correct:
8003           shared_flag='-G'
8004         else
8005           if test "$aix_use_runtimelinking" = yes; then
8006             shared_flag='${wl}-G'
8007           else
8008             shared_flag='${wl}-bM:SRE'
8009           fi
8010         fi
8011       fi
8012
8013       # It seems that -bexpall does not export symbols beginning with
8014       # underscore (_), so it is better to generate a list of symbols to export.
8015       always_export_symbols=yes
8016       if test "$aix_use_runtimelinking" = yes; then
8017         # Warning - without using the other runtime loading flags (-brtl),
8018         # -berok will link without error, but may produce a broken library.
8019         allow_undefined_flag='-berok'
8020        # Determine the default libpath from the value encoded in an empty executable.
8021        cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027
8028 int
8029 main ()
8030 {
8031
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (ac_try="$ac_link"
8038 case "(($ac_try" in
8039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040   *) ac_try_echo=$ac_try;;
8041 esac
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043   (eval "$ac_link") 2>conftest.er1
8044   ac_status=$?
8045   grep -v '^ *+' conftest.er1 >conftest.err
8046   rm -f conftest.er1
8047   cat conftest.err >&5
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } && {
8050          test -z "$ac_c_werror_flag" ||
8051          test ! -s conftest.err
8052        } && test -s conftest$ac_exeext &&
8053        $as_test_x conftest$ac_exeext; then
8054
8055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8056 }'`
8057 # Check for a 64-bit object if we didn't find anything.
8058 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; }
8059 }'`; fi
8060 else
8061   echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064
8065 fi
8066
8067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8068       conftest$ac_exeext conftest.$ac_ext
8069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8070
8071        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8072         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"
8073        else
8074         if test "$host_cpu" = ia64; then
8075           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8076           allow_undefined_flag="-z nodefs"
8077           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"
8078         else
8079          # Determine the default libpath from the value encoded in an empty executable.
8080          cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086
8087 int
8088 main ()
8089 {
8090
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (ac_try="$ac_link"
8097 case "(($ac_try" in
8098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099   *) ac_try_echo=$ac_try;;
8100 esac
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102   (eval "$ac_link") 2>conftest.er1
8103   ac_status=$?
8104   grep -v '^ *+' conftest.er1 >conftest.err
8105   rm -f conftest.er1
8106   cat conftest.err >&5
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } && {
8109          test -z "$ac_c_werror_flag" ||
8110          test ! -s conftest.err
8111        } && test -s conftest$ac_exeext &&
8112        $as_test_x conftest$ac_exeext; then
8113
8114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8115 }'`
8116 # Check for a 64-bit object if we didn't find anything.
8117 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; }
8118 }'`; fi
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123
8124 fi
8125
8126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8127       conftest$ac_exeext conftest.$ac_ext
8128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8129
8130          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8131           # Warning - without using the other run time loading flags,
8132           # -berok will link without error, but may produce a broken library.
8133           no_undefined_flag=' ${wl}-bernotok'
8134           allow_undefined_flag=' ${wl}-berok'
8135           # Exported symbols can be pulled into shared objects from archives
8136           whole_archive_flag_spec='$convenience'
8137           archive_cmds_need_lc=yes
8138           # This is similar to how AIX traditionally builds its shared libraries.
8139           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'
8140         fi
8141       fi
8142       ;;
8143
8144     amigaos*)
8145       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)'
8146       hardcode_libdir_flag_spec='-L$libdir'
8147       hardcode_minus_L=yes
8148       # see comment about different semantics on the GNU ld section
8149       ld_shlibs=no
8150       ;;
8151
8152     bsdi[45]*)
8153       export_dynamic_flag_spec=-rdynamic
8154       ;;
8155
8156     cygwin* | mingw* | pw32*)
8157       # When not using gcc, we currently assume that we are using
8158       # Microsoft Visual C++.
8159       # hardcode_libdir_flag_spec is actually meaningless, as there is
8160       # no search path for DLLs.
8161       hardcode_libdir_flag_spec=' '
8162       allow_undefined_flag=unsupported
8163       # Tell ltmain to make .lib files, not .a files.
8164       libext=lib
8165       # Tell ltmain to make .dll files, not .so files.
8166       shrext_cmds=".dll"
8167       # FIXME: Setting linknames here is a bad hack.
8168       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8169       # The linker will automatically build a .lib file if we build a DLL.
8170       old_archive_From_new_cmds='true'
8171       # FIXME: Should let the user specify the lib program.
8172       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8173       fix_srcfile_path='`cygpath -w "$srcfile"`'
8174       enable_shared_with_static_runtimes=yes
8175       ;;
8176
8177     darwin* | rhapsody*)
8178       case $host_os in
8179         rhapsody* | darwin1.[012])
8180          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8181          ;;
8182        *) # Darwin 1.3 on
8183          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8184            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8185          else
8186            case ${MACOSX_DEPLOYMENT_TARGET} in
8187              10.[012])
8188                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8189                ;;
8190              10.*)
8191                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8192                ;;
8193            esac
8194          fi
8195          ;;
8196       esac
8197       archive_cmds_need_lc=no
8198       hardcode_direct=no
8199       hardcode_automatic=yes
8200       hardcode_shlibpath_var=unsupported
8201       whole_archive_flag_spec=''
8202       link_all_deplibs=yes
8203     if test "$GCC" = yes ; then
8204         output_verbose_link_cmd='echo'
8205         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8206       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8207       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8208       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}'
8209       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}'
8210     else
8211       case $cc_basename in
8212         xlc*)
8213          output_verbose_link_cmd='echo'
8214          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8215          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8216           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8217          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}'
8218           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}'
8219           ;;
8220        *)
8221          ld_shlibs=no
8222           ;;
8223       esac
8224     fi
8225       ;;
8226
8227     dgux*)
8228       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8229       hardcode_libdir_flag_spec='-L$libdir'
8230       hardcode_shlibpath_var=no
8231       ;;
8232
8233     freebsd1*)
8234       ld_shlibs=no
8235       ;;
8236
8237     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8238     # support.  Future versions do this automatically, but an explicit c++rt0.o
8239     # does not break anything, and helps significantly (at the cost of a little
8240     # extra space).
8241     freebsd2.2*)
8242       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8243       hardcode_libdir_flag_spec='-R$libdir'
8244       hardcode_direct=yes
8245       hardcode_shlibpath_var=no
8246       ;;
8247
8248     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8249     freebsd2*)
8250       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8251       hardcode_direct=yes
8252       hardcode_minus_L=yes
8253       hardcode_shlibpath_var=no
8254       ;;
8255
8256     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8257     freebsd* | dragonfly*)
8258       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8259       hardcode_libdir_flag_spec='-R$libdir'
8260       hardcode_direct=yes
8261       hardcode_shlibpath_var=no
8262       ;;
8263
8264     hpux9*)
8265       if test "$GCC" = yes; then
8266         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'
8267       else
8268         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'
8269       fi
8270       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8271       hardcode_libdir_separator=:
8272       hardcode_direct=yes
8273
8274       # hardcode_minus_L: Not really in the search PATH,
8275       # but as the default location of the library.
8276       hardcode_minus_L=yes
8277       export_dynamic_flag_spec='${wl}-E'
8278       ;;
8279
8280     hpux10*)
8281       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8282         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8283       else
8284         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8285       fi
8286       if test "$with_gnu_ld" = no; then
8287         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8288         hardcode_libdir_separator=:
8289
8290         hardcode_direct=yes
8291         export_dynamic_flag_spec='${wl}-E'
8292
8293         # hardcode_minus_L: Not really in the search PATH,
8294         # but as the default location of the library.
8295         hardcode_minus_L=yes
8296       fi
8297       ;;
8298
8299     hpux11*)
8300       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8301         case $host_cpu in
8302         hppa*64*)
8303           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8304           ;;
8305         ia64*)
8306           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8307           ;;
8308         *)
8309           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8310           ;;
8311         esac
8312       else
8313         case $host_cpu in
8314         hppa*64*)
8315           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8316           ;;
8317         ia64*)
8318           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8319           ;;
8320         *)
8321           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8322           ;;
8323         esac
8324       fi
8325       if test "$with_gnu_ld" = no; then
8326         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8327         hardcode_libdir_separator=:
8328
8329         case $host_cpu in
8330         hppa*64*|ia64*)
8331           hardcode_libdir_flag_spec_ld='+b $libdir'
8332           hardcode_direct=no
8333           hardcode_shlibpath_var=no
8334           ;;
8335         *)
8336           hardcode_direct=yes
8337           export_dynamic_flag_spec='${wl}-E'
8338
8339           # hardcode_minus_L: Not really in the search PATH,
8340           # but as the default location of the library.
8341           hardcode_minus_L=yes
8342           ;;
8343         esac
8344       fi
8345       ;;
8346
8347     irix5* | irix6* | nonstopux*)
8348       if test "$GCC" = yes; then
8349         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'
8350       else
8351         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'
8352         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8353       fi
8354       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8355       hardcode_libdir_separator=:
8356       link_all_deplibs=yes
8357       ;;
8358
8359     netbsd* | netbsdelf*-gnu)
8360       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8361         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8362       else
8363         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8364       fi
8365       hardcode_libdir_flag_spec='-R$libdir'
8366       hardcode_direct=yes
8367       hardcode_shlibpath_var=no
8368       ;;
8369
8370     newsos6)
8371       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372       hardcode_direct=yes
8373       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8374       hardcode_libdir_separator=:
8375       hardcode_shlibpath_var=no
8376       ;;
8377
8378     openbsd*)
8379       hardcode_direct=yes
8380       hardcode_shlibpath_var=no
8381       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8382         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8383         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8384         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8385         export_dynamic_flag_spec='${wl}-E'
8386       else
8387        case $host_os in
8388          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8389            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8390            hardcode_libdir_flag_spec='-R$libdir'
8391            ;;
8392          *)
8393            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8394            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8395            ;;
8396        esac
8397       fi
8398       ;;
8399
8400     os2*)
8401       hardcode_libdir_flag_spec='-L$libdir'
8402       hardcode_minus_L=yes
8403       allow_undefined_flag=unsupported
8404       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'
8405       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8406       ;;
8407
8408     osf3*)
8409       if test "$GCC" = yes; then
8410         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8411         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'
8412       else
8413         allow_undefined_flag=' -expect_unresolved \*'
8414         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'
8415       fi
8416       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417       hardcode_libdir_separator=:
8418       ;;
8419
8420     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8421       if test "$GCC" = yes; then
8422         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8423         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'
8424         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425       else
8426         allow_undefined_flag=' -expect_unresolved \*'
8427         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'
8428         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8429         $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'
8430
8431         # Both c and cxx compiler support -rpath directly
8432         hardcode_libdir_flag_spec='-rpath $libdir'
8433       fi
8434       hardcode_libdir_separator=:
8435       ;;
8436
8437     solaris*)
8438       no_undefined_flag=' -z text'
8439       if test "$GCC" = yes; then
8440         wlarc='${wl}'
8441         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8443           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8444       else
8445         wlarc=''
8446         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8448         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8449       fi
8450       hardcode_libdir_flag_spec='-R$libdir'
8451       hardcode_shlibpath_var=no
8452       case $host_os in
8453       solaris2.[0-5] | solaris2.[0-5].*) ;;
8454       *)
8455         # The compiler driver will combine linker options so we
8456         # cannot just pass the convience library names through
8457         # without $wl, iff we do not link with $LD.
8458         # Luckily, gcc supports the same syntax we need for Sun Studio.
8459         # Supported since Solaris 2.6 (maybe 2.5.1?)
8460         case $wlarc in
8461         '')
8462           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8463         *)
8464           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' ;;
8465         esac ;;
8466       esac
8467       link_all_deplibs=yes
8468       ;;
8469
8470     sunos4*)
8471       if test "x$host_vendor" = xsequent; then
8472         # Use $CC to link under sequent, because it throws in some extra .o
8473         # files that make .init and .fini sections work.
8474         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8475       else
8476         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8477       fi
8478       hardcode_libdir_flag_spec='-L$libdir'
8479       hardcode_direct=yes
8480       hardcode_minus_L=yes
8481       hardcode_shlibpath_var=no
8482       ;;
8483
8484     sysv4)
8485       case $host_vendor in
8486         sni)
8487           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488           hardcode_direct=yes # is this really true???
8489         ;;
8490         siemens)
8491           ## LD is ld it makes a PLAMLIB
8492           ## CC just makes a GrossModule.
8493           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8494           reload_cmds='$CC -r -o $output$reload_objs'
8495           hardcode_direct=no
8496         ;;
8497         motorola)
8498           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8500         ;;
8501       esac
8502       runpath_var='LD_RUN_PATH'
8503       hardcode_shlibpath_var=no
8504       ;;
8505
8506     sysv4.3*)
8507       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508       hardcode_shlibpath_var=no
8509       export_dynamic_flag_spec='-Bexport'
8510       ;;
8511
8512     sysv4*MP*)
8513       if test -d /usr/nec; then
8514         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515         hardcode_shlibpath_var=no
8516         runpath_var=LD_RUN_PATH
8517         hardcode_runpath_var=yes
8518         ld_shlibs=yes
8519       fi
8520       ;;
8521
8522     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8523       no_undefined_flag='${wl}-z,text'
8524       archive_cmds_need_lc=no
8525       hardcode_shlibpath_var=no
8526       runpath_var='LD_RUN_PATH'
8527
8528       if test "$GCC" = yes; then
8529         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8531       else
8532         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8534       fi
8535       ;;
8536
8537     sysv5* | sco3.2v5* | sco5v6*)
8538       # Note: We can NOT use -z defs as we might desire, because we do not
8539       # link with -lc, and that would cause any symbols used from libc to
8540       # always be unresolved, which means just about no library would
8541       # ever link correctly.  If we're not using GNU ld we use -z text
8542       # though, which does catch some bad symbols but isn't as heavy-handed
8543       # as -z defs.
8544       no_undefined_flag='${wl}-z,text'
8545       allow_undefined_flag='${wl}-z,nodefs'
8546       archive_cmds_need_lc=no
8547       hardcode_shlibpath_var=no
8548       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8549       hardcode_libdir_separator=':'
8550       link_all_deplibs=yes
8551       export_dynamic_flag_spec='${wl}-Bexport'
8552       runpath_var='LD_RUN_PATH'
8553
8554       if test "$GCC" = yes; then
8555         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557       else
8558         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8560       fi
8561       ;;
8562
8563     uts4*)
8564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565       hardcode_libdir_flag_spec='-L$libdir'
8566       hardcode_shlibpath_var=no
8567       ;;
8568
8569     *)
8570       ld_shlibs=no
8571       ;;
8572     esac
8573   fi
8574
8575 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8576 echo "${ECHO_T}$ld_shlibs" >&6; }
8577 test "$ld_shlibs" = no && can_build_shared=no
8578
8579 #
8580 # Do we need to explicitly link libc?
8581 #
8582 case "x$archive_cmds_need_lc" in
8583 x|xyes)
8584   # Assume -lc should be added
8585   archive_cmds_need_lc=yes
8586
8587   if test "$enable_shared" = yes && test "$GCC" = yes; then
8588     case $archive_cmds in
8589     *'~'*)
8590       # FIXME: we may have to deal with multi-command sequences.
8591       ;;
8592     '$CC '*)
8593       # Test whether the compiler implicitly links with -lc since on some
8594       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8595       # to ld, don't add -lc before -lgcc.
8596       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8597 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8598       $rm conftest*
8599       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8600
8601       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602   (eval $ac_compile) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } 2>conftest.err; then
8606         soname=conftest
8607         lib=conftest
8608         libobjs=conftest.$ac_objext
8609         deplibs=
8610         wl=$lt_prog_compiler_wl
8611         pic_flag=$lt_prog_compiler_pic
8612         compiler_flags=-v
8613         linker_flags=-v
8614         verstring=
8615         output_objdir=.
8616         libname=conftest
8617         lt_save_allow_undefined_flag=$allow_undefined_flag
8618         allow_undefined_flag=
8619         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8620   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }
8624         then
8625           archive_cmds_need_lc=no
8626         else
8627           archive_cmds_need_lc=yes
8628         fi
8629         allow_undefined_flag=$lt_save_allow_undefined_flag
8630       else
8631         cat conftest.err 1>&5
8632       fi
8633       $rm conftest*
8634       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8635 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8636       ;;
8637     esac
8638   fi
8639   ;;
8640 esac
8641
8642 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8643 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8644 library_names_spec=
8645 libname_spec='lib$name'
8646 soname_spec=
8647 shrext_cmds=".so"
8648 postinstall_cmds=
8649 postuninstall_cmds=
8650 finish_cmds=
8651 finish_eval=
8652 shlibpath_var=
8653 shlibpath_overrides_runpath=unknown
8654 version_type=none
8655 dynamic_linker="$host_os ld.so"
8656 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8657 if test "$GCC" = yes; then
8658   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8659   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8660     # if the path contains ";" then we assume it to be the separator
8661     # otherwise default to the standard path separator (i.e. ":") - it is
8662     # assumed that no part of a normal pathname contains ";" but that should
8663     # okay in the real world where ";" in dirpaths is itself problematic.
8664     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8665   else
8666     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8667   fi
8668 else
8669   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8670 fi
8671 need_lib_prefix=unknown
8672 hardcode_into_libs=no
8673
8674 # when you set need_version to no, make sure it does not cause -set_version
8675 # flags to be left without arguments
8676 need_version=unknown
8677
8678 case $host_os in
8679 aix3*)
8680   version_type=linux
8681   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8682   shlibpath_var=LIBPATH
8683
8684   # AIX 3 has no versioning support, so we append a major version to the name.
8685   soname_spec='${libname}${release}${shared_ext}$major'
8686   ;;
8687
8688 aix4* | aix5*)
8689   version_type=linux
8690   need_lib_prefix=no
8691   need_version=no
8692   hardcode_into_libs=yes
8693   if test "$host_cpu" = ia64; then
8694     # AIX 5 supports IA64
8695     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8696     shlibpath_var=LD_LIBRARY_PATH
8697   else
8698     # With GCC up to 2.95.x, collect2 would create an import file
8699     # for dependence libraries.  The import file would start with
8700     # the line `#! .'.  This would cause the generated library to
8701     # depend on `.', always an invalid library.  This was fixed in
8702     # development snapshots of GCC prior to 3.0.
8703     case $host_os in
8704       aix4 | aix4.[01] | aix4.[01].*)
8705       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8706            echo ' yes '
8707            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8708         :
8709       else
8710         can_build_shared=no
8711       fi
8712       ;;
8713     esac
8714     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8715     # soname into executable. Probably we can add versioning support to
8716     # collect2, so additional links can be useful in future.
8717     if test "$aix_use_runtimelinking" = yes; then
8718       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8719       # instead of lib<name>.a to let people know that these are not
8720       # typical AIX shared libraries.
8721       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8722     else
8723       # We preserve .a as extension for shared libraries through AIX4.2
8724       # and later when we are not doing run time linking.
8725       library_names_spec='${libname}${release}.a $libname.a'
8726       soname_spec='${libname}${release}${shared_ext}$major'
8727     fi
8728     shlibpath_var=LIBPATH
8729   fi
8730   ;;
8731
8732 amigaos*)
8733   library_names_spec='$libname.ixlibrary $libname.a'
8734   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8735   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'
8736   ;;
8737
8738 beos*)
8739   library_names_spec='${libname}${shared_ext}'
8740   dynamic_linker="$host_os ld.so"
8741   shlibpath_var=LIBRARY_PATH
8742   ;;
8743
8744 bsdi[45]*)
8745   version_type=linux
8746   need_version=no
8747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748   soname_spec='${libname}${release}${shared_ext}$major'
8749   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8750   shlibpath_var=LD_LIBRARY_PATH
8751   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8752   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8753   # the default ld.so.conf also contains /usr/contrib/lib and
8754   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8755   # libtool to hard-code these into programs
8756   ;;
8757
8758 cygwin* | mingw* | pw32*)
8759   version_type=windows
8760   shrext_cmds=".dll"
8761   need_version=no
8762   need_lib_prefix=no
8763
8764   case $GCC,$host_os in
8765   yes,cygwin* | yes,mingw* | yes,pw32*)
8766     library_names_spec='$libname.dll.a'
8767     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8768     postinstall_cmds='base_file=`basename \${file}`~
8769       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8770       dldir=$destdir/`dirname \$dlpath`~
8771       test -d \$dldir || mkdir -p \$dldir~
8772       $install_prog $dir/$dlname \$dldir/$dlname~
8773       chmod a+x \$dldir/$dlname'
8774     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8775       dlpath=$dir/\$dldll~
8776        $rm \$dlpath'
8777     shlibpath_overrides_runpath=yes
8778
8779     case $host_os in
8780     cygwin*)
8781       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8782       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8783       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8784       ;;
8785     mingw*)
8786       # MinGW DLLs use traditional 'lib' prefix
8787       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8788       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8789       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8790         # It is most probably a Windows format PATH printed by
8791         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8792         # path with ; separators, and with drive letters. We can handle the
8793         # drive letters (cygwin fileutils understands them), so leave them,
8794         # especially as we might pass files found there to a mingw objdump,
8795         # which wouldn't understand a cygwinified path. Ahh.
8796         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8797       else
8798         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8799       fi
8800       ;;
8801     pw32*)
8802       # pw32 DLLs use 'pw' prefix rather than 'lib'
8803       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8804       ;;
8805     esac
8806     ;;
8807
8808   *)
8809     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8810     ;;
8811   esac
8812   dynamic_linker='Win32 ld.exe'
8813   # FIXME: first we should search . and the directory the executable is in
8814   shlibpath_var=PATH
8815   ;;
8816
8817 darwin* | rhapsody*)
8818   dynamic_linker="$host_os dyld"
8819   version_type=darwin
8820   need_lib_prefix=no
8821   need_version=no
8822   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8823   soname_spec='${libname}${release}${major}$shared_ext'
8824   shlibpath_overrides_runpath=yes
8825   shlibpath_var=DYLD_LIBRARY_PATH
8826   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8827   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8828   if test "$GCC" = yes; then
8829     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"`
8830   else
8831     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8832   fi
8833   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8834   ;;
8835
8836 dgux*)
8837   version_type=linux
8838   need_lib_prefix=no
8839   need_version=no
8840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8841   soname_spec='${libname}${release}${shared_ext}$major'
8842   shlibpath_var=LD_LIBRARY_PATH
8843   ;;
8844
8845 freebsd1*)
8846   dynamic_linker=no
8847   ;;
8848
8849 freebsd* | dragonfly*)
8850   # DragonFly does not have aout.  When/if they implement a new
8851   # versioning mechanism, adjust this.
8852   if test -x /usr/bin/objformat; then
8853     objformat=`/usr/bin/objformat`
8854   else
8855     case $host_os in
8856     freebsd[123]*) objformat=aout ;;
8857     *) objformat=elf ;;
8858     esac
8859   fi
8860   version_type=freebsd-$objformat
8861   case $version_type in
8862     freebsd-elf*)
8863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8864       need_version=no
8865       need_lib_prefix=no
8866       ;;
8867     freebsd-*)
8868       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8869       need_version=yes
8870       ;;
8871   esac
8872   shlibpath_var=LD_LIBRARY_PATH
8873   case $host_os in
8874   freebsd2*)
8875     shlibpath_overrides_runpath=yes
8876     ;;
8877   freebsd3.[01]* | freebsdelf3.[01]*)
8878     shlibpath_overrides_runpath=yes
8879     hardcode_into_libs=yes
8880     ;;
8881   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8882   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8883     shlibpath_overrides_runpath=no
8884     hardcode_into_libs=yes
8885     ;;
8886   freebsd*) # from 4.6 on
8887     shlibpath_overrides_runpath=yes
8888     hardcode_into_libs=yes
8889     ;;
8890   esac
8891   ;;
8892
8893 gnu*)
8894   version_type=linux
8895   need_lib_prefix=no
8896   need_version=no
8897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8898   soname_spec='${libname}${release}${shared_ext}$major'
8899   shlibpath_var=LD_LIBRARY_PATH
8900   hardcode_into_libs=yes
8901   ;;
8902
8903 hpux9* | hpux10* | hpux11*)
8904   # Give a soname corresponding to the major version so that dld.sl refuses to
8905   # link against other versions.
8906   version_type=sunos
8907   need_lib_prefix=no
8908   need_version=no
8909   case $host_cpu in
8910   ia64*)
8911     shrext_cmds='.so'
8912     hardcode_into_libs=yes
8913     dynamic_linker="$host_os dld.so"
8914     shlibpath_var=LD_LIBRARY_PATH
8915     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8917     soname_spec='${libname}${release}${shared_ext}$major'
8918     if test "X$HPUX_IA64_MODE" = X32; then
8919       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8920     else
8921       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8922     fi
8923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8924     ;;
8925    hppa*64*)
8926      shrext_cmds='.sl'
8927      hardcode_into_libs=yes
8928      dynamic_linker="$host_os dld.sl"
8929      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8930      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8931      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932      soname_spec='${libname}${release}${shared_ext}$major'
8933      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8934      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8935      ;;
8936    *)
8937     shrext_cmds='.sl'
8938     dynamic_linker="$host_os dld.sl"
8939     shlibpath_var=SHLIB_PATH
8940     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942     soname_spec='${libname}${release}${shared_ext}$major'
8943     ;;
8944   esac
8945   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8946   postinstall_cmds='chmod 555 $lib'
8947   ;;
8948
8949 interix3*)
8950   version_type=linux
8951   need_lib_prefix=no
8952   need_version=no
8953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954   soname_spec='${libname}${release}${shared_ext}$major'
8955   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8956   shlibpath_var=LD_LIBRARY_PATH
8957   shlibpath_overrides_runpath=no
8958   hardcode_into_libs=yes
8959   ;;
8960
8961 irix5* | irix6* | nonstopux*)
8962   case $host_os in
8963     nonstopux*) version_type=nonstopux ;;
8964     *)
8965         if test "$lt_cv_prog_gnu_ld" = yes; then
8966                 version_type=linux
8967         else
8968                 version_type=irix
8969         fi ;;
8970   esac
8971   need_lib_prefix=no
8972   need_version=no
8973   soname_spec='${libname}${release}${shared_ext}$major'
8974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8975   case $host_os in
8976   irix5* | nonstopux*)
8977     libsuff= shlibsuff=
8978     ;;
8979   *)
8980     case $LD in # libtool.m4 will add one of these switches to LD
8981     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8982       libsuff= shlibsuff= libmagic=32-bit;;
8983     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8984       libsuff=32 shlibsuff=N32 libmagic=N32;;
8985     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8986       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8987     *) libsuff= shlibsuff= libmagic=never-match;;
8988     esac
8989     ;;
8990   esac
8991   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8992   shlibpath_overrides_runpath=no
8993   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8994   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8995   hardcode_into_libs=yes
8996   ;;
8997
8998 # No shared lib support for Linux oldld, aout, or coff.
8999 linux*oldld* | linux*aout* | linux*coff*)
9000   dynamic_linker=no
9001   ;;
9002
9003 # This must be Linux ELF.
9004 linux* | k*bsd*-gnu)
9005   version_type=linux
9006   need_lib_prefix=no
9007   need_version=no
9008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009   soname_spec='${libname}${release}${shared_ext}$major'
9010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9011   shlibpath_var=LD_LIBRARY_PATH
9012   shlibpath_overrides_runpath=no
9013   # This implies no fast_install, which is unacceptable.
9014   # Some rework will be needed to allow for fast_install
9015   # before this can be enabled.
9016   hardcode_into_libs=yes
9017
9018   # Append ld.so.conf contents to the search path
9019   if test -f /etc/ld.so.conf; then
9020     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' ' '`
9021     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9022   fi
9023
9024   # We used to test for /lib/ld.so.1 and disable shared libraries on
9025   # powerpc, because MkLinux only supported shared libraries with the
9026   # GNU dynamic linker.  Since this was broken with cross compilers,
9027   # most powerpc-linux boxes support dynamic linking these days and
9028   # people can always --disable-shared, the test was removed, and we
9029   # assume the GNU/Linux dynamic linker is in use.
9030   dynamic_linker='GNU/Linux ld.so'
9031   ;;
9032
9033 netbsdelf*-gnu)
9034   version_type=linux
9035   need_lib_prefix=no
9036   need_version=no
9037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9038   soname_spec='${libname}${release}${shared_ext}$major'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   shlibpath_overrides_runpath=no
9041   hardcode_into_libs=yes
9042   dynamic_linker='NetBSD ld.elf_so'
9043   ;;
9044
9045 netbsd*)
9046   version_type=sunos
9047   need_lib_prefix=no
9048   need_version=no
9049   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9051     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9052     dynamic_linker='NetBSD (a.out) ld.so'
9053   else
9054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9055     soname_spec='${libname}${release}${shared_ext}$major'
9056     dynamic_linker='NetBSD ld.elf_so'
9057   fi
9058   shlibpath_var=LD_LIBRARY_PATH
9059   shlibpath_overrides_runpath=yes
9060   hardcode_into_libs=yes
9061   ;;
9062
9063 newsos6)
9064   version_type=linux
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066   shlibpath_var=LD_LIBRARY_PATH
9067   shlibpath_overrides_runpath=yes
9068   ;;
9069
9070 nto-qnx*)
9071   version_type=linux
9072   need_lib_prefix=no
9073   need_version=no
9074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075   soname_spec='${libname}${release}${shared_ext}$major'
9076   shlibpath_var=LD_LIBRARY_PATH
9077   shlibpath_overrides_runpath=yes
9078   ;;
9079
9080 openbsd*)
9081   version_type=sunos
9082   sys_lib_dlsearch_path_spec="/usr/lib"
9083   need_lib_prefix=no
9084   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9085   case $host_os in
9086     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9087     *)                         need_version=no  ;;
9088   esac
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9091   shlibpath_var=LD_LIBRARY_PATH
9092   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9093     case $host_os in
9094       openbsd2.[89] | openbsd2.[89].*)
9095         shlibpath_overrides_runpath=no
9096         ;;
9097       *)
9098         shlibpath_overrides_runpath=yes
9099         ;;
9100       esac
9101   else
9102     shlibpath_overrides_runpath=yes
9103   fi
9104   ;;
9105
9106 os2*)
9107   libname_spec='$name'
9108   shrext_cmds=".dll"
9109   need_lib_prefix=no
9110   library_names_spec='$libname${shared_ext} $libname.a'
9111   dynamic_linker='OS/2 ld.exe'
9112   shlibpath_var=LIBPATH
9113   ;;
9114
9115 osf3* | osf4* | osf5*)
9116   version_type=osf
9117   need_lib_prefix=no
9118   need_version=no
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9123   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9124   ;;
9125
9126 solaris*)
9127   version_type=linux
9128   need_lib_prefix=no
9129   need_version=no
9130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131   soname_spec='${libname}${release}${shared_ext}$major'
9132   shlibpath_var=LD_LIBRARY_PATH
9133   shlibpath_overrides_runpath=yes
9134   hardcode_into_libs=yes
9135   # ldd complains unless libraries are executable
9136   postinstall_cmds='chmod +x $lib'
9137   ;;
9138
9139 sunos4*)
9140   version_type=sunos
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9142   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9143   shlibpath_var=LD_LIBRARY_PATH
9144   shlibpath_overrides_runpath=yes
9145   if test "$with_gnu_ld" = yes; then
9146     need_lib_prefix=no
9147   fi
9148   need_version=yes
9149   ;;
9150
9151 sysv4 | sysv4.3*)
9152   version_type=linux
9153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154   soname_spec='${libname}${release}${shared_ext}$major'
9155   shlibpath_var=LD_LIBRARY_PATH
9156   case $host_vendor in
9157     sni)
9158       shlibpath_overrides_runpath=no
9159       need_lib_prefix=no
9160       export_dynamic_flag_spec='${wl}-Blargedynsym'
9161       runpath_var=LD_RUN_PATH
9162       ;;
9163     siemens)
9164       need_lib_prefix=no
9165       ;;
9166     motorola)
9167       need_lib_prefix=no
9168       need_version=no
9169       shlibpath_overrides_runpath=no
9170       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9171       ;;
9172   esac
9173   ;;
9174
9175 sysv4*MP*)
9176   if test -d /usr/nec ;then
9177     version_type=linux
9178     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9179     soname_spec='$libname${shared_ext}.$major'
9180     shlibpath_var=LD_LIBRARY_PATH
9181   fi
9182   ;;
9183
9184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9185   version_type=freebsd-elf
9186   need_lib_prefix=no
9187   need_version=no
9188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9189   soname_spec='${libname}${release}${shared_ext}$major'
9190   shlibpath_var=LD_LIBRARY_PATH
9191   hardcode_into_libs=yes
9192   if test "$with_gnu_ld" = yes; then
9193     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9194     shlibpath_overrides_runpath=no
9195   else
9196     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9197     shlibpath_overrides_runpath=yes
9198     case $host_os in
9199       sco3.2v5*)
9200         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9201         ;;
9202     esac
9203   fi
9204   sys_lib_dlsearch_path_spec='/usr/lib'
9205   ;;
9206
9207 uts4*)
9208   version_type=linux
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   ;;
9213
9214 *)
9215   dynamic_linker=no
9216   ;;
9217 esac
9218 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9219 echo "${ECHO_T}$dynamic_linker" >&6; }
9220 test "$dynamic_linker" = no && can_build_shared=no
9221
9222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9223 if test "$GCC" = yes; then
9224   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9225 fi
9226
9227 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9228 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9229 hardcode_action=
9230 if test -n "$hardcode_libdir_flag_spec" || \
9231    test -n "$runpath_var" || \
9232    test "X$hardcode_automatic" = "Xyes" ; then
9233
9234   # We can hardcode non-existant directories.
9235   if test "$hardcode_direct" != no &&
9236      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9237      # have to relink, otherwise we might link with an installed library
9238      # when we should be linking with a yet-to-be-installed one
9239      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9240      test "$hardcode_minus_L" != no; then
9241     # Linking always hardcodes the temporary library directory.
9242     hardcode_action=relink
9243   else
9244     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9245     hardcode_action=immediate
9246   fi
9247 else
9248   # We cannot hardcode anything, or else we can only hardcode existing
9249   # directories.
9250   hardcode_action=unsupported
9251 fi
9252 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9253 echo "${ECHO_T}$hardcode_action" >&6; }
9254
9255 if test "$hardcode_action" = relink; then
9256   # Fast installation is not supported
9257   enable_fast_install=no
9258 elif test "$shlibpath_overrides_runpath" = yes ||
9259      test "$enable_shared" = no; then
9260   # Fast installation is not necessary
9261   enable_fast_install=needless
9262 fi
9263
9264 striplib=
9265 old_striplib=
9266 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9267 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9268 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9269   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9270   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9271   { echo "$as_me:$LINENO: result: yes" >&5
9272 echo "${ECHO_T}yes" >&6; }
9273 else
9274 # FIXME - insert some real tests, host_os isn't really good enough
9275   case $host_os in
9276    darwin*)
9277        if test -n "$STRIP" ; then
9278          striplib="$STRIP -x"
9279          { echo "$as_me:$LINENO: result: yes" >&5
9280 echo "${ECHO_T}yes" >&6; }
9281        else
9282   { echo "$as_me:$LINENO: result: no" >&5
9283 echo "${ECHO_T}no" >&6; }
9284 fi
9285        ;;
9286    *)
9287   { echo "$as_me:$LINENO: result: no" >&5
9288 echo "${ECHO_T}no" >&6; }
9289     ;;
9290   esac
9291 fi
9292
9293 if test "x$enable_dlopen" != xyes; then
9294   enable_dlopen=unknown
9295   enable_dlopen_self=unknown
9296   enable_dlopen_self_static=unknown
9297 else
9298   lt_cv_dlopen=no
9299   lt_cv_dlopen_libs=
9300
9301   case $host_os in
9302   beos*)
9303     lt_cv_dlopen="load_add_on"
9304     lt_cv_dlopen_libs=
9305     lt_cv_dlopen_self=yes
9306     ;;
9307
9308   mingw* | pw32*)
9309     lt_cv_dlopen="LoadLibrary"
9310     lt_cv_dlopen_libs=
9311    ;;
9312
9313   cygwin*)
9314     lt_cv_dlopen="dlopen"
9315     lt_cv_dlopen_libs=
9316    ;;
9317
9318   darwin*)
9319   # if libdl is installed we need to link against it
9320     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9321 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9322 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   ac_check_lib_save_LIBS=$LIBS
9326 LIBS="-ldl  $LIBS"
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h.  */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h.  */
9333
9334 /* Override any GCC internal prototype to avoid an error.
9335    Use char because int might match the return type of a GCC
9336    builtin and then its argument prototype would still apply.  */
9337 #ifdef __cplusplus
9338 extern "C"
9339 #endif
9340 char dlopen ();
9341 int
9342 main ()
9343 {
9344 return dlopen ();
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (ac_try="$ac_link"
9351 case "(($ac_try" in
9352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353   *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356   (eval "$ac_link") 2>conftest.er1
9357   ac_status=$?
9358   grep -v '^ *+' conftest.er1 >conftest.err
9359   rm -f conftest.er1
9360   cat conftest.err >&5
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } && {
9363          test -z "$ac_c_werror_flag" ||
9364          test ! -s conftest.err
9365        } && test -s conftest$ac_exeext &&
9366        $as_test_x conftest$ac_exeext; then
9367   ac_cv_lib_dl_dlopen=yes
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372         ac_cv_lib_dl_dlopen=no
9373 fi
9374
9375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9376       conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_check_lib_save_LIBS
9378 fi
9379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9381 if test $ac_cv_lib_dl_dlopen = yes; then
9382   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9383 else
9384
9385     lt_cv_dlopen="dyld"
9386     lt_cv_dlopen_libs=
9387     lt_cv_dlopen_self=yes
9388
9389 fi
9390
9391    ;;
9392
9393   *)
9394     { echo "$as_me:$LINENO: checking for shl_load" >&5
9395 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9396 if test "${ac_cv_func_shl_load+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9407 #define shl_load innocuous_shl_load
9408
9409 /* System header to define __stub macros and hopefully few prototypes,
9410     which can conflict with char shl_load (); below.
9411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9412     <limits.h> exists even on freestanding compilers.  */
9413
9414 #ifdef __STDC__
9415 # include <limits.h>
9416 #else
9417 # include <assert.h>
9418 #endif
9419
9420 #undef shl_load
9421
9422 /* Override any GCC internal prototype to avoid an error.
9423    Use char because int might match the return type of a GCC
9424    builtin and then its argument prototype would still apply.  */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 char shl_load ();
9429 /* The GNU C library defines this for functions which it implements
9430     to always fail with ENOSYS.  Some functions are actually named
9431     something starting with __ and the normal name is an alias.  */
9432 #if defined __stub_shl_load || defined __stub___shl_load
9433 choke me
9434 #endif
9435
9436 int
9437 main ()
9438 {
9439 return shl_load ();
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9446 case "(($ac_try" in
9447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448   *) ac_try_echo=$ac_try;;
9449 esac
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451   (eval "$ac_link") 2>conftest.er1
9452   ac_status=$?
9453   grep -v '^ *+' conftest.er1 >conftest.err
9454   rm -f conftest.er1
9455   cat conftest.err >&5
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } && {
9458          test -z "$ac_c_werror_flag" ||
9459          test ! -s conftest.err
9460        } && test -s conftest$ac_exeext &&
9461        $as_test_x conftest$ac_exeext; then
9462   ac_cv_func_shl_load=yes
9463 else
9464   echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9466
9467         ac_cv_func_shl_load=no
9468 fi
9469
9470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9471       conftest$ac_exeext conftest.$ac_ext
9472 fi
9473 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9474 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9475 if test $ac_cv_func_shl_load = yes; then
9476   lt_cv_dlopen="shl_load"
9477 else
9478   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9479 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   ac_check_lib_save_LIBS=$LIBS
9484 LIBS="-ldld  $LIBS"
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491
9492 /* Override any GCC internal prototype to avoid an error.
9493    Use char because int might match the return type of a GCC
9494    builtin and then its argument prototype would still apply.  */
9495 #ifdef __cplusplus
9496 extern "C"
9497 #endif
9498 char shl_load ();
9499 int
9500 main ()
9501 {
9502 return shl_load ();
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9509 case "(($ac_try" in
9510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511   *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514   (eval "$ac_link") 2>conftest.er1
9515   ac_status=$?
9516   grep -v '^ *+' conftest.er1 >conftest.err
9517   rm -f conftest.er1
9518   cat conftest.err >&5
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } && {
9521          test -z "$ac_c_werror_flag" ||
9522          test ! -s conftest.err
9523        } && test -s conftest$ac_exeext &&
9524        $as_test_x conftest$ac_exeext; then
9525   ac_cv_lib_dld_shl_load=yes
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530         ac_cv_lib_dld_shl_load=no
9531 fi
9532
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534       conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9536 fi
9537 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9538 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9539 if test $ac_cv_lib_dld_shl_load = yes; then
9540   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9541 else
9542   { echo "$as_me:$LINENO: checking for dlopen" >&5
9543 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9544 if test "${ac_cv_func_dlopen+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h.  */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h.  */
9553 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9555 #define dlopen innocuous_dlopen
9556
9557 /* System header to define __stub macros and hopefully few prototypes,
9558     which can conflict with char dlopen (); below.
9559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9560     <limits.h> exists even on freestanding compilers.  */
9561
9562 #ifdef __STDC__
9563 # include <limits.h>
9564 #else
9565 # include <assert.h>
9566 #endif
9567
9568 #undef dlopen
9569
9570 /* Override any GCC internal prototype to avoid an error.
9571    Use char because int might match the return type of a GCC
9572    builtin and then its argument prototype would still apply.  */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 char dlopen ();
9577 /* The GNU C library defines this for functions which it implements
9578     to always fail with ENOSYS.  Some functions are actually named
9579     something starting with __ and the normal name is an alias.  */
9580 #if defined __stub_dlopen || defined __stub___dlopen
9581 choke me
9582 #endif
9583
9584 int
9585 main ()
9586 {
9587 return dlopen ();
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (ac_try="$ac_link"
9594 case "(($ac_try" in
9595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596   *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599   (eval "$ac_link") 2>conftest.er1
9600   ac_status=$?
9601   grep -v '^ *+' conftest.er1 >conftest.err
9602   rm -f conftest.er1
9603   cat conftest.err >&5
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); } && {
9606          test -z "$ac_c_werror_flag" ||
9607          test ! -s conftest.err
9608        } && test -s conftest$ac_exeext &&
9609        $as_test_x conftest$ac_exeext; then
9610   ac_cv_func_dlopen=yes
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615         ac_cv_func_dlopen=no
9616 fi
9617
9618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9619       conftest$ac_exeext conftest.$ac_ext
9620 fi
9621 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9622 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9623 if test $ac_cv_func_dlopen = yes; then
9624   lt_cv_dlopen="dlopen"
9625 else
9626   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631   ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-ldl  $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641    Use char because int might match the return type of a GCC
9642    builtin and then its argument prototype would still apply.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char dlopen ();
9647 int
9648 main ()
9649 {
9650 return dlopen ();
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9657 case "(($ac_try" in
9658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659   *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662   (eval "$ac_link") 2>conftest.er1
9663   ac_status=$?
9664   grep -v '^ *+' conftest.er1 >conftest.err
9665   rm -f conftest.er1
9666   cat conftest.err >&5
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } && {
9669          test -z "$ac_c_werror_flag" ||
9670          test ! -s conftest.err
9671        } && test -s conftest$ac_exeext &&
9672        $as_test_x conftest$ac_exeext; then
9673   ac_cv_lib_dl_dlopen=yes
9674 else
9675   echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9677
9678         ac_cv_lib_dl_dlopen=no
9679 fi
9680
9681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682       conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9684 fi
9685 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9687 if test $ac_cv_lib_dl_dlopen = yes; then
9688   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9689 else
9690   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9691 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   ac_check_lib_save_LIBS=$LIBS
9696 LIBS="-lsvld  $LIBS"
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703
9704 /* Override any GCC internal prototype to avoid an error.
9705    Use char because int might match the return type of a GCC
9706    builtin and then its argument prototype would still apply.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 char dlopen ();
9711 int
9712 main ()
9713 {
9714 return dlopen ();
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9721 case "(($ac_try" in
9722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723   *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726   (eval "$ac_link") 2>conftest.er1
9727   ac_status=$?
9728   grep -v '^ *+' conftest.er1 >conftest.err
9729   rm -f conftest.er1
9730   cat conftest.err >&5
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } && {
9733          test -z "$ac_c_werror_flag" ||
9734          test ! -s conftest.err
9735        } && test -s conftest$ac_exeext &&
9736        $as_test_x conftest$ac_exeext; then
9737   ac_cv_lib_svld_dlopen=yes
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742         ac_cv_lib_svld_dlopen=no
9743 fi
9744
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746       conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9748 fi
9749 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9750 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9751 if test $ac_cv_lib_svld_dlopen = yes; then
9752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9753 else
9754   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9755 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9756 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   ac_check_lib_save_LIBS=$LIBS
9760 LIBS="-ldld  $LIBS"
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767
9768 /* Override any GCC internal prototype to avoid an error.
9769    Use char because int might match the return type of a GCC
9770    builtin and then its argument prototype would still apply.  */
9771 #ifdef __cplusplus
9772 extern "C"
9773 #endif
9774 char dld_link ();
9775 int
9776 main ()
9777 {
9778 return dld_link ();
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9785 case "(($ac_try" in
9786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787   *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790   (eval "$ac_link") 2>conftest.er1
9791   ac_status=$?
9792   grep -v '^ *+' conftest.er1 >conftest.err
9793   rm -f conftest.er1
9794   cat conftest.err >&5
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } && {
9797          test -z "$ac_c_werror_flag" ||
9798          test ! -s conftest.err
9799        } && test -s conftest$ac_exeext &&
9800        $as_test_x conftest$ac_exeext; then
9801   ac_cv_lib_dld_dld_link=yes
9802 else
9803   echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9805
9806         ac_cv_lib_dld_dld_link=no
9807 fi
9808
9809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9810       conftest$ac_exeext conftest.$ac_ext
9811 LIBS=$ac_check_lib_save_LIBS
9812 fi
9813 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9814 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9815 if test $ac_cv_lib_dld_dld_link = yes; then
9816   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9817 fi
9818
9819
9820 fi
9821
9822
9823 fi
9824
9825
9826 fi
9827
9828
9829 fi
9830
9831
9832 fi
9833
9834     ;;
9835   esac
9836
9837   if test "x$lt_cv_dlopen" != xno; then
9838     enable_dlopen=yes
9839   else
9840     enable_dlopen=no
9841   fi
9842
9843   case $lt_cv_dlopen in
9844   dlopen)
9845     save_CPPFLAGS="$CPPFLAGS"
9846     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9847
9848     save_LDFLAGS="$LDFLAGS"
9849     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9850
9851     save_LIBS="$LIBS"
9852     LIBS="$lt_cv_dlopen_libs $LIBS"
9853
9854     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9855 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9856 if test "${lt_cv_dlopen_self+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859           if test "$cross_compiling" = yes; then :
9860   lt_cv_dlopen_self=cross
9861 else
9862   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9863   lt_status=$lt_dlunknown
9864   cat > conftest.$ac_ext <<EOF
9865 #line 9865 "configure"
9866 #include "confdefs.h"
9867
9868 #if HAVE_DLFCN_H
9869 #include <dlfcn.h>
9870 #endif
9871
9872 #include <stdio.h>
9873
9874 #ifdef RTLD_GLOBAL
9875 #  define LT_DLGLOBAL           RTLD_GLOBAL
9876 #else
9877 #  ifdef DL_GLOBAL
9878 #    define LT_DLGLOBAL         DL_GLOBAL
9879 #  else
9880 #    define LT_DLGLOBAL         0
9881 #  endif
9882 #endif
9883
9884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9885    find out it does not work in some platform. */
9886 #ifndef LT_DLLAZY_OR_NOW
9887 #  ifdef RTLD_LAZY
9888 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9889 #  else
9890 #    ifdef DL_LAZY
9891 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9892 #    else
9893 #      ifdef RTLD_NOW
9894 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9895 #      else
9896 #        ifdef DL_NOW
9897 #          define LT_DLLAZY_OR_NOW      DL_NOW
9898 #        else
9899 #          define LT_DLLAZY_OR_NOW      0
9900 #        endif
9901 #      endif
9902 #    endif
9903 #  endif
9904 #endif
9905
9906 #ifdef __cplusplus
9907 extern "C" void exit (int);
9908 #endif
9909
9910 void fnord() { int i=42;}
9911 int main ()
9912 {
9913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9914   int status = $lt_dlunknown;
9915
9916   if (self)
9917     {
9918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9919       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9920       /* dlclose (self); */
9921     }
9922   else
9923     puts (dlerror ());
9924
9925     exit (status);
9926 }
9927 EOF
9928   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929   (eval $ac_link) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9933     (./conftest; exit; ) >&5 2>/dev/null
9934     lt_status=$?
9935     case x$lt_status in
9936       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9937       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9938       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9939     esac
9940   else :
9941     # compilation failed
9942     lt_cv_dlopen_self=no
9943   fi
9944 fi
9945 rm -fr conftest*
9946
9947
9948 fi
9949 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9950 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9951
9952     if test "x$lt_cv_dlopen_self" = xyes; then
9953       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9954       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9955 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9956 if test "${lt_cv_dlopen_self_static+set}" = set; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959           if test "$cross_compiling" = yes; then :
9960   lt_cv_dlopen_self_static=cross
9961 else
9962   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9963   lt_status=$lt_dlunknown
9964   cat > conftest.$ac_ext <<EOF
9965 #line 9965 "configure"
9966 #include "confdefs.h"
9967
9968 #if HAVE_DLFCN_H
9969 #include <dlfcn.h>
9970 #endif
9971
9972 #include <stdio.h>
9973
9974 #ifdef RTLD_GLOBAL
9975 #  define LT_DLGLOBAL           RTLD_GLOBAL
9976 #else
9977 #  ifdef DL_GLOBAL
9978 #    define LT_DLGLOBAL         DL_GLOBAL
9979 #  else
9980 #    define LT_DLGLOBAL         0
9981 #  endif
9982 #endif
9983
9984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9985    find out it does not work in some platform. */
9986 #ifndef LT_DLLAZY_OR_NOW
9987 #  ifdef RTLD_LAZY
9988 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9989 #  else
9990 #    ifdef DL_LAZY
9991 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9992 #    else
9993 #      ifdef RTLD_NOW
9994 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9995 #      else
9996 #        ifdef DL_NOW
9997 #          define LT_DLLAZY_OR_NOW      DL_NOW
9998 #        else
9999 #          define LT_DLLAZY_OR_NOW      0
10000 #        endif
10001 #      endif
10002 #    endif
10003 #  endif
10004 #endif
10005
10006 #ifdef __cplusplus
10007 extern "C" void exit (int);
10008 #endif
10009
10010 void fnord() { int i=42;}
10011 int main ()
10012 {
10013   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10014   int status = $lt_dlunknown;
10015
10016   if (self)
10017     {
10018       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10019       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10020       /* dlclose (self); */
10021     }
10022   else
10023     puts (dlerror ());
10024
10025     exit (status);
10026 }
10027 EOF
10028   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029   (eval $ac_link) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10033     (./conftest; exit; ) >&5 2>/dev/null
10034     lt_status=$?
10035     case x$lt_status in
10036       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10037       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10038       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10039     esac
10040   else :
10041     # compilation failed
10042     lt_cv_dlopen_self_static=no
10043   fi
10044 fi
10045 rm -fr conftest*
10046
10047
10048 fi
10049 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10050 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10051     fi
10052
10053     CPPFLAGS="$save_CPPFLAGS"
10054     LDFLAGS="$save_LDFLAGS"
10055     LIBS="$save_LIBS"
10056     ;;
10057   esac
10058
10059   case $lt_cv_dlopen_self in
10060   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10061   *) enable_dlopen_self=unknown ;;
10062   esac
10063
10064   case $lt_cv_dlopen_self_static in
10065   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10066   *) enable_dlopen_self_static=unknown ;;
10067   esac
10068 fi
10069
10070
10071 # Report which library types will actually be built
10072 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10073 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10074 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10075 echo "${ECHO_T}$can_build_shared" >&6; }
10076
10077 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10078 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10079 test "$can_build_shared" = "no" && enable_shared=no
10080
10081 # On AIX, shared libraries and static libraries use the same namespace, and
10082 # are all built from PIC.
10083 case $host_os in
10084 aix3*)
10085   test "$enable_shared" = yes && enable_static=no
10086   if test -n "$RANLIB"; then
10087     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10088     postinstall_cmds='$RANLIB $lib'
10089   fi
10090   ;;
10091
10092 aix4* | aix5*)
10093   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10094     test "$enable_shared" = yes && enable_static=no
10095   fi
10096     ;;
10097 esac
10098 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10099 echo "${ECHO_T}$enable_shared" >&6; }
10100
10101 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10102 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10103 # Make sure either enable_shared or enable_static is yes.
10104 test "$enable_shared" = yes || enable_static=yes
10105 { echo "$as_me:$LINENO: result: $enable_static" >&5
10106 echo "${ECHO_T}$enable_static" >&6; }
10107
10108 # The else clause should only fire when bootstrapping the
10109 # libtool distribution, otherwise you forgot to ship ltmain.sh
10110 # with your package, and you will get complaints that there are
10111 # no rules to generate ltmain.sh.
10112 if test -f "$ltmain"; then
10113   # See if we are running on zsh, and set the options which allow our commands through
10114   # without removal of \ escapes.
10115   if test -n "${ZSH_VERSION+set}" ; then
10116     setopt NO_GLOB_SUBST
10117   fi
10118   # Now quote all the things that may contain metacharacters while being
10119   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10120   # variables and quote the copies for generation of the libtool script.
10121   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10122     SED SHELL STRIP \
10123     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10124     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10125     deplibs_check_method reload_flag reload_cmds need_locks \
10126     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10127     lt_cv_sys_global_symbol_to_c_name_address \
10128     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10129     old_postinstall_cmds old_postuninstall_cmds \
10130     compiler \
10131     CC \
10132     LD \
10133     lt_prog_compiler_wl \
10134     lt_prog_compiler_pic \
10135     lt_prog_compiler_static \
10136     lt_prog_compiler_no_builtin_flag \
10137     export_dynamic_flag_spec \
10138     thread_safe_flag_spec \
10139     whole_archive_flag_spec \
10140     enable_shared_with_static_runtimes \
10141     old_archive_cmds \
10142     old_archive_from_new_cmds \
10143     predep_objects \
10144     postdep_objects \
10145     predeps \
10146     postdeps \
10147     compiler_lib_search_path \
10148     archive_cmds \
10149     archive_expsym_cmds \
10150     postinstall_cmds \
10151     postuninstall_cmds \
10152     old_archive_from_expsyms_cmds \
10153     allow_undefined_flag \
10154     no_undefined_flag \
10155     export_symbols_cmds \
10156     hardcode_libdir_flag_spec \
10157     hardcode_libdir_flag_spec_ld \
10158     hardcode_libdir_separator \
10159     hardcode_automatic \
10160     module_cmds \
10161     module_expsym_cmds \
10162     lt_cv_prog_compiler_c_o \
10163     exclude_expsyms \
10164     include_expsyms; do
10165
10166     case $var in
10167     old_archive_cmds | \
10168     old_archive_from_new_cmds | \
10169     archive_cmds | \
10170     archive_expsym_cmds | \
10171     module_cmds | \
10172     module_expsym_cmds | \
10173     old_archive_from_expsyms_cmds | \
10174     export_symbols_cmds | \
10175     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10176     postinstall_cmds | postuninstall_cmds | \
10177     old_postinstall_cmds | old_postuninstall_cmds | \
10178     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10179       # Double-quote double-evaled strings.
10180       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10181       ;;
10182     *)
10183       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10184       ;;
10185     esac
10186   done
10187
10188   case $lt_echo in
10189   *'\$0 --fallback-echo"')
10190     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10191     ;;
10192   esac
10193
10194 cfgfile="${ofile}T"
10195   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10196   $rm -f "$cfgfile"
10197   { echo "$as_me:$LINENO: creating $ofile" >&5
10198 echo "$as_me: creating $ofile" >&6;}
10199
10200   cat <<__EOF__ >> "$cfgfile"
10201 #! $SHELL
10202
10203 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10204 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10205 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10206 #
10207 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10208 # Free Software Foundation, Inc.
10209 #
10210 # This file is part of GNU Libtool:
10211 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10212 #
10213 # This program is free software; you can redistribute it and/or modify
10214 # it under the terms of the GNU General Public License as published by
10215 # the Free Software Foundation; either version 2 of the License, or
10216 # (at your option) any later version.
10217 #
10218 # This program is distributed in the hope that it will be useful, but
10219 # WITHOUT ANY WARRANTY; without even the implied warranty of
10220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10221 # General Public License for more details.
10222 #
10223 # You should have received a copy of the GNU General Public License
10224 # along with this program; if not, write to the Free Software
10225 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10226 #
10227 # As a special exception to the GNU General Public License, if you
10228 # distribute this file as part of a program that contains a
10229 # configuration script generated by Autoconf, you may include it under
10230 # the same distribution terms that you use for the rest of that program.
10231
10232 # A sed program that does not truncate output.
10233 SED=$lt_SED
10234
10235 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10236 Xsed="$SED -e 1s/^X//"
10237
10238 # The HP-UX ksh and POSIX shell print the target directory to stdout
10239 # if CDPATH is set.
10240 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10241
10242 # The names of the tagged configurations supported by this script.
10243 available_tags=
10244
10245 # ### BEGIN LIBTOOL CONFIG
10246
10247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10248
10249 # Shell to use when invoking shell scripts.
10250 SHELL=$lt_SHELL
10251
10252 # Whether or not to build shared libraries.
10253 build_libtool_libs=$enable_shared
10254
10255 # Whether or not to build static libraries.
10256 build_old_libs=$enable_static
10257
10258 # Whether or not to add -lc for building shared libraries.
10259 build_libtool_need_lc=$archive_cmds_need_lc
10260
10261 # Whether or not to disallow shared libs when runtime libs are static
10262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10263
10264 # Whether or not to optimize for fast installation.
10265 fast_install=$enable_fast_install
10266
10267 # The host system.
10268 host_alias=$host_alias
10269 host=$host
10270 host_os=$host_os
10271
10272 # The build system.
10273 build_alias=$build_alias
10274 build=$build
10275 build_os=$build_os
10276
10277 # An echo program that does not interpret backslashes.
10278 echo=$lt_echo
10279
10280 # The archiver.
10281 AR=$lt_AR
10282 AR_FLAGS=$lt_AR_FLAGS
10283
10284 # A C compiler.
10285 LTCC=$lt_LTCC
10286
10287 # LTCC compiler flags.
10288 LTCFLAGS=$lt_LTCFLAGS
10289
10290 # A language-specific compiler.
10291 CC=$lt_compiler
10292
10293 # Is the compiler the GNU C compiler?
10294 with_gcc=$GCC
10295
10296 # An ERE matcher.
10297 EGREP=$lt_EGREP
10298
10299 # The linker used to build libraries.
10300 LD=$lt_LD
10301
10302 # Whether we need hard or soft links.
10303 LN_S=$lt_LN_S
10304
10305 # A BSD-compatible nm program.
10306 NM=$lt_NM
10307
10308 # A symbol stripping program
10309 STRIP=$lt_STRIP
10310
10311 # Used to examine libraries when file_magic_cmd begins "file"
10312 MAGIC_CMD=$MAGIC_CMD
10313
10314 # Used on cygwin: DLL creation program.
10315 DLLTOOL="$DLLTOOL"
10316
10317 # Used on cygwin: object dumper.
10318 OBJDUMP="$OBJDUMP"
10319
10320 # Used on cygwin: assembler.
10321 AS="$AS"
10322
10323 # The name of the directory that contains temporary libtool files.
10324 objdir=$objdir
10325
10326 # How to create reloadable object files.
10327 reload_flag=$lt_reload_flag
10328 reload_cmds=$lt_reload_cmds
10329
10330 # How to pass a linker flag through the compiler.
10331 wl=$lt_lt_prog_compiler_wl
10332
10333 # Object file suffix (normally "o").
10334 objext="$ac_objext"
10335
10336 # Old archive suffix (normally "a").
10337 libext="$libext"
10338
10339 # Shared library suffix (normally ".so").
10340 shrext_cmds='$shrext_cmds'
10341
10342 # Executable file suffix (normally "").
10343 exeext="$exeext"
10344
10345 # Additional compiler flags for building library objects.
10346 pic_flag=$lt_lt_prog_compiler_pic
10347 pic_mode=$pic_mode
10348
10349 # What is the maximum length of a command?
10350 max_cmd_len=$lt_cv_sys_max_cmd_len
10351
10352 # Does compiler simultaneously support -c and -o options?
10353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10354
10355 # Must we lock files when doing compilation?
10356 need_locks=$lt_need_locks
10357
10358 # Do we need the lib prefix for modules?
10359 need_lib_prefix=$need_lib_prefix
10360
10361 # Do we need a version for libraries?
10362 need_version=$need_version
10363
10364 # Whether dlopen is supported.
10365 dlopen_support=$enable_dlopen
10366
10367 # Whether dlopen of programs is supported.
10368 dlopen_self=$enable_dlopen_self
10369
10370 # Whether dlopen of statically linked programs is supported.
10371 dlopen_self_static=$enable_dlopen_self_static
10372
10373 # Compiler flag to prevent dynamic linking.
10374 link_static_flag=$lt_lt_prog_compiler_static
10375
10376 # Compiler flag to turn off builtin functions.
10377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10378
10379 # Compiler flag to allow reflexive dlopens.
10380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10381
10382 # Compiler flag to generate shared objects directly from archives.
10383 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10384
10385 # Compiler flag to generate thread-safe objects.
10386 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10387
10388 # Library versioning type.
10389 version_type=$version_type
10390
10391 # Format of library name prefix.
10392 libname_spec=$lt_libname_spec
10393
10394 # List of archive names.  First name is the real one, the rest are links.
10395 # The last name is the one that the linker finds with -lNAME.
10396 library_names_spec=$lt_library_names_spec
10397
10398 # The coded name of the library, if different from the real name.
10399 soname_spec=$lt_soname_spec
10400
10401 # Commands used to build and install an old-style archive.
10402 RANLIB=$lt_RANLIB
10403 old_archive_cmds=$lt_old_archive_cmds
10404 old_postinstall_cmds=$lt_old_postinstall_cmds
10405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10406
10407 # Create an old-style archive from a shared archive.
10408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10409
10410 # Create a temporary old-style archive to link instead of a shared archive.
10411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10412
10413 # Commands used to build and install a shared archive.
10414 archive_cmds=$lt_archive_cmds
10415 archive_expsym_cmds=$lt_archive_expsym_cmds
10416 postinstall_cmds=$lt_postinstall_cmds
10417 postuninstall_cmds=$lt_postuninstall_cmds
10418
10419 # Commands used to build a loadable module (assumed same as above if empty)
10420 module_cmds=$lt_module_cmds
10421 module_expsym_cmds=$lt_module_expsym_cmds
10422
10423 # Commands to strip libraries.
10424 old_striplib=$lt_old_striplib
10425 striplib=$lt_striplib
10426
10427 # Dependencies to place before the objects being linked to create a
10428 # shared library.
10429 predep_objects=$lt_predep_objects
10430
10431 # Dependencies to place after the objects being linked to create a
10432 # shared library.
10433 postdep_objects=$lt_postdep_objects
10434
10435 # Dependencies to place before the objects being linked to create a
10436 # shared library.
10437 predeps=$lt_predeps
10438
10439 # Dependencies to place after the objects being linked to create a
10440 # shared library.
10441 postdeps=$lt_postdeps
10442
10443 # The library search path used internally by the compiler when linking
10444 # a shared library.
10445 compiler_lib_search_path=$lt_compiler_lib_search_path
10446
10447 # Method to check whether dependent libraries are shared objects.
10448 deplibs_check_method=$lt_deplibs_check_method
10449
10450 # Command to use when deplibs_check_method == file_magic.
10451 file_magic_cmd=$lt_file_magic_cmd
10452
10453 # Flag that allows shared libraries with undefined symbols to be built.
10454 allow_undefined_flag=$lt_allow_undefined_flag
10455
10456 # Flag that forces no undefined symbols.
10457 no_undefined_flag=$lt_no_undefined_flag
10458
10459 # Commands used to finish a libtool library installation in a directory.
10460 finish_cmds=$lt_finish_cmds
10461
10462 # Same as above, but a single script fragment to be evaled but not shown.
10463 finish_eval=$lt_finish_eval
10464
10465 # Take the output of nm and produce a listing of raw symbols and C names.
10466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10467
10468 # Transform the output of nm in a proper C declaration
10469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10470
10471 # Transform the output of nm in a C name address pair
10472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10473
10474 # This is the shared library runtime path variable.
10475 runpath_var=$runpath_var
10476
10477 # This is the shared library path variable.
10478 shlibpath_var=$shlibpath_var
10479
10480 # Is shlibpath searched before the hard-coded library search path?
10481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10482
10483 # How to hardcode a shared library path into an executable.
10484 hardcode_action=$hardcode_action
10485
10486 # Whether we should hardcode library paths into libraries.
10487 hardcode_into_libs=$hardcode_into_libs
10488
10489 # Flag to hardcode \$libdir into a binary during linking.
10490 # This must work even if \$libdir does not exist.
10491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10492
10493 # If ld is used when linking, flag to hardcode \$libdir into
10494 # a binary during linking. This must work even if \$libdir does
10495 # not exist.
10496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10497
10498 # Whether we need a single -rpath flag with a separated argument.
10499 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10500
10501 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10502 # resulting binary.
10503 hardcode_direct=$hardcode_direct
10504
10505 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10506 # resulting binary.
10507 hardcode_minus_L=$hardcode_minus_L
10508
10509 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10510 # the resulting binary.
10511 hardcode_shlibpath_var=$hardcode_shlibpath_var
10512
10513 # Set to yes if building a shared library automatically hardcodes DIR into the library
10514 # and all subsequent libraries and executables linked against it.
10515 hardcode_automatic=$hardcode_automatic
10516
10517 # Variables whose values should be saved in libtool wrapper scripts and
10518 # restored at relink time.
10519 variables_saved_for_relink="$variables_saved_for_relink"
10520
10521 # Whether libtool must link a program against all its dependency libraries.
10522 link_all_deplibs=$link_all_deplibs
10523
10524 # Compile-time system search path for libraries
10525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10526
10527 # Run-time system search path for libraries
10528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10529
10530 # Fix the shell variable \$srcfile for the compiler.
10531 fix_srcfile_path="$fix_srcfile_path"
10532
10533 # Set to yes if exported symbols are required.
10534 always_export_symbols=$always_export_symbols
10535
10536 # The commands to list exported symbols.
10537 export_symbols_cmds=$lt_export_symbols_cmds
10538
10539 # The commands to extract the exported symbol list from a shared archive.
10540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10541
10542 # Symbols that should not be listed in the preloaded symbols.
10543 exclude_expsyms=$lt_exclude_expsyms
10544
10545 # Symbols that must always be exported.
10546 include_expsyms=$lt_include_expsyms
10547
10548 # ### END LIBTOOL CONFIG
10549
10550 __EOF__
10551
10552
10553   case $host_os in
10554   aix3*)
10555     cat <<\EOF >> "$cfgfile"
10556
10557 # AIX sometimes has problems with the GCC collect2 program.  For some
10558 # reason, if we set the COLLECT_NAMES environment variable, the problems
10559 # vanish in a puff of smoke.
10560 if test "X${COLLECT_NAMES+set}" != Xset; then
10561   COLLECT_NAMES=
10562   export COLLECT_NAMES
10563 fi
10564 EOF
10565     ;;
10566   esac
10567
10568   # We use sed instead of cat because bash on DJGPP gets confused if
10569   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10570   # text mode, it properly converts lines to CR/LF.  This bash problem
10571   # is reportedly fixed, but why not run on old versions too?
10572   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10573
10574   mv -f "$cfgfile" "$ofile" || \
10575     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10576   chmod +x "$ofile"
10577
10578 else
10579   # If there is no Makefile yet, we rely on a make rule to execute
10580   # `config.status --recheck' to rerun these tests and create the
10581   # libtool script then.
10582   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10583   if test -f "$ltmain_in"; then
10584     test -f Makefile && make "$ltmain"
10585   fi
10586 fi
10587
10588
10589 ac_ext=c
10590 ac_cpp='$CPP $CPPFLAGS'
10591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10594
10595 CC="$lt_save_CC"
10596
10597
10598 # Check whether --with-tags was given.
10599 if test "${with_tags+set}" = set; then
10600   withval=$with_tags; tagnames="$withval"
10601 fi
10602
10603
10604 if test -f "$ltmain" && test -n "$tagnames"; then
10605   if test ! -f "${ofile}"; then
10606     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10607 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10608   fi
10609
10610   if test -z "$LTCC"; then
10611     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10612     if test -z "$LTCC"; then
10613       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10614 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10615     else
10616       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10617 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10618     fi
10619   fi
10620   if test -z "$LTCFLAGS"; then
10621     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10622   fi
10623
10624   # Extract list of available tagged configurations in $ofile.
10625   # Note that this assumes the entire list is on one line.
10626   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10627
10628   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10629   for tagname in $tagnames; do
10630     IFS="$lt_save_ifs"
10631     # Check whether tagname contains only valid characters
10632     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10633     "") ;;
10634     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10635 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10636    { (exit 1); exit 1; }; }
10637         ;;
10638     esac
10639
10640     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10641     then
10642       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10643 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10644    { (exit 1); exit 1; }; }
10645     fi
10646
10647     # Update the list of available tags.
10648     if test -n "$tagname"; then
10649       echo appending configuration tag \"$tagname\" to $ofile
10650
10651       case $tagname in
10652       CXX)
10653         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10654             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10655             (test "X$CXX" != "Xg++"))) ; then
10656           ac_ext=cpp
10657 ac_cpp='$CXXCPP $CPPFLAGS'
10658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10661
10662
10663
10664
10665 archive_cmds_need_lc_CXX=no
10666 allow_undefined_flag_CXX=
10667 always_export_symbols_CXX=no
10668 archive_expsym_cmds_CXX=
10669 export_dynamic_flag_spec_CXX=
10670 hardcode_direct_CXX=no
10671 hardcode_libdir_flag_spec_CXX=
10672 hardcode_libdir_flag_spec_ld_CXX=
10673 hardcode_libdir_separator_CXX=
10674 hardcode_minus_L_CXX=no
10675 hardcode_shlibpath_var_CXX=unsupported
10676 hardcode_automatic_CXX=no
10677 module_cmds_CXX=
10678 module_expsym_cmds_CXX=
10679 link_all_deplibs_CXX=unknown
10680 old_archive_cmds_CXX=$old_archive_cmds
10681 no_undefined_flag_CXX=
10682 whole_archive_flag_spec_CXX=
10683 enable_shared_with_static_runtimes_CXX=no
10684
10685 # Dependencies to place before and after the object being linked:
10686 predep_objects_CXX=
10687 postdep_objects_CXX=
10688 predeps_CXX=
10689 postdeps_CXX=
10690 compiler_lib_search_path_CXX=
10691
10692 # Source file extension for C++ test sources.
10693 ac_ext=cpp
10694
10695 # Object file extension for compiled C++ test sources.
10696 objext=o
10697 objext_CXX=$objext
10698
10699 # Code to be used in simple compile tests
10700 lt_simple_compile_test_code="int some_variable = 0;\n"
10701
10702 # Code to be used in simple link tests
10703 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10704
10705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10706
10707 # If no C compiler was specified, use CC.
10708 LTCC=${LTCC-"$CC"}
10709
10710 # If no C compiler flags were specified, use CFLAGS.
10711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10712
10713 # Allow CC to be a program name with arguments.
10714 compiler=$CC
10715
10716
10717 # save warnings/boilerplate of simple test code
10718 ac_outfile=conftest.$ac_objext
10719 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10721 _lt_compiler_boilerplate=`cat conftest.err`
10722 $rm conftest*
10723
10724 ac_outfile=conftest.$ac_objext
10725 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10727 _lt_linker_boilerplate=`cat conftest.err`
10728 $rm conftest*
10729
10730
10731 # Allow CC to be a program name with arguments.
10732 lt_save_CC=$CC
10733 lt_save_LD=$LD
10734 lt_save_GCC=$GCC
10735 GCC=$GXX
10736 lt_save_with_gnu_ld=$with_gnu_ld
10737 lt_save_path_LD=$lt_cv_path_LD
10738 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10739   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10740 else
10741   $as_unset lt_cv_prog_gnu_ld
10742 fi
10743 if test -n "${lt_cv_path_LDCXX+set}"; then
10744   lt_cv_path_LD=$lt_cv_path_LDCXX
10745 else
10746   $as_unset lt_cv_path_LD
10747 fi
10748 test -z "${LDCXX+set}" || LD=$LDCXX
10749 CC=${CXX-"c++"}
10750 compiler=$CC
10751 compiler_CXX=$CC
10752 for cc_temp in $compiler""; do
10753   case $cc_temp in
10754     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10755     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10756     \-*) ;;
10757     *) break;;
10758   esac
10759 done
10760 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10761
10762
10763 # We don't want -fno-exception wen compiling C++ code, so set the
10764 # no_builtin_flag separately
10765 if test "$GXX" = yes; then
10766   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10767 else
10768   lt_prog_compiler_no_builtin_flag_CXX=
10769 fi
10770
10771 if test "$GXX" = yes; then
10772   # Set up default GNU C++ configuration
10773
10774
10775 # Check whether --with-gnu-ld was given.
10776 if test "${with_gnu_ld+set}" = set; then
10777   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10778 else
10779   with_gnu_ld=no
10780 fi
10781
10782 ac_prog=ld
10783 if test "$GCC" = yes; then
10784   # Check if gcc -print-prog-name=ld gives a path.
10785   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10786 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10787   case $host in
10788   *-*-mingw*)
10789     # gcc leaves a trailing carriage return which upsets mingw
10790     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10791   *)
10792     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10793   esac
10794   case $ac_prog in
10795     # Accept absolute paths.
10796     [\\/]* | ?:[\\/]*)
10797       re_direlt='/[^/][^/]*/\.\./'
10798       # Canonicalize the pathname of ld
10799       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10800       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10801         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10802       done
10803       test -z "$LD" && LD="$ac_prog"
10804       ;;
10805   "")
10806     # If it fails, then pretend we aren't using GCC.
10807     ac_prog=ld
10808     ;;
10809   *)
10810     # If it is relative, then search for the first ld in PATH.
10811     with_gnu_ld=unknown
10812     ;;
10813   esac
10814 elif test "$with_gnu_ld" = yes; then
10815   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10816 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10817 else
10818   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10819 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10820 fi
10821 if test "${lt_cv_path_LD+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   if test -z "$LD"; then
10825   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10826   for ac_dir in $PATH; do
10827     IFS="$lt_save_ifs"
10828     test -z "$ac_dir" && ac_dir=.
10829     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10830       lt_cv_path_LD="$ac_dir/$ac_prog"
10831       # Check to see if the program is GNU ld.  I'd rather use --version,
10832       # but apparently some variants of GNU ld only accept -v.
10833       # Break only if it was the GNU/non-GNU ld that we prefer.
10834       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10835       *GNU* | *'with BFD'*)
10836         test "$with_gnu_ld" != no && break
10837         ;;
10838       *)
10839         test "$with_gnu_ld" != yes && break
10840         ;;
10841       esac
10842     fi
10843   done
10844   IFS="$lt_save_ifs"
10845 else
10846   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10847 fi
10848 fi
10849
10850 LD="$lt_cv_path_LD"
10851 if test -n "$LD"; then
10852   { echo "$as_me:$LINENO: result: $LD" >&5
10853 echo "${ECHO_T}$LD" >&6; }
10854 else
10855   { echo "$as_me:$LINENO: result: no" >&5
10856 echo "${ECHO_T}no" >&6; }
10857 fi
10858 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10859 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10860    { (exit 1); exit 1; }; }
10861 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10862 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10863 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10864   echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10867 case `$LD -v 2>&1 </dev/null` in
10868 *GNU* | *'with BFD'*)
10869   lt_cv_prog_gnu_ld=yes
10870   ;;
10871 *)
10872   lt_cv_prog_gnu_ld=no
10873   ;;
10874 esac
10875 fi
10876 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10877 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10878 with_gnu_ld=$lt_cv_prog_gnu_ld
10879
10880
10881
10882   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10883   # archiving commands below assume that GNU ld is being used.
10884   if test "$with_gnu_ld" = yes; then
10885     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886     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'
10887
10888     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10889     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10890
10891     # If archive_cmds runs LD, not CC, wlarc should be empty
10892     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10893     #     investigate it a little bit more. (MM)
10894     wlarc='${wl}'
10895
10896     # ancient GNU ld didn't support --whole-archive et. al.
10897     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10898         grep 'no-whole-archive' > /dev/null; then
10899       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10900     else
10901       whole_archive_flag_spec_CXX=
10902     fi
10903   else
10904     with_gnu_ld=no
10905     wlarc=
10906
10907     # A generic and very simple default shared library creation
10908     # command for GNU C++ for the case where it uses the native
10909     # linker, instead of GNU ld.  If possible, this setting should
10910     # overridden to take advantage of the native linker features on
10911     # the platform it is being used on.
10912     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10913   fi
10914
10915   # Commands to make compiler produce verbose output that lists
10916   # what "hidden" libraries, object files and flags are used when
10917   # linking a shared library.
10918   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10919
10920 else
10921   GXX=no
10922   with_gnu_ld=no
10923   wlarc=
10924 fi
10925
10926 # PORTME: fill in a description of your system's C++ link characteristics
10927 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10928 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10929 ld_shlibs_CXX=yes
10930 case $host_os in
10931   aix3*)
10932     # FIXME: insert proper C++ library support
10933     ld_shlibs_CXX=no
10934     ;;
10935   aix4* | aix5*)
10936     if test "$host_cpu" = ia64; then
10937       # On IA64, the linker does run time linking by default, so we don't
10938       # have to do anything special.
10939       aix_use_runtimelinking=no
10940       exp_sym_flag='-Bexport'
10941       no_entry_flag=""
10942     else
10943       aix_use_runtimelinking=no
10944
10945       # Test if we are trying to use run time linking or normal
10946       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10947       # need to do runtime linking.
10948       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10949         for ld_flag in $LDFLAGS; do
10950           case $ld_flag in
10951           *-brtl*)
10952             aix_use_runtimelinking=yes
10953             break
10954             ;;
10955           esac
10956         done
10957         ;;
10958       esac
10959
10960       exp_sym_flag='-bexport'
10961       no_entry_flag='-bnoentry'
10962     fi
10963
10964     # When large executables or shared objects are built, AIX ld can
10965     # have problems creating the table of contents.  If linking a library
10966     # or program results in "error TOC overflow" add -mminimal-toc to
10967     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10968     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10969
10970     archive_cmds_CXX=''
10971     hardcode_direct_CXX=yes
10972     hardcode_libdir_separator_CXX=':'
10973     link_all_deplibs_CXX=yes
10974
10975     if test "$GXX" = yes; then
10976       case $host_os in aix4.[012]|aix4.[012].*)
10977       # We only want to do this on AIX 4.2 and lower, the check
10978       # below for broken collect2 doesn't work under 4.3+
10979         collect2name=`${CC} -print-prog-name=collect2`
10980         if test -f "$collect2name" && \
10981            strings "$collect2name" | grep resolve_lib_name >/dev/null
10982         then
10983           # We have reworked collect2
10984           hardcode_direct_CXX=yes
10985         else
10986           # We have old collect2
10987           hardcode_direct_CXX=unsupported
10988           # It fails to find uninstalled libraries when the uninstalled
10989           # path is not listed in the libpath.  Setting hardcode_minus_L
10990           # to unsupported forces relinking
10991           hardcode_minus_L_CXX=yes
10992           hardcode_libdir_flag_spec_CXX='-L$libdir'
10993           hardcode_libdir_separator_CXX=
10994         fi
10995         ;;
10996       esac
10997       shared_flag='-shared'
10998       if test "$aix_use_runtimelinking" = yes; then
10999         shared_flag="$shared_flag "'${wl}-G'
11000       fi
11001     else
11002       # not using gcc
11003       if test "$host_cpu" = ia64; then
11004         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11005         # chokes on -Wl,-G. The following line is correct:
11006         shared_flag='-G'
11007       else
11008         if test "$aix_use_runtimelinking" = yes; then
11009           shared_flag='${wl}-G'
11010         else
11011           shared_flag='${wl}-bM:SRE'
11012         fi
11013       fi
11014     fi
11015
11016     # It seems that -bexpall does not export symbols beginning with
11017     # underscore (_), so it is better to generate a list of symbols to export.
11018     always_export_symbols_CXX=yes
11019     if test "$aix_use_runtimelinking" = yes; then
11020       # Warning - without using the other runtime loading flags (-brtl),
11021       # -berok will link without error, but may produce a broken library.
11022       allow_undefined_flag_CXX='-berok'
11023       # Determine the default libpath from the value encoded in an empty executable.
11024       cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h.  */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h.  */
11030
11031 int
11032 main ()
11033 {
11034
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043   *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046   (eval "$ac_link") 2>conftest.er1
11047   ac_status=$?
11048   grep -v '^ *+' conftest.er1 >conftest.err
11049   rm -f conftest.er1
11050   cat conftest.err >&5
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } && {
11053          test -z "$ac_cxx_werror_flag" ||
11054          test ! -s conftest.err
11055        } && test -s conftest$ac_exeext &&
11056        $as_test_x conftest$ac_exeext; then
11057
11058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11059 }'`
11060 # Check for a 64-bit object if we didn't find anything.
11061 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; }
11062 }'`; fi
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11071       conftest$ac_exeext conftest.$ac_ext
11072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11073
11074       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11075
11076       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"
11077      else
11078       if test "$host_cpu" = ia64; then
11079         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11080         allow_undefined_flag_CXX="-z nodefs"
11081         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"
11082       else
11083         # Determine the default libpath from the value encoded in an empty executable.
11084         cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h.  */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h.  */
11090
11091 int
11092 main ()
11093 {
11094
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (ac_try="$ac_link"
11101 case "(($ac_try" in
11102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103   *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106   (eval "$ac_link") 2>conftest.er1
11107   ac_status=$?
11108   grep -v '^ *+' conftest.er1 >conftest.err
11109   rm -f conftest.er1
11110   cat conftest.err >&5
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } && {
11113          test -z "$ac_cxx_werror_flag" ||
11114          test ! -s conftest.err
11115        } && test -s conftest$ac_exeext &&
11116        $as_test_x conftest$ac_exeext; then
11117
11118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11119 }'`
11120 # Check for a 64-bit object if we didn't find anything.
11121 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; }
11122 }'`; fi
11123 else
11124   echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127
11128 fi
11129
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131       conftest$ac_exeext conftest.$ac_ext
11132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11133
11134         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11135         # Warning - without using the other run time loading flags,
11136         # -berok will link without error, but may produce a broken library.
11137         no_undefined_flag_CXX=' ${wl}-bernotok'
11138         allow_undefined_flag_CXX=' ${wl}-berok'
11139         # Exported symbols can be pulled into shared objects from archives
11140         whole_archive_flag_spec_CXX='$convenience'
11141         archive_cmds_need_lc_CXX=yes
11142         # This is similar to how AIX traditionally builds its shared libraries.
11143         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'
11144       fi
11145     fi
11146     ;;
11147
11148   beos*)
11149     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11150       allow_undefined_flag_CXX=unsupported
11151       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11152       # support --undefined.  This deserves some investigation.  FIXME
11153       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11154     else
11155       ld_shlibs_CXX=no
11156     fi
11157     ;;
11158
11159   chorus*)
11160     case $cc_basename in
11161       *)
11162         # FIXME: insert proper C++ library support
11163         ld_shlibs_CXX=no
11164         ;;
11165     esac
11166     ;;
11167
11168   cygwin* | mingw* | pw32*)
11169     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11170     # as there is no search path for DLLs.
11171     hardcode_libdir_flag_spec_CXX='-L$libdir'
11172     allow_undefined_flag_CXX=unsupported
11173     always_export_symbols_CXX=no
11174     enable_shared_with_static_runtimes_CXX=yes
11175
11176     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11177       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'
11178       # If the export-symbols file already is a .def file (1st line
11179       # is EXPORTS), use it as is; otherwise, prepend...
11180       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11181         cp $export_symbols $output_objdir/$soname.def;
11182       else
11183         echo EXPORTS > $output_objdir/$soname.def;
11184         cat $export_symbols >> $output_objdir/$soname.def;
11185       fi~
11186       $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'
11187     else
11188       ld_shlibs_CXX=no
11189     fi
11190   ;;
11191       darwin* | rhapsody*)
11192         case $host_os in
11193         rhapsody* | darwin1.[012])
11194          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11195          ;;
11196        *) # Darwin 1.3 on
11197          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11198            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11199          else
11200            case ${MACOSX_DEPLOYMENT_TARGET} in
11201              10.[012])
11202                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11203                ;;
11204              10.*)
11205                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11206                ;;
11207            esac
11208          fi
11209          ;;
11210         esac
11211       archive_cmds_need_lc_CXX=no
11212       hardcode_direct_CXX=no
11213       hardcode_automatic_CXX=yes
11214       hardcode_shlibpath_var_CXX=unsupported
11215       whole_archive_flag_spec_CXX=''
11216       link_all_deplibs_CXX=yes
11217
11218     if test "$GXX" = yes ; then
11219       lt_int_apple_cc_single_mod=no
11220       output_verbose_link_cmd='echo'
11221       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11222        lt_int_apple_cc_single_mod=yes
11223       fi
11224       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11225        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11226       else
11227           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'
11228         fi
11229         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11230         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11231           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11232             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}'
11233           else
11234             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}'
11235           fi
11236             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}'
11237       else
11238       case $cc_basename in
11239         xlc*)
11240          output_verbose_link_cmd='echo'
11241           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'
11242           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11243           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11244           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}'
11245           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}'
11246           ;;
11247        *)
11248          ld_shlibs_CXX=no
11249           ;;
11250       esac
11251       fi
11252         ;;
11253
11254   dgux*)
11255     case $cc_basename in
11256       ec++*)
11257         # FIXME: insert proper C++ library support
11258         ld_shlibs_CXX=no
11259         ;;
11260       ghcx*)
11261         # Green Hills C++ Compiler
11262         # FIXME: insert proper C++ library support
11263         ld_shlibs_CXX=no
11264         ;;
11265       *)
11266         # FIXME: insert proper C++ library support
11267         ld_shlibs_CXX=no
11268         ;;
11269     esac
11270     ;;
11271   freebsd[12]*)
11272     # C++ shared libraries reported to be fairly broken before switch to ELF
11273     ld_shlibs_CXX=no
11274     ;;
11275   freebsd-elf*)
11276     archive_cmds_need_lc_CXX=no
11277     ;;
11278   freebsd* | dragonfly*)
11279     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11280     # conventions
11281     ld_shlibs_CXX=yes
11282     ;;
11283   gnu*)
11284     ;;
11285   hpux9*)
11286     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11287     hardcode_libdir_separator_CXX=:
11288     export_dynamic_flag_spec_CXX='${wl}-E'
11289     hardcode_direct_CXX=yes
11290     hardcode_minus_L_CXX=yes # Not in the search PATH,
11291                                 # but as the default
11292                                 # location of the library.
11293
11294     case $cc_basename in
11295     CC*)
11296       # FIXME: insert proper C++ library support
11297       ld_shlibs_CXX=no
11298       ;;
11299     aCC*)
11300       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'
11301       # Commands to make compiler produce verbose output that lists
11302       # what "hidden" libraries, object files and flags are used when
11303       # linking a shared library.
11304       #
11305       # There doesn't appear to be a way to prevent this compiler from
11306       # explicitly linking system object files so we need to strip them
11307       # from the output so that they don't get included in the library
11308       # dependencies.
11309       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'
11310       ;;
11311     *)
11312       if test "$GXX" = yes; then
11313         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'
11314       else
11315         # FIXME: insert proper C++ library support
11316         ld_shlibs_CXX=no
11317       fi
11318       ;;
11319     esac
11320     ;;
11321   hpux10*|hpux11*)
11322     if test $with_gnu_ld = no; then
11323       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324       hardcode_libdir_separator_CXX=:
11325
11326       case $host_cpu in
11327       hppa*64*|ia64*)
11328         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11329         ;;
11330       *)
11331         export_dynamic_flag_spec_CXX='${wl}-E'
11332         ;;
11333       esac
11334     fi
11335     case $host_cpu in
11336     hppa*64*|ia64*)
11337       hardcode_direct_CXX=no
11338       hardcode_shlibpath_var_CXX=no
11339       ;;
11340     *)
11341       hardcode_direct_CXX=yes
11342       hardcode_minus_L_CXX=yes # Not in the search PATH,
11343                                               # but as the default
11344                                               # location of the library.
11345       ;;
11346     esac
11347
11348     case $cc_basename in
11349       CC*)
11350         # FIXME: insert proper C++ library support
11351         ld_shlibs_CXX=no
11352         ;;
11353       aCC*)
11354         case $host_cpu in
11355         hppa*64*)
11356           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11357           ;;
11358         ia64*)
11359           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11360           ;;
11361         *)
11362           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11363           ;;
11364         esac
11365         # Commands to make compiler produce verbose output that lists
11366         # what "hidden" libraries, object files and flags are used when
11367         # linking a shared library.
11368         #
11369         # There doesn't appear to be a way to prevent this compiler from
11370         # explicitly linking system object files so we need to strip them
11371         # from the output so that they don't get included in the library
11372         # dependencies.
11373         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'
11374         ;;
11375       *)
11376         if test "$GXX" = yes; then
11377           if test $with_gnu_ld = no; then
11378             case $host_cpu in
11379             hppa*64*)
11380               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11381               ;;
11382             ia64*)
11383               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11384               ;;
11385             *)
11386               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'
11387               ;;
11388             esac
11389           fi
11390         else
11391           # FIXME: insert proper C++ library support
11392           ld_shlibs_CXX=no
11393         fi
11394         ;;
11395     esac
11396     ;;
11397   interix3*)
11398     hardcode_direct_CXX=no
11399     hardcode_shlibpath_var_CXX=no
11400     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11401     export_dynamic_flag_spec_CXX='${wl}-E'
11402     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11403     # Instead, shared libraries are loaded at an image base (0x10000000 by
11404     # default) and relocated if they conflict, which is a slow very memory
11405     # consuming and fragmenting process.  To avoid this, we pick a random,
11406     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11407     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11408     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'
11409     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'
11410     ;;
11411   irix5* | irix6*)
11412     case $cc_basename in
11413       CC*)
11414         # SGI C++
11415         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'
11416
11417         # Archives containing C++ object files must be created using
11418         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11419         # necessary to make sure instantiated templates are included
11420         # in the archive.
11421         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11422         ;;
11423       *)
11424         if test "$GXX" = yes; then
11425           if test "$with_gnu_ld" = no; then
11426             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'
11427           else
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` -o $lib'
11429           fi
11430         fi
11431         link_all_deplibs_CXX=yes
11432         ;;
11433     esac
11434     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11435     hardcode_libdir_separator_CXX=:
11436     ;;
11437   linux* | k*bsd*-gnu)
11438     case $cc_basename in
11439       KCC*)
11440         # Kuck and Associates, Inc. (KAI) C++ Compiler
11441
11442         # KCC will only create a shared library if the output file
11443         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11444         # to its proper name (with version) after linking.
11445         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'
11446         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'
11447         # Commands to make compiler produce verbose output that lists
11448         # what "hidden" libraries, object files and flags are used when
11449         # linking a shared library.
11450         #
11451         # There doesn't appear to be a way to prevent this compiler from
11452         # explicitly linking system object files so we need to strip them
11453         # from the output so that they don't get included in the library
11454         # dependencies.
11455         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'
11456
11457         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11458         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11459
11460         # Archives containing C++ object files must be created using
11461         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11462         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11463         ;;
11464       icpc*)
11465         # Intel C++
11466         with_gnu_ld=yes
11467         # version 8.0 and above of icpc choke on multiply defined symbols
11468         # if we add $predep_objects and $postdep_objects, however 7.1 and
11469         # earlier do not add the objects themselves.
11470         case `$CC -V 2>&1` in
11471         *"Version 7."*)
11472           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11473           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'
11474           ;;
11475         *)  # Version 8.0 or newer
11476           tmp_idyn=
11477           case $host_cpu in
11478             ia64*) tmp_idyn=' -i_dynamic';;
11479           esac
11480           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11481           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'
11482           ;;
11483         esac
11484         archive_cmds_need_lc_CXX=no
11485         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11486         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11487         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11488         ;;
11489       pgCC*)
11490         # Portland Group C++ compiler
11491         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11492         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'
11493
11494         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11495         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11496         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'
11497         ;;
11498       cxx*)
11499         # Compaq C++
11500         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501         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'
11502
11503         runpath_var=LD_RUN_PATH
11504         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11505         hardcode_libdir_separator_CXX=:
11506
11507         # Commands to make compiler produce verbose output that lists
11508         # what "hidden" libraries, object files and flags are used when
11509         # linking a shared library.
11510         #
11511         # There doesn't appear to be a way to prevent this compiler from
11512         # explicitly linking system object files so we need to strip them
11513         # from the output so that they don't get included in the library
11514         # dependencies.
11515         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'
11516         ;;
11517     esac
11518     ;;
11519   lynxos*)
11520     # FIXME: insert proper C++ library support
11521     ld_shlibs_CXX=no
11522     ;;
11523   m88k*)
11524     # FIXME: insert proper C++ library support
11525     ld_shlibs_CXX=no
11526     ;;
11527   mvs*)
11528     case $cc_basename in
11529       cxx*)
11530         # FIXME: insert proper C++ library support
11531         ld_shlibs_CXX=no
11532         ;;
11533       *)
11534         # FIXME: insert proper C++ library support
11535         ld_shlibs_CXX=no
11536         ;;
11537     esac
11538     ;;
11539   netbsd* | netbsdelf*-gnu)
11540     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11541       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11542       wlarc=
11543       hardcode_libdir_flag_spec_CXX='-R$libdir'
11544       hardcode_direct_CXX=yes
11545       hardcode_shlibpath_var_CXX=no
11546     fi
11547     # Workaround some broken pre-1.5 toolchains
11548     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11549     ;;
11550   openbsd2*)
11551     # C++ shared libraries are fairly broken
11552     ld_shlibs_CXX=no
11553     ;;
11554   openbsd*)
11555     hardcode_direct_CXX=yes
11556     hardcode_shlibpath_var_CXX=no
11557     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11558     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11559     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11560       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11561       export_dynamic_flag_spec_CXX='${wl}-E'
11562       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11563     fi
11564     output_verbose_link_cmd='echo'
11565     ;;
11566   osf3*)
11567     case $cc_basename in
11568       KCC*)
11569         # Kuck and Associates, Inc. (KAI) C++ Compiler
11570
11571         # KCC will only create a shared library if the output file
11572         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11573         # to its proper name (with version) after linking.
11574         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'
11575
11576         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11577         hardcode_libdir_separator_CXX=:
11578
11579         # Archives containing C++ object files must be created using
11580         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11581         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11582
11583         ;;
11584       RCC*)
11585         # Rational C++ 2.4.1
11586         # FIXME: insert proper C++ library support
11587         ld_shlibs_CXX=no
11588         ;;
11589       cxx*)
11590         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11591         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'
11592
11593         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11594         hardcode_libdir_separator_CXX=:
11595
11596         # Commands to make compiler produce verbose output that lists
11597         # what "hidden" libraries, object files and flags are used when
11598         # linking a shared library.
11599         #
11600         # There doesn't appear to be a way to prevent this compiler from
11601         # explicitly linking system object files so we need to strip them
11602         # from the output so that they don't get included in the library
11603         # dependencies.
11604         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'
11605         ;;
11606       *)
11607         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11608           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11609           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'
11610
11611           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11612           hardcode_libdir_separator_CXX=:
11613
11614           # Commands to make compiler produce verbose output that lists
11615           # what "hidden" libraries, object files and flags are used when
11616           # linking a shared library.
11617           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11618
11619         else
11620           # FIXME: insert proper C++ library support
11621           ld_shlibs_CXX=no
11622         fi
11623         ;;
11624     esac
11625     ;;
11626   osf4* | osf5*)
11627     case $cc_basename in
11628       KCC*)
11629         # Kuck and Associates, Inc. (KAI) C++ Compiler
11630
11631         # KCC will only create a shared library if the output file
11632         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11633         # to its proper name (with version) after linking.
11634         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'
11635
11636         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11637         hardcode_libdir_separator_CXX=:
11638
11639         # Archives containing C++ object files must be created using
11640         # the KAI C++ compiler.
11641         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11642         ;;
11643       RCC*)
11644         # Rational C++ 2.4.1
11645         # FIXME: insert proper C++ library support
11646         ld_shlibs_CXX=no
11647         ;;
11648       cxx*)
11649         allow_undefined_flag_CXX=' -expect_unresolved \*'
11650         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'
11651         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11652           echo "-hidden">> $lib.exp~
11653           $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~
11654           $rm $lib.exp'
11655
11656         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11657         hardcode_libdir_separator_CXX=:
11658
11659         # Commands to make compiler produce verbose output that lists
11660         # what "hidden" libraries, object files and flags are used when
11661         # linking a shared library.
11662         #
11663         # There doesn't appear to be a way to prevent this compiler from
11664         # explicitly linking system object files so we need to strip them
11665         # from the output so that they don't get included in the library
11666         # dependencies.
11667         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'
11668         ;;
11669       *)
11670         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11671           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11672          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'
11673
11674           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11675           hardcode_libdir_separator_CXX=:
11676
11677           # Commands to make compiler produce verbose output that lists
11678           # what "hidden" libraries, object files and flags are used when
11679           # linking a shared library.
11680           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11681
11682         else
11683           # FIXME: insert proper C++ library support
11684           ld_shlibs_CXX=no
11685         fi
11686         ;;
11687     esac
11688     ;;
11689   psos*)
11690     # FIXME: insert proper C++ library support
11691     ld_shlibs_CXX=no
11692     ;;
11693   sunos4*)
11694     case $cc_basename in
11695       CC*)
11696         # Sun C++ 4.x
11697         # FIXME: insert proper C++ library support
11698         ld_shlibs_CXX=no
11699         ;;
11700       lcc*)
11701         # Lucid
11702         # FIXME: insert proper C++ library support
11703         ld_shlibs_CXX=no
11704         ;;
11705       *)
11706         # FIXME: insert proper C++ library support
11707         ld_shlibs_CXX=no
11708         ;;
11709     esac
11710     ;;
11711   solaris*)
11712     case $cc_basename in
11713       CC*)
11714         # Sun C++ 4.2, 5.x and Centerline C++
11715         archive_cmds_need_lc_CXX=yes
11716         no_undefined_flag_CXX=' -zdefs'
11717         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11719         $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'
11720
11721         hardcode_libdir_flag_spec_CXX='-R$libdir'
11722         hardcode_shlibpath_var_CXX=no
11723         case $host_os in
11724           solaris2.[0-5] | solaris2.[0-5].*) ;;
11725           *)
11726             # The C++ compiler is used as linker so we must use $wl
11727             # flag to pass the commands to the underlying system
11728             # linker. We must also pass each convience library through
11729             # to the system linker between allextract/defaultextract.
11730             # The C++ compiler will combine linker options so we
11731             # cannot just pass the convience library names through
11732             # without $wl.
11733             # Supported since Solaris 2.6 (maybe 2.5.1?)
11734             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'
11735             ;;
11736         esac
11737         link_all_deplibs_CXX=yes
11738
11739         output_verbose_link_cmd='echo'
11740
11741         # Archives containing C++ object files must be created using
11742         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11743         # necessary to make sure instantiated templates are included
11744         # in the archive.
11745         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11746         ;;
11747       gcx*)
11748         # Green Hills C++ Compiler
11749         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11750
11751         # The C++ compiler must be used to create the archive.
11752         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11753         ;;
11754       *)
11755         # GNU C++ compiler with Solaris linker
11756         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11757           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11758           if $CC --version | grep -v '^2\.7' > /dev/null; then
11759             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11760             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11761                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11762
11763             # Commands to make compiler produce verbose output that lists
11764             # what "hidden" libraries, object files and flags are used when
11765             # linking a shared library.
11766             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11767           else
11768             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11769             # platform.
11770             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11771             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11772                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11773
11774             # Commands to make compiler produce verbose output that lists
11775             # what "hidden" libraries, object files and flags are used when
11776             # linking a shared library.
11777             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11778           fi
11779
11780           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11781         fi
11782         ;;
11783     esac
11784     ;;
11785   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11786     no_undefined_flag_CXX='${wl}-z,text'
11787     archive_cmds_need_lc_CXX=no
11788     hardcode_shlibpath_var_CXX=no
11789     runpath_var='LD_RUN_PATH'
11790
11791     case $cc_basename in
11792       CC*)
11793         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11794         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11795         ;;
11796       *)
11797         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11799         ;;
11800     esac
11801     ;;
11802   sysv5* | sco3.2v5* | sco5v6*)
11803     # Note: We can NOT use -z defs as we might desire, because we do not
11804     # link with -lc, and that would cause any symbols used from libc to
11805     # always be unresolved, which means just about no library would
11806     # ever link correctly.  If we're not using GNU ld we use -z text
11807     # though, which does catch some bad symbols but isn't as heavy-handed
11808     # as -z defs.
11809     # For security reasons, it is highly recommended that you always
11810     # use absolute paths for naming shared libraries, and exclude the
11811     # DT_RUNPATH tag from executables and libraries.  But doing so
11812     # requires that you compile everything twice, which is a pain.
11813     # So that behaviour is only enabled if SCOABSPATH is set to a
11814     # non-empty value in the environment.  Most likely only useful for
11815     # creating official distributions of packages.
11816     # This is a hack until libtool officially supports absolute path
11817     # names for shared libraries.
11818     no_undefined_flag_CXX='${wl}-z,text'
11819     allow_undefined_flag_CXX='${wl}-z,nodefs'
11820     archive_cmds_need_lc_CXX=no
11821     hardcode_shlibpath_var_CXX=no
11822     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11823     hardcode_libdir_separator_CXX=':'
11824     link_all_deplibs_CXX=yes
11825     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11826     runpath_var='LD_RUN_PATH'
11827
11828     case $cc_basename in
11829       CC*)
11830         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11832         ;;
11833       *)
11834         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11835         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11836         ;;
11837     esac
11838     ;;
11839   tandem*)
11840     case $cc_basename in
11841       NCC*)
11842         # NonStop-UX NCC 3.20
11843         # FIXME: insert proper C++ library support
11844         ld_shlibs_CXX=no
11845         ;;
11846       *)
11847         # FIXME: insert proper C++ library support
11848         ld_shlibs_CXX=no
11849         ;;
11850     esac
11851     ;;
11852   vxworks*)
11853     # FIXME: insert proper C++ library support
11854     ld_shlibs_CXX=no
11855     ;;
11856   *)
11857     # FIXME: insert proper C++ library support
11858     ld_shlibs_CXX=no
11859     ;;
11860 esac
11861 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11862 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11863 test "$ld_shlibs_CXX" = no && can_build_shared=no
11864
11865 GCC_CXX="$GXX"
11866 LD_CXX="$LD"
11867
11868
11869 cat > conftest.$ac_ext <<EOF
11870 class Foo
11871 {
11872 public:
11873   Foo (void) { a = 0; }
11874 private:
11875   int a;
11876 };
11877 EOF
11878
11879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880   (eval $ac_compile) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; then
11884   # Parse the compiler output and extract the necessary
11885   # objects, libraries and library flags.
11886
11887   # Sentinel used to keep track of whether or not we are before
11888   # the conftest object file.
11889   pre_test_object_deps_done=no
11890
11891   # The `*' in the case matches for architectures that use `case' in
11892   # $output_verbose_cmd can trigger glob expansion during the loop
11893   # eval without this substitution.
11894   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11895
11896   for p in `eval $output_verbose_link_cmd`; do
11897     case $p in
11898
11899     -L* | -R* | -l*)
11900        # Some compilers place space between "-{L,R}" and the path.
11901        # Remove the space.
11902        if test $p = "-L" \
11903           || test $p = "-R"; then
11904          prev=$p
11905          continue
11906        else
11907          prev=
11908        fi
11909
11910        if test "$pre_test_object_deps_done" = no; then
11911          case $p in
11912          -L* | -R*)
11913            # Internal compiler library paths should come after those
11914            # provided the user.  The postdeps already come after the
11915            # user supplied libs so there is no need to process them.
11916            if test -z "$compiler_lib_search_path_CXX"; then
11917              compiler_lib_search_path_CXX="${prev}${p}"
11918            else
11919              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11920            fi
11921            ;;
11922          # The "-l" case would never come before the object being
11923          # linked, so don't bother handling this case.
11924          esac
11925        else
11926          if test -z "$postdeps_CXX"; then
11927            postdeps_CXX="${prev}${p}"
11928          else
11929            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11930          fi
11931        fi
11932        ;;
11933
11934     *.$objext)
11935        # This assumes that the test object file only shows up
11936        # once in the compiler output.
11937        if test "$p" = "conftest.$objext"; then
11938          pre_test_object_deps_done=yes
11939          continue
11940        fi
11941
11942        if test "$pre_test_object_deps_done" = no; then
11943          if test -z "$predep_objects_CXX"; then
11944            predep_objects_CXX="$p"
11945          else
11946            predep_objects_CXX="$predep_objects_CXX $p"
11947          fi
11948        else
11949          if test -z "$postdep_objects_CXX"; then
11950            postdep_objects_CXX="$p"
11951          else
11952            postdep_objects_CXX="$postdep_objects_CXX $p"
11953          fi
11954        fi
11955        ;;
11956
11957     *) ;; # Ignore the rest.
11958
11959     esac
11960   done
11961
11962   # Clean up.
11963   rm -f a.out a.exe
11964 else
11965   echo "libtool.m4: error: problem compiling CXX test program"
11966 fi
11967
11968 $rm -f confest.$objext
11969
11970 # PORTME: override above test on systems where it is broken
11971 case $host_os in
11972 interix3*)
11973   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11974   # hack all around it, let's just trust "g++" to DTRT.
11975   predep_objects_CXX=
11976   postdep_objects_CXX=
11977   postdeps_CXX=
11978   ;;
11979
11980 solaris*)
11981   case $cc_basename in
11982   CC*)
11983     # Adding this requires a known-good setup of shared libraries for
11984     # Sun compiler versions before 5.6, else PIC objects from an old
11985     # archive will be linked into the output, leading to subtle bugs.
11986     postdeps_CXX='-lCstd -lCrun'
11987     ;;
11988   esac
11989   ;;
11990 esac
11991
11992
11993 case " $postdeps_CXX " in
11994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11995 esac
11996
11997 lt_prog_compiler_wl_CXX=
11998 lt_prog_compiler_pic_CXX=
11999 lt_prog_compiler_static_CXX=
12000
12001 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12002 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12003
12004   # C++ specific cases for pic, static, wl, etc.
12005   if test "$GXX" = yes; then
12006     lt_prog_compiler_wl_CXX='-Wl,'
12007     lt_prog_compiler_static_CXX='-static'
12008
12009     case $host_os in
12010     aix*)
12011       # All AIX code is PIC.
12012       if test "$host_cpu" = ia64; then
12013         # AIX 5 now supports IA64 processor
12014         lt_prog_compiler_static_CXX='-Bstatic'
12015       fi
12016       ;;
12017     amigaos*)
12018       # FIXME: we need at least 68020 code to build shared libraries, but
12019       # adding the `-m68020' flag to GCC prevents building anything better,
12020       # like `-m68040'.
12021       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12022       ;;
12023     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12024       # PIC is the default for these OSes.
12025       ;;
12026     mingw* | os2* | pw32*)
12027       # This hack is so that the source file can tell whether it is being
12028       # built for inclusion in a dll (and should export symbols for example).
12029       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12030       ;;
12031     darwin* | rhapsody*)
12032       # PIC is the default on this platform
12033       # Common symbols not allowed in MH_DYLIB files
12034       lt_prog_compiler_pic_CXX='-fno-common'
12035       ;;
12036     *djgpp*)
12037       # DJGPP does not support shared libraries at all
12038       lt_prog_compiler_pic_CXX=
12039       ;;
12040     interix3*)
12041       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12042       # Instead, we relocate shared libraries at runtime.
12043       ;;
12044     sysv4*MP*)
12045       if test -d /usr/nec; then
12046         lt_prog_compiler_pic_CXX=-Kconform_pic
12047       fi
12048       ;;
12049     hpux*)
12050       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12051       # not for PA HP-UX.
12052       case $host_cpu in
12053       hppa*64*|ia64*)
12054         ;;
12055       *)
12056         lt_prog_compiler_pic_CXX='-fPIC'
12057         ;;
12058       esac
12059       ;;
12060     *)
12061       lt_prog_compiler_pic_CXX='-fPIC'
12062       ;;
12063     esac
12064   else
12065     case $host_os in
12066       aix4* | aix5*)
12067         # All AIX code is PIC.
12068         if test "$host_cpu" = ia64; then
12069           # AIX 5 now supports IA64 processor
12070           lt_prog_compiler_static_CXX='-Bstatic'
12071         else
12072           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12073         fi
12074         ;;
12075       chorus*)
12076         case $cc_basename in
12077         cxch68*)
12078           # Green Hills C++ Compiler
12079           # _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"
12080           ;;
12081         esac
12082         ;;
12083        darwin*)
12084          # PIC is the default on this platform
12085          # Common symbols not allowed in MH_DYLIB files
12086          case $cc_basename in
12087            xlc*)
12088            lt_prog_compiler_pic_CXX='-qnocommon'
12089            lt_prog_compiler_wl_CXX='-Wl,'
12090            ;;
12091          esac
12092        ;;
12093       dgux*)
12094         case $cc_basename in
12095           ec++*)
12096             lt_prog_compiler_pic_CXX='-KPIC'
12097             ;;
12098           ghcx*)
12099             # Green Hills C++ Compiler
12100             lt_prog_compiler_pic_CXX='-pic'
12101             ;;
12102           *)
12103             ;;
12104         esac
12105         ;;
12106       freebsd* | dragonfly*)
12107         # FreeBSD uses GNU C++
12108         ;;
12109       hpux9* | hpux10* | hpux11*)
12110         case $cc_basename in
12111           CC*)
12112             lt_prog_compiler_wl_CXX='-Wl,'
12113             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12114             if test "$host_cpu" != ia64; then
12115               lt_prog_compiler_pic_CXX='+Z'
12116             fi
12117             ;;
12118           aCC*)
12119             lt_prog_compiler_wl_CXX='-Wl,'
12120             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12121             case $host_cpu in
12122             hppa*64*|ia64*)
12123               # +Z the default
12124               ;;
12125             *)
12126               lt_prog_compiler_pic_CXX='+Z'
12127               ;;
12128             esac
12129             ;;
12130           *)
12131             ;;
12132         esac
12133         ;;
12134       interix*)
12135         # This is c89, which is MS Visual C++ (no shared libs)
12136         # Anyone wants to do a port?
12137         ;;
12138       irix5* | irix6* | nonstopux*)
12139         case $cc_basename in
12140           CC*)
12141             lt_prog_compiler_wl_CXX='-Wl,'
12142             lt_prog_compiler_static_CXX='-non_shared'
12143             # CC pic flag -KPIC is the default.
12144             ;;
12145           *)
12146             ;;
12147         esac
12148         ;;
12149       linux* | k*bsd*-gnu)
12150         case $cc_basename in
12151           KCC*)
12152             # KAI C++ Compiler
12153             lt_prog_compiler_wl_CXX='--backend -Wl,'
12154             lt_prog_compiler_pic_CXX='-fPIC'
12155             ;;
12156           icpc* | ecpc*)
12157             # Intel C++
12158             lt_prog_compiler_wl_CXX='-Wl,'
12159             lt_prog_compiler_pic_CXX='-KPIC'
12160             lt_prog_compiler_static_CXX='-static'
12161             ;;
12162           pgCC*)
12163             # Portland Group C++ compiler.
12164             lt_prog_compiler_wl_CXX='-Wl,'
12165             lt_prog_compiler_pic_CXX='-fpic'
12166             lt_prog_compiler_static_CXX='-Bstatic'
12167             ;;
12168           cxx*)
12169             # Compaq C++
12170             # Make sure the PIC flag is empty.  It appears that all Alpha
12171             # Linux and Compaq Tru64 Unix objects are PIC.
12172             lt_prog_compiler_pic_CXX=
12173             lt_prog_compiler_static_CXX='-non_shared'
12174             ;;
12175           *)
12176             ;;
12177         esac
12178         ;;
12179       lynxos*)
12180         ;;
12181       m88k*)
12182         ;;
12183       mvs*)
12184         case $cc_basename in
12185           cxx*)
12186             lt_prog_compiler_pic_CXX='-W c,exportall'
12187             ;;
12188           *)
12189             ;;
12190         esac
12191         ;;
12192       netbsd* | netbsdelf*-gnu)
12193         ;;
12194       osf3* | osf4* | osf5*)
12195         case $cc_basename in
12196           KCC*)
12197             lt_prog_compiler_wl_CXX='--backend -Wl,'
12198             ;;
12199           RCC*)
12200             # Rational C++ 2.4.1
12201             lt_prog_compiler_pic_CXX='-pic'
12202             ;;
12203           cxx*)
12204             # Digital/Compaq C++
12205             lt_prog_compiler_wl_CXX='-Wl,'
12206             # Make sure the PIC flag is empty.  It appears that all Alpha
12207             # Linux and Compaq Tru64 Unix objects are PIC.
12208             lt_prog_compiler_pic_CXX=
12209             lt_prog_compiler_static_CXX='-non_shared'
12210             ;;
12211           *)
12212             ;;
12213         esac
12214         ;;
12215       psos*)
12216         ;;
12217       solaris*)
12218         case $cc_basename in
12219           CC*)
12220             # Sun C++ 4.2, 5.x and Centerline C++
12221             lt_prog_compiler_pic_CXX='-KPIC'
12222             lt_prog_compiler_static_CXX='-Bstatic'
12223             lt_prog_compiler_wl_CXX='-Qoption ld '
12224             ;;
12225           gcx*)
12226             # Green Hills C++ Compiler
12227             lt_prog_compiler_pic_CXX='-PIC'
12228             ;;
12229           *)
12230             ;;
12231         esac
12232         ;;
12233       sunos4*)
12234         case $cc_basename in
12235           CC*)
12236             # Sun C++ 4.x
12237             lt_prog_compiler_pic_CXX='-pic'
12238             lt_prog_compiler_static_CXX='-Bstatic'
12239             ;;
12240           lcc*)
12241             # Lucid
12242             lt_prog_compiler_pic_CXX='-pic'
12243             ;;
12244           *)
12245             ;;
12246         esac
12247         ;;
12248       tandem*)
12249         case $cc_basename in
12250           NCC*)
12251             # NonStop-UX NCC 3.20
12252             lt_prog_compiler_pic_CXX='-KPIC'
12253             ;;
12254           *)
12255             ;;
12256         esac
12257         ;;
12258       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12259         case $cc_basename in
12260           CC*)
12261             lt_prog_compiler_wl_CXX='-Wl,'
12262             lt_prog_compiler_pic_CXX='-KPIC'
12263             lt_prog_compiler_static_CXX='-Bstatic'
12264             ;;
12265         esac
12266         ;;
12267       vxworks*)
12268         ;;
12269       *)
12270         lt_prog_compiler_can_build_shared_CXX=no
12271         ;;
12272     esac
12273   fi
12274
12275 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12276 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12277
12278 #
12279 # Check to make sure the PIC flag actually works.
12280 #
12281 if test -n "$lt_prog_compiler_pic_CXX"; then
12282
12283 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12285 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288   lt_prog_compiler_pic_works_CXX=no
12289   ac_outfile=conftest.$ac_objext
12290    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12291    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12292    # Insert the option either (1) after the last *FLAGS variable, or
12293    # (2) before a word containing "conftest.", or (3) at the end.
12294    # Note that $ac_compile itself does not contain backslashes and begins
12295    # with a dollar sign (not a hyphen), so the echo should work correctly.
12296    # The option is referenced via a variable to avoid confusing sed.
12297    lt_compile=`echo "$ac_compile" | $SED \
12298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12300    -e 's:$: $lt_compiler_flag:'`
12301    (eval echo "\"\$as_me:12301: $lt_compile\"" >&5)
12302    (eval "$lt_compile" 2>conftest.err)
12303    ac_status=$?
12304    cat conftest.err >&5
12305    echo "$as_me:12305: \$? = $ac_status" >&5
12306    if (exit $ac_status) && test -s "$ac_outfile"; then
12307      # The compiler can only warn and ignore the option if not recognized
12308      # So say no if there are warnings other than the usual output.
12309      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12310      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12311      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12312        lt_prog_compiler_pic_works_CXX=yes
12313      fi
12314    fi
12315    $rm conftest*
12316
12317 fi
12318 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12319 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12320
12321 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12322     case $lt_prog_compiler_pic_CXX in
12323      "" | " "*) ;;
12324      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12325      esac
12326 else
12327     lt_prog_compiler_pic_CXX=
12328      lt_prog_compiler_can_build_shared_CXX=no
12329 fi
12330
12331 fi
12332 case $host_os in
12333   # For platforms which do not support PIC, -DPIC is meaningless:
12334   *djgpp*)
12335     lt_prog_compiler_pic_CXX=
12336     ;;
12337   *)
12338     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12339     ;;
12340 esac
12341
12342 #
12343 # Check to make sure the static flag actually works.
12344 #
12345 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12346 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12347 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12348 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   lt_prog_compiler_static_works_CXX=no
12352    save_LDFLAGS="$LDFLAGS"
12353    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12354    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12355    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12356      # The linker can only warn and ignore the option if not recognized
12357      # So say no if there are warnings
12358      if test -s conftest.err; then
12359        # Append any errors to the config.log.
12360        cat conftest.err 1>&5
12361        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12362        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12363        if diff conftest.exp conftest.er2 >/dev/null; then
12364          lt_prog_compiler_static_works_CXX=yes
12365        fi
12366      else
12367        lt_prog_compiler_static_works_CXX=yes
12368      fi
12369    fi
12370    $rm conftest*
12371    LDFLAGS="$save_LDFLAGS"
12372
12373 fi
12374 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12375 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12376
12377 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12378     :
12379 else
12380     lt_prog_compiler_static_CXX=
12381 fi
12382
12383
12384 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12385 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12386 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   lt_cv_prog_compiler_c_o_CXX=no
12390    $rm -r conftest 2>/dev/null
12391    mkdir conftest
12392    cd conftest
12393    mkdir out
12394    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12395
12396    lt_compiler_flag="-o out/conftest2.$ac_objext"
12397    # Insert the option either (1) after the last *FLAGS variable, or
12398    # (2) before a word containing "conftest.", or (3) at the end.
12399    # Note that $ac_compile itself does not contain backslashes and begins
12400    # with a dollar sign (not a hyphen), so the echo should work correctly.
12401    lt_compile=`echo "$ac_compile" | $SED \
12402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12404    -e 's:$: $lt_compiler_flag:'`
12405    (eval echo "\"\$as_me:12405: $lt_compile\"" >&5)
12406    (eval "$lt_compile" 2>out/conftest.err)
12407    ac_status=$?
12408    cat out/conftest.err >&5
12409    echo "$as_me:12409: \$? = $ac_status" >&5
12410    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12411    then
12412      # The compiler can only warn and ignore the option if not recognized
12413      # So say no if there are warnings
12414      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12415      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12416      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12417        lt_cv_prog_compiler_c_o_CXX=yes
12418      fi
12419    fi
12420    chmod u+w . 2>&5
12421    $rm conftest*
12422    # SGI C++ compiler will create directory out/ii_files/ for
12423    # template instantiation
12424    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12425    $rm out/* && rmdir out
12426    cd ..
12427    rmdir conftest
12428    $rm conftest*
12429
12430 fi
12431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12432 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12433
12434
12435 hard_links="nottested"
12436 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12437   # do not overwrite the value of need_locks provided by the user
12438   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12439 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12440   hard_links=yes
12441   $rm conftest*
12442   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12443   touch conftest.a
12444   ln conftest.a conftest.b 2>&5 || hard_links=no
12445   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446   { echo "$as_me:$LINENO: result: $hard_links" >&5
12447 echo "${ECHO_T}$hard_links" >&6; }
12448   if test "$hard_links" = no; then
12449     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12450 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12451     need_locks=warn
12452   fi
12453 else
12454   need_locks=no
12455 fi
12456
12457 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12458 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12459
12460   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12461   case $host_os in
12462   aix4* | aix5*)
12463     # If we're using GNU nm, then we don't want the "-C" option.
12464     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12465     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12466       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'
12467     else
12468       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'
12469     fi
12470     ;;
12471   pw32*)
12472     export_symbols_cmds_CXX="$ltdll_cmds"
12473   ;;
12474   cygwin* | mingw*)
12475     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'
12476   ;;
12477   linux* | k*bsd*-gnu)
12478     link_all_deplibs_CXX=no
12479   ;;
12480   *)
12481     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12482   ;;
12483   esac
12484
12485 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12486 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12487 test "$ld_shlibs_CXX" = no && can_build_shared=no
12488
12489 #
12490 # Do we need to explicitly link libc?
12491 #
12492 case "x$archive_cmds_need_lc_CXX" in
12493 x|xyes)
12494   # Assume -lc should be added
12495   archive_cmds_need_lc_CXX=yes
12496
12497   if test "$enable_shared" = yes && test "$GCC" = yes; then
12498     case $archive_cmds_CXX in
12499     *'~'*)
12500       # FIXME: we may have to deal with multi-command sequences.
12501       ;;
12502     '$CC '*)
12503       # Test whether the compiler implicitly links with -lc since on some
12504       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12505       # to ld, don't add -lc before -lgcc.
12506       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12508       $rm conftest*
12509       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12510
12511       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512   (eval $ac_compile) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } 2>conftest.err; then
12516         soname=conftest
12517         lib=conftest
12518         libobjs=conftest.$ac_objext
12519         deplibs=
12520         wl=$lt_prog_compiler_wl_CXX
12521         pic_flag=$lt_prog_compiler_pic_CXX
12522         compiler_flags=-v
12523         linker_flags=-v
12524         verstring=
12525         output_objdir=.
12526         libname=conftest
12527         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12528         allow_undefined_flag_CXX=
12529         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12530   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }
12534         then
12535           archive_cmds_need_lc_CXX=no
12536         else
12537           archive_cmds_need_lc_CXX=yes
12538         fi
12539         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12540       else
12541         cat conftest.err 1>&5
12542       fi
12543       $rm conftest*
12544       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12545 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12546       ;;
12547     esac
12548   fi
12549   ;;
12550 esac
12551
12552 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12554 library_names_spec=
12555 libname_spec='lib$name'
12556 soname_spec=
12557 shrext_cmds=".so"
12558 postinstall_cmds=
12559 postuninstall_cmds=
12560 finish_cmds=
12561 finish_eval=
12562 shlibpath_var=
12563 shlibpath_overrides_runpath=unknown
12564 version_type=none
12565 dynamic_linker="$host_os ld.so"
12566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12567 if test "$GCC" = yes; then
12568   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12569   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12570     # if the path contains ";" then we assume it to be the separator
12571     # otherwise default to the standard path separator (i.e. ":") - it is
12572     # assumed that no part of a normal pathname contains ";" but that should
12573     # okay in the real world where ";" in dirpaths is itself problematic.
12574     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12575   else
12576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12577   fi
12578 else
12579   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12580 fi
12581 need_lib_prefix=unknown
12582 hardcode_into_libs=no
12583
12584 # when you set need_version to no, make sure it does not cause -set_version
12585 # flags to be left without arguments
12586 need_version=unknown
12587
12588 case $host_os in
12589 aix3*)
12590   version_type=linux
12591   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12592   shlibpath_var=LIBPATH
12593
12594   # AIX 3 has no versioning support, so we append a major version to the name.
12595   soname_spec='${libname}${release}${shared_ext}$major'
12596   ;;
12597
12598 aix4* | aix5*)
12599   version_type=linux
12600   need_lib_prefix=no
12601   need_version=no
12602   hardcode_into_libs=yes
12603   if test "$host_cpu" = ia64; then
12604     # AIX 5 supports IA64
12605     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12606     shlibpath_var=LD_LIBRARY_PATH
12607   else
12608     # With GCC up to 2.95.x, collect2 would create an import file
12609     # for dependence libraries.  The import file would start with
12610     # the line `#! .'.  This would cause the generated library to
12611     # depend on `.', always an invalid library.  This was fixed in
12612     # development snapshots of GCC prior to 3.0.
12613     case $host_os in
12614       aix4 | aix4.[01] | aix4.[01].*)
12615       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12616            echo ' yes '
12617            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12618         :
12619       else
12620         can_build_shared=no
12621       fi
12622       ;;
12623     esac
12624     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12625     # soname into executable. Probably we can add versioning support to
12626     # collect2, so additional links can be useful in future.
12627     if test "$aix_use_runtimelinking" = yes; then
12628       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12629       # instead of lib<name>.a to let people know that these are not
12630       # typical AIX shared libraries.
12631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632     else
12633       # We preserve .a as extension for shared libraries through AIX4.2
12634       # and later when we are not doing run time linking.
12635       library_names_spec='${libname}${release}.a $libname.a'
12636       soname_spec='${libname}${release}${shared_ext}$major'
12637     fi
12638     shlibpath_var=LIBPATH
12639   fi
12640   ;;
12641
12642 amigaos*)
12643   library_names_spec='$libname.ixlibrary $libname.a'
12644   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12645   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'
12646   ;;
12647
12648 beos*)
12649   library_names_spec='${libname}${shared_ext}'
12650   dynamic_linker="$host_os ld.so"
12651   shlibpath_var=LIBRARY_PATH
12652   ;;
12653
12654 bsdi[45]*)
12655   version_type=linux
12656   need_version=no
12657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658   soname_spec='${libname}${release}${shared_ext}$major'
12659   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12660   shlibpath_var=LD_LIBRARY_PATH
12661   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12662   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12663   # the default ld.so.conf also contains /usr/contrib/lib and
12664   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12665   # libtool to hard-code these into programs
12666   ;;
12667
12668 cygwin* | mingw* | pw32*)
12669   version_type=windows
12670   shrext_cmds=".dll"
12671   need_version=no
12672   need_lib_prefix=no
12673
12674   case $GCC,$host_os in
12675   yes,cygwin* | yes,mingw* | yes,pw32*)
12676     library_names_spec='$libname.dll.a'
12677     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12678     postinstall_cmds='base_file=`basename \${file}`~
12679       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12680       dldir=$destdir/`dirname \$dlpath`~
12681       test -d \$dldir || mkdir -p \$dldir~
12682       $install_prog $dir/$dlname \$dldir/$dlname~
12683       chmod a+x \$dldir/$dlname'
12684     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12685       dlpath=$dir/\$dldll~
12686        $rm \$dlpath'
12687     shlibpath_overrides_runpath=yes
12688
12689     case $host_os in
12690     cygwin*)
12691       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12692       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12693       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12694       ;;
12695     mingw*)
12696       # MinGW DLLs use traditional 'lib' prefix
12697       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12698       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12699       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12700         # It is most probably a Windows format PATH printed by
12701         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12702         # path with ; separators, and with drive letters. We can handle the
12703         # drive letters (cygwin fileutils understands them), so leave them,
12704         # especially as we might pass files found there to a mingw objdump,
12705         # which wouldn't understand a cygwinified path. Ahh.
12706         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12707       else
12708         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12709       fi
12710       ;;
12711     pw32*)
12712       # pw32 DLLs use 'pw' prefix rather than 'lib'
12713       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12714       ;;
12715     esac
12716     ;;
12717
12718   *)
12719     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12720     ;;
12721   esac
12722   dynamic_linker='Win32 ld.exe'
12723   # FIXME: first we should search . and the directory the executable is in
12724   shlibpath_var=PATH
12725   ;;
12726
12727 darwin* | rhapsody*)
12728   dynamic_linker="$host_os dyld"
12729   version_type=darwin
12730   need_lib_prefix=no
12731   need_version=no
12732   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12733   soname_spec='${libname}${release}${major}$shared_ext'
12734   shlibpath_overrides_runpath=yes
12735   shlibpath_var=DYLD_LIBRARY_PATH
12736   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12737   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12738   if test "$GCC" = yes; then
12739     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"`
12740   else
12741     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12742   fi
12743   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12744   ;;
12745
12746 dgux*)
12747   version_type=linux
12748   need_lib_prefix=no
12749   need_version=no
12750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12751   soname_spec='${libname}${release}${shared_ext}$major'
12752   shlibpath_var=LD_LIBRARY_PATH
12753   ;;
12754
12755 freebsd1*)
12756   dynamic_linker=no
12757   ;;
12758
12759 freebsd* | dragonfly*)
12760   # DragonFly does not have aout.  When/if they implement a new
12761   # versioning mechanism, adjust this.
12762   if test -x /usr/bin/objformat; then
12763     objformat=`/usr/bin/objformat`
12764   else
12765     case $host_os in
12766     freebsd[123]*) objformat=aout ;;
12767     *) objformat=elf ;;
12768     esac
12769   fi
12770   version_type=freebsd-$objformat
12771   case $version_type in
12772     freebsd-elf*)
12773       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12774       need_version=no
12775       need_lib_prefix=no
12776       ;;
12777     freebsd-*)
12778       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12779       need_version=yes
12780       ;;
12781   esac
12782   shlibpath_var=LD_LIBRARY_PATH
12783   case $host_os in
12784   freebsd2*)
12785     shlibpath_overrides_runpath=yes
12786     ;;
12787   freebsd3.[01]* | freebsdelf3.[01]*)
12788     shlibpath_overrides_runpath=yes
12789     hardcode_into_libs=yes
12790     ;;
12791   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12792   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12793     shlibpath_overrides_runpath=no
12794     hardcode_into_libs=yes
12795     ;;
12796   freebsd*) # from 4.6 on
12797     shlibpath_overrides_runpath=yes
12798     hardcode_into_libs=yes
12799     ;;
12800   esac
12801   ;;
12802
12803 gnu*)
12804   version_type=linux
12805   need_lib_prefix=no
12806   need_version=no
12807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12808   soname_spec='${libname}${release}${shared_ext}$major'
12809   shlibpath_var=LD_LIBRARY_PATH
12810   hardcode_into_libs=yes
12811   ;;
12812
12813 hpux9* | hpux10* | hpux11*)
12814   # Give a soname corresponding to the major version so that dld.sl refuses to
12815   # link against other versions.
12816   version_type=sunos
12817   need_lib_prefix=no
12818   need_version=no
12819   case $host_cpu in
12820   ia64*)
12821     shrext_cmds='.so'
12822     hardcode_into_libs=yes
12823     dynamic_linker="$host_os dld.so"
12824     shlibpath_var=LD_LIBRARY_PATH
12825     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12827     soname_spec='${libname}${release}${shared_ext}$major'
12828     if test "X$HPUX_IA64_MODE" = X32; then
12829       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12830     else
12831       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12832     fi
12833     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12834     ;;
12835    hppa*64*)
12836      shrext_cmds='.sl'
12837      hardcode_into_libs=yes
12838      dynamic_linker="$host_os dld.sl"
12839      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12840      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12841      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842      soname_spec='${libname}${release}${shared_ext}$major'
12843      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12844      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12845      ;;
12846    *)
12847     shrext_cmds='.sl'
12848     dynamic_linker="$host_os dld.sl"
12849     shlibpath_var=SHLIB_PATH
12850     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852     soname_spec='${libname}${release}${shared_ext}$major'
12853     ;;
12854   esac
12855   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12856   postinstall_cmds='chmod 555 $lib'
12857   ;;
12858
12859 interix3*)
12860   version_type=linux
12861   need_lib_prefix=no
12862   need_version=no
12863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12864   soname_spec='${libname}${release}${shared_ext}$major'
12865   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12866   shlibpath_var=LD_LIBRARY_PATH
12867   shlibpath_overrides_runpath=no
12868   hardcode_into_libs=yes
12869   ;;
12870
12871 irix5* | irix6* | nonstopux*)
12872   case $host_os in
12873     nonstopux*) version_type=nonstopux ;;
12874     *)
12875         if test "$lt_cv_prog_gnu_ld" = yes; then
12876                 version_type=linux
12877         else
12878                 version_type=irix
12879         fi ;;
12880   esac
12881   need_lib_prefix=no
12882   need_version=no
12883   soname_spec='${libname}${release}${shared_ext}$major'
12884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12885   case $host_os in
12886   irix5* | nonstopux*)
12887     libsuff= shlibsuff=
12888     ;;
12889   *)
12890     case $LD in # libtool.m4 will add one of these switches to LD
12891     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12892       libsuff= shlibsuff= libmagic=32-bit;;
12893     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12894       libsuff=32 shlibsuff=N32 libmagic=N32;;
12895     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12896       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12897     *) libsuff= shlibsuff= libmagic=never-match;;
12898     esac
12899     ;;
12900   esac
12901   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12902   shlibpath_overrides_runpath=no
12903   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12904   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12905   hardcode_into_libs=yes
12906   ;;
12907
12908 # No shared lib support for Linux oldld, aout, or coff.
12909 linux*oldld* | linux*aout* | linux*coff*)
12910   dynamic_linker=no
12911   ;;
12912
12913 # This must be Linux ELF.
12914 linux* | k*bsd*-gnu)
12915   version_type=linux
12916   need_lib_prefix=no
12917   need_version=no
12918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12919   soname_spec='${libname}${release}${shared_ext}$major'
12920   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12921   shlibpath_var=LD_LIBRARY_PATH
12922   shlibpath_overrides_runpath=no
12923   # This implies no fast_install, which is unacceptable.
12924   # Some rework will be needed to allow for fast_install
12925   # before this can be enabled.
12926   hardcode_into_libs=yes
12927
12928   # Append ld.so.conf contents to the search path
12929   if test -f /etc/ld.so.conf; then
12930     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' ' '`
12931     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12932   fi
12933
12934   # We used to test for /lib/ld.so.1 and disable shared libraries on
12935   # powerpc, because MkLinux only supported shared libraries with the
12936   # GNU dynamic linker.  Since this was broken with cross compilers,
12937   # most powerpc-linux boxes support dynamic linking these days and
12938   # people can always --disable-shared, the test was removed, and we
12939   # assume the GNU/Linux dynamic linker is in use.
12940   dynamic_linker='GNU/Linux ld.so'
12941   ;;
12942
12943 netbsdelf*-gnu)
12944   version_type=linux
12945   need_lib_prefix=no
12946   need_version=no
12947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12948   soname_spec='${libname}${release}${shared_ext}$major'
12949   shlibpath_var=LD_LIBRARY_PATH
12950   shlibpath_overrides_runpath=no
12951   hardcode_into_libs=yes
12952   dynamic_linker='NetBSD ld.elf_so'
12953   ;;
12954
12955 netbsd*)
12956   version_type=sunos
12957   need_lib_prefix=no
12958   need_version=no
12959   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12961     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12962     dynamic_linker='NetBSD (a.out) ld.so'
12963   else
12964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12965     soname_spec='${libname}${release}${shared_ext}$major'
12966     dynamic_linker='NetBSD ld.elf_so'
12967   fi
12968   shlibpath_var=LD_LIBRARY_PATH
12969   shlibpath_overrides_runpath=yes
12970   hardcode_into_libs=yes
12971   ;;
12972
12973 newsos6)
12974   version_type=linux
12975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976   shlibpath_var=LD_LIBRARY_PATH
12977   shlibpath_overrides_runpath=yes
12978   ;;
12979
12980 nto-qnx*)
12981   version_type=linux
12982   need_lib_prefix=no
12983   need_version=no
12984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985   soname_spec='${libname}${release}${shared_ext}$major'
12986   shlibpath_var=LD_LIBRARY_PATH
12987   shlibpath_overrides_runpath=yes
12988   ;;
12989
12990 openbsd*)
12991   version_type=sunos
12992   sys_lib_dlsearch_path_spec="/usr/lib"
12993   need_lib_prefix=no
12994   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12995   case $host_os in
12996     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12997     *)                         need_version=no  ;;
12998   esac
12999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13001   shlibpath_var=LD_LIBRARY_PATH
13002   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13003     case $host_os in
13004       openbsd2.[89] | openbsd2.[89].*)
13005         shlibpath_overrides_runpath=no
13006         ;;
13007       *)
13008         shlibpath_overrides_runpath=yes
13009         ;;
13010       esac
13011   else
13012     shlibpath_overrides_runpath=yes
13013   fi
13014   ;;
13015
13016 os2*)
13017   libname_spec='$name'
13018   shrext_cmds=".dll"
13019   need_lib_prefix=no
13020   library_names_spec='$libname${shared_ext} $libname.a'
13021   dynamic_linker='OS/2 ld.exe'
13022   shlibpath_var=LIBPATH
13023   ;;
13024
13025 osf3* | osf4* | osf5*)
13026   version_type=osf
13027   need_lib_prefix=no
13028   need_version=no
13029   soname_spec='${libname}${release}${shared_ext}$major'
13030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031   shlibpath_var=LD_LIBRARY_PATH
13032   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13033   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13034   ;;
13035
13036 solaris*)
13037   version_type=linux
13038   need_lib_prefix=no
13039   need_version=no
13040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041   soname_spec='${libname}${release}${shared_ext}$major'
13042   shlibpath_var=LD_LIBRARY_PATH
13043   shlibpath_overrides_runpath=yes
13044   hardcode_into_libs=yes
13045   # ldd complains unless libraries are executable
13046   postinstall_cmds='chmod +x $lib'
13047   ;;
13048
13049 sunos4*)
13050   version_type=sunos
13051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13052   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13053   shlibpath_var=LD_LIBRARY_PATH
13054   shlibpath_overrides_runpath=yes
13055   if test "$with_gnu_ld" = yes; then
13056     need_lib_prefix=no
13057   fi
13058   need_version=yes
13059   ;;
13060
13061 sysv4 | sysv4.3*)
13062   version_type=linux
13063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064   soname_spec='${libname}${release}${shared_ext}$major'
13065   shlibpath_var=LD_LIBRARY_PATH
13066   case $host_vendor in
13067     sni)
13068       shlibpath_overrides_runpath=no
13069       need_lib_prefix=no
13070       export_dynamic_flag_spec='${wl}-Blargedynsym'
13071       runpath_var=LD_RUN_PATH
13072       ;;
13073     siemens)
13074       need_lib_prefix=no
13075       ;;
13076     motorola)
13077       need_lib_prefix=no
13078       need_version=no
13079       shlibpath_overrides_runpath=no
13080       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13081       ;;
13082   esac
13083   ;;
13084
13085 sysv4*MP*)
13086   if test -d /usr/nec ;then
13087     version_type=linux
13088     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13089     soname_spec='$libname${shared_ext}.$major'
13090     shlibpath_var=LD_LIBRARY_PATH
13091   fi
13092   ;;
13093
13094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13095   version_type=freebsd-elf
13096   need_lib_prefix=no
13097   need_version=no
13098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13099   soname_spec='${libname}${release}${shared_ext}$major'
13100   shlibpath_var=LD_LIBRARY_PATH
13101   hardcode_into_libs=yes
13102   if test "$with_gnu_ld" = yes; then
13103     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13104     shlibpath_overrides_runpath=no
13105   else
13106     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13107     shlibpath_overrides_runpath=yes
13108     case $host_os in
13109       sco3.2v5*)
13110         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13111         ;;
13112     esac
13113   fi
13114   sys_lib_dlsearch_path_spec='/usr/lib'
13115   ;;
13116
13117 uts4*)
13118   version_type=linux
13119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13120   soname_spec='${libname}${release}${shared_ext}$major'
13121   shlibpath_var=LD_LIBRARY_PATH
13122   ;;
13123
13124 *)
13125   dynamic_linker=no
13126   ;;
13127 esac
13128 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13129 echo "${ECHO_T}$dynamic_linker" >&6; }
13130 test "$dynamic_linker" = no && can_build_shared=no
13131
13132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13133 if test "$GCC" = yes; then
13134   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13135 fi
13136
13137 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13139 hardcode_action_CXX=
13140 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13141    test -n "$runpath_var_CXX" || \
13142    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13143
13144   # We can hardcode non-existant directories.
13145   if test "$hardcode_direct_CXX" != no &&
13146      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13147      # have to relink, otherwise we might link with an installed library
13148      # when we should be linking with a yet-to-be-installed one
13149      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13150      test "$hardcode_minus_L_CXX" != no; then
13151     # Linking always hardcodes the temporary library directory.
13152     hardcode_action_CXX=relink
13153   else
13154     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13155     hardcode_action_CXX=immediate
13156   fi
13157 else
13158   # We cannot hardcode anything, or else we can only hardcode existing
13159   # directories.
13160   hardcode_action_CXX=unsupported
13161 fi
13162 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13163 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13164
13165 if test "$hardcode_action_CXX" = relink; then
13166   # Fast installation is not supported
13167   enable_fast_install=no
13168 elif test "$shlibpath_overrides_runpath" = yes ||
13169      test "$enable_shared" = no; then
13170   # Fast installation is not necessary
13171   enable_fast_install=needless
13172 fi
13173
13174
13175 # The else clause should only fire when bootstrapping the
13176 # libtool distribution, otherwise you forgot to ship ltmain.sh
13177 # with your package, and you will get complaints that there are
13178 # no rules to generate ltmain.sh.
13179 if test -f "$ltmain"; then
13180   # See if we are running on zsh, and set the options which allow our commands through
13181   # without removal of \ escapes.
13182   if test -n "${ZSH_VERSION+set}" ; then
13183     setopt NO_GLOB_SUBST
13184   fi
13185   # Now quote all the things that may contain metacharacters while being
13186   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13187   # variables and quote the copies for generation of the libtool script.
13188   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13189     SED SHELL STRIP \
13190     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13191     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13192     deplibs_check_method reload_flag reload_cmds need_locks \
13193     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13194     lt_cv_sys_global_symbol_to_c_name_address \
13195     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13196     old_postinstall_cmds old_postuninstall_cmds \
13197     compiler_CXX \
13198     CC_CXX \
13199     LD_CXX \
13200     lt_prog_compiler_wl_CXX \
13201     lt_prog_compiler_pic_CXX \
13202     lt_prog_compiler_static_CXX \
13203     lt_prog_compiler_no_builtin_flag_CXX \
13204     export_dynamic_flag_spec_CXX \
13205     thread_safe_flag_spec_CXX \
13206     whole_archive_flag_spec_CXX \
13207     enable_shared_with_static_runtimes_CXX \
13208     old_archive_cmds_CXX \
13209     old_archive_from_new_cmds_CXX \
13210     predep_objects_CXX \
13211     postdep_objects_CXX \
13212     predeps_CXX \
13213     postdeps_CXX \
13214     compiler_lib_search_path_CXX \
13215     archive_cmds_CXX \
13216     archive_expsym_cmds_CXX \
13217     postinstall_cmds_CXX \
13218     postuninstall_cmds_CXX \
13219     old_archive_from_expsyms_cmds_CXX \
13220     allow_undefined_flag_CXX \
13221     no_undefined_flag_CXX \
13222     export_symbols_cmds_CXX \
13223     hardcode_libdir_flag_spec_CXX \
13224     hardcode_libdir_flag_spec_ld_CXX \
13225     hardcode_libdir_separator_CXX \
13226     hardcode_automatic_CXX \
13227     module_cmds_CXX \
13228     module_expsym_cmds_CXX \
13229     lt_cv_prog_compiler_c_o_CXX \
13230     exclude_expsyms_CXX \
13231     include_expsyms_CXX; do
13232
13233     case $var in
13234     old_archive_cmds_CXX | \
13235     old_archive_from_new_cmds_CXX | \
13236     archive_cmds_CXX | \
13237     archive_expsym_cmds_CXX | \
13238     module_cmds_CXX | \
13239     module_expsym_cmds_CXX | \
13240     old_archive_from_expsyms_cmds_CXX | \
13241     export_symbols_cmds_CXX | \
13242     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13243     postinstall_cmds | postuninstall_cmds | \
13244     old_postinstall_cmds | old_postuninstall_cmds | \
13245     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13246       # Double-quote double-evaled strings.
13247       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13248       ;;
13249     *)
13250       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13251       ;;
13252     esac
13253   done
13254
13255   case $lt_echo in
13256   *'\$0 --fallback-echo"')
13257     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13258     ;;
13259   esac
13260
13261 cfgfile="$ofile"
13262
13263   cat <<__EOF__ >> "$cfgfile"
13264 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13265
13266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13267
13268 # Shell to use when invoking shell scripts.
13269 SHELL=$lt_SHELL
13270
13271 # Whether or not to build shared libraries.
13272 build_libtool_libs=$enable_shared
13273
13274 # Whether or not to build static libraries.
13275 build_old_libs=$enable_static
13276
13277 # Whether or not to add -lc for building shared libraries.
13278 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13279
13280 # Whether or not to disallow shared libs when runtime libs are static
13281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13282
13283 # Whether or not to optimize for fast installation.
13284 fast_install=$enable_fast_install
13285
13286 # The host system.
13287 host_alias=$host_alias
13288 host=$host
13289 host_os=$host_os
13290
13291 # The build system.
13292 build_alias=$build_alias
13293 build=$build
13294 build_os=$build_os
13295
13296 # An echo program that does not interpret backslashes.
13297 echo=$lt_echo
13298
13299 # The archiver.
13300 AR=$lt_AR
13301 AR_FLAGS=$lt_AR_FLAGS
13302
13303 # A C compiler.
13304 LTCC=$lt_LTCC
13305
13306 # LTCC compiler flags.
13307 LTCFLAGS=$lt_LTCFLAGS
13308
13309 # A language-specific compiler.
13310 CC=$lt_compiler_CXX
13311
13312 # Is the compiler the GNU C compiler?
13313 with_gcc=$GCC_CXX
13314
13315 # An ERE matcher.
13316 EGREP=$lt_EGREP
13317
13318 # The linker used to build libraries.
13319 LD=$lt_LD_CXX
13320
13321 # Whether we need hard or soft links.
13322 LN_S=$lt_LN_S
13323
13324 # A BSD-compatible nm program.
13325 NM=$lt_NM
13326
13327 # A symbol stripping program
13328 STRIP=$lt_STRIP
13329
13330 # Used to examine libraries when file_magic_cmd begins "file"
13331 MAGIC_CMD=$MAGIC_CMD
13332
13333 # Used on cygwin: DLL creation program.
13334 DLLTOOL="$DLLTOOL"
13335
13336 # Used on cygwin: object dumper.
13337 OBJDUMP="$OBJDUMP"
13338
13339 # Used on cygwin: assembler.
13340 AS="$AS"
13341
13342 # The name of the directory that contains temporary libtool files.
13343 objdir=$objdir
13344
13345 # How to create reloadable object files.
13346 reload_flag=$lt_reload_flag
13347 reload_cmds=$lt_reload_cmds
13348
13349 # How to pass a linker flag through the compiler.
13350 wl=$lt_lt_prog_compiler_wl_CXX
13351
13352 # Object file suffix (normally "o").
13353 objext="$ac_objext"
13354
13355 # Old archive suffix (normally "a").
13356 libext="$libext"
13357
13358 # Shared library suffix (normally ".so").
13359 shrext_cmds='$shrext_cmds'
13360
13361 # Executable file suffix (normally "").
13362 exeext="$exeext"
13363
13364 # Additional compiler flags for building library objects.
13365 pic_flag=$lt_lt_prog_compiler_pic_CXX
13366 pic_mode=$pic_mode
13367
13368 # What is the maximum length of a command?
13369 max_cmd_len=$lt_cv_sys_max_cmd_len
13370
13371 # Does compiler simultaneously support -c and -o options?
13372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13373
13374 # Must we lock files when doing compilation?
13375 need_locks=$lt_need_locks
13376
13377 # Do we need the lib prefix for modules?
13378 need_lib_prefix=$need_lib_prefix
13379
13380 # Do we need a version for libraries?
13381 need_version=$need_version
13382
13383 # Whether dlopen is supported.
13384 dlopen_support=$enable_dlopen
13385
13386 # Whether dlopen of programs is supported.
13387 dlopen_self=$enable_dlopen_self
13388
13389 # Whether dlopen of statically linked programs is supported.
13390 dlopen_self_static=$enable_dlopen_self_static
13391
13392 # Compiler flag to prevent dynamic linking.
13393 link_static_flag=$lt_lt_prog_compiler_static_CXX
13394
13395 # Compiler flag to turn off builtin functions.
13396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13397
13398 # Compiler flag to allow reflexive dlopens.
13399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13400
13401 # Compiler flag to generate shared objects directly from archives.
13402 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13403
13404 # Compiler flag to generate thread-safe objects.
13405 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13406
13407 # Library versioning type.
13408 version_type=$version_type
13409
13410 # Format of library name prefix.
13411 libname_spec=$lt_libname_spec
13412
13413 # List of archive names.  First name is the real one, the rest are links.
13414 # The last name is the one that the linker finds with -lNAME.
13415 library_names_spec=$lt_library_names_spec
13416
13417 # The coded name of the library, if different from the real name.
13418 soname_spec=$lt_soname_spec
13419
13420 # Commands used to build and install an old-style archive.
13421 RANLIB=$lt_RANLIB
13422 old_archive_cmds=$lt_old_archive_cmds_CXX
13423 old_postinstall_cmds=$lt_old_postinstall_cmds
13424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13425
13426 # Create an old-style archive from a shared archive.
13427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13428
13429 # Create a temporary old-style archive to link instead of a shared archive.
13430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13431
13432 # Commands used to build and install a shared archive.
13433 archive_cmds=$lt_archive_cmds_CXX
13434 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13435 postinstall_cmds=$lt_postinstall_cmds
13436 postuninstall_cmds=$lt_postuninstall_cmds
13437
13438 # Commands used to build a loadable module (assumed same as above if empty)
13439 module_cmds=$lt_module_cmds_CXX
13440 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13441
13442 # Commands to strip libraries.
13443 old_striplib=$lt_old_striplib
13444 striplib=$lt_striplib
13445
13446 # Dependencies to place before the objects being linked to create a
13447 # shared library.
13448 predep_objects=$lt_predep_objects_CXX
13449
13450 # Dependencies to place after the objects being linked to create a
13451 # shared library.
13452 postdep_objects=$lt_postdep_objects_CXX
13453
13454 # Dependencies to place before the objects being linked to create a
13455 # shared library.
13456 predeps=$lt_predeps_CXX
13457
13458 # Dependencies to place after the objects being linked to create a
13459 # shared library.
13460 postdeps=$lt_postdeps_CXX
13461
13462 # The library search path used internally by the compiler when linking
13463 # a shared library.
13464 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13465
13466 # Method to check whether dependent libraries are shared objects.
13467 deplibs_check_method=$lt_deplibs_check_method
13468
13469 # Command to use when deplibs_check_method == file_magic.
13470 file_magic_cmd=$lt_file_magic_cmd
13471
13472 # Flag that allows shared libraries with undefined symbols to be built.
13473 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13474
13475 # Flag that forces no undefined symbols.
13476 no_undefined_flag=$lt_no_undefined_flag_CXX
13477
13478 # Commands used to finish a libtool library installation in a directory.
13479 finish_cmds=$lt_finish_cmds
13480
13481 # Same as above, but a single script fragment to be evaled but not shown.
13482 finish_eval=$lt_finish_eval
13483
13484 # Take the output of nm and produce a listing of raw symbols and C names.
13485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13486
13487 # Transform the output of nm in a proper C declaration
13488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13489
13490 # Transform the output of nm in a C name address pair
13491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13492
13493 # This is the shared library runtime path variable.
13494 runpath_var=$runpath_var
13495
13496 # This is the shared library path variable.
13497 shlibpath_var=$shlibpath_var
13498
13499 # Is shlibpath searched before the hard-coded library search path?
13500 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13501
13502 # How to hardcode a shared library path into an executable.
13503 hardcode_action=$hardcode_action_CXX
13504
13505 # Whether we should hardcode library paths into libraries.
13506 hardcode_into_libs=$hardcode_into_libs
13507
13508 # Flag to hardcode \$libdir into a binary during linking.
13509 # This must work even if \$libdir does not exist.
13510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13511
13512 # If ld is used when linking, flag to hardcode \$libdir into
13513 # a binary during linking. This must work even if \$libdir does
13514 # not exist.
13515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13516
13517 # Whether we need a single -rpath flag with a separated argument.
13518 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13519
13520 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13521 # resulting binary.
13522 hardcode_direct=$hardcode_direct_CXX
13523
13524 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13525 # resulting binary.
13526 hardcode_minus_L=$hardcode_minus_L_CXX
13527
13528 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13529 # the resulting binary.
13530 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13531
13532 # Set to yes if building a shared library automatically hardcodes DIR into the library
13533 # and all subsequent libraries and executables linked against it.
13534 hardcode_automatic=$hardcode_automatic_CXX
13535
13536 # Variables whose values should be saved in libtool wrapper scripts and
13537 # restored at relink time.
13538 variables_saved_for_relink="$variables_saved_for_relink"
13539
13540 # Whether libtool must link a program against all its dependency libraries.
13541 link_all_deplibs=$link_all_deplibs_CXX
13542
13543 # Compile-time system search path for libraries
13544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13545
13546 # Run-time system search path for libraries
13547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13548
13549 # Fix the shell variable \$srcfile for the compiler.
13550 fix_srcfile_path="$fix_srcfile_path_CXX"
13551
13552 # Set to yes if exported symbols are required.
13553 always_export_symbols=$always_export_symbols_CXX
13554
13555 # The commands to list exported symbols.
13556 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13557
13558 # The commands to extract the exported symbol list from a shared archive.
13559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13560
13561 # Symbols that should not be listed in the preloaded symbols.
13562 exclude_expsyms=$lt_exclude_expsyms_CXX
13563
13564 # Symbols that must always be exported.
13565 include_expsyms=$lt_include_expsyms_CXX
13566
13567 # ### END LIBTOOL TAG CONFIG: $tagname
13568
13569 __EOF__
13570
13571
13572 else
13573   # If there is no Makefile yet, we rely on a make rule to execute
13574   # `config.status --recheck' to rerun these tests and create the
13575   # libtool script then.
13576   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13577   if test -f "$ltmain_in"; then
13578     test -f Makefile && make "$ltmain"
13579   fi
13580 fi
13581
13582
13583 ac_ext=c
13584 ac_cpp='$CPP $CPPFLAGS'
13585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13588
13589 CC=$lt_save_CC
13590 LDCXX=$LD
13591 LD=$lt_save_LD
13592 GCC=$lt_save_GCC
13593 with_gnu_ldcxx=$with_gnu_ld
13594 with_gnu_ld=$lt_save_with_gnu_ld
13595 lt_cv_path_LDCXX=$lt_cv_path_LD
13596 lt_cv_path_LD=$lt_save_path_LD
13597 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13598 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13599
13600         else
13601           tagname=""
13602         fi
13603         ;;
13604
13605       F77)
13606         if test -n "$F77" && test "X$F77" != "Xno"; then
13607
13608 ac_ext=f
13609 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13610 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13612
13613
13614 archive_cmds_need_lc_F77=no
13615 allow_undefined_flag_F77=
13616 always_export_symbols_F77=no
13617 archive_expsym_cmds_F77=
13618 export_dynamic_flag_spec_F77=
13619 hardcode_direct_F77=no
13620 hardcode_libdir_flag_spec_F77=
13621 hardcode_libdir_flag_spec_ld_F77=
13622 hardcode_libdir_separator_F77=
13623 hardcode_minus_L_F77=no
13624 hardcode_automatic_F77=no
13625 module_cmds_F77=
13626 module_expsym_cmds_F77=
13627 link_all_deplibs_F77=unknown
13628 old_archive_cmds_F77=$old_archive_cmds
13629 no_undefined_flag_F77=
13630 whole_archive_flag_spec_F77=
13631 enable_shared_with_static_runtimes_F77=no
13632
13633 # Source file extension for f77 test sources.
13634 ac_ext=f
13635
13636 # Object file extension for compiled f77 test sources.
13637 objext=o
13638 objext_F77=$objext
13639
13640 # Code to be used in simple compile tests
13641 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13642
13643 # Code to be used in simple link tests
13644 lt_simple_link_test_code="      program t\n      end\n"
13645
13646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13647
13648 # If no C compiler was specified, use CC.
13649 LTCC=${LTCC-"$CC"}
13650
13651 # If no C compiler flags were specified, use CFLAGS.
13652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13653
13654 # Allow CC to be a program name with arguments.
13655 compiler=$CC
13656
13657
13658 # save warnings/boilerplate of simple test code
13659 ac_outfile=conftest.$ac_objext
13660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13662 _lt_compiler_boilerplate=`cat conftest.err`
13663 $rm conftest*
13664
13665 ac_outfile=conftest.$ac_objext
13666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13668 _lt_linker_boilerplate=`cat conftest.err`
13669 $rm conftest*
13670
13671
13672 # Allow CC to be a program name with arguments.
13673 lt_save_CC="$CC"
13674 CC=${F77-"f77"}
13675 compiler=$CC
13676 compiler_F77=$CC
13677 for cc_temp in $compiler""; do
13678   case $cc_temp in
13679     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13680     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13681     \-*) ;;
13682     *) break;;
13683   esac
13684 done
13685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13686
13687
13688 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13689 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13690 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13691 echo "${ECHO_T}$can_build_shared" >&6; }
13692
13693 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13694 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13695 test "$can_build_shared" = "no" && enable_shared=no
13696
13697 # On AIX, shared libraries and static libraries use the same namespace, and
13698 # are all built from PIC.
13699 case $host_os in
13700 aix3*)
13701   test "$enable_shared" = yes && enable_static=no
13702   if test -n "$RANLIB"; then
13703     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13704     postinstall_cmds='$RANLIB $lib'
13705   fi
13706   ;;
13707 aix4* | aix5*)
13708   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13709     test "$enable_shared" = yes && enable_static=no
13710   fi
13711   ;;
13712 esac
13713 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13714 echo "${ECHO_T}$enable_shared" >&6; }
13715
13716 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13717 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13718 # Make sure either enable_shared or enable_static is yes.
13719 test "$enable_shared" = yes || enable_static=yes
13720 { echo "$as_me:$LINENO: result: $enable_static" >&5
13721 echo "${ECHO_T}$enable_static" >&6; }
13722
13723 GCC_F77="$G77"
13724 LD_F77="$LD"
13725
13726 lt_prog_compiler_wl_F77=
13727 lt_prog_compiler_pic_F77=
13728 lt_prog_compiler_static_F77=
13729
13730 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13731 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13732
13733   if test "$GCC" = yes; then
13734     lt_prog_compiler_wl_F77='-Wl,'
13735     lt_prog_compiler_static_F77='-static'
13736
13737     case $host_os in
13738       aix*)
13739       # All AIX code is PIC.
13740       if test "$host_cpu" = ia64; then
13741         # AIX 5 now supports IA64 processor
13742         lt_prog_compiler_static_F77='-Bstatic'
13743       fi
13744       ;;
13745
13746     amigaos*)
13747       # FIXME: we need at least 68020 code to build shared libraries, but
13748       # adding the `-m68020' flag to GCC prevents building anything better,
13749       # like `-m68040'.
13750       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13751       ;;
13752
13753     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13754       # PIC is the default for these OSes.
13755       ;;
13756
13757     mingw* | pw32* | os2*)
13758       # This hack is so that the source file can tell whether it is being
13759       # built for inclusion in a dll (and should export symbols for example).
13760       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13761       ;;
13762
13763     darwin* | rhapsody*)
13764       # PIC is the default on this platform
13765       # Common symbols not allowed in MH_DYLIB files
13766       lt_prog_compiler_pic_F77='-fno-common'
13767       ;;
13768
13769     interix3*)
13770       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13771       # Instead, we relocate shared libraries at runtime.
13772       ;;
13773
13774     msdosdjgpp*)
13775       # Just because we use GCC doesn't mean we suddenly get shared libraries
13776       # on systems that don't support them.
13777       lt_prog_compiler_can_build_shared_F77=no
13778       enable_shared=no
13779       ;;
13780
13781     sysv4*MP*)
13782       if test -d /usr/nec; then
13783         lt_prog_compiler_pic_F77=-Kconform_pic
13784       fi
13785       ;;
13786
13787     hpux*)
13788       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13789       # not for PA HP-UX.
13790       case $host_cpu in
13791       hppa*64*|ia64*)
13792         # +Z the default
13793         ;;
13794       *)
13795         lt_prog_compiler_pic_F77='-fPIC'
13796         ;;
13797       esac
13798       ;;
13799
13800     *)
13801       lt_prog_compiler_pic_F77='-fPIC'
13802       ;;
13803     esac
13804   else
13805     # PORTME Check for flag to pass linker flags through the system compiler.
13806     case $host_os in
13807     aix*)
13808       lt_prog_compiler_wl_F77='-Wl,'
13809       if test "$host_cpu" = ia64; then
13810         # AIX 5 now supports IA64 processor
13811         lt_prog_compiler_static_F77='-Bstatic'
13812       else
13813         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13814       fi
13815       ;;
13816       darwin*)
13817         # PIC is the default on this platform
13818         # Common symbols not allowed in MH_DYLIB files
13819        case $cc_basename in
13820          xlc*)
13821          lt_prog_compiler_pic_F77='-qnocommon'
13822          lt_prog_compiler_wl_F77='-Wl,'
13823          ;;
13824        esac
13825        ;;
13826
13827     mingw* | pw32* | os2*)
13828       # This hack is so that the source file can tell whether it is being
13829       # built for inclusion in a dll (and should export symbols for example).
13830       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13831       ;;
13832
13833     hpux9* | hpux10* | hpux11*)
13834       lt_prog_compiler_wl_F77='-Wl,'
13835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13836       # not for PA HP-UX.
13837       case $host_cpu in
13838       hppa*64*|ia64*)
13839         # +Z the default
13840         ;;
13841       *)
13842         lt_prog_compiler_pic_F77='+Z'
13843         ;;
13844       esac
13845       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13846       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13847       ;;
13848
13849     irix5* | irix6* | nonstopux*)
13850       lt_prog_compiler_wl_F77='-Wl,'
13851       # PIC (with -KPIC) is the default.
13852       lt_prog_compiler_static_F77='-non_shared'
13853       ;;
13854
13855     newsos6)
13856       lt_prog_compiler_pic_F77='-KPIC'
13857       lt_prog_compiler_static_F77='-Bstatic'
13858       ;;
13859
13860     linux* | k*bsd*-gnu)
13861       case $cc_basename in
13862       icc* | ecc*)
13863         lt_prog_compiler_wl_F77='-Wl,'
13864         lt_prog_compiler_pic_F77='-KPIC'
13865         lt_prog_compiler_static_F77='-static'
13866         ;;
13867       pgcc* | pgf77* | pgf90* | pgf95*)
13868         # Portland Group compilers (*not* the Pentium gcc compiler,
13869         # which looks to be a dead project)
13870         lt_prog_compiler_wl_F77='-Wl,'
13871         lt_prog_compiler_pic_F77='-fpic'
13872         lt_prog_compiler_static_F77='-Bstatic'
13873         ;;
13874       ccc*)
13875         lt_prog_compiler_wl_F77='-Wl,'
13876         # All Alpha code is PIC.
13877         lt_prog_compiler_static_F77='-non_shared'
13878         ;;
13879       esac
13880       ;;
13881
13882     osf3* | osf4* | osf5*)
13883       lt_prog_compiler_wl_F77='-Wl,'
13884       # All OSF/1 code is PIC.
13885       lt_prog_compiler_static_F77='-non_shared'
13886       ;;
13887
13888     solaris*)
13889       lt_prog_compiler_pic_F77='-KPIC'
13890       lt_prog_compiler_static_F77='-Bstatic'
13891       case $cc_basename in
13892       f77* | f90* | f95*)
13893         lt_prog_compiler_wl_F77='-Qoption ld ';;
13894       *)
13895         lt_prog_compiler_wl_F77='-Wl,';;
13896       esac
13897       ;;
13898
13899     sunos4*)
13900       lt_prog_compiler_wl_F77='-Qoption ld '
13901       lt_prog_compiler_pic_F77='-PIC'
13902       lt_prog_compiler_static_F77='-Bstatic'
13903       ;;
13904
13905     sysv4 | sysv4.2uw2* | sysv4.3*)
13906       lt_prog_compiler_wl_F77='-Wl,'
13907       lt_prog_compiler_pic_F77='-KPIC'
13908       lt_prog_compiler_static_F77='-Bstatic'
13909       ;;
13910
13911     sysv4*MP*)
13912       if test -d /usr/nec ;then
13913         lt_prog_compiler_pic_F77='-Kconform_pic'
13914         lt_prog_compiler_static_F77='-Bstatic'
13915       fi
13916       ;;
13917
13918     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13919       lt_prog_compiler_wl_F77='-Wl,'
13920       lt_prog_compiler_pic_F77='-KPIC'
13921       lt_prog_compiler_static_F77='-Bstatic'
13922       ;;
13923
13924     unicos*)
13925       lt_prog_compiler_wl_F77='-Wl,'
13926       lt_prog_compiler_can_build_shared_F77=no
13927       ;;
13928
13929     uts4*)
13930       lt_prog_compiler_pic_F77='-pic'
13931       lt_prog_compiler_static_F77='-Bstatic'
13932       ;;
13933
13934     *)
13935       lt_prog_compiler_can_build_shared_F77=no
13936       ;;
13937     esac
13938   fi
13939
13940 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13941 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13942
13943 #
13944 # Check to make sure the PIC flag actually works.
13945 #
13946 if test -n "$lt_prog_compiler_pic_F77"; then
13947
13948 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13949 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13950 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   lt_prog_compiler_pic_works_F77=no
13954   ac_outfile=conftest.$ac_objext
13955    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13956    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13957    # Insert the option either (1) after the last *FLAGS variable, or
13958    # (2) before a word containing "conftest.", or (3) at the end.
13959    # Note that $ac_compile itself does not contain backslashes and begins
13960    # with a dollar sign (not a hyphen), so the echo should work correctly.
13961    # The option is referenced via a variable to avoid confusing sed.
13962    lt_compile=`echo "$ac_compile" | $SED \
13963    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13965    -e 's:$: $lt_compiler_flag:'`
13966    (eval echo "\"\$as_me:13966: $lt_compile\"" >&5)
13967    (eval "$lt_compile" 2>conftest.err)
13968    ac_status=$?
13969    cat conftest.err >&5
13970    echo "$as_me:13970: \$? = $ac_status" >&5
13971    if (exit $ac_status) && test -s "$ac_outfile"; then
13972      # The compiler can only warn and ignore the option if not recognized
13973      # So say no if there are warnings other than the usual output.
13974      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13975      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13976      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13977        lt_prog_compiler_pic_works_F77=yes
13978      fi
13979    fi
13980    $rm conftest*
13981
13982 fi
13983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13984 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13985
13986 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13987     case $lt_prog_compiler_pic_F77 in
13988      "" | " "*) ;;
13989      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13990      esac
13991 else
13992     lt_prog_compiler_pic_F77=
13993      lt_prog_compiler_can_build_shared_F77=no
13994 fi
13995
13996 fi
13997 case $host_os in
13998   # For platforms which do not support PIC, -DPIC is meaningless:
13999   *djgpp*)
14000     lt_prog_compiler_pic_F77=
14001     ;;
14002   *)
14003     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14004     ;;
14005 esac
14006
14007 #
14008 # Check to make sure the static flag actually works.
14009 #
14010 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14011 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14012 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14013 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016   lt_prog_compiler_static_works_F77=no
14017    save_LDFLAGS="$LDFLAGS"
14018    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14019    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14020    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14021      # The linker can only warn and ignore the option if not recognized
14022      # So say no if there are warnings
14023      if test -s conftest.err; then
14024        # Append any errors to the config.log.
14025        cat conftest.err 1>&5
14026        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14027        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14028        if diff conftest.exp conftest.er2 >/dev/null; then
14029          lt_prog_compiler_static_works_F77=yes
14030        fi
14031      else
14032        lt_prog_compiler_static_works_F77=yes
14033      fi
14034    fi
14035    $rm conftest*
14036    LDFLAGS="$save_LDFLAGS"
14037
14038 fi
14039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14040 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14041
14042 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14043     :
14044 else
14045     lt_prog_compiler_static_F77=
14046 fi
14047
14048
14049 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14050 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14051 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   lt_cv_prog_compiler_c_o_F77=no
14055    $rm -r conftest 2>/dev/null
14056    mkdir conftest
14057    cd conftest
14058    mkdir out
14059    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14060
14061    lt_compiler_flag="-o out/conftest2.$ac_objext"
14062    # Insert the option either (1) after the last *FLAGS variable, or
14063    # (2) before a word containing "conftest.", or (3) at the end.
14064    # Note that $ac_compile itself does not contain backslashes and begins
14065    # with a dollar sign (not a hyphen), so the echo should work correctly.
14066    lt_compile=`echo "$ac_compile" | $SED \
14067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14069    -e 's:$: $lt_compiler_flag:'`
14070    (eval echo "\"\$as_me:14070: $lt_compile\"" >&5)
14071    (eval "$lt_compile" 2>out/conftest.err)
14072    ac_status=$?
14073    cat out/conftest.err >&5
14074    echo "$as_me:14074: \$? = $ac_status" >&5
14075    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14076    then
14077      # The compiler can only warn and ignore the option if not recognized
14078      # So say no if there are warnings
14079      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14080      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14081      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14082        lt_cv_prog_compiler_c_o_F77=yes
14083      fi
14084    fi
14085    chmod u+w . 2>&5
14086    $rm conftest*
14087    # SGI C++ compiler will create directory out/ii_files/ for
14088    # template instantiation
14089    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14090    $rm out/* && rmdir out
14091    cd ..
14092    rmdir conftest
14093    $rm conftest*
14094
14095 fi
14096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14098
14099
14100 hard_links="nottested"
14101 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14102   # do not overwrite the value of need_locks provided by the user
14103   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14105   hard_links=yes
14106   $rm conftest*
14107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14108   touch conftest.a
14109   ln conftest.a conftest.b 2>&5 || hard_links=no
14110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14111   { echo "$as_me:$LINENO: result: $hard_links" >&5
14112 echo "${ECHO_T}$hard_links" >&6; }
14113   if test "$hard_links" = no; then
14114     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14116     need_locks=warn
14117   fi
14118 else
14119   need_locks=no
14120 fi
14121
14122 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14124
14125   runpath_var=
14126   allow_undefined_flag_F77=
14127   enable_shared_with_static_runtimes_F77=no
14128   archive_cmds_F77=
14129   archive_expsym_cmds_F77=
14130   old_archive_From_new_cmds_F77=
14131   old_archive_from_expsyms_cmds_F77=
14132   export_dynamic_flag_spec_F77=
14133   whole_archive_flag_spec_F77=
14134   thread_safe_flag_spec_F77=
14135   hardcode_libdir_flag_spec_F77=
14136   hardcode_libdir_flag_spec_ld_F77=
14137   hardcode_libdir_separator_F77=
14138   hardcode_direct_F77=no
14139   hardcode_minus_L_F77=no
14140   hardcode_shlibpath_var_F77=unsupported
14141   link_all_deplibs_F77=unknown
14142   hardcode_automatic_F77=no
14143   module_cmds_F77=
14144   module_expsym_cmds_F77=
14145   always_export_symbols_F77=no
14146   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14147   # include_expsyms should be a list of space-separated symbols to be *always*
14148   # included in the symbol list
14149   include_expsyms_F77=
14150   # exclude_expsyms can be an extended regexp of symbols to exclude
14151   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14152   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14153   # as well as any symbol that contains `d'.
14154   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14155   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14156   # platforms (ab)use it in PIC code, but their linkers get confused if
14157   # the symbol is explicitly referenced.  Since portable code cannot
14158   # rely on this symbol name, it's probably fine to never include it in
14159   # preloaded symbol tables.
14160   extract_expsyms_cmds=
14161   # Just being paranoid about ensuring that cc_basename is set.
14162   for cc_temp in $compiler""; do
14163   case $cc_temp in
14164     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14165     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14166     \-*) ;;
14167     *) break;;
14168   esac
14169 done
14170 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14171
14172   case $host_os in
14173   cygwin* | mingw* | pw32*)
14174     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14175     # When not using gcc, we currently assume that we are using
14176     # Microsoft Visual C++.
14177     if test "$GCC" != yes; then
14178       with_gnu_ld=no
14179     fi
14180     ;;
14181   interix*)
14182     # we just hope/assume this is gcc and not c89 (= MSVC++)
14183     with_gnu_ld=yes
14184     ;;
14185   openbsd*)
14186     with_gnu_ld=no
14187     ;;
14188   esac
14189
14190   ld_shlibs_F77=yes
14191   if test "$with_gnu_ld" = yes; then
14192     # If archive_cmds runs LD, not CC, wlarc should be empty
14193     wlarc='${wl}'
14194
14195     # Set some defaults for GNU ld with shared library support. These
14196     # are reset later if shared libraries are not supported. Putting them
14197     # here allows them to be overridden if necessary.
14198     runpath_var=LD_RUN_PATH
14199     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14200     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14201     # ancient GNU ld didn't support --whole-archive et. al.
14202     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14203         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14204       else
14205         whole_archive_flag_spec_F77=
14206     fi
14207     supports_anon_versioning=no
14208     case `$LD -v 2>/dev/null` in
14209       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14210       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14211       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14212       *\ 2.11.*) ;; # other 2.11 versions
14213       *) supports_anon_versioning=yes ;;
14214     esac
14215
14216     # See if GNU ld supports shared libraries.
14217     case $host_os in
14218     aix3* | aix4* | aix5*)
14219       # On AIX/PPC, the GNU linker is very broken
14220       if test "$host_cpu" != ia64; then
14221         ld_shlibs_F77=no
14222         cat <<EOF 1>&2
14223
14224 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14225 *** to be unable to reliably create shared libraries on AIX.
14226 *** Therefore, libtool is disabling shared libraries support.  If you
14227 *** really care for shared libraries, you may want to modify your PATH
14228 *** so that a non-GNU linker is found, and then restart.
14229
14230 EOF
14231       fi
14232       ;;
14233
14234     amigaos*)
14235       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)'
14236       hardcode_libdir_flag_spec_F77='-L$libdir'
14237       hardcode_minus_L_F77=yes
14238
14239       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14240       # that the semantics of dynamic libraries on AmigaOS, at least up
14241       # to version 4, is to share data among multiple programs linked
14242       # with the same dynamic library.  Since this doesn't match the
14243       # behavior of shared libraries on other platforms, we can't use
14244       # them.
14245       ld_shlibs_F77=no
14246       ;;
14247
14248     beos*)
14249       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250         allow_undefined_flag_F77=unsupported
14251         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14252         # support --undefined.  This deserves some investigation.  FIXME
14253         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14254       else
14255         ld_shlibs_F77=no
14256       fi
14257       ;;
14258
14259     cygwin* | mingw* | pw32*)
14260       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14261       # as there is no search path for DLLs.
14262       hardcode_libdir_flag_spec_F77='-L$libdir'
14263       allow_undefined_flag_F77=unsupported
14264       always_export_symbols_F77=no
14265       enable_shared_with_static_runtimes_F77=yes
14266       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14267
14268       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14269         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14270         # If the export-symbols file already is a .def file (1st line
14271         # is EXPORTS), use it as is; otherwise, prepend...
14272         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14273           cp $export_symbols $output_objdir/$soname.def;
14274         else
14275           echo EXPORTS > $output_objdir/$soname.def;
14276           cat $export_symbols >> $output_objdir/$soname.def;
14277         fi~
14278         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14279       else
14280         ld_shlibs_F77=no
14281       fi
14282       ;;
14283
14284     interix3*)
14285       hardcode_direct_F77=no
14286       hardcode_shlibpath_var_F77=no
14287       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14288       export_dynamic_flag_spec_F77='${wl}-E'
14289       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14290       # Instead, shared libraries are loaded at an image base (0x10000000 by
14291       # default) and relocated if they conflict, which is a slow very memory
14292       # consuming and fragmenting process.  To avoid this, we pick a random,
14293       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14294       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14295       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'
14296       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'
14297       ;;
14298
14299     linux* | k*bsd*-gnu)
14300       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14301         tmp_addflag=
14302         case $cc_basename,$host_cpu in
14303         pgcc*)                          # Portland Group C compiler
14304           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'
14305           tmp_addflag=' $pic_flag'
14306           ;;
14307         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14308           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'
14309           tmp_addflag=' $pic_flag -Mnomain' ;;
14310         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14311           tmp_addflag=' -i_dynamic' ;;
14312         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14313           tmp_addflag=' -i_dynamic -nofor_main' ;;
14314         ifc* | ifort*)                  # Intel Fortran compiler
14315           tmp_addflag=' -nofor_main' ;;
14316         esac
14317         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14318
14319         if test $supports_anon_versioning = yes; then
14320           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14321   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14322   $echo "local: *; };" >> $output_objdir/$libname.ver~
14323           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14324         fi
14325         link_all_deplibs_F77=no
14326       else
14327         ld_shlibs_F77=no
14328       fi
14329       ;;
14330
14331     netbsd* | netbsdelf*-gnu)
14332       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14333         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14334         wlarc=
14335       else
14336         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14337         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14338       fi
14339       ;;
14340
14341     solaris*)
14342       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14343         ld_shlibs_F77=no
14344         cat <<EOF 1>&2
14345
14346 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14347 *** create shared libraries on Solaris systems.  Therefore, libtool
14348 *** is disabling shared libraries support.  We urge you to upgrade GNU
14349 *** binutils to release 2.9.1 or newer.  Another option is to modify
14350 *** your PATH or compiler configuration so that the native linker is
14351 *** used, and then restart.
14352
14353 EOF
14354       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14355         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14357       else
14358         ld_shlibs_F77=no
14359       fi
14360       ;;
14361
14362     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14363       case `$LD -v 2>&1` in
14364         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14365         ld_shlibs_F77=no
14366         cat <<_LT_EOF 1>&2
14367
14368 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14369 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14370 *** is disabling shared libraries support.  We urge you to upgrade GNU
14371 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14372 *** your PATH or compiler configuration so that the native linker is
14373 *** used, and then restart.
14374
14375 _LT_EOF
14376         ;;
14377         *)
14378           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14380             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14381             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14382           else
14383             ld_shlibs_F77=no
14384           fi
14385         ;;
14386       esac
14387       ;;
14388
14389     sunos4*)
14390       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14391       wlarc=
14392       hardcode_direct_F77=yes
14393       hardcode_shlibpath_var_F77=no
14394       ;;
14395
14396     *)
14397       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14398         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14399         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14400       else
14401         ld_shlibs_F77=no
14402       fi
14403       ;;
14404     esac
14405
14406     if test "$ld_shlibs_F77" = no; then
14407       runpath_var=
14408       hardcode_libdir_flag_spec_F77=
14409       export_dynamic_flag_spec_F77=
14410       whole_archive_flag_spec_F77=
14411     fi
14412   else
14413     # PORTME fill in a description of your system's linker (not GNU ld)
14414     case $host_os in
14415     aix3*)
14416       allow_undefined_flag_F77=unsupported
14417       always_export_symbols_F77=yes
14418       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'
14419       # Note: this linker hardcodes the directories in LIBPATH if there
14420       # are no directories specified by -L.
14421       hardcode_minus_L_F77=yes
14422       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14423         # Neither direct hardcoding nor static linking is supported with a
14424         # broken collect2.
14425         hardcode_direct_F77=unsupported
14426       fi
14427       ;;
14428
14429     aix4* | aix5*)
14430       if test "$host_cpu" = ia64; then
14431         # On IA64, the linker does run time linking by default, so we don't
14432         # have to do anything special.
14433         aix_use_runtimelinking=no
14434         exp_sym_flag='-Bexport'
14435         no_entry_flag=""
14436       else
14437         # If we're using GNU nm, then we don't want the "-C" option.
14438         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14439         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14440           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'
14441         else
14442           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'
14443         fi
14444         aix_use_runtimelinking=no
14445
14446         # Test if we are trying to use run time linking or normal
14447         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14448         # need to do runtime linking.
14449         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14450           for ld_flag in $LDFLAGS; do
14451           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14452             aix_use_runtimelinking=yes
14453             break
14454           fi
14455           done
14456           ;;
14457         esac
14458
14459         exp_sym_flag='-bexport'
14460         no_entry_flag='-bnoentry'
14461       fi
14462
14463       # When large executables or shared objects are built, AIX ld can
14464       # have problems creating the table of contents.  If linking a library
14465       # or program results in "error TOC overflow" add -mminimal-toc to
14466       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14467       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14468
14469       archive_cmds_F77=''
14470       hardcode_direct_F77=yes
14471       hardcode_libdir_separator_F77=':'
14472       link_all_deplibs_F77=yes
14473
14474       if test "$GCC" = yes; then
14475         case $host_os in aix4.[012]|aix4.[012].*)
14476         # We only want to do this on AIX 4.2 and lower, the check
14477         # below for broken collect2 doesn't work under 4.3+
14478           collect2name=`${CC} -print-prog-name=collect2`
14479           if test -f "$collect2name" && \
14480            strings "$collect2name" | grep resolve_lib_name >/dev/null
14481           then
14482           # We have reworked collect2
14483           hardcode_direct_F77=yes
14484           else
14485           # We have old collect2
14486           hardcode_direct_F77=unsupported
14487           # It fails to find uninstalled libraries when the uninstalled
14488           # path is not listed in the libpath.  Setting hardcode_minus_L
14489           # to unsupported forces relinking
14490           hardcode_minus_L_F77=yes
14491           hardcode_libdir_flag_spec_F77='-L$libdir'
14492           hardcode_libdir_separator_F77=
14493           fi
14494           ;;
14495         esac
14496         shared_flag='-shared'
14497         if test "$aix_use_runtimelinking" = yes; then
14498           shared_flag="$shared_flag "'${wl}-G'
14499         fi
14500       else
14501         # not using gcc
14502         if test "$host_cpu" = ia64; then
14503         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14504         # chokes on -Wl,-G. The following line is correct:
14505           shared_flag='-G'
14506         else
14507           if test "$aix_use_runtimelinking" = yes; then
14508             shared_flag='${wl}-G'
14509           else
14510             shared_flag='${wl}-bM:SRE'
14511           fi
14512         fi
14513       fi
14514
14515       # It seems that -bexpall does not export symbols beginning with
14516       # underscore (_), so it is better to generate a list of symbols to export.
14517       always_export_symbols_F77=yes
14518       if test "$aix_use_runtimelinking" = yes; then
14519         # Warning - without using the other runtime loading flags (-brtl),
14520         # -berok will link without error, but may produce a broken library.
14521         allow_undefined_flag_F77='-berok'
14522        # Determine the default libpath from the value encoded in an empty executable.
14523        cat >conftest.$ac_ext <<_ACEOF
14524       program main
14525
14526       end
14527 _ACEOF
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (ac_try="$ac_link"
14530 case "(($ac_try" in
14531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532   *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535   (eval "$ac_link") 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } && {
14542          test -z "$ac_f77_werror_flag" ||
14543          test ! -s conftest.err
14544        } && test -s conftest$ac_exeext &&
14545        $as_test_x conftest$ac_exeext; then
14546
14547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14548 }'`
14549 # Check for a 64-bit object if we didn't find anything.
14550 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; }
14551 }'`; fi
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556
14557 fi
14558
14559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14560       conftest$ac_exeext conftest.$ac_ext
14561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14562
14563        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14564         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"
14565        else
14566         if test "$host_cpu" = ia64; then
14567           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14568           allow_undefined_flag_F77="-z nodefs"
14569           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"
14570         else
14571          # Determine the default libpath from the value encoded in an empty executable.
14572          cat >conftest.$ac_ext <<_ACEOF
14573       program main
14574
14575       end
14576 _ACEOF
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (ac_try="$ac_link"
14579 case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_link") 2>conftest.er1
14585   ac_status=$?
14586   grep -v '^ *+' conftest.er1 >conftest.err
14587   rm -f conftest.er1
14588   cat conftest.err >&5
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } && {
14591          test -z "$ac_f77_werror_flag" ||
14592          test ! -s conftest.err
14593        } && test -s conftest$ac_exeext &&
14594        $as_test_x conftest$ac_exeext; then
14595
14596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14597 }'`
14598 # Check for a 64-bit object if we didn't find anything.
14599 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; }
14600 }'`; fi
14601 else
14602   echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605
14606 fi
14607
14608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14609       conftest$ac_exeext conftest.$ac_ext
14610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14611
14612          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14613           # Warning - without using the other run time loading flags,
14614           # -berok will link without error, but may produce a broken library.
14615           no_undefined_flag_F77=' ${wl}-bernotok'
14616           allow_undefined_flag_F77=' ${wl}-berok'
14617           # Exported symbols can be pulled into shared objects from archives
14618           whole_archive_flag_spec_F77='$convenience'
14619           archive_cmds_need_lc_F77=yes
14620           # This is similar to how AIX traditionally builds its shared libraries.
14621           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'
14622         fi
14623       fi
14624       ;;
14625
14626     amigaos*)
14627       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)'
14628       hardcode_libdir_flag_spec_F77='-L$libdir'
14629       hardcode_minus_L_F77=yes
14630       # see comment about different semantics on the GNU ld section
14631       ld_shlibs_F77=no
14632       ;;
14633
14634     bsdi[45]*)
14635       export_dynamic_flag_spec_F77=-rdynamic
14636       ;;
14637
14638     cygwin* | mingw* | pw32*)
14639       # When not using gcc, we currently assume that we are using
14640       # Microsoft Visual C++.
14641       # hardcode_libdir_flag_spec is actually meaningless, as there is
14642       # no search path for DLLs.
14643       hardcode_libdir_flag_spec_F77=' '
14644       allow_undefined_flag_F77=unsupported
14645       # Tell ltmain to make .lib files, not .a files.
14646       libext=lib
14647       # Tell ltmain to make .dll files, not .so files.
14648       shrext_cmds=".dll"
14649       # FIXME: Setting linknames here is a bad hack.
14650       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14651       # The linker will automatically build a .lib file if we build a DLL.
14652       old_archive_From_new_cmds_F77='true'
14653       # FIXME: Should let the user specify the lib program.
14654       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14655       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14656       enable_shared_with_static_runtimes_F77=yes
14657       ;;
14658
14659     darwin* | rhapsody*)
14660       case $host_os in
14661         rhapsody* | darwin1.[012])
14662          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14663          ;;
14664        *) # Darwin 1.3 on
14665          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14666            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14667          else
14668            case ${MACOSX_DEPLOYMENT_TARGET} in
14669              10.[012])
14670                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14671                ;;
14672              10.*)
14673                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14674                ;;
14675            esac
14676          fi
14677          ;;
14678       esac
14679       archive_cmds_need_lc_F77=no
14680       hardcode_direct_F77=no
14681       hardcode_automatic_F77=yes
14682       hardcode_shlibpath_var_F77=unsupported
14683       whole_archive_flag_spec_F77=''
14684       link_all_deplibs_F77=yes
14685     if test "$GCC" = yes ; then
14686         output_verbose_link_cmd='echo'
14687         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14688       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14689       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14690       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}'
14691       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}'
14692     else
14693       case $cc_basename in
14694         xlc*)
14695          output_verbose_link_cmd='echo'
14696          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14697          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14698           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14699          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}'
14700           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}'
14701           ;;
14702        *)
14703          ld_shlibs_F77=no
14704           ;;
14705       esac
14706     fi
14707       ;;
14708
14709     dgux*)
14710       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14711       hardcode_libdir_flag_spec_F77='-L$libdir'
14712       hardcode_shlibpath_var_F77=no
14713       ;;
14714
14715     freebsd1*)
14716       ld_shlibs_F77=no
14717       ;;
14718
14719     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14720     # support.  Future versions do this automatically, but an explicit c++rt0.o
14721     # does not break anything, and helps significantly (at the cost of a little
14722     # extra space).
14723     freebsd2.2*)
14724       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14725       hardcode_libdir_flag_spec_F77='-R$libdir'
14726       hardcode_direct_F77=yes
14727       hardcode_shlibpath_var_F77=no
14728       ;;
14729
14730     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14731     freebsd2*)
14732       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14733       hardcode_direct_F77=yes
14734       hardcode_minus_L_F77=yes
14735       hardcode_shlibpath_var_F77=no
14736       ;;
14737
14738     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14739     freebsd* | dragonfly*)
14740       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14741       hardcode_libdir_flag_spec_F77='-R$libdir'
14742       hardcode_direct_F77=yes
14743       hardcode_shlibpath_var_F77=no
14744       ;;
14745
14746     hpux9*)
14747       if test "$GCC" = yes; then
14748         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'
14749       else
14750         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'
14751       fi
14752       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14753       hardcode_libdir_separator_F77=:
14754       hardcode_direct_F77=yes
14755
14756       # hardcode_minus_L: Not really in the search PATH,
14757       # but as the default location of the library.
14758       hardcode_minus_L_F77=yes
14759       export_dynamic_flag_spec_F77='${wl}-E'
14760       ;;
14761
14762     hpux10*)
14763       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14764         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14765       else
14766         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14767       fi
14768       if test "$with_gnu_ld" = no; then
14769         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14770         hardcode_libdir_separator_F77=:
14771
14772         hardcode_direct_F77=yes
14773         export_dynamic_flag_spec_F77='${wl}-E'
14774
14775         # hardcode_minus_L: Not really in the search PATH,
14776         # but as the default location of the library.
14777         hardcode_minus_L_F77=yes
14778       fi
14779       ;;
14780
14781     hpux11*)
14782       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14783         case $host_cpu in
14784         hppa*64*)
14785           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14786           ;;
14787         ia64*)
14788           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14789           ;;
14790         *)
14791           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14792           ;;
14793         esac
14794       else
14795         case $host_cpu in
14796         hppa*64*)
14797           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14798           ;;
14799         ia64*)
14800           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14801           ;;
14802         *)
14803           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14804           ;;
14805         esac
14806       fi
14807       if test "$with_gnu_ld" = no; then
14808         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14809         hardcode_libdir_separator_F77=:
14810
14811         case $host_cpu in
14812         hppa*64*|ia64*)
14813           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14814           hardcode_direct_F77=no
14815           hardcode_shlibpath_var_F77=no
14816           ;;
14817         *)
14818           hardcode_direct_F77=yes
14819           export_dynamic_flag_spec_F77='${wl}-E'
14820
14821           # hardcode_minus_L: Not really in the search PATH,
14822           # but as the default location of the library.
14823           hardcode_minus_L_F77=yes
14824           ;;
14825         esac
14826       fi
14827       ;;
14828
14829     irix5* | irix6* | nonstopux*)
14830       if test "$GCC" = yes; then
14831         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'
14832       else
14833         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'
14834         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14835       fi
14836       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14837       hardcode_libdir_separator_F77=:
14838       link_all_deplibs_F77=yes
14839       ;;
14840
14841     netbsd* | netbsdelf*-gnu)
14842       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14843         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14844       else
14845         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14846       fi
14847       hardcode_libdir_flag_spec_F77='-R$libdir'
14848       hardcode_direct_F77=yes
14849       hardcode_shlibpath_var_F77=no
14850       ;;
14851
14852     newsos6)
14853       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14854       hardcode_direct_F77=yes
14855       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14856       hardcode_libdir_separator_F77=:
14857       hardcode_shlibpath_var_F77=no
14858       ;;
14859
14860     openbsd*)
14861       hardcode_direct_F77=yes
14862       hardcode_shlibpath_var_F77=no
14863       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14864         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14865         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14866         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14867         export_dynamic_flag_spec_F77='${wl}-E'
14868       else
14869        case $host_os in
14870          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14871            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14872            hardcode_libdir_flag_spec_F77='-R$libdir'
14873            ;;
14874          *)
14875            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14876            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14877            ;;
14878        esac
14879       fi
14880       ;;
14881
14882     os2*)
14883       hardcode_libdir_flag_spec_F77='-L$libdir'
14884       hardcode_minus_L_F77=yes
14885       allow_undefined_flag_F77=unsupported
14886       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'
14887       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14888       ;;
14889
14890     osf3*)
14891       if test "$GCC" = yes; then
14892         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14893         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'
14894       else
14895         allow_undefined_flag_F77=' -expect_unresolved \*'
14896         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'
14897       fi
14898       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14899       hardcode_libdir_separator_F77=:
14900       ;;
14901
14902     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14903       if test "$GCC" = yes; then
14904         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14905         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'
14906         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14907       else
14908         allow_undefined_flag_F77=' -expect_unresolved \*'
14909         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'
14910         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~
14911         $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'
14912
14913         # Both c and cxx compiler support -rpath directly
14914         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14915       fi
14916       hardcode_libdir_separator_F77=:
14917       ;;
14918
14919     solaris*)
14920       no_undefined_flag_F77=' -z text'
14921       if test "$GCC" = yes; then
14922         wlarc='${wl}'
14923         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14924         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14925           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14926       else
14927         wlarc=''
14928         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14930         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14931       fi
14932       hardcode_libdir_flag_spec_F77='-R$libdir'
14933       hardcode_shlibpath_var_F77=no
14934       case $host_os in
14935       solaris2.[0-5] | solaris2.[0-5].*) ;;
14936       *)
14937         # The compiler driver will combine linker options so we
14938         # cannot just pass the convience library names through
14939         # without $wl, iff we do not link with $LD.
14940         # Luckily, gcc supports the same syntax we need for Sun Studio.
14941         # Supported since Solaris 2.6 (maybe 2.5.1?)
14942         case $wlarc in
14943         '')
14944           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14945         *)
14946           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' ;;
14947         esac ;;
14948       esac
14949       link_all_deplibs_F77=yes
14950       ;;
14951
14952     sunos4*)
14953       if test "x$host_vendor" = xsequent; then
14954         # Use $CC to link under sequent, because it throws in some extra .o
14955         # files that make .init and .fini sections work.
14956         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14957       else
14958         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14959       fi
14960       hardcode_libdir_flag_spec_F77='-L$libdir'
14961       hardcode_direct_F77=yes
14962       hardcode_minus_L_F77=yes
14963       hardcode_shlibpath_var_F77=no
14964       ;;
14965
14966     sysv4)
14967       case $host_vendor in
14968         sni)
14969           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970           hardcode_direct_F77=yes # is this really true???
14971         ;;
14972         siemens)
14973           ## LD is ld it makes a PLAMLIB
14974           ## CC just makes a GrossModule.
14975           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14976           reload_cmds_F77='$CC -r -o $output$reload_objs'
14977           hardcode_direct_F77=no
14978         ;;
14979         motorola)
14980           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14981           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14982         ;;
14983       esac
14984       runpath_var='LD_RUN_PATH'
14985       hardcode_shlibpath_var_F77=no
14986       ;;
14987
14988     sysv4.3*)
14989       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14990       hardcode_shlibpath_var_F77=no
14991       export_dynamic_flag_spec_F77='-Bexport'
14992       ;;
14993
14994     sysv4*MP*)
14995       if test -d /usr/nec; then
14996         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14997         hardcode_shlibpath_var_F77=no
14998         runpath_var=LD_RUN_PATH
14999         hardcode_runpath_var=yes
15000         ld_shlibs_F77=yes
15001       fi
15002       ;;
15003
15004     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15005       no_undefined_flag_F77='${wl}-z,text'
15006       archive_cmds_need_lc_F77=no
15007       hardcode_shlibpath_var_F77=no
15008       runpath_var='LD_RUN_PATH'
15009
15010       if test "$GCC" = yes; then
15011         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15013       else
15014         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15016       fi
15017       ;;
15018
15019     sysv5* | sco3.2v5* | sco5v6*)
15020       # Note: We can NOT use -z defs as we might desire, because we do not
15021       # link with -lc, and that would cause any symbols used from libc to
15022       # always be unresolved, which means just about no library would
15023       # ever link correctly.  If we're not using GNU ld we use -z text
15024       # though, which does catch some bad symbols but isn't as heavy-handed
15025       # as -z defs.
15026       no_undefined_flag_F77='${wl}-z,text'
15027       allow_undefined_flag_F77='${wl}-z,nodefs'
15028       archive_cmds_need_lc_F77=no
15029       hardcode_shlibpath_var_F77=no
15030       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15031       hardcode_libdir_separator_F77=':'
15032       link_all_deplibs_F77=yes
15033       export_dynamic_flag_spec_F77='${wl}-Bexport'
15034       runpath_var='LD_RUN_PATH'
15035
15036       if test "$GCC" = yes; then
15037         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15039       else
15040         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15041         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15042       fi
15043       ;;
15044
15045     uts4*)
15046       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047       hardcode_libdir_flag_spec_F77='-L$libdir'
15048       hardcode_shlibpath_var_F77=no
15049       ;;
15050
15051     *)
15052       ld_shlibs_F77=no
15053       ;;
15054     esac
15055   fi
15056
15057 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15058 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15059 test "$ld_shlibs_F77" = no && can_build_shared=no
15060
15061 #
15062 # Do we need to explicitly link libc?
15063 #
15064 case "x$archive_cmds_need_lc_F77" in
15065 x|xyes)
15066   # Assume -lc should be added
15067   archive_cmds_need_lc_F77=yes
15068
15069   if test "$enable_shared" = yes && test "$GCC" = yes; then
15070     case $archive_cmds_F77 in
15071     *'~'*)
15072       # FIXME: we may have to deal with multi-command sequences.
15073       ;;
15074     '$CC '*)
15075       # Test whether the compiler implicitly links with -lc since on some
15076       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15077       # to ld, don't add -lc before -lgcc.
15078       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15079 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15080       $rm conftest*
15081       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15082
15083       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084   (eval $ac_compile) 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); } 2>conftest.err; then
15088         soname=conftest
15089         lib=conftest
15090         libobjs=conftest.$ac_objext
15091         deplibs=
15092         wl=$lt_prog_compiler_wl_F77
15093         pic_flag=$lt_prog_compiler_pic_F77
15094         compiler_flags=-v
15095         linker_flags=-v
15096         verstring=
15097         output_objdir=.
15098         libname=conftest
15099         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15100         allow_undefined_flag_F77=
15101         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15102   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }
15106         then
15107           archive_cmds_need_lc_F77=no
15108         else
15109           archive_cmds_need_lc_F77=yes
15110         fi
15111         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15112       else
15113         cat conftest.err 1>&5
15114       fi
15115       $rm conftest*
15116       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15117 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15118       ;;
15119     esac
15120   fi
15121   ;;
15122 esac
15123
15124 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15125 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15126 library_names_spec=
15127 libname_spec='lib$name'
15128 soname_spec=
15129 shrext_cmds=".so"
15130 postinstall_cmds=
15131 postuninstall_cmds=
15132 finish_cmds=
15133 finish_eval=
15134 shlibpath_var=
15135 shlibpath_overrides_runpath=unknown
15136 version_type=none
15137 dynamic_linker="$host_os ld.so"
15138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15139 if test "$GCC" = yes; then
15140   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15141   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15142     # if the path contains ";" then we assume it to be the separator
15143     # otherwise default to the standard path separator (i.e. ":") - it is
15144     # assumed that no part of a normal pathname contains ";" but that should
15145     # okay in the real world where ";" in dirpaths is itself problematic.
15146     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15147   else
15148     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15149   fi
15150 else
15151   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15152 fi
15153 need_lib_prefix=unknown
15154 hardcode_into_libs=no
15155
15156 # when you set need_version to no, make sure it does not cause -set_version
15157 # flags to be left without arguments
15158 need_version=unknown
15159
15160 case $host_os in
15161 aix3*)
15162   version_type=linux
15163   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15164   shlibpath_var=LIBPATH
15165
15166   # AIX 3 has no versioning support, so we append a major version to the name.
15167   soname_spec='${libname}${release}${shared_ext}$major'
15168   ;;
15169
15170 aix4* | aix5*)
15171   version_type=linux
15172   need_lib_prefix=no
15173   need_version=no
15174   hardcode_into_libs=yes
15175   if test "$host_cpu" = ia64; then
15176     # AIX 5 supports IA64
15177     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15178     shlibpath_var=LD_LIBRARY_PATH
15179   else
15180     # With GCC up to 2.95.x, collect2 would create an import file
15181     # for dependence libraries.  The import file would start with
15182     # the line `#! .'.  This would cause the generated library to
15183     # depend on `.', always an invalid library.  This was fixed in
15184     # development snapshots of GCC prior to 3.0.
15185     case $host_os in
15186       aix4 | aix4.[01] | aix4.[01].*)
15187       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15188            echo ' yes '
15189            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15190         :
15191       else
15192         can_build_shared=no
15193       fi
15194       ;;
15195     esac
15196     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15197     # soname into executable. Probably we can add versioning support to
15198     # collect2, so additional links can be useful in future.
15199     if test "$aix_use_runtimelinking" = yes; then
15200       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15201       # instead of lib<name>.a to let people know that these are not
15202       # typical AIX shared libraries.
15203       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204     else
15205       # We preserve .a as extension for shared libraries through AIX4.2
15206       # and later when we are not doing run time linking.
15207       library_names_spec='${libname}${release}.a $libname.a'
15208       soname_spec='${libname}${release}${shared_ext}$major'
15209     fi
15210     shlibpath_var=LIBPATH
15211   fi
15212   ;;
15213
15214 amigaos*)
15215   library_names_spec='$libname.ixlibrary $libname.a'
15216   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15217   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'
15218   ;;
15219
15220 beos*)
15221   library_names_spec='${libname}${shared_ext}'
15222   dynamic_linker="$host_os ld.so"
15223   shlibpath_var=LIBRARY_PATH
15224   ;;
15225
15226 bsdi[45]*)
15227   version_type=linux
15228   need_version=no
15229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230   soname_spec='${libname}${release}${shared_ext}$major'
15231   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15232   shlibpath_var=LD_LIBRARY_PATH
15233   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15234   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15235   # the default ld.so.conf also contains /usr/contrib/lib and
15236   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15237   # libtool to hard-code these into programs
15238   ;;
15239
15240 cygwin* | mingw* | pw32*)
15241   version_type=windows
15242   shrext_cmds=".dll"
15243   need_version=no
15244   need_lib_prefix=no
15245
15246   case $GCC,$host_os in
15247   yes,cygwin* | yes,mingw* | yes,pw32*)
15248     library_names_spec='$libname.dll.a'
15249     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15250     postinstall_cmds='base_file=`basename \${file}`~
15251       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15252       dldir=$destdir/`dirname \$dlpath`~
15253       test -d \$dldir || mkdir -p \$dldir~
15254       $install_prog $dir/$dlname \$dldir/$dlname~
15255       chmod a+x \$dldir/$dlname'
15256     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15257       dlpath=$dir/\$dldll~
15258        $rm \$dlpath'
15259     shlibpath_overrides_runpath=yes
15260
15261     case $host_os in
15262     cygwin*)
15263       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15264       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15265       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15266       ;;
15267     mingw*)
15268       # MinGW DLLs use traditional 'lib' prefix
15269       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15271       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15272         # It is most probably a Windows format PATH printed by
15273         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15274         # path with ; separators, and with drive letters. We can handle the
15275         # drive letters (cygwin fileutils understands them), so leave them,
15276         # especially as we might pass files found there to a mingw objdump,
15277         # which wouldn't understand a cygwinified path. Ahh.
15278         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15279       else
15280         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15281       fi
15282       ;;
15283     pw32*)
15284       # pw32 DLLs use 'pw' prefix rather than 'lib'
15285       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15286       ;;
15287     esac
15288     ;;
15289
15290   *)
15291     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15292     ;;
15293   esac
15294   dynamic_linker='Win32 ld.exe'
15295   # FIXME: first we should search . and the directory the executable is in
15296   shlibpath_var=PATH
15297   ;;
15298
15299 darwin* | rhapsody*)
15300   dynamic_linker="$host_os dyld"
15301   version_type=darwin
15302   need_lib_prefix=no
15303   need_version=no
15304   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15305   soname_spec='${libname}${release}${major}$shared_ext'
15306   shlibpath_overrides_runpath=yes
15307   shlibpath_var=DYLD_LIBRARY_PATH
15308   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15309   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15310   if test "$GCC" = yes; then
15311     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"`
15312   else
15313     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15314   fi
15315   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15316   ;;
15317
15318 dgux*)
15319   version_type=linux
15320   need_lib_prefix=no
15321   need_version=no
15322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15323   soname_spec='${libname}${release}${shared_ext}$major'
15324   shlibpath_var=LD_LIBRARY_PATH
15325   ;;
15326
15327 freebsd1*)
15328   dynamic_linker=no
15329   ;;
15330
15331 freebsd* | dragonfly*)
15332   # DragonFly does not have aout.  When/if they implement a new
15333   # versioning mechanism, adjust this.
15334   if test -x /usr/bin/objformat; then
15335     objformat=`/usr/bin/objformat`
15336   else
15337     case $host_os in
15338     freebsd[123]*) objformat=aout ;;
15339     *) objformat=elf ;;
15340     esac
15341   fi
15342   version_type=freebsd-$objformat
15343   case $version_type in
15344     freebsd-elf*)
15345       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15346       need_version=no
15347       need_lib_prefix=no
15348       ;;
15349     freebsd-*)
15350       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15351       need_version=yes
15352       ;;
15353   esac
15354   shlibpath_var=LD_LIBRARY_PATH
15355   case $host_os in
15356   freebsd2*)
15357     shlibpath_overrides_runpath=yes
15358     ;;
15359   freebsd3.[01]* | freebsdelf3.[01]*)
15360     shlibpath_overrides_runpath=yes
15361     hardcode_into_libs=yes
15362     ;;
15363   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15364   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15365     shlibpath_overrides_runpath=no
15366     hardcode_into_libs=yes
15367     ;;
15368   freebsd*) # from 4.6 on
15369     shlibpath_overrides_runpath=yes
15370     hardcode_into_libs=yes
15371     ;;
15372   esac
15373   ;;
15374
15375 gnu*)
15376   version_type=linux
15377   need_lib_prefix=no
15378   need_version=no
15379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15380   soname_spec='${libname}${release}${shared_ext}$major'
15381   shlibpath_var=LD_LIBRARY_PATH
15382   hardcode_into_libs=yes
15383   ;;
15384
15385 hpux9* | hpux10* | hpux11*)
15386   # Give a soname corresponding to the major version so that dld.sl refuses to
15387   # link against other versions.
15388   version_type=sunos
15389   need_lib_prefix=no
15390   need_version=no
15391   case $host_cpu in
15392   ia64*)
15393     shrext_cmds='.so'
15394     hardcode_into_libs=yes
15395     dynamic_linker="$host_os dld.so"
15396     shlibpath_var=LD_LIBRARY_PATH
15397     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399     soname_spec='${libname}${release}${shared_ext}$major'
15400     if test "X$HPUX_IA64_MODE" = X32; then
15401       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15402     else
15403       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15404     fi
15405     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15406     ;;
15407    hppa*64*)
15408      shrext_cmds='.sl'
15409      hardcode_into_libs=yes
15410      dynamic_linker="$host_os dld.sl"
15411      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15412      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15413      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414      soname_spec='${libname}${release}${shared_ext}$major'
15415      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15416      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15417      ;;
15418    *)
15419     shrext_cmds='.sl'
15420     dynamic_linker="$host_os dld.sl"
15421     shlibpath_var=SHLIB_PATH
15422     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424     soname_spec='${libname}${release}${shared_ext}$major'
15425     ;;
15426   esac
15427   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15428   postinstall_cmds='chmod 555 $lib'
15429   ;;
15430
15431 interix3*)
15432   version_type=linux
15433   need_lib_prefix=no
15434   need_version=no
15435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15436   soname_spec='${libname}${release}${shared_ext}$major'
15437   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15438   shlibpath_var=LD_LIBRARY_PATH
15439   shlibpath_overrides_runpath=no
15440   hardcode_into_libs=yes
15441   ;;
15442
15443 irix5* | irix6* | nonstopux*)
15444   case $host_os in
15445     nonstopux*) version_type=nonstopux ;;
15446     *)
15447         if test "$lt_cv_prog_gnu_ld" = yes; then
15448                 version_type=linux
15449         else
15450                 version_type=irix
15451         fi ;;
15452   esac
15453   need_lib_prefix=no
15454   need_version=no
15455   soname_spec='${libname}${release}${shared_ext}$major'
15456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15457   case $host_os in
15458   irix5* | nonstopux*)
15459     libsuff= shlibsuff=
15460     ;;
15461   *)
15462     case $LD in # libtool.m4 will add one of these switches to LD
15463     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15464       libsuff= shlibsuff= libmagic=32-bit;;
15465     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15466       libsuff=32 shlibsuff=N32 libmagic=N32;;
15467     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15468       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15469     *) libsuff= shlibsuff= libmagic=never-match;;
15470     esac
15471     ;;
15472   esac
15473   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15474   shlibpath_overrides_runpath=no
15475   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15476   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15477   hardcode_into_libs=yes
15478   ;;
15479
15480 # No shared lib support for Linux oldld, aout, or coff.
15481 linux*oldld* | linux*aout* | linux*coff*)
15482   dynamic_linker=no
15483   ;;
15484
15485 # This must be Linux ELF.
15486 linux* | k*bsd*-gnu)
15487   version_type=linux
15488   need_lib_prefix=no
15489   need_version=no
15490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15493   shlibpath_var=LD_LIBRARY_PATH
15494   shlibpath_overrides_runpath=no
15495   # This implies no fast_install, which is unacceptable.
15496   # Some rework will be needed to allow for fast_install
15497   # before this can be enabled.
15498   hardcode_into_libs=yes
15499
15500   # Append ld.so.conf contents to the search path
15501   if test -f /etc/ld.so.conf; then
15502     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' ' '`
15503     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15504   fi
15505
15506   # We used to test for /lib/ld.so.1 and disable shared libraries on
15507   # powerpc, because MkLinux only supported shared libraries with the
15508   # GNU dynamic linker.  Since this was broken with cross compilers,
15509   # most powerpc-linux boxes support dynamic linking these days and
15510   # people can always --disable-shared, the test was removed, and we
15511   # assume the GNU/Linux dynamic linker is in use.
15512   dynamic_linker='GNU/Linux ld.so'
15513   ;;
15514
15515 netbsdelf*-gnu)
15516   version_type=linux
15517   need_lib_prefix=no
15518   need_version=no
15519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15520   soname_spec='${libname}${release}${shared_ext}$major'
15521   shlibpath_var=LD_LIBRARY_PATH
15522   shlibpath_overrides_runpath=no
15523   hardcode_into_libs=yes
15524   dynamic_linker='NetBSD ld.elf_so'
15525   ;;
15526
15527 netbsd*)
15528   version_type=sunos
15529   need_lib_prefix=no
15530   need_version=no
15531   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15533     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15534     dynamic_linker='NetBSD (a.out) ld.so'
15535   else
15536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15537     soname_spec='${libname}${release}${shared_ext}$major'
15538     dynamic_linker='NetBSD ld.elf_so'
15539   fi
15540   shlibpath_var=LD_LIBRARY_PATH
15541   shlibpath_overrides_runpath=yes
15542   hardcode_into_libs=yes
15543   ;;
15544
15545 newsos6)
15546   version_type=linux
15547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548   shlibpath_var=LD_LIBRARY_PATH
15549   shlibpath_overrides_runpath=yes
15550   ;;
15551
15552 nto-qnx*)
15553   version_type=linux
15554   need_lib_prefix=no
15555   need_version=no
15556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557   soname_spec='${libname}${release}${shared_ext}$major'
15558   shlibpath_var=LD_LIBRARY_PATH
15559   shlibpath_overrides_runpath=yes
15560   ;;
15561
15562 openbsd*)
15563   version_type=sunos
15564   sys_lib_dlsearch_path_spec="/usr/lib"
15565   need_lib_prefix=no
15566   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15567   case $host_os in
15568     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15569     *)                         need_version=no  ;;
15570   esac
15571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15572   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15573   shlibpath_var=LD_LIBRARY_PATH
15574   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15575     case $host_os in
15576       openbsd2.[89] | openbsd2.[89].*)
15577         shlibpath_overrides_runpath=no
15578         ;;
15579       *)
15580         shlibpath_overrides_runpath=yes
15581         ;;
15582       esac
15583   else
15584     shlibpath_overrides_runpath=yes
15585   fi
15586   ;;
15587
15588 os2*)
15589   libname_spec='$name'
15590   shrext_cmds=".dll"
15591   need_lib_prefix=no
15592   library_names_spec='$libname${shared_ext} $libname.a'
15593   dynamic_linker='OS/2 ld.exe'
15594   shlibpath_var=LIBPATH
15595   ;;
15596
15597 osf3* | osf4* | osf5*)
15598   version_type=osf
15599   need_lib_prefix=no
15600   need_version=no
15601   soname_spec='${libname}${release}${shared_ext}$major'
15602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15605   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15606   ;;
15607
15608 solaris*)
15609   version_type=linux
15610   need_lib_prefix=no
15611   need_version=no
15612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613   soname_spec='${libname}${release}${shared_ext}$major'
15614   shlibpath_var=LD_LIBRARY_PATH
15615   shlibpath_overrides_runpath=yes
15616   hardcode_into_libs=yes
15617   # ldd complains unless libraries are executable
15618   postinstall_cmds='chmod +x $lib'
15619   ;;
15620
15621 sunos4*)
15622   version_type=sunos
15623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15624   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15625   shlibpath_var=LD_LIBRARY_PATH
15626   shlibpath_overrides_runpath=yes
15627   if test "$with_gnu_ld" = yes; then
15628     need_lib_prefix=no
15629   fi
15630   need_version=yes
15631   ;;
15632
15633 sysv4 | sysv4.3*)
15634   version_type=linux
15635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636   soname_spec='${libname}${release}${shared_ext}$major'
15637   shlibpath_var=LD_LIBRARY_PATH
15638   case $host_vendor in
15639     sni)
15640       shlibpath_overrides_runpath=no
15641       need_lib_prefix=no
15642       export_dynamic_flag_spec='${wl}-Blargedynsym'
15643       runpath_var=LD_RUN_PATH
15644       ;;
15645     siemens)
15646       need_lib_prefix=no
15647       ;;
15648     motorola)
15649       need_lib_prefix=no
15650       need_version=no
15651       shlibpath_overrides_runpath=no
15652       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15653       ;;
15654   esac
15655   ;;
15656
15657 sysv4*MP*)
15658   if test -d /usr/nec ;then
15659     version_type=linux
15660     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15661     soname_spec='$libname${shared_ext}.$major'
15662     shlibpath_var=LD_LIBRARY_PATH
15663   fi
15664   ;;
15665
15666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15667   version_type=freebsd-elf
15668   need_lib_prefix=no
15669   need_version=no
15670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15671   soname_spec='${libname}${release}${shared_ext}$major'
15672   shlibpath_var=LD_LIBRARY_PATH
15673   hardcode_into_libs=yes
15674   if test "$with_gnu_ld" = yes; then
15675     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15676     shlibpath_overrides_runpath=no
15677   else
15678     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15679     shlibpath_overrides_runpath=yes
15680     case $host_os in
15681       sco3.2v5*)
15682         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15683         ;;
15684     esac
15685   fi
15686   sys_lib_dlsearch_path_spec='/usr/lib'
15687   ;;
15688
15689 uts4*)
15690   version_type=linux
15691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692   soname_spec='${libname}${release}${shared_ext}$major'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   ;;
15695
15696 *)
15697   dynamic_linker=no
15698   ;;
15699 esac
15700 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15701 echo "${ECHO_T}$dynamic_linker" >&6; }
15702 test "$dynamic_linker" = no && can_build_shared=no
15703
15704 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15705 if test "$GCC" = yes; then
15706   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15707 fi
15708
15709 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15710 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15711 hardcode_action_F77=
15712 if test -n "$hardcode_libdir_flag_spec_F77" || \
15713    test -n "$runpath_var_F77" || \
15714    test "X$hardcode_automatic_F77" = "Xyes" ; then
15715
15716   # We can hardcode non-existant directories.
15717   if test "$hardcode_direct_F77" != no &&
15718      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15719      # have to relink, otherwise we might link with an installed library
15720      # when we should be linking with a yet-to-be-installed one
15721      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15722      test "$hardcode_minus_L_F77" != no; then
15723     # Linking always hardcodes the temporary library directory.
15724     hardcode_action_F77=relink
15725   else
15726     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15727     hardcode_action_F77=immediate
15728   fi
15729 else
15730   # We cannot hardcode anything, or else we can only hardcode existing
15731   # directories.
15732   hardcode_action_F77=unsupported
15733 fi
15734 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15735 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15736
15737 if test "$hardcode_action_F77" = relink; then
15738   # Fast installation is not supported
15739   enable_fast_install=no
15740 elif test "$shlibpath_overrides_runpath" = yes ||
15741      test "$enable_shared" = no; then
15742   # Fast installation is not necessary
15743   enable_fast_install=needless
15744 fi
15745
15746
15747 # The else clause should only fire when bootstrapping the
15748 # libtool distribution, otherwise you forgot to ship ltmain.sh
15749 # with your package, and you will get complaints that there are
15750 # no rules to generate ltmain.sh.
15751 if test -f "$ltmain"; then
15752   # See if we are running on zsh, and set the options which allow our commands through
15753   # without removal of \ escapes.
15754   if test -n "${ZSH_VERSION+set}" ; then
15755     setopt NO_GLOB_SUBST
15756   fi
15757   # Now quote all the things that may contain metacharacters while being
15758   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15759   # variables and quote the copies for generation of the libtool script.
15760   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15761     SED SHELL STRIP \
15762     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15763     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15764     deplibs_check_method reload_flag reload_cmds need_locks \
15765     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15766     lt_cv_sys_global_symbol_to_c_name_address \
15767     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15768     old_postinstall_cmds old_postuninstall_cmds \
15769     compiler_F77 \
15770     CC_F77 \
15771     LD_F77 \
15772     lt_prog_compiler_wl_F77 \
15773     lt_prog_compiler_pic_F77 \
15774     lt_prog_compiler_static_F77 \
15775     lt_prog_compiler_no_builtin_flag_F77 \
15776     export_dynamic_flag_spec_F77 \
15777     thread_safe_flag_spec_F77 \
15778     whole_archive_flag_spec_F77 \
15779     enable_shared_with_static_runtimes_F77 \
15780     old_archive_cmds_F77 \
15781     old_archive_from_new_cmds_F77 \
15782     predep_objects_F77 \
15783     postdep_objects_F77 \
15784     predeps_F77 \
15785     postdeps_F77 \
15786     compiler_lib_search_path_F77 \
15787     archive_cmds_F77 \
15788     archive_expsym_cmds_F77 \
15789     postinstall_cmds_F77 \
15790     postuninstall_cmds_F77 \
15791     old_archive_from_expsyms_cmds_F77 \
15792     allow_undefined_flag_F77 \
15793     no_undefined_flag_F77 \
15794     export_symbols_cmds_F77 \
15795     hardcode_libdir_flag_spec_F77 \
15796     hardcode_libdir_flag_spec_ld_F77 \
15797     hardcode_libdir_separator_F77 \
15798     hardcode_automatic_F77 \
15799     module_cmds_F77 \
15800     module_expsym_cmds_F77 \
15801     lt_cv_prog_compiler_c_o_F77 \
15802     exclude_expsyms_F77 \
15803     include_expsyms_F77; do
15804
15805     case $var in
15806     old_archive_cmds_F77 | \
15807     old_archive_from_new_cmds_F77 | \
15808     archive_cmds_F77 | \
15809     archive_expsym_cmds_F77 | \
15810     module_cmds_F77 | \
15811     module_expsym_cmds_F77 | \
15812     old_archive_from_expsyms_cmds_F77 | \
15813     export_symbols_cmds_F77 | \
15814     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15815     postinstall_cmds | postuninstall_cmds | \
15816     old_postinstall_cmds | old_postuninstall_cmds | \
15817     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15818       # Double-quote double-evaled strings.
15819       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15820       ;;
15821     *)
15822       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15823       ;;
15824     esac
15825   done
15826
15827   case $lt_echo in
15828   *'\$0 --fallback-echo"')
15829     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15830     ;;
15831   esac
15832
15833 cfgfile="$ofile"
15834
15835   cat <<__EOF__ >> "$cfgfile"
15836 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15837
15838 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15839
15840 # Shell to use when invoking shell scripts.
15841 SHELL=$lt_SHELL
15842
15843 # Whether or not to build shared libraries.
15844 build_libtool_libs=$enable_shared
15845
15846 # Whether or not to build static libraries.
15847 build_old_libs=$enable_static
15848
15849 # Whether or not to add -lc for building shared libraries.
15850 build_libtool_need_lc=$archive_cmds_need_lc_F77
15851
15852 # Whether or not to disallow shared libs when runtime libs are static
15853 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15854
15855 # Whether or not to optimize for fast installation.
15856 fast_install=$enable_fast_install
15857
15858 # The host system.
15859 host_alias=$host_alias
15860 host=$host
15861 host_os=$host_os
15862
15863 # The build system.
15864 build_alias=$build_alias
15865 build=$build
15866 build_os=$build_os
15867
15868 # An echo program that does not interpret backslashes.
15869 echo=$lt_echo
15870
15871 # The archiver.
15872 AR=$lt_AR
15873 AR_FLAGS=$lt_AR_FLAGS
15874
15875 # A C compiler.
15876 LTCC=$lt_LTCC
15877
15878 # LTCC compiler flags.
15879 LTCFLAGS=$lt_LTCFLAGS
15880
15881 # A language-specific compiler.
15882 CC=$lt_compiler_F77
15883
15884 # Is the compiler the GNU C compiler?
15885 with_gcc=$GCC_F77
15886
15887 # An ERE matcher.
15888 EGREP=$lt_EGREP
15889
15890 # The linker used to build libraries.
15891 LD=$lt_LD_F77
15892
15893 # Whether we need hard or soft links.
15894 LN_S=$lt_LN_S
15895
15896 # A BSD-compatible nm program.
15897 NM=$lt_NM
15898
15899 # A symbol stripping program
15900 STRIP=$lt_STRIP
15901
15902 # Used to examine libraries when file_magic_cmd begins "file"
15903 MAGIC_CMD=$MAGIC_CMD
15904
15905 # Used on cygwin: DLL creation program.
15906 DLLTOOL="$DLLTOOL"
15907
15908 # Used on cygwin: object dumper.
15909 OBJDUMP="$OBJDUMP"
15910
15911 # Used on cygwin: assembler.
15912 AS="$AS"
15913
15914 # The name of the directory that contains temporary libtool files.
15915 objdir=$objdir
15916
15917 # How to create reloadable object files.
15918 reload_flag=$lt_reload_flag
15919 reload_cmds=$lt_reload_cmds
15920
15921 # How to pass a linker flag through the compiler.
15922 wl=$lt_lt_prog_compiler_wl_F77
15923
15924 # Object file suffix (normally "o").
15925 objext="$ac_objext"
15926
15927 # Old archive suffix (normally "a").
15928 libext="$libext"
15929
15930 # Shared library suffix (normally ".so").
15931 shrext_cmds='$shrext_cmds'
15932
15933 # Executable file suffix (normally "").
15934 exeext="$exeext"
15935
15936 # Additional compiler flags for building library objects.
15937 pic_flag=$lt_lt_prog_compiler_pic_F77
15938 pic_mode=$pic_mode
15939
15940 # What is the maximum length of a command?
15941 max_cmd_len=$lt_cv_sys_max_cmd_len
15942
15943 # Does compiler simultaneously support -c and -o options?
15944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15945
15946 # Must we lock files when doing compilation?
15947 need_locks=$lt_need_locks
15948
15949 # Do we need the lib prefix for modules?
15950 need_lib_prefix=$need_lib_prefix
15951
15952 # Do we need a version for libraries?
15953 need_version=$need_version
15954
15955 # Whether dlopen is supported.
15956 dlopen_support=$enable_dlopen
15957
15958 # Whether dlopen of programs is supported.
15959 dlopen_self=$enable_dlopen_self
15960
15961 # Whether dlopen of statically linked programs is supported.
15962 dlopen_self_static=$enable_dlopen_self_static
15963
15964 # Compiler flag to prevent dynamic linking.
15965 link_static_flag=$lt_lt_prog_compiler_static_F77
15966
15967 # Compiler flag to turn off builtin functions.
15968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15969
15970 # Compiler flag to allow reflexive dlopens.
15971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15972
15973 # Compiler flag to generate shared objects directly from archives.
15974 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15975
15976 # Compiler flag to generate thread-safe objects.
15977 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15978
15979 # Library versioning type.
15980 version_type=$version_type
15981
15982 # Format of library name prefix.
15983 libname_spec=$lt_libname_spec
15984
15985 # List of archive names.  First name is the real one, the rest are links.
15986 # The last name is the one that the linker finds with -lNAME.
15987 library_names_spec=$lt_library_names_spec
15988
15989 # The coded name of the library, if different from the real name.
15990 soname_spec=$lt_soname_spec
15991
15992 # Commands used to build and install an old-style archive.
15993 RANLIB=$lt_RANLIB
15994 old_archive_cmds=$lt_old_archive_cmds_F77
15995 old_postinstall_cmds=$lt_old_postinstall_cmds
15996 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15997
15998 # Create an old-style archive from a shared archive.
15999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16000
16001 # Create a temporary old-style archive to link instead of a shared archive.
16002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16003
16004 # Commands used to build and install a shared archive.
16005 archive_cmds=$lt_archive_cmds_F77
16006 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16007 postinstall_cmds=$lt_postinstall_cmds
16008 postuninstall_cmds=$lt_postuninstall_cmds
16009
16010 # Commands used to build a loadable module (assumed same as above if empty)
16011 module_cmds=$lt_module_cmds_F77
16012 module_expsym_cmds=$lt_module_expsym_cmds_F77
16013
16014 # Commands to strip libraries.
16015 old_striplib=$lt_old_striplib
16016 striplib=$lt_striplib
16017
16018 # Dependencies to place before the objects being linked to create a
16019 # shared library.
16020 predep_objects=$lt_predep_objects_F77
16021
16022 # Dependencies to place after the objects being linked to create a
16023 # shared library.
16024 postdep_objects=$lt_postdep_objects_F77
16025
16026 # Dependencies to place before the objects being linked to create a
16027 # shared library.
16028 predeps=$lt_predeps_F77
16029
16030 # Dependencies to place after the objects being linked to create a
16031 # shared library.
16032 postdeps=$lt_postdeps_F77
16033
16034 # The library search path used internally by the compiler when linking
16035 # a shared library.
16036 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16037
16038 # Method to check whether dependent libraries are shared objects.
16039 deplibs_check_method=$lt_deplibs_check_method
16040
16041 # Command to use when deplibs_check_method == file_magic.
16042 file_magic_cmd=$lt_file_magic_cmd
16043
16044 # Flag that allows shared libraries with undefined symbols to be built.
16045 allow_undefined_flag=$lt_allow_undefined_flag_F77
16046
16047 # Flag that forces no undefined symbols.
16048 no_undefined_flag=$lt_no_undefined_flag_F77
16049
16050 # Commands used to finish a libtool library installation in a directory.
16051 finish_cmds=$lt_finish_cmds
16052
16053 # Same as above, but a single script fragment to be evaled but not shown.
16054 finish_eval=$lt_finish_eval
16055
16056 # Take the output of nm and produce a listing of raw symbols and C names.
16057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16058
16059 # Transform the output of nm in a proper C declaration
16060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16061
16062 # Transform the output of nm in a C name address pair
16063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16064
16065 # This is the shared library runtime path variable.
16066 runpath_var=$runpath_var
16067
16068 # This is the shared library path variable.
16069 shlibpath_var=$shlibpath_var
16070
16071 # Is shlibpath searched before the hard-coded library search path?
16072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16073
16074 # How to hardcode a shared library path into an executable.
16075 hardcode_action=$hardcode_action_F77
16076
16077 # Whether we should hardcode library paths into libraries.
16078 hardcode_into_libs=$hardcode_into_libs
16079
16080 # Flag to hardcode \$libdir into a binary during linking.
16081 # This must work even if \$libdir does not exist.
16082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16083
16084 # If ld is used when linking, flag to hardcode \$libdir into
16085 # a binary during linking. This must work even if \$libdir does
16086 # not exist.
16087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16088
16089 # Whether we need a single -rpath flag with a separated argument.
16090 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16091
16092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16093 # resulting binary.
16094 hardcode_direct=$hardcode_direct_F77
16095
16096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16097 # resulting binary.
16098 hardcode_minus_L=$hardcode_minus_L_F77
16099
16100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16101 # the resulting binary.
16102 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16103
16104 # Set to yes if building a shared library automatically hardcodes DIR into the library
16105 # and all subsequent libraries and executables linked against it.
16106 hardcode_automatic=$hardcode_automatic_F77
16107
16108 # Variables whose values should be saved in libtool wrapper scripts and
16109 # restored at relink time.
16110 variables_saved_for_relink="$variables_saved_for_relink"
16111
16112 # Whether libtool must link a program against all its dependency libraries.
16113 link_all_deplibs=$link_all_deplibs_F77
16114
16115 # Compile-time system search path for libraries
16116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16117
16118 # Run-time system search path for libraries
16119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16120
16121 # Fix the shell variable \$srcfile for the compiler.
16122 fix_srcfile_path="$fix_srcfile_path_F77"
16123
16124 # Set to yes if exported symbols are required.
16125 always_export_symbols=$always_export_symbols_F77
16126
16127 # The commands to list exported symbols.
16128 export_symbols_cmds=$lt_export_symbols_cmds_F77
16129
16130 # The commands to extract the exported symbol list from a shared archive.
16131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16132
16133 # Symbols that should not be listed in the preloaded symbols.
16134 exclude_expsyms=$lt_exclude_expsyms_F77
16135
16136 # Symbols that must always be exported.
16137 include_expsyms=$lt_include_expsyms_F77
16138
16139 # ### END LIBTOOL TAG CONFIG: $tagname
16140
16141 __EOF__
16142
16143
16144 else
16145   # If there is no Makefile yet, we rely on a make rule to execute
16146   # `config.status --recheck' to rerun these tests and create the
16147   # libtool script then.
16148   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16149   if test -f "$ltmain_in"; then
16150     test -f Makefile && make "$ltmain"
16151   fi
16152 fi
16153
16154
16155 ac_ext=c
16156 ac_cpp='$CPP $CPPFLAGS'
16157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16160
16161 CC="$lt_save_CC"
16162
16163         else
16164           tagname=""
16165         fi
16166         ;;
16167
16168       GCJ)
16169         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16170
16171
16172 # Source file extension for Java test sources.
16173 ac_ext=java
16174
16175 # Object file extension for compiled Java test sources.
16176 objext=o
16177 objext_GCJ=$objext
16178
16179 # Code to be used in simple compile tests
16180 lt_simple_compile_test_code="class foo {}\n"
16181
16182 # Code to be used in simple link tests
16183 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16184
16185 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16186
16187 # If no C compiler was specified, use CC.
16188 LTCC=${LTCC-"$CC"}
16189
16190 # If no C compiler flags were specified, use CFLAGS.
16191 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16192
16193 # Allow CC to be a program name with arguments.
16194 compiler=$CC
16195
16196
16197 # save warnings/boilerplate of simple test code
16198 ac_outfile=conftest.$ac_objext
16199 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16201 _lt_compiler_boilerplate=`cat conftest.err`
16202 $rm conftest*
16203
16204 ac_outfile=conftest.$ac_objext
16205 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16207 _lt_linker_boilerplate=`cat conftest.err`
16208 $rm conftest*
16209
16210
16211 # Allow CC to be a program name with arguments.
16212 lt_save_CC="$CC"
16213 CC=${GCJ-"gcj"}
16214 compiler=$CC
16215 compiler_GCJ=$CC
16216 for cc_temp in $compiler""; do
16217   case $cc_temp in
16218     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16219     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16220     \-*) ;;
16221     *) break;;
16222   esac
16223 done
16224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16225
16226
16227 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16228 archive_cmds_need_lc_GCJ=no
16229
16230 old_archive_cmds_GCJ=$old_archive_cmds
16231
16232
16233 lt_prog_compiler_no_builtin_flag_GCJ=
16234
16235 if test "$GCC" = yes; then
16236   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16237
16238
16239 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16240 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16241 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16242   echo $ECHO_N "(cached) $ECHO_C" >&6
16243 else
16244   lt_cv_prog_compiler_rtti_exceptions=no
16245   ac_outfile=conftest.$ac_objext
16246    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16247    lt_compiler_flag="-fno-rtti -fno-exceptions"
16248    # Insert the option either (1) after the last *FLAGS variable, or
16249    # (2) before a word containing "conftest.", or (3) at the end.
16250    # Note that $ac_compile itself does not contain backslashes and begins
16251    # with a dollar sign (not a hyphen), so the echo should work correctly.
16252    # The option is referenced via a variable to avoid confusing sed.
16253    lt_compile=`echo "$ac_compile" | $SED \
16254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16256    -e 's:$: $lt_compiler_flag:'`
16257    (eval echo "\"\$as_me:16257: $lt_compile\"" >&5)
16258    (eval "$lt_compile" 2>conftest.err)
16259    ac_status=$?
16260    cat conftest.err >&5
16261    echo "$as_me:16261: \$? = $ac_status" >&5
16262    if (exit $ac_status) && test -s "$ac_outfile"; then
16263      # The compiler can only warn and ignore the option if not recognized
16264      # So say no if there are warnings other than the usual output.
16265      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16266      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16267      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16268        lt_cv_prog_compiler_rtti_exceptions=yes
16269      fi
16270    fi
16271    $rm conftest*
16272
16273 fi
16274 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16275 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16276
16277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16278     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16279 else
16280     :
16281 fi
16282
16283 fi
16284
16285 lt_prog_compiler_wl_GCJ=
16286 lt_prog_compiler_pic_GCJ=
16287 lt_prog_compiler_static_GCJ=
16288
16289 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16290 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16291
16292   if test "$GCC" = yes; then
16293     lt_prog_compiler_wl_GCJ='-Wl,'
16294     lt_prog_compiler_static_GCJ='-static'
16295
16296     case $host_os in
16297       aix*)
16298       # All AIX code is PIC.
16299       if test "$host_cpu" = ia64; then
16300         # AIX 5 now supports IA64 processor
16301         lt_prog_compiler_static_GCJ='-Bstatic'
16302       fi
16303       ;;
16304
16305     amigaos*)
16306       # FIXME: we need at least 68020 code to build shared libraries, but
16307       # adding the `-m68020' flag to GCC prevents building anything better,
16308       # like `-m68040'.
16309       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16310       ;;
16311
16312     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16313       # PIC is the default for these OSes.
16314       ;;
16315
16316     mingw* | pw32* | os2*)
16317       # This hack is so that the source file can tell whether it is being
16318       # built for inclusion in a dll (and should export symbols for example).
16319       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16320       ;;
16321
16322     darwin* | rhapsody*)
16323       # PIC is the default on this platform
16324       # Common symbols not allowed in MH_DYLIB files
16325       lt_prog_compiler_pic_GCJ='-fno-common'
16326       ;;
16327
16328     interix3*)
16329       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16330       # Instead, we relocate shared libraries at runtime.
16331       ;;
16332
16333     msdosdjgpp*)
16334       # Just because we use GCC doesn't mean we suddenly get shared libraries
16335       # on systems that don't support them.
16336       lt_prog_compiler_can_build_shared_GCJ=no
16337       enable_shared=no
16338       ;;
16339
16340     sysv4*MP*)
16341       if test -d /usr/nec; then
16342         lt_prog_compiler_pic_GCJ=-Kconform_pic
16343       fi
16344       ;;
16345
16346     hpux*)
16347       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16348       # not for PA HP-UX.
16349       case $host_cpu in
16350       hppa*64*|ia64*)
16351         # +Z the default
16352         ;;
16353       *)
16354         lt_prog_compiler_pic_GCJ='-fPIC'
16355         ;;
16356       esac
16357       ;;
16358
16359     *)
16360       lt_prog_compiler_pic_GCJ='-fPIC'
16361       ;;
16362     esac
16363   else
16364     # PORTME Check for flag to pass linker flags through the system compiler.
16365     case $host_os in
16366     aix*)
16367       lt_prog_compiler_wl_GCJ='-Wl,'
16368       if test "$host_cpu" = ia64; then
16369         # AIX 5 now supports IA64 processor
16370         lt_prog_compiler_static_GCJ='-Bstatic'
16371       else
16372         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16373       fi
16374       ;;
16375       darwin*)
16376         # PIC is the default on this platform
16377         # Common symbols not allowed in MH_DYLIB files
16378        case $cc_basename in
16379          xlc*)
16380          lt_prog_compiler_pic_GCJ='-qnocommon'
16381          lt_prog_compiler_wl_GCJ='-Wl,'
16382          ;;
16383        esac
16384        ;;
16385
16386     mingw* | pw32* | os2*)
16387       # This hack is so that the source file can tell whether it is being
16388       # built for inclusion in a dll (and should export symbols for example).
16389       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16390       ;;
16391
16392     hpux9* | hpux10* | hpux11*)
16393       lt_prog_compiler_wl_GCJ='-Wl,'
16394       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16395       # not for PA HP-UX.
16396       case $host_cpu in
16397       hppa*64*|ia64*)
16398         # +Z the default
16399         ;;
16400       *)
16401         lt_prog_compiler_pic_GCJ='+Z'
16402         ;;
16403       esac
16404       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16405       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16406       ;;
16407
16408     irix5* | irix6* | nonstopux*)
16409       lt_prog_compiler_wl_GCJ='-Wl,'
16410       # PIC (with -KPIC) is the default.
16411       lt_prog_compiler_static_GCJ='-non_shared'
16412       ;;
16413
16414     newsos6)
16415       lt_prog_compiler_pic_GCJ='-KPIC'
16416       lt_prog_compiler_static_GCJ='-Bstatic'
16417       ;;
16418
16419     linux* | k*bsd*-gnu)
16420       case $cc_basename in
16421       icc* | ecc*)
16422         lt_prog_compiler_wl_GCJ='-Wl,'
16423         lt_prog_compiler_pic_GCJ='-KPIC'
16424         lt_prog_compiler_static_GCJ='-static'
16425         ;;
16426       pgcc* | pgf77* | pgf90* | pgf95*)
16427         # Portland Group compilers (*not* the Pentium gcc compiler,
16428         # which looks to be a dead project)
16429         lt_prog_compiler_wl_GCJ='-Wl,'
16430         lt_prog_compiler_pic_GCJ='-fpic'
16431         lt_prog_compiler_static_GCJ='-Bstatic'
16432         ;;
16433       ccc*)
16434         lt_prog_compiler_wl_GCJ='-Wl,'
16435         # All Alpha code is PIC.
16436         lt_prog_compiler_static_GCJ='-non_shared'
16437         ;;
16438       esac
16439       ;;
16440
16441     osf3* | osf4* | osf5*)
16442       lt_prog_compiler_wl_GCJ='-Wl,'
16443       # All OSF/1 code is PIC.
16444       lt_prog_compiler_static_GCJ='-non_shared'
16445       ;;
16446
16447     solaris*)
16448       lt_prog_compiler_pic_GCJ='-KPIC'
16449       lt_prog_compiler_static_GCJ='-Bstatic'
16450       case $cc_basename in
16451       f77* | f90* | f95*)
16452         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16453       *)
16454         lt_prog_compiler_wl_GCJ='-Wl,';;
16455       esac
16456       ;;
16457
16458     sunos4*)
16459       lt_prog_compiler_wl_GCJ='-Qoption ld '
16460       lt_prog_compiler_pic_GCJ='-PIC'
16461       lt_prog_compiler_static_GCJ='-Bstatic'
16462       ;;
16463
16464     sysv4 | sysv4.2uw2* | sysv4.3*)
16465       lt_prog_compiler_wl_GCJ='-Wl,'
16466       lt_prog_compiler_pic_GCJ='-KPIC'
16467       lt_prog_compiler_static_GCJ='-Bstatic'
16468       ;;
16469
16470     sysv4*MP*)
16471       if test -d /usr/nec ;then
16472         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16473         lt_prog_compiler_static_GCJ='-Bstatic'
16474       fi
16475       ;;
16476
16477     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16478       lt_prog_compiler_wl_GCJ='-Wl,'
16479       lt_prog_compiler_pic_GCJ='-KPIC'
16480       lt_prog_compiler_static_GCJ='-Bstatic'
16481       ;;
16482
16483     unicos*)
16484       lt_prog_compiler_wl_GCJ='-Wl,'
16485       lt_prog_compiler_can_build_shared_GCJ=no
16486       ;;
16487
16488     uts4*)
16489       lt_prog_compiler_pic_GCJ='-pic'
16490       lt_prog_compiler_static_GCJ='-Bstatic'
16491       ;;
16492
16493     *)
16494       lt_prog_compiler_can_build_shared_GCJ=no
16495       ;;
16496     esac
16497   fi
16498
16499 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16500 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16501
16502 #
16503 # Check to make sure the PIC flag actually works.
16504 #
16505 if test -n "$lt_prog_compiler_pic_GCJ"; then
16506
16507 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16508 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16509 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16510   echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512   lt_prog_compiler_pic_works_GCJ=no
16513   ac_outfile=conftest.$ac_objext
16514    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16515    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16516    # Insert the option either (1) after the last *FLAGS variable, or
16517    # (2) before a word containing "conftest.", or (3) at the end.
16518    # Note that $ac_compile itself does not contain backslashes and begins
16519    # with a dollar sign (not a hyphen), so the echo should work correctly.
16520    # The option is referenced via a variable to avoid confusing sed.
16521    lt_compile=`echo "$ac_compile" | $SED \
16522    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16523    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16524    -e 's:$: $lt_compiler_flag:'`
16525    (eval echo "\"\$as_me:16525: $lt_compile\"" >&5)
16526    (eval "$lt_compile" 2>conftest.err)
16527    ac_status=$?
16528    cat conftest.err >&5
16529    echo "$as_me:16529: \$? = $ac_status" >&5
16530    if (exit $ac_status) && test -s "$ac_outfile"; then
16531      # The compiler can only warn and ignore the option if not recognized
16532      # So say no if there are warnings other than the usual output.
16533      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16534      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16535      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16536        lt_prog_compiler_pic_works_GCJ=yes
16537      fi
16538    fi
16539    $rm conftest*
16540
16541 fi
16542 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16543 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16544
16545 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16546     case $lt_prog_compiler_pic_GCJ in
16547      "" | " "*) ;;
16548      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16549      esac
16550 else
16551     lt_prog_compiler_pic_GCJ=
16552      lt_prog_compiler_can_build_shared_GCJ=no
16553 fi
16554
16555 fi
16556 case $host_os in
16557   # For platforms which do not support PIC, -DPIC is meaningless:
16558   *djgpp*)
16559     lt_prog_compiler_pic_GCJ=
16560     ;;
16561   *)
16562     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16563     ;;
16564 esac
16565
16566 #
16567 # Check to make sure the static flag actually works.
16568 #
16569 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16570 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16571 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16572 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16573   echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575   lt_prog_compiler_static_works_GCJ=no
16576    save_LDFLAGS="$LDFLAGS"
16577    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16578    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16579    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16580      # The linker can only warn and ignore the option if not recognized
16581      # So say no if there are warnings
16582      if test -s conftest.err; then
16583        # Append any errors to the config.log.
16584        cat conftest.err 1>&5
16585        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16586        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16587        if diff conftest.exp conftest.er2 >/dev/null; then
16588          lt_prog_compiler_static_works_GCJ=yes
16589        fi
16590      else
16591        lt_prog_compiler_static_works_GCJ=yes
16592      fi
16593    fi
16594    $rm conftest*
16595    LDFLAGS="$save_LDFLAGS"
16596
16597 fi
16598 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16599 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16600
16601 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16602     :
16603 else
16604     lt_prog_compiler_static_GCJ=
16605 fi
16606
16607
16608 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16609 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16610 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16611   echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613   lt_cv_prog_compiler_c_o_GCJ=no
16614    $rm -r conftest 2>/dev/null
16615    mkdir conftest
16616    cd conftest
16617    mkdir out
16618    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16619
16620    lt_compiler_flag="-o out/conftest2.$ac_objext"
16621    # Insert the option either (1) after the last *FLAGS variable, or
16622    # (2) before a word containing "conftest.", or (3) at the end.
16623    # Note that $ac_compile itself does not contain backslashes and begins
16624    # with a dollar sign (not a hyphen), so the echo should work correctly.
16625    lt_compile=`echo "$ac_compile" | $SED \
16626    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16627    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16628    -e 's:$: $lt_compiler_flag:'`
16629    (eval echo "\"\$as_me:16629: $lt_compile\"" >&5)
16630    (eval "$lt_compile" 2>out/conftest.err)
16631    ac_status=$?
16632    cat out/conftest.err >&5
16633    echo "$as_me:16633: \$? = $ac_status" >&5
16634    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16635    then
16636      # The compiler can only warn and ignore the option if not recognized
16637      # So say no if there are warnings
16638      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16639      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16640      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16641        lt_cv_prog_compiler_c_o_GCJ=yes
16642      fi
16643    fi
16644    chmod u+w . 2>&5
16645    $rm conftest*
16646    # SGI C++ compiler will create directory out/ii_files/ for
16647    # template instantiation
16648    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16649    $rm out/* && rmdir out
16650    cd ..
16651    rmdir conftest
16652    $rm conftest*
16653
16654 fi
16655 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16656 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16657
16658
16659 hard_links="nottested"
16660 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16661   # do not overwrite the value of need_locks provided by the user
16662   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16663 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16664   hard_links=yes
16665   $rm conftest*
16666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16667   touch conftest.a
16668   ln conftest.a conftest.b 2>&5 || hard_links=no
16669   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16670   { echo "$as_me:$LINENO: result: $hard_links" >&5
16671 echo "${ECHO_T}$hard_links" >&6; }
16672   if test "$hard_links" = no; then
16673     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16674 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16675     need_locks=warn
16676   fi
16677 else
16678   need_locks=no
16679 fi
16680
16681 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16682 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16683
16684   runpath_var=
16685   allow_undefined_flag_GCJ=
16686   enable_shared_with_static_runtimes_GCJ=no
16687   archive_cmds_GCJ=
16688   archive_expsym_cmds_GCJ=
16689   old_archive_From_new_cmds_GCJ=
16690   old_archive_from_expsyms_cmds_GCJ=
16691   export_dynamic_flag_spec_GCJ=
16692   whole_archive_flag_spec_GCJ=
16693   thread_safe_flag_spec_GCJ=
16694   hardcode_libdir_flag_spec_GCJ=
16695   hardcode_libdir_flag_spec_ld_GCJ=
16696   hardcode_libdir_separator_GCJ=
16697   hardcode_direct_GCJ=no
16698   hardcode_minus_L_GCJ=no
16699   hardcode_shlibpath_var_GCJ=unsupported
16700   link_all_deplibs_GCJ=unknown
16701   hardcode_automatic_GCJ=no
16702   module_cmds_GCJ=
16703   module_expsym_cmds_GCJ=
16704   always_export_symbols_GCJ=no
16705   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16706   # include_expsyms should be a list of space-separated symbols to be *always*
16707   # included in the symbol list
16708   include_expsyms_GCJ=
16709   # exclude_expsyms can be an extended regexp of symbols to exclude
16710   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16711   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16712   # as well as any symbol that contains `d'.
16713   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16714   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16715   # platforms (ab)use it in PIC code, but their linkers get confused if
16716   # the symbol is explicitly referenced.  Since portable code cannot
16717   # rely on this symbol name, it's probably fine to never include it in
16718   # preloaded symbol tables.
16719   extract_expsyms_cmds=
16720   # Just being paranoid about ensuring that cc_basename is set.
16721   for cc_temp in $compiler""; do
16722   case $cc_temp in
16723     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16724     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16725     \-*) ;;
16726     *) break;;
16727   esac
16728 done
16729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16730
16731   case $host_os in
16732   cygwin* | mingw* | pw32*)
16733     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16734     # When not using gcc, we currently assume that we are using
16735     # Microsoft Visual C++.
16736     if test "$GCC" != yes; then
16737       with_gnu_ld=no
16738     fi
16739     ;;
16740   interix*)
16741     # we just hope/assume this is gcc and not c89 (= MSVC++)
16742     with_gnu_ld=yes
16743     ;;
16744   openbsd*)
16745     with_gnu_ld=no
16746     ;;
16747   esac
16748
16749   ld_shlibs_GCJ=yes
16750   if test "$with_gnu_ld" = yes; then
16751     # If archive_cmds runs LD, not CC, wlarc should be empty
16752     wlarc='${wl}'
16753
16754     # Set some defaults for GNU ld with shared library support. These
16755     # are reset later if shared libraries are not supported. Putting them
16756     # here allows them to be overridden if necessary.
16757     runpath_var=LD_RUN_PATH
16758     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16759     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16760     # ancient GNU ld didn't support --whole-archive et. al.
16761     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16762         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16763       else
16764         whole_archive_flag_spec_GCJ=
16765     fi
16766     supports_anon_versioning=no
16767     case `$LD -v 2>/dev/null` in
16768       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16769       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16770       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16771       *\ 2.11.*) ;; # other 2.11 versions
16772       *) supports_anon_versioning=yes ;;
16773     esac
16774
16775     # See if GNU ld supports shared libraries.
16776     case $host_os in
16777     aix3* | aix4* | aix5*)
16778       # On AIX/PPC, the GNU linker is very broken
16779       if test "$host_cpu" != ia64; then
16780         ld_shlibs_GCJ=no
16781         cat <<EOF 1>&2
16782
16783 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16784 *** to be unable to reliably create shared libraries on AIX.
16785 *** Therefore, libtool is disabling shared libraries support.  If you
16786 *** really care for shared libraries, you may want to modify your PATH
16787 *** so that a non-GNU linker is found, and then restart.
16788
16789 EOF
16790       fi
16791       ;;
16792
16793     amigaos*)
16794       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)'
16795       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16796       hardcode_minus_L_GCJ=yes
16797
16798       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16799       # that the semantics of dynamic libraries on AmigaOS, at least up
16800       # to version 4, is to share data among multiple programs linked
16801       # with the same dynamic library.  Since this doesn't match the
16802       # behavior of shared libraries on other platforms, we can't use
16803       # them.
16804       ld_shlibs_GCJ=no
16805       ;;
16806
16807     beos*)
16808       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16809         allow_undefined_flag_GCJ=unsupported
16810         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16811         # support --undefined.  This deserves some investigation.  FIXME
16812         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16813       else
16814         ld_shlibs_GCJ=no
16815       fi
16816       ;;
16817
16818     cygwin* | mingw* | pw32*)
16819       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16820       # as there is no search path for DLLs.
16821       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16822       allow_undefined_flag_GCJ=unsupported
16823       always_export_symbols_GCJ=no
16824       enable_shared_with_static_runtimes_GCJ=yes
16825       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16826
16827       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16828         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16829         # If the export-symbols file already is a .def file (1st line
16830         # is EXPORTS), use it as is; otherwise, prepend...
16831         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16832           cp $export_symbols $output_objdir/$soname.def;
16833         else
16834           echo EXPORTS > $output_objdir/$soname.def;
16835           cat $export_symbols >> $output_objdir/$soname.def;
16836         fi~
16837         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16838       else
16839         ld_shlibs_GCJ=no
16840       fi
16841       ;;
16842
16843     interix3*)
16844       hardcode_direct_GCJ=no
16845       hardcode_shlibpath_var_GCJ=no
16846       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16847       export_dynamic_flag_spec_GCJ='${wl}-E'
16848       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16849       # Instead, shared libraries are loaded at an image base (0x10000000 by
16850       # default) and relocated if they conflict, which is a slow very memory
16851       # consuming and fragmenting process.  To avoid this, we pick a random,
16852       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16853       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16854       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'
16855       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'
16856       ;;
16857
16858     linux* | k*bsd*-gnu)
16859       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16860         tmp_addflag=
16861         case $cc_basename,$host_cpu in
16862         pgcc*)                          # Portland Group C compiler
16863           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'
16864           tmp_addflag=' $pic_flag'
16865           ;;
16866         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16867           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'
16868           tmp_addflag=' $pic_flag -Mnomain' ;;
16869         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16870           tmp_addflag=' -i_dynamic' ;;
16871         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16872           tmp_addflag=' -i_dynamic -nofor_main' ;;
16873         ifc* | ifort*)                  # Intel Fortran compiler
16874           tmp_addflag=' -nofor_main' ;;
16875         esac
16876         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16877
16878         if test $supports_anon_versioning = yes; then
16879           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16880   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16881   $echo "local: *; };" >> $output_objdir/$libname.ver~
16882           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16883         fi
16884         link_all_deplibs_GCJ=no
16885       else
16886         ld_shlibs_GCJ=no
16887       fi
16888       ;;
16889
16890     netbsd* | netbsdelf*-gnu)
16891       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16892         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16893         wlarc=
16894       else
16895         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16896         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16897       fi
16898       ;;
16899
16900     solaris*)
16901       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16902         ld_shlibs_GCJ=no
16903         cat <<EOF 1>&2
16904
16905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16906 *** create shared libraries on Solaris systems.  Therefore, libtool
16907 *** is disabling shared libraries support.  We urge you to upgrade GNU
16908 *** binutils to release 2.9.1 or newer.  Another option is to modify
16909 *** your PATH or compiler configuration so that the native linker is
16910 *** used, and then restart.
16911
16912 EOF
16913       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16914         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16916       else
16917         ld_shlibs_GCJ=no
16918       fi
16919       ;;
16920
16921     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16922       case `$LD -v 2>&1` in
16923         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16924         ld_shlibs_GCJ=no
16925         cat <<_LT_EOF 1>&2
16926
16927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16928 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16929 *** is disabling shared libraries support.  We urge you to upgrade GNU
16930 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16931 *** your PATH or compiler configuration so that the native linker is
16932 *** used, and then restart.
16933
16934 _LT_EOF
16935         ;;
16936         *)
16937           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16938             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16939             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16940             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16941           else
16942             ld_shlibs_GCJ=no
16943           fi
16944         ;;
16945       esac
16946       ;;
16947
16948     sunos4*)
16949       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16950       wlarc=
16951       hardcode_direct_GCJ=yes
16952       hardcode_shlibpath_var_GCJ=no
16953       ;;
16954
16955     *)
16956       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16957         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16959       else
16960         ld_shlibs_GCJ=no
16961       fi
16962       ;;
16963     esac
16964
16965     if test "$ld_shlibs_GCJ" = no; then
16966       runpath_var=
16967       hardcode_libdir_flag_spec_GCJ=
16968       export_dynamic_flag_spec_GCJ=
16969       whole_archive_flag_spec_GCJ=
16970     fi
16971   else
16972     # PORTME fill in a description of your system's linker (not GNU ld)
16973     case $host_os in
16974     aix3*)
16975       allow_undefined_flag_GCJ=unsupported
16976       always_export_symbols_GCJ=yes
16977       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'
16978       # Note: this linker hardcodes the directories in LIBPATH if there
16979       # are no directories specified by -L.
16980       hardcode_minus_L_GCJ=yes
16981       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16982         # Neither direct hardcoding nor static linking is supported with a
16983         # broken collect2.
16984         hardcode_direct_GCJ=unsupported
16985       fi
16986       ;;
16987
16988     aix4* | aix5*)
16989       if test "$host_cpu" = ia64; then
16990         # On IA64, the linker does run time linking by default, so we don't
16991         # have to do anything special.
16992         aix_use_runtimelinking=no
16993         exp_sym_flag='-Bexport'
16994         no_entry_flag=""
16995       else
16996         # If we're using GNU nm, then we don't want the "-C" option.
16997         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16998         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16999           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'
17000         else
17001           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'
17002         fi
17003         aix_use_runtimelinking=no
17004
17005         # Test if we are trying to use run time linking or normal
17006         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17007         # need to do runtime linking.
17008         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17009           for ld_flag in $LDFLAGS; do
17010           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17011             aix_use_runtimelinking=yes
17012             break
17013           fi
17014           done
17015           ;;
17016         esac
17017
17018         exp_sym_flag='-bexport'
17019         no_entry_flag='-bnoentry'
17020       fi
17021
17022       # When large executables or shared objects are built, AIX ld can
17023       # have problems creating the table of contents.  If linking a library
17024       # or program results in "error TOC overflow" add -mminimal-toc to
17025       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17026       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17027
17028       archive_cmds_GCJ=''
17029       hardcode_direct_GCJ=yes
17030       hardcode_libdir_separator_GCJ=':'
17031       link_all_deplibs_GCJ=yes
17032
17033       if test "$GCC" = yes; then
17034         case $host_os in aix4.[012]|aix4.[012].*)
17035         # We only want to do this on AIX 4.2 and lower, the check
17036         # below for broken collect2 doesn't work under 4.3+
17037           collect2name=`${CC} -print-prog-name=collect2`
17038           if test -f "$collect2name" && \
17039            strings "$collect2name" | grep resolve_lib_name >/dev/null
17040           then
17041           # We have reworked collect2
17042           hardcode_direct_GCJ=yes
17043           else
17044           # We have old collect2
17045           hardcode_direct_GCJ=unsupported
17046           # It fails to find uninstalled libraries when the uninstalled
17047           # path is not listed in the libpath.  Setting hardcode_minus_L
17048           # to unsupported forces relinking
17049           hardcode_minus_L_GCJ=yes
17050           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17051           hardcode_libdir_separator_GCJ=
17052           fi
17053           ;;
17054         esac
17055         shared_flag='-shared'
17056         if test "$aix_use_runtimelinking" = yes; then
17057           shared_flag="$shared_flag "'${wl}-G'
17058         fi
17059       else
17060         # not using gcc
17061         if test "$host_cpu" = ia64; then
17062         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17063         # chokes on -Wl,-G. The following line is correct:
17064           shared_flag='-G'
17065         else
17066           if test "$aix_use_runtimelinking" = yes; then
17067             shared_flag='${wl}-G'
17068           else
17069             shared_flag='${wl}-bM:SRE'
17070           fi
17071         fi
17072       fi
17073
17074       # It seems that -bexpall does not export symbols beginning with
17075       # underscore (_), so it is better to generate a list of symbols to export.
17076       always_export_symbols_GCJ=yes
17077       if test "$aix_use_runtimelinking" = yes; then
17078         # Warning - without using the other runtime loading flags (-brtl),
17079         # -berok will link without error, but may produce a broken library.
17080         allow_undefined_flag_GCJ='-berok'
17081        # Determine the default libpath from the value encoded in an empty executable.
17082        cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h.  */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h.  */
17088
17089 int
17090 main ()
17091 {
17092
17093   ;
17094   return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101   *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104   (eval "$ac_link") 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } && {
17111          test -z "$ac_c_werror_flag" ||
17112          test ! -s conftest.err
17113        } && test -s conftest$ac_exeext &&
17114        $as_test_x conftest$ac_exeext; then
17115
17116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17117 }'`
17118 # Check for a 64-bit object if we didn't find anything.
17119 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; }
17120 }'`; fi
17121 else
17122   echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129       conftest$ac_exeext conftest.$ac_ext
17130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17131
17132        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17133         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"
17134        else
17135         if test "$host_cpu" = ia64; then
17136           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17137           allow_undefined_flag_GCJ="-z nodefs"
17138           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"
17139         else
17140          # Determine the default libpath from the value encoded in an empty executable.
17141          cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147
17148 int
17149 main ()
17150 {
17151
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (ac_try="$ac_link"
17158 case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163   (eval "$ac_link") 2>conftest.er1
17164   ac_status=$?
17165   grep -v '^ *+' conftest.er1 >conftest.err
17166   rm -f conftest.er1
17167   cat conftest.err >&5
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); } && {
17170          test -z "$ac_c_werror_flag" ||
17171          test ! -s conftest.err
17172        } && test -s conftest$ac_exeext &&
17173        $as_test_x conftest$ac_exeext; then
17174
17175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17176 }'`
17177 # Check for a 64-bit object if we didn't find anything.
17178 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; }
17179 }'`; fi
17180 else
17181   echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17183
17184
17185 fi
17186
17187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17188       conftest$ac_exeext conftest.$ac_ext
17189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17190
17191          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17192           # Warning - without using the other run time loading flags,
17193           # -berok will link without error, but may produce a broken library.
17194           no_undefined_flag_GCJ=' ${wl}-bernotok'
17195           allow_undefined_flag_GCJ=' ${wl}-berok'
17196           # Exported symbols can be pulled into shared objects from archives
17197           whole_archive_flag_spec_GCJ='$convenience'
17198           archive_cmds_need_lc_GCJ=yes
17199           # This is similar to how AIX traditionally builds its shared libraries.
17200           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'
17201         fi
17202       fi
17203       ;;
17204
17205     amigaos*)
17206       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)'
17207       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17208       hardcode_minus_L_GCJ=yes
17209       # see comment about different semantics on the GNU ld section
17210       ld_shlibs_GCJ=no
17211       ;;
17212
17213     bsdi[45]*)
17214       export_dynamic_flag_spec_GCJ=-rdynamic
17215       ;;
17216
17217     cygwin* | mingw* | pw32*)
17218       # When not using gcc, we currently assume that we are using
17219       # Microsoft Visual C++.
17220       # hardcode_libdir_flag_spec is actually meaningless, as there is
17221       # no search path for DLLs.
17222       hardcode_libdir_flag_spec_GCJ=' '
17223       allow_undefined_flag_GCJ=unsupported
17224       # Tell ltmain to make .lib files, not .a files.
17225       libext=lib
17226       # Tell ltmain to make .dll files, not .so files.
17227       shrext_cmds=".dll"
17228       # FIXME: Setting linknames here is a bad hack.
17229       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17230       # The linker will automatically build a .lib file if we build a DLL.
17231       old_archive_From_new_cmds_GCJ='true'
17232       # FIXME: Should let the user specify the lib program.
17233       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17234       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17235       enable_shared_with_static_runtimes_GCJ=yes
17236       ;;
17237
17238     darwin* | rhapsody*)
17239       case $host_os in
17240         rhapsody* | darwin1.[012])
17241          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17242          ;;
17243        *) # Darwin 1.3 on
17244          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17245            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17246          else
17247            case ${MACOSX_DEPLOYMENT_TARGET} in
17248              10.[012])
17249                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17250                ;;
17251              10.*)
17252                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17253                ;;
17254            esac
17255          fi
17256          ;;
17257       esac
17258       archive_cmds_need_lc_GCJ=no
17259       hardcode_direct_GCJ=no
17260       hardcode_automatic_GCJ=yes
17261       hardcode_shlibpath_var_GCJ=unsupported
17262       whole_archive_flag_spec_GCJ=''
17263       link_all_deplibs_GCJ=yes
17264     if test "$GCC" = yes ; then
17265         output_verbose_link_cmd='echo'
17266         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17267       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17268       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17269       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}'
17270       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}'
17271     else
17272       case $cc_basename in
17273         xlc*)
17274          output_verbose_link_cmd='echo'
17275          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17276          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17277           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17278          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}'
17279           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}'
17280           ;;
17281        *)
17282          ld_shlibs_GCJ=no
17283           ;;
17284       esac
17285     fi
17286       ;;
17287
17288     dgux*)
17289       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17290       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17291       hardcode_shlibpath_var_GCJ=no
17292       ;;
17293
17294     freebsd1*)
17295       ld_shlibs_GCJ=no
17296       ;;
17297
17298     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17299     # support.  Future versions do this automatically, but an explicit c++rt0.o
17300     # does not break anything, and helps significantly (at the cost of a little
17301     # extra space).
17302     freebsd2.2*)
17303       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17304       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17305       hardcode_direct_GCJ=yes
17306       hardcode_shlibpath_var_GCJ=no
17307       ;;
17308
17309     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17310     freebsd2*)
17311       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17312       hardcode_direct_GCJ=yes
17313       hardcode_minus_L_GCJ=yes
17314       hardcode_shlibpath_var_GCJ=no
17315       ;;
17316
17317     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17318     freebsd* | dragonfly*)
17319       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17320       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17321       hardcode_direct_GCJ=yes
17322       hardcode_shlibpath_var_GCJ=no
17323       ;;
17324
17325     hpux9*)
17326       if test "$GCC" = yes; then
17327         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'
17328       else
17329         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'
17330       fi
17331       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17332       hardcode_libdir_separator_GCJ=:
17333       hardcode_direct_GCJ=yes
17334
17335       # hardcode_minus_L: Not really in the search PATH,
17336       # but as the default location of the library.
17337       hardcode_minus_L_GCJ=yes
17338       export_dynamic_flag_spec_GCJ='${wl}-E'
17339       ;;
17340
17341     hpux10*)
17342       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17343         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17344       else
17345         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17346       fi
17347       if test "$with_gnu_ld" = no; then
17348         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17349         hardcode_libdir_separator_GCJ=:
17350
17351         hardcode_direct_GCJ=yes
17352         export_dynamic_flag_spec_GCJ='${wl}-E'
17353
17354         # hardcode_minus_L: Not really in the search PATH,
17355         # but as the default location of the library.
17356         hardcode_minus_L_GCJ=yes
17357       fi
17358       ;;
17359
17360     hpux11*)
17361       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17362         case $host_cpu in
17363         hppa*64*)
17364           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17365           ;;
17366         ia64*)
17367           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17368           ;;
17369         *)
17370           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17371           ;;
17372         esac
17373       else
17374         case $host_cpu in
17375         hppa*64*)
17376           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17377           ;;
17378         ia64*)
17379           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17380           ;;
17381         *)
17382           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17383           ;;
17384         esac
17385       fi
17386       if test "$with_gnu_ld" = no; then
17387         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17388         hardcode_libdir_separator_GCJ=:
17389
17390         case $host_cpu in
17391         hppa*64*|ia64*)
17392           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17393           hardcode_direct_GCJ=no
17394           hardcode_shlibpath_var_GCJ=no
17395           ;;
17396         *)
17397           hardcode_direct_GCJ=yes
17398           export_dynamic_flag_spec_GCJ='${wl}-E'
17399
17400           # hardcode_minus_L: Not really in the search PATH,
17401           # but as the default location of the library.
17402           hardcode_minus_L_GCJ=yes
17403           ;;
17404         esac
17405       fi
17406       ;;
17407
17408     irix5* | irix6* | nonstopux*)
17409       if test "$GCC" = yes; then
17410         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'
17411       else
17412         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'
17413         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17414       fi
17415       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17416       hardcode_libdir_separator_GCJ=:
17417       link_all_deplibs_GCJ=yes
17418       ;;
17419
17420     netbsd* | netbsdelf*-gnu)
17421       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17422         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17423       else
17424         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17425       fi
17426       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17427       hardcode_direct_GCJ=yes
17428       hardcode_shlibpath_var_GCJ=no
17429       ;;
17430
17431     newsos6)
17432       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17433       hardcode_direct_GCJ=yes
17434       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17435       hardcode_libdir_separator_GCJ=:
17436       hardcode_shlibpath_var_GCJ=no
17437       ;;
17438
17439     openbsd*)
17440       hardcode_direct_GCJ=yes
17441       hardcode_shlibpath_var_GCJ=no
17442       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17443         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17444         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17445         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17446         export_dynamic_flag_spec_GCJ='${wl}-E'
17447       else
17448        case $host_os in
17449          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17450            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17451            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17452            ;;
17453          *)
17454            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17455            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17456            ;;
17457        esac
17458       fi
17459       ;;
17460
17461     os2*)
17462       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17463       hardcode_minus_L_GCJ=yes
17464       allow_undefined_flag_GCJ=unsupported
17465       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'
17466       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17467       ;;
17468
17469     osf3*)
17470       if test "$GCC" = yes; then
17471         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17472         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'
17473       else
17474         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17475         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'
17476       fi
17477       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17478       hardcode_libdir_separator_GCJ=:
17479       ;;
17480
17481     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17482       if test "$GCC" = yes; then
17483         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17484         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'
17485         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17486       else
17487         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17488         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'
17489         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~
17490         $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'
17491
17492         # Both c and cxx compiler support -rpath directly
17493         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17494       fi
17495       hardcode_libdir_separator_GCJ=:
17496       ;;
17497
17498     solaris*)
17499       no_undefined_flag_GCJ=' -z text'
17500       if test "$GCC" = yes; then
17501         wlarc='${wl}'
17502         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17503         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17504           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17505       else
17506         wlarc=''
17507         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17508         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17509         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17510       fi
17511       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17512       hardcode_shlibpath_var_GCJ=no
17513       case $host_os in
17514       solaris2.[0-5] | solaris2.[0-5].*) ;;
17515       *)
17516         # The compiler driver will combine linker options so we
17517         # cannot just pass the convience library names through
17518         # without $wl, iff we do not link with $LD.
17519         # Luckily, gcc supports the same syntax we need for Sun Studio.
17520         # Supported since Solaris 2.6 (maybe 2.5.1?)
17521         case $wlarc in
17522         '')
17523           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17524         *)
17525           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' ;;
17526         esac ;;
17527       esac
17528       link_all_deplibs_GCJ=yes
17529       ;;
17530
17531     sunos4*)
17532       if test "x$host_vendor" = xsequent; then
17533         # Use $CC to link under sequent, because it throws in some extra .o
17534         # files that make .init and .fini sections work.
17535         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17536       else
17537         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17538       fi
17539       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17540       hardcode_direct_GCJ=yes
17541       hardcode_minus_L_GCJ=yes
17542       hardcode_shlibpath_var_GCJ=no
17543       ;;
17544
17545     sysv4)
17546       case $host_vendor in
17547         sni)
17548           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549           hardcode_direct_GCJ=yes # is this really true???
17550         ;;
17551         siemens)
17552           ## LD is ld it makes a PLAMLIB
17553           ## CC just makes a GrossModule.
17554           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17555           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17556           hardcode_direct_GCJ=no
17557         ;;
17558         motorola)
17559           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17560           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17561         ;;
17562       esac
17563       runpath_var='LD_RUN_PATH'
17564       hardcode_shlibpath_var_GCJ=no
17565       ;;
17566
17567     sysv4.3*)
17568       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17569       hardcode_shlibpath_var_GCJ=no
17570       export_dynamic_flag_spec_GCJ='-Bexport'
17571       ;;
17572
17573     sysv4*MP*)
17574       if test -d /usr/nec; then
17575         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17576         hardcode_shlibpath_var_GCJ=no
17577         runpath_var=LD_RUN_PATH
17578         hardcode_runpath_var=yes
17579         ld_shlibs_GCJ=yes
17580       fi
17581       ;;
17582
17583     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17584       no_undefined_flag_GCJ='${wl}-z,text'
17585       archive_cmds_need_lc_GCJ=no
17586       hardcode_shlibpath_var_GCJ=no
17587       runpath_var='LD_RUN_PATH'
17588
17589       if test "$GCC" = yes; then
17590         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17591         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17592       else
17593         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17594         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17595       fi
17596       ;;
17597
17598     sysv5* | sco3.2v5* | sco5v6*)
17599       # Note: We can NOT use -z defs as we might desire, because we do not
17600       # link with -lc, and that would cause any symbols used from libc to
17601       # always be unresolved, which means just about no library would
17602       # ever link correctly.  If we're not using GNU ld we use -z text
17603       # though, which does catch some bad symbols but isn't as heavy-handed
17604       # as -z defs.
17605       no_undefined_flag_GCJ='${wl}-z,text'
17606       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17607       archive_cmds_need_lc_GCJ=no
17608       hardcode_shlibpath_var_GCJ=no
17609       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17610       hardcode_libdir_separator_GCJ=':'
17611       link_all_deplibs_GCJ=yes
17612       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17613       runpath_var='LD_RUN_PATH'
17614
17615       if test "$GCC" = yes; then
17616         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17617         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17618       else
17619         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17620         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17621       fi
17622       ;;
17623
17624     uts4*)
17625       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17627       hardcode_shlibpath_var_GCJ=no
17628       ;;
17629
17630     *)
17631       ld_shlibs_GCJ=no
17632       ;;
17633     esac
17634   fi
17635
17636 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17637 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17638 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17639
17640 #
17641 # Do we need to explicitly link libc?
17642 #
17643 case "x$archive_cmds_need_lc_GCJ" in
17644 x|xyes)
17645   # Assume -lc should be added
17646   archive_cmds_need_lc_GCJ=yes
17647
17648   if test "$enable_shared" = yes && test "$GCC" = yes; then
17649     case $archive_cmds_GCJ in
17650     *'~'*)
17651       # FIXME: we may have to deal with multi-command sequences.
17652       ;;
17653     '$CC '*)
17654       # Test whether the compiler implicitly links with -lc since on some
17655       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17656       # to ld, don't add -lc before -lgcc.
17657       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17658 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17659       $rm conftest*
17660       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17661
17662       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663   (eval $ac_compile) 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); } 2>conftest.err; then
17667         soname=conftest
17668         lib=conftest
17669         libobjs=conftest.$ac_objext
17670         deplibs=
17671         wl=$lt_prog_compiler_wl_GCJ
17672         pic_flag=$lt_prog_compiler_pic_GCJ
17673         compiler_flags=-v
17674         linker_flags=-v
17675         verstring=
17676         output_objdir=.
17677         libname=conftest
17678         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17679         allow_undefined_flag_GCJ=
17680         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17681   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17682   ac_status=$?
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); }
17685         then
17686           archive_cmds_need_lc_GCJ=no
17687         else
17688           archive_cmds_need_lc_GCJ=yes
17689         fi
17690         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17691       else
17692         cat conftest.err 1>&5
17693       fi
17694       $rm conftest*
17695       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17696 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17697       ;;
17698     esac
17699   fi
17700   ;;
17701 esac
17702
17703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17705 library_names_spec=
17706 libname_spec='lib$name'
17707 soname_spec=
17708 shrext_cmds=".so"
17709 postinstall_cmds=
17710 postuninstall_cmds=
17711 finish_cmds=
17712 finish_eval=
17713 shlibpath_var=
17714 shlibpath_overrides_runpath=unknown
17715 version_type=none
17716 dynamic_linker="$host_os ld.so"
17717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17718 if test "$GCC" = yes; then
17719   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17720   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17721     # if the path contains ";" then we assume it to be the separator
17722     # otherwise default to the standard path separator (i.e. ":") - it is
17723     # assumed that no part of a normal pathname contains ";" but that should
17724     # okay in the real world where ";" in dirpaths is itself problematic.
17725     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17726   else
17727     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17728   fi
17729 else
17730   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17731 fi
17732 need_lib_prefix=unknown
17733 hardcode_into_libs=no
17734
17735 # when you set need_version to no, make sure it does not cause -set_version
17736 # flags to be left without arguments
17737 need_version=unknown
17738
17739 case $host_os in
17740 aix3*)
17741   version_type=linux
17742   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17743   shlibpath_var=LIBPATH
17744
17745   # AIX 3 has no versioning support, so we append a major version to the name.
17746   soname_spec='${libname}${release}${shared_ext}$major'
17747   ;;
17748
17749 aix4* | aix5*)
17750   version_type=linux
17751   need_lib_prefix=no
17752   need_version=no
17753   hardcode_into_libs=yes
17754   if test "$host_cpu" = ia64; then
17755     # AIX 5 supports IA64
17756     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17757     shlibpath_var=LD_LIBRARY_PATH
17758   else
17759     # With GCC up to 2.95.x, collect2 would create an import file
17760     # for dependence libraries.  The import file would start with
17761     # the line `#! .'.  This would cause the generated library to
17762     # depend on `.', always an invalid library.  This was fixed in
17763     # development snapshots of GCC prior to 3.0.
17764     case $host_os in
17765       aix4 | aix4.[01] | aix4.[01].*)
17766       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17767            echo ' yes '
17768            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17769         :
17770       else
17771         can_build_shared=no
17772       fi
17773       ;;
17774     esac
17775     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17776     # soname into executable. Probably we can add versioning support to
17777     # collect2, so additional links can be useful in future.
17778     if test "$aix_use_runtimelinking" = yes; then
17779       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17780       # instead of lib<name>.a to let people know that these are not
17781       # typical AIX shared libraries.
17782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17783     else
17784       # We preserve .a as extension for shared libraries through AIX4.2
17785       # and later when we are not doing run time linking.
17786       library_names_spec='${libname}${release}.a $libname.a'
17787       soname_spec='${libname}${release}${shared_ext}$major'
17788     fi
17789     shlibpath_var=LIBPATH
17790   fi
17791   ;;
17792
17793 amigaos*)
17794   library_names_spec='$libname.ixlibrary $libname.a'
17795   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17796   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'
17797   ;;
17798
17799 beos*)
17800   library_names_spec='${libname}${shared_ext}'
17801   dynamic_linker="$host_os ld.so"
17802   shlibpath_var=LIBRARY_PATH
17803   ;;
17804
17805 bsdi[45]*)
17806   version_type=linux
17807   need_version=no
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809   soname_spec='${libname}${release}${shared_ext}$major'
17810   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17811   shlibpath_var=LD_LIBRARY_PATH
17812   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17813   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17814   # the default ld.so.conf also contains /usr/contrib/lib and
17815   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17816   # libtool to hard-code these into programs
17817   ;;
17818
17819 cygwin* | mingw* | pw32*)
17820   version_type=windows
17821   shrext_cmds=".dll"
17822   need_version=no
17823   need_lib_prefix=no
17824
17825   case $GCC,$host_os in
17826   yes,cygwin* | yes,mingw* | yes,pw32*)
17827     library_names_spec='$libname.dll.a'
17828     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17829     postinstall_cmds='base_file=`basename \${file}`~
17830       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17831       dldir=$destdir/`dirname \$dlpath`~
17832       test -d \$dldir || mkdir -p \$dldir~
17833       $install_prog $dir/$dlname \$dldir/$dlname~
17834       chmod a+x \$dldir/$dlname'
17835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17836       dlpath=$dir/\$dldll~
17837        $rm \$dlpath'
17838     shlibpath_overrides_runpath=yes
17839
17840     case $host_os in
17841     cygwin*)
17842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17845       ;;
17846     mingw*)
17847       # MinGW DLLs use traditional 'lib' prefix
17848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17849       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17850       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17851         # It is most probably a Windows format PATH printed by
17852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17853         # path with ; separators, and with drive letters. We can handle the
17854         # drive letters (cygwin fileutils understands them), so leave them,
17855         # especially as we might pass files found there to a mingw objdump,
17856         # which wouldn't understand a cygwinified path. Ahh.
17857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17858       else
17859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17860       fi
17861       ;;
17862     pw32*)
17863       # pw32 DLLs use 'pw' prefix rather than 'lib'
17864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17865       ;;
17866     esac
17867     ;;
17868
17869   *)
17870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17871     ;;
17872   esac
17873   dynamic_linker='Win32 ld.exe'
17874   # FIXME: first we should search . and the directory the executable is in
17875   shlibpath_var=PATH
17876   ;;
17877
17878 darwin* | rhapsody*)
17879   dynamic_linker="$host_os dyld"
17880   version_type=darwin
17881   need_lib_prefix=no
17882   need_version=no
17883   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17884   soname_spec='${libname}${release}${major}$shared_ext'
17885   shlibpath_overrides_runpath=yes
17886   shlibpath_var=DYLD_LIBRARY_PATH
17887   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17888   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17889   if test "$GCC" = yes; then
17890     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"`
17891   else
17892     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17893   fi
17894   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17895   ;;
17896
17897 dgux*)
17898   version_type=linux
17899   need_lib_prefix=no
17900   need_version=no
17901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17902   soname_spec='${libname}${release}${shared_ext}$major'
17903   shlibpath_var=LD_LIBRARY_PATH
17904   ;;
17905
17906 freebsd1*)
17907   dynamic_linker=no
17908   ;;
17909
17910 freebsd* | dragonfly*)
17911   # DragonFly does not have aout.  When/if they implement a new
17912   # versioning mechanism, adjust this.
17913   if test -x /usr/bin/objformat; then
17914     objformat=`/usr/bin/objformat`
17915   else
17916     case $host_os in
17917     freebsd[123]*) objformat=aout ;;
17918     *) objformat=elf ;;
17919     esac
17920   fi
17921   version_type=freebsd-$objformat
17922   case $version_type in
17923     freebsd-elf*)
17924       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17925       need_version=no
17926       need_lib_prefix=no
17927       ;;
17928     freebsd-*)
17929       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17930       need_version=yes
17931       ;;
17932   esac
17933   shlibpath_var=LD_LIBRARY_PATH
17934   case $host_os in
17935   freebsd2*)
17936     shlibpath_overrides_runpath=yes
17937     ;;
17938   freebsd3.[01]* | freebsdelf3.[01]*)
17939     shlibpath_overrides_runpath=yes
17940     hardcode_into_libs=yes
17941     ;;
17942   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17943   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17944     shlibpath_overrides_runpath=no
17945     hardcode_into_libs=yes
17946     ;;
17947   freebsd*) # from 4.6 on
17948     shlibpath_overrides_runpath=yes
17949     hardcode_into_libs=yes
17950     ;;
17951   esac
17952   ;;
17953
17954 gnu*)
17955   version_type=linux
17956   need_lib_prefix=no
17957   need_version=no
17958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17959   soname_spec='${libname}${release}${shared_ext}$major'
17960   shlibpath_var=LD_LIBRARY_PATH
17961   hardcode_into_libs=yes
17962   ;;
17963
17964 hpux9* | hpux10* | hpux11*)
17965   # Give a soname corresponding to the major version so that dld.sl refuses to
17966   # link against other versions.
17967   version_type=sunos
17968   need_lib_prefix=no
17969   need_version=no
17970   case $host_cpu in
17971   ia64*)
17972     shrext_cmds='.so'
17973     hardcode_into_libs=yes
17974     dynamic_linker="$host_os dld.so"
17975     shlibpath_var=LD_LIBRARY_PATH
17976     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978     soname_spec='${libname}${release}${shared_ext}$major'
17979     if test "X$HPUX_IA64_MODE" = X32; then
17980       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17981     else
17982       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17983     fi
17984     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17985     ;;
17986    hppa*64*)
17987      shrext_cmds='.sl'
17988      hardcode_into_libs=yes
17989      dynamic_linker="$host_os dld.sl"
17990      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17991      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993      soname_spec='${libname}${release}${shared_ext}$major'
17994      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17995      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17996      ;;
17997    *)
17998     shrext_cmds='.sl'
17999     dynamic_linker="$host_os dld.sl"
18000     shlibpath_var=SHLIB_PATH
18001     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003     soname_spec='${libname}${release}${shared_ext}$major'
18004     ;;
18005   esac
18006   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18007   postinstall_cmds='chmod 555 $lib'
18008   ;;
18009
18010 interix3*)
18011   version_type=linux
18012   need_lib_prefix=no
18013   need_version=no
18014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18015   soname_spec='${libname}${release}${shared_ext}$major'
18016   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18017   shlibpath_var=LD_LIBRARY_PATH
18018   shlibpath_overrides_runpath=no
18019   hardcode_into_libs=yes
18020   ;;
18021
18022 irix5* | irix6* | nonstopux*)
18023   case $host_os in
18024     nonstopux*) version_type=nonstopux ;;
18025     *)
18026         if test "$lt_cv_prog_gnu_ld" = yes; then
18027                 version_type=linux
18028         else
18029                 version_type=irix
18030         fi ;;
18031   esac
18032   need_lib_prefix=no
18033   need_version=no
18034   soname_spec='${libname}${release}${shared_ext}$major'
18035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18036   case $host_os in
18037   irix5* | nonstopux*)
18038     libsuff= shlibsuff=
18039     ;;
18040   *)
18041     case $LD in # libtool.m4 will add one of these switches to LD
18042     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18043       libsuff= shlibsuff= libmagic=32-bit;;
18044     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18045       libsuff=32 shlibsuff=N32 libmagic=N32;;
18046     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18047       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18048     *) libsuff= shlibsuff= libmagic=never-match;;
18049     esac
18050     ;;
18051   esac
18052   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18053   shlibpath_overrides_runpath=no
18054   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18055   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18056   hardcode_into_libs=yes
18057   ;;
18058
18059 # No shared lib support for Linux oldld, aout, or coff.
18060 linux*oldld* | linux*aout* | linux*coff*)
18061   dynamic_linker=no
18062   ;;
18063
18064 # This must be Linux ELF.
18065 linux* | k*bsd*-gnu)
18066   version_type=linux
18067   need_lib_prefix=no
18068   need_version=no
18069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18070   soname_spec='${libname}${release}${shared_ext}$major'
18071   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18072   shlibpath_var=LD_LIBRARY_PATH
18073   shlibpath_overrides_runpath=no
18074   # This implies no fast_install, which is unacceptable.
18075   # Some rework will be needed to allow for fast_install
18076   # before this can be enabled.
18077   hardcode_into_libs=yes
18078
18079   # Append ld.so.conf contents to the search path
18080   if test -f /etc/ld.so.conf; then
18081     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' ' '`
18082     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18083   fi
18084
18085   # We used to test for /lib/ld.so.1 and disable shared libraries on
18086   # powerpc, because MkLinux only supported shared libraries with the
18087   # GNU dynamic linker.  Since this was broken with cross compilers,
18088   # most powerpc-linux boxes support dynamic linking these days and
18089   # people can always --disable-shared, the test was removed, and we
18090   # assume the GNU/Linux dynamic linker is in use.
18091   dynamic_linker='GNU/Linux ld.so'
18092   ;;
18093
18094 netbsdelf*-gnu)
18095   version_type=linux
18096   need_lib_prefix=no
18097   need_version=no
18098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18099   soname_spec='${libname}${release}${shared_ext}$major'
18100   shlibpath_var=LD_LIBRARY_PATH
18101   shlibpath_overrides_runpath=no
18102   hardcode_into_libs=yes
18103   dynamic_linker='NetBSD ld.elf_so'
18104   ;;
18105
18106 netbsd*)
18107   version_type=sunos
18108   need_lib_prefix=no
18109   need_version=no
18110   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18112     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18113     dynamic_linker='NetBSD (a.out) ld.so'
18114   else
18115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18116     soname_spec='${libname}${release}${shared_ext}$major'
18117     dynamic_linker='NetBSD ld.elf_so'
18118   fi
18119   shlibpath_var=LD_LIBRARY_PATH
18120   shlibpath_overrides_runpath=yes
18121   hardcode_into_libs=yes
18122   ;;
18123
18124 newsos6)
18125   version_type=linux
18126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127   shlibpath_var=LD_LIBRARY_PATH
18128   shlibpath_overrides_runpath=yes
18129   ;;
18130
18131 nto-qnx*)
18132   version_type=linux
18133   need_lib_prefix=no
18134   need_version=no
18135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136   soname_spec='${libname}${release}${shared_ext}$major'
18137   shlibpath_var=LD_LIBRARY_PATH
18138   shlibpath_overrides_runpath=yes
18139   ;;
18140
18141 openbsd*)
18142   version_type=sunos
18143   sys_lib_dlsearch_path_spec="/usr/lib"
18144   need_lib_prefix=no
18145   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18146   case $host_os in
18147     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18148     *)                         need_version=no  ;;
18149   esac
18150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18152   shlibpath_var=LD_LIBRARY_PATH
18153   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18154     case $host_os in
18155       openbsd2.[89] | openbsd2.[89].*)
18156         shlibpath_overrides_runpath=no
18157         ;;
18158       *)
18159         shlibpath_overrides_runpath=yes
18160         ;;
18161       esac
18162   else
18163     shlibpath_overrides_runpath=yes
18164   fi
18165   ;;
18166
18167 os2*)
18168   libname_spec='$name'
18169   shrext_cmds=".dll"
18170   need_lib_prefix=no
18171   library_names_spec='$libname${shared_ext} $libname.a'
18172   dynamic_linker='OS/2 ld.exe'
18173   shlibpath_var=LIBPATH
18174   ;;
18175
18176 osf3* | osf4* | osf5*)
18177   version_type=osf
18178   need_lib_prefix=no
18179   need_version=no
18180   soname_spec='${libname}${release}${shared_ext}$major'
18181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182   shlibpath_var=LD_LIBRARY_PATH
18183   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18184   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18185   ;;
18186
18187 solaris*)
18188   version_type=linux
18189   need_lib_prefix=no
18190   need_version=no
18191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192   soname_spec='${libname}${release}${shared_ext}$major'
18193   shlibpath_var=LD_LIBRARY_PATH
18194   shlibpath_overrides_runpath=yes
18195   hardcode_into_libs=yes
18196   # ldd complains unless libraries are executable
18197   postinstall_cmds='chmod +x $lib'
18198   ;;
18199
18200 sunos4*)
18201   version_type=sunos
18202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18203   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18204   shlibpath_var=LD_LIBRARY_PATH
18205   shlibpath_overrides_runpath=yes
18206   if test "$with_gnu_ld" = yes; then
18207     need_lib_prefix=no
18208   fi
18209   need_version=yes
18210   ;;
18211
18212 sysv4 | sysv4.3*)
18213   version_type=linux
18214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215   soname_spec='${libname}${release}${shared_ext}$major'
18216   shlibpath_var=LD_LIBRARY_PATH
18217   case $host_vendor in
18218     sni)
18219       shlibpath_overrides_runpath=no
18220       need_lib_prefix=no
18221       export_dynamic_flag_spec='${wl}-Blargedynsym'
18222       runpath_var=LD_RUN_PATH
18223       ;;
18224     siemens)
18225       need_lib_prefix=no
18226       ;;
18227     motorola)
18228       need_lib_prefix=no
18229       need_version=no
18230       shlibpath_overrides_runpath=no
18231       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18232       ;;
18233   esac
18234   ;;
18235
18236 sysv4*MP*)
18237   if test -d /usr/nec ;then
18238     version_type=linux
18239     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18240     soname_spec='$libname${shared_ext}.$major'
18241     shlibpath_var=LD_LIBRARY_PATH
18242   fi
18243   ;;
18244
18245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18246   version_type=freebsd-elf
18247   need_lib_prefix=no
18248   need_version=no
18249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18250   soname_spec='${libname}${release}${shared_ext}$major'
18251   shlibpath_var=LD_LIBRARY_PATH
18252   hardcode_into_libs=yes
18253   if test "$with_gnu_ld" = yes; then
18254     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18255     shlibpath_overrides_runpath=no
18256   else
18257     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18258     shlibpath_overrides_runpath=yes
18259     case $host_os in
18260       sco3.2v5*)
18261         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18262         ;;
18263     esac
18264   fi
18265   sys_lib_dlsearch_path_spec='/usr/lib'
18266   ;;
18267
18268 uts4*)
18269   version_type=linux
18270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271   soname_spec='${libname}${release}${shared_ext}$major'
18272   shlibpath_var=LD_LIBRARY_PATH
18273   ;;
18274
18275 *)
18276   dynamic_linker=no
18277   ;;
18278 esac
18279 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18280 echo "${ECHO_T}$dynamic_linker" >&6; }
18281 test "$dynamic_linker" = no && can_build_shared=no
18282
18283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18284 if test "$GCC" = yes; then
18285   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18286 fi
18287
18288 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18289 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18290 hardcode_action_GCJ=
18291 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18292    test -n "$runpath_var_GCJ" || \
18293    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18294
18295   # We can hardcode non-existant directories.
18296   if test "$hardcode_direct_GCJ" != no &&
18297      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18298      # have to relink, otherwise we might link with an installed library
18299      # when we should be linking with a yet-to-be-installed one
18300      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18301      test "$hardcode_minus_L_GCJ" != no; then
18302     # Linking always hardcodes the temporary library directory.
18303     hardcode_action_GCJ=relink
18304   else
18305     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18306     hardcode_action_GCJ=immediate
18307   fi
18308 else
18309   # We cannot hardcode anything, or else we can only hardcode existing
18310   # directories.
18311   hardcode_action_GCJ=unsupported
18312 fi
18313 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18314 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18315
18316 if test "$hardcode_action_GCJ" = relink; then
18317   # Fast installation is not supported
18318   enable_fast_install=no
18319 elif test "$shlibpath_overrides_runpath" = yes ||
18320      test "$enable_shared" = no; then
18321   # Fast installation is not necessary
18322   enable_fast_install=needless
18323 fi
18324
18325
18326 # The else clause should only fire when bootstrapping the
18327 # libtool distribution, otherwise you forgot to ship ltmain.sh
18328 # with your package, and you will get complaints that there are
18329 # no rules to generate ltmain.sh.
18330 if test -f "$ltmain"; then
18331   # See if we are running on zsh, and set the options which allow our commands through
18332   # without removal of \ escapes.
18333   if test -n "${ZSH_VERSION+set}" ; then
18334     setopt NO_GLOB_SUBST
18335   fi
18336   # Now quote all the things that may contain metacharacters while being
18337   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18338   # variables and quote the copies for generation of the libtool script.
18339   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18340     SED SHELL STRIP \
18341     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18342     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18343     deplibs_check_method reload_flag reload_cmds need_locks \
18344     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18345     lt_cv_sys_global_symbol_to_c_name_address \
18346     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18347     old_postinstall_cmds old_postuninstall_cmds \
18348     compiler_GCJ \
18349     CC_GCJ \
18350     LD_GCJ \
18351     lt_prog_compiler_wl_GCJ \
18352     lt_prog_compiler_pic_GCJ \
18353     lt_prog_compiler_static_GCJ \
18354     lt_prog_compiler_no_builtin_flag_GCJ \
18355     export_dynamic_flag_spec_GCJ \
18356     thread_safe_flag_spec_GCJ \
18357     whole_archive_flag_spec_GCJ \
18358     enable_shared_with_static_runtimes_GCJ \
18359     old_archive_cmds_GCJ \
18360     old_archive_from_new_cmds_GCJ \
18361     predep_objects_GCJ \
18362     postdep_objects_GCJ \
18363     predeps_GCJ \
18364     postdeps_GCJ \
18365     compiler_lib_search_path_GCJ \
18366     archive_cmds_GCJ \
18367     archive_expsym_cmds_GCJ \
18368     postinstall_cmds_GCJ \
18369     postuninstall_cmds_GCJ \
18370     old_archive_from_expsyms_cmds_GCJ \
18371     allow_undefined_flag_GCJ \
18372     no_undefined_flag_GCJ \
18373     export_symbols_cmds_GCJ \
18374     hardcode_libdir_flag_spec_GCJ \
18375     hardcode_libdir_flag_spec_ld_GCJ \
18376     hardcode_libdir_separator_GCJ \
18377     hardcode_automatic_GCJ \
18378     module_cmds_GCJ \
18379     module_expsym_cmds_GCJ \
18380     lt_cv_prog_compiler_c_o_GCJ \
18381     exclude_expsyms_GCJ \
18382     include_expsyms_GCJ; do
18383
18384     case $var in
18385     old_archive_cmds_GCJ | \
18386     old_archive_from_new_cmds_GCJ | \
18387     archive_cmds_GCJ | \
18388     archive_expsym_cmds_GCJ | \
18389     module_cmds_GCJ | \
18390     module_expsym_cmds_GCJ | \
18391     old_archive_from_expsyms_cmds_GCJ | \
18392     export_symbols_cmds_GCJ | \
18393     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18394     postinstall_cmds | postuninstall_cmds | \
18395     old_postinstall_cmds | old_postuninstall_cmds | \
18396     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18397       # Double-quote double-evaled strings.
18398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18399       ;;
18400     *)
18401       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18402       ;;
18403     esac
18404   done
18405
18406   case $lt_echo in
18407   *'\$0 --fallback-echo"')
18408     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18409     ;;
18410   esac
18411
18412 cfgfile="$ofile"
18413
18414   cat <<__EOF__ >> "$cfgfile"
18415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18416
18417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18418
18419 # Shell to use when invoking shell scripts.
18420 SHELL=$lt_SHELL
18421
18422 # Whether or not to build shared libraries.
18423 build_libtool_libs=$enable_shared
18424
18425 # Whether or not to build static libraries.
18426 build_old_libs=$enable_static
18427
18428 # Whether or not to add -lc for building shared libraries.
18429 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18430
18431 # Whether or not to disallow shared libs when runtime libs are static
18432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18433
18434 # Whether or not to optimize for fast installation.
18435 fast_install=$enable_fast_install
18436
18437 # The host system.
18438 host_alias=$host_alias
18439 host=$host
18440 host_os=$host_os
18441
18442 # The build system.
18443 build_alias=$build_alias
18444 build=$build
18445 build_os=$build_os
18446
18447 # An echo program that does not interpret backslashes.
18448 echo=$lt_echo
18449
18450 # The archiver.
18451 AR=$lt_AR
18452 AR_FLAGS=$lt_AR_FLAGS
18453
18454 # A C compiler.
18455 LTCC=$lt_LTCC
18456
18457 # LTCC compiler flags.
18458 LTCFLAGS=$lt_LTCFLAGS
18459
18460 # A language-specific compiler.
18461 CC=$lt_compiler_GCJ
18462
18463 # Is the compiler the GNU C compiler?
18464 with_gcc=$GCC_GCJ
18465
18466 # An ERE matcher.
18467 EGREP=$lt_EGREP
18468
18469 # The linker used to build libraries.
18470 LD=$lt_LD_GCJ
18471
18472 # Whether we need hard or soft links.
18473 LN_S=$lt_LN_S
18474
18475 # A BSD-compatible nm program.
18476 NM=$lt_NM
18477
18478 # A symbol stripping program
18479 STRIP=$lt_STRIP
18480
18481 # Used to examine libraries when file_magic_cmd begins "file"
18482 MAGIC_CMD=$MAGIC_CMD
18483
18484 # Used on cygwin: DLL creation program.
18485 DLLTOOL="$DLLTOOL"
18486
18487 # Used on cygwin: object dumper.
18488 OBJDUMP="$OBJDUMP"
18489
18490 # Used on cygwin: assembler.
18491 AS="$AS"
18492
18493 # The name of the directory that contains temporary libtool files.
18494 objdir=$objdir
18495
18496 # How to create reloadable object files.
18497 reload_flag=$lt_reload_flag
18498 reload_cmds=$lt_reload_cmds
18499
18500 # How to pass a linker flag through the compiler.
18501 wl=$lt_lt_prog_compiler_wl_GCJ
18502
18503 # Object file suffix (normally "o").
18504 objext="$ac_objext"
18505
18506 # Old archive suffix (normally "a").
18507 libext="$libext"
18508
18509 # Shared library suffix (normally ".so").
18510 shrext_cmds='$shrext_cmds'
18511
18512 # Executable file suffix (normally "").
18513 exeext="$exeext"
18514
18515 # Additional compiler flags for building library objects.
18516 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18517 pic_mode=$pic_mode
18518
18519 # What is the maximum length of a command?
18520 max_cmd_len=$lt_cv_sys_max_cmd_len
18521
18522 # Does compiler simultaneously support -c and -o options?
18523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18524
18525 # Must we lock files when doing compilation?
18526 need_locks=$lt_need_locks
18527
18528 # Do we need the lib prefix for modules?
18529 need_lib_prefix=$need_lib_prefix
18530
18531 # Do we need a version for libraries?
18532 need_version=$need_version
18533
18534 # Whether dlopen is supported.
18535 dlopen_support=$enable_dlopen
18536
18537 # Whether dlopen of programs is supported.
18538 dlopen_self=$enable_dlopen_self
18539
18540 # Whether dlopen of statically linked programs is supported.
18541 dlopen_self_static=$enable_dlopen_self_static
18542
18543 # Compiler flag to prevent dynamic linking.
18544 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18545
18546 # Compiler flag to turn off builtin functions.
18547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18548
18549 # Compiler flag to allow reflexive dlopens.
18550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18551
18552 # Compiler flag to generate shared objects directly from archives.
18553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18554
18555 # Compiler flag to generate thread-safe objects.
18556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18557
18558 # Library versioning type.
18559 version_type=$version_type
18560
18561 # Format of library name prefix.
18562 libname_spec=$lt_libname_spec
18563
18564 # List of archive names.  First name is the real one, the rest are links.
18565 # The last name is the one that the linker finds with -lNAME.
18566 library_names_spec=$lt_library_names_spec
18567
18568 # The coded name of the library, if different from the real name.
18569 soname_spec=$lt_soname_spec
18570
18571 # Commands used to build and install an old-style archive.
18572 RANLIB=$lt_RANLIB
18573 old_archive_cmds=$lt_old_archive_cmds_GCJ
18574 old_postinstall_cmds=$lt_old_postinstall_cmds
18575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18576
18577 # Create an old-style archive from a shared archive.
18578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18579
18580 # Create a temporary old-style archive to link instead of a shared archive.
18581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18582
18583 # Commands used to build and install a shared archive.
18584 archive_cmds=$lt_archive_cmds_GCJ
18585 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18586 postinstall_cmds=$lt_postinstall_cmds
18587 postuninstall_cmds=$lt_postuninstall_cmds
18588
18589 # Commands used to build a loadable module (assumed same as above if empty)
18590 module_cmds=$lt_module_cmds_GCJ
18591 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18592
18593 # Commands to strip libraries.
18594 old_striplib=$lt_old_striplib
18595 striplib=$lt_striplib
18596
18597 # Dependencies to place before the objects being linked to create a
18598 # shared library.
18599 predep_objects=$lt_predep_objects_GCJ
18600
18601 # Dependencies to place after the objects being linked to create a
18602 # shared library.
18603 postdep_objects=$lt_postdep_objects_GCJ
18604
18605 # Dependencies to place before the objects being linked to create a
18606 # shared library.
18607 predeps=$lt_predeps_GCJ
18608
18609 # Dependencies to place after the objects being linked to create a
18610 # shared library.
18611 postdeps=$lt_postdeps_GCJ
18612
18613 # The library search path used internally by the compiler when linking
18614 # a shared library.
18615 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18616
18617 # Method to check whether dependent libraries are shared objects.
18618 deplibs_check_method=$lt_deplibs_check_method
18619
18620 # Command to use when deplibs_check_method == file_magic.
18621 file_magic_cmd=$lt_file_magic_cmd
18622
18623 # Flag that allows shared libraries with undefined symbols to be built.
18624 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18625
18626 # Flag that forces no undefined symbols.
18627 no_undefined_flag=$lt_no_undefined_flag_GCJ
18628
18629 # Commands used to finish a libtool library installation in a directory.
18630 finish_cmds=$lt_finish_cmds
18631
18632 # Same as above, but a single script fragment to be evaled but not shown.
18633 finish_eval=$lt_finish_eval
18634
18635 # Take the output of nm and produce a listing of raw symbols and C names.
18636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18637
18638 # Transform the output of nm in a proper C declaration
18639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18640
18641 # Transform the output of nm in a C name address pair
18642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18643
18644 # This is the shared library runtime path variable.
18645 runpath_var=$runpath_var
18646
18647 # This is the shared library path variable.
18648 shlibpath_var=$shlibpath_var
18649
18650 # Is shlibpath searched before the hard-coded library search path?
18651 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18652
18653 # How to hardcode a shared library path into an executable.
18654 hardcode_action=$hardcode_action_GCJ
18655
18656 # Whether we should hardcode library paths into libraries.
18657 hardcode_into_libs=$hardcode_into_libs
18658
18659 # Flag to hardcode \$libdir into a binary during linking.
18660 # This must work even if \$libdir does not exist.
18661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18662
18663 # If ld is used when linking, flag to hardcode \$libdir into
18664 # a binary during linking. This must work even if \$libdir does
18665 # not exist.
18666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18667
18668 # Whether we need a single -rpath flag with a separated argument.
18669 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18670
18671 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18672 # resulting binary.
18673 hardcode_direct=$hardcode_direct_GCJ
18674
18675 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18676 # resulting binary.
18677 hardcode_minus_L=$hardcode_minus_L_GCJ
18678
18679 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18680 # the resulting binary.
18681 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18682
18683 # Set to yes if building a shared library automatically hardcodes DIR into the library
18684 # and all subsequent libraries and executables linked against it.
18685 hardcode_automatic=$hardcode_automatic_GCJ
18686
18687 # Variables whose values should be saved in libtool wrapper scripts and
18688 # restored at relink time.
18689 variables_saved_for_relink="$variables_saved_for_relink"
18690
18691 # Whether libtool must link a program against all its dependency libraries.
18692 link_all_deplibs=$link_all_deplibs_GCJ
18693
18694 # Compile-time system search path for libraries
18695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18696
18697 # Run-time system search path for libraries
18698 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18699
18700 # Fix the shell variable \$srcfile for the compiler.
18701 fix_srcfile_path="$fix_srcfile_path_GCJ"
18702
18703 # Set to yes if exported symbols are required.
18704 always_export_symbols=$always_export_symbols_GCJ
18705
18706 # The commands to list exported symbols.
18707 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18708
18709 # The commands to extract the exported symbol list from a shared archive.
18710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18711
18712 # Symbols that should not be listed in the preloaded symbols.
18713 exclude_expsyms=$lt_exclude_expsyms_GCJ
18714
18715 # Symbols that must always be exported.
18716 include_expsyms=$lt_include_expsyms_GCJ
18717
18718 # ### END LIBTOOL TAG CONFIG: $tagname
18719
18720 __EOF__
18721
18722
18723 else
18724   # If there is no Makefile yet, we rely on a make rule to execute
18725   # `config.status --recheck' to rerun these tests and create the
18726   # libtool script then.
18727   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18728   if test -f "$ltmain_in"; then
18729     test -f Makefile && make "$ltmain"
18730   fi
18731 fi
18732
18733
18734 ac_ext=c
18735 ac_cpp='$CPP $CPPFLAGS'
18736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18739
18740 CC="$lt_save_CC"
18741
18742         else
18743           tagname=""
18744         fi
18745         ;;
18746
18747       RC)
18748
18749
18750 # Source file extension for RC test sources.
18751 ac_ext=rc
18752
18753 # Object file extension for compiled RC test sources.
18754 objext=o
18755 objext_RC=$objext
18756
18757 # Code to be used in simple compile tests
18758 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18759
18760 # Code to be used in simple link tests
18761 lt_simple_link_test_code="$lt_simple_compile_test_code"
18762
18763 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18764
18765 # If no C compiler was specified, use CC.
18766 LTCC=${LTCC-"$CC"}
18767
18768 # If no C compiler flags were specified, use CFLAGS.
18769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18770
18771 # Allow CC to be a program name with arguments.
18772 compiler=$CC
18773
18774
18775 # save warnings/boilerplate of simple test code
18776 ac_outfile=conftest.$ac_objext
18777 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18779 _lt_compiler_boilerplate=`cat conftest.err`
18780 $rm conftest*
18781
18782 ac_outfile=conftest.$ac_objext
18783 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18785 _lt_linker_boilerplate=`cat conftest.err`
18786 $rm conftest*
18787
18788
18789 # Allow CC to be a program name with arguments.
18790 lt_save_CC="$CC"
18791 CC=${RC-"windres"}
18792 compiler=$CC
18793 compiler_RC=$CC
18794 for cc_temp in $compiler""; do
18795   case $cc_temp in
18796     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18797     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18798     \-*) ;;
18799     *) break;;
18800   esac
18801 done
18802 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18803
18804 lt_cv_prog_compiler_c_o_RC=yes
18805
18806 # The else clause should only fire when bootstrapping the
18807 # libtool distribution, otherwise you forgot to ship ltmain.sh
18808 # with your package, and you will get complaints that there are
18809 # no rules to generate ltmain.sh.
18810 if test -f "$ltmain"; then
18811   # See if we are running on zsh, and set the options which allow our commands through
18812   # without removal of \ escapes.
18813   if test -n "${ZSH_VERSION+set}" ; then
18814     setopt NO_GLOB_SUBST
18815   fi
18816   # Now quote all the things that may contain metacharacters while being
18817   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18818   # variables and quote the copies for generation of the libtool script.
18819   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18820     SED SHELL STRIP \
18821     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18822     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18823     deplibs_check_method reload_flag reload_cmds need_locks \
18824     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18825     lt_cv_sys_global_symbol_to_c_name_address \
18826     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18827     old_postinstall_cmds old_postuninstall_cmds \
18828     compiler_RC \
18829     CC_RC \
18830     LD_RC \
18831     lt_prog_compiler_wl_RC \
18832     lt_prog_compiler_pic_RC \
18833     lt_prog_compiler_static_RC \
18834     lt_prog_compiler_no_builtin_flag_RC \
18835     export_dynamic_flag_spec_RC \
18836     thread_safe_flag_spec_RC \
18837     whole_archive_flag_spec_RC \
18838     enable_shared_with_static_runtimes_RC \
18839     old_archive_cmds_RC \
18840     old_archive_from_new_cmds_RC \
18841     predep_objects_RC \
18842     postdep_objects_RC \
18843     predeps_RC \
18844     postdeps_RC \
18845     compiler_lib_search_path_RC \
18846     archive_cmds_RC \
18847     archive_expsym_cmds_RC \
18848     postinstall_cmds_RC \
18849     postuninstall_cmds_RC \
18850     old_archive_from_expsyms_cmds_RC \
18851     allow_undefined_flag_RC \
18852     no_undefined_flag_RC \
18853     export_symbols_cmds_RC \
18854     hardcode_libdir_flag_spec_RC \
18855     hardcode_libdir_flag_spec_ld_RC \
18856     hardcode_libdir_separator_RC \
18857     hardcode_automatic_RC \
18858     module_cmds_RC \
18859     module_expsym_cmds_RC \
18860     lt_cv_prog_compiler_c_o_RC \
18861     exclude_expsyms_RC \
18862     include_expsyms_RC; do
18863
18864     case $var in
18865     old_archive_cmds_RC | \
18866     old_archive_from_new_cmds_RC | \
18867     archive_cmds_RC | \
18868     archive_expsym_cmds_RC | \
18869     module_cmds_RC | \
18870     module_expsym_cmds_RC | \
18871     old_archive_from_expsyms_cmds_RC | \
18872     export_symbols_cmds_RC | \
18873     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18874     postinstall_cmds | postuninstall_cmds | \
18875     old_postinstall_cmds | old_postuninstall_cmds | \
18876     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18877       # Double-quote double-evaled strings.
18878       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18879       ;;
18880     *)
18881       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18882       ;;
18883     esac
18884   done
18885
18886   case $lt_echo in
18887   *'\$0 --fallback-echo"')
18888     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18889     ;;
18890   esac
18891
18892 cfgfile="$ofile"
18893
18894   cat <<__EOF__ >> "$cfgfile"
18895 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18896
18897 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18898
18899 # Shell to use when invoking shell scripts.
18900 SHELL=$lt_SHELL
18901
18902 # Whether or not to build shared libraries.
18903 build_libtool_libs=$enable_shared
18904
18905 # Whether or not to build static libraries.
18906 build_old_libs=$enable_static
18907
18908 # Whether or not to add -lc for building shared libraries.
18909 build_libtool_need_lc=$archive_cmds_need_lc_RC
18910
18911 # Whether or not to disallow shared libs when runtime libs are static
18912 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18913
18914 # Whether or not to optimize for fast installation.
18915 fast_install=$enable_fast_install
18916
18917 # The host system.
18918 host_alias=$host_alias
18919 host=$host
18920 host_os=$host_os
18921
18922 # The build system.
18923 build_alias=$build_alias
18924 build=$build
18925 build_os=$build_os
18926
18927 # An echo program that does not interpret backslashes.
18928 echo=$lt_echo
18929
18930 # The archiver.
18931 AR=$lt_AR
18932 AR_FLAGS=$lt_AR_FLAGS
18933
18934 # A C compiler.
18935 LTCC=$lt_LTCC
18936
18937 # LTCC compiler flags.
18938 LTCFLAGS=$lt_LTCFLAGS
18939
18940 # A language-specific compiler.
18941 CC=$lt_compiler_RC
18942
18943 # Is the compiler the GNU C compiler?
18944 with_gcc=$GCC_RC
18945
18946 # An ERE matcher.
18947 EGREP=$lt_EGREP
18948
18949 # The linker used to build libraries.
18950 LD=$lt_LD_RC
18951
18952 # Whether we need hard or soft links.
18953 LN_S=$lt_LN_S
18954
18955 # A BSD-compatible nm program.
18956 NM=$lt_NM
18957
18958 # A symbol stripping program
18959 STRIP=$lt_STRIP
18960
18961 # Used to examine libraries when file_magic_cmd begins "file"
18962 MAGIC_CMD=$MAGIC_CMD
18963
18964 # Used on cygwin: DLL creation program.
18965 DLLTOOL="$DLLTOOL"
18966
18967 # Used on cygwin: object dumper.
18968 OBJDUMP="$OBJDUMP"
18969
18970 # Used on cygwin: assembler.
18971 AS="$AS"
18972
18973 # The name of the directory that contains temporary libtool files.
18974 objdir=$objdir
18975
18976 # How to create reloadable object files.
18977 reload_flag=$lt_reload_flag
18978 reload_cmds=$lt_reload_cmds
18979
18980 # How to pass a linker flag through the compiler.
18981 wl=$lt_lt_prog_compiler_wl_RC
18982
18983 # Object file suffix (normally "o").
18984 objext="$ac_objext"
18985
18986 # Old archive suffix (normally "a").
18987 libext="$libext"
18988
18989 # Shared library suffix (normally ".so").
18990 shrext_cmds='$shrext_cmds'
18991
18992 # Executable file suffix (normally "").
18993 exeext="$exeext"
18994
18995 # Additional compiler flags for building library objects.
18996 pic_flag=$lt_lt_prog_compiler_pic_RC
18997 pic_mode=$pic_mode
18998
18999 # What is the maximum length of a command?
19000 max_cmd_len=$lt_cv_sys_max_cmd_len
19001
19002 # Does compiler simultaneously support -c and -o options?
19003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19004
19005 # Must we lock files when doing compilation?
19006 need_locks=$lt_need_locks
19007
19008 # Do we need the lib prefix for modules?
19009 need_lib_prefix=$need_lib_prefix
19010
19011 # Do we need a version for libraries?
19012 need_version=$need_version
19013
19014 # Whether dlopen is supported.
19015 dlopen_support=$enable_dlopen
19016
19017 # Whether dlopen of programs is supported.
19018 dlopen_self=$enable_dlopen_self
19019
19020 # Whether dlopen of statically linked programs is supported.
19021 dlopen_self_static=$enable_dlopen_self_static
19022
19023 # Compiler flag to prevent dynamic linking.
19024 link_static_flag=$lt_lt_prog_compiler_static_RC
19025
19026 # Compiler flag to turn off builtin functions.
19027 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19028
19029 # Compiler flag to allow reflexive dlopens.
19030 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19031
19032 # Compiler flag to generate shared objects directly from archives.
19033 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19034
19035 # Compiler flag to generate thread-safe objects.
19036 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19037
19038 # Library versioning type.
19039 version_type=$version_type
19040
19041 # Format of library name prefix.
19042 libname_spec=$lt_libname_spec
19043
19044 # List of archive names.  First name is the real one, the rest are links.
19045 # The last name is the one that the linker finds with -lNAME.
19046 library_names_spec=$lt_library_names_spec
19047
19048 # The coded name of the library, if different from the real name.
19049 soname_spec=$lt_soname_spec
19050
19051 # Commands used to build and install an old-style archive.
19052 RANLIB=$lt_RANLIB
19053 old_archive_cmds=$lt_old_archive_cmds_RC
19054 old_postinstall_cmds=$lt_old_postinstall_cmds
19055 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19056
19057 # Create an old-style archive from a shared archive.
19058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19059
19060 # Create a temporary old-style archive to link instead of a shared archive.
19061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19062
19063 # Commands used to build and install a shared archive.
19064 archive_cmds=$lt_archive_cmds_RC
19065 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19066 postinstall_cmds=$lt_postinstall_cmds
19067 postuninstall_cmds=$lt_postuninstall_cmds
19068
19069 # Commands used to build a loadable module (assumed same as above if empty)
19070 module_cmds=$lt_module_cmds_RC
19071 module_expsym_cmds=$lt_module_expsym_cmds_RC
19072
19073 # Commands to strip libraries.
19074 old_striplib=$lt_old_striplib
19075 striplib=$lt_striplib
19076
19077 # Dependencies to place before the objects being linked to create a
19078 # shared library.
19079 predep_objects=$lt_predep_objects_RC
19080
19081 # Dependencies to place after the objects being linked to create a
19082 # shared library.
19083 postdep_objects=$lt_postdep_objects_RC
19084
19085 # Dependencies to place before the objects being linked to create a
19086 # shared library.
19087 predeps=$lt_predeps_RC
19088
19089 # Dependencies to place after the objects being linked to create a
19090 # shared library.
19091 postdeps=$lt_postdeps_RC
19092
19093 # The library search path used internally by the compiler when linking
19094 # a shared library.
19095 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19096
19097 # Method to check whether dependent libraries are shared objects.
19098 deplibs_check_method=$lt_deplibs_check_method
19099
19100 # Command to use when deplibs_check_method == file_magic.
19101 file_magic_cmd=$lt_file_magic_cmd
19102
19103 # Flag that allows shared libraries with undefined symbols to be built.
19104 allow_undefined_flag=$lt_allow_undefined_flag_RC
19105
19106 # Flag that forces no undefined symbols.
19107 no_undefined_flag=$lt_no_undefined_flag_RC
19108
19109 # Commands used to finish a libtool library installation in a directory.
19110 finish_cmds=$lt_finish_cmds
19111
19112 # Same as above, but a single script fragment to be evaled but not shown.
19113 finish_eval=$lt_finish_eval
19114
19115 # Take the output of nm and produce a listing of raw symbols and C names.
19116 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19117
19118 # Transform the output of nm in a proper C declaration
19119 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19120
19121 # Transform the output of nm in a C name address pair
19122 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19123
19124 # This is the shared library runtime path variable.
19125 runpath_var=$runpath_var
19126
19127 # This is the shared library path variable.
19128 shlibpath_var=$shlibpath_var
19129
19130 # Is shlibpath searched before the hard-coded library search path?
19131 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19132
19133 # How to hardcode a shared library path into an executable.
19134 hardcode_action=$hardcode_action_RC
19135
19136 # Whether we should hardcode library paths into libraries.
19137 hardcode_into_libs=$hardcode_into_libs
19138
19139 # Flag to hardcode \$libdir into a binary during linking.
19140 # This must work even if \$libdir does not exist.
19141 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19142
19143 # If ld is used when linking, flag to hardcode \$libdir into
19144 # a binary during linking. This must work even if \$libdir does
19145 # not exist.
19146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19147
19148 # Whether we need a single -rpath flag with a separated argument.
19149 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19150
19151 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19152 # resulting binary.
19153 hardcode_direct=$hardcode_direct_RC
19154
19155 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19156 # resulting binary.
19157 hardcode_minus_L=$hardcode_minus_L_RC
19158
19159 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19160 # the resulting binary.
19161 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19162
19163 # Set to yes if building a shared library automatically hardcodes DIR into the library
19164 # and all subsequent libraries and executables linked against it.
19165 hardcode_automatic=$hardcode_automatic_RC
19166
19167 # Variables whose values should be saved in libtool wrapper scripts and
19168 # restored at relink time.
19169 variables_saved_for_relink="$variables_saved_for_relink"
19170
19171 # Whether libtool must link a program against all its dependency libraries.
19172 link_all_deplibs=$link_all_deplibs_RC
19173
19174 # Compile-time system search path for libraries
19175 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19176
19177 # Run-time system search path for libraries
19178 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19179
19180 # Fix the shell variable \$srcfile for the compiler.
19181 fix_srcfile_path="$fix_srcfile_path_RC"
19182
19183 # Set to yes if exported symbols are required.
19184 always_export_symbols=$always_export_symbols_RC
19185
19186 # The commands to list exported symbols.
19187 export_symbols_cmds=$lt_export_symbols_cmds_RC
19188
19189 # The commands to extract the exported symbol list from a shared archive.
19190 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19191
19192 # Symbols that should not be listed in the preloaded symbols.
19193 exclude_expsyms=$lt_exclude_expsyms_RC
19194
19195 # Symbols that must always be exported.
19196 include_expsyms=$lt_include_expsyms_RC
19197
19198 # ### END LIBTOOL TAG CONFIG: $tagname
19199
19200 __EOF__
19201
19202
19203 else
19204   # If there is no Makefile yet, we rely on a make rule to execute
19205   # `config.status --recheck' to rerun these tests and create the
19206   # libtool script then.
19207   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19208   if test -f "$ltmain_in"; then
19209     test -f Makefile && make "$ltmain"
19210   fi
19211 fi
19212
19213
19214 ac_ext=c
19215 ac_cpp='$CPP $CPPFLAGS'
19216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19219
19220 CC="$lt_save_CC"
19221
19222         ;;
19223
19224       *)
19225         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19226 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19227    { (exit 1); exit 1; }; }
19228         ;;
19229       esac
19230
19231       # Append the new tag name to the list of available tags.
19232       if test -n "$tagname" ; then
19233       available_tags="$available_tags $tagname"
19234     fi
19235     fi
19236   done
19237   IFS="$lt_save_ifs"
19238
19239   # Now substitute the updated list of available tags.
19240   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19241     mv "${ofile}T" "$ofile"
19242     chmod +x "$ofile"
19243   else
19244     rm -f "${ofile}T"
19245     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19246 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19247    { (exit 1); exit 1; }; }
19248   fi
19249 fi
19250
19251
19252
19253 # This can be used to rebuild libtool when needed
19254 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19255
19256 # Always use our own libtool.
19257 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19258
19259 # Prevent multiple expansion
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283 # Checks for libraries.
19284
19285 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19286 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19287 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19288   echo $ECHO_N "(cached) $ECHO_C" >&6
19289 else
19290   ac_check_lib_save_LIBS=$LIBS
19291 LIBS="-lapr-1  $LIBS"
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298
19299
19300 int
19301 main ()
19302 {
19303 return main ();
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest.$ac_objext conftest$ac_exeext
19309 if { (ac_try="$ac_link"
19310 case "(($ac_try" in
19311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312   *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315   (eval "$ac_link") 2>conftest.er1
19316   ac_status=$?
19317   grep -v '^ *+' conftest.er1 >conftest.err
19318   rm -f conftest.er1
19319   cat conftest.err >&5
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); } && {
19322          test -z "$ac_c_werror_flag" ||
19323          test ! -s conftest.err
19324        } && test -s conftest$ac_exeext &&
19325        $as_test_x conftest$ac_exeext; then
19326   ac_cv_lib_apr_1_main=yes
19327 else
19328   echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19330
19331         ac_cv_lib_apr_1_main=no
19332 fi
19333
19334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19335       conftest$ac_exeext conftest.$ac_ext
19336 LIBS=$ac_check_lib_save_LIBS
19337 fi
19338 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19339 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19340 if test $ac_cv_lib_apr_1_main = yes; then
19341   cat >>confdefs.h <<_ACEOF
19342 #define HAVE_LIBAPR_1 1
19343 _ACEOF
19344
19345   LIBS="-lapr-1 $LIBS"
19346
19347 fi
19348
19349
19350
19351 # Check whether --with-apache-header was given.
19352 if test "${with_apache_header+set}" = set; then
19353   withval=$with_apache_header;
19354 fi
19355
19356 if test "x$with_apache_header" = "xyes"; then
19357     { { echo "$as_me:$LINENO: error:
19358 Please specify the --with-apache-header option. And, please specify the place of the header file.
19359
19360 " >&5
19361 echo "$as_me: error:
19362 Please specify the --with-apache-header option. And, please specify the place of the header file.
19363
19364 " >&2;}
19365    { (exit 1); exit 1; }; }
19366 fi
19367
19368
19369 # Check whether --with-apxs was given.
19370 if test "${with_apxs+set}" = set; then
19371   withval=$with_apxs;
19372 fi
19373
19374 if test "x$with_apxs" = "x" ; then
19375   APXS=""
19376 fi
19377 if test "x$with_apxs" = "xyes" ; then
19378     { { echo "$as_me:$LINENO: error:
19379 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19380 " >&5
19381 echo "$as_me: error:
19382 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19383 " >&2;}
19384    { (exit 1); exit 1; }; }
19385 fi
19386
19387
19388 # Check whether --with-apr-config was given.
19389 if test "${with_apr_config+set}" = set; then
19390   withval=$with_apr_config;
19391 fi
19392
19393 if test "x$with_apr_config" = "xyes" ; then
19394     { { echo "$as_me:$LINENO: error:
19395 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19396 " >&5
19397 echo "$as_me: error:
19398 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19399 " >&2;}
19400    { (exit 1); exit 1; }; }
19401 fi
19402
19403
19404 # Check whether --with-apu-config was given.
19405 if test "${with_apu_config+set}" = set; then
19406   withval=$with_apu_config;
19407 fi
19408
19409 if test "x$with_apu_config" = "xyes" ; then
19410     { { echo "$as_me:$LINENO: error:
19411 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19412 " >&5
19413 echo "$as_me: error:
19414 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19415 " >&2;}
19416    { (exit 1); exit 1; }; }
19417 fi
19418
19419
19420 # Check whether --with-pcre-config was given.
19421 if test "${with_pcre_config+set}" = set; then
19422   withval=$with_pcre_config;
19423 fi
19424
19425 if test "x$with_pcre_config" = "xyes" ; then
19426     { { echo "$as_me:$LINENO: error:
19427 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19428 " >&5
19429 echo "$as_me: error:
19430 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19431 " >&2;}
19432    { (exit 1); exit 1; }; }
19433 fi
19434
19435 # Check whether --enable-img-conv-f was given.
19436 if test "${enable_img_conv_f+set}" = set; then
19437   enableval=$enable_img_conv_f;
19438 fi
19439
19440 if test "x$enable_img_conv_f" = "xyes"; then
19441   QDEFS=""
19442 else
19443   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19444 fi
19445
19446
19447 # Check whether --enable-memcache-cookie was given.
19448 if test "${enable_memcache_cookie+set}" = set; then
19449   enableval=$enable_memcache_cookie;
19450 fi
19451
19452 # Check whether --enable-memcached-static was given.
19453 if test "${enable_memcached_static+set}" = set; then
19454   enableval=$enable_memcached_static;
19455 fi
19456
19457
19458 # Check whether --with-memcached-header was given.
19459 if test "${with_memcached_header+set}" = set; then
19460   withval=$with_memcached_header;
19461 fi
19462
19463
19464 # Check whether --with-memcached-lib-dir was given.
19465 if test "${with_memcached_lib_dir+set}" = set; then
19466   withval=$with_memcached_lib_dir;
19467 fi
19468
19469 if test "x$enable_memcache_cookie" = "xyes" ; then
19470         if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
19471     { { echo "$as_me:$LINENO: error:
19472 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19473 " >&5
19474 echo "$as_me: error:
19475 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19476 " >&2;}
19477    { (exit 1); exit 1; }; }
19478   fi
19479   if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
19480     { { echo "$as_me:$LINENO: error:
19481 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19482 " >&5
19483 echo "$as_me: error:
19484 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19485 " >&2;}
19486    { (exit 1); exit 1; }; }
19487   fi
19488   if test "x$enable_memcached_static" = "xyes" ; then
19489     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19490     MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
19491   else
19492     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19493     MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
19494   fi
19495 else
19496         MEMCACHE_COOKIE_DEFS=""
19497   MEMCACHE_COOKIE_LIBS=""
19498 fi
19499 # Check whether --enable-mysql-cookie was given.
19500 if test "${enable_mysql_cookie+set}" = set; then
19501   enableval=$enable_mysql_cookie;
19502 fi
19503
19504
19505 # Check whether --with-mysql-header was given.
19506 if test "${with_mysql_header+set}" = set; then
19507   withval=$with_mysql_header;
19508 fi
19509
19510
19511 # Check whether --with-mysql-lib-dir was given.
19512 if test "${with_mysql_lib_dir+set}" = set; then
19513   withval=$with_mysql_lib_dir;
19514 fi
19515
19516 if test "x$enable_mysql_cookie" = "xyes"; then
19517         if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19518     { { echo "$as_me:$LINENO: error:
19519 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19520 " >&5
19521 echo "$as_me: error:
19522 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19523 " >&2;}
19524    { (exit 1); exit 1; }; }
19525   fi
19526   if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19527     { { echo "$as_me:$LINENO: error:
19528 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19529 " >&5
19530 echo "$as_me: error:
19531 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19532 " >&2;}
19533    { (exit 1); exit 1; }; }
19534   fi
19535   MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19536   MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19537 else
19538         MYSQL_COOKIE_DEFS=""
19539   MYSQL_COOKIE_LIBS=""
19540 fi
19541
19542 # Check whether --enable-dump-log was given.
19543 if test "${enable_dump_log+set}" = set; then
19544   enableval=$enable_dump_log;
19545 fi
19546
19547 if test "x$enable_dump_log" = "xyes"; then
19548   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19549 else
19550     if test "x$enable_dump_log" != "x" ; then
19551         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19552     fi
19553 fi
19554
19555
19556 if test "x$with_apxs" = "x" ; then
19557   # Extract the first word of "apxs2", so it can be a program name with args.
19558 set dummy apxs2; ac_word=$2
19559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19561 if test "${ac_cv_path_APXS2+set}" = set; then
19562   echo $ECHO_N "(cached) $ECHO_C" >&6
19563 else
19564   case $APXS2 in
19565   [\\/]* | ?:[\\/]*)
19566   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19567   ;;
19568   *)
19569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19570 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19571 for as_dir in $as_dummy
19572 do
19573   IFS=$as_save_IFS
19574   test -z "$as_dir" && as_dir=.
19575   for ac_exec_ext in '' $ac_executable_extensions; do
19576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19579     break 2
19580   fi
19581 done
19582 done
19583 IFS=$as_save_IFS
19584
19585   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19586   ;;
19587 esac
19588 fi
19589 APXS2=$ac_cv_path_APXS2
19590 if test -n "$APXS2"; then
19591   { echo "$as_me:$LINENO: result: $APXS2" >&5
19592 echo "${ECHO_T}$APXS2" >&6; }
19593 else
19594   { echo "$as_me:$LINENO: result: no" >&5
19595 echo "${ECHO_T}no" >&6; }
19596 fi
19597
19598
19599   if test "x$APXS2" = "xno"; then
19600     # Extract the first word of "apxs", so it can be a program name with args.
19601 set dummy apxs; ac_word=$2
19602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19604 if test "${ac_cv_path_APXS+set}" = set; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607   case $APXS in
19608   [\\/]* | ?:[\\/]*)
19609   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19610   ;;
19611   *)
19612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19613 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19614 for as_dir in $as_dummy
19615 do
19616   IFS=$as_save_IFS
19617   test -z "$as_dir" && as_dir=.
19618   for ac_exec_ext in '' $ac_executable_extensions; do
19619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19620     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19622     break 2
19623   fi
19624 done
19625 done
19626 IFS=$as_save_IFS
19627
19628   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19629   ;;
19630 esac
19631 fi
19632 APXS=$ac_cv_path_APXS
19633 if test -n "$APXS"; then
19634   { echo "$as_me:$LINENO: result: $APXS" >&5
19635 echo "${ECHO_T}$APXS" >&6; }
19636 else
19637   { echo "$as_me:$LINENO: result: no" >&5
19638 echo "${ECHO_T}no" >&6; }
19639 fi
19640
19641
19642     if test "x$APXS" = "xno" ; then
19643       { { echo "$as_me:$LINENO: error: apxs not found." >&5
19644 echo "$as_me: error: apxs not found." >&2;}
19645    { (exit 1); exit 1; }; }
19646     fi
19647   else
19648     APXS="$APXS2"
19649   fi
19650 fi
19651 if test "x$with_apxs" != "x" ; then
19652   APXS=$with_apxs
19653 fi
19654
19655 # Extract the first word of "libtool", so it can be a program name with args.
19656 set dummy libtool; ac_word=$2
19657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19659 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19660   echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662   case $LIBTOOL in
19663   [\\/]* | ?:[\\/]*)
19664   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19665   ;;
19666   *)
19667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19669 for as_dir in $as_dummy
19670 do
19671   IFS=$as_save_IFS
19672   test -z "$as_dir" && as_dir=.
19673   for ac_exec_ext in '' $ac_executable_extensions; do
19674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19675     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19677     break 2
19678   fi
19679 done
19680 done
19681 IFS=$as_save_IFS
19682
19683   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19684   ;;
19685 esac
19686 fi
19687 LIBTOOL=$ac_cv_path_LIBTOOL
19688 if test -n "$LIBTOOL"; then
19689   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19690 echo "${ECHO_T}$LIBTOOL" >&6; }
19691 else
19692   { echo "$as_me:$LINENO: result: no" >&5
19693 echo "${ECHO_T}no" >&6; }
19694 fi
19695
19696
19697 if test "x$LIBTOOL" = "xno"; then
19698     { { echo "$as_me:$LINENO: error: libtool not found." >&5
19699 echo "$as_me: error: libtool not found." >&2;}
19700    { (exit 1); exit 1; }; }
19701 fi
19702
19703
19704 # Extract the first word of "Wand-config", so it can be a program name with args.
19705 set dummy Wand-config; ac_word=$2
19706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19708 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   case $WAND_CONFIG in
19712   [\\/]* | ?:[\\/]*)
19713   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19714   ;;
19715   *)
19716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19717 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19718 for as_dir in $as_dummy
19719 do
19720   IFS=$as_save_IFS
19721   test -z "$as_dir" && as_dir=.
19722   for ac_exec_ext in '' $ac_executable_extensions; do
19723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19724     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19726     break 2
19727   fi
19728 done
19729 done
19730 IFS=$as_save_IFS
19731
19732   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19733   ;;
19734 esac
19735 fi
19736 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19737 if test -n "$WAND_CONFIG"; then
19738   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19739 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19740 else
19741   { echo "$as_me:$LINENO: result: no" >&5
19742 echo "${ECHO_T}no" >&6; }
19743 fi
19744
19745
19746 if test "x$WAND_CONFIG" = "xno" ; then
19747     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19748 echo "$as_me: error: wand-config not found." >&2;}
19749    { (exit 1); exit 1; }; }
19750 fi
19751
19752 if test "x$with_apr_config" = "x" ; then
19753   # Extract the first word of "apr-config", so it can be a program name with args.
19754 set dummy apr-config; ac_word=$2
19755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19757 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   case $APR_CONFIG in
19761   [\\/]* | ?:[\\/]*)
19762   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19763   ;;
19764   *)
19765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19767 for as_dir in $as_dummy
19768 do
19769   IFS=$as_save_IFS
19770   test -z "$as_dir" && as_dir=.
19771   for ac_exec_ext in '' $ac_executable_extensions; do
19772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19773     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19775     break 2
19776   fi
19777 done
19778 done
19779 IFS=$as_save_IFS
19780
19781   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19782   ;;
19783 esac
19784 fi
19785 APR_CONFIG=$ac_cv_path_APR_CONFIG
19786 if test -n "$APR_CONFIG"; then
19787   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19788 echo "${ECHO_T}$APR_CONFIG" >&6; }
19789 else
19790   { echo "$as_me:$LINENO: result: no" >&5
19791 echo "${ECHO_T}no" >&6; }
19792 fi
19793
19794
19795   if test "x$APR_CONFIG" = "xno" ; then
19796     # Extract the first word of "apr-1-config", so it can be a program name with args.
19797 set dummy apr-1-config; ac_word=$2
19798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19800 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   case $APR_1_CONFIG in
19804   [\\/]* | ?:[\\/]*)
19805   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19806   ;;
19807   *)
19808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19809 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19810 for as_dir in $as_dummy
19811 do
19812   IFS=$as_save_IFS
19813   test -z "$as_dir" && as_dir=.
19814   for ac_exec_ext in '' $ac_executable_extensions; do
19815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19816     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19818     break 2
19819   fi
19820 done
19821 done
19822 IFS=$as_save_IFS
19823
19824   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19825   ;;
19826 esac
19827 fi
19828 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19829 if test -n "$APR_1_CONFIG"; then
19830   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19831 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19832 else
19833   { echo "$as_me:$LINENO: result: no" >&5
19834 echo "${ECHO_T}no" >&6; }
19835 fi
19836
19837
19838     if test "x$APR_1_CONFIG" = "xno" ; then
19839       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19840 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19841    { (exit 1); exit 1; }; }
19842     else
19843       APR_CONFIG="$APR_1_CONFIG"
19844     fi
19845   fi
19846 fi
19847 if test "x$with_apr_config" != "x" ; then
19848   APR_CONFIG=$with_apr_config
19849 fi
19850 if test "x$with_apu_config" = "x" ; then
19851   # Extract the first word of "apu-config", so it can be a program name with args.
19852 set dummy apu-config; ac_word=$2
19853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19855 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   case $APU_CONFIG in
19859   [\\/]* | ?:[\\/]*)
19860   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19861   ;;
19862   *)
19863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19865 for as_dir in $as_dummy
19866 do
19867   IFS=$as_save_IFS
19868   test -z "$as_dir" && as_dir=.
19869   for ac_exec_ext in '' $ac_executable_extensions; do
19870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19871     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19873     break 2
19874   fi
19875 done
19876 done
19877 IFS=$as_save_IFS
19878
19879   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19880   ;;
19881 esac
19882 fi
19883 APU_CONFIG=$ac_cv_path_APU_CONFIG
19884 if test -n "$APU_CONFIG"; then
19885   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19886 echo "${ECHO_T}$APU_CONFIG" >&6; }
19887 else
19888   { echo "$as_me:$LINENO: result: no" >&5
19889 echo "${ECHO_T}no" >&6; }
19890 fi
19891
19892
19893   if test "x$APU_CONFIG" = "xno" ; then
19894     # Extract the first word of "apu-1-config", so it can be a program name with args.
19895 set dummy apu-1-config; ac_word=$2
19896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19898 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19899   echo $ECHO_N "(cached) $ECHO_C" >&6
19900 else
19901   case $APU_1_CONFIG in
19902   [\\/]* | ?:[\\/]*)
19903   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19904   ;;
19905   *)
19906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19907 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19908 for as_dir in $as_dummy
19909 do
19910   IFS=$as_save_IFS
19911   test -z "$as_dir" && as_dir=.
19912   for ac_exec_ext in '' $ac_executable_extensions; do
19913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19914     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19916     break 2
19917   fi
19918 done
19919 done
19920 IFS=$as_save_IFS
19921
19922   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19923   ;;
19924 esac
19925 fi
19926 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19927 if test -n "$APU_1_CONFIG"; then
19928   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19929 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19930 else
19931   { echo "$as_me:$LINENO: result: no" >&5
19932 echo "${ECHO_T}no" >&6; }
19933 fi
19934
19935
19936     if test "x$APU_1_CONFIG" = "xno" ; then
19937       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19938 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19939    { (exit 1); exit 1; }; }
19940     else
19941       APU_CONFIG="$APU_1_CONFIG"
19942     fi
19943   fi
19944 fi
19945 if test "x$with_apu_config" != "x" ; then
19946   APU_CONFIG=$with_apu_config
19947 fi
19948
19949
19950 case $host_os in
19951   freebsd*)
19952     CFLAGS="${CFLAGS} -I/usr/local/include "
19953     ;;
19954 esac
19955
19956 if test "x${with_apache_header}" = "x" ; then
19957   with_apache_header=`${APXS} -q includedir`
19958 fi
19959
19960 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19961 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19962 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19963 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
19964 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
19965 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19966 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19967 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19968 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
19969 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19970 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
19971 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
19972 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19973
19974 # Checks for header files.
19975 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19976 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19977 if test "${ac_cv_header_stdc+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 #include <stdlib.h>
19987 #include <stdarg.h>
19988 #include <string.h>
19989 #include <float.h>
19990
19991 int
19992 main ()
19993 {
19994
19995   ;
19996   return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
20001 case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006   (eval "$ac_compile") 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } && {
20013          test -z "$ac_c_werror_flag" ||
20014          test ! -s conftest.err
20015        } && test -s conftest.$ac_objext; then
20016   ac_cv_header_stdc=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021         ac_cv_header_stdc=no
20022 fi
20023
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025
20026 if test $ac_cv_header_stdc = yes; then
20027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20028   cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034 #include <string.h>
20035
20036 _ACEOF
20037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20038   $EGREP "memchr" >/dev/null 2>&1; then
20039   :
20040 else
20041   ac_cv_header_stdc=no
20042 fi
20043 rm -f conftest*
20044
20045 fi
20046
20047 if test $ac_cv_header_stdc = yes; then
20048   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20049   cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h.  */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h.  */
20055 #include <stdlib.h>
20056
20057 _ACEOF
20058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059   $EGREP "free" >/dev/null 2>&1; then
20060   :
20061 else
20062   ac_cv_header_stdc=no
20063 fi
20064 rm -f conftest*
20065
20066 fi
20067
20068 if test $ac_cv_header_stdc = yes; then
20069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20070   if test "$cross_compiling" = yes; then
20071   :
20072 else
20073   cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079 #include <ctype.h>
20080 #include <stdlib.h>
20081 #if ((' ' & 0x0FF) == 0x020)
20082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20084 #else
20085 # define ISLOWER(c) \
20086                    (('a' <= (c) && (c) <= 'i') \
20087                      || ('j' <= (c) && (c) <= 'r') \
20088                      || ('s' <= (c) && (c) <= 'z'))
20089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20090 #endif
20091
20092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20093 int
20094 main ()
20095 {
20096   int i;
20097   for (i = 0; i < 256; i++)
20098     if (XOR (islower (i), ISLOWER (i))
20099         || toupper (i) != TOUPPER (i))
20100       return 2;
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108   *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111   (eval "$ac_link") 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115   { (case "(($ac_try" in
20116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117   *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120   (eval "$ac_try") 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   :
20125 else
20126   echo "$as_me: program exited with status $ac_status" >&5
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 ( exit $ac_status )
20131 ac_cv_header_stdc=no
20132 fi
20133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 fi
20135
20136
20137 fi
20138 fi
20139 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20140 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20141 if test $ac_cv_header_stdc = yes; then
20142
20143 cat >>confdefs.h <<\_ACEOF
20144 #define STDC_HEADERS 1
20145 _ACEOF
20146
20147 fi
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20158 do
20159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20161   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20164   echo $ECHO_N "(cached) $ECHO_C" >&6
20165 fi
20166 ac_res=`eval echo '${'$as_ac_Header'}'`
20167                { echo "$as_me:$LINENO: result: $ac_res" >&5
20168 echo "${ECHO_T}$ac_res" >&6; }
20169 else
20170   # Is the header compilable?
20171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h.  */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h.  */
20179 $ac_includes_default
20180 #include <$ac_header>
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186   *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189   (eval "$ac_compile") 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } && {
20196          test -z "$ac_c_werror_flag" ||
20197          test ! -s conftest.err
20198        } && test -s conftest.$ac_objext; then
20199   ac_header_compiler=yes
20200 else
20201   echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204         ac_header_compiler=no
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20209 echo "${ECHO_T}$ac_header_compiler" >&6; }
20210
20211 # Is the header present?
20212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 #include <$ac_header>
20221 _ACEOF
20222 if { (ac_try="$ac_cpp conftest.$ac_ext"
20223 case "(($ac_try" in
20224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225   *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20229   ac_status=$?
20230   grep -v '^ *+' conftest.er1 >conftest.err
20231   rm -f conftest.er1
20232   cat conftest.err >&5
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); } >/dev/null && {
20235          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20236          test ! -s conftest.err
20237        }; then
20238   ac_header_preproc=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243   ac_header_preproc=no
20244 fi
20245
20246 rm -f conftest.err conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20248 echo "${ECHO_T}$ac_header_preproc" >&6; }
20249
20250 # So?  What about this header?
20251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20252   yes:no: )
20253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20257     ac_header_preproc=yes
20258     ;;
20259   no:yes:* )
20260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20272     ( cat <<\_ASBOX
20273 ## ---------------------------------------- ##
20274 ## Report this to konn@users.sourceforge.jp ##
20275 ## ---------------------------------------- ##
20276 _ASBOX
20277      ) | sed "s/^/$as_me: WARNING:     /" >&2
20278     ;;
20279 esac
20280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20283   echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285   eval "$as_ac_Header=\$ac_header_preproc"
20286 fi
20287 ac_res=`eval echo '${'$as_ac_Header'}'`
20288                { echo "$as_me:$LINENO: result: $ac_res" >&5
20289 echo "${ECHO_T}$ac_res" >&6; }
20290
20291 fi
20292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20293   cat >>confdefs.h <<_ACEOF
20294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20295 _ACEOF
20296
20297 fi
20298
20299 done
20300
20301 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20302
20303
20304 for ac_header in apr_shm.h apr_global_mutex.h
20305 do
20306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20308   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 fi
20313 ac_res=`eval echo '${'$as_ac_Header'}'`
20314                { echo "$as_me:$LINENO: result: $ac_res" >&5
20315 echo "${ECHO_T}$ac_res" >&6; }
20316 else
20317   # Is the header compilable?
20318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h.  */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h.  */
20326 $ac_includes_default
20327 #include <$ac_header>
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_compile") 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } && {
20343          test -z "$ac_c_werror_flag" ||
20344          test ! -s conftest.err
20345        } && test -s conftest.$ac_objext; then
20346   ac_header_compiler=yes
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351         ac_header_compiler=no
20352 fi
20353
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20356 echo "${ECHO_T}$ac_header_compiler" >&6; }
20357
20358 # Is the header present?
20359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20361 cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h.  */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h.  */
20367 #include <$ac_header>
20368 _ACEOF
20369 if { (ac_try="$ac_cpp conftest.$ac_ext"
20370 case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } >/dev/null && {
20382          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20383          test ! -s conftest.err
20384        }; then
20385   ac_header_preproc=yes
20386 else
20387   echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390   ac_header_preproc=no
20391 fi
20392
20393 rm -f conftest.err conftest.$ac_ext
20394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20395 echo "${ECHO_T}$ac_header_preproc" >&6; }
20396
20397 # So?  What about this header?
20398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20399   yes:no: )
20400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20404     ac_header_preproc=yes
20405     ;;
20406   no:yes:* )
20407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20419     ( cat <<\_ASBOX
20420 ## ---------------------------------------- ##
20421 ## Report this to konn@users.sourceforge.jp ##
20422 ## ---------------------------------------- ##
20423 _ASBOX
20424      ) | sed "s/^/$as_me: WARNING:     /" >&2
20425     ;;
20426 esac
20427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20430   echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432   eval "$as_ac_Header=\$ac_header_preproc"
20433 fi
20434 ac_res=`eval echo '${'$as_ac_Header'}'`
20435                { echo "$as_me:$LINENO: result: $ac_res" >&5
20436 echo "${ECHO_T}$ac_res" >&6; }
20437
20438 fi
20439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20440   cat >>confdefs.h <<_ACEOF
20441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20442 _ACEOF
20443
20444 fi
20445
20446 done
20447
20448
20449 for ac_header in apr.h
20450 do
20451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20453   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20456   echo $ECHO_N "(cached) $ECHO_C" >&6
20457 fi
20458 ac_res=`eval echo '${'$as_ac_Header'}'`
20459                { echo "$as_me:$LINENO: result: $ac_res" >&5
20460 echo "${ECHO_T}$ac_res" >&6; }
20461 else
20462   # Is the header compilable?
20463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 $ac_includes_default
20472 #include <$ac_header>
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_compile") 2>conftest.er1
20482   ac_status=$?
20483   grep -v '^ *+' conftest.er1 >conftest.err
20484   rm -f conftest.er1
20485   cat conftest.err >&5
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); } && {
20488          test -z "$ac_c_werror_flag" ||
20489          test ! -s conftest.err
20490        } && test -s conftest.$ac_objext; then
20491   ac_header_compiler=yes
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496         ac_header_compiler=no
20497 fi
20498
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501 echo "${ECHO_T}$ac_header_compiler" >&6; }
20502
20503 # Is the header present?
20504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20506 cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h.  */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h.  */
20512 #include <$ac_header>
20513 _ACEOF
20514 if { (ac_try="$ac_cpp conftest.$ac_ext"
20515 case "(($ac_try" in
20516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517   *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20521   ac_status=$?
20522   grep -v '^ *+' conftest.er1 >conftest.err
20523   rm -f conftest.er1
20524   cat conftest.err >&5
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } >/dev/null && {
20527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20528          test ! -s conftest.err
20529        }; then
20530   ac_header_preproc=yes
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535   ac_header_preproc=no
20536 fi
20537
20538 rm -f conftest.err conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20540 echo "${ECHO_T}$ac_header_preproc" >&6; }
20541
20542 # So?  What about this header?
20543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20544   yes:no: )
20545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20549     ac_header_preproc=yes
20550     ;;
20551   no:yes:* )
20552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20564     ( cat <<\_ASBOX
20565 ## ---------------------------------------- ##
20566 ## Report this to konn@users.sourceforge.jp ##
20567 ## ---------------------------------------- ##
20568 _ASBOX
20569      ) | sed "s/^/$as_me: WARNING:     /" >&2
20570     ;;
20571 esac
20572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20575   echo $ECHO_N "(cached) $ECHO_C" >&6
20576 else
20577   eval "$as_ac_Header=\$ac_header_preproc"
20578 fi
20579 ac_res=`eval echo '${'$as_ac_Header'}'`
20580                { echo "$as_me:$LINENO: result: $ac_res" >&5
20581 echo "${ECHO_T}$ac_res" >&6; }
20582
20583 fi
20584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20585   cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20587 _ACEOF
20588
20589 fi
20590
20591 done
20592
20593
20594 for ac_header in ap_config.h
20595 do
20596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 fi
20603 ac_res=`eval echo '${'$as_ac_Header'}'`
20604                { echo "$as_me:$LINENO: result: $ac_res" >&5
20605 echo "${ECHO_T}$ac_res" >&6; }
20606 else
20607   # Is the header compilable?
20608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 $ac_includes_default
20617 #include <$ac_header>
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_compile") 2>conftest.er1
20627   ac_status=$?
20628   grep -v '^ *+' conftest.er1 >conftest.err
20629   rm -f conftest.er1
20630   cat conftest.err >&5
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } && {
20633          test -z "$ac_c_werror_flag" ||
20634          test ! -s conftest.err
20635        } && test -s conftest.$ac_objext; then
20636   ac_header_compiler=yes
20637 else
20638   echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641         ac_header_compiler=no
20642 fi
20643
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20646 echo "${ECHO_T}$ac_header_compiler" >&6; }
20647
20648 # Is the header present?
20649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20651 cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #include <$ac_header>
20658 _ACEOF
20659 if { (ac_try="$ac_cpp conftest.$ac_ext"
20660 case "(($ac_try" in
20661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662   *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20666   ac_status=$?
20667   grep -v '^ *+' conftest.er1 >conftest.err
20668   rm -f conftest.er1
20669   cat conftest.err >&5
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } >/dev/null && {
20672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20673          test ! -s conftest.err
20674        }; then
20675   ac_header_preproc=yes
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680   ac_header_preproc=no
20681 fi
20682
20683 rm -f conftest.err conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20685 echo "${ECHO_T}$ac_header_preproc" >&6; }
20686
20687 # So?  What about this header?
20688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20689   yes:no: )
20690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20694     ac_header_preproc=yes
20695     ;;
20696   no:yes:* )
20697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20709     ( cat <<\_ASBOX
20710 ## ---------------------------------------- ##
20711 ## Report this to konn@users.sourceforge.jp ##
20712 ## ---------------------------------------- ##
20713 _ASBOX
20714      ) | sed "s/^/$as_me: WARNING:     /" >&2
20715     ;;
20716 esac
20717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20720   echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20722   eval "$as_ac_Header=\$ac_header_preproc"
20723 fi
20724 ac_res=`eval echo '${'$as_ac_Header'}'`
20725                { echo "$as_me:$LINENO: result: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20727
20728 fi
20729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20730   cat >>confdefs.h <<_ACEOF
20731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20732 _ACEOF
20733
20734 fi
20735
20736 done
20737
20738 #AC_CHECK_HEADERS([ap_regex.h],
20739 #  AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
20740 #[[
20741 ##ifdef HAVE_APR_H
20742 ##include "apr.h"
20743 ##endif
20744 ##ifdef HAVE_AP_CONFIG_H
20745 ##include "ap_config.h"
20746 ##endif
20747 #]])
20748
20749 for ac_header in ap_regex.h
20750 do
20751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20753   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 fi
20758 ac_res=`eval echo '${'$as_ac_Header'}'`
20759                { echo "$as_me:$LINENO: result: $ac_res" >&5
20760 echo "${ECHO_T}$ac_res" >&6; }
20761 else
20762   # Is the header compilable?
20763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 $ac_includes_default
20772 #include <$ac_header>
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_compile") 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } && {
20788          test -z "$ac_c_werror_flag" ||
20789          test ! -s conftest.err
20790        } && test -s conftest.$ac_objext; then
20791   ac_header_compiler=yes
20792 else
20793   echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796         ac_header_compiler=no
20797 fi
20798
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20801 echo "${ECHO_T}$ac_header_compiler" >&6; }
20802
20803 # Is the header present?
20804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20806 cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812 #include <$ac_header>
20813 _ACEOF
20814 if { (ac_try="$ac_cpp conftest.$ac_ext"
20815 case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20821   ac_status=$?
20822   grep -v '^ *+' conftest.er1 >conftest.err
20823   rm -f conftest.er1
20824   cat conftest.err >&5
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); } >/dev/null && {
20827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20828          test ! -s conftest.err
20829        }; then
20830   ac_header_preproc=yes
20831 else
20832   echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835   ac_header_preproc=no
20836 fi
20837
20838 rm -f conftest.err conftest.$ac_ext
20839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20840 echo "${ECHO_T}$ac_header_preproc" >&6; }
20841
20842 # So?  What about this header?
20843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20844   yes:no: )
20845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20849     ac_header_preproc=yes
20850     ;;
20851   no:yes:* )
20852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20864     ( cat <<\_ASBOX
20865 ## ---------------------------------------- ##
20866 ## Report this to konn@users.sourceforge.jp ##
20867 ## ---------------------------------------- ##
20868 _ASBOX
20869      ) | sed "s/^/$as_me: WARNING:     /" >&2
20870     ;;
20871 esac
20872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20875   echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877   eval "$as_ac_Header=\$ac_header_preproc"
20878 fi
20879 ac_res=`eval echo '${'$as_ac_Header'}'`
20880                { echo "$as_me:$LINENO: result: $ac_res" >&5
20881 echo "${ECHO_T}$ac_res" >&6; }
20882
20883 fi
20884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20885   cat >>confdefs.h <<_ACEOF
20886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20887 _ACEOF
20888  use_pcre_flag="no"
20889 else
20890   use_pcre_flag="yes"
20891 fi
20892
20893 done
20894
20895 if test "x$use_pcre_flag" = "xyes" ; then
20896   if test "x$with_pcre_config" = "x" ; then
20897     # Extract the first word of "pcre-config", so it can be a program name with args.
20898 set dummy pcre-config; ac_word=$2
20899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20901 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904   case $PCRE_CONFIG in
20905   [\\/]* | ?:[\\/]*)
20906   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
20907   ;;
20908   *)
20909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20911 for as_dir in $as_dummy
20912 do
20913   IFS=$as_save_IFS
20914   test -z "$as_dir" && as_dir=.
20915   for ac_exec_ext in '' $ac_executable_extensions; do
20916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20917     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20919     break 2
20920   fi
20921 done
20922 done
20923 IFS=$as_save_IFS
20924
20925   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
20926   ;;
20927 esac
20928 fi
20929 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
20930 if test -n "$PCRE_CONFIG"; then
20931   { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
20932 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
20933 else
20934   { echo "$as_me:$LINENO: result: no" >&5
20935 echo "${ECHO_T}no" >&6; }
20936 fi
20937
20938
20939     if test "x$PCRE_CONFIG" = "xno" ; then
20940       # Extract the first word of "pcre-1-config", so it can be a program name with args.
20941 set dummy pcre-1-config; ac_word=$2
20942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20944 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   case $PCRE_1_CONFIG in
20948   [\\/]* | ?:[\\/]*)
20949   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
20950   ;;
20951   *)
20952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20953 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20954 for as_dir in $as_dummy
20955 do
20956   IFS=$as_save_IFS
20957   test -z "$as_dir" && as_dir=.
20958   for ac_exec_ext in '' $ac_executable_extensions; do
20959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20960     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20962     break 2
20963   fi
20964 done
20965 done
20966 IFS=$as_save_IFS
20967
20968   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
20969   ;;
20970 esac
20971 fi
20972 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
20973 if test -n "$PCRE_1_CONFIG"; then
20974   { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
20975 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
20976 else
20977   { echo "$as_me:$LINENO: result: no" >&5
20978 echo "${ECHO_T}no" >&6; }
20979 fi
20980
20981
20982       if test "x$PCRE_1_CONFIG" = "xno" ; then
20983         { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
20984 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
20985    { (exit 1); exit 1; }; }
20986       else
20987         PCRE_CONFIG="$PCRE_1_CONFIG"
20988       fi
20989     fi
20990   fi
20991   if test "x$with_pcre_config" != "x" ; then
20992     PCRE_CONFIG=$with_pcre_config
20993   fi
20994   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
20995 else
20996
20997 cat >>confdefs.h <<\_ACEOF
20998 #define HAVE_AP_REGEX_H 1
20999 _ACEOF
21000
21001 fi
21002
21003 # Checks for typedefs, structures, and compiler characteristics.
21004 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21005 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21006 if test "${ac_cv_c_const+set}" = set; then
21007   echo $ECHO_N "(cached) $ECHO_C" >&6
21008 else
21009   cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h.  */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h.  */
21015
21016 int
21017 main ()
21018 {
21019 /* FIXME: Include the comments suggested by Paul. */
21020 #ifndef __cplusplus
21021   /* Ultrix mips cc rejects this.  */
21022   typedef int charset[2];
21023   const charset cs;
21024   /* SunOS 4.1.1 cc rejects this.  */
21025   char const *const *pcpcc;
21026   char **ppc;
21027   /* NEC SVR4.0.2 mips cc rejects this.  */
21028   struct point {int x, y;};
21029   static struct point const zero = {0,0};
21030   /* AIX XL C 1.02.0.0 rejects this.
21031      It does not let you subtract one const X* pointer from another in
21032      an arm of an if-expression whose if-part is not a constant
21033      expression */
21034   const char *g = "string";
21035   pcpcc = &g + (g ? g-g : 0);
21036   /* HPUX 7.0 cc rejects these. */
21037   ++pcpcc;
21038   ppc = (char**) pcpcc;
21039   pcpcc = (char const *const *) ppc;
21040   { /* SCO 3.2v4 cc rejects this.  */
21041     char *t;
21042     char const *s = 0 ? (char *) 0 : (char const *) 0;
21043
21044     *t++ = 0;
21045     if (s) return 0;
21046   }
21047   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21048     int x[] = {25, 17};
21049     const int *foo = &x[0];
21050     ++foo;
21051   }
21052   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21053     typedef const int *iptr;
21054     iptr p = 0;
21055     ++p;
21056   }
21057   { /* AIX XL C 1.02.0.0 rejects this saying
21058        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21059     struct s { int j; const int *ap[3]; };
21060     struct s *b; b->j = 5;
21061   }
21062   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21063     const int foo = 10;
21064     if (!foo) return 0;
21065   }
21066   return !cs[0] && !zero.x;
21067 #endif
21068
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077   *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080   (eval "$ac_compile") 2>conftest.er1
21081   ac_status=$?
21082   grep -v '^ *+' conftest.er1 >conftest.err
21083   rm -f conftest.er1
21084   cat conftest.err >&5
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } && {
21087          test -z "$ac_c_werror_flag" ||
21088          test ! -s conftest.err
21089        } && test -s conftest.$ac_objext; then
21090   ac_cv_c_const=yes
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095         ac_cv_c_const=no
21096 fi
21097
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 fi
21100 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21101 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21102 if test $ac_cv_c_const = no; then
21103
21104 cat >>confdefs.h <<\_ACEOF
21105 #define const
21106 _ACEOF
21107
21108 fi
21109
21110
21111 # Checks for library functions.
21112
21113 for ac_header in stdlib.h
21114 do
21115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21117   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21120   echo $ECHO_N "(cached) $ECHO_C" >&6
21121 fi
21122 ac_res=`eval echo '${'$as_ac_Header'}'`
21123                { echo "$as_me:$LINENO: result: $ac_res" >&5
21124 echo "${ECHO_T}$ac_res" >&6; }
21125 else
21126   # Is the header compilable?
21127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 $ac_includes_default
21136 #include <$ac_header>
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142   *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145   (eval "$ac_compile") 2>conftest.er1
21146   ac_status=$?
21147   grep -v '^ *+' conftest.er1 >conftest.err
21148   rm -f conftest.er1
21149   cat conftest.err >&5
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } && {
21152          test -z "$ac_c_werror_flag" ||
21153          test ! -s conftest.err
21154        } && test -s conftest.$ac_objext; then
21155   ac_header_compiler=yes
21156 else
21157   echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160         ac_header_compiler=no
21161 fi
21162
21163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21165 echo "${ECHO_T}$ac_header_compiler" >&6; }
21166
21167 # Is the header present?
21168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h.  */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h.  */
21176 #include <$ac_header>
21177 _ACEOF
21178 if { (ac_try="$ac_cpp conftest.$ac_ext"
21179 case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21185   ac_status=$?
21186   grep -v '^ *+' conftest.er1 >conftest.err
21187   rm -f conftest.er1
21188   cat conftest.err >&5
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } >/dev/null && {
21191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21192          test ! -s conftest.err
21193        }; then
21194   ac_header_preproc=yes
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199   ac_header_preproc=no
21200 fi
21201
21202 rm -f conftest.err conftest.$ac_ext
21203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21204 echo "${ECHO_T}$ac_header_preproc" >&6; }
21205
21206 # So?  What about this header?
21207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21208   yes:no: )
21209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21213     ac_header_preproc=yes
21214     ;;
21215   no:yes:* )
21216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21228     ( cat <<\_ASBOX
21229 ## ---------------------------------------- ##
21230 ## Report this to konn@users.sourceforge.jp ##
21231 ## ---------------------------------------- ##
21232 _ASBOX
21233      ) | sed "s/^/$as_me: WARNING:     /" >&2
21234     ;;
21235 esac
21236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21239   echo $ECHO_N "(cached) $ECHO_C" >&6
21240 else
21241   eval "$as_ac_Header=\$ac_header_preproc"
21242 fi
21243 ac_res=`eval echo '${'$as_ac_Header'}'`
21244                { echo "$as_me:$LINENO: result: $ac_res" >&5
21245 echo "${ECHO_T}$ac_res" >&6; }
21246
21247 fi
21248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21249   cat >>confdefs.h <<_ACEOF
21250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21251 _ACEOF
21252
21253 fi
21254
21255 done
21256
21257 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21258 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21259 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21260   echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262   if test "$cross_compiling" = yes; then
21263   ac_cv_func_malloc_0_nonnull=no
21264 else
21265   cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21272 # include <stdlib.h>
21273 #else
21274 char *malloc ();
21275 #endif
21276
21277 int
21278 main ()
21279 {
21280 return ! malloc (0);
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_link") 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21296   { (case "(($ac_try" in
21297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298   *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301   (eval "$ac_try") 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; }; then
21305   ac_cv_func_malloc_0_nonnull=yes
21306 else
21307   echo "$as_me: program exited with status $ac_status" >&5
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311 ( exit $ac_status )
21312 ac_cv_func_malloc_0_nonnull=no
21313 fi
21314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21315 fi
21316
21317
21318 fi
21319 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21320 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21321 if test $ac_cv_func_malloc_0_nonnull = yes; then
21322
21323 cat >>confdefs.h <<\_ACEOF
21324 #define HAVE_MALLOC 1
21325 _ACEOF
21326
21327 else
21328   cat >>confdefs.h <<\_ACEOF
21329 #define HAVE_MALLOC 0
21330 _ACEOF
21331
21332    case " $LIBOBJS " in
21333   *" malloc.$ac_objext "* ) ;;
21334   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21335  ;;
21336 esac
21337
21338
21339 cat >>confdefs.h <<\_ACEOF
21340 #define malloc rpl_malloc
21341 _ACEOF
21342
21343 fi
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21356 do
21357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21361   echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363   cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h.  */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h.  */
21369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21371 #define $ac_func innocuous_$ac_func
21372
21373 /* System header to define __stub macros and hopefully few prototypes,
21374     which can conflict with char $ac_func (); below.
21375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376     <limits.h> exists even on freestanding compilers.  */
21377
21378 #ifdef __STDC__
21379 # include <limits.h>
21380 #else
21381 # include <assert.h>
21382 #endif
21383
21384 #undef $ac_func
21385
21386 /* Override any GCC internal prototype to avoid an error.
21387    Use char because int might match the return type of a GCC
21388    builtin and then its argument prototype would still apply.  */
21389 #ifdef __cplusplus
21390 extern "C"
21391 #endif
21392 char $ac_func ();
21393 /* The GNU C library defines this for functions which it implements
21394     to always fail with ENOSYS.  Some functions are actually named
21395     something starting with __ and the normal name is an alias.  */
21396 #if defined __stub_$ac_func || defined __stub___$ac_func
21397 choke me
21398 #endif
21399
21400 int
21401 main ()
21402 {
21403 return $ac_func ();
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 rm -f conftest.$ac_objext conftest$ac_exeext
21409 if { (ac_try="$ac_link"
21410 case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_link") 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } && {
21422          test -z "$ac_c_werror_flag" ||
21423          test ! -s conftest.err
21424        } && test -s conftest$ac_exeext &&
21425        $as_test_x conftest$ac_exeext; then
21426   eval "$as_ac_var=yes"
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         eval "$as_ac_var=no"
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21435       conftest$ac_exeext conftest.$ac_ext
21436 fi
21437 ac_res=`eval echo '${'$as_ac_var'}'`
21438                { echo "$as_me:$LINENO: result: $ac_res" >&5
21439 echo "${ECHO_T}$ac_res" >&6; }
21440 if test `eval echo '${'$as_ac_var'}'` = yes; then
21441   cat >>confdefs.h <<_ACEOF
21442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21443 _ACEOF
21444
21445 fi
21446 done
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457 ac_config_files="$ac_config_files Makefile src/Makefile support/centos/mod-chxj.spec"
21458
21459 cat >confcache <<\_ACEOF
21460 # This file is a shell script that caches the results of configure
21461 # tests run on this system so they can be shared between configure
21462 # scripts and configure runs, see configure's option --config-cache.
21463 # It is not useful on other systems.  If it contains results you don't
21464 # want to keep, you may remove or edit it.
21465 #
21466 # config.status only pays attention to the cache file if you give it
21467 # the --recheck option to rerun configure.
21468 #
21469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21471 # following values.
21472
21473 _ACEOF
21474
21475 # The following way of writing the cache mishandles newlines in values,
21476 # but we know of no workaround that is simple, portable, and efficient.
21477 # So, we kill variables containing newlines.
21478 # Ultrix sh set writes to stderr and can't be redirected directly,
21479 # and sets the high bit in the cache file unless we assign to the vars.
21480 (
21481   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21482     eval ac_val=\$$ac_var
21483     case $ac_val in #(
21484     *${as_nl}*)
21485       case $ac_var in #(
21486       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21488       esac
21489       case $ac_var in #(
21490       _ | IFS | as_nl) ;; #(
21491       *) $as_unset $ac_var ;;
21492       esac ;;
21493     esac
21494   done
21495
21496   (set) 2>&1 |
21497     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21498     *${as_nl}ac_space=\ *)
21499       # `set' does not quote correctly, so add quotes (double-quote
21500       # substitution turns \\\\ into \\, and sed turns \\ into \).
21501       sed -n \
21502         "s/'/'\\\\''/g;
21503           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21504       ;; #(
21505     *)
21506       # `set' quotes correctly as required by POSIX, so do not add quotes.
21507       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21508       ;;
21509     esac |
21510     sort
21511 ) |
21512   sed '
21513      /^ac_cv_env_/b end
21514      t clear
21515      :clear
21516      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21517      t end
21518      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21519      :end' >>confcache
21520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21521   if test -w "$cache_file"; then
21522     test "x$cache_file" != "x/dev/null" &&
21523       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21524 echo "$as_me: updating cache $cache_file" >&6;}
21525     cat confcache >$cache_file
21526   else
21527     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21529   fi
21530 fi
21531 rm -f confcache
21532
21533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21534 # Let make expand exec_prefix.
21535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21536
21537 DEFS=-DHAVE_CONFIG_H
21538
21539 ac_libobjs=
21540 ac_ltlibobjs=
21541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21542   # 1. Remove the extension, and $U if already installed.
21543   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21544   ac_i=`echo "$ac_i" | sed "$ac_script"`
21545   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21546   #    will be set to the directory where LIBOBJS objects are built.
21547   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21548   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21549 done
21550 LIBOBJS=$ac_libobjs
21551
21552 LTLIBOBJS=$ac_ltlibobjs
21553
21554
21555 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21556   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21557 Usually this means the macro was only invoked conditionally." >&5
21558 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&2;}
21560    { (exit 1); exit 1; }; }
21561 fi
21562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21563   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21564 Usually this means the macro was only invoked conditionally." >&5
21565 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21566 Usually this means the macro was only invoked conditionally." >&2;}
21567    { (exit 1); exit 1; }; }
21568 fi
21569 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21570   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21571 Usually this means the macro was only invoked conditionally." >&5
21572 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21573 Usually this means the macro was only invoked conditionally." >&2;}
21574    { (exit 1); exit 1; }; }
21575 fi
21576
21577 : ${CONFIG_STATUS=./config.status}
21578 ac_clean_files_save=$ac_clean_files
21579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21580 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21581 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21582 cat >$CONFIG_STATUS <<_ACEOF
21583 #! $SHELL
21584 # Generated by $as_me.
21585 # Run this file to recreate the current configuration.
21586 # Compiler output produced by configure, useful for debugging
21587 # configure, is in config.log if it exists.
21588
21589 debug=false
21590 ac_cs_recheck=false
21591 ac_cs_silent=false
21592 SHELL=\${CONFIG_SHELL-$SHELL}
21593 _ACEOF
21594
21595 cat >>$CONFIG_STATUS <<\_ACEOF
21596 ## --------------------- ##
21597 ## M4sh Initialization.  ##
21598 ## --------------------- ##
21599
21600 # Be more Bourne compatible
21601 DUALCASE=1; export DUALCASE # for MKS sh
21602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21603   emulate sh
21604   NULLCMD=:
21605   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21606   # is contrary to our usage.  Disable this feature.
21607   alias -g '${1+"$@"}'='"$@"'
21608   setopt NO_GLOB_SUBST
21609 else
21610   case `(set -o) 2>/dev/null` in
21611   *posix*) set -o posix ;;
21612 esac
21613
21614 fi
21615
21616
21617
21618
21619 # PATH needs CR
21620 # Avoid depending upon Character Ranges.
21621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21624 as_cr_digits='0123456789'
21625 as_cr_alnum=$as_cr_Letters$as_cr_digits
21626
21627 # The user is always right.
21628 if test "${PATH_SEPARATOR+set}" != set; then
21629   echo "#! /bin/sh" >conf$$.sh
21630   echo  "exit 0"   >>conf$$.sh
21631   chmod +x conf$$.sh
21632   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21633     PATH_SEPARATOR=';'
21634   else
21635     PATH_SEPARATOR=:
21636   fi
21637   rm -f conf$$.sh
21638 fi
21639
21640 # Support unset when possible.
21641 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21642   as_unset=unset
21643 else
21644   as_unset=false
21645 fi
21646
21647
21648 # IFS
21649 # We need space, tab and new line, in precisely that order.  Quoting is
21650 # there to prevent editors from complaining about space-tab.
21651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21652 # splitting by setting IFS to empty value.)
21653 as_nl='
21654 '
21655 IFS=" ""        $as_nl"
21656
21657 # Find who we are.  Look in the path if we contain no directory separator.
21658 case $0 in
21659   *[\\/]* ) as_myself=$0 ;;
21660   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21661 for as_dir in $PATH
21662 do
21663   IFS=$as_save_IFS
21664   test -z "$as_dir" && as_dir=.
21665   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21666 done
21667 IFS=$as_save_IFS
21668
21669      ;;
21670 esac
21671 # We did not find ourselves, most probably we were run as `sh COMMAND'
21672 # in which case we are not to be found in the path.
21673 if test "x$as_myself" = x; then
21674   as_myself=$0
21675 fi
21676 if test ! -f "$as_myself"; then
21677   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21678   { (exit 1); exit 1; }
21679 fi
21680
21681 # Work around bugs in pre-3.0 UWIN ksh.
21682 for as_var in ENV MAIL MAILPATH
21683 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21684 done
21685 PS1='$ '
21686 PS2='> '
21687 PS4='+ '
21688
21689 # NLS nuisances.
21690 for as_var in \
21691   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21692   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21693   LC_TELEPHONE LC_TIME
21694 do
21695   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21696     eval $as_var=C; export $as_var
21697   else
21698     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21699   fi
21700 done
21701
21702 # Required to use basename.
21703 if expr a : '\(a\)' >/dev/null 2>&1 &&
21704    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21705   as_expr=expr
21706 else
21707   as_expr=false
21708 fi
21709
21710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21711   as_basename=basename
21712 else
21713   as_basename=false
21714 fi
21715
21716
21717 # Name of the executable.
21718 as_me=`$as_basename -- "$0" ||
21719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21720          X"$0" : 'X\(//\)$' \| \
21721          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21722 echo X/"$0" |
21723     sed '/^.*\/\([^/][^/]*\)\/*$/{
21724             s//\1/
21725             q
21726           }
21727           /^X\/\(\/\/\)$/{
21728             s//\1/
21729             q
21730           }
21731           /^X\/\(\/\).*/{
21732             s//\1/
21733             q
21734           }
21735           s/.*/./; q'`
21736
21737 # CDPATH.
21738 $as_unset CDPATH
21739
21740
21741
21742   as_lineno_1=$LINENO
21743   as_lineno_2=$LINENO
21744   test "x$as_lineno_1" != "x$as_lineno_2" &&
21745   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21746
21747   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21748   # uniformly replaced by the line number.  The first 'sed' inserts a
21749   # line-number line after each line using $LINENO; the second 'sed'
21750   # does the real work.  The second script uses 'N' to pair each
21751   # line-number line with the line containing $LINENO, and appends
21752   # trailing '-' during substitution so that $LINENO is not a special
21753   # case at line end.
21754   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21755   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21756   # E. McMahon (1931-1989) for sed's syntax.  :-)
21757   sed -n '
21758     p
21759     /[$]LINENO/=
21760   ' <$as_myself |
21761     sed '
21762       s/[$]LINENO.*/&-/
21763       t lineno
21764       b
21765       :lineno
21766       N
21767       :loop
21768       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21769       t loop
21770       s/-\n.*//
21771     ' >$as_me.lineno &&
21772   chmod +x "$as_me.lineno" ||
21773     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21774    { (exit 1); exit 1; }; }
21775
21776   # Don't try to exec as it changes $[0], causing all sort of problems
21777   # (the dirname of $[0] is not the place where we might find the
21778   # original and so on.  Autoconf is especially sensitive to this).
21779   . "./$as_me.lineno"
21780   # Exit status is that of the last command.
21781   exit
21782 }
21783
21784
21785 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21786   as_dirname=dirname
21787 else
21788   as_dirname=false
21789 fi
21790
21791 ECHO_C= ECHO_N= ECHO_T=
21792 case `echo -n x` in
21793 -n*)
21794   case `echo 'x\c'` in
21795   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21796   *)   ECHO_C='\c';;
21797   esac;;
21798 *)
21799   ECHO_N='-n';;
21800 esac
21801
21802 if expr a : '\(a\)' >/dev/null 2>&1 &&
21803    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21804   as_expr=expr
21805 else
21806   as_expr=false
21807 fi
21808
21809 rm -f conf$$ conf$$.exe conf$$.file
21810 if test -d conf$$.dir; then
21811   rm -f conf$$.dir/conf$$.file
21812 else
21813   rm -f conf$$.dir
21814   mkdir conf$$.dir
21815 fi
21816 echo >conf$$.file
21817 if ln -s conf$$.file conf$$ 2>/dev/null; then
21818   as_ln_s='ln -s'
21819   # ... but there are two gotchas:
21820   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21821   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21822   # In both cases, we have to default to `cp -p'.
21823   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21824     as_ln_s='cp -p'
21825 elif ln conf$$.file conf$$ 2>/dev/null; then
21826   as_ln_s=ln
21827 else
21828   as_ln_s='cp -p'
21829 fi
21830 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21831 rmdir conf$$.dir 2>/dev/null
21832
21833 if mkdir -p . 2>/dev/null; then
21834   as_mkdir_p=:
21835 else
21836   test -d ./-p && rmdir ./-p
21837   as_mkdir_p=false
21838 fi
21839
21840 if test -x / >/dev/null 2>&1; then
21841   as_test_x='test -x'
21842 else
21843   if ls -dL / >/dev/null 2>&1; then
21844     as_ls_L_option=L
21845   else
21846     as_ls_L_option=
21847   fi
21848   as_test_x='
21849     eval sh -c '\''
21850       if test -d "$1"; then
21851         test -d "$1/.";
21852       else
21853         case $1 in
21854         -*)set "./$1";;
21855         esac;
21856         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21857         ???[sx]*):;;*)false;;esac;fi
21858     '\'' sh
21859   '
21860 fi
21861 as_executable_p=$as_test_x
21862
21863 # Sed expression to map a string onto a valid CPP name.
21864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21865
21866 # Sed expression to map a string onto a valid variable name.
21867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21868
21869
21870 exec 6>&1
21871
21872 # Save the log message, to keep $[0] and so on meaningful, and to
21873 # report actual input values of CONFIG_FILES etc. instead of their
21874 # values after options handling.
21875 ac_log="
21876 This file was extended by mod_chxj $as_me 0.12.27, which was
21877 generated by GNU Autoconf 2.61.  Invocation command line was
21878
21879   CONFIG_FILES    = $CONFIG_FILES
21880   CONFIG_HEADERS  = $CONFIG_HEADERS
21881   CONFIG_LINKS    = $CONFIG_LINKS
21882   CONFIG_COMMANDS = $CONFIG_COMMANDS
21883   $ $0 $@
21884
21885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21886 "
21887
21888 _ACEOF
21889
21890 cat >>$CONFIG_STATUS <<_ACEOF
21891 # Files that config.status was made for.
21892 config_files="$ac_config_files"
21893 config_headers="$ac_config_headers"
21894 config_commands="$ac_config_commands"
21895
21896 _ACEOF
21897
21898 cat >>$CONFIG_STATUS <<\_ACEOF
21899 ac_cs_usage="\
21900 \`$as_me' instantiates files from templates according to the
21901 current configuration.
21902
21903 Usage: $0 [OPTIONS] [FILE]...
21904
21905   -h, --help       print this help, then exit
21906   -V, --version    print version number and configuration settings, then exit
21907   -q, --quiet      do not print progress messages
21908   -d, --debug      don't remove temporary files
21909       --recheck    update $as_me by reconfiguring in the same conditions
21910   --file=FILE[:TEMPLATE]
21911                    instantiate the configuration file FILE
21912   --header=FILE[:TEMPLATE]
21913                    instantiate the configuration header FILE
21914
21915 Configuration files:
21916 $config_files
21917
21918 Configuration headers:
21919 $config_headers
21920
21921 Configuration commands:
21922 $config_commands
21923
21924 Report bugs to <bug-autoconf@gnu.org>."
21925
21926 _ACEOF
21927 cat >>$CONFIG_STATUS <<_ACEOF
21928 ac_cs_version="\\
21929 mod_chxj config.status 0.12.27
21930 configured by $0, generated by GNU Autoconf 2.61,
21931   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21932
21933 Copyright (C) 2006 Free Software Foundation, Inc.
21934 This config.status script is free software; the Free Software Foundation
21935 gives unlimited permission to copy, distribute and modify it."
21936
21937 ac_pwd='$ac_pwd'
21938 srcdir='$srcdir'
21939 INSTALL='$INSTALL'
21940 MKDIR_P='$MKDIR_P'
21941 _ACEOF
21942
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21944 # If no file are specified by the user, then we need to provide default
21945 # value.  By we need to know if files were specified by the user.
21946 ac_need_defaults=:
21947 while test $# != 0
21948 do
21949   case $1 in
21950   --*=*)
21951     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21952     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21953     ac_shift=:
21954     ;;
21955   *)
21956     ac_option=$1
21957     ac_optarg=$2
21958     ac_shift=shift
21959     ;;
21960   esac
21961
21962   case $ac_option in
21963   # Handling of the options.
21964   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21965     ac_cs_recheck=: ;;
21966   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21967     echo "$ac_cs_version"; exit ;;
21968   --debug | --debu | --deb | --de | --d | -d )
21969     debug=: ;;
21970   --file | --fil | --fi | --f )
21971     $ac_shift
21972     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21973     ac_need_defaults=false;;
21974   --header | --heade | --head | --hea )
21975     $ac_shift
21976     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21977     ac_need_defaults=false;;
21978   --he | --h)
21979     # Conflict between --help and --header
21980     { echo "$as_me: error: ambiguous option: $1
21981 Try \`$0 --help' for more information." >&2
21982    { (exit 1); exit 1; }; };;
21983   --help | --hel | -h )
21984     echo "$ac_cs_usage"; exit ;;
21985   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21986   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21987     ac_cs_silent=: ;;
21988
21989   # This is an error.
21990   -*) { echo "$as_me: error: unrecognized option: $1
21991 Try \`$0 --help' for more information." >&2
21992    { (exit 1); exit 1; }; } ;;
21993
21994   *) ac_config_targets="$ac_config_targets $1"
21995      ac_need_defaults=false ;;
21996
21997   esac
21998   shift
21999 done
22000
22001 ac_configure_extra_args=
22002
22003 if $ac_cs_silent; then
22004   exec 6>/dev/null
22005   ac_configure_extra_args="$ac_configure_extra_args --silent"
22006 fi
22007
22008 _ACEOF
22009 cat >>$CONFIG_STATUS <<_ACEOF
22010 if \$ac_cs_recheck; then
22011   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22012   CONFIG_SHELL=$SHELL
22013   export CONFIG_SHELL
22014   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22015 fi
22016
22017 _ACEOF
22018 cat >>$CONFIG_STATUS <<\_ACEOF
22019 exec 5>>config.log
22020 {
22021   echo
22022   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22023 ## Running $as_me. ##
22024 _ASBOX
22025   echo "$ac_log"
22026 } >&5
22027
22028 _ACEOF
22029 cat >>$CONFIG_STATUS <<_ACEOF
22030 #
22031 # INIT-COMMANDS
22032 #
22033 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22034
22035 _ACEOF
22036
22037 cat >>$CONFIG_STATUS <<\_ACEOF
22038
22039 # Handling of arguments.
22040 for ac_config_target in $ac_config_targets
22041 do
22042   case $ac_config_target in
22043     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22044     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22045     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22046     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22047     "support/centos/mod-chxj.spec") CONFIG_FILES="$CONFIG_FILES support/centos/mod-chxj.spec" ;;
22048
22049   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22050 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22051    { (exit 1); exit 1; }; };;
22052   esac
22053 done
22054
22055
22056 # If the user did not use the arguments to specify the items to instantiate,
22057 # then the envvar interface is used.  Set only those that are not.
22058 # We use the long form for the default assignment because of an extremely
22059 # bizarre bug on SunOS 4.1.3.
22060 if $ac_need_defaults; then
22061   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22062   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22063   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22064 fi
22065
22066 # Have a temporary directory for convenience.  Make it in the build tree
22067 # simply because there is no reason against having it here, and in addition,
22068 # creating and moving files from /tmp can sometimes cause problems.
22069 # Hook for its removal unless debugging.
22070 # Note that there is a small window in which the directory will not be cleaned:
22071 # after its creation but before its name has been assigned to `$tmp'.
22072 $debug ||
22073 {
22074   tmp=
22075   trap 'exit_status=$?
22076   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22077 ' 0
22078   trap '{ (exit 1); exit 1; }' 1 2 13 15
22079 }
22080 # Create a (secure) tmp directory for tmp files.
22081
22082 {
22083   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22084   test -n "$tmp" && test -d "$tmp"
22085 }  ||
22086 {
22087   tmp=./conf$$-$RANDOM
22088   (umask 077 && mkdir "$tmp")
22089 } ||
22090 {
22091    echo "$me: cannot create a temporary directory in ." >&2
22092    { (exit 1); exit 1; }
22093 }
22094
22095 #
22096 # Set up the sed scripts for CONFIG_FILES section.
22097 #
22098
22099 # No need to generate the scripts if there are no CONFIG_FILES.
22100 # This happens for instance when ./config.status config.h
22101 if test -n "$CONFIG_FILES"; then
22102
22103 _ACEOF
22104
22105
22106
22107 ac_delim='%!_!# '
22108 for ac_last_try in false false false false false :; do
22109   cat >conf$$subs.sed <<_ACEOF
22110 SHELL!$SHELL$ac_delim
22111 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22112 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22113 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22114 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22115 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22116 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22117 exec_prefix!$exec_prefix$ac_delim
22118 prefix!$prefix$ac_delim
22119 program_transform_name!$program_transform_name$ac_delim
22120 bindir!$bindir$ac_delim
22121 sbindir!$sbindir$ac_delim
22122 libexecdir!$libexecdir$ac_delim
22123 datarootdir!$datarootdir$ac_delim
22124 datadir!$datadir$ac_delim
22125 sysconfdir!$sysconfdir$ac_delim
22126 sharedstatedir!$sharedstatedir$ac_delim
22127 localstatedir!$localstatedir$ac_delim
22128 includedir!$includedir$ac_delim
22129 oldincludedir!$oldincludedir$ac_delim
22130 docdir!$docdir$ac_delim
22131 infodir!$infodir$ac_delim
22132 htmldir!$htmldir$ac_delim
22133 dvidir!$dvidir$ac_delim
22134 pdfdir!$pdfdir$ac_delim
22135 psdir!$psdir$ac_delim
22136 libdir!$libdir$ac_delim
22137 localedir!$localedir$ac_delim
22138 mandir!$mandir$ac_delim
22139 DEFS!$DEFS$ac_delim
22140 ECHO_C!$ECHO_C$ac_delim
22141 ECHO_N!$ECHO_N$ac_delim
22142 ECHO_T!$ECHO_T$ac_delim
22143 LIBS!$LIBS$ac_delim
22144 build_alias!$build_alias$ac_delim
22145 host_alias!$host_alias$ac_delim
22146 target_alias!$target_alias$ac_delim
22147 build!$build$ac_delim
22148 build_cpu!$build_cpu$ac_delim
22149 build_vendor!$build_vendor$ac_delim
22150 build_os!$build_os$ac_delim
22151 host!$host$ac_delim
22152 host_cpu!$host_cpu$ac_delim
22153 host_vendor!$host_vendor$ac_delim
22154 host_os!$host_os$ac_delim
22155 target!$target$ac_delim
22156 target_cpu!$target_cpu$ac_delim
22157 target_vendor!$target_vendor$ac_delim
22158 target_os!$target_os$ac_delim
22159 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22160 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22161 INSTALL_DATA!$INSTALL_DATA$ac_delim
22162 am__isrc!$am__isrc$ac_delim
22163 CYGPATH_W!$CYGPATH_W$ac_delim
22164 PACKAGE!$PACKAGE$ac_delim
22165 VERSION!$VERSION$ac_delim
22166 ACLOCAL!$ACLOCAL$ac_delim
22167 AUTOCONF!$AUTOCONF$ac_delim
22168 AUTOMAKE!$AUTOMAKE$ac_delim
22169 AUTOHEADER!$AUTOHEADER$ac_delim
22170 MAKEINFO!$MAKEINFO$ac_delim
22171 install_sh!$install_sh$ac_delim
22172 STRIP!$STRIP$ac_delim
22173 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22174 mkdir_p!$mkdir_p$ac_delim
22175 AWK!$AWK$ac_delim
22176 SET_MAKE!$SET_MAKE$ac_delim
22177 am__leading_dot!$am__leading_dot$ac_delim
22178 AMTAR!$AMTAR$ac_delim
22179 am__tar!$am__tar$ac_delim
22180 am__untar!$am__untar$ac_delim
22181 CC!$CC$ac_delim
22182 CFLAGS!$CFLAGS$ac_delim
22183 LDFLAGS!$LDFLAGS$ac_delim
22184 CPPFLAGS!$CPPFLAGS$ac_delim
22185 ac_ct_CC!$ac_ct_CC$ac_delim
22186 EXEEXT!$EXEEXT$ac_delim
22187 OBJEXT!$OBJEXT$ac_delim
22188 DEPDIR!$DEPDIR$ac_delim
22189 am__include!$am__include$ac_delim
22190 am__quote!$am__quote$ac_delim
22191 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22192 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22193 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22194 CCDEPMODE!$CCDEPMODE$ac_delim
22195 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22196 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22197 GREP!$GREP$ac_delim
22198 EGREP!$EGREP$ac_delim
22199 LN_S!$LN_S$ac_delim
22200 ECHO!$ECHO$ac_delim
22201 AR!$AR$ac_delim
22202 RANLIB!$RANLIB$ac_delim
22203 CPP!$CPP$ac_delim
22204 CXX!$CXX$ac_delim
22205 CXXFLAGS!$CXXFLAGS$ac_delim
22206 ac_ct_CXX!$ac_ct_CXX$ac_delim
22207 _ACEOF
22208
22209   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22210     break
22211   elif $ac_last_try; then
22212     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22213 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22214    { (exit 1); exit 1; }; }
22215   else
22216     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22217   fi
22218 done
22219
22220 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22221 if test -n "$ac_eof"; then
22222   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22223   ac_eof=`expr $ac_eof + 1`
22224 fi
22225
22226 cat >>$CONFIG_STATUS <<_ACEOF
22227 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22229 _ACEOF
22230 sed '
22231 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22232 s/^/s,@/; s/!/@,|#_!!_#|/
22233 :n
22234 t n
22235 s/'"$ac_delim"'$/,g/; t
22236 s/$/\\/; p
22237 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22238 ' >>$CONFIG_STATUS <conf$$subs.sed
22239 rm -f conf$$subs.sed
22240 cat >>$CONFIG_STATUS <<_ACEOF
22241 CEOF$ac_eof
22242 _ACEOF
22243
22244
22245 ac_delim='%!_!# '
22246 for ac_last_try in false false false false false :; do
22247   cat >conf$$subs.sed <<_ACEOF
22248 CXXDEPMODE!$CXXDEPMODE$ac_delim
22249 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22250 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22251 CXXCPP!$CXXCPP$ac_delim
22252 F77!$F77$ac_delim
22253 FFLAGS!$FFLAGS$ac_delim
22254 ac_ct_F77!$ac_ct_F77$ac_delim
22255 LIBTOOL!$LIBTOOL$ac_delim
22256 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22257 APXS2!$APXS2$ac_delim
22258 APXS!$APXS$ac_delim
22259 WAND_CONFIG!$WAND_CONFIG$ac_delim
22260 APR_CONFIG!$APR_CONFIG$ac_delim
22261 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22262 APU_CONFIG!$APU_CONFIG$ac_delim
22263 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22264 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22265 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22266 LIBOBJS!$LIBOBJS$ac_delim
22267 with_apache_header!$with_apache_header$ac_delim
22268 QDEFS!$QDEFS$ac_delim
22269 DDEFS!$DDEFS$ac_delim
22270 LTLIBOBJS!$LTLIBOBJS$ac_delim
22271 _ACEOF
22272
22273   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
22274     break
22275   elif $ac_last_try; then
22276     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22277 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22278    { (exit 1); exit 1; }; }
22279   else
22280     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22281   fi
22282 done
22283
22284 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22285 if test -n "$ac_eof"; then
22286   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22287   ac_eof=`expr $ac_eof + 1`
22288 fi
22289
22290 cat >>$CONFIG_STATUS <<_ACEOF
22291 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22293 _ACEOF
22294 sed '
22295 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22296 s/^/s,@/; s/!/@,|#_!!_#|/
22297 :n
22298 t n
22299 s/'"$ac_delim"'$/,g/; t
22300 s/$/\\/; p
22301 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22302 ' >>$CONFIG_STATUS <conf$$subs.sed
22303 rm -f conf$$subs.sed
22304 cat >>$CONFIG_STATUS <<_ACEOF
22305 :end
22306 s/|#_!!_#|//g
22307 CEOF$ac_eof
22308 _ACEOF
22309
22310
22311 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22312 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22313 # trailing colons and then remove the whole line if VPATH becomes empty
22314 # (actually we leave an empty line to preserve line numbers).
22315 if test "x$srcdir" = x.; then
22316   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22317 s/:*\$(srcdir):*/:/
22318 s/:*\${srcdir}:*/:/
22319 s/:*@srcdir@:*/:/
22320 s/^\([^=]*=[     ]*\):*/\1/
22321 s/:*$//
22322 s/^[^=]*=[       ]*$//
22323 }'
22324 fi
22325
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22327 fi # test -n "$CONFIG_FILES"
22328
22329
22330 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22331 do
22332   case $ac_tag in
22333   :[FHLC]) ac_mode=$ac_tag; continue;;
22334   esac
22335   case $ac_mode$ac_tag in
22336   :[FHL]*:*);;
22337   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22338 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22339    { (exit 1); exit 1; }; };;
22340   :[FH]-) ac_tag=-:-;;
22341   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22342   esac
22343   ac_save_IFS=$IFS
22344   IFS=:
22345   set x $ac_tag
22346   IFS=$ac_save_IFS
22347   shift
22348   ac_file=$1
22349   shift
22350
22351   case $ac_mode in
22352   :L) ac_source=$1;;
22353   :[FH])
22354     ac_file_inputs=
22355     for ac_f
22356     do
22357       case $ac_f in
22358       -) ac_f="$tmp/stdin";;
22359       *) # Look for the file first in the build tree, then in the source tree
22360          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22361          # because $ac_f cannot contain `:'.
22362          test -f "$ac_f" ||
22363            case $ac_f in
22364            [\\/$]*) false;;
22365            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22366            esac ||
22367            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22368 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22369    { (exit 1); exit 1; }; };;
22370       esac
22371       ac_file_inputs="$ac_file_inputs $ac_f"
22372     done
22373
22374     # Let's still pretend it is `configure' which instantiates (i.e., don't
22375     # use $as_me), people would be surprised to read:
22376     #    /* config.h.  Generated by config.status.  */
22377     configure_input="Generated from "`IFS=:
22378           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22379     if test x"$ac_file" != x-; then
22380       configure_input="$ac_file.  $configure_input"
22381       { echo "$as_me:$LINENO: creating $ac_file" >&5
22382 echo "$as_me: creating $ac_file" >&6;}
22383     fi
22384
22385     case $ac_tag in
22386     *:-:* | *:-) cat >"$tmp/stdin";;
22387     esac
22388     ;;
22389   esac
22390
22391   ac_dir=`$as_dirname -- "$ac_file" ||
22392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22393          X"$ac_file" : 'X\(//\)[^/]' \| \
22394          X"$ac_file" : 'X\(//\)$' \| \
22395          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22396 echo X"$ac_file" |
22397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22398             s//\1/
22399             q
22400           }
22401           /^X\(\/\/\)[^/].*/{
22402             s//\1/
22403             q
22404           }
22405           /^X\(\/\/\)$/{
22406             s//\1/
22407             q
22408           }
22409           /^X\(\/\).*/{
22410             s//\1/
22411             q
22412           }
22413           s/.*/./; q'`
22414   { as_dir="$ac_dir"
22415   case $as_dir in #(
22416   -*) as_dir=./$as_dir;;
22417   esac
22418   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22419     as_dirs=
22420     while :; do
22421       case $as_dir in #(
22422       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22423       *) as_qdir=$as_dir;;
22424       esac
22425       as_dirs="'$as_qdir' $as_dirs"
22426       as_dir=`$as_dirname -- "$as_dir" ||
22427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22428          X"$as_dir" : 'X\(//\)[^/]' \| \
22429          X"$as_dir" : 'X\(//\)$' \| \
22430          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22431 echo X"$as_dir" |
22432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22433             s//\1/
22434             q
22435           }
22436           /^X\(\/\/\)[^/].*/{
22437             s//\1/
22438             q
22439           }
22440           /^X\(\/\/\)$/{
22441             s//\1/
22442             q
22443           }
22444           /^X\(\/\).*/{
22445             s//\1/
22446             q
22447           }
22448           s/.*/./; q'`
22449       test -d "$as_dir" && break
22450     done
22451     test -z "$as_dirs" || eval "mkdir $as_dirs"
22452   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22453 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22454    { (exit 1); exit 1; }; }; }
22455   ac_builddir=.
22456
22457 case "$ac_dir" in
22458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22459 *)
22460   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22461   # A ".." for each directory in $ac_dir_suffix.
22462   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22463   case $ac_top_builddir_sub in
22464   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22465   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22466   esac ;;
22467 esac
22468 ac_abs_top_builddir=$ac_pwd
22469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22470 # for backward compatibility:
22471 ac_top_builddir=$ac_top_build_prefix
22472
22473 case $srcdir in
22474   .)  # We are building in place.
22475     ac_srcdir=.
22476     ac_top_srcdir=$ac_top_builddir_sub
22477     ac_abs_top_srcdir=$ac_pwd ;;
22478   [\\/]* | ?:[\\/]* )  # Absolute name.
22479     ac_srcdir=$srcdir$ac_dir_suffix;
22480     ac_top_srcdir=$srcdir
22481     ac_abs_top_srcdir=$srcdir ;;
22482   *) # Relative name.
22483     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22484     ac_top_srcdir=$ac_top_build_prefix$srcdir
22485     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22486 esac
22487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22488
22489
22490   case $ac_mode in
22491   :F)
22492   #
22493   # CONFIG_FILE
22494   #
22495
22496   case $INSTALL in
22497   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22498   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22499   esac
22500   ac_MKDIR_P=$MKDIR_P
22501   case $MKDIR_P in
22502   [\\/$]* | ?:[\\/]* ) ;;
22503   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22504   esac
22505 _ACEOF
22506
22507 cat >>$CONFIG_STATUS <<\_ACEOF
22508 # If the template does not know about datarootdir, expand it.
22509 # FIXME: This hack should be removed a few years after 2.60.
22510 ac_datarootdir_hack=; ac_datarootdir_seen=
22511
22512 case `sed -n '/datarootdir/ {
22513   p
22514   q
22515 }
22516 /@datadir@/p
22517 /@docdir@/p
22518 /@infodir@/p
22519 /@localedir@/p
22520 /@mandir@/p
22521 ' $ac_file_inputs` in
22522 *datarootdir*) ac_datarootdir_seen=yes;;
22523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22524   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22525 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22526 _ACEOF
22527 cat >>$CONFIG_STATUS <<_ACEOF
22528   ac_datarootdir_hack='
22529   s&@datadir@&$datadir&g
22530   s&@docdir@&$docdir&g
22531   s&@infodir@&$infodir&g
22532   s&@localedir@&$localedir&g
22533   s&@mandir@&$mandir&g
22534     s&\\\${datarootdir}&$datarootdir&g' ;;
22535 esac
22536 _ACEOF
22537
22538 # Neutralize VPATH when `$srcdir' = `.'.
22539 # Shell code in configure.ac might set extrasub.
22540 # FIXME: do we really want to maintain this feature?
22541 cat >>$CONFIG_STATUS <<_ACEOF
22542   sed "$ac_vpsub
22543 $extrasub
22544 _ACEOF
22545 cat >>$CONFIG_STATUS <<\_ACEOF
22546 :t
22547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22548 s&@configure_input@&$configure_input&;t t
22549 s&@top_builddir@&$ac_top_builddir_sub&;t t
22550 s&@srcdir@&$ac_srcdir&;t t
22551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22552 s&@top_srcdir@&$ac_top_srcdir&;t t
22553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22554 s&@builddir@&$ac_builddir&;t t
22555 s&@abs_builddir@&$ac_abs_builddir&;t t
22556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22557 s&@INSTALL@&$ac_INSTALL&;t t
22558 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22559 $ac_datarootdir_hack
22560 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22561
22562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22563   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22564   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22565   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22566 which seems to be undefined.  Please make sure it is defined." >&5
22567 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22568 which seems to be undefined.  Please make sure it is defined." >&2;}
22569
22570   rm -f "$tmp/stdin"
22571   case $ac_file in
22572   -) cat "$tmp/out"; rm -f "$tmp/out";;
22573   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22574   esac
22575  ;;
22576   :H)
22577   #
22578   # CONFIG_HEADER
22579   #
22580 _ACEOF
22581
22582 # Transform confdefs.h into a sed script `conftest.defines', that
22583 # substitutes the proper values into config.h.in to produce config.h.
22584 rm -f conftest.defines conftest.tail
22585 # First, append a space to every undef/define line, to ease matching.
22586 echo 's/$/ /' >conftest.defines
22587 # Then, protect against being on the right side of a sed subst, or in
22588 # an unquoted here document, in config.status.  If some macros were
22589 # called several times there might be several #defines for the same
22590 # symbol, which is useless.  But do not sort them, since the last
22591 # AC_DEFINE must be honored.
22592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22593 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22594 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22595 # PARAMS is the parameter list in the macro definition--in most cases, it's
22596 # just an empty string.
22597 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22598 ac_dB='\\)[      (].*,\\1define\\2'
22599 ac_dC=' '
22600 ac_dD=' ,'
22601
22602 uniq confdefs.h |
22603   sed -n '
22604         t rset
22605         :rset
22606         s/^[     ]*#[    ]*define[       ][      ]*//
22607         t ok
22608         d
22609         :ok
22610         s/[\\&,]/\\&/g
22611         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22612         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22613   ' >>conftest.defines
22614
22615 # Remove the space that was appended to ease matching.
22616 # Then replace #undef with comments.  This is necessary, for
22617 # example, in the case of _POSIX_SOURCE, which is predefined and required
22618 # on some systems where configure will not decide to define it.
22619 # (The regexp can be short, since the line contains either #define or #undef.)
22620 echo 's/ $//
22621 s,^[     #]*u.*,/* & */,' >>conftest.defines
22622
22623 # Break up conftest.defines:
22624 ac_max_sed_lines=50
22625
22626 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22627 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22628 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22629 # et cetera.
22630 ac_in='$ac_file_inputs'
22631 ac_out='"$tmp/out1"'
22632 ac_nxt='"$tmp/out2"'
22633
22634 while :
22635 do
22636   # Write a here document:
22637     cat >>$CONFIG_STATUS <<_ACEOF
22638     # First, check the format of the line:
22639     cat >"\$tmp/defines.sed" <<\\CEOF
22640 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22641 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22642 b
22643 :def
22644 _ACEOF
22645   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22646   echo 'CEOF
22647     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22648   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22649   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22650   grep . conftest.tail >/dev/null || break
22651   rm -f conftest.defines
22652   mv conftest.tail conftest.defines
22653 done
22654 rm -f conftest.defines conftest.tail
22655
22656 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22658   if test x"$ac_file" != x-; then
22659     echo "/* $configure_input  */" >"$tmp/config.h"
22660     cat "$ac_result" >>"$tmp/config.h"
22661     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22662       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22663 echo "$as_me: $ac_file is unchanged" >&6;}
22664     else
22665       rm -f $ac_file
22666       mv "$tmp/config.h" $ac_file
22667     fi
22668   else
22669     echo "/* $configure_input  */"
22670     cat "$ac_result"
22671   fi
22672   rm -f "$tmp/out12"
22673 # Compute $ac_file's index in $config_headers.
22674 _am_stamp_count=1
22675 for _am_header in $config_headers :; do
22676   case $_am_header in
22677     $ac_file | $ac_file:* )
22678       break ;;
22679     * )
22680       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22681   esac
22682 done
22683 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22684 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22685          X$ac_file : 'X\(//\)[^/]' \| \
22686          X$ac_file : 'X\(//\)$' \| \
22687          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22688 echo X$ac_file |
22689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22690             s//\1/
22691             q
22692           }
22693           /^X\(\/\/\)[^/].*/{
22694             s//\1/
22695             q
22696           }
22697           /^X\(\/\/\)$/{
22698             s//\1/
22699             q
22700           }
22701           /^X\(\/\).*/{
22702             s//\1/
22703             q
22704           }
22705           s/.*/./; q'`/stamp-h$_am_stamp_count
22706  ;;
22707
22708   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22709 echo "$as_me: executing $ac_file commands" >&6;}
22710  ;;
22711   esac
22712
22713
22714   case $ac_file$ac_mode in
22715     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22716   # Strip MF so we end up with the name of the file.
22717   mf=`echo "$mf" | sed -e 's/:.*$//'`
22718   # Check whether this is an Automake generated Makefile or not.
22719   # We used to match only the files named `Makefile.in', but
22720   # some people rename them; so instead we look at the file content.
22721   # Grep'ing the first line is not enough: some people post-process
22722   # each Makefile.in and add a new line on top of each file to say so.
22723   # Grep'ing the whole file is not good either: AIX grep has a line
22724   # limit of 2048, but all sed's we know have understand at least 4000.
22725   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22726     dirpart=`$as_dirname -- "$mf" ||
22727 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22728          X"$mf" : 'X\(//\)[^/]' \| \
22729          X"$mf" : 'X\(//\)$' \| \
22730          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22731 echo X"$mf" |
22732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22733             s//\1/
22734             q
22735           }
22736           /^X\(\/\/\)[^/].*/{
22737             s//\1/
22738             q
22739           }
22740           /^X\(\/\/\)$/{
22741             s//\1/
22742             q
22743           }
22744           /^X\(\/\).*/{
22745             s//\1/
22746             q
22747           }
22748           s/.*/./; q'`
22749   else
22750     continue
22751   fi
22752   # Extract the definition of DEPDIR, am__include, and am__quote
22753   # from the Makefile without running `make'.
22754   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22755   test -z "$DEPDIR" && continue
22756   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22757   test -z "am__include" && continue
22758   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22759   # When using ansi2knr, U may be empty or an underscore; expand it
22760   U=`sed -n 's/^U = //p' < "$mf"`
22761   # Find all dependency output files, they are included files with
22762   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22763   # simplest approach to changing $(DEPDIR) to its actual value in the
22764   # expansion.
22765   for file in `sed -n "
22766     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22767        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22768     # Make sure the directory exists.
22769     test -f "$dirpart/$file" && continue
22770     fdir=`$as_dirname -- "$file" ||
22771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22772          X"$file" : 'X\(//\)[^/]' \| \
22773          X"$file" : 'X\(//\)$' \| \
22774          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22775 echo X"$file" |
22776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22777             s//\1/
22778             q
22779           }
22780           /^X\(\/\/\)[^/].*/{
22781             s//\1/
22782             q
22783           }
22784           /^X\(\/\/\)$/{
22785             s//\1/
22786             q
22787           }
22788           /^X\(\/\).*/{
22789             s//\1/
22790             q
22791           }
22792           s/.*/./; q'`
22793     { as_dir=$dirpart/$fdir
22794   case $as_dir in #(
22795   -*) as_dir=./$as_dir;;
22796   esac
22797   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22798     as_dirs=
22799     while :; do
22800       case $as_dir in #(
22801       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22802       *) as_qdir=$as_dir;;
22803       esac
22804       as_dirs="'$as_qdir' $as_dirs"
22805       as_dir=`$as_dirname -- "$as_dir" ||
22806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22807          X"$as_dir" : 'X\(//\)[^/]' \| \
22808          X"$as_dir" : 'X\(//\)$' \| \
22809          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22810 echo X"$as_dir" |
22811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22812             s//\1/
22813             q
22814           }
22815           /^X\(\/\/\)[^/].*/{
22816             s//\1/
22817             q
22818           }
22819           /^X\(\/\/\)$/{
22820             s//\1/
22821             q
22822           }
22823           /^X\(\/\).*/{
22824             s//\1/
22825             q
22826           }
22827           s/.*/./; q'`
22828       test -d "$as_dir" && break
22829     done
22830     test -z "$as_dirs" || eval "mkdir $as_dirs"
22831   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22832 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22833    { (exit 1); exit 1; }; }; }
22834     # echo "creating $dirpart/$file"
22835     echo '# dummy' > "$dirpart/$file"
22836   done
22837 done
22838  ;;
22839
22840   esac
22841 done # for ac_tag
22842
22843
22844 { (exit 0); exit 0; }
22845 _ACEOF
22846 chmod +x $CONFIG_STATUS
22847 ac_clean_files=$ac_clean_files_save
22848
22849
22850 # configure is writing to config.log, and then calls config.status.
22851 # config.status does its own redirection, appending to config.log.
22852 # Unfortunately, on DOS this fails, as config.log is still kept open
22853 # by configure, so config.status won't be able to write to it; its
22854 # output is simply discarded.  So we exec the FD to /dev/null,
22855 # effectively closing config.log, so it can be properly (re)opened and
22856 # appended to by config.status.  When coming back to configure, we
22857 # need to make the FD available again.
22858 if test "$no_create" != yes; then
22859   ac_cs_success=:
22860   ac_config_status_args=
22861   test "$silent" = yes &&
22862     ac_config_status_args="$ac_config_status_args --quiet"
22863   exec 5>/dev/null
22864   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22865   exec 5>>config.log
22866   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22867   # would make configure fail if this is the last instruction.
22868   $ac_cs_success || { (exit 1); exit 1; }
22869 fi
22870