update(add) packaging directory and spec file from OBSTF:Private, OBS
[framework/uifw/ise-engine-hangul.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for scim-hangul 0.3.2.
4 #
5 # Report bugs to <choe.hwanjing@gmail.com>.
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='scim-hangul'
730 PACKAGE_TARNAME='scim-hangul'
731 PACKAGE_VERSION='0.3.2'
732 PACKAGE_STRING='scim-hangul 0.3.2'
733 PACKAGE_BUGREPORT='choe.hwanjing@gmail.com'
734
735 ac_unique_file="src/scim_hangul_imengine.h"
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 SCIM_HANGUL_MAJOR_VERSION
810 SCIM_HANGUL_MINOR_VERSION
811 SCIM_HANGUL_MICRO_VERSION
812 SCIM_HANGUL_VERSION
813 INSTALL_PROGRAM
814 INSTALL_SCRIPT
815 INSTALL_DATA
816 CYGPATH_W
817 PACKAGE
818 VERSION
819 ACLOCAL
820 AUTOCONF
821 AUTOMAKE
822 AUTOHEADER
823 MAKEINFO
824 install_sh
825 STRIP
826 INSTALL_STRIP_PROGRAM
827 mkdir_p
828 AWK
829 SET_MAKE
830 am__leading_dot
831 AMTAR
832 am__tar
833 am__untar
834 MKINSTALLDIRS
835 USE_NLS
836 MSGFMT
837 GMSGFMT
838 XGETTEXT
839 MSGMERGE
840 CC
841 CFLAGS
842 LDFLAGS
843 CPPFLAGS
844 ac_ct_CC
845 EXEEXT
846 OBJEXT
847 DEPDIR
848 am__include
849 am__quote
850 AMDEP_TRUE
851 AMDEP_FALSE
852 AMDEPBACKSLASH
853 CCDEPMODE
854 am__fastdepCC_TRUE
855 am__fastdepCC_FALSE
856 build
857 build_cpu
858 build_vendor
859 build_os
860 host
861 host_cpu
862 host_vendor
863 host_os
864 CPP
865 GREP
866 EGREP
867 GLIBC2
868 RANLIB
869 CFLAG_VISIBILITY
870 HAVE_VISIBILITY
871 ALLOCA
872 LIBPTH
873 LTLIBPTH
874 LIBTHREAD
875 LTLIBTHREAD
876 LIBMULTITHREAD
877 LTLIBMULTITHREAD
878 LIBICONV
879 LTLIBICONV
880 INTLBISON
881 GLIBC21
882 INTL_MACOSX_LIBS
883 HAVE_POSIX_PRINTF
884 HAVE_ASPRINTF
885 HAVE_SNPRINTF
886 HAVE_WPRINTF
887 WOE32DLL
888 BUILD_INCLUDED_LIBINTL
889 USE_INCLUDED_LIBINTL
890 CATOBJEXT
891 DATADIRNAME
892 INSTOBJEXT
893 GENCAT
894 INTLOBJS
895 INTL_LIBTOOL_SUFFIX_PREFIX
896 INTLLIBS
897 LIBINTL
898 LTLIBINTL
899 POSUB
900 GETTEXT_PACKAGE
901 SED
902 LN_S
903 ECHO
904 AR
905 CXX
906 CXXFLAGS
907 ac_ct_CXX
908 CXXDEPMODE
909 am__fastdepCXX_TRUE
910 am__fastdepCXX_FALSE
911 CXXCPP
912 F77
913 FFLAGS
914 ac_ct_F77
915 LIBTOOL
916 INSTALL_LTDL_TRUE
917 INSTALL_LTDL_FALSE
918 CONVENIENCE_LTDL_TRUE
919 CONVENIENCE_LTDL_FALSE
920 LIBADD_DL
921 LIBTOOL_DEPS
922 PKG_CONFIG
923 LIBHANGUL_CFLAGS
924 LIBHANGUL_LIBS
925 SCIM_CFLAGS
926 SCIM_LIBS
927 SCIM_GTKUTILS_CFLAGS
928 SCIM_GTKUTILS_LIBS
929 SCIM_VERSION
930 SCIM_BUILD_SETUP_TRUE
931 SCIM_BUILD_SETUP_FALSE
932 SCIM_BUILD_SETUP
933 ac_aux_dir
934 LIBTOOL_EXPORT_OPTIONS
935 SCIM_BUILD_SKIM_SETUP_TRUE
936 SCIM_BUILD_SKIM_SETUP_FALSE
937 SCIM_ICONDIR
938 SCIM_MODULEDIR
939 SCIM_DATADIR
940 SCIM_HANGUL_DATADIR
941 KDEDIR
942 SKIM_CFLAGS
943 SKIM_LIBS
944 SCIM_KDEUTILS_CFLAGS
945 SCIM_KDEUTILS_LIBS
946 subdirs
947 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE
948 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE
949 SCIM_HANGUL_ENABLE_SKIM_SUPPORT
950 LIBOBJS
951 LTLIBOBJS'
952 ac_subst_files=''
953       ac_precious_vars='build_alias
954 host_alias
955 target_alias
956 CC
957 CFLAGS
958 LDFLAGS
959 LIBS
960 CPPFLAGS
961 CPP
962 CXX
963 CXXFLAGS
964 CCC
965 CXXCPP
966 F77
967 FFLAGS
968 PKG_CONFIG
969 LIBHANGUL_CFLAGS
970 LIBHANGUL_LIBS
971 SCIM_CFLAGS
972 SCIM_LIBS
973 SCIM_GTKUTILS_CFLAGS
974 SCIM_GTKUTILS_LIBS
975 SKIM_CFLAGS
976 SKIM_LIBS
977 SCIM_KDEUTILS_CFLAGS
978 SCIM_KDEUTILS_LIBS'
979 ac_subdirs_all='skim'
980
981 # Initialize some variables set by options.
982 ac_init_help=
983 ac_init_version=false
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
986 cache_file=/dev/null
987 exec_prefix=NONE
988 no_create=
989 no_recursion=
990 prefix=NONE
991 program_prefix=NONE
992 program_suffix=NONE
993 program_transform_name=s,x,x,
994 silent=
995 site=
996 srcdir=
997 verbose=
998 x_includes=NONE
999 x_libraries=NONE
1000
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1026
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1030 do
1031   # If the previous option needs an argument, assign it.
1032   if test -n "$ac_prev"; then
1033     eval $ac_prev=\$ac_option
1034     ac_prev=
1035     continue
1036   fi
1037
1038   case $ac_option in
1039   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040   *)    ac_optarg=yes ;;
1041   esac
1042
1043   # Accept the important Cygnus configure options, so we can diagnose typos.
1044
1045   case $ac_dashdash$ac_option in
1046   --)
1047     ac_dashdash=yes ;;
1048
1049   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050     ac_prev=bindir ;;
1051   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052     bindir=$ac_optarg ;;
1053
1054   -build | --build | --buil | --bui | --bu)
1055     ac_prev=build_alias ;;
1056   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057     build_alias=$ac_optarg ;;
1058
1059   -cache-file | --cache-file | --cache-fil | --cache-fi \
1060   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061     ac_prev=cache_file ;;
1062   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064     cache_file=$ac_optarg ;;
1065
1066   --config-cache | -C)
1067     cache_file=config.cache ;;
1068
1069   -datadir | --datadir | --datadi | --datad)
1070     ac_prev=datadir ;;
1071   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072     datadir=$ac_optarg ;;
1073
1074   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075   | --dataroo | --dataro | --datar)
1076     ac_prev=datarootdir ;;
1077   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079     datarootdir=$ac_optarg ;;
1080
1081   -disable-* | --disable-*)
1082     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086    { (exit 1); exit 1; }; }
1087     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1088     eval enable_$ac_feature=no ;;
1089
1090   -docdir | --docdir | --docdi | --doc | --do)
1091     ac_prev=docdir ;;
1092   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1093     docdir=$ac_optarg ;;
1094
1095   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1096     ac_prev=dvidir ;;
1097   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1098     dvidir=$ac_optarg ;;
1099
1100   -enable-* | --enable-*)
1101     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1105    { (exit 1); exit 1; }; }
1106     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1107     eval enable_$ac_feature=\$ac_optarg ;;
1108
1109   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111   | --exec | --exe | --ex)
1112     ac_prev=exec_prefix ;;
1113   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115   | --exec=* | --exe=* | --ex=*)
1116     exec_prefix=$ac_optarg ;;
1117
1118   -gas | --gas | --ga | --g)
1119     # Obsolete; use --with-gas.
1120     with_gas=yes ;;
1121
1122   -help | --help | --hel | --he | -h)
1123     ac_init_help=long ;;
1124   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125     ac_init_help=recursive ;;
1126   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127     ac_init_help=short ;;
1128
1129   -host | --host | --hos | --ho)
1130     ac_prev=host_alias ;;
1131   -host=* | --host=* | --hos=* | --ho=*)
1132     host_alias=$ac_optarg ;;
1133
1134   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135     ac_prev=htmldir ;;
1136   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137   | --ht=*)
1138     htmldir=$ac_optarg ;;
1139
1140   -includedir | --includedir | --includedi | --included | --include \
1141   | --includ | --inclu | --incl | --inc)
1142     ac_prev=includedir ;;
1143   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144   | --includ=* | --inclu=* | --incl=* | --inc=*)
1145     includedir=$ac_optarg ;;
1146
1147   -infodir | --infodir | --infodi | --infod | --info | --inf)
1148     ac_prev=infodir ;;
1149   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150     infodir=$ac_optarg ;;
1151
1152   -libdir | --libdir | --libdi | --libd)
1153     ac_prev=libdir ;;
1154   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155     libdir=$ac_optarg ;;
1156
1157   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158   | --libexe | --libex | --libe)
1159     ac_prev=libexecdir ;;
1160   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161   | --libexe=* | --libex=* | --libe=*)
1162     libexecdir=$ac_optarg ;;
1163
1164   -localedir | --localedir | --localedi | --localed | --locale)
1165     ac_prev=localedir ;;
1166   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167     localedir=$ac_optarg ;;
1168
1169   -localstatedir | --localstatedir | --localstatedi | --localstated \
1170   | --localstate | --localstat | --localsta | --localst | --locals)
1171     ac_prev=localstatedir ;;
1172   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174     localstatedir=$ac_optarg ;;
1175
1176   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177     ac_prev=mandir ;;
1178   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179     mandir=$ac_optarg ;;
1180
1181   -nfp | --nfp | --nf)
1182     # Obsolete; use --without-fp.
1183     with_fp=no ;;
1184
1185   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186   | --no-cr | --no-c | -n)
1187     no_create=yes ;;
1188
1189   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191     no_recursion=yes ;;
1192
1193   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195   | --oldin | --oldi | --old | --ol | --o)
1196     ac_prev=oldincludedir ;;
1197   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200     oldincludedir=$ac_optarg ;;
1201
1202   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203     ac_prev=prefix ;;
1204   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205     prefix=$ac_optarg ;;
1206
1207   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208   | --program-pre | --program-pr | --program-p)
1209     ac_prev=program_prefix ;;
1210   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212     program_prefix=$ac_optarg ;;
1213
1214   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215   | --program-suf | --program-su | --program-s)
1216     ac_prev=program_suffix ;;
1217   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219     program_suffix=$ac_optarg ;;
1220
1221   -program-transform-name | --program-transform-name \
1222   | --program-transform-nam | --program-transform-na \
1223   | --program-transform-n | --program-transform- \
1224   | --program-transform | --program-transfor \
1225   | --program-transfo | --program-transf \
1226   | --program-trans | --program-tran \
1227   | --progr-tra | --program-tr | --program-t)
1228     ac_prev=program_transform_name ;;
1229   -program-transform-name=* | --program-transform-name=* \
1230   | --program-transform-nam=* | --program-transform-na=* \
1231   | --program-transform-n=* | --program-transform-=* \
1232   | --program-transform=* | --program-transfor=* \
1233   | --program-transfo=* | --program-transf=* \
1234   | --program-trans=* | --program-tran=* \
1235   | --progr-tra=* | --program-tr=* | --program-t=*)
1236     program_transform_name=$ac_optarg ;;
1237
1238   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239     ac_prev=pdfdir ;;
1240   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241     pdfdir=$ac_optarg ;;
1242
1243   -psdir | --psdir | --psdi | --psd | --ps)
1244     ac_prev=psdir ;;
1245   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246     psdir=$ac_optarg ;;
1247
1248   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249   | -silent | --silent | --silen | --sile | --sil)
1250     silent=yes ;;
1251
1252   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253     ac_prev=sbindir ;;
1254   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255   | --sbi=* | --sb=*)
1256     sbindir=$ac_optarg ;;
1257
1258   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260   | --sharedst | --shareds | --shared | --share | --shar \
1261   | --sha | --sh)
1262     ac_prev=sharedstatedir ;;
1263   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266   | --sha=* | --sh=*)
1267     sharedstatedir=$ac_optarg ;;
1268
1269   -site | --site | --sit)
1270     ac_prev=site ;;
1271   -site=* | --site=* | --sit=*)
1272     site=$ac_optarg ;;
1273
1274   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275     ac_prev=srcdir ;;
1276   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277     srcdir=$ac_optarg ;;
1278
1279   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280   | --syscon | --sysco | --sysc | --sys | --sy)
1281     ac_prev=sysconfdir ;;
1282   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284     sysconfdir=$ac_optarg ;;
1285
1286   -target | --target | --targe | --targ | --tar | --ta | --t)
1287     ac_prev=target_alias ;;
1288   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289     target_alias=$ac_optarg ;;
1290
1291   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292     verbose=yes ;;
1293
1294   -version | --version | --versio | --versi | --vers | -V)
1295     ac_init_version=: ;;
1296
1297   -with-* | --with-*)
1298     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304     eval with_$ac_package=\$ac_optarg ;;
1305
1306   -without-* | --without-*)
1307     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308     # Reject names that are not valid shell variable names.
1309     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310       { echo "$as_me: error: invalid package name: $ac_package" >&2
1311    { (exit 1); exit 1; }; }
1312     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1313     eval with_$ac_package=no ;;
1314
1315   --x)
1316     # Obsolete; use --with-x.
1317     with_x=yes ;;
1318
1319   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320   | --x-incl | --x-inc | --x-in | --x-i)
1321     ac_prev=x_includes ;;
1322   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324     x_includes=$ac_optarg ;;
1325
1326   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328     ac_prev=x_libraries ;;
1329   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331     x_libraries=$ac_optarg ;;
1332
1333   -*) { echo "$as_me: error: unrecognized option: $ac_option
1334 Try \`$0 --help' for more information." >&2
1335    { (exit 1); exit 1; }; }
1336     ;;
1337
1338   *=*)
1339     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340     # Reject names that are not valid shell variable names.
1341     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1342       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1343    { (exit 1); exit 1; }; }
1344     eval $ac_envvar=\$ac_optarg
1345     export $ac_envvar ;;
1346
1347   *)
1348     # FIXME: should be removed in autoconf 3.0.
1349     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353     ;;
1354
1355   esac
1356 done
1357
1358 if test -n "$ac_prev"; then
1359   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360   { echo "$as_me: error: missing argument to $ac_option" >&2
1361    { (exit 1); exit 1; }; }
1362 fi
1363
1364 # Be sure to have absolute directory names.
1365 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366                 datadir sysconfdir sharedstatedir localstatedir includedir \
1367                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368                 libdir localedir mandir
1369 do
1370   eval ac_val=\$$ac_var
1371   case $ac_val in
1372     [\\/$]* | ?:[\\/]* )  continue;;
1373     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374   esac
1375   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1376    { (exit 1); exit 1; }; }
1377 done
1378
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1382 build=$build_alias
1383 host=$host_alias
1384 target=$target_alias
1385
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388   if test "x$build_alias" = x; then
1389     cross_compiling=maybe
1390     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391     If a cross compiler is detected then cross compile mode will be used." >&2
1392   elif test "x$build_alias" != "x$host_alias"; then
1393     cross_compiling=yes
1394   fi
1395 fi
1396
1397 ac_tool_prefix=
1398 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399
1400 test "$silent" = yes && exec 6>/dev/null
1401
1402
1403 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di=`ls -di .` &&
1405 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406   { echo "$as_me: error: Working directory cannot be determined" >&2
1407    { (exit 1); exit 1; }; }
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409   { echo "$as_me: error: pwd does not report name of working directory" >&2
1410    { (exit 1); exit 1; }; }
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415   ac_srcdir_defaulted=yes
1416   # Try the directory containing this script, then the parent directory.
1417   ac_confdir=`$as_dirname -- "$0" ||
1418 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419          X"$0" : 'X\(//\)[^/]' \| \
1420          X"$0" : 'X\(//\)$' \| \
1421          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1422 echo X"$0" |
1423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)[^/].*/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)$/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\).*/{
1436             s//\1/
1437             q
1438           }
1439           s/.*/./; q'`
1440   srcdir=$ac_confdir
1441   if test ! -r "$srcdir/$ac_unique_file"; then
1442     srcdir=..
1443   fi
1444 else
1445   ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1450    { (exit 1); exit 1; }; }
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1455    { (exit 1); exit 1; }; }
1456         pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459   srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_env_${ac_var}_value=\$${ac_var}
1470   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478   # Omit some internal or obsolete options to make the list less imposing.
1479   # This message is too long to be a string in the A/UX 3.1 sh.
1480   cat <<_ACEOF
1481 \`configure' configures scim-hangul 0.3.2 to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491   -h, --help              display this help and exit
1492       --help=short        display options specific to this package
1493       --help=recursive    display the short help of all the included packages
1494   -V, --version           display version information and exit
1495   -q, --quiet, --silent   do not print \`checking...' messages
1496       --cache-file=FILE   cache test results in FILE [disabled]
1497   -C, --config-cache      alias for \`--cache-file=config.cache'
1498   -n, --no-create         do not create output files
1499       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502   --prefix=PREFIX         install architecture-independent files in PREFIX
1503                           [$ac_default_prefix]
1504   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                           [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515   --bindir=DIR           user executables [EPREFIX/bin]
1516   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1517   --libexecdir=DIR       program executables [EPREFIX/libexec]
1518   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1519   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1520   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1521   --libdir=DIR           object code libraries [EPREFIX/lib]
1522   --includedir=DIR       C header files [PREFIX/include]
1523   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1524   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1525   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1526   --infodir=DIR          info documentation [DATAROOTDIR/info]
1527   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1528   --mandir=DIR           man documentation [DATAROOTDIR/man]
1529   --docdir=DIR           documentation root [DATAROOTDIR/doc/scim-hangul]
1530   --htmldir=DIR          html documentation [DOCDIR]
1531   --dvidir=DIR           dvi documentation [DOCDIR]
1532   --pdfdir=DIR           pdf documentation [DOCDIR]
1533   --psdir=DIR            ps documentation [DOCDIR]
1534 _ACEOF
1535
1536   cat <<\_ACEOF
1537
1538 Program names:
1539   --program-prefix=PREFIX            prepend PREFIX to installed program names
1540   --program-suffix=SUFFIX            append SUFFIX to installed program names
1541   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543 System types:
1544   --build=BUILD     configure for building on BUILD [guessed]
1545   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550   case $ac_init_help in
1551      short | recursive ) echo "Configuration of scim-hangul 0.3.2:";;
1552    esac
1553   cat <<\_ACEOF
1554
1555 Optional Features:
1556   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558   --disable-nls           do not use Native Language Support
1559   --disable-dependency-tracking  speeds up one-time build
1560   --enable-dependency-tracking   do not reject slow dependency extractors
1561   --enable-threads={posix|solaris|pth|win32}
1562                           specify multithreading API
1563   --disable-threads       build without multithread safety
1564   --disable-rpath         do not hardcode runtime library paths
1565   --enable-static[=PKGS]  build static libraries [default=no]
1566   --enable-shared[=PKGS]  build shared libraries [default=yes]
1567   --enable-fast-install[=PKGS]
1568                           optimize for fast installation [default=yes]
1569   --disable-libtool-lock  avoid locking (might break parallel builds)
1570   --enable-ltdl-install   install libltdl
1571   --enable-debug          Turn on debugging
1572   --disable-skim-support  Enable skim Setup UI
1573
1574 Optional Packages:
1575   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1578   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1579   --without-libpth-prefix     don't search for libpth in includedir and libdir
1580   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1581   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1582   --with-included-gettext use the GNU gettext library included here
1583   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1584   --without-libintl-prefix     don't search for libintl in includedir and libdir
1585   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1586   --with-pic              try to use only PIC/non-PIC objects [default=use
1587                           both]
1588   --with-tags[=TAGS]      include additional configurations [automatic]
1589
1590 Some influential environment variables:
1591   CC          C compiler command
1592   CFLAGS      C compiler flags
1593   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1594               nonstandard directory <lib dir>
1595   LIBS        libraries to pass to the linker, e.g. -l<library>
1596   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1597               you have headers in a nonstandard directory <include dir>
1598   CPP         C preprocessor
1599   CXX         C++ compiler command
1600   CXXFLAGS    C++ compiler flags
1601   CXXCPP      C++ preprocessor
1602   F77         Fortran 77 compiler command
1603   FFLAGS      Fortran 77 compiler flags
1604   PKG_CONFIG  path to pkg-config utility
1605   LIBHANGUL_CFLAGS
1606               C compiler flags for LIBHANGUL, overriding pkg-config
1607   LIBHANGUL_LIBS
1608               linker flags for LIBHANGUL, overriding pkg-config
1609   SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1610   SCIM_LIBS   linker flags for SCIM, overriding pkg-config
1611   SCIM_GTKUTILS_CFLAGS
1612               C compiler flags for SCIM_GTKUTILS, overriding pkg-config
1613   SCIM_GTKUTILS_LIBS
1614               linker flags for SCIM_GTKUTILS, overriding pkg-config
1615   SKIM_CFLAGS C compiler flags for SKIM, overriding pkg-config
1616   SKIM_LIBS   linker flags for SKIM, overriding pkg-config
1617   SCIM_KDEUTILS_CFLAGS
1618               C compiler flags for SCIM_KDEUTILS, overriding pkg-config
1619   SCIM_KDEUTILS_LIBS
1620               linker flags for SCIM_KDEUTILS, overriding pkg-config
1621
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1624
1625 Report bugs to <choe.hwanjing@gmail.com>.
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631   # If there are subdirs, report their specific --help.
1632   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633     test -d "$ac_dir" || continue
1634     ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1640   # A ".." for each directory in $ac_dir_suffix.
1641   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1642   case $ac_top_builddir_sub in
1643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645   esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653   .)  # We are building in place.
1654     ac_srcdir=.
1655     ac_top_srcdir=$ac_top_builddir_sub
1656     ac_abs_top_srcdir=$ac_pwd ;;
1657   [\\/]* | ?:[\\/]* )  # Absolute name.
1658     ac_srcdir=$srcdir$ac_dir_suffix;
1659     ac_top_srcdir=$srcdir
1660     ac_abs_top_srcdir=$srcdir ;;
1661   *) # Relative name.
1662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663     ac_top_srcdir=$ac_top_build_prefix$srcdir
1664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668     cd "$ac_dir" || { ac_status=$?; continue; }
1669     # Check for guested configure.
1670     if test -f "$ac_srcdir/configure.gnu"; then
1671       echo &&
1672       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673     elif test -f "$ac_srcdir/configure"; then
1674       echo &&
1675       $SHELL "$ac_srcdir/configure" --help=recursive
1676     else
1677       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678     fi || ac_status=$?
1679     cd "$ac_pwd" || { ac_status=$?; break; }
1680   done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685   cat <<\_ACEOF
1686 scim-hangul configure 0.3.2
1687 generated by GNU Autoconf 2.61
1688
1689 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1690 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1691 This configure script is free software; the Free Software Foundation
1692 gives unlimited permission to copy, distribute and modify it.
1693 _ACEOF
1694   exit
1695 fi
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1699
1700 It was created by scim-hangul $as_me 0.3.2, which was
1701 generated by GNU Autoconf 2.61.  Invocation command line was
1702
1703   $ $0 $@
1704
1705 _ACEOF
1706 exec 5>>config.log
1707 {
1708 cat <<_ASUNAME
1709 ## --------- ##
1710 ## Platform. ##
1711 ## --------- ##
1712
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1721
1722 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1723 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1726 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1727 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1728 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1729
1730 _ASUNAME
1731
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   echo "PATH: $as_dir"
1738 done
1739 IFS=$as_save_IFS
1740
1741 } >&5
1742
1743 cat >&5 <<_ACEOF
1744
1745
1746 ## ----------- ##
1747 ## Core tests. ##
1748 ## ----------- ##
1749
1750 _ACEOF
1751
1752
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_configure_args=
1759 ac_configure_args0=
1760 ac_configure_args1=
1761 ac_must_keep_next=false
1762 for ac_pass in 1 2
1763 do
1764   for ac_arg
1765   do
1766     case $ac_arg in
1767     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769     | -silent | --silent | --silen | --sile | --sil)
1770       continue ;;
1771     *\'*)
1772       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773     esac
1774     case $ac_pass in
1775     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776     2)
1777       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778       if test $ac_must_keep_next = true; then
1779         ac_must_keep_next=false # Got value, back to normal.
1780       else
1781         case $ac_arg in
1782           *=* | --config-cache | -C | -disable-* | --disable-* \
1783           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785           | -with-* | --with-* | -without-* | --without-* | --x)
1786             case "$ac_configure_args0 " in
1787               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788             esac
1789             ;;
1790           -* ) ac_must_keep_next=true ;;
1791         esac
1792       fi
1793       ac_configure_args="$ac_configure_args '$ac_arg'"
1794       ;;
1795     esac
1796   done
1797 done
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log.  We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807   # Save into config.log some information that might help in debugging.
1808   {
1809     echo
1810
1811     cat <<\_ASBOX
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1815 _ASBOX
1816     echo
1817     # The following way of writing the cache mishandles newlines in values,
1818 (
1819   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820     eval ac_val=\$$ac_var
1821     case $ac_val in #(
1822     *${as_nl}*)
1823       case $ac_var in #(
1824       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826       esac
1827       case $ac_var in #(
1828       _ | IFS | as_nl) ;; #(
1829       *) $as_unset $ac_var ;;
1830       esac ;;
1831     esac
1832   done
1833   (set) 2>&1 |
1834     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835     *${as_nl}ac_space=\ *)
1836       sed -n \
1837         "s/'\''/'\''\\\\'\'''\''/g;
1838           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839       ;; #(
1840     *)
1841       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842       ;;
1843     esac |
1844     sort
1845 )
1846     echo
1847
1848     cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853     echo
1854     for ac_var in $ac_subst_vars
1855     do
1856       eval ac_val=\$$ac_var
1857       case $ac_val in
1858       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859       esac
1860       echo "$ac_var='\''$ac_val'\''"
1861     done | sort
1862     echo
1863
1864     if test -n "$ac_subst_files"; then
1865       cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870       echo
1871       for ac_var in $ac_subst_files
1872       do
1873         eval ac_val=\$$ac_var
1874         case $ac_val in
1875         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876         esac
1877         echo "$ac_var='\''$ac_val'\''"
1878       done | sort
1879       echo
1880     fi
1881
1882     if test -s confdefs.h; then
1883       cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888       echo
1889       cat confdefs.h
1890       echo
1891     fi
1892     test "$ac_signal" != 0 &&
1893       echo "$as_me: caught signal $ac_signal"
1894     echo "$as_me: exit $exit_status"
1895   } >&5
1896   rm -f core *.core core.conftest.* &&
1897     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898     exit $exit_status
1899 ' 0
1900 for ac_signal in 1 2 13 15; do
1901   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1904
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1907
1908 # Predefined preprocessor variables.
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1933
1934
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938   set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 else
1942   set x "$ac_default_prefix/share/config.site" \
1943         "$ac_default_prefix/etc/config.site"
1944 fi
1945 shift
1946 for ac_site_file
1947 do
1948   if test -r "$ac_site_file"; then
1949     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951     sed 's/^/| /' "$ac_site_file" >&5
1952     . "$ac_site_file"
1953   fi
1954 done
1955
1956 if test -r "$cache_file"; then
1957   # Some versions of bash will fail to source /dev/null (special
1958   # files actually), so we avoid doing that.
1959   if test -f "$cache_file"; then
1960     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1962     case $cache_file in
1963       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964       *)                      . "./$cache_file";;
1965     esac
1966   fi
1967 else
1968   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1970   >$cache_file
1971 fi
1972
1973 # Check that the precious variables saved in the cache have kept the same
1974 # value.
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978   eval ac_new_set=\$ac_env_${ac_var}_set
1979   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980   eval ac_new_val=\$ac_env_${ac_var}_value
1981   case $ac_old_set,$ac_new_set in
1982     set,)
1983       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985       ac_cache_corrupted=: ;;
1986     ,set)
1987       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989       ac_cache_corrupted=: ;;
1990     ,);;
1991     *)
1992       if test "x$ac_old_val" != "x$ac_new_val"; then
1993         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1996 echo "$as_me:   former value:  $ac_old_val" >&2;}
1997         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1998 echo "$as_me:   current value: $ac_new_val" >&2;}
1999         ac_cache_corrupted=:
2000       fi;;
2001   esac
2002   # Pass precious variables to config.status.
2003   if test "$ac_new_set" = set; then
2004     case $ac_new_val in
2005     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006     *) ac_arg=$ac_var=$ac_new_val ;;
2007     esac
2008     case " $ac_configure_args " in
2009       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2010       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011     esac
2012   fi
2013 done
2014 if $ac_cache_corrupted; then
2015   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052  #do not forget to update skim/configure.in.in
2053
2054
2055 # Save this value here, since automake will set cflags and cxxflags later
2056 cflags_set=${CFLAGS+set}
2057 cppflags_set=${CPPFLAGS+set}
2058
2059 SCIM_HANGUL_MAJOR_VERSION=0
2060 SCIM_HANGUL_MINOR_VERSION=3
2061 SCIM_HANGUL_MICRO_VERSION=2
2062
2063 SCIM_HANGUL_VERSION=$SCIM_HANGUL_MAJOR_VERSION.$SCIM_HANGUL_MINOR_VERSION.$SCIM_HANGUL_MICRO_VERSION
2064
2065
2066
2067
2068
2069
2070 # Init automake stuff
2071 am__api_version="1.9"
2072 ac_aux_dir=
2073 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2074   if test -f "$ac_dir/install-sh"; then
2075     ac_aux_dir=$ac_dir
2076     ac_install_sh="$ac_aux_dir/install-sh -c"
2077     break
2078   elif test -f "$ac_dir/install.sh"; then
2079     ac_aux_dir=$ac_dir
2080     ac_install_sh="$ac_aux_dir/install.sh -c"
2081     break
2082   elif test -f "$ac_dir/shtool"; then
2083     ac_aux_dir=$ac_dir
2084     ac_install_sh="$ac_aux_dir/shtool install -c"
2085     break
2086   fi
2087 done
2088 if test -z "$ac_aux_dir"; then
2089   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2090 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2091    { (exit 1); exit 1; }; }
2092 fi
2093
2094 # These three variables are undocumented and unsupported,
2095 # and are intended to be withdrawn in a future Autoconf release.
2096 # They can cause serious problems if a builder's source tree is in a directory
2097 # whose full name contains unusual characters.
2098 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2099 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2100 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2101
2102
2103 # Find a good install program.  We prefer a C program (faster),
2104 # so one script is as good as another.  But avoid the broken or
2105 # incompatible versions:
2106 # SysV /etc/install, /usr/sbin/install
2107 # SunOS /usr/etc/install
2108 # IRIX /sbin/install
2109 # AIX /bin/install
2110 # AmigaOS /C/install, which installs bootblocks on floppy discs
2111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2114 # OS/2's system install, which has a completely different semantic
2115 # ./install, which can be erroneously created by make from ./install.sh.
2116 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2117 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2118 if test -z "$INSTALL"; then
2119 if test "${ac_cv_path_install+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   # Account for people who put trailing slashes in PATH elements.
2128 case $as_dir/ in
2129   ./ | .// | /cC/* | \
2130   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2131   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2132   /usr/ucb/* ) ;;
2133   *)
2134     # OSF1 and SCO ODT 3.0 have their own names for install.
2135     # Don't use installbsd from OSF since it installs stuff as root
2136     # by default.
2137     for ac_prog in ginstall scoinst install; do
2138       for ac_exec_ext in '' $ac_executable_extensions; do
2139         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2140           if test $ac_prog = install &&
2141             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2142             # AIX install.  It has an incompatible calling convention.
2143             :
2144           elif test $ac_prog = install &&
2145             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146             # program-specific install script used by HP pwplus--don't use.
2147             :
2148           else
2149             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2150             break 3
2151           fi
2152         fi
2153       done
2154     done
2155     ;;
2156 esac
2157 done
2158 IFS=$as_save_IFS
2159
2160
2161 fi
2162   if test "${ac_cv_path_install+set}" = set; then
2163     INSTALL=$ac_cv_path_install
2164   else
2165     # As a last resort, use the slow shell script.  Don't cache a
2166     # value for INSTALL within a source directory, because that will
2167     # break other packages using the cache if that directory is
2168     # removed, or if the value is a relative name.
2169     INSTALL=$ac_install_sh
2170   fi
2171 fi
2172 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2173 echo "${ECHO_T}$INSTALL" >&6; }
2174
2175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2176 # It thinks the first close brace ends the variable substitution.
2177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2178
2179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2180
2181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2182
2183 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2184 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2185 # Just in case
2186 sleep 1
2187 echo timestamp > conftest.file
2188 # Do `set' in a subshell so we don't clobber the current shell's
2189 # arguments.  Must try -L first in case configure is actually a
2190 # symlink; some systems play weird games with the mod time of symlinks
2191 # (eg FreeBSD returns the mod time of the symlink's containing
2192 # directory).
2193 if (
2194    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2195    if test "$*" = "X"; then
2196       # -L didn't work.
2197       set X `ls -t $srcdir/configure conftest.file`
2198    fi
2199    rm -f conftest.file
2200    if test "$*" != "X $srcdir/configure conftest.file" \
2201       && test "$*" != "X conftest.file $srcdir/configure"; then
2202
2203       # If neither matched, then we have a broken ls.  This can happen
2204       # if, for instance, CONFIG_SHELL is bash and it inherits a
2205       # broken ls alias from the environment.  This has actually
2206       # happened.  Such a system could not be considered "sane".
2207       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2208 alias in your environment" >&5
2209 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2210 alias in your environment" >&2;}
2211    { (exit 1); exit 1; }; }
2212    fi
2213
2214    test "$2" = conftest.file
2215    )
2216 then
2217    # Ok.
2218    :
2219 else
2220    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2221 Check your system clock" >&5
2222 echo "$as_me: error: newly created file is older than distributed files!
2223 Check your system clock" >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2228 test "$program_prefix" != NONE &&
2229   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2230 # Use a double $ so make ignores it.
2231 test "$program_suffix" != NONE &&
2232   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2233 # Double any \ or $.  echo might interpret backslashes.
2234 # By default was `s,x,x', remove it if useless.
2235 cat <<\_ACEOF >conftest.sed
2236 s/[\\$]/&&/g;s/;s,x,x,$//
2237 _ACEOF
2238 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2239 rm -f conftest.sed
2240
2241 # expand $ac_aux_dir to an absolute path
2242 am_aux_dir=`cd $ac_aux_dir && pwd`
2243
2244 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2245 # Use eval to expand $SHELL
2246 if eval "$MISSING --run true"; then
2247   am_missing_run="$MISSING --run "
2248 else
2249   am_missing_run=
2250   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2251 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2252 fi
2253
2254 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2255   # We used to keeping the `.' as first argument, in order to
2256   # allow $(mkdir_p) to be used without argument.  As in
2257   #   $(mkdir_p) $(somedir)
2258   # where $(somedir) is conditionally defined.  However this is wrong
2259   # for two reasons:
2260   #  1. if the package is installed by a user who cannot write `.'
2261   #     make install will fail,
2262   #  2. the above comment should most certainly read
2263   #     $(mkdir_p) $(DESTDIR)$(somedir)
2264   #     so it does not work when $(somedir) is undefined and
2265   #     $(DESTDIR) is not.
2266   #  To support the latter case, we have to write
2267   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2268   #  so the `.' trick is pointless.
2269   mkdir_p='mkdir -p --'
2270 else
2271   # On NextStep and OpenStep, the `mkdir' command does not
2272   # recognize any option.  It will interpret all options as
2273   # directories to create, and then abort because `.' already
2274   # exists.
2275   for d in ./-p ./--version;
2276   do
2277     test -d $d && rmdir $d
2278   done
2279   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2280   if test -f "$ac_aux_dir/mkinstalldirs"; then
2281     mkdir_p='$(mkinstalldirs)'
2282   else
2283     mkdir_p='$(install_sh) -d'
2284   fi
2285 fi
2286
2287 for ac_prog in gawk mawk nawk awk
2288 do
2289   # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_prog_AWK+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   if test -n "$AWK"; then
2297   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   for ac_exec_ext in '' $ac_executable_extensions; do
2305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306     ac_cv_prog_AWK="$ac_prog"
2307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308     break 2
2309   fi
2310 done
2311 done
2312 IFS=$as_save_IFS
2313
2314 fi
2315 fi
2316 AWK=$ac_cv_prog_AWK
2317 if test -n "$AWK"; then
2318   { echo "$as_me:$LINENO: result: $AWK" >&5
2319 echo "${ECHO_T}$AWK" >&6; }
2320 else
2321   { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2323 fi
2324
2325
2326   test -n "$AWK" && break
2327 done
2328
2329 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2330 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2331 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2332 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   cat >conftest.make <<\_ACEOF
2336 SHELL = /bin/sh
2337 all:
2338         @echo '@@@%%%=$(MAKE)=@@@%%%'
2339 _ACEOF
2340 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2341 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2342   *@@@%%%=?*=@@@%%%*)
2343     eval ac_cv_prog_make_${ac_make}_set=yes;;
2344   *)
2345     eval ac_cv_prog_make_${ac_make}_set=no;;
2346 esac
2347 rm -f conftest.make
2348 fi
2349 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2350   { echo "$as_me:$LINENO: result: yes" >&5
2351 echo "${ECHO_T}yes" >&6; }
2352   SET_MAKE=
2353 else
2354   { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2356   SET_MAKE="MAKE=${MAKE-make}"
2357 fi
2358
2359 rm -rf .tst 2>/dev/null
2360 mkdir .tst 2>/dev/null
2361 if test -d .tst; then
2362   am__leading_dot=.
2363 else
2364   am__leading_dot=_
2365 fi
2366 rmdir .tst 2>/dev/null
2367
2368 # test to see if srcdir already configured
2369 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2370    test -f $srcdir/config.status; then
2371   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2372 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 # test whether we have cygpath
2377 if test -z "$CYGPATH_W"; then
2378   if (cygpath --version) >/dev/null 2>/dev/null; then
2379     CYGPATH_W='cygpath -w'
2380   else
2381     CYGPATH_W=echo
2382   fi
2383 fi
2384
2385
2386 # Define the identity of the package.
2387  PACKAGE='scim-hangul'
2388  VERSION='0.3.2'
2389
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE "$PACKAGE"
2393 _ACEOF
2394
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define VERSION "$VERSION"
2398 _ACEOF
2399
2400 # Some tools Automake needs.
2401
2402 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2403
2404
2405 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2406
2407
2408 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2409
2410
2411 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2412
2413
2414 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2415
2416 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2417
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'.  However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423   if test -n "$ac_tool_prefix"; then
2424   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_STRIP+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   if test -n "$STRIP"; then
2432   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439   for ac_exec_ext in '' $ac_executable_extensions; do
2440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446 done
2447 IFS=$as_save_IFS
2448
2449 fi
2450 fi
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453   { echo "$as_me:$LINENO: result: $STRIP" >&5
2454 echo "${ECHO_T}$STRIP" >&6; }
2455 else
2456   { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458 fi
2459
2460
2461 fi
2462 if test -z "$ac_cv_prog_STRIP"; then
2463   ac_ct_STRIP=$STRIP
2464   # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test -n "$ac_ct_STRIP"; then
2472   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_ac_ct_STRIP="strip"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2494 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2495 else
2496   { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2498 fi
2499
2500   if test "x$ac_ct_STRIP" = x; then
2501     STRIP=":"
2502   else
2503     case $cross_compiling:$ac_tool_warned in
2504 yes:)
2505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet.  If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&5
2508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2509 whose name does not start with the host triplet.  If you think this
2510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2511 ac_tool_warned=yes ;;
2512 esac
2513     STRIP=$ac_ct_STRIP
2514   fi
2515 else
2516   STRIP="$ac_cv_prog_STRIP"
2517 fi
2518
2519 fi
2520 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2521
2522 # We need awk for the "check" target.  The system "awk" is bad on
2523 # some platforms.
2524 # Always define AMTAR for backward compatibility.
2525
2526 AMTAR=${AMTAR-"${am_missing_run}tar"}
2527
2528 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2529
2530
2531
2532
2533
2534 ac_config_headers="$ac_config_headers config.h"
2535
2536
2537 # Init gettext
2538 ALL_LINGUAS="de fr ja ko nl pa zh_CN"
2539
2540         MKINSTALLDIRS=
2541   if test -n "$ac_aux_dir"; then
2542     case "$ac_aux_dir" in
2543       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2544       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2545     esac
2546   fi
2547   if test -z "$MKINSTALLDIRS"; then
2548     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2549   fi
2550
2551
2552
2553   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2554 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2555     # Check whether --enable-nls was given.
2556 if test "${enable_nls+set}" = set; then
2557   enableval=$enable_nls; USE_NLS=$enableval
2558 else
2559   USE_NLS=yes
2560 fi
2561
2562   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2563 echo "${ECHO_T}$USE_NLS" >&6; }
2564
2565
2566
2567
2568
2569
2570 # Prepare PATH_SEPARATOR.
2571 # The user is always right.
2572 if test "${PATH_SEPARATOR+set}" != set; then
2573   echo "#! /bin/sh" >conf$$.sh
2574   echo  "exit 0"   >>conf$$.sh
2575   chmod +x conf$$.sh
2576   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2577     PATH_SEPARATOR=';'
2578   else
2579     PATH_SEPARATOR=:
2580   fi
2581   rm -f conf$$.sh
2582 fi
2583
2584 # Find out how to test for executable files. Don't use a zero-byte file,
2585 # as systems may use methods other than mode bits to determine executability.
2586 cat >conf$$.file <<_ASEOF
2587 #! /bin/sh
2588 exit 0
2589 _ASEOF
2590 chmod +x conf$$.file
2591 if test -x conf$$.file >/dev/null 2>&1; then
2592   ac_executable_p="test -x"
2593 else
2594   ac_executable_p="test -f"
2595 fi
2596 rm -f conf$$.file
2597
2598 # Extract the first word of "msgfmt", so it can be a program name with args.
2599 set dummy msgfmt; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_path_MSGFMT+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   case "$MSGFMT" in
2606   [\\/]* | ?:[\\/]*)
2607     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2608     ;;
2609   *)
2610     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2611     for ac_dir in $PATH; do
2612       IFS="$ac_save_IFS"
2613       test -z "$ac_dir" && ac_dir=.
2614       for ac_exec_ext in '' $ac_executable_extensions; do
2615         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2616           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2617      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2618             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2619             break 2
2620           fi
2621         fi
2622       done
2623     done
2624     IFS="$ac_save_IFS"
2625   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2626     ;;
2627 esac
2628 fi
2629 MSGFMT="$ac_cv_path_MSGFMT"
2630 if test "$MSGFMT" != ":"; then
2631   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2632 echo "${ECHO_T}$MSGFMT" >&6; }
2633 else
2634   { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2636 fi
2637
2638   # Extract the first word of "gmsgfmt", so it can be a program name with args.
2639 set dummy gmsgfmt; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   case $GMSGFMT in
2646   [\\/]* | ?:[\\/]*)
2647   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2648   ;;
2649   *)
2650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2666   ;;
2667 esac
2668 fi
2669 GMSGFMT=$ac_cv_path_GMSGFMT
2670 if test -n "$GMSGFMT"; then
2671   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2672 echo "${ECHO_T}$GMSGFMT" >&6; }
2673 else
2674   { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2676 fi
2677
2678
2679
2680
2681 # Prepare PATH_SEPARATOR.
2682 # The user is always right.
2683 if test "${PATH_SEPARATOR+set}" != set; then
2684   echo "#! /bin/sh" >conf$$.sh
2685   echo  "exit 0"   >>conf$$.sh
2686   chmod +x conf$$.sh
2687   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2688     PATH_SEPARATOR=';'
2689   else
2690     PATH_SEPARATOR=:
2691   fi
2692   rm -f conf$$.sh
2693 fi
2694
2695 # Find out how to test for executable files. Don't use a zero-byte file,
2696 # as systems may use methods other than mode bits to determine executability.
2697 cat >conf$$.file <<_ASEOF
2698 #! /bin/sh
2699 exit 0
2700 _ASEOF
2701 chmod +x conf$$.file
2702 if test -x conf$$.file >/dev/null 2>&1; then
2703   ac_executable_p="test -x"
2704 else
2705   ac_executable_p="test -f"
2706 fi
2707 rm -f conf$$.file
2708
2709 # Extract the first word of "xgettext", so it can be a program name with args.
2710 set dummy xgettext; ac_word=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   case "$XGETTEXT" in
2717   [\\/]* | ?:[\\/]*)
2718     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2719     ;;
2720   *)
2721     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2722     for ac_dir in $PATH; do
2723       IFS="$ac_save_IFS"
2724       test -z "$ac_dir" && ac_dir=.
2725       for ac_exec_ext in '' $ac_executable_extensions; do
2726         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2727           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2728      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2729             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2730             break 2
2731           fi
2732         fi
2733       done
2734     done
2735     IFS="$ac_save_IFS"
2736   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2737     ;;
2738 esac
2739 fi
2740 XGETTEXT="$ac_cv_path_XGETTEXT"
2741 if test "$XGETTEXT" != ":"; then
2742   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2743 echo "${ECHO_T}$XGETTEXT" >&6; }
2744 else
2745   { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2747 fi
2748
2749     rm -f messages.po
2750
2751
2752 # Prepare PATH_SEPARATOR.
2753 # The user is always right.
2754 if test "${PATH_SEPARATOR+set}" != set; then
2755   echo "#! /bin/sh" >conf$$.sh
2756   echo  "exit 0"   >>conf$$.sh
2757   chmod +x conf$$.sh
2758   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2759     PATH_SEPARATOR=';'
2760   else
2761     PATH_SEPARATOR=:
2762   fi
2763   rm -f conf$$.sh
2764 fi
2765
2766 # Find out how to test for executable files. Don't use a zero-byte file,
2767 # as systems may use methods other than mode bits to determine executability.
2768 cat >conf$$.file <<_ASEOF
2769 #! /bin/sh
2770 exit 0
2771 _ASEOF
2772 chmod +x conf$$.file
2773 if test -x conf$$.file >/dev/null 2>&1; then
2774   ac_executable_p="test -x"
2775 else
2776   ac_executable_p="test -f"
2777 fi
2778 rm -f conf$$.file
2779
2780 # Extract the first word of "msgmerge", so it can be a program name with args.
2781 set dummy msgmerge; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   case "$MSGMERGE" in
2788   [\\/]* | ?:[\\/]*)
2789     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2790     ;;
2791   *)
2792     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2793     for ac_dir in $PATH; do
2794       IFS="$ac_save_IFS"
2795       test -z "$ac_dir" && ac_dir=.
2796       for ac_exec_ext in '' $ac_executable_extensions; do
2797         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2798           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2799             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2800             break 2
2801           fi
2802         fi
2803       done
2804     done
2805     IFS="$ac_save_IFS"
2806   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2807     ;;
2808 esac
2809 fi
2810 MSGMERGE="$ac_cv_path_MSGMERGE"
2811 if test "$MSGMERGE" != ":"; then
2812   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2813 echo "${ECHO_T}$MSGMERGE" >&6; }
2814 else
2815   { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819
2820       if test "$GMSGFMT" != ":"; then
2821             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2822        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2823       : ;
2824     else
2825       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2826       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2827 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2828       GMSGFMT=":"
2829     fi
2830   fi
2831
2832       if test "$XGETTEXT" != ":"; then
2833             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2834        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2835       : ;
2836     else
2837       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2838 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
2839       XGETTEXT=":"
2840     fi
2841         rm -f messages.po
2842   fi
2843
2844   ac_config_commands="$ac_config_commands default-1"
2845
2846
2847 DEPDIR="${am__leading_dot}deps"
2848
2849 ac_config_commands="$ac_config_commands depfiles"
2850
2851
2852 am_make=${MAKE-make}
2853 cat > confinc << 'END'
2854 am__doit:
2855         @echo done
2856 .PHONY: am__doit
2857 END
2858 # If we don't find an include directive, just comment out the code.
2859 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2860 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2861 am__include="#"
2862 am__quote=
2863 _am_result=none
2864 # First try GNU make style include.
2865 echo "include confinc" > confmf
2866 # We grep out `Entering directory' and `Leaving directory'
2867 # messages which can occur if `w' ends up in MAKEFLAGS.
2868 # In particular we don't look at `^make:' because GNU make might
2869 # be invoked under some other name (usually "gmake"), in which
2870 # case it prints its new name instead of `make'.
2871 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2872    am__include=include
2873    am__quote=
2874    _am_result=GNU
2875 fi
2876 # Now try BSD make style include.
2877 if test "$am__include" = "#"; then
2878    echo '.include "confinc"' > confmf
2879    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2880       am__include=.include
2881       am__quote="\""
2882       _am_result=BSD
2883    fi
2884 fi
2885
2886
2887 { echo "$as_me:$LINENO: result: $_am_result" >&5
2888 echo "${ECHO_T}$_am_result" >&6; }
2889 rm -f confinc confmf
2890
2891 # Check whether --enable-dependency-tracking was given.
2892 if test "${enable_dependency_tracking+set}" = set; then
2893   enableval=$enable_dependency_tracking;
2894 fi
2895
2896 if test "x$enable_dependency_tracking" != xno; then
2897   am_depcomp="$ac_aux_dir/depcomp"
2898   AMDEPBACKSLASH='\'
2899 fi
2900
2901
2902 if test "x$enable_dependency_tracking" != xno; then
2903   AMDEP_TRUE=
2904   AMDEP_FALSE='#'
2905 else
2906   AMDEP_TRUE='#'
2907   AMDEP_FALSE=
2908 fi
2909
2910
2911
2912 ac_ext=c
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 if test -n "$ac_tool_prefix"; then
2918   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2919 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_CC+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   if test -n "$CC"; then
2926   ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933   for ac_exec_ext in '' $ac_executable_extensions; do
2934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937     break 2
2938   fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947   { echo "$as_me:$LINENO: result: $CC" >&5
2948 echo "${ECHO_T}$CC" >&6; }
2949 else
2950   { echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6; }
2952 fi
2953
2954
2955 fi
2956 if test -z "$ac_cv_prog_CC"; then
2957   ac_ct_CC=$CC
2958   # Extract the first word of "gcc", so it can be a program name with args.
2959 set dummy gcc; ac_word=$2
2960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2963   echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965   if test -n "$ac_ct_CC"; then
2966   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971   IFS=$as_save_IFS
2972   test -z "$as_dir" && as_dir=.
2973   for ac_exec_ext in '' $ac_executable_extensions; do
2974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975     ac_cv_prog_ac_ct_CC="gcc"
2976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977     break 2
2978   fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6; }
2989 else
2990   { echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6; }
2992 fi
2993
2994   if test "x$ac_ct_CC" = x; then
2995     CC=""
2996   else
2997     case $cross_compiling:$ac_tool_warned in
2998 yes:)
2999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3000 whose name does not start with the host triplet.  If you think this
3001 configuration is useful to you, please write to autoconf@gnu.org." >&5
3002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3003 whose name does not start with the host triplet.  If you think this
3004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007     CC=$ac_ct_CC
3008   fi
3009 else
3010   CC="$ac_cv_prog_CC"
3011 fi
3012
3013 if test -z "$CC"; then
3014           if test -n "$ac_tool_prefix"; then
3015     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   if test -n "$CC"; then
3023   ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028   IFS=$as_save_IFS
3029   test -z "$as_dir" && as_dir=.
3030   for ac_exec_ext in '' $ac_executable_extensions; do
3031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032     ac_cv_prog_CC="${ac_tool_prefix}cc"
3033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034     break 2
3035   fi
3036 done
3037 done
3038 IFS=$as_save_IFS
3039
3040 fi
3041 fi
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044   { echo "$as_me:$LINENO: result: $CC" >&5
3045 echo "${ECHO_T}$CC" >&6; }
3046 else
3047   { echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6; }
3049 fi
3050
3051
3052   fi
3053 fi
3054 if test -z "$CC"; then
3055   # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   if test -n "$CC"; then
3063   ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065   ac_prog_rejected=no
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071   for ac_exec_ext in '' $ac_executable_extensions; do
3072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074        ac_prog_rejected=yes
3075        continue
3076      fi
3077     ac_cv_prog_CC="cc"
3078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 if test $ac_prog_rejected = yes; then
3086   # We found a bogon in the path, so make sure we never use it.
3087   set dummy $ac_cv_prog_CC
3088   shift
3089   if test $# != 0; then
3090     # We chose a different compiler from the bogus one.
3091     # However, it has the same basename, so the bogon will be chosen
3092     # first if we set CC to just the basename; use the full file name.
3093     shift
3094     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3095   fi
3096 fi
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101   { echo "$as_me:$LINENO: result: $CC" >&5
3102 echo "${ECHO_T}$CC" >&6; }
3103 else
3104   { echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6; }
3106 fi
3107
3108
3109 fi
3110 if test -z "$CC"; then
3111   if test -n "$ac_tool_prefix"; then
3112   for ac_prog in cl.exe
3113   do
3114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121   if test -n "$CC"; then
3122   ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129   for ac_exec_ext in '' $ac_executable_extensions; do
3130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { echo "$as_me:$LINENO: result: $CC" >&5
3144 echo "${ECHO_T}$CC" >&6; }
3145 else
3146   { echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6; }
3148 fi
3149
3150
3151     test -n "$CC" && break
3152   done
3153 fi
3154 if test -z "$CC"; then
3155   ac_ct_CC=$CC
3156   for ac_prog in cl.exe
3157 do
3158   # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   if test -n "$ac_ct_CC"; then
3166   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173   for ac_exec_ext in '' $ac_executable_extensions; do
3174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175     ac_cv_prog_ac_ct_CC="$ac_prog"
3176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177     break 2
3178   fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3188 echo "${ECHO_T}$ac_ct_CC" >&6; }
3189 else
3190   { echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6; }
3192 fi
3193
3194
3195   test -n "$ac_ct_CC" && break
3196 done
3197
3198   if test "x$ac_ct_CC" = x; then
3199     CC=""
3200   else
3201     case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3204 whose name does not start with the host triplet.  If you think this
3205 configuration is useful to you, please write to autoconf@gnu.org." >&5
3206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3207 whose name does not start with the host triplet.  If you think this
3208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211     CC=$ac_ct_CC
3212   fi
3213 fi
3214
3215 fi
3216
3217
3218 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3219 See \`config.log' for more details." >&5
3220 echo "$as_me: error: no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details." >&2;}
3222    { (exit 1); exit 1; }; }
3223
3224 # Provide some information about the compiler.
3225 echo "$as_me:$LINENO: checking for C compiler version" >&5
3226 ac_compiler=`set X $ac_compile; echo $2`
3227 { (ac_try="$ac_compiler --version >&5"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_compiler --version >&5") 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }
3237 { (ac_try="$ac_compiler -v >&5"
3238 case "(($ac_try" in
3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240   *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243   (eval "$ac_compiler -v >&5") 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }
3247 { (ac_try="$ac_compiler -V >&5"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253   (eval "$ac_compiler -V >&5") 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); }
3257
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 ac_clean_files_save=$ac_clean_files
3274 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3275 # Try to create an executable without -o first, disregard a.out.
3276 # It will help us diagnose broken compilers, and finding out an intuition
3277 # of exeext.
3278 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3279 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3280 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281 #
3282 # List of possible output files, starting from the most likely.
3283 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3284 # only as a last resort.  b.out is created by i960 compilers.
3285 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3286 #
3287 # The IRIX 6 linker writes into existing files which may not be
3288 # executable, retaining their permissions.  Remove them first so a
3289 # subsequent execution test works.
3290 ac_rmfiles=
3291 for ac_file in $ac_files
3292 do
3293   case $ac_file in
3294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3295     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296   esac
3297 done
3298 rm -f $ac_rmfiles
3299
3300 if { (ac_try="$ac_link_default"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306   (eval "$ac_link_default") 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); }; then
3310   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3311 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3312 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3313 # so that the user can short-circuit this test for compilers unknown to
3314 # Autoconf.
3315 for ac_file in $ac_files ''
3316 do
3317   test -f "$ac_file" || continue
3318   case $ac_file in
3319     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3320         ;;
3321     [ab].out )
3322         # We found the default executable, but exeext='' is most
3323         # certainly right.
3324         break;;
3325     *.* )
3326         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3327         then :; else
3328            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3329         fi
3330         # We set ac_cv_exeext here because the later test for it is not
3331         # safe: cross compilers may not add the suffix if given an `-o'
3332         # argument, so we may need to know it at that point already.
3333         # Even if this section looks crufty: it has the advantage of
3334         # actually working.
3335         break;;
3336     * )
3337         break;;
3338   esac
3339 done
3340 test "$ac_cv_exeext" = no && ac_cv_exeext=
3341
3342 else
3343   ac_file=''
3344 fi
3345
3346 { echo "$as_me:$LINENO: result: $ac_file" >&5
3347 echo "${ECHO_T}$ac_file" >&6; }
3348 if test -z "$ac_file"; then
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3353 See \`config.log' for more details." >&5
3354 echo "$as_me: error: C compiler cannot create executables
3355 See \`config.log' for more details." >&2;}
3356    { (exit 77); exit 77; }; }
3357 fi
3358
3359 ac_exeext=$ac_cv_exeext
3360
3361 # Check that the compiler produces executables we can run.  If not, either
3362 # the compiler is broken, or we cross compile.
3363 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3364 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3365 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3366 # If not cross compiling, check that we can run a simple program.
3367 if test "$cross_compiling" != yes; then
3368   if { ac_try='./$ac_file'
3369   { (case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_try") 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }; }; then
3378     cross_compiling=no
3379   else
3380     if test "$cross_compiling" = maybe; then
3381         cross_compiling=yes
3382     else
3383         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3384 If you meant to cross compile, use \`--host'.
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot run C compiled programs.
3387 If you meant to cross compile, use \`--host'.
3388 See \`config.log' for more details." >&2;}
3389    { (exit 1); exit 1; }; }
3390     fi
3391   fi
3392 fi
3393 { echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6; }
3395
3396 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3397 ac_clean_files=$ac_clean_files_save
3398 # Check that the compiler produces executables we can run.  If not, either
3399 # the compiler is broken, or we cross compile.
3400 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3401 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3402 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3403 echo "${ECHO_T}$cross_compiling" >&6; }
3404
3405 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3406 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3407 if { (ac_try="$ac_link"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_link") 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; then
3417   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3418 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3419 # work properly (i.e., refer to `conftest.exe'), while it won't with
3420 # `rm'.
3421 for ac_file in conftest.exe conftest conftest.*; do
3422   test -f "$ac_file" || continue
3423   case $ac_file in
3424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3425     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426           break;;
3427     * ) break;;
3428   esac
3429 done
3430 else
3431   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details." >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437
3438 rm -f conftest$ac_cv_exeext
3439 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3440 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3441
3442 rm -f conftest.$ac_ext
3443 EXEEXT=$ac_cv_exeext
3444 ac_exeext=$EXEEXT
3445 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3446 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3447 if test "${ac_cv_objext+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h.  */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h.  */
3456
3457 int
3458 main ()
3459 {
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.o conftest.obj
3466 if { (ac_try="$ac_compile"
3467 case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_compile") 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; then
3476   for ac_file in conftest.o conftest.obj conftest.*; do
3477   test -f "$ac_file" || continue;
3478   case $ac_file in
3479     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3480     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481        break;;
3482   esac
3483 done
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3489 See \`config.log' for more details." >&5
3490 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details." >&2;}
3492    { (exit 1); exit 1; }; }
3493 fi
3494
3495 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496 fi
3497 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3498 echo "${ECHO_T}$ac_cv_objext" >&6; }
3499 OBJEXT=$ac_cv_objext
3500 ac_objext=$OBJEXT
3501 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3502 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3503 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h.  */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h.  */
3512
3513 int
3514 main ()
3515 {
3516 #ifndef __GNUC__
3517        choke me
3518 #endif
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_compile") 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } && {
3538          test -z "$ac_c_werror_flag" ||
3539          test ! -s conftest.err
3540        } && test -s conftest.$ac_objext; then
3541   ac_compiler_gnu=yes
3542 else
3543   echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546         ac_compiler_gnu=no
3547 fi
3548
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3551
3552 fi
3553 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3554 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3555 GCC=`test $ac_compiler_gnu = yes && echo yes`
3556 ac_test_CFLAGS=${CFLAGS+set}
3557 ac_save_CFLAGS=$CFLAGS
3558 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3559 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3560 if test "${ac_cv_prog_cc_g+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   ac_save_c_werror_flag=$ac_c_werror_flag
3564    ac_c_werror_flag=yes
3565    ac_cv_prog_cc_g=no
3566    CFLAGS="-g"
3567    cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573
3574 int
3575 main ()
3576 {
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_compile") 2>conftest.er1
3590   ac_status=$?
3591   grep -v '^ *+' conftest.er1 >conftest.err
3592   rm -f conftest.er1
3593   cat conftest.err >&5
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } && {
3596          test -z "$ac_c_werror_flag" ||
3597          test ! -s conftest.err
3598        } && test -s conftest.$ac_objext; then
3599   ac_cv_prog_cc_g=yes
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604         CFLAGS=""
3605       cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611
3612 int
3613 main ()
3614 {
3615
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 rm -f conftest.$ac_objext
3621 if { (ac_try="$ac_compile"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_compile") 2>conftest.er1
3628   ac_status=$?
3629   grep -v '^ *+' conftest.er1 >conftest.err
3630   rm -f conftest.er1
3631   cat conftest.err >&5
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); } && {
3634          test -z "$ac_c_werror_flag" ||
3635          test ! -s conftest.err
3636        } && test -s conftest.$ac_objext; then
3637   :
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642         ac_c_werror_flag=$ac_save_c_werror_flag
3643          CFLAGS="-g"
3644          cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666   (eval "$ac_compile") 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } && {
3673          test -z "$ac_c_werror_flag" ||
3674          test ! -s conftest.err
3675        } && test -s conftest.$ac_objext; then
3676   ac_cv_prog_cc_g=yes
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681
3682 fi
3683
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 fi
3686
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 fi
3689
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691    ac_c_werror_flag=$ac_save_c_werror_flag
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3695 if test "$ac_test_CFLAGS" = set; then
3696   CFLAGS=$ac_save_CFLAGS
3697 elif test $ac_cv_prog_cc_g = yes; then
3698   if test "$GCC" = yes; then
3699     CFLAGS="-g -O2"
3700   else
3701     CFLAGS="-g"
3702   fi
3703 else
3704   if test "$GCC" = yes; then
3705     CFLAGS="-O2"
3706   else
3707     CFLAGS=
3708   fi
3709 fi
3710 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3711 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3712 if test "${ac_cv_prog_cc_c89+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   ac_cv_prog_cc_c89=no
3716 ac_save_CC=$CC
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723 #include <stdarg.h>
3724 #include <stdio.h>
3725 #include <sys/types.h>
3726 #include <sys/stat.h>
3727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3728 struct buf { int x; };
3729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3730 static char *e (p, i)
3731      char **p;
3732      int i;
3733 {
3734   return p[i];
3735 }
3736 static char *f (char * (*g) (char **, int), char **p, ...)
3737 {
3738   char *s;
3739   va_list v;
3740   va_start (v,p);
3741   s = g (p, va_arg (v,int));
3742   va_end (v);
3743   return s;
3744 }
3745
3746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3747    function prototypes and stuff, but not '\xHH' hex character constants.
3748    These don't provoke an error unfortunately, instead are silently treated
3749    as 'x'.  The following induces an error, until -std is added to get
3750    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3751    array size at least.  It's necessary to write '\x00'==0 to get something
3752    that's true only with -std.  */
3753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3754
3755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3756    inside strings and character constants.  */
3757 #define FOO(x) 'x'
3758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3759
3760 int test (int i, double x);
3761 struct s1 {int (*f) (int a);};
3762 struct s2 {int (*f) (double a);};
3763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3764 int argc;
3765 char **argv;
3766 int
3767 main ()
3768 {
3769 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3775         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3776 do
3777   CC="$ac_save_CC $ac_arg"
3778   rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785   (eval "$ac_compile") 2>conftest.er1
3786   ac_status=$?
3787   grep -v '^ *+' conftest.er1 >conftest.err
3788   rm -f conftest.er1
3789   cat conftest.err >&5
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); } && {
3792          test -z "$ac_c_werror_flag" ||
3793          test ! -s conftest.err
3794        } && test -s conftest.$ac_objext; then
3795   ac_cv_prog_cc_c89=$ac_arg
3796 else
3797   echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800
3801 fi
3802
3803 rm -f core conftest.err conftest.$ac_objext
3804   test "x$ac_cv_prog_cc_c89" != "xno" && break
3805 done
3806 rm -f conftest.$ac_ext
3807 CC=$ac_save_CC
3808
3809 fi
3810 # AC_CACHE_VAL
3811 case "x$ac_cv_prog_cc_c89" in
3812   x)
3813     { echo "$as_me:$LINENO: result: none needed" >&5
3814 echo "${ECHO_T}none needed" >&6; } ;;
3815   xno)
3816     { echo "$as_me:$LINENO: result: unsupported" >&5
3817 echo "${ECHO_T}unsupported" >&6; } ;;
3818   *)
3819     CC="$CC $ac_cv_prog_cc_c89"
3820     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3821 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3822 esac
3823
3824
3825 ac_ext=c
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831 depcc="$CC"   am_compiler_list=
3832
3833 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3834 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3835 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3839   # We make a subdir and do the tests there.  Otherwise we can end up
3840   # making bogus files that we don't know about and never remove.  For
3841   # instance it was reported that on HP-UX the gcc test will end up
3842   # making a dummy file named `D' -- because `-MD' means `put the output
3843   # in D'.
3844   mkdir conftest.dir
3845   # Copy depcomp to subdir because otherwise we won't find it if we're
3846   # using a relative directory.
3847   cp "$am_depcomp" conftest.dir
3848   cd conftest.dir
3849   # We will build objects and dependencies in a subdirectory because
3850   # it helps to detect inapplicable dependency modes.  For instance
3851   # both Tru64's cc and ICC support -MD to output dependencies as a
3852   # side effect of compilation, but ICC will put the dependencies in
3853   # the current directory while Tru64 will put them in the object
3854   # directory.
3855   mkdir sub
3856
3857   am_cv_CC_dependencies_compiler_type=none
3858   if test "$am_compiler_list" = ""; then
3859      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3860   fi
3861   for depmode in $am_compiler_list; do
3862     # Setup a source with many dependencies, because some compilers
3863     # like to wrap large dependency lists on column 80 (with \), and
3864     # we should not choose a depcomp mode which is confused by this.
3865     #
3866     # We need to recreate these files for each test, as the compiler may
3867     # overwrite some of them when testing with obscure command lines.
3868     # This happens at least with the AIX C compiler.
3869     : > sub/conftest.c
3870     for i in 1 2 3 4 5 6; do
3871       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3873       # Solaris 8's {/usr,}/bin/sh.
3874       touch sub/conftst$i.h
3875     done
3876     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3877
3878     case $depmode in
3879     nosideeffect)
3880       # after this tag, mechanisms are not by side-effect, so they'll
3881       # only be used when explicitly requested
3882       if test "x$enable_dependency_tracking" = xyes; then
3883         continue
3884       else
3885         break
3886       fi
3887       ;;
3888     none) break ;;
3889     esac
3890     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3891     # mode.  It turns out that the SunPro C++ compiler does not properly
3892     # handle `-M -o', and we need to detect this.
3893     if depmode=$depmode \
3894        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3895        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3896        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3897          >/dev/null 2>conftest.err &&
3898        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3899        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3900        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3901       # icc doesn't choke on unknown options, it will just issue warnings
3902       # or remarks (even with -Werror).  So we grep stderr for any message
3903       # that says an option was ignored or not supported.
3904       # When given -MP, icc 7.0 and 7.1 complain thusly:
3905       #   icc: Command line warning: ignoring option '-M'; no argument required
3906       # The diagnosis changed in icc 8.0:
3907       #   icc: Command line remark: option '-MP' not supported
3908       if (grep 'ignoring option' conftest.err ||
3909           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3910         am_cv_CC_dependencies_compiler_type=$depmode
3911         break
3912       fi
3913     fi
3914   done
3915
3916   cd ..
3917   rm -rf conftest.dir
3918 else
3919   am_cv_CC_dependencies_compiler_type=none
3920 fi
3921
3922 fi
3923 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3924 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3925 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3926
3927
3928
3929 if
3930   test "x$enable_dependency_tracking" != xno \
3931   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3932   am__fastdepCC_TRUE=
3933   am__fastdepCC_FALSE='#'
3934 else
3935   am__fastdepCC_TRUE='#'
3936   am__fastdepCC_FALSE=
3937 fi
3938
3939
3940 # Make sure we can run config.sub.
3941 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3942   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3943 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3944    { (exit 1); exit 1; }; }
3945
3946 { echo "$as_me:$LINENO: checking build system type" >&5
3947 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3948 if test "${ac_cv_build+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   ac_build_alias=$build_alias
3952 test "x$ac_build_alias" = x &&
3953   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3954 test "x$ac_build_alias" = x &&
3955   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3956 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3957    { (exit 1); exit 1; }; }
3958 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3959   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3960 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3961    { (exit 1); exit 1; }; }
3962
3963 fi
3964 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3965 echo "${ECHO_T}$ac_cv_build" >&6; }
3966 case $ac_cv_build in
3967 *-*-*) ;;
3968 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3969 echo "$as_me: error: invalid value of canonical build" >&2;}
3970    { (exit 1); exit 1; }; };;
3971 esac
3972 build=$ac_cv_build
3973 ac_save_IFS=$IFS; IFS='-'
3974 set x $ac_cv_build
3975 shift
3976 build_cpu=$1
3977 build_vendor=$2
3978 shift; shift
3979 # Remember, the first character of IFS is used to create $*,
3980 # except with old shells:
3981 build_os=$*
3982 IFS=$ac_save_IFS
3983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3984
3985
3986 { echo "$as_me:$LINENO: checking host system type" >&5
3987 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3988 if test "${ac_cv_host+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   if test "x$host_alias" = x; then
3992   ac_cv_host=$ac_cv_build
3993 else
3994   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3995     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3997    { (exit 1); exit 1; }; }
3998 fi
3999
4000 fi
4001 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4002 echo "${ECHO_T}$ac_cv_host" >&6; }
4003 case $ac_cv_host in
4004 *-*-*) ;;
4005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4006 echo "$as_me: error: invalid value of canonical host" >&2;}
4007    { (exit 1); exit 1; }; };;
4008 esac
4009 host=$ac_cv_host
4010 ac_save_IFS=$IFS; IFS='-'
4011 set x $ac_cv_host
4012 shift
4013 host_cpu=$1
4014 host_vendor=$2
4015 shift; shift
4016 # Remember, the first character of IFS is used to create $*,
4017 # except with old shells:
4018 host_os=$*
4019 IFS=$ac_save_IFS
4020 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4021
4022
4023
4024 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4030 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4031 # On Suns, sometimes $CPP names a directory.
4032 if test -n "$CPP" && test -d "$CPP"; then
4033   CPP=
4034 fi
4035 if test -z "$CPP"; then
4036   if test "${ac_cv_prog_CPP+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039       # Double quotes because CPP needs to be expanded
4040     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4041     do
4042       ac_preproc_ok=false
4043 for ac_c_preproc_warn_flag in '' yes
4044 do
4045   # Use a header file that comes with gcc, so configuring glibc
4046   # with a fresh cross-compiler works.
4047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048   # <limits.h> exists even on freestanding compilers.
4049   # On the NeXT, cc -E runs the code through the compiler's parser,
4050   # not just through cpp. "Syntax error" is here to catch this case.
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 #ifdef __STDC__
4058 # include <limits.h>
4059 #else
4060 # include <assert.h>
4061 #endif
4062                      Syntax error
4063 _ACEOF
4064 if { (ac_try="$ac_cpp conftest.$ac_ext"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } >/dev/null && {
4077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4078          test ! -s conftest.err
4079        }; then
4080   :
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085   # Broken: fails on valid input.
4086 continue
4087 fi
4088
4089 rm -f conftest.err conftest.$ac_ext
4090
4091   # OK, works on sane cases.  Now check whether nonexistent headers
4092   # can be detected and how.
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 #include <ac_nonexistent.h>
4100 _ACEOF
4101 if { (ac_try="$ac_cpp conftest.$ac_ext"
4102 case "(($ac_try" in
4103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104   *) ac_try_echo=$ac_try;;
4105 esac
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } >/dev/null && {
4114          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4115          test ! -s conftest.err
4116        }; then
4117   # Broken: success on invalid input.
4118 continue
4119 else
4120   echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123   # Passes both tests.
4124 ac_preproc_ok=:
4125 break
4126 fi
4127
4128 rm -f conftest.err conftest.$ac_ext
4129
4130 done
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.err conftest.$ac_ext
4133 if $ac_preproc_ok; then
4134   break
4135 fi
4136
4137     done
4138     ac_cv_prog_CPP=$CPP
4139
4140 fi
4141   CPP=$ac_cv_prog_CPP
4142 else
4143   ac_cv_prog_CPP=$CPP
4144 fi
4145 { echo "$as_me:$LINENO: result: $CPP" >&5
4146 echo "${ECHO_T}$CPP" >&6; }
4147 ac_preproc_ok=false
4148 for ac_c_preproc_warn_flag in '' yes
4149 do
4150   # Use a header file that comes with gcc, so configuring glibc
4151   # with a fresh cross-compiler works.
4152   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153   # <limits.h> exists even on freestanding compilers.
4154   # On the NeXT, cc -E runs the code through the compiler's parser,
4155   # not just through cpp. "Syntax error" is here to catch this case.
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #ifdef __STDC__
4163 # include <limits.h>
4164 #else
4165 # include <assert.h>
4166 #endif
4167                      Syntax error
4168 _ACEOF
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } >/dev/null && {
4182          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183          test ! -s conftest.err
4184        }; then
4185   :
4186 else
4187   echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190   # Broken: fails on valid input.
4191 continue
4192 fi
4193
4194 rm -f conftest.err conftest.$ac_ext
4195
4196   # OK, works on sane cases.  Now check whether nonexistent headers
4197   # can be detected and how.
4198   cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <ac_nonexistent.h>
4205 _ACEOF
4206 if { (ac_try="$ac_cpp conftest.$ac_ext"
4207 case "(($ac_try" in
4208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209   *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213   ac_status=$?
4214   grep -v '^ *+' conftest.er1 >conftest.err
4215   rm -f conftest.er1
4216   cat conftest.err >&5
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); } >/dev/null && {
4219          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220          test ! -s conftest.err
4221        }; then
4222   # Broken: success on invalid input.
4223 continue
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228   # Passes both tests.
4229 ac_preproc_ok=:
4230 break
4231 fi
4232
4233 rm -f conftest.err conftest.$ac_ext
4234
4235 done
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then
4239   :
4240 else
4241   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4242 See \`config.log' for more details." >&5
4243 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4244 See \`config.log' for more details." >&2;}
4245    { (exit 1); exit 1; }; }
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254
4255 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4256 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4257 if test "${ac_cv_path_GREP+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   # Extract the first word of "grep ggrep" to use in msg output
4261 if test -z "$GREP"; then
4262 set dummy grep ggrep; ac_prog_name=$2
4263 if test "${ac_cv_path_GREP+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   ac_path_GREP_found=false
4267 # Loop through the user's path and test for each of PROGNAME-LIST
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   for ac_prog in grep ggrep; do
4274   for ac_exec_ext in '' $ac_executable_extensions; do
4275     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4276     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4277     # Check for GNU ac_path_GREP and select it if it is found.
4278   # Check for GNU $ac_path_GREP
4279 case `"$ac_path_GREP" --version 2>&1` in
4280 *GNU*)
4281   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4282 *)
4283   ac_count=0
4284   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4285   while :
4286   do
4287     cat "conftest.in" "conftest.in" >"conftest.tmp"
4288     mv "conftest.tmp" "conftest.in"
4289     cp "conftest.in" "conftest.nl"
4290     echo 'GREP' >> "conftest.nl"
4291     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293     ac_count=`expr $ac_count + 1`
4294     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4295       # Best one so far, save it but keep looking for a better one
4296       ac_cv_path_GREP="$ac_path_GREP"
4297       ac_path_GREP_max=$ac_count
4298     fi
4299     # 10*(2^10) chars as input seems more than enough
4300     test $ac_count -gt 10 && break
4301   done
4302   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 esac
4304
4305
4306     $ac_path_GREP_found && break 3
4307   done
4308 done
4309
4310 done
4311 IFS=$as_save_IFS
4312
4313
4314 fi
4315
4316 GREP="$ac_cv_path_GREP"
4317 if test -z "$GREP"; then
4318   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4319 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4320    { (exit 1); exit 1; }; }
4321 fi
4322
4323 else
4324   ac_cv_path_GREP=$GREP
4325 fi
4326
4327
4328 fi
4329 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4330 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4331  GREP="$ac_cv_path_GREP"
4332
4333
4334 { echo "$as_me:$LINENO: checking for egrep" >&5
4335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4336 if test "${ac_cv_path_EGREP+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4340    then ac_cv_path_EGREP="$GREP -E"
4341    else
4342      # Extract the first word of "egrep" to use in msg output
4343 if test -z "$EGREP"; then
4344 set dummy egrep; ac_prog_name=$2
4345 if test "${ac_cv_path_EGREP+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   ac_path_EGREP_found=false
4349 # Loop through the user's path and test for each of PROGNAME-LIST
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355   for ac_prog in egrep; do
4356   for ac_exec_ext in '' $ac_executable_extensions; do
4357     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4358     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4359     # Check for GNU ac_path_EGREP and select it if it is found.
4360   # Check for GNU $ac_path_EGREP
4361 case `"$ac_path_EGREP" --version 2>&1` in
4362 *GNU*)
4363   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4364 *)
4365   ac_count=0
4366   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4367   while :
4368   do
4369     cat "conftest.in" "conftest.in" >"conftest.tmp"
4370     mv "conftest.tmp" "conftest.in"
4371     cp "conftest.in" "conftest.nl"
4372     echo 'EGREP' >> "conftest.nl"
4373     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375     ac_count=`expr $ac_count + 1`
4376     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4377       # Best one so far, save it but keep looking for a better one
4378       ac_cv_path_EGREP="$ac_path_EGREP"
4379       ac_path_EGREP_max=$ac_count
4380     fi
4381     # 10*(2^10) chars as input seems more than enough
4382     test $ac_count -gt 10 && break
4383   done
4384   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4385 esac
4386
4387
4388     $ac_path_EGREP_found && break 3
4389   done
4390 done
4391
4392 done
4393 IFS=$as_save_IFS
4394
4395
4396 fi
4397
4398 EGREP="$ac_cv_path_EGREP"
4399 if test -z "$EGREP"; then
4400   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4401 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4402    { (exit 1); exit 1; }; }
4403 fi
4404
4405 else
4406   ac_cv_path_EGREP=$EGREP
4407 fi
4408
4409
4410    fi
4411 fi
4412 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4413 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4414  EGREP="$ac_cv_path_EGREP"
4415
4416
4417
4418     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4419 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4420 if test "${ac_cv_gnu_library_2+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429
4430 #include <features.h>
4431 #ifdef __GNU_LIBRARY__
4432  #if (__GLIBC__ >= 2)
4433   Lucky GNU user
4434  #endif
4435 #endif
4436
4437 _ACEOF
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4440   ac_cv_gnu_library_2=yes
4441 else
4442   ac_cv_gnu_library_2=no
4443 fi
4444 rm -f conftest*
4445
4446
4447
4448 fi
4449 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4450 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4451
4452     GLIBC2="$ac_cv_gnu_library_2"
4453
4454
4455 if test -n "$ac_tool_prefix"; then
4456   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_RANLIB+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   if test -n "$RANLIB"; then
4464   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471   for ac_exec_ext in '' $ac_executable_extensions; do
4472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 RANLIB=$ac_cv_prog_RANLIB
4484 if test -n "$RANLIB"; then
4485   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4486 echo "${ECHO_T}$RANLIB" >&6; }
4487 else
4488   { echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6; }
4490 fi
4491
4492
4493 fi
4494 if test -z "$ac_cv_prog_RANLIB"; then
4495   ac_ct_RANLIB=$RANLIB
4496   # Extract the first word of "ranlib", so it can be a program name with args.
4497 set dummy ranlib; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$ac_ct_RANLIB"; then
4504   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513     ac_cv_prog_ac_ct_RANLIB="ranlib"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519 IFS=$as_save_IFS
4520
4521 fi
4522 fi
4523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4524 if test -n "$ac_ct_RANLIB"; then
4525   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4526 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4527 else
4528   { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4530 fi
4531
4532   if test "x$ac_ct_RANLIB" = x; then
4533     RANLIB=":"
4534   else
4535     case $cross_compiling:$ac_tool_warned in
4536 yes:)
4537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4538 whose name does not start with the host triplet.  If you think this
4539 configuration is useful to you, please write to autoconf@gnu.org." >&5
4540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4541 whose name does not start with the host triplet.  If you think this
4542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4543 ac_tool_warned=yes ;;
4544 esac
4545     RANLIB=$ac_ct_RANLIB
4546   fi
4547 else
4548   RANLIB="$ac_cv_prog_RANLIB"
4549 fi
4550
4551
4552
4553   CFLAG_VISIBILITY=
4554   HAVE_VISIBILITY=0
4555   if test -n "$GCC"; then
4556     { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
4557 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
4558     if test "${gl_cv_cc_visibility+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561
4562       gl_save_CFLAGS="$CFLAGS"
4563       CFLAGS="$CFLAGS -fvisibility=hidden"
4564       cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h.  */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h.  */
4570 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4571          extern __attribute__((__visibility__("default"))) int exportedvar;
4572          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4573          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (ac_try="$ac_compile"
4584 case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589   (eval "$ac_compile") 2>conftest.er1
4590   ac_status=$?
4591   grep -v '^ *+' conftest.er1 >conftest.err
4592   rm -f conftest.er1
4593   cat conftest.err >&5
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } && {
4596          test -z "$ac_c_werror_flag" ||
4597          test ! -s conftest.err
4598        } && test -s conftest.$ac_objext; then
4599   gl_cv_cc_visibility=yes
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604         gl_cv_cc_visibility=no
4605 fi
4606
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608       CFLAGS="$gl_save_CFLAGS"
4609 fi
4610
4611     { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
4612 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
4613     if test $gl_cv_cc_visibility = yes; then
4614       CFLAG_VISIBILITY="-fvisibility=hidden"
4615       HAVE_VISIBILITY=1
4616     fi
4617   fi
4618
4619
4620
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_VISIBILITY $HAVE_VISIBILITY
4623 _ACEOF
4624
4625
4626 { echo "$as_me:$LINENO: checking for inline" >&5
4627 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4628 if test "${ac_cv_c_inline+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   ac_cv_c_inline=no
4632 for ac_kw in inline __inline__ __inline; do
4633   cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639 #ifndef __cplusplus
4640 typedef int foo_t;
4641 static $ac_kw foo_t static_foo () {return 0; }
4642 $ac_kw foo_t foo () {return 0; }
4643 #endif
4644
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (ac_try="$ac_compile"
4648 case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653   (eval "$ac_compile") 2>conftest.er1
4654   ac_status=$?
4655   grep -v '^ *+' conftest.er1 >conftest.err
4656   rm -f conftest.er1
4657   cat conftest.err >&5
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); } && {
4660          test -z "$ac_c_werror_flag" ||
4661          test ! -s conftest.err
4662        } && test -s conftest.$ac_objext; then
4663   ac_cv_c_inline=$ac_kw
4664 else
4665   echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668
4669 fi
4670
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672   test "$ac_cv_c_inline" != no && break
4673 done
4674
4675 fi
4676 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4677 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4678
4679
4680 case $ac_cv_c_inline in
4681   inline | yes) ;;
4682   *)
4683     case $ac_cv_c_inline in
4684       no) ac_val=;;
4685       *) ac_val=$ac_cv_c_inline;;
4686     esac
4687     cat >>confdefs.h <<_ACEOF
4688 #ifndef __cplusplus
4689 #define inline $ac_val
4690 #endif
4691 _ACEOF
4692     ;;
4693 esac
4694
4695 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4697 if test "${ac_cv_header_stdc+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 #include <stdlib.h>
4707 #include <stdarg.h>
4708 #include <string.h>
4709 #include <float.h>
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726   (eval "$ac_compile") 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && {
4733          test -z "$ac_c_werror_flag" ||
4734          test ! -s conftest.err
4735        } && test -s conftest.$ac_objext; then
4736   ac_cv_header_stdc=yes
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741         ac_cv_header_stdc=no
4742 fi
4743
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745
4746 if test $ac_cv_header_stdc = yes; then
4747   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4748   cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h.  */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h.  */
4754 #include <string.h>
4755
4756 _ACEOF
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758   $EGREP "memchr" >/dev/null 2>&1; then
4759   :
4760 else
4761   ac_cv_header_stdc=no
4762 fi
4763 rm -f conftest*
4764
4765 fi
4766
4767 if test $ac_cv_header_stdc = yes; then
4768   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4769   cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 #include <stdlib.h>
4776
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779   $EGREP "free" >/dev/null 2>&1; then
4780   :
4781 else
4782   ac_cv_header_stdc=no
4783 fi
4784 rm -f conftest*
4785
4786 fi
4787
4788 if test $ac_cv_header_stdc = yes; then
4789   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790   if test "$cross_compiling" = yes; then
4791   :
4792 else
4793   cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 #include <ctype.h>
4800 #include <stdlib.h>
4801 #if ((' ' & 0x0FF) == 0x020)
4802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4804 #else
4805 # define ISLOWER(c) \
4806                    (('a' <= (c) && (c) <= 'i') \
4807                      || ('j' <= (c) && (c) <= 'r') \
4808                      || ('s' <= (c) && (c) <= 'z'))
4809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4810 #endif
4811
4812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4813 int
4814 main ()
4815 {
4816   int i;
4817   for (i = 0; i < 256; i++)
4818     if (XOR (islower (i), ISLOWER (i))
4819         || toupper (i) != TOUPPER (i))
4820       return 2;
4821   return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest$ac_exeext
4825 if { (ac_try="$ac_link"
4826 case "(($ac_try" in
4827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828   *) ac_try_echo=$ac_try;;
4829 esac
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831   (eval "$ac_link") 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4835   { (case "(($ac_try" in
4836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837   *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840   (eval "$ac_try") 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; }; then
4844   :
4845 else
4846   echo "$as_me: program exited with status $ac_status" >&5
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 ( exit $ac_status )
4851 ac_cv_header_stdc=no
4852 fi
4853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4854 fi
4855
4856
4857 fi
4858 fi
4859 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4860 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4861 if test $ac_cv_header_stdc = yes; then
4862
4863 cat >>confdefs.h <<\_ACEOF
4864 #define STDC_HEADERS 1
4865 _ACEOF
4866
4867 fi
4868
4869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4880                   inttypes.h stdint.h unistd.h
4881 do
4882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4886   echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888   cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 $ac_includes_default
4895
4896 #include <$ac_header>
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902   *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905   (eval "$ac_compile") 2>conftest.er1
4906   ac_status=$?
4907   grep -v '^ *+' conftest.er1 >conftest.err
4908   rm -f conftest.er1
4909   cat conftest.err >&5
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); } && {
4912          test -z "$ac_c_werror_flag" ||
4913          test ! -s conftest.err
4914        } && test -s conftest.$ac_objext; then
4915   eval "$as_ac_Header=yes"
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920         eval "$as_ac_Header=no"
4921 fi
4922
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 fi
4925 ac_res=`eval echo '${'$as_ac_Header'}'`
4926                { echo "$as_me:$LINENO: result: $ac_res" >&5
4927 echo "${ECHO_T}$ac_res" >&6; }
4928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4929   cat >>confdefs.h <<_ACEOF
4930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4931 _ACEOF
4932
4933 fi
4934
4935 done
4936
4937
4938 { echo "$as_me:$LINENO: checking for size_t" >&5
4939 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4940 if test "${ac_cv_type_size_t+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 $ac_includes_default
4950 typedef size_t ac__type_new_;
4951 int
4952 main ()
4953 {
4954 if ((ac__type_new_ *) 0)
4955   return 0;
4956 if (sizeof (ac__type_new_))
4957   return 0;
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4964 case "(($ac_try" in
4965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966   *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969   (eval "$ac_compile") 2>conftest.er1
4970   ac_status=$?
4971   grep -v '^ *+' conftest.er1 >conftest.err
4972   rm -f conftest.er1
4973   cat conftest.err >&5
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } && {
4976          test -z "$ac_c_werror_flag" ||
4977          test ! -s conftest.err
4978        } && test -s conftest.$ac_objext; then
4979   ac_cv_type_size_t=yes
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984         ac_cv_type_size_t=no
4985 fi
4986
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 fi
4989 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4990 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4991 if test $ac_cv_type_size_t = yes; then
4992   :
4993 else
4994
4995 cat >>confdefs.h <<_ACEOF
4996 #define size_t unsigned int
4997 _ACEOF
4998
4999 fi
5000
5001
5002   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5003 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5004 if test "${gl_cv_header_stdint_h+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #include <sys/types.h>
5014 #include <stdint.h>
5015 int
5016 main ()
5017 {
5018 uintmax_t i = (uintmax_t) -1; return !i;
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (ac_try="$ac_compile"
5025 case "(($ac_try" in
5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027   *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030   (eval "$ac_compile") 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } && {
5037          test -z "$ac_c_werror_flag" ||
5038          test ! -s conftest.err
5039        } && test -s conftest.$ac_objext; then
5040   gl_cv_header_stdint_h=yes
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045         gl_cv_header_stdint_h=no
5046 fi
5047
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
5051 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
5052   if test $gl_cv_header_stdint_h = yes; then
5053
5054 cat >>confdefs.h <<_ACEOF
5055 #define HAVE_STDINT_H_WITH_UINTMAX 1
5056 _ACEOF
5057
5058   fi
5059
5060 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5061 # for constant arguments.  Useless!
5062 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5063 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5064 if test "${ac_cv_working_alloca_h+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 #include <alloca.h>
5074 int
5075 main ()
5076 {
5077 char *p = (char *) alloca (2 * sizeof (int));
5078                           if (p) return 0;
5079   ;
5080   return 0;
5081 }
5082 _ACEOF
5083 rm -f conftest.$ac_objext conftest$ac_exeext
5084 if { (ac_try="$ac_link"
5085 case "(($ac_try" in
5086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087   *) ac_try_echo=$ac_try;;
5088 esac
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090   (eval "$ac_link") 2>conftest.er1
5091   ac_status=$?
5092   grep -v '^ *+' conftest.er1 >conftest.err
5093   rm -f conftest.er1
5094   cat conftest.err >&5
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); } && {
5097          test -z "$ac_c_werror_flag" ||
5098          test ! -s conftest.err
5099        } && test -s conftest$ac_exeext &&
5100        $as_test_x conftest$ac_exeext; then
5101   ac_cv_working_alloca_h=yes
5102 else
5103   echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106         ac_cv_working_alloca_h=no
5107 fi
5108
5109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5110       conftest$ac_exeext conftest.$ac_ext
5111 fi
5112 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5113 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5114 if test $ac_cv_working_alloca_h = yes; then
5115
5116 cat >>confdefs.h <<\_ACEOF
5117 #define HAVE_ALLOCA_H 1
5118 _ACEOF
5119
5120 fi
5121
5122 { echo "$as_me:$LINENO: checking for alloca" >&5
5123 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5124 if test "${ac_cv_func_alloca_works+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h.  */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h.  */
5133 #ifdef __GNUC__
5134 # define alloca __builtin_alloca
5135 #else
5136 # ifdef _MSC_VER
5137 #  include <malloc.h>
5138 #  define alloca _alloca
5139 # else
5140 #  ifdef HAVE_ALLOCA_H
5141 #   include <alloca.h>
5142 #  else
5143 #   ifdef _AIX
5144  #pragma alloca
5145 #   else
5146 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5147 char *alloca ();
5148 #    endif
5149 #   endif
5150 #  endif
5151 # endif
5152 #endif
5153
5154 int
5155 main ()
5156 {
5157 char *p = (char *) alloca (1);
5158                                     if (p) return 0;
5159   ;
5160   return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (ac_try="$ac_link"
5165 case "(($ac_try" in
5166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167   *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170   (eval "$ac_link") 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
5174   cat conftest.err >&5
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } && {
5177          test -z "$ac_c_werror_flag" ||
5178          test ! -s conftest.err
5179        } && test -s conftest$ac_exeext &&
5180        $as_test_x conftest$ac_exeext; then
5181   ac_cv_func_alloca_works=yes
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186         ac_cv_func_alloca_works=no
5187 fi
5188
5189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5190       conftest$ac_exeext conftest.$ac_ext
5191 fi
5192 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5193 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5194
5195 if test $ac_cv_func_alloca_works = yes; then
5196
5197 cat >>confdefs.h <<\_ACEOF
5198 #define HAVE_ALLOCA 1
5199 _ACEOF
5200
5201 else
5202   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5203 # that cause trouble.  Some versions do not even contain alloca or
5204 # contain a buggy version.  If you still want to use their alloca,
5205 # use ar to extract alloca.o from them instead of compiling alloca.c.
5206
5207 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5208
5209 cat >>confdefs.h <<\_ACEOF
5210 #define C_ALLOCA 1
5211 _ACEOF
5212
5213
5214 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5215 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5216 if test "${ac_cv_os_cray+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225 #if defined CRAY && ! defined CRAY2
5226 webecray
5227 #else
5228 wenotbecray
5229 #endif
5230
5231 _ACEOF
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233   $EGREP "webecray" >/dev/null 2>&1; then
5234   ac_cv_os_cray=yes
5235 else
5236   ac_cv_os_cray=no
5237 fi
5238 rm -f conftest*
5239
5240 fi
5241 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5242 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5243 if test $ac_cv_os_cray = yes; then
5244   for ac_func in _getb67 GETB67 getb67; do
5245     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5259 #define $ac_func innocuous_$ac_func
5260
5261 /* System header to define __stub macros and hopefully few prototypes,
5262     which can conflict with char $ac_func (); below.
5263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264     <limits.h> exists even on freestanding compilers.  */
5265
5266 #ifdef __STDC__
5267 # include <limits.h>
5268 #else
5269 # include <assert.h>
5270 #endif
5271
5272 #undef $ac_func
5273
5274 /* Override any GCC internal prototype to avoid an error.
5275    Use char because int might match the return type of a GCC
5276    builtin and then its argument prototype would still apply.  */
5277 #ifdef __cplusplus
5278 extern "C"
5279 #endif
5280 char $ac_func ();
5281 /* The GNU C library defines this for functions which it implements
5282     to always fail with ENOSYS.  Some functions are actually named
5283     something starting with __ and the normal name is an alias.  */
5284 #if defined __stub_$ac_func || defined __stub___$ac_func
5285 choke me
5286 #endif
5287
5288 int
5289 main ()
5290 {
5291 return $ac_func ();
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext conftest$ac_exeext
5297 if { (ac_try="$ac_link"
5298 case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_link") 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } && {
5310          test -z "$ac_c_werror_flag" ||
5311          test ! -s conftest.err
5312        } && test -s conftest$ac_exeext &&
5313        $as_test_x conftest$ac_exeext; then
5314   eval "$as_ac_var=yes"
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319         eval "$as_ac_var=no"
5320 fi
5321
5322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5323       conftest$ac_exeext conftest.$ac_ext
5324 fi
5325 ac_res=`eval echo '${'$as_ac_var'}'`
5326                { echo "$as_me:$LINENO: result: $ac_res" >&5
5327 echo "${ECHO_T}$ac_res" >&6; }
5328 if test `eval echo '${'$as_ac_var'}'` = yes; then
5329
5330 cat >>confdefs.h <<_ACEOF
5331 #define CRAY_STACKSEG_END $ac_func
5332 _ACEOF
5333
5334     break
5335 fi
5336
5337   done
5338 fi
5339
5340 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5341 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5342 if test "${ac_cv_c_stack_direction+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test "$cross_compiling" = yes; then
5346   ac_cv_c_stack_direction=0
5347 else
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 $ac_includes_default
5355 int
5356 find_stack_direction ()
5357 {
5358   static char *addr = 0;
5359   auto char dummy;
5360   if (addr == 0)
5361     {
5362       addr = &dummy;
5363       return find_stack_direction ();
5364     }
5365   else
5366     return (&dummy > addr) ? 1 : -1;
5367 }
5368
5369 int
5370 main ()
5371 {
5372   return find_stack_direction () < 0;
5373 }
5374 _ACEOF
5375 rm -f conftest$ac_exeext
5376 if { (ac_try="$ac_link"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_link") 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5386   { (case "(($ac_try" in
5387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388   *) ac_try_echo=$ac_try;;
5389 esac
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391   (eval "$ac_try") 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; }; then
5395   ac_cv_c_stack_direction=1
5396 else
5397   echo "$as_me: program exited with status $ac_status" >&5
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 ( exit $ac_status )
5402 ac_cv_c_stack_direction=-1
5403 fi
5404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5405 fi
5406
5407
5408 fi
5409 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5410 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5411
5412 cat >>confdefs.h <<_ACEOF
5413 #define STACK_DIRECTION $ac_cv_c_stack_direction
5414 _ACEOF
5415
5416
5417 fi
5418
5419
5420
5421 for ac_header in stdlib.h unistd.h
5422 do
5423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5425   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 fi
5430 ac_res=`eval echo '${'$as_ac_Header'}'`
5431                { echo "$as_me:$LINENO: result: $ac_res" >&5
5432 echo "${ECHO_T}$ac_res" >&6; }
5433 else
5434   # Is the header compilable?
5435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443 $ac_includes_default
5444 #include <$ac_header>
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453   (eval "$ac_compile") 2>conftest.er1
5454   ac_status=$?
5455   grep -v '^ *+' conftest.er1 >conftest.err
5456   rm -f conftest.er1
5457   cat conftest.err >&5
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } && {
5460          test -z "$ac_c_werror_flag" ||
5461          test ! -s conftest.err
5462        } && test -s conftest.$ac_objext; then
5463   ac_header_compiler=yes
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468         ac_header_compiler=no
5469 fi
5470
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5473 echo "${ECHO_T}$ac_header_compiler" >&6; }
5474
5475 # Is the header present?
5476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
5485 _ACEOF
5486 if { (ac_try="$ac_cpp conftest.$ac_ext"
5487 case "(($ac_try" in
5488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489   *) ac_try_echo=$ac_try;;
5490 esac
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } >/dev/null && {
5499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5500          test ! -s conftest.err
5501        }; then
5502   ac_header_preproc=yes
5503 else
5504   echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507   ac_header_preproc=no
5508 fi
5509
5510 rm -f conftest.err conftest.$ac_ext
5511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5512 echo "${ECHO_T}$ac_header_preproc" >&6; }
5513
5514 # So?  What about this header?
5515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5516   yes:no: )
5517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5521     ac_header_preproc=yes
5522     ;;
5523   no:yes:* )
5524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5526     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5527 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5528     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5530     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5531 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5534     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5536     ( cat <<\_ASBOX
5537 ## -------------------------------------- ##
5538 ## Report this to choe.hwanjing@gmail.com ##
5539 ## -------------------------------------- ##
5540 _ASBOX
5541      ) | sed "s/^/$as_me: WARNING:     /" >&2
5542     ;;
5543 esac
5544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   eval "$as_ac_Header=\$ac_header_preproc"
5550 fi
5551 ac_res=`eval echo '${'$as_ac_Header'}'`
5552                { echo "$as_me:$LINENO: result: $ac_res" >&5
5553 echo "${ECHO_T}$ac_res" >&6; }
5554
5555 fi
5556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557   cat >>confdefs.h <<_ACEOF
5558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559 _ACEOF
5560
5561 fi
5562
5563 done
5564
5565
5566 for ac_func in getpagesize
5567 do
5568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5572   echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574   cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5582 #define $ac_func innocuous_$ac_func
5583
5584 /* System header to define __stub macros and hopefully few prototypes,
5585     which can conflict with char $ac_func (); below.
5586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5587     <limits.h> exists even on freestanding compilers.  */
5588
5589 #ifdef __STDC__
5590 # include <limits.h>
5591 #else
5592 # include <assert.h>
5593 #endif
5594
5595 #undef $ac_func
5596
5597 /* Override any GCC internal prototype to avoid an error.
5598    Use char because int might match the return type of a GCC
5599    builtin and then its argument prototype would still apply.  */
5600 #ifdef __cplusplus
5601 extern "C"
5602 #endif
5603 char $ac_func ();
5604 /* The GNU C library defines this for functions which it implements
5605     to always fail with ENOSYS.  Some functions are actually named
5606     something starting with __ and the normal name is an alias.  */
5607 #if defined __stub_$ac_func || defined __stub___$ac_func
5608 choke me
5609 #endif
5610
5611 int
5612 main ()
5613 {
5614 return $ac_func ();
5615   ;
5616   return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext conftest$ac_exeext
5620 if { (ac_try="$ac_link"
5621 case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626   (eval "$ac_link") 2>conftest.er1
5627   ac_status=$?
5628   grep -v '^ *+' conftest.er1 >conftest.err
5629   rm -f conftest.er1
5630   cat conftest.err >&5
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } && {
5633          test -z "$ac_c_werror_flag" ||
5634          test ! -s conftest.err
5635        } && test -s conftest$ac_exeext &&
5636        $as_test_x conftest$ac_exeext; then
5637   eval "$as_ac_var=yes"
5638 else
5639   echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642         eval "$as_ac_var=no"
5643 fi
5644
5645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5646       conftest$ac_exeext conftest.$ac_ext
5647 fi
5648 ac_res=`eval echo '${'$as_ac_var'}'`
5649                { echo "$as_me:$LINENO: result: $ac_res" >&5
5650 echo "${ECHO_T}$ac_res" >&6; }
5651 if test `eval echo '${'$as_ac_var'}'` = yes; then
5652   cat >>confdefs.h <<_ACEOF
5653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5654 _ACEOF
5655
5656 fi
5657 done
5658
5659 { echo "$as_me:$LINENO: checking for working mmap" >&5
5660 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
5661 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   if test "$cross_compiling" = yes; then
5665   ac_cv_func_mmap_fixed_mapped=no
5666 else
5667   cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5673 $ac_includes_default
5674 /* malloc might have been renamed as rpl_malloc. */
5675 #undef malloc
5676
5677 /* Thanks to Mike Haertel and Jim Avera for this test.
5678    Here is a matrix of mmap possibilities:
5679         mmap private not fixed
5680         mmap private fixed at somewhere currently unmapped
5681         mmap private fixed at somewhere already mapped
5682         mmap shared not fixed
5683         mmap shared fixed at somewhere currently unmapped
5684         mmap shared fixed at somewhere already mapped
5685    For private mappings, we should verify that changes cannot be read()
5686    back from the file, nor mmap's back from the file at a different
5687    address.  (There have been systems where private was not correctly
5688    implemented like the infamous i386 svr4.0, and systems where the
5689    VM page cache was not coherent with the file system buffer cache
5690    like early versions of FreeBSD and possibly contemporary NetBSD.)
5691    For shared mappings, we should conversely verify that changes get
5692    propagated back to all the places they're supposed to be.
5693
5694    Grep wants private fixed already mapped.
5695    The main things grep needs to know about mmap are:
5696    * does it exist and is it safe to write into the mmap'd area
5697    * how to use it (BSD variants)  */
5698
5699 #include <fcntl.h>
5700 #include <sys/mman.h>
5701
5702 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5703 char *malloc ();
5704 #endif
5705
5706 /* This mess was copied from the GNU getpagesize.h.  */
5707 #ifndef HAVE_GETPAGESIZE
5708 /* Assume that all systems that can run configure have sys/param.h.  */
5709 # ifndef HAVE_SYS_PARAM_H
5710 #  define HAVE_SYS_PARAM_H 1
5711 # endif
5712
5713 # ifdef _SC_PAGESIZE
5714 #  define getpagesize() sysconf(_SC_PAGESIZE)
5715 # else /* no _SC_PAGESIZE */
5716 #  ifdef HAVE_SYS_PARAM_H
5717 #   include <sys/param.h>
5718 #   ifdef EXEC_PAGESIZE
5719 #    define getpagesize() EXEC_PAGESIZE
5720 #   else /* no EXEC_PAGESIZE */
5721 #    ifdef NBPG
5722 #     define getpagesize() NBPG * CLSIZE
5723 #     ifndef CLSIZE
5724 #      define CLSIZE 1
5725 #     endif /* no CLSIZE */
5726 #    else /* no NBPG */
5727 #     ifdef NBPC
5728 #      define getpagesize() NBPC
5729 #     else /* no NBPC */
5730 #      ifdef PAGESIZE
5731 #       define getpagesize() PAGESIZE
5732 #      endif /* PAGESIZE */
5733 #     endif /* no NBPC */
5734 #    endif /* no NBPG */
5735 #   endif /* no EXEC_PAGESIZE */
5736 #  else /* no HAVE_SYS_PARAM_H */
5737 #   define getpagesize() 8192   /* punt totally */
5738 #  endif /* no HAVE_SYS_PARAM_H */
5739 # endif /* no _SC_PAGESIZE */
5740
5741 #endif /* no HAVE_GETPAGESIZE */
5742
5743 int
5744 main ()
5745 {
5746   char *data, *data2, *data3;
5747   int i, pagesize;
5748   int fd;
5749
5750   pagesize = getpagesize ();
5751
5752   /* First, make a file with some known garbage in it. */
5753   data = (char *) malloc (pagesize);
5754   if (!data)
5755     return 1;
5756   for (i = 0; i < pagesize; ++i)
5757     *(data + i) = rand ();
5758   umask (0);
5759   fd = creat ("conftest.mmap", 0600);
5760   if (fd < 0)
5761     return 1;
5762   if (write (fd, data, pagesize) != pagesize)
5763     return 1;
5764   close (fd);
5765
5766   /* Next, try to mmap the file at a fixed address which already has
5767      something else allocated at it.  If we can, also make sure that
5768      we see the same garbage.  */
5769   fd = open ("conftest.mmap", O_RDWR);
5770   if (fd < 0)
5771     return 1;
5772   data2 = (char *) malloc (2 * pagesize);
5773   if (!data2)
5774     return 1;
5775   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5776   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5777                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5778     return 1;
5779   for (i = 0; i < pagesize; ++i)
5780     if (*(data + i) != *(data2 + i))
5781       return 1;
5782
5783   /* Finally, make sure that changes to the mapped area do not
5784      percolate back to the file as seen by read().  (This is a bug on
5785      some variants of i386 svr4.0.)  */
5786   for (i = 0; i < pagesize; ++i)
5787     *(data2 + i) = *(data2 + i) + 1;
5788   data3 = (char *) malloc (pagesize);
5789   if (!data3)
5790     return 1;
5791   if (read (fd, data3, pagesize) != pagesize)
5792     return 1;
5793   for (i = 0; i < pagesize; ++i)
5794     if (*(data + i) != *(data3 + i))
5795       return 1;
5796   close (fd);
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest$ac_exeext
5801 if { (ac_try="$ac_link"
5802 case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807   (eval "$ac_link") 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5811   { (case "(($ac_try" in
5812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813   *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816   (eval "$ac_try") 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; }; then
5820   ac_cv_func_mmap_fixed_mapped=yes
5821 else
5822   echo "$as_me: program exited with status $ac_status" >&5
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 ( exit $ac_status )
5827 ac_cv_func_mmap_fixed_mapped=no
5828 fi
5829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5830 fi
5831
5832
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5835 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5836 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5837
5838 cat >>confdefs.h <<\_ACEOF
5839 #define HAVE_MMAP 1
5840 _ACEOF
5841
5842 fi
5843 rm -f conftest.mmap
5844
5845
5846
5847   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5848 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
5849 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852
5853       if test "$cross_compiling" = yes; then
5854
5855           # Guess based on the CPU.
5856           case "$host_cpu" in
5857             alpha* | i3456786 | m68k | s390*)
5858               gt_cv_int_divbyzero_sigfpe="guessing yes";;
5859             *)
5860               gt_cv_int_divbyzero_sigfpe="guessing no";;
5861           esac
5862
5863 else
5864   cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870
5871 #include <stdlib.h>
5872 #include <signal.h>
5873
5874 static void
5875 #ifdef __cplusplus
5876 sigfpe_handler (int sig)
5877 #else
5878 sigfpe_handler (sig) int sig;
5879 #endif
5880 {
5881   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5882   exit (sig != SIGFPE);
5883 }
5884
5885 int x = 1;
5886 int y = 0;
5887 int z;
5888 int nan;
5889
5890 int main ()
5891 {
5892   signal (SIGFPE, sigfpe_handler);
5893 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5894 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5895   signal (SIGTRAP, sigfpe_handler);
5896 #endif
5897 /* Linux/SPARC yields signal SIGILL.  */
5898 #if defined (__sparc__) && defined (__linux__)
5899   signal (SIGILL, sigfpe_handler);
5900 #endif
5901
5902   z = x / y;
5903   nan = y / y;
5904   exit (1);
5905 }
5906
5907 _ACEOF
5908 rm -f conftest$ac_exeext
5909 if { (ac_try="$ac_link"
5910 case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_link") 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; }; then
5928   gt_cv_int_divbyzero_sigfpe=yes
5929 else
5930   echo "$as_me: program exited with status $ac_status" >&5
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 ( exit $ac_status )
5935 gt_cv_int_divbyzero_sigfpe=no
5936 fi
5937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5938 fi
5939
5940
5941
5942 fi
5943 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5944 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
5945   case "$gt_cv_int_divbyzero_sigfpe" in
5946     *yes) value=1;;
5947     *) value=0;;
5948   esac
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define INTDIV0_RAISES_SIGFPE $value
5952 _ACEOF
5953
5954
5955
5956   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5957 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5958 if test "${gl_cv_header_inttypes_h+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967 #include <sys/types.h>
5968 #include <inttypes.h>
5969 int
5970 main ()
5971 {
5972 uintmax_t i = (uintmax_t) -1; return !i;
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5979 case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984   (eval "$ac_compile") 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } && {
5991          test -z "$ac_c_werror_flag" ||
5992          test ! -s conftest.err
5993        } && test -s conftest.$ac_objext; then
5994   gl_cv_header_inttypes_h=yes
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999         gl_cv_header_inttypes_h=no
6000 fi
6001
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003 fi
6004 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
6005 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
6006   if test $gl_cv_header_inttypes_h = yes; then
6007
6008 cat >>confdefs.h <<_ACEOF
6009 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6010 _ACEOF
6011
6012   fi
6013
6014
6015   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
6016 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
6017 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026 unsigned long long int ull = 18446744073709551615ULL;
6027             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
6028                            ? 1 : -1)];
6029            int i = 63;
6030 int
6031 main ()
6032 {
6033 unsigned long long int ullmax = 18446744073709551615ull;
6034             return (ull << 63 | ull >> 63 | ull << i | ull >> i
6035                     | ullmax / ull | ullmax % ull);
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (ac_try="$ac_link"
6042 case "(($ac_try" in
6043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044   *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047   (eval "$ac_link") 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } && {
6054          test -z "$ac_c_werror_flag" ||
6055          test ! -s conftest.err
6056        } && test -s conftest$ac_exeext &&
6057        $as_test_x conftest$ac_exeext; then
6058   ac_cv_type_unsigned_long_long_int=yes
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063         ac_cv_type_unsigned_long_long_int=no
6064 fi
6065
6066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6067       conftest$ac_exeext conftest.$ac_ext
6068 fi
6069 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
6070 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
6071   if test $ac_cv_type_unsigned_long_long_int = yes; then
6072
6073 cat >>confdefs.h <<\_ACEOF
6074 #define HAVE_UNSIGNED_LONG_LONG_INT 1
6075 _ACEOF
6076
6077   fi
6078
6079
6080
6081   ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
6082   if test $ac_cv_type_unsigned_long_long = yes; then
6083
6084 cat >>confdefs.h <<\_ACEOF
6085 #define HAVE_UNSIGNED_LONG_LONG 1
6086 _ACEOF
6087
6088   fi
6089
6090
6091
6092
6093   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
6094
6095     test $ac_cv_type_unsigned_long_long = yes \
6096       && ac_type='unsigned long long' \
6097       || ac_type='unsigned long'
6098
6099 cat >>confdefs.h <<_ACEOF
6100 #define uintmax_t $ac_type
6101 _ACEOF
6102
6103   else
6104
6105 cat >>confdefs.h <<\_ACEOF
6106 #define HAVE_UINTMAX_T 1
6107 _ACEOF
6108
6109   fi
6110
6111
6112   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6113 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6114 if test "${gt_cv_header_inttypes_h+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117
6118     cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h.  */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h.  */
6124 #include <sys/types.h>
6125 #include <inttypes.h>
6126 int
6127 main ()
6128 {
6129
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 rm -f conftest.$ac_objext
6135 if { (ac_try="$ac_compile"
6136 case "(($ac_try" in
6137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138   *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141   (eval "$ac_compile") 2>conftest.er1
6142   ac_status=$?
6143   grep -v '^ *+' conftest.er1 >conftest.err
6144   rm -f conftest.er1
6145   cat conftest.err >&5
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } && {
6148          test -z "$ac_c_werror_flag" ||
6149          test ! -s conftest.err
6150        } && test -s conftest.$ac_objext; then
6151   gt_cv_header_inttypes_h=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156         gt_cv_header_inttypes_h=no
6157 fi
6158
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160
6161 fi
6162 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6163 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6164   if test $gt_cv_header_inttypes_h = yes; then
6165
6166 cat >>confdefs.h <<_ACEOF
6167 #define HAVE_INTTYPES_H 1
6168 _ACEOF
6169
6170   fi
6171
6172
6173
6174   if test $gt_cv_header_inttypes_h = yes; then
6175     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6176 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6177 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180
6181         cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187 #include <inttypes.h>
6188 #ifdef PRId32
6189 char *p = PRId32;
6190 #endif
6191
6192 int
6193 main ()
6194 {
6195
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204   *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207   (eval "$ac_compile") 2>conftest.er1
6208   ac_status=$?
6209   grep -v '^ *+' conftest.er1 >conftest.err
6210   rm -f conftest.er1
6211   cat conftest.err >&5
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } && {
6214          test -z "$ac_c_werror_flag" ||
6215          test ! -s conftest.err
6216        } && test -s conftest.$ac_objext; then
6217   gt_cv_inttypes_pri_broken=no
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222         gt_cv_inttypes_pri_broken=yes
6223 fi
6224
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226
6227 fi
6228 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6229 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6230   fi
6231   if test "$gt_cv_inttypes_pri_broken" = yes; then
6232
6233 cat >>confdefs.h <<_ACEOF
6234 #define PRI_MACROS_BROKEN 1
6235 _ACEOF
6236
6237   fi
6238
6239
6240 cat >>confdefs.h <<\_ACEOF
6241 #define _GNU_SOURCE 1
6242 _ACEOF
6243
6244
6245
6246
6247
6248        # Check whether --enable-threads was given.
6249 if test "${enable_threads+set}" = set; then
6250   enableval=$enable_threads; gl_use_threads=$enableval
6251 else
6252   case "$host_os" in
6253                             osf*) gl_use_threads=no ;;
6254        *)    gl_use_threads=yes ;;
6255      esac
6256
6257 fi
6258
6259   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6260     # For using <pthread.h>:
6261     case "$host_os" in
6262       osf*)
6263         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6264         # groks <pthread.h>. cc also understands the flag -pthread, but
6265         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6266         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6267         # causes the AC_TRY_LINK test below to succeed unexpectedly,
6268         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6269         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6270         ;;
6271     esac
6272     # Some systems optimize for single-threaded programs by default, and
6273     # need special flags to disable these optimizations. For example, the
6274     # definition of 'errno' in <errno.h>.
6275     case "$host_os" in
6276       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6277       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6278     esac
6279   fi
6280
6281
6282
6283
6284
6285       if test "X$prefix" = "XNONE"; then
6286     acl_final_prefix="$ac_default_prefix"
6287   else
6288     acl_final_prefix="$prefix"
6289   fi
6290   if test "X$exec_prefix" = "XNONE"; then
6291     acl_final_exec_prefix='${prefix}'
6292   else
6293     acl_final_exec_prefix="$exec_prefix"
6294   fi
6295   acl_save_prefix="$prefix"
6296   prefix="$acl_final_prefix"
6297   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6298   prefix="$acl_save_prefix"
6299
6300
6301 # Check whether --with-gnu-ld was given.
6302 if test "${with_gnu_ld+set}" = set; then
6303   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6304 else
6305   with_gnu_ld=no
6306 fi
6307
6308 # Prepare PATH_SEPARATOR.
6309 # The user is always right.
6310 if test "${PATH_SEPARATOR+set}" != set; then
6311   echo "#! /bin/sh" >conf$$.sh
6312   echo  "exit 0"   >>conf$$.sh
6313   chmod +x conf$$.sh
6314   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6315     PATH_SEPARATOR=';'
6316   else
6317     PATH_SEPARATOR=:
6318   fi
6319   rm -f conf$$.sh
6320 fi
6321 ac_prog=ld
6322 if test "$GCC" = yes; then
6323   # Check if gcc -print-prog-name=ld gives a path.
6324   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6325 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6326   case $host in
6327   *-*-mingw*)
6328     # gcc leaves a trailing carriage return which upsets mingw
6329     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6330   *)
6331     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6332   esac
6333   case $ac_prog in
6334     # Accept absolute paths.
6335     [\\/]* | [A-Za-z]:[\\/]*)
6336       re_direlt='/[^/][^/]*/\.\./'
6337       # Canonicalize the path of ld
6338       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6339       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6340         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6341       done
6342       test -z "$LD" && LD="$ac_prog"
6343       ;;
6344   "")
6345     # If it fails, then pretend we aren't using GCC.
6346     ac_prog=ld
6347     ;;
6348   *)
6349     # If it is relative, then search for the first ld in PATH.
6350     with_gnu_ld=unknown
6351     ;;
6352   esac
6353 elif test "$with_gnu_ld" = yes; then
6354   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6355 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6356 else
6357   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6358 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6359 fi
6360 if test "${acl_cv_path_LD+set}" = set; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   if test -z "$LD"; then
6364   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6365   for ac_dir in $PATH; do
6366     test -z "$ac_dir" && ac_dir=.
6367     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6368       acl_cv_path_LD="$ac_dir/$ac_prog"
6369       # Check to see if the program is GNU ld.  I'd rather use --version,
6370       # but apparently some GNU ld's only accept -v.
6371       # Break only if it was the GNU/non-GNU ld that we prefer.
6372       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6373       *GNU* | *'with BFD'*)
6374         test "$with_gnu_ld" != no && break ;;
6375       *)
6376         test "$with_gnu_ld" != yes && break ;;
6377       esac
6378     fi
6379   done
6380   IFS="$ac_save_ifs"
6381 else
6382   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6383 fi
6384 fi
6385
6386 LD="$acl_cv_path_LD"
6387 if test -n "$LD"; then
6388   { echo "$as_me:$LINENO: result: $LD" >&5
6389 echo "${ECHO_T}$LD" >&6; }
6390 else
6391   { echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6; }
6393 fi
6394 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6395 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6396    { (exit 1); exit 1; }; }
6397 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6398 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6399 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6403 case `$LD -v 2>&1 </dev/null` in
6404 *GNU* | *'with BFD'*)
6405   acl_cv_prog_gnu_ld=yes ;;
6406 *)
6407   acl_cv_prog_gnu_ld=no ;;
6408 esac
6409 fi
6410 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6411 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6412 with_gnu_ld=$acl_cv_prog_gnu_ld
6413
6414
6415
6416                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6417 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6418 if test "${acl_cv_rpath+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421
6422     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6423     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6424     . ./conftest.sh
6425     rm -f ./conftest.sh
6426     acl_cv_rpath=done
6427
6428 fi
6429 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6430 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6431   wl="$acl_cv_wl"
6432   libext="$acl_cv_libext"
6433   shlibext="$acl_cv_shlibext"
6434   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6435   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6436   hardcode_direct="$acl_cv_hardcode_direct"
6437   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6438     # Check whether --enable-rpath was given.
6439 if test "${enable_rpath+set}" = set; then
6440   enableval=$enable_rpath; :
6441 else
6442   enable_rpath=yes
6443 fi
6444
6445
6446
6447
6448   gl_threads_api=none
6449   LIBTHREAD=
6450   LTLIBTHREAD=
6451   LIBMULTITHREAD=
6452   LTLIBMULTITHREAD=
6453   if test "$gl_use_threads" != no; then
6454         { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
6455 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
6456     gl_have_weak=no
6457     cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 extern void xyzzy ();
6464 #pragma weak xyzzy
6465 int
6466 main ()
6467 {
6468 xyzzy();
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext conftest$ac_exeext
6474 if { (ac_try="$ac_link"
6475 case "(($ac_try" in
6476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477   *) ac_try_echo=$ac_try;;
6478 esac
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480   (eval "$ac_link") 2>conftest.er1
6481   ac_status=$?
6482   grep -v '^ *+' conftest.er1 >conftest.err
6483   rm -f conftest.er1
6484   cat conftest.err >&5
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } && {
6487          test -z "$ac_c_werror_flag" ||
6488          test ! -s conftest.err
6489        } && test -s conftest$ac_exeext &&
6490        $as_test_x conftest$ac_exeext; then
6491   gl_have_weak=yes
6492 else
6493   echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496
6497 fi
6498
6499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6500       conftest$ac_exeext conftest.$ac_ext
6501     { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
6502 echo "${ECHO_T}$gl_have_weak" >&6; }
6503     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6504       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6505       # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
6506       if test "${ac_cv_header_pthread_h+set}" = set; then
6507   { echo "$as_me:$LINENO: checking for pthread.h" >&5
6508 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6509 if test "${ac_cv_header_pthread_h+set}" = set; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 fi
6512 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6513 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6514 else
6515   # Is the header compilable?
6516 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
6517 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h.  */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h.  */
6524 $ac_includes_default
6525 #include <pthread.h>
6526 _ACEOF
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6529 case "(($ac_try" in
6530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531   *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534   (eval "$ac_compile") 2>conftest.er1
6535   ac_status=$?
6536   grep -v '^ *+' conftest.er1 >conftest.err
6537   rm -f conftest.er1
6538   cat conftest.err >&5
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); } && {
6541          test -z "$ac_c_werror_flag" ||
6542          test ! -s conftest.err
6543        } && test -s conftest.$ac_objext; then
6544   ac_header_compiler=yes
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549         ac_header_compiler=no
6550 fi
6551
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6554 echo "${ECHO_T}$ac_header_compiler" >&6; }
6555
6556 # Is the header present?
6557 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
6558 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h.  */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h.  */
6565 #include <pthread.h>
6566 _ACEOF
6567 if { (ac_try="$ac_cpp conftest.$ac_ext"
6568 case "(($ac_try" in
6569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570   *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6574   ac_status=$?
6575   grep -v '^ *+' conftest.er1 >conftest.err
6576   rm -f conftest.er1
6577   cat conftest.err >&5
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } >/dev/null && {
6580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6581          test ! -s conftest.err
6582        }; then
6583   ac_header_preproc=yes
6584 else
6585   echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588   ac_header_preproc=no
6589 fi
6590
6591 rm -f conftest.err conftest.$ac_ext
6592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6593 echo "${ECHO_T}$ac_header_preproc" >&6; }
6594
6595 # So?  What about this header?
6596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6597   yes:no: )
6598     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6599 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6600     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6601 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6602     ac_header_preproc=yes
6603     ;;
6604   no:yes:* )
6605     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6606 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6607     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
6608 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
6609     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6610 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6611     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
6612 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6613     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6614 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6615     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6616 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6617     ( cat <<\_ASBOX
6618 ## -------------------------------------- ##
6619 ## Report this to choe.hwanjing@gmail.com ##
6620 ## -------------------------------------- ##
6621 _ASBOX
6622      ) | sed "s/^/$as_me: WARNING:     /" >&2
6623     ;;
6624 esac
6625 { echo "$as_me:$LINENO: checking for pthread.h" >&5
6626 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6627 if test "${ac_cv_header_pthread_h+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   ac_cv_header_pthread_h=$ac_header_preproc
6631 fi
6632 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6633 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6634
6635 fi
6636 if test $ac_cv_header_pthread_h = yes; then
6637   gl_have_pthread_h=yes
6638 else
6639   gl_have_pthread_h=no
6640 fi
6641
6642
6643       if test "$gl_have_pthread_h" = yes; then
6644         # Other possible tests:
6645         #   -lpthreads (FSU threads, PCthreads)
6646         #   -lgthreads
6647         gl_have_pthread=
6648         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6649         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6650         # the second one only in libpthread, and lock.c needs it.
6651         cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 #include <pthread.h>
6658 int
6659 main ()
6660 {
6661 pthread_mutex_lock((pthread_mutex_t*)0);
6662            pthread_mutexattr_init((pthread_mutexattr_t*)0);
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (ac_try="$ac_link"
6669 case "(($ac_try" in
6670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671   *) ac_try_echo=$ac_try;;
6672 esac
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674   (eval "$ac_link") 2>conftest.er1
6675   ac_status=$?
6676   grep -v '^ *+' conftest.er1 >conftest.err
6677   rm -f conftest.er1
6678   cat conftest.err >&5
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); } && {
6681          test -z "$ac_c_werror_flag" ||
6682          test ! -s conftest.err
6683        } && test -s conftest$ac_exeext &&
6684        $as_test_x conftest$ac_exeext; then
6685   gl_have_pthread=yes
6686 else
6687   echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690
6691 fi
6692
6693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6694       conftest$ac_exeext conftest.$ac_ext
6695         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6696         # since it is defined as a macro on OSF/1.)
6697         if test -n "$gl_have_pthread"; then
6698           # The program links fine without libpthread. But it may actually
6699           # need to link with libpthread in order to create multiple threads.
6700           { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6701 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6702 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   ac_check_lib_save_LIBS=$LIBS
6706 LIBS="-lpthread  $LIBS"
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h.  */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h.  */
6713
6714 /* Override any GCC internal prototype to avoid an error.
6715    Use char because int might match the return type of a GCC
6716    builtin and then its argument prototype would still apply.  */
6717 #ifdef __cplusplus
6718 extern "C"
6719 #endif
6720 char pthread_kill ();
6721 int
6722 main ()
6723 {
6724 return pthread_kill ();
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (ac_try="$ac_link"
6731 case "(($ac_try" in
6732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733   *) ac_try_echo=$ac_try;;
6734 esac
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736   (eval "$ac_link") 2>conftest.er1
6737   ac_status=$?
6738   grep -v '^ *+' conftest.er1 >conftest.err
6739   rm -f conftest.er1
6740   cat conftest.err >&5
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } && {
6743          test -z "$ac_c_werror_flag" ||
6744          test ! -s conftest.err
6745        } && test -s conftest$ac_exeext &&
6746        $as_test_x conftest$ac_exeext; then
6747   ac_cv_lib_pthread_pthread_kill=yes
6748 else
6749   echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752         ac_cv_lib_pthread_pthread_kill=no
6753 fi
6754
6755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6756       conftest$ac_exeext conftest.$ac_ext
6757 LIBS=$ac_check_lib_save_LIBS
6758 fi
6759 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6760 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6761 if test $ac_cv_lib_pthread_pthread_kill = yes; then
6762   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6763              # On Solaris and HP-UX, most pthread functions exist also in libc.
6764              # Therefore pthread_in_use() needs to actually try to create a
6765              # thread: pthread_create from libc will fail, whereas
6766              # pthread_create will actually create a thread.
6767              case "$host_os" in
6768                solaris* | hpux*)
6769
6770 cat >>confdefs.h <<\_ACEOF
6771 #define PTHREAD_IN_USE_DETECTION_HARD 1
6772 _ACEOF
6773
6774              esac
6775
6776 fi
6777
6778         else
6779           # Some library is needed. Try libpthread and libc_r.
6780           { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6781 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6782 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6783   echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785   ac_check_lib_save_LIBS=$LIBS
6786 LIBS="-lpthread  $LIBS"
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793
6794 /* Override any GCC internal prototype to avoid an error.
6795    Use char because int might match the return type of a GCC
6796    builtin and then its argument prototype would still apply.  */
6797 #ifdef __cplusplus
6798 extern "C"
6799 #endif
6800 char pthread_kill ();
6801 int
6802 main ()
6803 {
6804 return pthread_kill ();
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6811 case "(($ac_try" in
6812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813   *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816   (eval "$ac_link") 2>conftest.er1
6817   ac_status=$?
6818   grep -v '^ *+' conftest.er1 >conftest.err
6819   rm -f conftest.er1
6820   cat conftest.err >&5
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } && {
6823          test -z "$ac_c_werror_flag" ||
6824          test ! -s conftest.err
6825        } && test -s conftest$ac_exeext &&
6826        $as_test_x conftest$ac_exeext; then
6827   ac_cv_lib_pthread_pthread_kill=yes
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832         ac_cv_lib_pthread_pthread_kill=no
6833 fi
6834
6835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6836       conftest$ac_exeext conftest.$ac_ext
6837 LIBS=$ac_check_lib_save_LIBS
6838 fi
6839 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6840 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6841 if test $ac_cv_lib_pthread_pthread_kill = yes; then
6842   gl_have_pthread=yes
6843              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6844              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6845 fi
6846
6847           if test -z "$gl_have_pthread"; then
6848             # For FreeBSD 4.
6849             { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
6850 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
6851 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   ac_check_lib_save_LIBS=$LIBS
6855 LIBS="-lc_r  $LIBS"
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862
6863 /* Override any GCC internal prototype to avoid an error.
6864    Use char because int might match the return type of a GCC
6865    builtin and then its argument prototype would still apply.  */
6866 #ifdef __cplusplus
6867 extern "C"
6868 #endif
6869 char pthread_kill ();
6870 int
6871 main ()
6872 {
6873 return pthread_kill ();
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (ac_try="$ac_link"
6880 case "(($ac_try" in
6881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882   *) ac_try_echo=$ac_try;;
6883 esac
6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885   (eval "$ac_link") 2>conftest.er1
6886   ac_status=$?
6887   grep -v '^ *+' conftest.er1 >conftest.err
6888   rm -f conftest.er1
6889   cat conftest.err >&5
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } && {
6892          test -z "$ac_c_werror_flag" ||
6893          test ! -s conftest.err
6894        } && test -s conftest$ac_exeext &&
6895        $as_test_x conftest$ac_exeext; then
6896   ac_cv_lib_c_r_pthread_kill=yes
6897 else
6898   echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901         ac_cv_lib_c_r_pthread_kill=no
6902 fi
6903
6904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6905       conftest$ac_exeext conftest.$ac_ext
6906 LIBS=$ac_check_lib_save_LIBS
6907 fi
6908 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
6909 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
6910 if test $ac_cv_lib_c_r_pthread_kill = yes; then
6911   gl_have_pthread=yes
6912                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6913                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6914 fi
6915
6916           fi
6917         fi
6918         if test -n "$gl_have_pthread"; then
6919           gl_threads_api=posix
6920
6921 cat >>confdefs.h <<\_ACEOF
6922 #define USE_POSIX_THREADS 1
6923 _ACEOF
6924
6925           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6926             if test $gl_have_weak = yes; then
6927
6928 cat >>confdefs.h <<\_ACEOF
6929 #define USE_POSIX_THREADS_WEAK 1
6930 _ACEOF
6931
6932               LIBTHREAD=
6933               LTLIBTHREAD=
6934             fi
6935           fi
6936           # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6937           # pthread_rwlock_* functions.
6938           { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
6939 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
6940 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943   cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 #include <pthread.h>
6950
6951 typedef pthread_rwlock_t ac__type_new_;
6952 int
6953 main ()
6954 {
6955 if ((ac__type_new_ *) 0)
6956   return 0;
6957 if (sizeof (ac__type_new_))
6958   return 0;
6959   ;
6960   return 0;
6961 }
6962 _ACEOF
6963 rm -f conftest.$ac_objext
6964 if { (ac_try="$ac_compile"
6965 case "(($ac_try" in
6966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967   *) ac_try_echo=$ac_try;;
6968 esac
6969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970   (eval "$ac_compile") 2>conftest.er1
6971   ac_status=$?
6972   grep -v '^ *+' conftest.er1 >conftest.err
6973   rm -f conftest.er1
6974   cat conftest.err >&5
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } && {
6977          test -z "$ac_c_werror_flag" ||
6978          test ! -s conftest.err
6979        } && test -s conftest.$ac_objext; then
6980   ac_cv_type_pthread_rwlock_t=yes
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985         ac_cv_type_pthread_rwlock_t=no
6986 fi
6987
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 fi
6990 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
6991 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
6992 if test $ac_cv_type_pthread_rwlock_t = yes; then
6993
6994 cat >>confdefs.h <<\_ACEOF
6995 #define HAVE_PTHREAD_RWLOCK 1
6996 _ACEOF
6997
6998 fi
6999
7000           # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
7001           cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007 #include <pthread.h>
7008 int
7009 main ()
7010 {
7011 #if __FreeBSD__ == 4
7012 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
7013 #else
7014 int x = (int)PTHREAD_MUTEX_RECURSIVE;
7015 return !x;
7016 #endif
7017   ;
7018   return 0;
7019 }
7020 _ACEOF
7021 rm -f conftest.$ac_objext
7022 if { (ac_try="$ac_compile"
7023 case "(($ac_try" in
7024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025   *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028   (eval "$ac_compile") 2>conftest.er1
7029   ac_status=$?
7030   grep -v '^ *+' conftest.er1 >conftest.err
7031   rm -f conftest.er1
7032   cat conftest.err >&5
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); } && {
7035          test -z "$ac_c_werror_flag" ||
7036          test ! -s conftest.err
7037        } && test -s conftest.$ac_objext; then
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
7041 _ACEOF
7042
7043 else
7044   echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047
7048 fi
7049
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051         fi
7052       fi
7053     fi
7054     if test -z "$gl_have_pthread"; then
7055       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
7056         gl_have_solaristhread=
7057         gl_save_LIBS="$LIBS"
7058         LIBS="$LIBS -lthread"
7059         cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h.  */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h.  */
7065 #include <thread.h>
7066 #include <synch.h>
7067 int
7068 main ()
7069 {
7070 thr_self();
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7077 case "(($ac_try" in
7078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079   *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082   (eval "$ac_link") 2>conftest.er1
7083   ac_status=$?
7084   grep -v '^ *+' conftest.er1 >conftest.err
7085   rm -f conftest.er1
7086   cat conftest.err >&5
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } && {
7089          test -z "$ac_c_werror_flag" ||
7090          test ! -s conftest.err
7091        } && test -s conftest$ac_exeext &&
7092        $as_test_x conftest$ac_exeext; then
7093   gl_have_solaristhread=yes
7094 else
7095   echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098
7099 fi
7100
7101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7102       conftest$ac_exeext conftest.$ac_ext
7103         LIBS="$gl_save_LIBS"
7104         if test -n "$gl_have_solaristhread"; then
7105           gl_threads_api=solaris
7106           LIBTHREAD=-lthread
7107           LTLIBTHREAD=-lthread
7108           LIBMULTITHREAD="$LIBTHREAD"
7109           LTLIBMULTITHREAD="$LTLIBTHREAD"
7110
7111 cat >>confdefs.h <<\_ACEOF
7112 #define USE_SOLARIS_THREADS 1
7113 _ACEOF
7114
7115           if test $gl_have_weak = yes; then
7116
7117 cat >>confdefs.h <<\_ACEOF
7118 #define USE_SOLARIS_THREADS_WEAK 1
7119 _ACEOF
7120
7121             LIBTHREAD=
7122             LTLIBTHREAD=
7123           fi
7124         fi
7125       fi
7126     fi
7127     if test "$gl_use_threads" = pth; then
7128       gl_save_CPPFLAGS="$CPPFLAGS"
7129
7130
7131
7132
7133
7134   { echo "$as_me:$LINENO: checking how to link with libpth" >&5
7135 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
7136 if test "${ac_cv_libpth_libs+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139
7140
7141
7142     use_additional=yes
7143
7144   acl_save_prefix="$prefix"
7145   prefix="$acl_final_prefix"
7146   acl_save_exec_prefix="$exec_prefix"
7147   exec_prefix="$acl_final_exec_prefix"
7148
7149     eval additional_includedir=\"$includedir\"
7150     eval additional_libdir=\"$libdir\"
7151
7152   exec_prefix="$acl_save_exec_prefix"
7153   prefix="$acl_save_prefix"
7154
7155
7156 # Check whether --with-libpth-prefix was given.
7157 if test "${with_libpth_prefix+set}" = set; then
7158   withval=$with_libpth_prefix;
7159     if test "X$withval" = "Xno"; then
7160       use_additional=no
7161     else
7162       if test "X$withval" = "X"; then
7163
7164   acl_save_prefix="$prefix"
7165   prefix="$acl_final_prefix"
7166   acl_save_exec_prefix="$exec_prefix"
7167   exec_prefix="$acl_final_exec_prefix"
7168
7169           eval additional_includedir=\"$includedir\"
7170           eval additional_libdir=\"$libdir\"
7171
7172   exec_prefix="$acl_save_exec_prefix"
7173   prefix="$acl_save_prefix"
7174
7175       else
7176         additional_includedir="$withval/include"
7177         additional_libdir="$withval/lib"
7178       fi
7179     fi
7180
7181 fi
7182
7183       LIBPTH=
7184   LTLIBPTH=
7185   INCPTH=
7186   rpathdirs=
7187   ltrpathdirs=
7188   names_already_handled=
7189   names_next_round='pth '
7190   while test -n "$names_next_round"; do
7191     names_this_round="$names_next_round"
7192     names_next_round=
7193     for name in $names_this_round; do
7194       already_handled=
7195       for n in $names_already_handled; do
7196         if test "$n" = "$name"; then
7197           already_handled=yes
7198           break
7199         fi
7200       done
7201       if test -z "$already_handled"; then
7202         names_already_handled="$names_already_handled $name"
7203                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7204         eval value=\"\$HAVE_LIB$uppername\"
7205         if test -n "$value"; then
7206           if test "$value" = yes; then
7207             eval value=\"\$LIB$uppername\"
7208             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
7209             eval value=\"\$LTLIB$uppername\"
7210             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
7211           else
7212                                     :
7213           fi
7214         else
7215                               found_dir=
7216           found_la=
7217           found_so=
7218           found_a=
7219           if test $use_additional = yes; then
7220             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7221               found_dir="$additional_libdir"
7222               found_so="$additional_libdir/lib$name.$shlibext"
7223               if test -f "$additional_libdir/lib$name.la"; then
7224                 found_la="$additional_libdir/lib$name.la"
7225               fi
7226             else
7227               if test -f "$additional_libdir/lib$name.$libext"; then
7228                 found_dir="$additional_libdir"
7229                 found_a="$additional_libdir/lib$name.$libext"
7230                 if test -f "$additional_libdir/lib$name.la"; then
7231                   found_la="$additional_libdir/lib$name.la"
7232                 fi
7233               fi
7234             fi
7235           fi
7236           if test "X$found_dir" = "X"; then
7237             for x in $LDFLAGS $LTLIBPTH; do
7238
7239   acl_save_prefix="$prefix"
7240   prefix="$acl_final_prefix"
7241   acl_save_exec_prefix="$exec_prefix"
7242   exec_prefix="$acl_final_exec_prefix"
7243   eval x=\"$x\"
7244   exec_prefix="$acl_save_exec_prefix"
7245   prefix="$acl_save_prefix"
7246
7247               case "$x" in
7248                 -L*)
7249                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7250                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7251                     found_dir="$dir"
7252                     found_so="$dir/lib$name.$shlibext"
7253                     if test -f "$dir/lib$name.la"; then
7254                       found_la="$dir/lib$name.la"
7255                     fi
7256                   else
7257                     if test -f "$dir/lib$name.$libext"; then
7258                       found_dir="$dir"
7259                       found_a="$dir/lib$name.$libext"
7260                       if test -f "$dir/lib$name.la"; then
7261                         found_la="$dir/lib$name.la"
7262                       fi
7263                     fi
7264                   fi
7265                   ;;
7266               esac
7267               if test "X$found_dir" != "X"; then
7268                 break
7269               fi
7270             done
7271           fi
7272           if test "X$found_dir" != "X"; then
7273                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
7274             if test "X$found_so" != "X"; then
7275                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7276                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7277               else
7278                                                                                 haveit=
7279                 for x in $ltrpathdirs; do
7280                   if test "X$x" = "X$found_dir"; then
7281                     haveit=yes
7282                     break
7283                   fi
7284                 done
7285                 if test -z "$haveit"; then
7286                   ltrpathdirs="$ltrpathdirs $found_dir"
7287                 fi
7288                                 if test "$hardcode_direct" = yes; then
7289                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7290                 else
7291                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7292                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7293                                                             haveit=
7294                     for x in $rpathdirs; do
7295                       if test "X$x" = "X$found_dir"; then
7296                         haveit=yes
7297                         break
7298                       fi
7299                     done
7300                     if test -z "$haveit"; then
7301                       rpathdirs="$rpathdirs $found_dir"
7302                     fi
7303                   else
7304                                                                                 haveit=
7305                     for x in $LDFLAGS $LIBPTH; do
7306
7307   acl_save_prefix="$prefix"
7308   prefix="$acl_final_prefix"
7309   acl_save_exec_prefix="$exec_prefix"
7310   exec_prefix="$acl_final_exec_prefix"
7311   eval x=\"$x\"
7312   exec_prefix="$acl_save_exec_prefix"
7313   prefix="$acl_save_prefix"
7314
7315                       if test "X$x" = "X-L$found_dir"; then
7316                         haveit=yes
7317                         break
7318                       fi
7319                     done
7320                     if test -z "$haveit"; then
7321                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7322                     fi
7323                     if test "$hardcode_minus_L" != no; then
7324                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7325                     else
7326                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7327                     fi
7328                   fi
7329                 fi
7330               fi
7331             else
7332               if test "X$found_a" != "X"; then
7333                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7334               else
7335                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7336               fi
7337             fi
7338                         additional_includedir=
7339             case "$found_dir" in
7340               */lib | */lib/)
7341                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7342                 additional_includedir="$basedir/include"
7343                 ;;
7344             esac
7345             if test "X$additional_includedir" != "X"; then
7346                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7347                 haveit=
7348                 if test "X$additional_includedir" = "X/usr/local/include"; then
7349                   if test -n "$GCC"; then
7350                     case $host_os in
7351                       linux*) haveit=yes;;
7352                     esac
7353                   fi
7354                 fi
7355                 if test -z "$haveit"; then
7356                   for x in $CPPFLAGS $INCPTH; do
7357
7358   acl_save_prefix="$prefix"
7359   prefix="$acl_final_prefix"
7360   acl_save_exec_prefix="$exec_prefix"
7361   exec_prefix="$acl_final_exec_prefix"
7362   eval x=\"$x\"
7363   exec_prefix="$acl_save_exec_prefix"
7364   prefix="$acl_save_prefix"
7365
7366                     if test "X$x" = "X-I$additional_includedir"; then
7367                       haveit=yes
7368                       break
7369                     fi
7370                   done
7371                   if test -z "$haveit"; then
7372                     if test -d "$additional_includedir"; then
7373                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7374                     fi
7375                   fi
7376                 fi
7377               fi
7378             fi
7379                         if test -n "$found_la"; then
7380                                                         save_libdir="$libdir"
7381               case "$found_la" in
7382                 */* | *\\*) . "$found_la" ;;
7383                 *) . "./$found_la" ;;
7384               esac
7385               libdir="$save_libdir"
7386                             for dep in $dependency_libs; do
7387                 case "$dep" in
7388                   -L*)
7389                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7390                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7391                       haveit=
7392                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7393                         if test -n "$GCC"; then
7394                           case $host_os in
7395                             linux*) haveit=yes;;
7396                           esac
7397                         fi
7398                       fi
7399                       if test -z "$haveit"; then
7400                         haveit=
7401                         for x in $LDFLAGS $LIBPTH; do
7402
7403   acl_save_prefix="$prefix"
7404   prefix="$acl_final_prefix"
7405   acl_save_exec_prefix="$exec_prefix"
7406   exec_prefix="$acl_final_exec_prefix"
7407   eval x=\"$x\"
7408   exec_prefix="$acl_save_exec_prefix"
7409   prefix="$acl_save_prefix"
7410
7411                           if test "X$x" = "X-L$additional_libdir"; then
7412                             haveit=yes
7413                             break
7414                           fi
7415                         done
7416                         if test -z "$haveit"; then
7417                           if test -d "$additional_libdir"; then
7418                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
7419                           fi
7420                         fi
7421                         haveit=
7422                         for x in $LDFLAGS $LTLIBPTH; do
7423
7424   acl_save_prefix="$prefix"
7425   prefix="$acl_final_prefix"
7426   acl_save_exec_prefix="$exec_prefix"
7427   exec_prefix="$acl_final_exec_prefix"
7428   eval x=\"$x\"
7429   exec_prefix="$acl_save_exec_prefix"
7430   prefix="$acl_save_prefix"
7431
7432                           if test "X$x" = "X-L$additional_libdir"; then
7433                             haveit=yes
7434                             break
7435                           fi
7436                         done
7437                         if test -z "$haveit"; then
7438                           if test -d "$additional_libdir"; then
7439                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
7440                           fi
7441                         fi
7442                       fi
7443                     fi
7444                     ;;
7445                   -R*)
7446                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7447                     if test "$enable_rpath" != no; then
7448                                                                   haveit=
7449                       for x in $rpathdirs; do
7450                         if test "X$x" = "X$dir"; then
7451                           haveit=yes
7452                           break
7453                         fi
7454                       done
7455                       if test -z "$haveit"; then
7456                         rpathdirs="$rpathdirs $dir"
7457                       fi
7458                                                                   haveit=
7459                       for x in $ltrpathdirs; do
7460                         if test "X$x" = "X$dir"; then
7461                           haveit=yes
7462                           break
7463                         fi
7464                       done
7465                       if test -z "$haveit"; then
7466                         ltrpathdirs="$ltrpathdirs $dir"
7467                       fi
7468                     fi
7469                     ;;
7470                   -l*)
7471                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7472                     ;;
7473                   *.la)
7474                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7475                     ;;
7476                   *)
7477                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
7478                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
7479                     ;;
7480                 esac
7481               done
7482             fi
7483           else
7484                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7485             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
7486           fi
7487         fi
7488       fi
7489     done
7490   done
7491   if test "X$rpathdirs" != "X"; then
7492     if test -n "$hardcode_libdir_separator"; then
7493                         alldirs=
7494       for found_dir in $rpathdirs; do
7495         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7496       done
7497             acl_save_libdir="$libdir"
7498       libdir="$alldirs"
7499       eval flag=\"$hardcode_libdir_flag_spec\"
7500       libdir="$acl_save_libdir"
7501       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7502     else
7503             for found_dir in $rpathdirs; do
7504         acl_save_libdir="$libdir"
7505         libdir="$found_dir"
7506         eval flag=\"$hardcode_libdir_flag_spec\"
7507         libdir="$acl_save_libdir"
7508         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7509       done
7510     fi
7511   fi
7512   if test "X$ltrpathdirs" != "X"; then
7513             for found_dir in $ltrpathdirs; do
7514       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
7515     done
7516   fi
7517
7518     ac_cv_libpth_libs="$LIBPTH"
7519     ac_cv_libpth_ltlibs="$LTLIBPTH"
7520     ac_cv_libpth_cppflags="$INCPTH"
7521
7522 fi
7523 { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
7524 echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
7525   LIBPTH="$ac_cv_libpth_libs"
7526   LTLIBPTH="$ac_cv_libpth_ltlibs"
7527   INCPTH="$ac_cv_libpth_cppflags"
7528
7529   for element in $INCPTH; do
7530     haveit=
7531     for x in $CPPFLAGS; do
7532
7533   acl_save_prefix="$prefix"
7534   prefix="$acl_final_prefix"
7535   acl_save_exec_prefix="$exec_prefix"
7536   exec_prefix="$acl_final_exec_prefix"
7537   eval x=\"$x\"
7538   exec_prefix="$acl_save_exec_prefix"
7539   prefix="$acl_save_prefix"
7540
7541       if test "X$x" = "X$element"; then
7542         haveit=yes
7543         break
7544       fi
7545     done
7546     if test -z "$haveit"; then
7547       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7548     fi
7549   done
7550
7551
7552
7553       HAVE_LIBPTH=yes
7554
7555
7556
7557       gl_have_pth=
7558       gl_save_LIBS="$LIBS"
7559       LIBS="$LIBS -lpth"
7560       cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566 #include <pth.h>
7567 int
7568 main ()
7569 {
7570 pth_self();
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7577 case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582   (eval "$ac_link") 2>conftest.er1
7583   ac_status=$?
7584   grep -v '^ *+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } && {
7589          test -z "$ac_c_werror_flag" ||
7590          test ! -s conftest.err
7591        } && test -s conftest$ac_exeext &&
7592        $as_test_x conftest$ac_exeext; then
7593   gl_have_pth=yes
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598
7599 fi
7600
7601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7602       conftest$ac_exeext conftest.$ac_ext
7603       LIBS="$gl_save_LIBS"
7604       if test -n "$gl_have_pth"; then
7605         gl_threads_api=pth
7606         LIBTHREAD="$LIBPTH"
7607         LTLIBTHREAD="$LTLIBPTH"
7608         LIBMULTITHREAD="$LIBTHREAD"
7609         LTLIBMULTITHREAD="$LTLIBTHREAD"
7610
7611 cat >>confdefs.h <<\_ACEOF
7612 #define USE_PTH_THREADS 1
7613 _ACEOF
7614
7615         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7616           if test $gl_have_weak = yes; then
7617
7618 cat >>confdefs.h <<\_ACEOF
7619 #define USE_PTH_THREADS_WEAK 1
7620 _ACEOF
7621
7622             LIBTHREAD=
7623             LTLIBTHREAD=
7624           fi
7625         fi
7626       else
7627         CPPFLAGS="$gl_save_CPPFLAGS"
7628       fi
7629     fi
7630     if test -z "$gl_have_pthread"; then
7631       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
7632         if { case "$host_os" in
7633                mingw*) true;;
7634                *) false;;
7635              esac
7636            }; then
7637           gl_threads_api=win32
7638
7639 cat >>confdefs.h <<\_ACEOF
7640 #define USE_WIN32_THREADS 1
7641 _ACEOF
7642
7643         fi
7644       fi
7645     fi
7646   fi
7647   { echo "$as_me:$LINENO: checking for multithread API to use" >&5
7648 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
7649   { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
7650 echo "${ECHO_T}$gl_threads_api" >&6; }
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669     use_additional=yes
7670
7671   acl_save_prefix="$prefix"
7672   prefix="$acl_final_prefix"
7673   acl_save_exec_prefix="$exec_prefix"
7674   exec_prefix="$acl_final_exec_prefix"
7675
7676     eval additional_includedir=\"$includedir\"
7677     eval additional_libdir=\"$libdir\"
7678
7679   exec_prefix="$acl_save_exec_prefix"
7680   prefix="$acl_save_prefix"
7681
7682
7683 # Check whether --with-libiconv-prefix was given.
7684 if test "${with_libiconv_prefix+set}" = set; then
7685   withval=$with_libiconv_prefix;
7686     if test "X$withval" = "Xno"; then
7687       use_additional=no
7688     else
7689       if test "X$withval" = "X"; then
7690
7691   acl_save_prefix="$prefix"
7692   prefix="$acl_final_prefix"
7693   acl_save_exec_prefix="$exec_prefix"
7694   exec_prefix="$acl_final_exec_prefix"
7695
7696           eval additional_includedir=\"$includedir\"
7697           eval additional_libdir=\"$libdir\"
7698
7699   exec_prefix="$acl_save_exec_prefix"
7700   prefix="$acl_save_prefix"
7701
7702       else
7703         additional_includedir="$withval/include"
7704         additional_libdir="$withval/lib"
7705       fi
7706     fi
7707
7708 fi
7709
7710       LIBICONV=
7711   LTLIBICONV=
7712   INCICONV=
7713   rpathdirs=
7714   ltrpathdirs=
7715   names_already_handled=
7716   names_next_round='iconv '
7717   while test -n "$names_next_round"; do
7718     names_this_round="$names_next_round"
7719     names_next_round=
7720     for name in $names_this_round; do
7721       already_handled=
7722       for n in $names_already_handled; do
7723         if test "$n" = "$name"; then
7724           already_handled=yes
7725           break
7726         fi
7727       done
7728       if test -z "$already_handled"; then
7729         names_already_handled="$names_already_handled $name"
7730                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7731         eval value=\"\$HAVE_LIB$uppername\"
7732         if test -n "$value"; then
7733           if test "$value" = yes; then
7734             eval value=\"\$LIB$uppername\"
7735             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7736             eval value=\"\$LTLIB$uppername\"
7737             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7738           else
7739                                     :
7740           fi
7741         else
7742                               found_dir=
7743           found_la=
7744           found_so=
7745           found_a=
7746           if test $use_additional = yes; then
7747             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7748               found_dir="$additional_libdir"
7749               found_so="$additional_libdir/lib$name.$shlibext"
7750               if test -f "$additional_libdir/lib$name.la"; then
7751                 found_la="$additional_libdir/lib$name.la"
7752               fi
7753             else
7754               if test -f "$additional_libdir/lib$name.$libext"; then
7755                 found_dir="$additional_libdir"
7756                 found_a="$additional_libdir/lib$name.$libext"
7757                 if test -f "$additional_libdir/lib$name.la"; then
7758                   found_la="$additional_libdir/lib$name.la"
7759                 fi
7760               fi
7761             fi
7762           fi
7763           if test "X$found_dir" = "X"; then
7764             for x in $LDFLAGS $LTLIBICONV; do
7765
7766   acl_save_prefix="$prefix"
7767   prefix="$acl_final_prefix"
7768   acl_save_exec_prefix="$exec_prefix"
7769   exec_prefix="$acl_final_exec_prefix"
7770   eval x=\"$x\"
7771   exec_prefix="$acl_save_exec_prefix"
7772   prefix="$acl_save_prefix"
7773
7774               case "$x" in
7775                 -L*)
7776                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7777                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7778                     found_dir="$dir"
7779                     found_so="$dir/lib$name.$shlibext"
7780                     if test -f "$dir/lib$name.la"; then
7781                       found_la="$dir/lib$name.la"
7782                     fi
7783                   else
7784                     if test -f "$dir/lib$name.$libext"; then
7785                       found_dir="$dir"
7786                       found_a="$dir/lib$name.$libext"
7787                       if test -f "$dir/lib$name.la"; then
7788                         found_la="$dir/lib$name.la"
7789                       fi
7790                     fi
7791                   fi
7792                   ;;
7793               esac
7794               if test "X$found_dir" != "X"; then
7795                 break
7796               fi
7797             done
7798           fi
7799           if test "X$found_dir" != "X"; then
7800                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7801             if test "X$found_so" != "X"; then
7802                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7803                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7804               else
7805                                                                                 haveit=
7806                 for x in $ltrpathdirs; do
7807                   if test "X$x" = "X$found_dir"; then
7808                     haveit=yes
7809                     break
7810                   fi
7811                 done
7812                 if test -z "$haveit"; then
7813                   ltrpathdirs="$ltrpathdirs $found_dir"
7814                 fi
7815                                 if test "$hardcode_direct" = yes; then
7816                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7817                 else
7818                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7819                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7820                                                             haveit=
7821                     for x in $rpathdirs; do
7822                       if test "X$x" = "X$found_dir"; then
7823                         haveit=yes
7824                         break
7825                       fi
7826                     done
7827                     if test -z "$haveit"; then
7828                       rpathdirs="$rpathdirs $found_dir"
7829                     fi
7830                   else
7831                                                                                 haveit=
7832                     for x in $LDFLAGS $LIBICONV; do
7833
7834   acl_save_prefix="$prefix"
7835   prefix="$acl_final_prefix"
7836   acl_save_exec_prefix="$exec_prefix"
7837   exec_prefix="$acl_final_exec_prefix"
7838   eval x=\"$x\"
7839   exec_prefix="$acl_save_exec_prefix"
7840   prefix="$acl_save_prefix"
7841
7842                       if test "X$x" = "X-L$found_dir"; then
7843                         haveit=yes
7844                         break
7845                       fi
7846                     done
7847                     if test -z "$haveit"; then
7848                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7849                     fi
7850                     if test "$hardcode_minus_L" != no; then
7851                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7852                     else
7853                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7854                     fi
7855                   fi
7856                 fi
7857               fi
7858             else
7859               if test "X$found_a" != "X"; then
7860                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7861               else
7862                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7863               fi
7864             fi
7865                         additional_includedir=
7866             case "$found_dir" in
7867               */lib | */lib/)
7868                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7869                 additional_includedir="$basedir/include"
7870                 ;;
7871             esac
7872             if test "X$additional_includedir" != "X"; then
7873                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7874                 haveit=
7875                 if test "X$additional_includedir" = "X/usr/local/include"; then
7876                   if test -n "$GCC"; then
7877                     case $host_os in
7878                       linux*) haveit=yes;;
7879                     esac
7880                   fi
7881                 fi
7882                 if test -z "$haveit"; then
7883                   for x in $CPPFLAGS $INCICONV; do
7884
7885   acl_save_prefix="$prefix"
7886   prefix="$acl_final_prefix"
7887   acl_save_exec_prefix="$exec_prefix"
7888   exec_prefix="$acl_final_exec_prefix"
7889   eval x=\"$x\"
7890   exec_prefix="$acl_save_exec_prefix"
7891   prefix="$acl_save_prefix"
7892
7893                     if test "X$x" = "X-I$additional_includedir"; then
7894                       haveit=yes
7895                       break
7896                     fi
7897                   done
7898                   if test -z "$haveit"; then
7899                     if test -d "$additional_includedir"; then
7900                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7901                     fi
7902                   fi
7903                 fi
7904               fi
7905             fi
7906                         if test -n "$found_la"; then
7907                                                         save_libdir="$libdir"
7908               case "$found_la" in
7909                 */* | *\\*) . "$found_la" ;;
7910                 *) . "./$found_la" ;;
7911               esac
7912               libdir="$save_libdir"
7913                             for dep in $dependency_libs; do
7914                 case "$dep" in
7915                   -L*)
7916                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7917                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7918                       haveit=
7919                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7920                         if test -n "$GCC"; then
7921                           case $host_os in
7922                             linux*) haveit=yes;;
7923                           esac
7924                         fi
7925                       fi
7926                       if test -z "$haveit"; then
7927                         haveit=
7928                         for x in $LDFLAGS $LIBICONV; do
7929
7930   acl_save_prefix="$prefix"
7931   prefix="$acl_final_prefix"
7932   acl_save_exec_prefix="$exec_prefix"
7933   exec_prefix="$acl_final_exec_prefix"
7934   eval x=\"$x\"
7935   exec_prefix="$acl_save_exec_prefix"
7936   prefix="$acl_save_prefix"
7937
7938                           if test "X$x" = "X-L$additional_libdir"; then
7939                             haveit=yes
7940                             break
7941                           fi
7942                         done
7943                         if test -z "$haveit"; then
7944                           if test -d "$additional_libdir"; then
7945                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7946                           fi
7947                         fi
7948                         haveit=
7949                         for x in $LDFLAGS $LTLIBICONV; do
7950
7951   acl_save_prefix="$prefix"
7952   prefix="$acl_final_prefix"
7953   acl_save_exec_prefix="$exec_prefix"
7954   exec_prefix="$acl_final_exec_prefix"
7955   eval x=\"$x\"
7956   exec_prefix="$acl_save_exec_prefix"
7957   prefix="$acl_save_prefix"
7958
7959                           if test "X$x" = "X-L$additional_libdir"; then
7960                             haveit=yes
7961                             break
7962                           fi
7963                         done
7964                         if test -z "$haveit"; then
7965                           if test -d "$additional_libdir"; then
7966                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7967                           fi
7968                         fi
7969                       fi
7970                     fi
7971                     ;;
7972                   -R*)
7973                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7974                     if test "$enable_rpath" != no; then
7975                                                                   haveit=
7976                       for x in $rpathdirs; do
7977                         if test "X$x" = "X$dir"; then
7978                           haveit=yes
7979                           break
7980                         fi
7981                       done
7982                       if test -z "$haveit"; then
7983                         rpathdirs="$rpathdirs $dir"
7984                       fi
7985                                                                   haveit=
7986                       for x in $ltrpathdirs; do
7987                         if test "X$x" = "X$dir"; then
7988                           haveit=yes
7989                           break
7990                         fi
7991                       done
7992                       if test -z "$haveit"; then
7993                         ltrpathdirs="$ltrpathdirs $dir"
7994                       fi
7995                     fi
7996                     ;;
7997                   -l*)
7998                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7999                     ;;
8000                   *.la)
8001                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8002                     ;;
8003                   *)
8004                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8005                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8006                     ;;
8007                 esac
8008               done
8009             fi
8010           else
8011                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8012             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8013           fi
8014         fi
8015       fi
8016     done
8017   done
8018   if test "X$rpathdirs" != "X"; then
8019     if test -n "$hardcode_libdir_separator"; then
8020                         alldirs=
8021       for found_dir in $rpathdirs; do
8022         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8023       done
8024             acl_save_libdir="$libdir"
8025       libdir="$alldirs"
8026       eval flag=\"$hardcode_libdir_flag_spec\"
8027       libdir="$acl_save_libdir"
8028       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8029     else
8030             for found_dir in $rpathdirs; do
8031         acl_save_libdir="$libdir"
8032         libdir="$found_dir"
8033         eval flag=\"$hardcode_libdir_flag_spec\"
8034         libdir="$acl_save_libdir"
8035         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8036       done
8037     fi
8038   fi
8039   if test "X$ltrpathdirs" != "X"; then
8040             for found_dir in $ltrpathdirs; do
8041       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8042     done
8043   fi
8044
8045
8046
8047
8048
8049   cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
8056 int
8057 main ()
8058 {
8059
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8066 case "(($ac_try" in
8067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068   *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071   (eval "$ac_link") 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } && {
8078          test -z "$ac_c_werror_flag" ||
8079          test ! -s conftest.err
8080        } && test -s conftest$ac_exeext &&
8081        $as_test_x conftest$ac_exeext; then
8082
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_BUILTIN_EXPECT 1
8085 _ACEOF
8086
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8095       conftest$ac_exeext conftest.$ac_ext
8096
8097
8098
8099
8100
8101
8102 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
8103 do
8104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8106   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 fi
8111 ac_res=`eval echo '${'$as_ac_Header'}'`
8112                { echo "$as_me:$LINENO: result: $ac_res" >&5
8113 echo "${ECHO_T}$ac_res" >&6; }
8114 else
8115   # Is the header compilable?
8116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124 $ac_includes_default
8125 #include <$ac_header>
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8129 case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_compile") 2>conftest.er1
8135   ac_status=$?
8136   grep -v '^ *+' conftest.er1 >conftest.err
8137   rm -f conftest.er1
8138   cat conftest.err >&5
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } && {
8141          test -z "$ac_c_werror_flag" ||
8142          test ! -s conftest.err
8143        } && test -s conftest.$ac_objext; then
8144   ac_header_compiler=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149         ac_header_compiler=no
8150 fi
8151
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8154 echo "${ECHO_T}$ac_header_compiler" >&6; }
8155
8156 # Is the header present?
8157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165 #include <$ac_header>
8166 _ACEOF
8167 if { (ac_try="$ac_cpp conftest.$ac_ext"
8168 case "(($ac_try" in
8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170   *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } >/dev/null && {
8180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8181          test ! -s conftest.err
8182        }; then
8183   ac_header_preproc=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188   ac_header_preproc=no
8189 fi
8190
8191 rm -f conftest.err conftest.$ac_ext
8192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6; }
8194
8195 # So?  What about this header?
8196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8197   yes:no: )
8198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8202     ac_header_preproc=yes
8203     ;;
8204   no:yes:* )
8205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8217     ( cat <<\_ASBOX
8218 ## -------------------------------------- ##
8219 ## Report this to choe.hwanjing@gmail.com ##
8220 ## -------------------------------------- ##
8221 _ASBOX
8222      ) | sed "s/^/$as_me: WARNING:     /" >&2
8223     ;;
8224 esac
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   eval "$as_ac_Header=\$ac_header_preproc"
8231 fi
8232 ac_res=`eval echo '${'$as_ac_Header'}'`
8233                { echo "$as_me:$LINENO: result: $ac_res" >&5
8234 echo "${ECHO_T}$ac_res" >&6; }
8235
8236 fi
8237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8238   cat >>confdefs.h <<_ACEOF
8239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8240 _ACEOF
8241
8242 fi
8243
8244 done
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
8263     stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
8264     argz_next __fsetlocking
8265 do
8266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8280 #define $ac_func innocuous_$ac_func
8281
8282 /* System header to define __stub macros and hopefully few prototypes,
8283     which can conflict with char $ac_func (); below.
8284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285     <limits.h> exists even on freestanding compilers.  */
8286
8287 #ifdef __STDC__
8288 # include <limits.h>
8289 #else
8290 # include <assert.h>
8291 #endif
8292
8293 #undef $ac_func
8294
8295 /* Override any GCC internal prototype to avoid an error.
8296    Use char because int might match the return type of a GCC
8297    builtin and then its argument prototype would still apply.  */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 char $ac_func ();
8302 /* The GNU C library defines this for functions which it implements
8303     to always fail with ENOSYS.  Some functions are actually named
8304     something starting with __ and the normal name is an alias.  */
8305 #if defined __stub_$ac_func || defined __stub___$ac_func
8306 choke me
8307 #endif
8308
8309 int
8310 main ()
8311 {
8312 return $ac_func ();
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (ac_try="$ac_link"
8319 case "(($ac_try" in
8320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321   *) ac_try_echo=$ac_try;;
8322 esac
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324   (eval "$ac_link") 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } && {
8331          test -z "$ac_c_werror_flag" ||
8332          test ! -s conftest.err
8333        } && test -s conftest$ac_exeext &&
8334        $as_test_x conftest$ac_exeext; then
8335   eval "$as_ac_var=yes"
8336 else
8337   echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340         eval "$as_ac_var=no"
8341 fi
8342
8343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8344       conftest$ac_exeext conftest.$ac_ext
8345 fi
8346 ac_res=`eval echo '${'$as_ac_var'}'`
8347                { echo "$as_me:$LINENO: result: $ac_res" >&5
8348 echo "${ECHO_T}$ac_res" >&6; }
8349 if test `eval echo '${'$as_ac_var'}'` = yes; then
8350   cat >>confdefs.h <<_ACEOF
8351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8352 _ACEOF
8353
8354 fi
8355 done
8356
8357
8358
8359   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8360 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8361 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 #include <stdio.h>
8371 int
8372 main ()
8373 {
8374
8375 #ifndef feof_unlocked
8376   char *p = (char *) feof_unlocked;
8377 #endif
8378
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8385 case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_compile") 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } && {
8397          test -z "$ac_c_werror_flag" ||
8398          test ! -s conftest.err
8399        } && test -s conftest.$ac_objext; then
8400   ac_cv_have_decl_feof_unlocked=yes
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405         ac_cv_have_decl_feof_unlocked=no
8406 fi
8407
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 fi
8410 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8411 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8412   if test $ac_cv_have_decl_feof_unlocked = yes; then
8413     gt_value=1
8414   else
8415     gt_value=0
8416   fi
8417
8418 cat >>confdefs.h <<_ACEOF
8419 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8420 _ACEOF
8421
8422
8423
8424   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8425 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8426 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h.  */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h.  */
8435 #include <stdio.h>
8436 int
8437 main ()
8438 {
8439
8440 #ifndef fgets_unlocked
8441   char *p = (char *) fgets_unlocked;
8442 #endif
8443
8444   ;
8445   return 0;
8446 }
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8450 case "(($ac_try" in
8451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452   *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455   (eval "$ac_compile") 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } && {
8462          test -z "$ac_c_werror_flag" ||
8463          test ! -s conftest.err
8464        } && test -s conftest.$ac_objext; then
8465   ac_cv_have_decl_fgets_unlocked=yes
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470         ac_cv_have_decl_fgets_unlocked=no
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8476 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8477   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8478     gt_value=1
8479   else
8480     gt_value=0
8481   fi
8482
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8485 _ACEOF
8486
8487
8488
8489
8490
8491
8492
8493
8494           am_save_CPPFLAGS="$CPPFLAGS"
8495
8496   for element in $INCICONV; do
8497     haveit=
8498     for x in $CPPFLAGS; do
8499
8500   acl_save_prefix="$prefix"
8501   prefix="$acl_final_prefix"
8502   acl_save_exec_prefix="$exec_prefix"
8503   exec_prefix="$acl_final_exec_prefix"
8504   eval x=\"$x\"
8505   exec_prefix="$acl_save_exec_prefix"
8506   prefix="$acl_save_prefix"
8507
8508       if test "X$x" = "X$element"; then
8509         haveit=yes
8510         break
8511       fi
8512     done
8513     if test -z "$haveit"; then
8514       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8515     fi
8516   done
8517
8518
8519   { echo "$as_me:$LINENO: checking for iconv" >&5
8520 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8521 if test "${am_cv_func_iconv+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524
8525     am_cv_func_iconv="no, consider installing GNU libiconv"
8526     am_cv_lib_iconv=no
8527     cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533 #include <stdlib.h>
8534 #include <iconv.h>
8535 int
8536 main ()
8537 {
8538 iconv_t cd = iconv_open("","");
8539        iconv(cd,NULL,NULL,NULL,NULL);
8540        iconv_close(cd);
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_link") 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } && {
8559          test -z "$ac_c_werror_flag" ||
8560          test ! -s conftest.err
8561        } && test -s conftest$ac_exeext &&
8562        $as_test_x conftest$ac_exeext; then
8563   am_cv_func_iconv=yes
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568
8569 fi
8570
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572       conftest$ac_exeext conftest.$ac_ext
8573     if test "$am_cv_func_iconv" != yes; then
8574       am_save_LIBS="$LIBS"
8575       LIBS="$LIBS $LIBICONV"
8576       cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582 #include <stdlib.h>
8583 #include <iconv.h>
8584 int
8585 main ()
8586 {
8587 iconv_t cd = iconv_open("","");
8588          iconv(cd,NULL,NULL,NULL,NULL);
8589          iconv_close(cd);
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (ac_try="$ac_link"
8596 case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_link") 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } && {
8608          test -z "$ac_c_werror_flag" ||
8609          test ! -s conftest.err
8610        } && test -s conftest$ac_exeext &&
8611        $as_test_x conftest$ac_exeext; then
8612   am_cv_lib_iconv=yes
8613         am_cv_func_iconv=yes
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618
8619 fi
8620
8621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8622       conftest$ac_exeext conftest.$ac_ext
8623       LIBS="$am_save_LIBS"
8624     fi
8625
8626 fi
8627 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8628 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8629   if test "$am_cv_func_iconv" = yes; then
8630
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_ICONV 1
8633 _ACEOF
8634
8635   fi
8636   if test "$am_cv_lib_iconv" = yes; then
8637     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8638 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8639     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8640 echo "${ECHO_T}$LIBICONV" >&6; }
8641   else
8642             CPPFLAGS="$am_save_CPPFLAGS"
8643     LIBICONV=
8644     LTLIBICONV=
8645   fi
8646
8647
8648
8649   if test "$am_cv_func_iconv" = yes; then
8650     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8651 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8652     if test "${am_cv_proto_iconv+set}" = set; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655
8656       cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662
8663 #include <stdlib.h>
8664 #include <iconv.h>
8665 extern
8666 #ifdef __cplusplus
8667 "C"
8668 #endif
8669 #if defined(__STDC__) || defined(__cplusplus)
8670 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8671 #else
8672 size_t iconv();
8673 #endif
8674
8675 int
8676 main ()
8677 {
8678
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_compile") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } && {
8697          test -z "$ac_c_werror_flag" ||
8698          test ! -s conftest.err
8699        } && test -s conftest.$ac_objext; then
8700   am_cv_proto_iconv_arg1=""
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705         am_cv_proto_iconv_arg1="const"
8706 fi
8707
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8710 fi
8711
8712     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8713     { echo "$as_me:$LINENO: result: ${ac_t:-
8714          }$am_cv_proto_iconv" >&5
8715 echo "${ECHO_T}${ac_t:-
8716          }$am_cv_proto_iconv" >&6; }
8717
8718 cat >>confdefs.h <<_ACEOF
8719 #define ICONV_CONST $am_cv_proto_iconv_arg1
8720 _ACEOF
8721
8722   fi
8723
8724
8725       { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
8726 echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
8727 if test "${gt_cv_nl_locale_name+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h.  */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h.  */
8736 #include <langinfo.h>
8737 #include <locale.h>
8738 int
8739 main ()
8740 {
8741 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
8742   ;
8743   return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (ac_try="$ac_link"
8748 case "(($ac_try" in
8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750   *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753   (eval "$ac_link") 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } && {
8760          test -z "$ac_c_werror_flag" ||
8761          test ! -s conftest.err
8762        } && test -s conftest$ac_exeext &&
8763        $as_test_x conftest$ac_exeext; then
8764   gt_cv_nl_locale_name=yes
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769         gt_cv_nl_locale_name=no
8770 fi
8771
8772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8773       conftest$ac_exeext conftest.$ac_ext
8774
8775 fi
8776 { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
8777 echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
8778   if test $gt_cv_nl_locale_name = yes; then
8779
8780 cat >>confdefs.h <<\_ACEOF
8781 #define HAVE_NL_LOCALE_NAME 1
8782 _ACEOF
8783
8784   fi
8785
8786                       for ac_prog in bison
8787 do
8788   # Extract the first word of "$ac_prog", so it can be a program name with args.
8789 set dummy $ac_prog; ac_word=$2
8790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8792 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   if test -n "$INTLBISON"; then
8796   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801   IFS=$as_save_IFS
8802   test -z "$as_dir" && as_dir=.
8803   for ac_exec_ext in '' $ac_executable_extensions; do
8804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805     ac_cv_prog_INTLBISON="$ac_prog"
8806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8807     break 2
8808   fi
8809 done
8810 done
8811 IFS=$as_save_IFS
8812
8813 fi
8814 fi
8815 INTLBISON=$ac_cv_prog_INTLBISON
8816 if test -n "$INTLBISON"; then
8817   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
8818 echo "${ECHO_T}$INTLBISON" >&6; }
8819 else
8820   { echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6; }
8822 fi
8823
8824
8825   test -n "$INTLBISON" && break
8826 done
8827
8828   if test -z "$INTLBISON"; then
8829     ac_verc_fail=yes
8830   else
8831         { echo "$as_me:$LINENO: checking version of bison" >&5
8832 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
8833     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8834     case $ac_prog_version in
8835       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8836       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8837          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8838       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8839     esac
8840     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8841 echo "${ECHO_T}$ac_prog_version" >&6; }
8842   fi
8843   if test $ac_verc_fail = yes; then
8844     INTLBISON=:
8845   fi
8846
8847
8848   { echo "$as_me:$LINENO: checking for long long int" >&5
8849 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
8850 if test "${ac_cv_type_long_long_int+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 long long int ll = 9223372036854775807ll;
8860             long long int nll = -9223372036854775807LL;
8861             typedef int a[((-9223372036854775807LL < 0
8862                             && 0 < 9223372036854775807ll)
8863                            ? 1 : -1)];
8864             int i = 63;
8865 int
8866 main ()
8867 {
8868 long long int llmax = 9223372036854775807ll;
8869             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8870                     | (llmax / ll) | (llmax % ll));
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8877 case "(($ac_try" in
8878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879   *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882   (eval "$ac_link") 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } && {
8889          test -z "$ac_c_werror_flag" ||
8890          test ! -s conftest.err
8891        } && test -s conftest$ac_exeext &&
8892        $as_test_x conftest$ac_exeext; then
8893   ac_cv_type_long_long_int=yes
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898         ac_cv_type_long_long_int=no
8899 fi
8900
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902       conftest$ac_exeext conftest.$ac_ext
8903 fi
8904 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8905 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
8906   if test $ac_cv_type_long_long_int = yes; then
8907
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_LONG_LONG_INT 1
8910 _ACEOF
8911
8912   fi
8913
8914
8915   { echo "$as_me:$LINENO: checking for long double" >&5
8916 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8917 if test "${gt_cv_c_long_double+set}" = set; then
8918   echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920   if test "$GCC" = yes; then
8921        gt_cv_c_long_double=yes
8922      else
8923        cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h.  */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h.  */
8929
8930          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8931          long double foo = 0.0;
8932          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8933          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8934
8935 int
8936 main ()
8937 {
8938
8939   ;
8940   return 0;
8941 }
8942 _ACEOF
8943 rm -f conftest.$ac_objext
8944 if { (ac_try="$ac_compile"
8945 case "(($ac_try" in
8946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947   *) ac_try_echo=$ac_try;;
8948 esac
8949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8950   (eval "$ac_compile") 2>conftest.er1
8951   ac_status=$?
8952   grep -v '^ *+' conftest.er1 >conftest.err
8953   rm -f conftest.er1
8954   cat conftest.err >&5
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); } && {
8957          test -z "$ac_c_werror_flag" ||
8958          test ! -s conftest.err
8959        } && test -s conftest.$ac_objext; then
8960   gt_cv_c_long_double=yes
8961 else
8962   echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965         gt_cv_c_long_double=no
8966 fi
8967
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969      fi
8970 fi
8971 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8972 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8973   if test $gt_cv_c_long_double = yes; then
8974
8975 cat >>confdefs.h <<\_ACEOF
8976 #define HAVE_LONG_DOUBLE 1
8977 _ACEOF
8978
8979   fi
8980
8981
8982   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8983 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8984 if test "${gt_cv_c_wchar_t+set}" = set; then
8985   echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987   cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h.  */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h.  */
8993 #include <stddef.h>
8994        wchar_t foo = (wchar_t)'\0';
8995 int
8996 main ()
8997 {
8998
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (ac_try="$ac_compile"
9005 case "(($ac_try" in
9006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007   *) ac_try_echo=$ac_try;;
9008 esac
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010   (eval "$ac_compile") 2>conftest.er1
9011   ac_status=$?
9012   grep -v '^ *+' conftest.er1 >conftest.err
9013   rm -f conftest.er1
9014   cat conftest.err >&5
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } && {
9017          test -z "$ac_c_werror_flag" ||
9018          test ! -s conftest.err
9019        } && test -s conftest.$ac_objext; then
9020   gt_cv_c_wchar_t=yes
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025         gt_cv_c_wchar_t=no
9026 fi
9027
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 fi
9030 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
9031 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
9032   if test $gt_cv_c_wchar_t = yes; then
9033
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_WCHAR_T 1
9036 _ACEOF
9037
9038   fi
9039
9040
9041   { echo "$as_me:$LINENO: checking for wint_t" >&5
9042 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
9043 if test "${gt_cv_c_wint_t+set}" = set; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h.  */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h.  */
9052 #include <wchar.h>
9053        wint_t foo = (wchar_t)'\0';
9054 int
9055 main ()
9056 {
9057
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_compile") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } && {
9076          test -z "$ac_c_werror_flag" ||
9077          test ! -s conftest.err
9078        } && test -s conftest.$ac_objext; then
9079   gt_cv_c_wint_t=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084         gt_cv_c_wint_t=no
9085 fi
9086
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 fi
9089 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9090 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9091   if test $gt_cv_c_wint_t = yes; then
9092
9093 cat >>confdefs.h <<\_ACEOF
9094 #define HAVE_WINT_T 1
9095 _ACEOF
9096
9097   fi
9098
9099
9100   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9101 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9102 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105   cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h.  */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h.  */
9111 #include <sys/types.h>
9112 #include <inttypes.h>
9113 int
9114 main ()
9115 {
9116 uintmax_t i = (uintmax_t) -1;
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9123 case "(($ac_try" in
9124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125   *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128   (eval "$ac_compile") 2>conftest.er1
9129   ac_status=$?
9130   grep -v '^ *+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } && {
9135          test -z "$ac_c_werror_flag" ||
9136          test ! -s conftest.err
9137        } && test -s conftest.$ac_objext; then
9138   jm_ac_cv_header_inttypes_h=yes
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9142
9143         jm_ac_cv_header_inttypes_h=no
9144 fi
9145
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 fi
9148 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
9149 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
9150   if test $jm_ac_cv_header_inttypes_h = yes; then
9151
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9154 _ACEOF
9155
9156   fi
9157
9158
9159   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9160 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9161 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h.  */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h.  */
9170 #include <sys/types.h>
9171 #include <stdint.h>
9172 int
9173 main ()
9174 {
9175 uintmax_t i = (uintmax_t) -1;
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext
9181 if { (ac_try="$ac_compile"
9182 case "(($ac_try" in
9183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184   *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187   (eval "$ac_compile") 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && {
9194          test -z "$ac_c_werror_flag" ||
9195          test ! -s conftest.err
9196        } && test -s conftest.$ac_objext; then
9197   jm_ac_cv_header_stdint_h=yes
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202         jm_ac_cv_header_stdint_h=no
9203 fi
9204
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 fi
9207 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
9208 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
9209   if test $jm_ac_cv_header_stdint_h = yes; then
9210
9211 cat >>confdefs.h <<_ACEOF
9212 #define HAVE_STDINT_H_WITH_UINTMAX 1
9213 _ACEOF
9214
9215   fi
9216
9217
9218
9219
9220   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9221 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9222 if test "${gt_cv_c_intmax_t+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231
9232 #include <stddef.h>
9233 #include <stdlib.h>
9234 #if HAVE_STDINT_H_WITH_UINTMAX
9235 #include <stdint.h>
9236 #endif
9237 #if HAVE_INTTYPES_H_WITH_UINTMAX
9238 #include <inttypes.h>
9239 #endif
9240
9241 int
9242 main ()
9243 {
9244 intmax_t x = -1;
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (ac_try="$ac_compile"
9251 case "(($ac_try" in
9252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253   *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256   (eval "$ac_compile") 2>conftest.er1
9257   ac_status=$?
9258   grep -v '^ *+' conftest.er1 >conftest.err
9259   rm -f conftest.er1
9260   cat conftest.err >&5
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } && {
9263          test -z "$ac_c_werror_flag" ||
9264          test ! -s conftest.err
9265        } && test -s conftest.$ac_objext; then
9266   gt_cv_c_intmax_t=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271         gt_cv_c_intmax_t=no
9272 fi
9273
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9275 fi
9276 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9277 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9278   if test $gt_cv_c_intmax_t = yes; then
9279
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_INTMAX_T 1
9282 _ACEOF
9283
9284   fi
9285
9286
9287
9288   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9289 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9290 if test "${gt_cv_func_printf_posix+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293
9294       if test "$cross_compiling" = yes; then
9295
9296         cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9304   notposix
9305 #endif
9306
9307 _ACEOF
9308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9309   $EGREP "notposix" >/dev/null 2>&1; then
9310   gt_cv_func_printf_posix="guessing no"
9311 else
9312   gt_cv_func_printf_posix="guessing yes"
9313 fi
9314 rm -f conftest*
9315
9316
9317 else
9318   cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324
9325 #include <stdio.h>
9326 #include <string.h>
9327 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9328    dollar expansion (possibly an autoconf bug).  */
9329 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9330 static char buf[100];
9331 int main ()
9332 {
9333   sprintf (buf, format, 33, 55);
9334   return (strcmp (buf, "55 33") != 0);
9335 }
9336 _ACEOF
9337 rm -f conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9339 case "(($ac_try" in
9340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341   *) ac_try_echo=$ac_try;;
9342 esac
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344   (eval "$ac_link") 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9348   { (case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353   (eval "$ac_try") 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   gt_cv_func_printf_posix=yes
9358 else
9359   echo "$as_me: program exited with status $ac_status" >&5
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 ( exit $ac_status )
9364 gt_cv_func_printf_posix=no
9365 fi
9366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9367 fi
9368
9369
9370
9371 fi
9372 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9373 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9374   case $gt_cv_func_printf_posix in
9375     *yes)
9376
9377 cat >>confdefs.h <<\_ACEOF
9378 #define HAVE_POSIX_PRINTF 1
9379 _ACEOF
9380
9381       ;;
9382   esac
9383
9384
9385     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9386 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9387 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 #include <features.h>
9398 #ifdef __GNU_LIBRARY__
9399  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9400   Lucky GNU user
9401  #endif
9402 #endif
9403
9404 _ACEOF
9405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9406   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9407   ac_cv_gnu_library_2_1=yes
9408 else
9409   ac_cv_gnu_library_2_1=no
9410 fi
9411 rm -f conftest*
9412
9413
9414
9415 fi
9416 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9417 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9418
9419     GLIBC21="$ac_cv_gnu_library_2_1"
9420
9421
9422
9423
9424 for ac_header in stdint.h
9425 do
9426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9428   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 fi
9433 ac_res=`eval echo '${'$as_ac_Header'}'`
9434                { echo "$as_me:$LINENO: result: $ac_res" >&5
9435 echo "${ECHO_T}$ac_res" >&6; }
9436 else
9437   # Is the header compilable?
9438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446 $ac_includes_default
9447 #include <$ac_header>
9448 _ACEOF
9449 rm -f conftest.$ac_objext
9450 if { (ac_try="$ac_compile"
9451 case "(($ac_try" in
9452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453   *) ac_try_echo=$ac_try;;
9454 esac
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456   (eval "$ac_compile") 2>conftest.er1
9457   ac_status=$?
9458   grep -v '^ *+' conftest.er1 >conftest.err
9459   rm -f conftest.er1
9460   cat conftest.err >&5
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } && {
9463          test -z "$ac_c_werror_flag" ||
9464          test ! -s conftest.err
9465        } && test -s conftest.$ac_objext; then
9466   ac_header_compiler=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471         ac_header_compiler=no
9472 fi
9473
9474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9476 echo "${ECHO_T}$ac_header_compiler" >&6; }
9477
9478 # Is the header present?
9479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487 #include <$ac_header>
9488 _ACEOF
9489 if { (ac_try="$ac_cpp conftest.$ac_ext"
9490 case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9496   ac_status=$?
9497   grep -v '^ *+' conftest.er1 >conftest.err
9498   rm -f conftest.er1
9499   cat conftest.err >&5
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } >/dev/null && {
9502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9503          test ! -s conftest.err
9504        }; then
9505   ac_header_preproc=yes
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510   ac_header_preproc=no
9511 fi
9512
9513 rm -f conftest.err conftest.$ac_ext
9514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9515 echo "${ECHO_T}$ac_header_preproc" >&6; }
9516
9517 # So?  What about this header?
9518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9519   yes:no: )
9520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9524     ac_header_preproc=yes
9525     ;;
9526   no:yes:* )
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9539     ( cat <<\_ASBOX
9540 ## -------------------------------------- ##
9541 ## Report this to choe.hwanjing@gmail.com ##
9542 ## -------------------------------------- ##
9543 _ASBOX
9544      ) | sed "s/^/$as_me: WARNING:     /" >&2
9545     ;;
9546 esac
9547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   eval "$as_ac_Header=\$ac_header_preproc"
9553 fi
9554 ac_res=`eval echo '${'$as_ac_Header'}'`
9555                { echo "$as_me:$LINENO: result: $ac_res" >&5
9556 echo "${ECHO_T}$ac_res" >&6; }
9557
9558 fi
9559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9560   cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9562 _ACEOF
9563
9564 fi
9565
9566 done
9567
9568     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9569 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9570   result=
9571   cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577
9578 #include <limits.h>
9579 #if HAVE_STDINT_H
9580 #include <stdint.h>
9581 #endif
9582 #ifdef SIZE_MAX
9583 Found it
9584 #endif
9585
9586 _ACEOF
9587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9588   $EGREP "Found it" >/dev/null 2>&1; then
9589   result=yes
9590 fi
9591 rm -f conftest*
9592
9593   if test -z "$result"; then
9594                     if test "$cross_compiling" = yes; then
9595   # Depending upon the size, compute the lo and hi bounds.
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602 #include <stddef.h>
9603 int
9604 main ()
9605 {
9606 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9607 test_array [0] = 0
9608
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9615 case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_compile") 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } && {
9627          test -z "$ac_c_werror_flag" ||
9628          test ! -s conftest.err
9629        } && test -s conftest.$ac_objext; then
9630   ac_lo=0 ac_mid=0
9631   while :; do
9632     cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638 #include <stddef.h>
9639 int
9640 main ()
9641 {
9642 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9643 test_array [0] = 0
9644
9645   ;
9646   return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext
9650 if { (ac_try="$ac_compile"
9651 case "(($ac_try" in
9652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653   *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656   (eval "$ac_compile") 2>conftest.er1
9657   ac_status=$?
9658   grep -v '^ *+' conftest.er1 >conftest.err
9659   rm -f conftest.er1
9660   cat conftest.err >&5
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); } && {
9663          test -z "$ac_c_werror_flag" ||
9664          test ! -s conftest.err
9665        } && test -s conftest.$ac_objext; then
9666   ac_hi=$ac_mid; break
9667 else
9668   echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671         ac_lo=`expr $ac_mid + 1`
9672                         if test $ac_lo -le $ac_mid; then
9673                           ac_lo= ac_hi=
9674                           break
9675                         fi
9676                         ac_mid=`expr 2 '*' $ac_mid + 1`
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680   done
9681 else
9682   echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685         cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691 #include <stddef.h>
9692 int
9693 main ()
9694 {
9695 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9696 test_array [0] = 0
9697
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (ac_try="$ac_compile"
9704 case "(($ac_try" in
9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706   *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709   (eval "$ac_compile") 2>conftest.er1
9710   ac_status=$?
9711   grep -v '^ *+' conftest.er1 >conftest.err
9712   rm -f conftest.er1
9713   cat conftest.err >&5
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } && {
9716          test -z "$ac_c_werror_flag" ||
9717          test ! -s conftest.err
9718        } && test -s conftest.$ac_objext; then
9719   ac_hi=-1 ac_mid=-1
9720   while :; do
9721     cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 #include <stddef.h>
9728 int
9729 main ()
9730 {
9731 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9732 test_array [0] = 0
9733
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext
9739 if { (ac_try="$ac_compile"
9740 case "(($ac_try" in
9741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742   *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745   (eval "$ac_compile") 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } && {
9752          test -z "$ac_c_werror_flag" ||
9753          test ! -s conftest.err
9754        } && test -s conftest.$ac_objext; then
9755   ac_lo=$ac_mid; break
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760         ac_hi=`expr '(' $ac_mid ')' - 1`
9761                         if test $ac_mid -le $ac_hi; then
9762                           ac_lo= ac_hi=
9763                           break
9764                         fi
9765                         ac_mid=`expr 2 '*' $ac_mid`
9766 fi
9767
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769   done
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774         ac_lo= ac_hi=
9775 fi
9776
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 fi
9779
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 # Binary search between lo and hi bounds.
9782 while test "x$ac_lo" != "x$ac_hi"; do
9783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9784   cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h.  */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h.  */
9790 #include <stddef.h>
9791 int
9792 main ()
9793 {
9794 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9795 test_array [0] = 0
9796
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (ac_try="$ac_compile"
9803 case "(($ac_try" in
9804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805   *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808   (eval "$ac_compile") 2>conftest.er1
9809   ac_status=$?
9810   grep -v '^ *+' conftest.er1 >conftest.err
9811   rm -f conftest.er1
9812   cat conftest.err >&5
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } && {
9815          test -z "$ac_c_werror_flag" ||
9816          test ! -s conftest.err
9817        } && test -s conftest.$ac_objext; then
9818   ac_hi=$ac_mid
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823         ac_lo=`expr '(' $ac_mid ')' + 1`
9824 fi
9825
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 done
9828 case $ac_lo in
9829 ?*) res_hi=$ac_lo;;
9830 '') result=? ;;
9831 esac
9832 else
9833   cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839 #include <stddef.h>
9840 static long int longval () { return ~(size_t)0 / 10; }
9841 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
9842 #include <stdio.h>
9843 #include <stdlib.h>
9844 int
9845 main ()
9846 {
9847
9848   FILE *f = fopen ("conftest.val", "w");
9849   if (! f)
9850     return 1;
9851   if ((~(size_t)0 / 10) < 0)
9852     {
9853       long int i = longval ();
9854       if (i != (~(size_t)0 / 10))
9855         return 1;
9856       fprintf (f, "%ld\n", i);
9857     }
9858   else
9859     {
9860       unsigned long int i = ulongval ();
9861       if (i != (~(size_t)0 / 10))
9862         return 1;
9863       fprintf (f, "%lu\n", i);
9864     }
9865   return ferror (f) || fclose (f) != 0;
9866
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9873 case "(($ac_try" in
9874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875   *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878   (eval "$ac_link") 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9882   { (case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_try") 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; }; then
9891   res_hi=`cat conftest.val`
9892 else
9893   echo "$as_me: program exited with status $ac_status" >&5
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ( exit $ac_status )
9898 result=?
9899 fi
9900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9901 fi
9902 rm -f conftest.val
9903
9904     if test "$cross_compiling" = yes; then
9905   # Depending upon the size, compute the lo and hi bounds.
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912 #include <stddef.h>
9913 int
9914 main ()
9915 {
9916 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9917 test_array [0] = 0
9918
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (ac_try="$ac_compile"
9925 case "(($ac_try" in
9926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927   *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930   (eval "$ac_compile") 2>conftest.er1
9931   ac_status=$?
9932   grep -v '^ *+' conftest.er1 >conftest.err
9933   rm -f conftest.er1
9934   cat conftest.err >&5
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } && {
9937          test -z "$ac_c_werror_flag" ||
9938          test ! -s conftest.err
9939        } && test -s conftest.$ac_objext; then
9940   ac_lo=0 ac_mid=0
9941   while :; do
9942     cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948 #include <stddef.h>
9949 int
9950 main ()
9951 {
9952 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9953 test_array [0] = 0
9954
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext
9960 if { (ac_try="$ac_compile"
9961 case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_compile") 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } && {
9973          test -z "$ac_c_werror_flag" ||
9974          test ! -s conftest.err
9975        } && test -s conftest.$ac_objext; then
9976   ac_hi=$ac_mid; break
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981         ac_lo=`expr $ac_mid + 1`
9982                         if test $ac_lo -le $ac_mid; then
9983                           ac_lo= ac_hi=
9984                           break
9985                         fi
9986                         ac_mid=`expr 2 '*' $ac_mid + 1`
9987 fi
9988
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990   done
9991 else
9992   echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995         cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 #include <stddef.h>
10002 int
10003 main ()
10004 {
10005 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10006 test_array [0] = 0
10007
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext
10013 if { (ac_try="$ac_compile"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_compile") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } && {
10026          test -z "$ac_c_werror_flag" ||
10027          test ! -s conftest.err
10028        } && test -s conftest.$ac_objext; then
10029   ac_hi=-1 ac_mid=-1
10030   while :; do
10031     cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037 #include <stddef.h>
10038 int
10039 main ()
10040 {
10041 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10042 test_array [0] = 0
10043
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052   *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055   (eval "$ac_compile") 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } && {
10062          test -z "$ac_c_werror_flag" ||
10063          test ! -s conftest.err
10064        } && test -s conftest.$ac_objext; then
10065   ac_lo=$ac_mid; break
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070         ac_hi=`expr '(' $ac_mid ')' - 1`
10071                         if test $ac_mid -le $ac_hi; then
10072                           ac_lo= ac_hi=
10073                           break
10074                         fi
10075                         ac_mid=`expr 2 '*' $ac_mid`
10076 fi
10077
10078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079   done
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084         ac_lo= ac_hi=
10085 fi
10086
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 fi
10089
10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 # Binary search between lo and hi bounds.
10092 while test "x$ac_lo" != "x$ac_hi"; do
10093   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10094   cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100 #include <stddef.h>
10101 int
10102 main ()
10103 {
10104 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10105 test_array [0] = 0
10106
10107   ;
10108   return 0;
10109 }
10110 _ACEOF
10111 rm -f conftest.$ac_objext
10112 if { (ac_try="$ac_compile"
10113 case "(($ac_try" in
10114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115   *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118   (eval "$ac_compile") 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } && {
10125          test -z "$ac_c_werror_flag" ||
10126          test ! -s conftest.err
10127        } && test -s conftest.$ac_objext; then
10128   ac_hi=$ac_mid
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133         ac_lo=`expr '(' $ac_mid ')' + 1`
10134 fi
10135
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 done
10138 case $ac_lo in
10139 ?*) res_lo=$ac_lo;;
10140 '') result=? ;;
10141 esac
10142 else
10143   cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h.  */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h.  */
10149 #include <stddef.h>
10150 static long int longval () { return ~(size_t)0 % 10; }
10151 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10152 #include <stdio.h>
10153 #include <stdlib.h>
10154 int
10155 main ()
10156 {
10157
10158   FILE *f = fopen ("conftest.val", "w");
10159   if (! f)
10160     return 1;
10161   if ((~(size_t)0 % 10) < 0)
10162     {
10163       long int i = longval ();
10164       if (i != (~(size_t)0 % 10))
10165         return 1;
10166       fprintf (f, "%ld\n", i);
10167     }
10168   else
10169     {
10170       unsigned long int i = ulongval ();
10171       if (i != (~(size_t)0 % 10))
10172         return 1;
10173       fprintf (f, "%lu\n", i);
10174     }
10175   return ferror (f) || fclose (f) != 0;
10176
10177   ;
10178   return 0;
10179 }
10180 _ACEOF
10181 rm -f conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185   *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188   (eval "$ac_link") 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10192   { (case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_try") 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   res_lo=`cat conftest.val`
10202 else
10203   echo "$as_me: program exited with status $ac_status" >&5
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ( exit $ac_status )
10208 result=?
10209 fi
10210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10211 fi
10212 rm -f conftest.val
10213
10214     if test "$cross_compiling" = yes; then
10215   # Depending upon the size, compute the lo and hi bounds.
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <stddef.h>
10223 int
10224 main ()
10225 {
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10227 test_array [0] = 0
10228
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (ac_try="$ac_compile"
10235 case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_compile") 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } && {
10247          test -z "$ac_c_werror_flag" ||
10248          test ! -s conftest.err
10249        } && test -s conftest.$ac_objext; then
10250   ac_lo=0 ac_mid=0
10251   while :; do
10252     cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 #include <stddef.h>
10259 int
10260 main ()
10261 {
10262 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10263 test_array [0] = 0
10264
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273   *) ac_try_echo=$ac_try;;
10274 esac
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276   (eval "$ac_compile") 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } && {
10283          test -z "$ac_c_werror_flag" ||
10284          test ! -s conftest.err
10285        } && test -s conftest.$ac_objext; then
10286   ac_hi=$ac_mid; break
10287 else
10288   echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10290
10291         ac_lo=`expr $ac_mid + 1`
10292                         if test $ac_lo -le $ac_mid; then
10293                           ac_lo= ac_hi=
10294                           break
10295                         fi
10296                         ac_mid=`expr 2 '*' $ac_mid + 1`
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300   done
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305         cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311 #include <stddef.h>
10312 int
10313 main ()
10314 {
10315 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10316 test_array [0] = 0
10317
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext
10323 if { (ac_try="$ac_compile"
10324 case "(($ac_try" in
10325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326   *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329   (eval "$ac_compile") 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } && {
10336          test -z "$ac_c_werror_flag" ||
10337          test ! -s conftest.err
10338        } && test -s conftest.$ac_objext; then
10339   ac_hi=-1 ac_mid=-1
10340   while :; do
10341     cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347 #include <stddef.h>
10348 int
10349 main ()
10350 {
10351 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10352 test_array [0] = 0
10353
10354   ;
10355   return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (ac_try="$ac_compile"
10360 case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365   (eval "$ac_compile") 2>conftest.er1
10366   ac_status=$?
10367   grep -v '^ *+' conftest.er1 >conftest.err
10368   rm -f conftest.er1
10369   cat conftest.err >&5
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); } && {
10372          test -z "$ac_c_werror_flag" ||
10373          test ! -s conftest.err
10374        } && test -s conftest.$ac_objext; then
10375   ac_lo=$ac_mid; break
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380         ac_hi=`expr '(' $ac_mid ')' - 1`
10381                         if test $ac_mid -le $ac_hi; then
10382                           ac_lo= ac_hi=
10383                           break
10384                         fi
10385                         ac_mid=`expr 2 '*' $ac_mid`
10386 fi
10387
10388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389   done
10390 else
10391   echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10393
10394         ac_lo= ac_hi=
10395 fi
10396
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 fi
10399
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 # Binary search between lo and hi bounds.
10402 while test "x$ac_lo" != "x$ac_hi"; do
10403   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10404   cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 #include <stddef.h>
10411 int
10412 main ()
10413 {
10414 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10415 test_array [0] = 0
10416
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest.$ac_objext
10422 if { (ac_try="$ac_compile"
10423 case "(($ac_try" in
10424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425   *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428   (eval "$ac_compile") 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } && {
10435          test -z "$ac_c_werror_flag" ||
10436          test ! -s conftest.err
10437        } && test -s conftest.$ac_objext; then
10438   ac_hi=$ac_mid
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         ac_lo=`expr '(' $ac_mid ')' + 1`
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 done
10448 case $ac_lo in
10449 ?*) fits_in_uint=$ac_lo;;
10450 '') result=? ;;
10451 esac
10452 else
10453   cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 #include <stddef.h>
10460 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10461 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10462 #include <stdio.h>
10463 #include <stdlib.h>
10464 int
10465 main ()
10466 {
10467
10468   FILE *f = fopen ("conftest.val", "w");
10469   if (! f)
10470     return 1;
10471   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10472     {
10473       long int i = longval ();
10474       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10475         return 1;
10476       fprintf (f, "%ld\n", i);
10477     }
10478   else
10479     {
10480       unsigned long int i = ulongval ();
10481       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10482         return 1;
10483       fprintf (f, "%lu\n", i);
10484     }
10485   return ferror (f) || fclose (f) != 0;
10486
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest$ac_exeext
10492 if { (ac_try="$ac_link"
10493 case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498   (eval "$ac_link") 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10502   { (case "(($ac_try" in
10503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504   *) ac_try_echo=$ac_try;;
10505 esac
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507   (eval "$ac_try") 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; }; then
10511   fits_in_uint=`cat conftest.val`
10512 else
10513   echo "$as_me: program exited with status $ac_status" >&5
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517 ( exit $ac_status )
10518 result=?
10519 fi
10520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10521 fi
10522 rm -f conftest.val
10523
10524     if test "$fits_in_uint" = 1; then
10525                   cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h.  */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h.  */
10531 #include <stddef.h>
10532         extern size_t foo;
10533         extern unsigned long foo;
10534
10535 int
10536 main ()
10537 {
10538
10539   ;
10540   return 0;
10541 }
10542 _ACEOF
10543 rm -f conftest.$ac_objext
10544 if { (ac_try="$ac_compile"
10545 case "(($ac_try" in
10546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547   *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550   (eval "$ac_compile") 2>conftest.er1
10551   ac_status=$?
10552   grep -v '^ *+' conftest.er1 >conftest.err
10553   rm -f conftest.er1
10554   cat conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } && {
10557          test -z "$ac_c_werror_flag" ||
10558          test ! -s conftest.err
10559        } && test -s conftest.$ac_objext; then
10560   fits_in_uint=0
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565
10566 fi
10567
10568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10569     fi
10570     if test -z "$result"; then
10571       if test "$fits_in_uint" = 1; then
10572         result="$res_hi$res_lo"U
10573       else
10574         result="$res_hi$res_lo"UL
10575       fi
10576     else
10577             result='~(size_t)0'
10578     fi
10579   fi
10580   { echo "$as_me:$LINENO: result: $result" >&5
10581 echo "${ECHO_T}$result" >&6; }
10582   if test "$result" != yes; then
10583
10584 cat >>confdefs.h <<_ACEOF
10585 #define SIZE_MAX $result
10586 _ACEOF
10587
10588   fi
10589
10590
10591
10592
10593 for ac_header in stdint.h
10594 do
10595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 fi
10602 ac_res=`eval echo '${'$as_ac_Header'}'`
10603                { echo "$as_me:$LINENO: result: $ac_res" >&5
10604 echo "${ECHO_T}$ac_res" >&6; }
10605 else
10606   # Is the header compilable?
10607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615 $ac_includes_default
10616 #include <$ac_header>
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (ac_try="$ac_compile"
10620 case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_compile") 2>conftest.er1
10626   ac_status=$?
10627   grep -v '^ *+' conftest.er1 >conftest.err
10628   rm -f conftest.er1
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } && {
10632          test -z "$ac_c_werror_flag" ||
10633          test ! -s conftest.err
10634        } && test -s conftest.$ac_objext; then
10635   ac_header_compiler=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640         ac_header_compiler=no
10641 fi
10642
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645 echo "${ECHO_T}$ac_header_compiler" >&6; }
10646
10647 # Is the header present?
10648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 #include <$ac_header>
10657 _ACEOF
10658 if { (ac_try="$ac_cpp conftest.$ac_ext"
10659 case "(($ac_try" in
10660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661   *) ac_try_echo=$ac_try;;
10662 esac
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10665   ac_status=$?
10666   grep -v '^ *+' conftest.er1 >conftest.err
10667   rm -f conftest.er1
10668   cat conftest.err >&5
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } >/dev/null && {
10671          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10672          test ! -s conftest.err
10673        }; then
10674   ac_header_preproc=yes
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679   ac_header_preproc=no
10680 fi
10681
10682 rm -f conftest.err conftest.$ac_ext
10683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10684 echo "${ECHO_T}$ac_header_preproc" >&6; }
10685
10686 # So?  What about this header?
10687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10688   yes:no: )
10689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10693     ac_header_preproc=yes
10694     ;;
10695   no:yes:* )
10696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10708     ( cat <<\_ASBOX
10709 ## -------------------------------------- ##
10710 ## Report this to choe.hwanjing@gmail.com ##
10711 ## -------------------------------------- ##
10712 _ASBOX
10713      ) | sed "s/^/$as_me: WARNING:     /" >&2
10714     ;;
10715 esac
10716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   eval "$as_ac_Header=\$ac_header_preproc"
10722 fi
10723 ac_res=`eval echo '${'$as_ac_Header'}'`
10724                { echo "$as_me:$LINENO: result: $ac_res" >&5
10725 echo "${ECHO_T}$ac_res" >&6; }
10726
10727 fi
10728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729   cat >>confdefs.h <<_ACEOF
10730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731 _ACEOF
10732
10733 fi
10734
10735 done
10736
10737
10738
10739     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10740 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10741 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10742   echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744   gt_save_LIBS="$LIBS"
10745      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10746      cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752 #include <CoreFoundation/CFPreferences.h>
10753 int
10754 main ()
10755 {
10756 CFPreferencesCopyAppValue(NULL, NULL)
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_link") 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } && {
10775          test -z "$ac_c_werror_flag" ||
10776          test ! -s conftest.err
10777        } && test -s conftest$ac_exeext &&
10778        $as_test_x conftest$ac_exeext; then
10779   gt_cv_func_CFPreferencesCopyAppValue=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784         gt_cv_func_CFPreferencesCopyAppValue=no
10785 fi
10786
10787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10788       conftest$ac_exeext conftest.$ac_ext
10789      LIBS="$gt_save_LIBS"
10790 fi
10791 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10792 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10793   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10794
10795 cat >>confdefs.h <<\_ACEOF
10796 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10797 _ACEOF
10798
10799   fi
10800     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10801 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10802 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   gt_save_LIBS="$LIBS"
10806      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10807      cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 #include <CoreFoundation/CFLocale.h>
10814 int
10815 main ()
10816 {
10817 CFLocaleCopyCurrent();
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826   *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829   (eval "$ac_link") 2>conftest.er1
10830   ac_status=$?
10831   grep -v '^ *+' conftest.er1 >conftest.err
10832   rm -f conftest.er1
10833   cat conftest.err >&5
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } && {
10836          test -z "$ac_c_werror_flag" ||
10837          test ! -s conftest.err
10838        } && test -s conftest$ac_exeext &&
10839        $as_test_x conftest$ac_exeext; then
10840   gt_cv_func_CFLocaleCopyCurrent=yes
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845         gt_cv_func_CFLocaleCopyCurrent=no
10846 fi
10847
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849       conftest$ac_exeext conftest.$ac_ext
10850      LIBS="$gt_save_LIBS"
10851 fi
10852 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10853 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10854   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10855
10856 cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_CFLOCALECOPYCURRENT 1
10858 _ACEOF
10859
10860   fi
10861   INTL_MACOSX_LIBS=
10862   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10863     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10864   fi
10865
10866
10867
10868
10869
10870
10871
10872   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10873 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10874 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877   cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 $ac_includes_default
10884 typedef ptrdiff_t ac__type_new_;
10885 int
10886 main ()
10887 {
10888 if ((ac__type_new_ *) 0)
10889   return 0;
10890 if (sizeof (ac__type_new_))
10891   return 0;
10892   ;
10893   return 0;
10894 }
10895 _ACEOF
10896 rm -f conftest.$ac_objext
10897 if { (ac_try="$ac_compile"
10898 case "(($ac_try" in
10899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900   *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903   (eval "$ac_compile") 2>conftest.er1
10904   ac_status=$?
10905   grep -v '^ *+' conftest.er1 >conftest.err
10906   rm -f conftest.er1
10907   cat conftest.err >&5
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); } && {
10910          test -z "$ac_c_werror_flag" ||
10911          test ! -s conftest.err
10912        } && test -s conftest.$ac_objext; then
10913   ac_cv_type_ptrdiff_t=yes
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918         ac_cv_type_ptrdiff_t=no
10919 fi
10920
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 fi
10923 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10924 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10925 if test $ac_cv_type_ptrdiff_t = yes; then
10926   :
10927 else
10928
10929 cat >>confdefs.h <<\_ACEOF
10930 #define ptrdiff_t long
10931 _ACEOF
10932
10933
10934 fi
10935
10936
10937
10938
10939 for ac_header in stddef.h stdlib.h string.h
10940 do
10941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 fi
10948 ac_res=`eval echo '${'$as_ac_Header'}'`
10949                { echo "$as_me:$LINENO: result: $ac_res" >&5
10950 echo "${ECHO_T}$ac_res" >&6; }
10951 else
10952   # Is the header compilable?
10953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961 $ac_includes_default
10962 #include <$ac_header>
10963 _ACEOF
10964 rm -f conftest.$ac_objext
10965 if { (ac_try="$ac_compile"
10966 case "(($ac_try" in
10967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968   *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971   (eval "$ac_compile") 2>conftest.er1
10972   ac_status=$?
10973   grep -v '^ *+' conftest.er1 >conftest.err
10974   rm -f conftest.er1
10975   cat conftest.err >&5
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); } && {
10978          test -z "$ac_c_werror_flag" ||
10979          test ! -s conftest.err
10980        } && test -s conftest.$ac_objext; then
10981   ac_header_compiler=yes
10982 else
10983   echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986         ac_header_compiler=no
10987 fi
10988
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10991 echo "${ECHO_T}$ac_header_compiler" >&6; }
10992
10993 # Is the header present?
10994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 #include <$ac_header>
11003 _ACEOF
11004 if { (ac_try="$ac_cpp conftest.$ac_ext"
11005 case "(($ac_try" in
11006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007   *) ac_try_echo=$ac_try;;
11008 esac
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } >/dev/null && {
11017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11018          test ! -s conftest.err
11019        }; then
11020   ac_header_preproc=yes
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025   ac_header_preproc=no
11026 fi
11027
11028 rm -f conftest.err conftest.$ac_ext
11029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11030 echo "${ECHO_T}$ac_header_preproc" >&6; }
11031
11032 # So?  What about this header?
11033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11034   yes:no: )
11035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11039     ac_header_preproc=yes
11040     ;;
11041   no:yes:* )
11042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11054     ( cat <<\_ASBOX
11055 ## -------------------------------------- ##
11056 ## Report this to choe.hwanjing@gmail.com ##
11057 ## -------------------------------------- ##
11058 _ASBOX
11059      ) | sed "s/^/$as_me: WARNING:     /" >&2
11060     ;;
11061 esac
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065   echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067   eval "$as_ac_Header=\$ac_header_preproc"
11068 fi
11069 ac_res=`eval echo '${'$as_ac_Header'}'`
11070                { echo "$as_me:$LINENO: result: $ac_res" >&5
11071 echo "${ECHO_T}$ac_res" >&6; }
11072
11073 fi
11074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11075   cat >>confdefs.h <<_ACEOF
11076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11077 _ACEOF
11078
11079 fi
11080
11081 done
11082
11083
11084
11085
11086
11087
11088
11089
11090 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
11091 do
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098   cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h.  */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h.  */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11106 #define $ac_func innocuous_$ac_func
11107
11108 /* System header to define __stub macros and hopefully few prototypes,
11109     which can conflict with char $ac_func (); below.
11110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111     <limits.h> exists even on freestanding compilers.  */
11112
11113 #ifdef __STDC__
11114 # include <limits.h>
11115 #else
11116 # include <assert.h>
11117 #endif
11118
11119 #undef $ac_func
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122    Use char because int might match the return type of a GCC
11123    builtin and then its argument prototype would still apply.  */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char $ac_func ();
11128 /* The GNU C library defines this for functions which it implements
11129     to always fail with ENOSYS.  Some functions are actually named
11130     something starting with __ and the normal name is an alias.  */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11132 choke me
11133 #endif
11134
11135 int
11136 main ()
11137 {
11138 return $ac_func ();
11139   ;
11140   return 0;
11141 }
11142 _ACEOF
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (ac_try="$ac_link"
11145 case "(($ac_try" in
11146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147   *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150   (eval "$ac_link") 2>conftest.er1
11151   ac_status=$?
11152   grep -v '^ *+' conftest.er1 >conftest.err
11153   rm -f conftest.er1
11154   cat conftest.err >&5
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } && {
11157          test -z "$ac_c_werror_flag" ||
11158          test ! -s conftest.err
11159        } && test -s conftest$ac_exeext &&
11160        $as_test_x conftest$ac_exeext; then
11161   eval "$as_ac_var=yes"
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166         eval "$as_ac_var=no"
11167 fi
11168
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170       conftest$ac_exeext conftest.$ac_ext
11171 fi
11172 ac_res=`eval echo '${'$as_ac_var'}'`
11173                { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11175 if test `eval echo '${'$as_ac_var'}'` = yes; then
11176   cat >>confdefs.h <<_ACEOF
11177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178 _ACEOF
11179
11180 fi
11181 done
11182
11183
11184
11185   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11186 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11187 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h.  */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h.  */
11196 #include <stdio.h>
11197 int
11198 main ()
11199 {
11200
11201 #ifndef _snprintf
11202   char *p = (char *) _snprintf;
11203 #endif
11204
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 rm -f conftest.$ac_objext
11210 if { (ac_try="$ac_compile"
11211 case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_compile") 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } && {
11223          test -z "$ac_c_werror_flag" ||
11224          test ! -s conftest.err
11225        } && test -s conftest.$ac_objext; then
11226   ac_cv_have_decl__snprintf=yes
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         ac_cv_have_decl__snprintf=no
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 fi
11236 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11237 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11238   if test $ac_cv_have_decl__snprintf = yes; then
11239     gt_value=1
11240   else
11241     gt_value=0
11242   fi
11243
11244 cat >>confdefs.h <<_ACEOF
11245 #define HAVE_DECL__SNPRINTF $gt_value
11246 _ACEOF
11247
11248
11249
11250   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11251 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11252 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h.  */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h.  */
11261 #include <stdio.h>
11262 int
11263 main ()
11264 {
11265
11266 #ifndef _snwprintf
11267   char *p = (char *) _snwprintf;
11268 #endif
11269
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_compile") 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } && {
11288          test -z "$ac_c_werror_flag" ||
11289          test ! -s conftest.err
11290        } && test -s conftest.$ac_objext; then
11291   ac_cv_have_decl__snwprintf=yes
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296         ac_cv_have_decl__snwprintf=no
11297 fi
11298
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 fi
11301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11302 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11303   if test $ac_cv_have_decl__snwprintf = yes; then
11304     gt_value=1
11305   else
11306     gt_value=0
11307   fi
11308
11309 cat >>confdefs.h <<_ACEOF
11310 #define HAVE_DECL__SNWPRINTF $gt_value
11311 _ACEOF
11312
11313
11314
11315
11316   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11317 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11318 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <stdio.h>
11328 int
11329 main ()
11330 {
11331
11332 #ifndef getc_unlocked
11333   char *p = (char *) getc_unlocked;
11334 #endif
11335
11336   ;
11337   return 0;
11338 }
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (ac_try="$ac_compile"
11342 case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_compile") 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
11351   cat conftest.err >&5
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } && {
11354          test -z "$ac_c_werror_flag" ||
11355          test ! -s conftest.err
11356        } && test -s conftest.$ac_objext; then
11357   ac_cv_have_decl_getc_unlocked=yes
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362         ac_cv_have_decl_getc_unlocked=no
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 fi
11367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11368 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
11369   if test $ac_cv_have_decl_getc_unlocked = yes; then
11370     gt_value=1
11371   else
11372     gt_value=0
11373   fi
11374
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11377 _ACEOF
11378
11379
11380
11381   case $gt_cv_func_printf_posix in
11382     *yes) HAVE_POSIX_PRINTF=1 ;;
11383     *) HAVE_POSIX_PRINTF=0 ;;
11384   esac
11385
11386   if test "$ac_cv_func_asprintf" = yes; then
11387     HAVE_ASPRINTF=1
11388   else
11389     HAVE_ASPRINTF=0
11390   fi
11391
11392   if test "$ac_cv_func_snprintf" = yes; then
11393     HAVE_SNPRINTF=1
11394   else
11395     HAVE_SNPRINTF=0
11396   fi
11397
11398   if test "$ac_cv_func_wprintf" = yes; then
11399     HAVE_WPRINTF=1
11400   else
11401     HAVE_WPRINTF=0
11402   fi
11403
11404
11405
11406   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11407 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11408 if test "${am_cv_langinfo_codeset+set}" = set; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417 #include <langinfo.h>
11418 int
11419 main ()
11420 {
11421 char* cs = nl_langinfo(CODESET);
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (ac_try="$ac_link"
11428 case "(($ac_try" in
11429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430   *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433   (eval "$ac_link") 2>conftest.er1
11434   ac_status=$?
11435   grep -v '^ *+' conftest.er1 >conftest.err
11436   rm -f conftest.er1
11437   cat conftest.err >&5
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); } && {
11440          test -z "$ac_c_werror_flag" ||
11441          test ! -s conftest.err
11442        } && test -s conftest$ac_exeext &&
11443        $as_test_x conftest$ac_exeext; then
11444   am_cv_langinfo_codeset=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449         am_cv_langinfo_codeset=no
11450 fi
11451
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453       conftest$ac_exeext conftest.$ac_ext
11454
11455 fi
11456 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11457 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11458   if test $am_cv_langinfo_codeset = yes; then
11459
11460 cat >>confdefs.h <<\_ACEOF
11461 #define HAVE_LANGINFO_CODESET 1
11462 _ACEOF
11463
11464   fi
11465
11466
11467   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11468 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11469 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478 #include <locale.h>
11479 int
11480 main ()
11481 {
11482 return LC_MESSAGES
11483   ;
11484   return 0;
11485 }
11486 _ACEOF
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_link") 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } && {
11501          test -z "$ac_c_werror_flag" ||
11502          test ! -s conftest.err
11503        } && test -s conftest$ac_exeext &&
11504        $as_test_x conftest$ac_exeext; then
11505   gt_cv_val_LC_MESSAGES=yes
11506 else
11507   echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510         gt_cv_val_LC_MESSAGES=no
11511 fi
11512
11513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11514       conftest$ac_exeext conftest.$ac_ext
11515 fi
11516 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11517 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
11518   if test $gt_cv_val_LC_MESSAGES = yes; then
11519
11520 cat >>confdefs.h <<\_ACEOF
11521 #define HAVE_LC_MESSAGES 1
11522 _ACEOF
11523
11524   fi
11525
11526
11527                 if test "$enable_shared" = yes; then
11528     case "$host_os" in
11529       cygwin*) is_woe32dll=yes ;;
11530       *) is_woe32dll=no ;;
11531     esac
11532   else
11533     is_woe32dll=no
11534   fi
11535   WOE32DLL=$is_woe32dll
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11557 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11558     # Check whether --enable-nls was given.
11559 if test "${enable_nls+set}" = set; then
11560   enableval=$enable_nls; USE_NLS=$enableval
11561 else
11562   USE_NLS=yes
11563 fi
11564
11565   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11566 echo "${ECHO_T}$USE_NLS" >&6; }
11567
11568
11569
11570
11571     BUILD_INCLUDED_LIBINTL=no
11572     USE_INCLUDED_LIBINTL=no
11573
11574   LIBINTL=
11575   LTLIBINTL=
11576   POSUB=
11577
11578     if test "$USE_NLS" = "yes"; then
11579     gt_use_preinstalled_gnugettext=no
11580
11581       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11582 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
11583
11584 # Check whether --with-included-gettext was given.
11585 if test "${with_included_gettext+set}" = set; then
11586   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11587 else
11588   nls_cv_force_use_gnu_gettext=no
11589 fi
11590
11591       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11592 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
11593
11594       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11595       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11596
11597
11598
11599
11600
11601
11602         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11603 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11604 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613 #include <libintl.h>
11614 extern int _nl_msg_cat_cntr;
11615 extern int *_nl_domain_bindings;
11616 int
11617 main ()
11618 {
11619 bindtextdomain ("", "");
11620 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629   *) ac_try_echo=$ac_try;;
11630 esac
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632   (eval "$ac_link") 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } && {
11639          test -z "$ac_c_werror_flag" ||
11640          test ! -s conftest.err
11641        } && test -s conftest$ac_exeext &&
11642        $as_test_x conftest$ac_exeext; then
11643   gt_cv_func_gnugettext1_libc=yes
11644 else
11645   echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648         gt_cv_func_gnugettext1_libc=no
11649 fi
11650
11651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11652       conftest$ac_exeext conftest.$ac_ext
11653 fi
11654 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11655 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
11656
11657         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11658
11659
11660
11661     use_additional=yes
11662
11663   acl_save_prefix="$prefix"
11664   prefix="$acl_final_prefix"
11665   acl_save_exec_prefix="$exec_prefix"
11666   exec_prefix="$acl_final_exec_prefix"
11667
11668     eval additional_includedir=\"$includedir\"
11669     eval additional_libdir=\"$libdir\"
11670
11671   exec_prefix="$acl_save_exec_prefix"
11672   prefix="$acl_save_prefix"
11673
11674
11675 # Check whether --with-libintl-prefix was given.
11676 if test "${with_libintl_prefix+set}" = set; then
11677   withval=$with_libintl_prefix;
11678     if test "X$withval" = "Xno"; then
11679       use_additional=no
11680     else
11681       if test "X$withval" = "X"; then
11682
11683   acl_save_prefix="$prefix"
11684   prefix="$acl_final_prefix"
11685   acl_save_exec_prefix="$exec_prefix"
11686   exec_prefix="$acl_final_exec_prefix"
11687
11688           eval additional_includedir=\"$includedir\"
11689           eval additional_libdir=\"$libdir\"
11690
11691   exec_prefix="$acl_save_exec_prefix"
11692   prefix="$acl_save_prefix"
11693
11694       else
11695         additional_includedir="$withval/include"
11696         additional_libdir="$withval/lib"
11697       fi
11698     fi
11699
11700 fi
11701
11702       LIBINTL=
11703   LTLIBINTL=
11704   INCINTL=
11705   rpathdirs=
11706   ltrpathdirs=
11707   names_already_handled=
11708   names_next_round='intl '
11709   while test -n "$names_next_round"; do
11710     names_this_round="$names_next_round"
11711     names_next_round=
11712     for name in $names_this_round; do
11713       already_handled=
11714       for n in $names_already_handled; do
11715         if test "$n" = "$name"; then
11716           already_handled=yes
11717           break
11718         fi
11719       done
11720       if test -z "$already_handled"; then
11721         names_already_handled="$names_already_handled $name"
11722                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11723         eval value=\"\$HAVE_LIB$uppername\"
11724         if test -n "$value"; then
11725           if test "$value" = yes; then
11726             eval value=\"\$LIB$uppername\"
11727             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11728             eval value=\"\$LTLIB$uppername\"
11729             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11730           else
11731                                     :
11732           fi
11733         else
11734                               found_dir=
11735           found_la=
11736           found_so=
11737           found_a=
11738           if test $use_additional = yes; then
11739             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11740               found_dir="$additional_libdir"
11741               found_so="$additional_libdir/lib$name.$shlibext"
11742               if test -f "$additional_libdir/lib$name.la"; then
11743                 found_la="$additional_libdir/lib$name.la"
11744               fi
11745             else
11746               if test -f "$additional_libdir/lib$name.$libext"; then
11747                 found_dir="$additional_libdir"
11748                 found_a="$additional_libdir/lib$name.$libext"
11749                 if test -f "$additional_libdir/lib$name.la"; then
11750                   found_la="$additional_libdir/lib$name.la"
11751                 fi
11752               fi
11753             fi
11754           fi
11755           if test "X$found_dir" = "X"; then
11756             for x in $LDFLAGS $LTLIBINTL; do
11757
11758   acl_save_prefix="$prefix"
11759   prefix="$acl_final_prefix"
11760   acl_save_exec_prefix="$exec_prefix"
11761   exec_prefix="$acl_final_exec_prefix"
11762   eval x=\"$x\"
11763   exec_prefix="$acl_save_exec_prefix"
11764   prefix="$acl_save_prefix"
11765
11766               case "$x" in
11767                 -L*)
11768                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11769                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11770                     found_dir="$dir"
11771                     found_so="$dir/lib$name.$shlibext"
11772                     if test -f "$dir/lib$name.la"; then
11773                       found_la="$dir/lib$name.la"
11774                     fi
11775                   else
11776                     if test -f "$dir/lib$name.$libext"; then
11777                       found_dir="$dir"
11778                       found_a="$dir/lib$name.$libext"
11779                       if test -f "$dir/lib$name.la"; then
11780                         found_la="$dir/lib$name.la"
11781                       fi
11782                     fi
11783                   fi
11784                   ;;
11785               esac
11786               if test "X$found_dir" != "X"; then
11787                 break
11788               fi
11789             done
11790           fi
11791           if test "X$found_dir" != "X"; then
11792                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11793             if test "X$found_so" != "X"; then
11794                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11795                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11796               else
11797                                                                                 haveit=
11798                 for x in $ltrpathdirs; do
11799                   if test "X$x" = "X$found_dir"; then
11800                     haveit=yes
11801                     break
11802                   fi
11803                 done
11804                 if test -z "$haveit"; then
11805                   ltrpathdirs="$ltrpathdirs $found_dir"
11806                 fi
11807                                 if test "$hardcode_direct" = yes; then
11808                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11809                 else
11810                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11811                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11812                                                             haveit=
11813                     for x in $rpathdirs; do
11814                       if test "X$x" = "X$found_dir"; then
11815                         haveit=yes
11816                         break
11817                       fi
11818                     done
11819                     if test -z "$haveit"; then
11820                       rpathdirs="$rpathdirs $found_dir"
11821                     fi
11822                   else
11823                                                                                 haveit=
11824                     for x in $LDFLAGS $LIBINTL; do
11825
11826   acl_save_prefix="$prefix"
11827   prefix="$acl_final_prefix"
11828   acl_save_exec_prefix="$exec_prefix"
11829   exec_prefix="$acl_final_exec_prefix"
11830   eval x=\"$x\"
11831   exec_prefix="$acl_save_exec_prefix"
11832   prefix="$acl_save_prefix"
11833
11834                       if test "X$x" = "X-L$found_dir"; then
11835                         haveit=yes
11836                         break
11837                       fi
11838                     done
11839                     if test -z "$haveit"; then
11840                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11841                     fi
11842                     if test "$hardcode_minus_L" != no; then
11843                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11844                     else
11845                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11846                     fi
11847                   fi
11848                 fi
11849               fi
11850             else
11851               if test "X$found_a" != "X"; then
11852                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11853               else
11854                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11855               fi
11856             fi
11857                         additional_includedir=
11858             case "$found_dir" in
11859               */lib | */lib/)
11860                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11861                 additional_includedir="$basedir/include"
11862                 ;;
11863             esac
11864             if test "X$additional_includedir" != "X"; then
11865                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11866                 haveit=
11867                 if test "X$additional_includedir" = "X/usr/local/include"; then
11868                   if test -n "$GCC"; then
11869                     case $host_os in
11870                       linux*) haveit=yes;;
11871                     esac
11872                   fi
11873                 fi
11874                 if test -z "$haveit"; then
11875                   for x in $CPPFLAGS $INCINTL; do
11876
11877   acl_save_prefix="$prefix"
11878   prefix="$acl_final_prefix"
11879   acl_save_exec_prefix="$exec_prefix"
11880   exec_prefix="$acl_final_exec_prefix"
11881   eval x=\"$x\"
11882   exec_prefix="$acl_save_exec_prefix"
11883   prefix="$acl_save_prefix"
11884
11885                     if test "X$x" = "X-I$additional_includedir"; then
11886                       haveit=yes
11887                       break
11888                     fi
11889                   done
11890                   if test -z "$haveit"; then
11891                     if test -d "$additional_includedir"; then
11892                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11893                     fi
11894                   fi
11895                 fi
11896               fi
11897             fi
11898                         if test -n "$found_la"; then
11899                                                         save_libdir="$libdir"
11900               case "$found_la" in
11901                 */* | *\\*) . "$found_la" ;;
11902                 *) . "./$found_la" ;;
11903               esac
11904               libdir="$save_libdir"
11905                             for dep in $dependency_libs; do
11906                 case "$dep" in
11907                   -L*)
11908                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11909                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11910                       haveit=
11911                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11912                         if test -n "$GCC"; then
11913                           case $host_os in
11914                             linux*) haveit=yes;;
11915                           esac
11916                         fi
11917                       fi
11918                       if test -z "$haveit"; then
11919                         haveit=
11920                         for x in $LDFLAGS $LIBINTL; do
11921
11922   acl_save_prefix="$prefix"
11923   prefix="$acl_final_prefix"
11924   acl_save_exec_prefix="$exec_prefix"
11925   exec_prefix="$acl_final_exec_prefix"
11926   eval x=\"$x\"
11927   exec_prefix="$acl_save_exec_prefix"
11928   prefix="$acl_save_prefix"
11929
11930                           if test "X$x" = "X-L$additional_libdir"; then
11931                             haveit=yes
11932                             break
11933                           fi
11934                         done
11935                         if test -z "$haveit"; then
11936                           if test -d "$additional_libdir"; then
11937                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11938                           fi
11939                         fi
11940                         haveit=
11941                         for x in $LDFLAGS $LTLIBINTL; do
11942
11943   acl_save_prefix="$prefix"
11944   prefix="$acl_final_prefix"
11945   acl_save_exec_prefix="$exec_prefix"
11946   exec_prefix="$acl_final_exec_prefix"
11947   eval x=\"$x\"
11948   exec_prefix="$acl_save_exec_prefix"
11949   prefix="$acl_save_prefix"
11950
11951                           if test "X$x" = "X-L$additional_libdir"; then
11952                             haveit=yes
11953                             break
11954                           fi
11955                         done
11956                         if test -z "$haveit"; then
11957                           if test -d "$additional_libdir"; then
11958                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11959                           fi
11960                         fi
11961                       fi
11962                     fi
11963                     ;;
11964                   -R*)
11965                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11966                     if test "$enable_rpath" != no; then
11967                                                                   haveit=
11968                       for x in $rpathdirs; do
11969                         if test "X$x" = "X$dir"; then
11970                           haveit=yes
11971                           break
11972                         fi
11973                       done
11974                       if test -z "$haveit"; then
11975                         rpathdirs="$rpathdirs $dir"
11976                       fi
11977                                                                   haveit=
11978                       for x in $ltrpathdirs; do
11979                         if test "X$x" = "X$dir"; then
11980                           haveit=yes
11981                           break
11982                         fi
11983                       done
11984                       if test -z "$haveit"; then
11985                         ltrpathdirs="$ltrpathdirs $dir"
11986                       fi
11987                     fi
11988                     ;;
11989                   -l*)
11990                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11991                     ;;
11992                   *.la)
11993                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11994                     ;;
11995                   *)
11996                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11997                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11998                     ;;
11999                 esac
12000               done
12001             fi
12002           else
12003                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12004             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12005           fi
12006         fi
12007       fi
12008     done
12009   done
12010   if test "X$rpathdirs" != "X"; then
12011     if test -n "$hardcode_libdir_separator"; then
12012                         alldirs=
12013       for found_dir in $rpathdirs; do
12014         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12015       done
12016             acl_save_libdir="$libdir"
12017       libdir="$alldirs"
12018       eval flag=\"$hardcode_libdir_flag_spec\"
12019       libdir="$acl_save_libdir"
12020       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12021     else
12022             for found_dir in $rpathdirs; do
12023         acl_save_libdir="$libdir"
12024         libdir="$found_dir"
12025         eval flag=\"$hardcode_libdir_flag_spec\"
12026         libdir="$acl_save_libdir"
12027         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12028       done
12029     fi
12030   fi
12031   if test "X$ltrpathdirs" != "X"; then
12032             for found_dir in $ltrpathdirs; do
12033       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12034     done
12035   fi
12036
12037           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12038 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
12039 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   gt_save_CPPFLAGS="$CPPFLAGS"
12043             CPPFLAGS="$CPPFLAGS $INCINTL"
12044             gt_save_LIBS="$LIBS"
12045             LIBS="$LIBS $LIBINTL"
12046                         cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 #include <libintl.h>
12053 extern int _nl_msg_cat_cntr;
12054 extern
12055 #ifdef __cplusplus
12056 "C"
12057 #endif
12058 const char *_nl_expand_alias ();
12059 int
12060 main ()
12061 {
12062 bindtextdomain ("", "");
12063 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (ac_try="$ac_link"
12070 case "(($ac_try" in
12071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072   *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075   (eval "$ac_link") 2>conftest.er1
12076   ac_status=$?
12077   grep -v '^ *+' conftest.er1 >conftest.err
12078   rm -f conftest.er1
12079   cat conftest.err >&5
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); } && {
12082          test -z "$ac_c_werror_flag" ||
12083          test ! -s conftest.err
12084        } && test -s conftest$ac_exeext &&
12085        $as_test_x conftest$ac_exeext; then
12086   gt_cv_func_gnugettext1_libintl=yes
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091         gt_cv_func_gnugettext1_libintl=no
12092 fi
12093
12094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12095       conftest$ac_exeext conftest.$ac_ext
12096                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12097               LIBS="$LIBS $LIBICONV"
12098               cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 #include <libintl.h>
12105 extern int _nl_msg_cat_cntr;
12106 extern
12107 #ifdef __cplusplus
12108 "C"
12109 #endif
12110 const char *_nl_expand_alias ();
12111 int
12112 main ()
12113 {
12114 bindtextdomain ("", "");
12115 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12116   ;
12117   return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127   (eval "$ac_link") 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } && {
12134          test -z "$ac_c_werror_flag" ||
12135          test ! -s conftest.err
12136        } && test -s conftest$ac_exeext &&
12137        $as_test_x conftest$ac_exeext; then
12138   LIBINTL="$LIBINTL $LIBICONV"
12139                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12140                 gt_cv_func_gnugettext1_libintl=yes
12141
12142 else
12143   echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150       conftest$ac_exeext conftest.$ac_ext
12151             fi
12152             CPPFLAGS="$gt_save_CPPFLAGS"
12153             LIBS="$gt_save_LIBS"
12154 fi
12155 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12156 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
12157         fi
12158
12159                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12160            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12161                 && test "$PACKAGE" != gettext-runtime \
12162                 && test "$PACKAGE" != gettext-tools; }; then
12163           gt_use_preinstalled_gnugettext=yes
12164         else
12165                     LIBINTL=
12166           LTLIBINTL=
12167           INCINTL=
12168         fi
12169
12170
12171         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12172                               nls_cv_use_gnu_gettext=yes
12173         fi
12174       fi
12175
12176       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12177                 BUILD_INCLUDED_LIBINTL=yes
12178         USE_INCLUDED_LIBINTL=yes
12179         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12180         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12181         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12182       fi
12183
12184       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12185          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12186                 CATOBJEXT=.gmo
12187       fi
12188
12189
12190     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12191        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12192
12193 cat >>confdefs.h <<\_ACEOF
12194 #define ENABLE_NLS 1
12195 _ACEOF
12196
12197     else
12198       USE_NLS=no
12199     fi
12200   fi
12201
12202   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
12203 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
12204   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12205 echo "${ECHO_T}$USE_NLS" >&6; }
12206   if test "$USE_NLS" = "yes"; then
12207     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12208 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
12209     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12210       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12211         gt_source="external libintl"
12212       else
12213         gt_source="libc"
12214       fi
12215     else
12216       gt_source="included intl directory"
12217     fi
12218     { echo "$as_me:$LINENO: result: $gt_source" >&5
12219 echo "${ECHO_T}$gt_source" >&6; }
12220   fi
12221
12222   if test "$USE_NLS" = "yes"; then
12223
12224     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12225       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12226         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
12227 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
12228         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
12229 echo "${ECHO_T}$LIBINTL" >&6; }
12230
12231   for element in $INCINTL; do
12232     haveit=
12233     for x in $CPPFLAGS; do
12234
12235   acl_save_prefix="$prefix"
12236   prefix="$acl_final_prefix"
12237   acl_save_exec_prefix="$exec_prefix"
12238   exec_prefix="$acl_final_exec_prefix"
12239   eval x=\"$x\"
12240   exec_prefix="$acl_save_exec_prefix"
12241   prefix="$acl_save_prefix"
12242
12243       if test "X$x" = "X$element"; then
12244         haveit=yes
12245         break
12246       fi
12247     done
12248     if test -z "$haveit"; then
12249       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12250     fi
12251   done
12252
12253       fi
12254
12255
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_GETTEXT 1
12258 _ACEOF
12259
12260
12261 cat >>confdefs.h <<\_ACEOF
12262 #define HAVE_DCGETTEXT 1
12263 _ACEOF
12264
12265     fi
12266
12267         POSUB=po
12268   fi
12269
12270
12271             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12272       BUILD_INCLUDED_LIBINTL=yes
12273     fi
12274
12275
12276
12277
12278
12279         nls_cv_header_intl=
12280     nls_cv_header_libgt=
12281
12282         DATADIRNAME=share
12283
12284
12285         INSTOBJEXT=.mo
12286
12287
12288         GENCAT=gencat
12289
12290
12291         if test "$USE_INCLUDED_LIBINTL" = yes; then
12292       INTLOBJS="\$(GETTOBJS)"
12293     fi
12294
12295
12296         INTL_LIBTOOL_SUFFIX_PREFIX=
12297
12298
12299
12300     INTLLIBS="$LIBINTL"
12301
12302
12303
12304
12305
12306
12307
12308         MKINSTALLDIRS=
12309   if test -n "$ac_aux_dir"; then
12310     case "$ac_aux_dir" in
12311       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12312       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12313     esac
12314   fi
12315   if test -z "$MKINSTALLDIRS"; then
12316     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12317   fi
12318
12319
12320
12321 GETTEXT_PACKAGE=scim-hangul
12322
12323
12324 cat >>confdefs.h <<_ACEOF
12325 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
12326 _ACEOF
12327
12328
12329 # Init libtool
12330 # Check whether --enable-static was given.
12331 if test "${enable_static+set}" = set; then
12332   enableval=$enable_static; p=${PACKAGE-default}
12333     case $enableval in
12334     yes) enable_static=yes ;;
12335     no) enable_static=no ;;
12336     *)
12337      enable_static=no
12338       # Look at the argument we got.  We use all the common list separators.
12339       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12340       for pkg in $enableval; do
12341         IFS="$lt_save_ifs"
12342         if test "X$pkg" = "X$p"; then
12343           enable_static=yes
12344         fi
12345       done
12346       IFS="$lt_save_ifs"
12347       ;;
12348     esac
12349 else
12350   enable_static=no
12351 fi
12352
12353
12354
12355
12356
12357 # Check whether --enable-static was given.
12358 if test "${enable_static+set}" = set; then
12359   enableval=$enable_static; p=${PACKAGE-default}
12360     case $enableval in
12361     yes) enable_static=yes ;;
12362     no) enable_static=no ;;
12363     *)
12364      enable_static=no
12365       # Look at the argument we got.  We use all the common list separators.
12366       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367       for pkg in $enableval; do
12368         IFS="$lt_save_ifs"
12369         if test "X$pkg" = "X$p"; then
12370           enable_static=yes
12371         fi
12372       done
12373       IFS="$lt_save_ifs"
12374       ;;
12375     esac
12376 else
12377   enable_static=no
12378 fi
12379
12380
12381
12382 # Check whether --enable-shared was given.
12383 if test "${enable_shared+set}" = set; then
12384   enableval=$enable_shared; p=${PACKAGE-default}
12385     case $enableval in
12386     yes) enable_shared=yes ;;
12387     no) enable_shared=no ;;
12388     *)
12389       enable_shared=no
12390       # Look at the argument we got.  We use all the common list separators.
12391       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12392       for pkg in $enableval; do
12393         IFS="$lt_save_ifs"
12394         if test "X$pkg" = "X$p"; then
12395           enable_shared=yes
12396         fi
12397       done
12398       IFS="$lt_save_ifs"
12399       ;;
12400     esac
12401 else
12402   enable_shared=yes
12403 fi
12404
12405
12406 # Check whether --enable-fast-install was given.
12407 if test "${enable_fast_install+set}" = set; then
12408   enableval=$enable_fast_install; p=${PACKAGE-default}
12409     case $enableval in
12410     yes) enable_fast_install=yes ;;
12411     no) enable_fast_install=no ;;
12412     *)
12413       enable_fast_install=no
12414       # Look at the argument we got.  We use all the common list separators.
12415       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12416       for pkg in $enableval; do
12417         IFS="$lt_save_ifs"
12418         if test "X$pkg" = "X$p"; then
12419           enable_fast_install=yes
12420         fi
12421       done
12422       IFS="$lt_save_ifs"
12423       ;;
12424     esac
12425 else
12426   enable_fast_install=yes
12427 fi
12428
12429
12430 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12431 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12432 if test "${lt_cv_path_SED+set}" = set; then
12433   echo $ECHO_N "(cached) $ECHO_C" >&6
12434 else
12435   # Loop through the user's path and test for sed and gsed.
12436 # Then use that list of sed's as ones to test for truncation.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12439 do
12440   IFS=$as_save_IFS
12441   test -z "$as_dir" && as_dir=.
12442   for lt_ac_prog in sed gsed; do
12443     for ac_exec_ext in '' $ac_executable_extensions; do
12444       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
12445         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12446       fi
12447     done
12448   done
12449 done
12450 IFS=$as_save_IFS
12451 lt_ac_max=0
12452 lt_ac_count=0
12453 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12454 # along with /bin/sed that truncates output.
12455 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12456   test ! -f $lt_ac_sed && continue
12457   cat /dev/null > conftest.in
12458   lt_ac_count=0
12459   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12460   # Check for GNU sed and select it if it is found.
12461   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12462     lt_cv_path_SED=$lt_ac_sed
12463     break
12464   fi
12465   while true; do
12466     cat conftest.in conftest.in >conftest.tmp
12467     mv conftest.tmp conftest.in
12468     cp conftest.in conftest.nl
12469     echo >>conftest.nl
12470     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12471     cmp -s conftest.out conftest.nl || break
12472     # 10000 chars as input seems more than enough
12473     test $lt_ac_count -gt 10 && break
12474     lt_ac_count=`expr $lt_ac_count + 1`
12475     if test $lt_ac_count -gt $lt_ac_max; then
12476       lt_ac_max=$lt_ac_count
12477       lt_cv_path_SED=$lt_ac_sed
12478     fi
12479   done
12480 done
12481
12482 fi
12483
12484 SED=$lt_cv_path_SED
12485
12486 { echo "$as_me:$LINENO: result: $SED" >&5
12487 echo "${ECHO_T}$SED" >&6; }
12488
12489
12490 # Check whether --with-gnu-ld was given.
12491 if test "${with_gnu_ld+set}" = set; then
12492   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12493 else
12494   with_gnu_ld=no
12495 fi
12496
12497 ac_prog=ld
12498 if test "$GCC" = yes; then
12499   # Check if gcc -print-prog-name=ld gives a path.
12500   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12501 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12502   case $host in
12503   *-*-mingw*)
12504     # gcc leaves a trailing carriage return which upsets mingw
12505     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12506   *)
12507     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12508   esac
12509   case $ac_prog in
12510     # Accept absolute paths.
12511     [\\/]* | ?:[\\/]*)
12512       re_direlt='/[^/][^/]*/\.\./'
12513       # Canonicalize the pathname of ld
12514       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12515       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12516         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12517       done
12518       test -z "$LD" && LD="$ac_prog"
12519       ;;
12520   "")
12521     # If it fails, then pretend we aren't using GCC.
12522     ac_prog=ld
12523     ;;
12524   *)
12525     # If it is relative, then search for the first ld in PATH.
12526     with_gnu_ld=unknown
12527     ;;
12528   esac
12529 elif test "$with_gnu_ld" = yes; then
12530   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12531 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12532 else
12533   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12534 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12535 fi
12536 if test "${lt_cv_path_LD+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   if test -z "$LD"; then
12540   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12541   for ac_dir in $PATH; do
12542     IFS="$lt_save_ifs"
12543     test -z "$ac_dir" && ac_dir=.
12544     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12545       lt_cv_path_LD="$ac_dir/$ac_prog"
12546       # Check to see if the program is GNU ld.  I'd rather use --version,
12547       # but apparently some variants of GNU ld only accept -v.
12548       # Break only if it was the GNU/non-GNU ld that we prefer.
12549       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12550       *GNU* | *'with BFD'*)
12551         test "$with_gnu_ld" != no && break
12552         ;;
12553       *)
12554         test "$with_gnu_ld" != yes && break
12555         ;;
12556       esac
12557     fi
12558   done
12559   IFS="$lt_save_ifs"
12560 else
12561   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12562 fi
12563 fi
12564
12565 LD="$lt_cv_path_LD"
12566 if test -n "$LD"; then
12567   { echo "$as_me:$LINENO: result: $LD" >&5
12568 echo "${ECHO_T}$LD" >&6; }
12569 else
12570   { echo "$as_me:$LINENO: result: no" >&5
12571 echo "${ECHO_T}no" >&6; }
12572 fi
12573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12575    { (exit 1); exit 1; }; }
12576 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12578 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12579   echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12582 case `$LD -v 2>&1 </dev/null` in
12583 *GNU* | *'with BFD'*)
12584   lt_cv_prog_gnu_ld=yes
12585   ;;
12586 *)
12587   lt_cv_prog_gnu_ld=no
12588   ;;
12589 esac
12590 fi
12591 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12592 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12593 with_gnu_ld=$lt_cv_prog_gnu_ld
12594
12595
12596 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12597 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12598 if test "${lt_cv_ld_reload_flag+set}" = set; then
12599   echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601   lt_cv_ld_reload_flag='-r'
12602 fi
12603 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12604 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12605 reload_flag=$lt_cv_ld_reload_flag
12606 case $reload_flag in
12607 "" | " "*) ;;
12608 *) reload_flag=" $reload_flag" ;;
12609 esac
12610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12611 case $host_os in
12612   darwin*)
12613     if test "$GCC" = yes; then
12614       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12615     else
12616       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12617     fi
12618     ;;
12619 esac
12620
12621 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12622 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12623 if test "${lt_cv_path_NM+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   if test -n "$NM"; then
12627   # Let the user override the test.
12628   lt_cv_path_NM="$NM"
12629 else
12630   lt_nm_to_check="${ac_tool_prefix}nm"
12631   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12632     lt_nm_to_check="$lt_nm_to_check nm"
12633   fi
12634   for lt_tmp_nm in $lt_nm_to_check; do
12635     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12636     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12637       IFS="$lt_save_ifs"
12638       test -z "$ac_dir" && ac_dir=.
12639       tmp_nm="$ac_dir/$lt_tmp_nm"
12640       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12641         # Check to see if the nm accepts a BSD-compat flag.
12642         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12643         #   nm: unknown option "B" ignored
12644         # Tru64's nm complains that /dev/null is an invalid object file
12645         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12646         */dev/null* | *'Invalid file or object type'*)
12647           lt_cv_path_NM="$tmp_nm -B"
12648           break
12649           ;;
12650         *)
12651           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12652           */dev/null*)
12653             lt_cv_path_NM="$tmp_nm -p"
12654             break
12655             ;;
12656           *)
12657             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12658             continue # so that we can try to find one that supports BSD flags
12659             ;;
12660           esac
12661           ;;
12662         esac
12663       fi
12664     done
12665     IFS="$lt_save_ifs"
12666   done
12667   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12668 fi
12669 fi
12670 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12671 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12672 NM="$lt_cv_path_NM"
12673
12674 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
12675 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
12676 LN_S=$as_ln_s
12677 if test "$LN_S" = "ln -s"; then
12678   { echo "$as_me:$LINENO: result: yes" >&5
12679 echo "${ECHO_T}yes" >&6; }
12680 else
12681   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12682 echo "${ECHO_T}no, using $LN_S" >&6; }
12683 fi
12684
12685 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12686 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
12687 if test "${lt_cv_deplibs_check_method+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   lt_cv_file_magic_cmd='$MAGIC_CMD'
12691 lt_cv_file_magic_test_file=
12692 lt_cv_deplibs_check_method='unknown'
12693 # Need to set the preceding variable on all platforms that support
12694 # interlibrary dependencies.
12695 # 'none' -- dependencies not supported.
12696 # `unknown' -- same as none, but documents that we really don't know.
12697 # 'pass_all' -- all dependencies passed with no checks.
12698 # 'test_compile' -- check by making test program.
12699 # 'file_magic [[regex]]' -- check by looking for files in library path
12700 # which responds to the $file_magic_cmd with a given extended regex.
12701 # If you have `file' or equivalent on your system and you're not sure
12702 # whether `pass_all' will *always* work, you probably want this one.
12703
12704 case $host_os in
12705 aix4* | aix5*)
12706   lt_cv_deplibs_check_method=pass_all
12707   ;;
12708
12709 beos*)
12710   lt_cv_deplibs_check_method=pass_all
12711   ;;
12712
12713 bsdi[45]*)
12714   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12715   lt_cv_file_magic_cmd='/usr/bin/file -L'
12716   lt_cv_file_magic_test_file=/shlib/libc.so
12717   ;;
12718
12719 cygwin*)
12720   # func_win32_libid is a shell function defined in ltmain.sh
12721   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12722   lt_cv_file_magic_cmd='func_win32_libid'
12723   ;;
12724
12725 mingw* | pw32*)
12726   # Base MSYS/MinGW do not provide the 'file' command needed by
12727   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12728   # unless we find 'file', for example because we are cross-compiling.
12729   if ( file / ) >/dev/null 2>&1; then
12730     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12731     lt_cv_file_magic_cmd='func_win32_libid'
12732   else
12733     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12734     lt_cv_file_magic_cmd='$OBJDUMP -f'
12735   fi
12736   ;;
12737
12738 darwin* | rhapsody*)
12739   lt_cv_deplibs_check_method=pass_all
12740   ;;
12741
12742 freebsd* | dragonfly*)
12743   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12744     case $host_cpu in
12745     i*86 )
12746       # Not sure whether the presence of OpenBSD here was a mistake.
12747       # Let's accept both of them until this is cleared up.
12748       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12749       lt_cv_file_magic_cmd=/usr/bin/file
12750       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12751       ;;
12752     esac
12753   else
12754     lt_cv_deplibs_check_method=pass_all
12755   fi
12756   ;;
12757
12758 gnu*)
12759   lt_cv_deplibs_check_method=pass_all
12760   ;;
12761
12762 hpux10.20* | hpux11*)
12763   lt_cv_file_magic_cmd=/usr/bin/file
12764   case $host_cpu in
12765   ia64*)
12766     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12767     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12768     ;;
12769   hppa*64*)
12770     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]'
12771     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12772     ;;
12773   *)
12774     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12775     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12776     ;;
12777   esac
12778   ;;
12779
12780 interix[3-9]*)
12781   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12782   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12783   ;;
12784
12785 irix5* | irix6* | nonstopux*)
12786   case $LD in
12787   *-32|*"-32 ") libmagic=32-bit;;
12788   *-n32|*"-n32 ") libmagic=N32;;
12789   *-64|*"-64 ") libmagic=64-bit;;
12790   *) libmagic=never-match;;
12791   esac
12792   lt_cv_deplibs_check_method=pass_all
12793   ;;
12794
12795 # This must be Linux ELF.
12796 linux* | k*bsd*-gnu)
12797   lt_cv_deplibs_check_method=pass_all
12798   ;;
12799
12800 netbsd* | netbsdelf*-gnu)
12801   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12802     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12803   else
12804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12805   fi
12806   ;;
12807
12808 newos6*)
12809   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12810   lt_cv_file_magic_cmd=/usr/bin/file
12811   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12812   ;;
12813
12814 nto-qnx*)
12815   lt_cv_deplibs_check_method=unknown
12816   ;;
12817
12818 openbsd*)
12819   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12820     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12821   else
12822     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12823   fi
12824   ;;
12825
12826 osf3* | osf4* | osf5*)
12827   lt_cv_deplibs_check_method=pass_all
12828   ;;
12829
12830 rdos*)
12831   lt_cv_deplibs_check_method=pass_all
12832   ;;
12833
12834 solaris*)
12835   lt_cv_deplibs_check_method=pass_all
12836   ;;
12837
12838 sysv4 | sysv4.3*)
12839   case $host_vendor in
12840   motorola)
12841     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]'
12842     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12843     ;;
12844   ncr)
12845     lt_cv_deplibs_check_method=pass_all
12846     ;;
12847   sequent)
12848     lt_cv_file_magic_cmd='/bin/file'
12849     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12850     ;;
12851   sni)
12852     lt_cv_file_magic_cmd='/bin/file'
12853     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12854     lt_cv_file_magic_test_file=/lib/libc.so
12855     ;;
12856   siemens)
12857     lt_cv_deplibs_check_method=pass_all
12858     ;;
12859   pc)
12860     lt_cv_deplibs_check_method=pass_all
12861     ;;
12862   esac
12863   ;;
12864
12865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12866   lt_cv_deplibs_check_method=pass_all
12867   ;;
12868 esac
12869
12870 fi
12871 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12872 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12873 file_magic_cmd=$lt_cv_file_magic_cmd
12874 deplibs_check_method=$lt_cv_deplibs_check_method
12875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12876
12877
12878
12879
12880 # If no C compiler was specified, use CC.
12881 LTCC=${LTCC-"$CC"}
12882
12883 # If no C compiler flags were specified, use CFLAGS.
12884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12885
12886 # Allow CC to be a program name with arguments.
12887 compiler=$CC
12888
12889 # Check whether --enable-libtool-lock was given.
12890 if test "${enable_libtool_lock+set}" = set; then
12891   enableval=$enable_libtool_lock;
12892 fi
12893
12894 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12895
12896 # Some flags need to be propagated to the compiler or linker for good
12897 # libtool support.
12898 case $host in
12899 ia64-*-hpux*)
12900   # Find out which ABI we are using.
12901   echo 'int i;' > conftest.$ac_ext
12902   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903   (eval $ac_compile) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; then
12907     case `/usr/bin/file conftest.$ac_objext` in
12908     *ELF-32*)
12909       HPUX_IA64_MODE="32"
12910       ;;
12911     *ELF-64*)
12912       HPUX_IA64_MODE="64"
12913       ;;
12914     esac
12915   fi
12916   rm -rf conftest*
12917   ;;
12918 *-*-irix6*)
12919   # Find out which ABI we are using.
12920   echo '#line 12920 "configure"' > conftest.$ac_ext
12921   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922   (eval $ac_compile) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; then
12926    if test "$lt_cv_prog_gnu_ld" = yes; then
12927     case `/usr/bin/file conftest.$ac_objext` in
12928     *32-bit*)
12929       LD="${LD-ld} -melf32bsmip"
12930       ;;
12931     *N32*)
12932       LD="${LD-ld} -melf32bmipn32"
12933       ;;
12934     *64-bit*)
12935       LD="${LD-ld} -melf64bmip"
12936       ;;
12937     esac
12938    else
12939     case `/usr/bin/file conftest.$ac_objext` in
12940     *32-bit*)
12941       LD="${LD-ld} -32"
12942       ;;
12943     *N32*)
12944       LD="${LD-ld} -n32"
12945       ;;
12946     *64-bit*)
12947       LD="${LD-ld} -64"
12948       ;;
12949     esac
12950    fi
12951   fi
12952   rm -rf conftest*
12953   ;;
12954
12955 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12956 s390*-*linux*|sparc*-*linux*)
12957   # Find out which ABI we are using.
12958   echo 'int i;' > conftest.$ac_ext
12959   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960   (eval $ac_compile) 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; then
12964     case `/usr/bin/file conftest.o` in
12965     *32-bit*)
12966       case $host in
12967         x86_64-*kfreebsd*-gnu)
12968           LD="${LD-ld} -m elf_i386_fbsd"
12969           ;;
12970         x86_64-*linux*)
12971           LD="${LD-ld} -m elf_i386"
12972           ;;
12973         ppc64-*linux*|powerpc64-*linux*)
12974           LD="${LD-ld} -m elf32ppclinux"
12975           ;;
12976         s390x-*linux*)
12977           LD="${LD-ld} -m elf_s390"
12978           ;;
12979         sparc64-*linux*)
12980           LD="${LD-ld} -m elf32_sparc"
12981           ;;
12982       esac
12983       ;;
12984     *64-bit*)
12985       case $host in
12986         x86_64-*kfreebsd*-gnu)
12987           LD="${LD-ld} -m elf_x86_64_fbsd"
12988           ;;
12989         x86_64-*linux*)
12990           LD="${LD-ld} -m elf_x86_64"
12991           ;;
12992         ppc*-*linux*|powerpc*-*linux*)
12993           LD="${LD-ld} -m elf64ppc"
12994           ;;
12995         s390*-*linux*)
12996           LD="${LD-ld} -m elf64_s390"
12997           ;;
12998         sparc*-*linux*)
12999           LD="${LD-ld} -m elf64_sparc"
13000           ;;
13001       esac
13002       ;;
13003     esac
13004   fi
13005   rm -rf conftest*
13006   ;;
13007
13008 *-*-sco3.2v5*)
13009   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13010   SAVE_CFLAGS="$CFLAGS"
13011   CFLAGS="$CFLAGS -belf"
13012   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13013 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13014 if test "${lt_cv_cc_needs_belf+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   ac_ext=c
13018 ac_cpp='$CPP $CPPFLAGS'
13019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13022
13023      cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h.  */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h.  */
13029
13030 int
13031 main ()
13032 {
13033
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 rm -f conftest.$ac_objext conftest$ac_exeext
13039 if { (ac_try="$ac_link"
13040 case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045   (eval "$ac_link") 2>conftest.er1
13046   ac_status=$?
13047   grep -v '^ *+' conftest.er1 >conftest.err
13048   rm -f conftest.er1
13049   cat conftest.err >&5
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); } && {
13052          test -z "$ac_c_werror_flag" ||
13053          test ! -s conftest.err
13054        } && test -s conftest$ac_exeext &&
13055        $as_test_x conftest$ac_exeext; then
13056   lt_cv_cc_needs_belf=yes
13057 else
13058   echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061         lt_cv_cc_needs_belf=no
13062 fi
13063
13064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13065       conftest$ac_exeext conftest.$ac_ext
13066      ac_ext=c
13067 ac_cpp='$CPP $CPPFLAGS'
13068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13071
13072 fi
13073 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13074 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13075   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13076     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13077     CFLAGS="$SAVE_CFLAGS"
13078   fi
13079   ;;
13080 sparc*-*solaris*)
13081   # Find out which ABI we are using.
13082   echo 'int i;' > conftest.$ac_ext
13083   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084   (eval $ac_compile) 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; then
13088     case `/usr/bin/file conftest.o` in
13089     *64-bit*)
13090       case $lt_cv_prog_gnu_ld in
13091       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13092       *)    LD="${LD-ld} -64" ;;
13093       esac
13094       ;;
13095     esac
13096   fi
13097   rm -rf conftest*
13098   ;;
13099
13100
13101 esac
13102
13103 need_locks="$enable_libtool_lock"
13104
13105
13106
13107 for ac_header in dlfcn.h
13108 do
13109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13114   echo $ECHO_N "(cached) $ECHO_C" >&6
13115 fi
13116 ac_res=`eval echo '${'$as_ac_Header'}'`
13117                { echo "$as_me:$LINENO: result: $ac_res" >&5
13118 echo "${ECHO_T}$ac_res" >&6; }
13119 else
13120   # Is the header compilable?
13121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h.  */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h.  */
13129 $ac_includes_default
13130 #include <$ac_header>
13131 _ACEOF
13132 rm -f conftest.$ac_objext
13133 if { (ac_try="$ac_compile"
13134 case "(($ac_try" in
13135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136   *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139   (eval "$ac_compile") 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } && {
13146          test -z "$ac_c_werror_flag" ||
13147          test ! -s conftest.err
13148        } && test -s conftest.$ac_objext; then
13149   ac_header_compiler=yes
13150 else
13151   echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154         ac_header_compiler=no
13155 fi
13156
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159 echo "${ECHO_T}$ac_header_compiler" >&6; }
13160
13161 # Is the header present?
13162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170 #include <$ac_header>
13171 _ACEOF
13172 if { (ac_try="$ac_cpp conftest.$ac_ext"
13173 case "(($ac_try" in
13174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175   *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13179   ac_status=$?
13180   grep -v '^ *+' conftest.er1 >conftest.err
13181   rm -f conftest.er1
13182   cat conftest.err >&5
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } >/dev/null && {
13185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13186          test ! -s conftest.err
13187        }; then
13188   ac_header_preproc=yes
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193   ac_header_preproc=no
13194 fi
13195
13196 rm -f conftest.err conftest.$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13198 echo "${ECHO_T}$ac_header_preproc" >&6; }
13199
13200 # So?  What about this header?
13201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13202   yes:no: )
13203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13207     ac_header_preproc=yes
13208     ;;
13209   no:yes:* )
13210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13222     ( cat <<\_ASBOX
13223 ## -------------------------------------- ##
13224 ## Report this to choe.hwanjing@gmail.com ##
13225 ## -------------------------------------- ##
13226 _ASBOX
13227      ) | sed "s/^/$as_me: WARNING:     /" >&2
13228     ;;
13229 esac
13230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   eval "$as_ac_Header=\$ac_header_preproc"
13236 fi
13237 ac_res=`eval echo '${'$as_ac_Header'}'`
13238                { echo "$as_me:$LINENO: result: $ac_res" >&5
13239 echo "${ECHO_T}$ac_res" >&6; }
13240
13241 fi
13242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13243   cat >>confdefs.h <<_ACEOF
13244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13245 _ACEOF
13246
13247 fi
13248
13249 done
13250
13251 ac_ext=cpp
13252 ac_cpp='$CXXCPP $CPPFLAGS'
13253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13256 if test -z "$CXX"; then
13257   if test -n "$CCC"; then
13258     CXX=$CCC
13259   else
13260     if test -n "$ac_tool_prefix"; then
13261   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13262   do
13263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13267 if test "${ac_cv_prog_CXX+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   if test -n "$CXX"; then
13271   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276   IFS=$as_save_IFS
13277   test -z "$as_dir" && as_dir=.
13278   for ac_exec_ext in '' $ac_executable_extensions; do
13279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13282     break 2
13283   fi
13284 done
13285 done
13286 IFS=$as_save_IFS
13287
13288 fi
13289 fi
13290 CXX=$ac_cv_prog_CXX
13291 if test -n "$CXX"; then
13292   { echo "$as_me:$LINENO: result: $CXX" >&5
13293 echo "${ECHO_T}$CXX" >&6; }
13294 else
13295   { echo "$as_me:$LINENO: result: no" >&5
13296 echo "${ECHO_T}no" >&6; }
13297 fi
13298
13299
13300     test -n "$CXX" && break
13301   done
13302 fi
13303 if test -z "$CXX"; then
13304   ac_ct_CXX=$CXX
13305   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13306 do
13307   # Extract the first word of "$ac_prog", so it can be a program name with args.
13308 set dummy $ac_prog; ac_word=$2
13309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13312   echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314   if test -n "$ac_ct_CXX"; then
13315   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13316 else
13317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13319 do
13320   IFS=$as_save_IFS
13321   test -z "$as_dir" && as_dir=.
13322   for ac_exec_ext in '' $ac_executable_extensions; do
13323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13324     ac_cv_prog_ac_ct_CXX="$ac_prog"
13325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13326     break 2
13327   fi
13328 done
13329 done
13330 IFS=$as_save_IFS
13331
13332 fi
13333 fi
13334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13335 if test -n "$ac_ct_CXX"; then
13336   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13337 echo "${ECHO_T}$ac_ct_CXX" >&6; }
13338 else
13339   { echo "$as_me:$LINENO: result: no" >&5
13340 echo "${ECHO_T}no" >&6; }
13341 fi
13342
13343
13344   test -n "$ac_ct_CXX" && break
13345 done
13346
13347   if test "x$ac_ct_CXX" = x; then
13348     CXX="g++"
13349   else
13350     case $cross_compiling:$ac_tool_warned in
13351 yes:)
13352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13353 whose name does not start with the host triplet.  If you think this
13354 configuration is useful to you, please write to autoconf@gnu.org." >&5
13355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13356 whose name does not start with the host triplet.  If you think this
13357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13358 ac_tool_warned=yes ;;
13359 esac
13360     CXX=$ac_ct_CXX
13361   fi
13362 fi
13363
13364   fi
13365 fi
13366 # Provide some information about the compiler.
13367 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13368 ac_compiler=`set X $ac_compile; echo $2`
13369 { (ac_try="$ac_compiler --version >&5"
13370 case "(($ac_try" in
13371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372   *) ac_try_echo=$ac_try;;
13373 esac
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375   (eval "$ac_compiler --version >&5") 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }
13379 { (ac_try="$ac_compiler -v >&5"
13380 case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_compiler -v >&5") 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }
13389 { (ac_try="$ac_compiler -V >&5"
13390 case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_compiler -V >&5") 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }
13399
13400 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13401 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
13402 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411
13412 int
13413 main ()
13414 {
13415 #ifndef __GNUC__
13416        choke me
13417 #endif
13418
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (ac_try="$ac_compile"
13425 case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_compile") 2>conftest.er1
13431   ac_status=$?
13432   grep -v '^ *+' conftest.er1 >conftest.err
13433   rm -f conftest.er1
13434   cat conftest.err >&5
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } && {
13437          test -z "$ac_cxx_werror_flag" ||
13438          test ! -s conftest.err
13439        } && test -s conftest.$ac_objext; then
13440   ac_compiler_gnu=yes
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445         ac_compiler_gnu=no
13446 fi
13447
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13450
13451 fi
13452 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13453 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
13454 GXX=`test $ac_compiler_gnu = yes && echo yes`
13455 ac_test_CXXFLAGS=${CXXFLAGS+set}
13456 ac_save_CXXFLAGS=$CXXFLAGS
13457 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13458 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
13459 if test "${ac_cv_prog_cxx_g+set}" = set; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13463    ac_cxx_werror_flag=yes
13464    ac_cv_prog_cxx_g=no
13465    CXXFLAGS="-g"
13466    cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h.  */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h.  */
13472
13473 int
13474 main ()
13475 {
13476
13477   ;
13478   return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_compile") 2>conftest.er1
13489   ac_status=$?
13490   grep -v '^ *+' conftest.er1 >conftest.err
13491   rm -f conftest.er1
13492   cat conftest.err >&5
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } && {
13495          test -z "$ac_cxx_werror_flag" ||
13496          test ! -s conftest.err
13497        } && test -s conftest.$ac_objext; then
13498   ac_cv_prog_cxx_g=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503         CXXFLAGS=""
13504       cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h.  */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h.  */
13510
13511 int
13512 main ()
13513 {
13514
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (ac_try="$ac_compile"
13521 case "(($ac_try" in
13522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523   *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526   (eval "$ac_compile") 2>conftest.er1
13527   ac_status=$?
13528   grep -v '^ *+' conftest.er1 >conftest.err
13529   rm -f conftest.er1
13530   cat conftest.err >&5
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } && {
13533          test -z "$ac_cxx_werror_flag" ||
13534          test ! -s conftest.err
13535        } && test -s conftest.$ac_objext; then
13536   :
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13542          CXXFLAGS="-g"
13543          cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549
13550 int
13551 main ()
13552 {
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_compile") 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } && {
13572          test -z "$ac_cxx_werror_flag" ||
13573          test ! -s conftest.err
13574        } && test -s conftest.$ac_objext; then
13575   ac_cv_prog_cxx_g=yes
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580
13581 fi
13582
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 fi
13585
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 fi
13588
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13591 fi
13592 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13593 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
13594 if test "$ac_test_CXXFLAGS" = set; then
13595   CXXFLAGS=$ac_save_CXXFLAGS
13596 elif test $ac_cv_prog_cxx_g = yes; then
13597   if test "$GXX" = yes; then
13598     CXXFLAGS="-g -O2"
13599   else
13600     CXXFLAGS="-g"
13601   fi
13602 else
13603   if test "$GXX" = yes; then
13604     CXXFLAGS="-O2"
13605   else
13606     CXXFLAGS=
13607   fi
13608 fi
13609 ac_ext=cpp
13610 ac_cpp='$CXXCPP $CPPFLAGS'
13611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13614
13615 depcc="$CXX"  am_compiler_list=
13616
13617 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13618 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13619 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13620   echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13623   # We make a subdir and do the tests there.  Otherwise we can end up
13624   # making bogus files that we don't know about and never remove.  For
13625   # instance it was reported that on HP-UX the gcc test will end up
13626   # making a dummy file named `D' -- because `-MD' means `put the output
13627   # in D'.
13628   mkdir conftest.dir
13629   # Copy depcomp to subdir because otherwise we won't find it if we're
13630   # using a relative directory.
13631   cp "$am_depcomp" conftest.dir
13632   cd conftest.dir
13633   # We will build objects and dependencies in a subdirectory because
13634   # it helps to detect inapplicable dependency modes.  For instance
13635   # both Tru64's cc and ICC support -MD to output dependencies as a
13636   # side effect of compilation, but ICC will put the dependencies in
13637   # the current directory while Tru64 will put them in the object
13638   # directory.
13639   mkdir sub
13640
13641   am_cv_CXX_dependencies_compiler_type=none
13642   if test "$am_compiler_list" = ""; then
13643      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13644   fi
13645   for depmode in $am_compiler_list; do
13646     # Setup a source with many dependencies, because some compilers
13647     # like to wrap large dependency lists on column 80 (with \), and
13648     # we should not choose a depcomp mode which is confused by this.
13649     #
13650     # We need to recreate these files for each test, as the compiler may
13651     # overwrite some of them when testing with obscure command lines.
13652     # This happens at least with the AIX C compiler.
13653     : > sub/conftest.c
13654     for i in 1 2 3 4 5 6; do
13655       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13656       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13657       # Solaris 8's {/usr,}/bin/sh.
13658       touch sub/conftst$i.h
13659     done
13660     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13661
13662     case $depmode in
13663     nosideeffect)
13664       # after this tag, mechanisms are not by side-effect, so they'll
13665       # only be used when explicitly requested
13666       if test "x$enable_dependency_tracking" = xyes; then
13667         continue
13668       else
13669         break
13670       fi
13671       ;;
13672     none) break ;;
13673     esac
13674     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13675     # mode.  It turns out that the SunPro C++ compiler does not properly
13676     # handle `-M -o', and we need to detect this.
13677     if depmode=$depmode \
13678        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13679        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13680        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13681          >/dev/null 2>conftest.err &&
13682        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13683        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13684        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13685       # icc doesn't choke on unknown options, it will just issue warnings
13686       # or remarks (even with -Werror).  So we grep stderr for any message
13687       # that says an option was ignored or not supported.
13688       # When given -MP, icc 7.0 and 7.1 complain thusly:
13689       #   icc: Command line warning: ignoring option '-M'; no argument required
13690       # The diagnosis changed in icc 8.0:
13691       #   icc: Command line remark: option '-MP' not supported
13692       if (grep 'ignoring option' conftest.err ||
13693           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13694         am_cv_CXX_dependencies_compiler_type=$depmode
13695         break
13696       fi
13697     fi
13698   done
13699
13700   cd ..
13701   rm -rf conftest.dir
13702 else
13703   am_cv_CXX_dependencies_compiler_type=none
13704 fi
13705
13706 fi
13707 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13708 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
13709 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13710
13711
13712
13713 if
13714   test "x$enable_dependency_tracking" != xno \
13715   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13716   am__fastdepCXX_TRUE=
13717   am__fastdepCXX_FALSE='#'
13718 else
13719   am__fastdepCXX_TRUE='#'
13720   am__fastdepCXX_FALSE=
13721 fi
13722
13723
13724
13725
13726 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13727     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13728     (test "X$CXX" != "Xg++"))) ; then
13729   ac_ext=cpp
13730 ac_cpp='$CXXCPP $CPPFLAGS'
13731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13734 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13735 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13736 if test -z "$CXXCPP"; then
13737   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13738   echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740       # Double quotes because CXXCPP needs to be expanded
13741     for CXXCPP in "$CXX -E" "/lib/cpp"
13742     do
13743       ac_preproc_ok=false
13744 for ac_cxx_preproc_warn_flag in '' yes
13745 do
13746   # Use a header file that comes with gcc, so configuring glibc
13747   # with a fresh cross-compiler works.
13748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13749   # <limits.h> exists even on freestanding compilers.
13750   # On the NeXT, cc -E runs the code through the compiler's parser,
13751   # not just through cpp. "Syntax error" is here to catch this case.
13752   cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h.  */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h.  */
13758 #ifdef __STDC__
13759 # include <limits.h>
13760 #else
13761 # include <assert.h>
13762 #endif
13763                      Syntax error
13764 _ACEOF
13765 if { (ac_try="$ac_cpp conftest.$ac_ext"
13766 case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13772   ac_status=$?
13773   grep -v '^ *+' conftest.er1 >conftest.err
13774   rm -f conftest.er1
13775   cat conftest.err >&5
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); } >/dev/null && {
13778          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13779          test ! -s conftest.err
13780        }; then
13781   :
13782 else
13783   echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786   # Broken: fails on valid input.
13787 continue
13788 fi
13789
13790 rm -f conftest.err conftest.$ac_ext
13791
13792   # OK, works on sane cases.  Now check whether nonexistent headers
13793   # can be detected and how.
13794   cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h.  */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h.  */
13800 #include <ac_nonexistent.h>
13801 _ACEOF
13802 if { (ac_try="$ac_cpp conftest.$ac_ext"
13803 case "(($ac_try" in
13804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805   *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13809   ac_status=$?
13810   grep -v '^ *+' conftest.er1 >conftest.err
13811   rm -f conftest.er1
13812   cat conftest.err >&5
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } >/dev/null && {
13815          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13816          test ! -s conftest.err
13817        }; then
13818   # Broken: success on invalid input.
13819 continue
13820 else
13821   echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824   # Passes both tests.
13825 ac_preproc_ok=:
13826 break
13827 fi
13828
13829 rm -f conftest.err conftest.$ac_ext
13830
13831 done
13832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13833 rm -f conftest.err conftest.$ac_ext
13834 if $ac_preproc_ok; then
13835   break
13836 fi
13837
13838     done
13839     ac_cv_prog_CXXCPP=$CXXCPP
13840
13841 fi
13842   CXXCPP=$ac_cv_prog_CXXCPP
13843 else
13844   ac_cv_prog_CXXCPP=$CXXCPP
13845 fi
13846 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13847 echo "${ECHO_T}$CXXCPP" >&6; }
13848 ac_preproc_ok=false
13849 for ac_cxx_preproc_warn_flag in '' yes
13850 do
13851   # Use a header file that comes with gcc, so configuring glibc
13852   # with a fresh cross-compiler works.
13853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854   # <limits.h> exists even on freestanding compilers.
13855   # On the NeXT, cc -E runs the code through the compiler's parser,
13856   # not just through cpp. "Syntax error" is here to catch this case.
13857   cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h.  */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h.  */
13863 #ifdef __STDC__
13864 # include <limits.h>
13865 #else
13866 # include <assert.h>
13867 #endif
13868                      Syntax error
13869 _ACEOF
13870 if { (ac_try="$ac_cpp conftest.$ac_ext"
13871 case "(($ac_try" in
13872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873   *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13877   ac_status=$?
13878   grep -v '^ *+' conftest.er1 >conftest.err
13879   rm -f conftest.er1
13880   cat conftest.err >&5
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } >/dev/null && {
13883          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13884          test ! -s conftest.err
13885        }; then
13886   :
13887 else
13888   echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891   # Broken: fails on valid input.
13892 continue
13893 fi
13894
13895 rm -f conftest.err conftest.$ac_ext
13896
13897   # OK, works on sane cases.  Now check whether nonexistent headers
13898   # can be detected and how.
13899   cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905 #include <ac_nonexistent.h>
13906 _ACEOF
13907 if { (ac_try="$ac_cpp conftest.$ac_ext"
13908 case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13914   ac_status=$?
13915   grep -v '^ *+' conftest.er1 >conftest.err
13916   rm -f conftest.er1
13917   cat conftest.err >&5
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } >/dev/null && {
13920          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13921          test ! -s conftest.err
13922        }; then
13923   # Broken: success on invalid input.
13924 continue
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929   # Passes both tests.
13930 ac_preproc_ok=:
13931 break
13932 fi
13933
13934 rm -f conftest.err conftest.$ac_ext
13935
13936 done
13937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13938 rm -f conftest.err conftest.$ac_ext
13939 if $ac_preproc_ok; then
13940   :
13941 else
13942   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13943 See \`config.log' for more details." >&5
13944 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13945 See \`config.log' for more details." >&2;}
13946    { (exit 1); exit 1; }; }
13947 fi
13948
13949 ac_ext=cpp
13950 ac_cpp='$CXXCPP $CPPFLAGS'
13951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13954
13955 fi
13956
13957
13958 ac_ext=f
13959 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13960 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13962 if test -n "$ac_tool_prefix"; then
13963   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
13964   do
13965     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13969 if test "${ac_cv_prog_F77+set}" = set; then
13970   echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972   if test -n "$F77"; then
13973   ac_cv_prog_F77="$F77" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978   IFS=$as_save_IFS
13979   test -z "$as_dir" && as_dir=.
13980   for ac_exec_ext in '' $ac_executable_extensions; do
13981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13982     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13984     break 2
13985   fi
13986 done
13987 done
13988 IFS=$as_save_IFS
13989
13990 fi
13991 fi
13992 F77=$ac_cv_prog_F77
13993 if test -n "$F77"; then
13994   { echo "$as_me:$LINENO: result: $F77" >&5
13995 echo "${ECHO_T}$F77" >&6; }
13996 else
13997   { echo "$as_me:$LINENO: result: no" >&5
13998 echo "${ECHO_T}no" >&6; }
13999 fi
14000
14001
14002     test -n "$F77" && break
14003   done
14004 fi
14005 if test -z "$F77"; then
14006   ac_ct_F77=$F77
14007   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
14008 do
14009   # Extract the first word of "$ac_prog", so it can be a program name with args.
14010 set dummy $ac_prog; ac_word=$2
14011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14013 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016   if test -n "$ac_ct_F77"; then
14017   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14018 else
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14021 do
14022   IFS=$as_save_IFS
14023   test -z "$as_dir" && as_dir=.
14024   for ac_exec_ext in '' $ac_executable_extensions; do
14025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026     ac_cv_prog_ac_ct_F77="$ac_prog"
14027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14028     break 2
14029   fi
14030 done
14031 done
14032 IFS=$as_save_IFS
14033
14034 fi
14035 fi
14036 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14037 if test -n "$ac_ct_F77"; then
14038   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14039 echo "${ECHO_T}$ac_ct_F77" >&6; }
14040 else
14041   { echo "$as_me:$LINENO: result: no" >&5
14042 echo "${ECHO_T}no" >&6; }
14043 fi
14044
14045
14046   test -n "$ac_ct_F77" && break
14047 done
14048
14049   if test "x$ac_ct_F77" = x; then
14050     F77=""
14051   else
14052     case $cross_compiling:$ac_tool_warned in
14053 yes:)
14054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14055 whose name does not start with the host triplet.  If you think this
14056 configuration is useful to you, please write to autoconf@gnu.org." >&5
14057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14058 whose name does not start with the host triplet.  If you think this
14059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14060 ac_tool_warned=yes ;;
14061 esac
14062     F77=$ac_ct_F77
14063   fi
14064 fi
14065
14066
14067 # Provide some information about the compiler.
14068 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
14069 ac_compiler=`set X $ac_compile; echo $2`
14070 { (ac_try="$ac_compiler --version >&5"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_compiler --version >&5") 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }
14080 { (ac_try="$ac_compiler -v >&5"
14081 case "(($ac_try" in
14082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083   *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086   (eval "$ac_compiler -v >&5") 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }
14090 { (ac_try="$ac_compiler -V >&5"
14091 case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096   (eval "$ac_compiler -V >&5") 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }
14100 rm -f a.out
14101
14102 # If we don't use `.F' as extension, the preprocessor is not run on the
14103 # input file.  (Note that this only needs to work for GNU compilers.)
14104 ac_save_ext=$ac_ext
14105 ac_ext=F
14106 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14107 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
14108 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   cat >conftest.$ac_ext <<_ACEOF
14112       program main
14113 #ifndef __GNUC__
14114        choke me
14115 #endif
14116
14117       end
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (ac_try="$ac_compile"
14121 case "(($ac_try" in
14122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123   *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126   (eval "$ac_compile") 2>conftest.er1
14127   ac_status=$?
14128   grep -v '^ *+' conftest.er1 >conftest.err
14129   rm -f conftest.er1
14130   cat conftest.err >&5
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); } && {
14133          test -z "$ac_f77_werror_flag" ||
14134          test ! -s conftest.err
14135        } && test -s conftest.$ac_objext; then
14136   ac_compiler_gnu=yes
14137 else
14138   echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14140
14141         ac_compiler_gnu=no
14142 fi
14143
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14146
14147 fi
14148 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14149 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
14150 ac_ext=$ac_save_ext
14151 ac_test_FFLAGS=${FFLAGS+set}
14152 ac_save_FFLAGS=$FFLAGS
14153 FFLAGS=
14154 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14155 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
14156 if test "${ac_cv_prog_f77_g+set}" = set; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   FFLAGS=-g
14160 cat >conftest.$ac_ext <<_ACEOF
14161       program main
14162
14163       end
14164 _ACEOF
14165 rm -f conftest.$ac_objext
14166 if { (ac_try="$ac_compile"
14167 case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172   (eval "$ac_compile") 2>conftest.er1
14173   ac_status=$?
14174   grep -v '^ *+' conftest.er1 >conftest.err
14175   rm -f conftest.er1
14176   cat conftest.err >&5
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } && {
14179          test -z "$ac_f77_werror_flag" ||
14180          test ! -s conftest.err
14181        } && test -s conftest.$ac_objext; then
14182   ac_cv_prog_f77_g=yes
14183 else
14184   echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187         ac_cv_prog_f77_g=no
14188 fi
14189
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191
14192 fi
14193 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14194 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
14195 if test "$ac_test_FFLAGS" = set; then
14196   FFLAGS=$ac_save_FFLAGS
14197 elif test $ac_cv_prog_f77_g = yes; then
14198   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14199     FFLAGS="-g -O2"
14200   else
14201     FFLAGS="-g"
14202   fi
14203 else
14204   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14205     FFLAGS="-O2"
14206   else
14207     FFLAGS=
14208   fi
14209 fi
14210
14211 G77=`test $ac_compiler_gnu = yes && echo yes`
14212 ac_ext=c
14213 ac_cpp='$CPP $CPPFLAGS'
14214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14217
14218
14219
14220 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14221
14222 # find the maximum length of command line arguments
14223 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14224 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14225 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14226   echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228     i=0
14229   teststring="ABCD"
14230
14231   case $build_os in
14232   msdosdjgpp*)
14233     # On DJGPP, this test can blow up pretty badly due to problems in libc
14234     # (any single argument exceeding 2000 bytes causes a buffer overrun
14235     # during glob expansion).  Even if it were fixed, the result of this
14236     # check would be larger than it should be.
14237     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14238     ;;
14239
14240   gnu*)
14241     # Under GNU Hurd, this test is not required because there is
14242     # no limit to the length of command line arguments.
14243     # Libtool will interpret -1 as no limit whatsoever
14244     lt_cv_sys_max_cmd_len=-1;
14245     ;;
14246
14247   cygwin* | mingw*)
14248     # On Win9x/ME, this test blows up -- it succeeds, but takes
14249     # about 5 minutes as the teststring grows exponentially.
14250     # Worse, since 9x/ME are not pre-emptively multitasking,
14251     # you end up with a "frozen" computer, even though with patience
14252     # the test eventually succeeds (with a max line length of 256k).
14253     # Instead, let's just punt: use the minimum linelength reported by
14254     # all of the supported platforms: 8192 (on NT/2K/XP).
14255     lt_cv_sys_max_cmd_len=8192;
14256     ;;
14257
14258   amigaos*)
14259     # On AmigaOS with pdksh, this test takes hours, literally.
14260     # So we just punt and use a minimum line length of 8192.
14261     lt_cv_sys_max_cmd_len=8192;
14262     ;;
14263
14264   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14265     # This has been around since 386BSD, at least.  Likely further.
14266     if test -x /sbin/sysctl; then
14267       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14268     elif test -x /usr/sbin/sysctl; then
14269       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14270     else
14271       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14272     fi
14273     # And add a safety zone
14274     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14275     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14276     ;;
14277
14278   interix*)
14279     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14280     lt_cv_sys_max_cmd_len=196608
14281     ;;
14282
14283   osf*)
14284     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14285     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14286     # nice to cause kernel panics so lets avoid the loop below.
14287     # First set a reasonable default.
14288     lt_cv_sys_max_cmd_len=16384
14289     #
14290     if test -x /sbin/sysconfig; then
14291       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14292         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14293       esac
14294     fi
14295     ;;
14296   sco3.2v5*)
14297     lt_cv_sys_max_cmd_len=102400
14298     ;;
14299   sysv5* | sco5v6* | sysv4.2uw2*)
14300     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14301     if test -n "$kargmax"; then
14302       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
14303     else
14304       lt_cv_sys_max_cmd_len=32768
14305     fi
14306     ;;
14307   *)
14308     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14309     if test -n "$lt_cv_sys_max_cmd_len"; then
14310       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14311       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14312     else
14313       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14314       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14315                = "XX$teststring") >/dev/null 2>&1 &&
14316               new_result=`expr "X$teststring" : ".*" 2>&1` &&
14317               lt_cv_sys_max_cmd_len=$new_result &&
14318               test $i != 17 # 1/2 MB should be enough
14319       do
14320         i=`expr $i + 1`
14321         teststring=$teststring$teststring
14322       done
14323       teststring=
14324       # Add a significant safety factor because C++ compilers can tack on massive
14325       # amounts of additional arguments before passing them to the linker.
14326       # It appears as though 1/2 is a usable value.
14327       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14328     fi
14329     ;;
14330   esac
14331
14332 fi
14333
14334 if test -n $lt_cv_sys_max_cmd_len ; then
14335   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14336 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14337 else
14338   { echo "$as_me:$LINENO: result: none" >&5
14339 echo "${ECHO_T}none" >&6; }
14340 fi
14341
14342
14343
14344
14345
14346 # Check for command to grab the raw symbol name followed by C symbol from nm.
14347 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14348 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14349 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352
14353 # These are sane defaults that work on at least a few old systems.
14354 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14355
14356 # Character class describing NM global symbol codes.
14357 symcode='[BCDEGRST]'
14358
14359 # Regexp to match symbols that can be accessed directly from C.
14360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14361
14362 # Transform an extracted symbol line into a proper C declaration
14363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14364
14365 # Transform an extracted symbol line into symbol name and symbol address
14366 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'"
14367
14368 # Define system-specific variables.
14369 case $host_os in
14370 aix*)
14371   symcode='[BCDT]'
14372   ;;
14373 cygwin* | mingw* | pw32*)
14374   symcode='[ABCDGISTW]'
14375   ;;
14376 hpux*) # Its linker distinguishes data from code symbols
14377   if test "$host_cpu" = ia64; then
14378     symcode='[ABCDEGRST]'
14379   fi
14380   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14381   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'"
14382   ;;
14383 linux* | k*bsd*-gnu)
14384   if test "$host_cpu" = ia64; then
14385     symcode='[ABCDGIRSTW]'
14386     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14387     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'"
14388   fi
14389   ;;
14390 irix* | nonstopux*)
14391   symcode='[BCDEGRST]'
14392   ;;
14393 osf*)
14394   symcode='[BCDEGQRST]'
14395   ;;
14396 solaris*)
14397   symcode='[BDRT]'
14398   ;;
14399 sco3.2v5*)
14400   symcode='[DT]'
14401   ;;
14402 sysv4.2uw2*)
14403   symcode='[DT]'
14404   ;;
14405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14406   symcode='[ABDT]'
14407   ;;
14408 sysv4)
14409   symcode='[DFNSTU]'
14410   ;;
14411 esac
14412
14413 # Handle CRLF in mingw tool chain
14414 opt_cr=
14415 case $build_os in
14416 mingw*)
14417   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14418   ;;
14419 esac
14420
14421 # If we're using GNU nm, then use its standard symbol codes.
14422 case `$NM -V 2>&1` in
14423 *GNU* | *'with BFD'*)
14424   symcode='[ABCDGIRSTW]' ;;
14425 esac
14426
14427 # Try without a prefix undercore, then with it.
14428 for ac_symprfx in "" "_"; do
14429
14430   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14431   symxfrm="\\1 $ac_symprfx\\2 \\2"
14432
14433   # Write the raw and C identifiers.
14434   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14435
14436   # Check to see that the pipe works correctly.
14437   pipe_works=no
14438
14439   rm -f conftest*
14440   cat > conftest.$ac_ext <<EOF
14441 #ifdef __cplusplus
14442 extern "C" {
14443 #endif
14444 char nm_test_var;
14445 void nm_test_func(){}
14446 #ifdef __cplusplus
14447 }
14448 #endif
14449 int main(){nm_test_var='a';nm_test_func();return(0);}
14450 EOF
14451
14452   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453   (eval $ac_compile) 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; then
14457     # Now try to grab the symbols.
14458     nlist=conftest.nm
14459     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14460   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } && test -s "$nlist"; then
14464       # Try sorting and uniquifying the output.
14465       if sort "$nlist" | uniq > "$nlist"T; then
14466         mv -f "$nlist"T "$nlist"
14467       else
14468         rm -f "$nlist"T
14469       fi
14470
14471       # Make sure that we snagged all the symbols we need.
14472       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14473         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14474           cat <<EOF > conftest.$ac_ext
14475 #ifdef __cplusplus
14476 extern "C" {
14477 #endif
14478
14479 EOF
14480           # Now generate the symbol file.
14481           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14482
14483           cat <<EOF >> conftest.$ac_ext
14484 #if defined (__STDC__) && __STDC__
14485 # define lt_ptr_t void *
14486 #else
14487 # define lt_ptr_t char *
14488 # define const
14489 #endif
14490
14491 /* The mapping between symbol names and symbols. */
14492 const struct {
14493   const char *name;
14494   lt_ptr_t address;
14495 }
14496 lt_preloaded_symbols[] =
14497 {
14498 EOF
14499           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14500           cat <<\EOF >> conftest.$ac_ext
14501   {0, (lt_ptr_t) 0}
14502 };
14503
14504 #ifdef __cplusplus
14505 }
14506 #endif
14507 EOF
14508           # Now try linking the two files.
14509           mv conftest.$ac_objext conftstm.$ac_objext
14510           lt_save_LIBS="$LIBS"
14511           lt_save_CFLAGS="$CFLAGS"
14512           LIBS="conftstm.$ac_objext"
14513           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14514           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515   (eval $ac_link) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14519             pipe_works=yes
14520           fi
14521           LIBS="$lt_save_LIBS"
14522           CFLAGS="$lt_save_CFLAGS"
14523         else
14524           echo "cannot find nm_test_func in $nlist" >&5
14525         fi
14526       else
14527         echo "cannot find nm_test_var in $nlist" >&5
14528       fi
14529     else
14530       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14531     fi
14532   else
14533     echo "$progname: failed program was:" >&5
14534     cat conftest.$ac_ext >&5
14535   fi
14536   rm -f conftest* conftst*
14537
14538   # Do not use the global_symbol_pipe unless it works.
14539   if test "$pipe_works" = yes; then
14540     break
14541   else
14542     lt_cv_sys_global_symbol_pipe=
14543   fi
14544 done
14545
14546 fi
14547
14548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14549   lt_cv_sys_global_symbol_to_cdecl=
14550 fi
14551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14552   { echo "$as_me:$LINENO: result: failed" >&5
14553 echo "${ECHO_T}failed" >&6; }
14554 else
14555   { echo "$as_me:$LINENO: result: ok" >&5
14556 echo "${ECHO_T}ok" >&6; }
14557 fi
14558
14559 { echo "$as_me:$LINENO: checking for objdir" >&5
14560 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14561 if test "${lt_cv_objdir+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   rm -f .libs 2>/dev/null
14565 mkdir .libs 2>/dev/null
14566 if test -d .libs; then
14567   lt_cv_objdir=.libs
14568 else
14569   # MS-DOS does not allow filenames that begin with a dot.
14570   lt_cv_objdir=_libs
14571 fi
14572 rmdir .libs 2>/dev/null
14573 fi
14574 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14575 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14576 objdir=$lt_cv_objdir
14577
14578
14579
14580
14581
14582 case $host_os in
14583 aix3*)
14584   # AIX sometimes has problems with the GCC collect2 program.  For some
14585   # reason, if we set the COLLECT_NAMES environment variable, the problems
14586   # vanish in a puff of smoke.
14587   if test "X${COLLECT_NAMES+set}" != Xset; then
14588     COLLECT_NAMES=
14589     export COLLECT_NAMES
14590   fi
14591   ;;
14592 esac
14593
14594 # Sed substitution that helps us do robust quoting.  It backslashifies
14595 # metacharacters that are still active within double-quoted strings.
14596 Xsed='sed -e 1s/^X//'
14597 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14598
14599 # Same as above, but do not quote variable references.
14600 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14601
14602 # Sed substitution to delay expansion of an escaped shell variable in a
14603 # double_quote_subst'ed string.
14604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14605
14606 # Sed substitution to avoid accidental globbing in evaled expressions
14607 no_glob_subst='s/\*/\\\*/g'
14608
14609 # Constants:
14610 rm="rm -f"
14611
14612 # Global variables:
14613 default_ofile=libtool
14614 can_build_shared=yes
14615
14616 # All known linkers require a `.a' archive for static linking (except MSVC,
14617 # which needs '.lib').
14618 libext=a
14619 ltmain="$ac_aux_dir/ltmain.sh"
14620 ofile="$default_ofile"
14621 with_gnu_ld="$lt_cv_prog_gnu_ld"
14622
14623 if test -n "$ac_tool_prefix"; then
14624   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14625 set dummy ${ac_tool_prefix}ar; ac_word=$2
14626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14628 if test "${ac_cv_prog_AR+set}" = set; then
14629   echo $ECHO_N "(cached) $ECHO_C" >&6
14630 else
14631   if test -n "$AR"; then
14632   ac_cv_prog_AR="$AR" # Let the user override the test.
14633 else
14634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635 for as_dir in $PATH
14636 do
14637   IFS=$as_save_IFS
14638   test -z "$as_dir" && as_dir=.
14639   for ac_exec_ext in '' $ac_executable_extensions; do
14640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14641     ac_cv_prog_AR="${ac_tool_prefix}ar"
14642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14643     break 2
14644   fi
14645 done
14646 done
14647 IFS=$as_save_IFS
14648
14649 fi
14650 fi
14651 AR=$ac_cv_prog_AR
14652 if test -n "$AR"; then
14653   { echo "$as_me:$LINENO: result: $AR" >&5
14654 echo "${ECHO_T}$AR" >&6; }
14655 else
14656   { echo "$as_me:$LINENO: result: no" >&5
14657 echo "${ECHO_T}no" >&6; }
14658 fi
14659
14660
14661 fi
14662 if test -z "$ac_cv_prog_AR"; then
14663   ac_ct_AR=$AR
14664   # Extract the first word of "ar", so it can be a program name with args.
14665 set dummy ar; ac_word=$2
14666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14668 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671   if test -n "$ac_ct_AR"; then
14672   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14673 else
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14676 do
14677   IFS=$as_save_IFS
14678   test -z "$as_dir" && as_dir=.
14679   for ac_exec_ext in '' $ac_executable_extensions; do
14680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14681     ac_cv_prog_ac_ct_AR="ar"
14682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14683     break 2
14684   fi
14685 done
14686 done
14687 IFS=$as_save_IFS
14688
14689 fi
14690 fi
14691 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14692 if test -n "$ac_ct_AR"; then
14693   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14694 echo "${ECHO_T}$ac_ct_AR" >&6; }
14695 else
14696   { echo "$as_me:$LINENO: result: no" >&5
14697 echo "${ECHO_T}no" >&6; }
14698 fi
14699
14700   if test "x$ac_ct_AR" = x; then
14701     AR="false"
14702   else
14703     case $cross_compiling:$ac_tool_warned in
14704 yes:)
14705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14706 whose name does not start with the host triplet.  If you think this
14707 configuration is useful to you, please write to autoconf@gnu.org." >&5
14708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14709 whose name does not start with the host triplet.  If you think this
14710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14711 ac_tool_warned=yes ;;
14712 esac
14713     AR=$ac_ct_AR
14714   fi
14715 else
14716   AR="$ac_cv_prog_AR"
14717 fi
14718
14719 if test -n "$ac_tool_prefix"; then
14720   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14724 if test "${ac_cv_prog_RANLIB+set}" = set; then
14725   echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727   if test -n "$RANLIB"; then
14728   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14729 else
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731 for as_dir in $PATH
14732 do
14733   IFS=$as_save_IFS
14734   test -z "$as_dir" && as_dir=.
14735   for ac_exec_ext in '' $ac_executable_extensions; do
14736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14737     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14739     break 2
14740   fi
14741 done
14742 done
14743 IFS=$as_save_IFS
14744
14745 fi
14746 fi
14747 RANLIB=$ac_cv_prog_RANLIB
14748 if test -n "$RANLIB"; then
14749   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14750 echo "${ECHO_T}$RANLIB" >&6; }
14751 else
14752   { echo "$as_me:$LINENO: result: no" >&5
14753 echo "${ECHO_T}no" >&6; }
14754 fi
14755
14756
14757 fi
14758 if test -z "$ac_cv_prog_RANLIB"; then
14759   ac_ct_RANLIB=$RANLIB
14760   # Extract the first word of "ranlib", so it can be a program name with args.
14761 set dummy ranlib; ac_word=$2
14762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767   if test -n "$ac_ct_RANLIB"; then
14768   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14769 else
14770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771 for as_dir in $PATH
14772 do
14773   IFS=$as_save_IFS
14774   test -z "$as_dir" && as_dir=.
14775   for ac_exec_ext in '' $ac_executable_extensions; do
14776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14777     ac_cv_prog_ac_ct_RANLIB="ranlib"
14778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14779     break 2
14780   fi
14781 done
14782 done
14783 IFS=$as_save_IFS
14784
14785 fi
14786 fi
14787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14788 if test -n "$ac_ct_RANLIB"; then
14789   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14790 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14791 else
14792   { echo "$as_me:$LINENO: result: no" >&5
14793 echo "${ECHO_T}no" >&6; }
14794 fi
14795
14796   if test "x$ac_ct_RANLIB" = x; then
14797     RANLIB=":"
14798   else
14799     case $cross_compiling:$ac_tool_warned in
14800 yes:)
14801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14802 whose name does not start with the host triplet.  If you think this
14803 configuration is useful to you, please write to autoconf@gnu.org." >&5
14804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14805 whose name does not start with the host triplet.  If you think this
14806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14807 ac_tool_warned=yes ;;
14808 esac
14809     RANLIB=$ac_ct_RANLIB
14810   fi
14811 else
14812   RANLIB="$ac_cv_prog_RANLIB"
14813 fi
14814
14815 if test -n "$ac_tool_prefix"; then
14816   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14817 set dummy ${ac_tool_prefix}strip; ac_word=$2
14818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14820 if test "${ac_cv_prog_STRIP+set}" = set; then
14821   echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
14823   if test -n "$STRIP"; then
14824   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14825 else
14826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827 for as_dir in $PATH
14828 do
14829   IFS=$as_save_IFS
14830   test -z "$as_dir" && as_dir=.
14831   for ac_exec_ext in '' $ac_executable_extensions; do
14832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14833     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14835     break 2
14836   fi
14837 done
14838 done
14839 IFS=$as_save_IFS
14840
14841 fi
14842 fi
14843 STRIP=$ac_cv_prog_STRIP
14844 if test -n "$STRIP"; then
14845   { echo "$as_me:$LINENO: result: $STRIP" >&5
14846 echo "${ECHO_T}$STRIP" >&6; }
14847 else
14848   { echo "$as_me:$LINENO: result: no" >&5
14849 echo "${ECHO_T}no" >&6; }
14850 fi
14851
14852
14853 fi
14854 if test -z "$ac_cv_prog_STRIP"; then
14855   ac_ct_STRIP=$STRIP
14856   # Extract the first word of "strip", so it can be a program name with args.
14857 set dummy strip; ac_word=$2
14858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14860 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14861   echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863   if test -n "$ac_ct_STRIP"; then
14864   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14865 else
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14868 do
14869   IFS=$as_save_IFS
14870   test -z "$as_dir" && as_dir=.
14871   for ac_exec_ext in '' $ac_executable_extensions; do
14872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14873     ac_cv_prog_ac_ct_STRIP="strip"
14874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14875     break 2
14876   fi
14877 done
14878 done
14879 IFS=$as_save_IFS
14880
14881 fi
14882 fi
14883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14884 if test -n "$ac_ct_STRIP"; then
14885   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14886 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14887 else
14888   { echo "$as_me:$LINENO: result: no" >&5
14889 echo "${ECHO_T}no" >&6; }
14890 fi
14891
14892   if test "x$ac_ct_STRIP" = x; then
14893     STRIP=":"
14894   else
14895     case $cross_compiling:$ac_tool_warned in
14896 yes:)
14897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14898 whose name does not start with the host triplet.  If you think this
14899 configuration is useful to you, please write to autoconf@gnu.org." >&5
14900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14901 whose name does not start with the host triplet.  If you think this
14902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14903 ac_tool_warned=yes ;;
14904 esac
14905     STRIP=$ac_ct_STRIP
14906   fi
14907 else
14908   STRIP="$ac_cv_prog_STRIP"
14909 fi
14910
14911
14912 old_CC="$CC"
14913 old_CFLAGS="$CFLAGS"
14914
14915 # Set sane defaults for various variables
14916 test -z "$AR" && AR=ar
14917 test -z "$AR_FLAGS" && AR_FLAGS=cru
14918 test -z "$AS" && AS=as
14919 test -z "$CC" && CC=cc
14920 test -z "$LTCC" && LTCC=$CC
14921 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14922 test -z "$DLLTOOL" && DLLTOOL=dlltool
14923 test -z "$LD" && LD=ld
14924 test -z "$LN_S" && LN_S="ln -s"
14925 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14926 test -z "$NM" && NM=nm
14927 test -z "$SED" && SED=sed
14928 test -z "$OBJDUMP" && OBJDUMP=objdump
14929 test -z "$RANLIB" && RANLIB=:
14930 test -z "$STRIP" && STRIP=:
14931 test -z "$ac_objext" && ac_objext=o
14932
14933 # Determine commands to create old-style static archives.
14934 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14935 old_postinstall_cmds='chmod 644 $oldlib'
14936 old_postuninstall_cmds=
14937
14938 if test -n "$RANLIB"; then
14939   case $host_os in
14940   openbsd*)
14941     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14942     ;;
14943   *)
14944     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14945     ;;
14946   esac
14947   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14948 fi
14949
14950 for cc_temp in $compiler""; do
14951   case $cc_temp in
14952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14954     \-*) ;;
14955     *) break;;
14956   esac
14957 done
14958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14959
14960
14961 # Only perform the check for file, if the check method requires it
14962 case $deplibs_check_method in
14963 file_magic*)
14964   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14965     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14966 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   case $MAGIC_CMD in
14971 [\\/*] |  ?:[\\/]*)
14972   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14973   ;;
14974 *)
14975   lt_save_MAGIC_CMD="$MAGIC_CMD"
14976   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14977   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14978   for ac_dir in $ac_dummy; do
14979     IFS="$lt_save_ifs"
14980     test -z "$ac_dir" && ac_dir=.
14981     if test -f $ac_dir/${ac_tool_prefix}file; then
14982       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14983       if test -n "$file_magic_test_file"; then
14984         case $deplibs_check_method in
14985         "file_magic "*)
14986           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14987           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14988           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14989             $EGREP "$file_magic_regex" > /dev/null; then
14990             :
14991           else
14992             cat <<EOF 1>&2
14993
14994 *** Warning: the command libtool uses to detect shared libraries,
14995 *** $file_magic_cmd, produces output that libtool cannot recognize.
14996 *** The result is that libtool may fail to recognize shared libraries
14997 *** as such.  This will affect the creation of libtool libraries that
14998 *** depend on shared libraries, but programs linked with such libtool
14999 *** libraries will work regardless of this problem.  Nevertheless, you
15000 *** may want to report the problem to your system manager and/or to
15001 *** bug-libtool@gnu.org
15002
15003 EOF
15004           fi ;;
15005         esac
15006       fi
15007       break
15008     fi
15009   done
15010   IFS="$lt_save_ifs"
15011   MAGIC_CMD="$lt_save_MAGIC_CMD"
15012   ;;
15013 esac
15014 fi
15015
15016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15017 if test -n "$MAGIC_CMD"; then
15018   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15019 echo "${ECHO_T}$MAGIC_CMD" >&6; }
15020 else
15021   { echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6; }
15023 fi
15024
15025 if test -z "$lt_cv_path_MAGIC_CMD"; then
15026   if test -n "$ac_tool_prefix"; then
15027     { echo "$as_me:$LINENO: checking for file" >&5
15028 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
15029 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15030   echo $ECHO_N "(cached) $ECHO_C" >&6
15031 else
15032   case $MAGIC_CMD in
15033 [\\/*] |  ?:[\\/]*)
15034   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15035   ;;
15036 *)
15037   lt_save_MAGIC_CMD="$MAGIC_CMD"
15038   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15039   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15040   for ac_dir in $ac_dummy; do
15041     IFS="$lt_save_ifs"
15042     test -z "$ac_dir" && ac_dir=.
15043     if test -f $ac_dir/file; then
15044       lt_cv_path_MAGIC_CMD="$ac_dir/file"
15045       if test -n "$file_magic_test_file"; then
15046         case $deplibs_check_method in
15047         "file_magic "*)
15048           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15049           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15050           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15051             $EGREP "$file_magic_regex" > /dev/null; then
15052             :
15053           else
15054             cat <<EOF 1>&2
15055
15056 *** Warning: the command libtool uses to detect shared libraries,
15057 *** $file_magic_cmd, produces output that libtool cannot recognize.
15058 *** The result is that libtool may fail to recognize shared libraries
15059 *** as such.  This will affect the creation of libtool libraries that
15060 *** depend on shared libraries, but programs linked with such libtool
15061 *** libraries will work regardless of this problem.  Nevertheless, you
15062 *** may want to report the problem to your system manager and/or to
15063 *** bug-libtool@gnu.org
15064
15065 EOF
15066           fi ;;
15067         esac
15068       fi
15069       break
15070     fi
15071   done
15072   IFS="$lt_save_ifs"
15073   MAGIC_CMD="$lt_save_MAGIC_CMD"
15074   ;;
15075 esac
15076 fi
15077
15078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15079 if test -n "$MAGIC_CMD"; then
15080   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15081 echo "${ECHO_T}$MAGIC_CMD" >&6; }
15082 else
15083   { echo "$as_me:$LINENO: result: no" >&5
15084 echo "${ECHO_T}no" >&6; }
15085 fi
15086
15087   else
15088     MAGIC_CMD=:
15089   fi
15090 fi
15091
15092   fi
15093   ;;
15094 esac
15095
15096 enable_dlopen=yes
15097 enable_win32_dll=no
15098
15099 # Check whether --enable-libtool-lock was given.
15100 if test "${enable_libtool_lock+set}" = set; then
15101   enableval=$enable_libtool_lock;
15102 fi
15103
15104 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15105
15106
15107 # Check whether --with-pic was given.
15108 if test "${with_pic+set}" = set; then
15109   withval=$with_pic; pic_mode="$withval"
15110 else
15111   pic_mode=default
15112 fi
15113
15114 test -z "$pic_mode" && pic_mode=default
15115
15116 # Use C for the default configuration in the libtool script
15117 tagname=
15118 lt_save_CC="$CC"
15119 ac_ext=c
15120 ac_cpp='$CPP $CPPFLAGS'
15121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15124
15125
15126 # Source file extension for C test sources.
15127 ac_ext=c
15128
15129 # Object file extension for compiled C test sources.
15130 objext=o
15131 objext=$objext
15132
15133 # Code to be used in simple compile tests
15134 lt_simple_compile_test_code="int some_variable = 0;"
15135
15136 # Code to be used in simple link tests
15137 lt_simple_link_test_code='int main(){return(0);}'
15138
15139
15140 # If no C compiler was specified, use CC.
15141 LTCC=${LTCC-"$CC"}
15142
15143 # If no C compiler flags were specified, use CFLAGS.
15144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15145
15146 # Allow CC to be a program name with arguments.
15147 compiler=$CC
15148
15149
15150 # save warnings/boilerplate of simple test code
15151 ac_outfile=conftest.$ac_objext
15152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15154 _lt_compiler_boilerplate=`cat conftest.err`
15155 $rm conftest*
15156
15157 ac_outfile=conftest.$ac_objext
15158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15160 _lt_linker_boilerplate=`cat conftest.err`
15161 $rm conftest*
15162
15163
15164
15165 lt_prog_compiler_no_builtin_flag=
15166
15167 if test "$GCC" = yes; then
15168   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15169
15170
15171 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15172 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15173 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15174   echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176   lt_cv_prog_compiler_rtti_exceptions=no
15177   ac_outfile=conftest.$ac_objext
15178    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15179    lt_compiler_flag="-fno-rtti -fno-exceptions"
15180    # Insert the option either (1) after the last *FLAGS variable, or
15181    # (2) before a word containing "conftest.", or (3) at the end.
15182    # Note that $ac_compile itself does not contain backslashes and begins
15183    # with a dollar sign (not a hyphen), so the echo should work correctly.
15184    # The option is referenced via a variable to avoid confusing sed.
15185    lt_compile=`echo "$ac_compile" | $SED \
15186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15188    -e 's:$: $lt_compiler_flag:'`
15189    (eval echo "\"\$as_me:15189: $lt_compile\"" >&5)
15190    (eval "$lt_compile" 2>conftest.err)
15191    ac_status=$?
15192    cat conftest.err >&5
15193    echo "$as_me:15193: \$? = $ac_status" >&5
15194    if (exit $ac_status) && test -s "$ac_outfile"; then
15195      # The compiler can only warn and ignore the option if not recognized
15196      # So say no if there are warnings other than the usual output.
15197      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15198      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15199      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15200        lt_cv_prog_compiler_rtti_exceptions=yes
15201      fi
15202    fi
15203    $rm conftest*
15204
15205 fi
15206 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15207 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15208
15209 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15210     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15211 else
15212     :
15213 fi
15214
15215 fi
15216
15217 lt_prog_compiler_wl=
15218 lt_prog_compiler_pic=
15219 lt_prog_compiler_static=
15220
15221 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15222 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15223
15224   if test "$GCC" = yes; then
15225     lt_prog_compiler_wl='-Wl,'
15226     lt_prog_compiler_static='-static'
15227
15228     case $host_os in
15229       aix*)
15230       # All AIX code is PIC.
15231       if test "$host_cpu" = ia64; then
15232         # AIX 5 now supports IA64 processor
15233         lt_prog_compiler_static='-Bstatic'
15234       fi
15235       ;;
15236
15237     amigaos*)
15238       # FIXME: we need at least 68020 code to build shared libraries, but
15239       # adding the `-m68020' flag to GCC prevents building anything better,
15240       # like `-m68040'.
15241       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15242       ;;
15243
15244     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15245       # PIC is the default for these OSes.
15246       ;;
15247
15248     mingw* | cygwin* | pw32* | os2*)
15249       # This hack is so that the source file can tell whether it is being
15250       # built for inclusion in a dll (and should export symbols for example).
15251       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15252       # (--disable-auto-import) libraries
15253       lt_prog_compiler_pic='-DDLL_EXPORT'
15254       ;;
15255
15256     darwin* | rhapsody*)
15257       # PIC is the default on this platform
15258       # Common symbols not allowed in MH_DYLIB files
15259       lt_prog_compiler_pic='-fno-common'
15260       ;;
15261
15262     interix[3-9]*)
15263       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15264       # Instead, we relocate shared libraries at runtime.
15265       ;;
15266
15267     msdosdjgpp*)
15268       # Just because we use GCC doesn't mean we suddenly get shared libraries
15269       # on systems that don't support them.
15270       lt_prog_compiler_can_build_shared=no
15271       enable_shared=no
15272       ;;
15273
15274     sysv4*MP*)
15275       if test -d /usr/nec; then
15276         lt_prog_compiler_pic=-Kconform_pic
15277       fi
15278       ;;
15279
15280     hpux*)
15281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15282       # not for PA HP-UX.
15283       case $host_cpu in
15284       hppa*64*|ia64*)
15285         # +Z the default
15286         ;;
15287       *)
15288         lt_prog_compiler_pic='-fPIC'
15289         ;;
15290       esac
15291       ;;
15292
15293     *)
15294       lt_prog_compiler_pic='-fPIC'
15295       ;;
15296     esac
15297   else
15298     # PORTME Check for flag to pass linker flags through the system compiler.
15299     case $host_os in
15300     aix*)
15301       lt_prog_compiler_wl='-Wl,'
15302       if test "$host_cpu" = ia64; then
15303         # AIX 5 now supports IA64 processor
15304         lt_prog_compiler_static='-Bstatic'
15305       else
15306         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15307       fi
15308       ;;
15309       darwin*)
15310         # PIC is the default on this platform
15311         # Common symbols not allowed in MH_DYLIB files
15312        case $cc_basename in
15313          xlc*)
15314          lt_prog_compiler_pic='-qnocommon'
15315          lt_prog_compiler_wl='-Wl,'
15316          ;;
15317        esac
15318        ;;
15319
15320     mingw* | cygwin* | pw32* | os2*)
15321       # This hack is so that the source file can tell whether it is being
15322       # built for inclusion in a dll (and should export symbols for example).
15323       lt_prog_compiler_pic='-DDLL_EXPORT'
15324       ;;
15325
15326     hpux9* | hpux10* | hpux11*)
15327       lt_prog_compiler_wl='-Wl,'
15328       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15329       # not for PA HP-UX.
15330       case $host_cpu in
15331       hppa*64*|ia64*)
15332         # +Z the default
15333         ;;
15334       *)
15335         lt_prog_compiler_pic='+Z'
15336         ;;
15337       esac
15338       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15339       lt_prog_compiler_static='${wl}-a ${wl}archive'
15340       ;;
15341
15342     irix5* | irix6* | nonstopux*)
15343       lt_prog_compiler_wl='-Wl,'
15344       # PIC (with -KPIC) is the default.
15345       lt_prog_compiler_static='-non_shared'
15346       ;;
15347
15348     newsos6)
15349       lt_prog_compiler_pic='-KPIC'
15350       lt_prog_compiler_static='-Bstatic'
15351       ;;
15352
15353     linux* | k*bsd*-gnu)
15354       case $cc_basename in
15355       icc* | ecc*)
15356         lt_prog_compiler_wl='-Wl,'
15357         lt_prog_compiler_pic='-KPIC'
15358         lt_prog_compiler_static='-static'
15359         ;;
15360       pgcc* | pgf77* | pgf90* | pgf95*)
15361         # Portland Group compilers (*not* the Pentium gcc compiler,
15362         # which looks to be a dead project)
15363         lt_prog_compiler_wl='-Wl,'
15364         lt_prog_compiler_pic='-fpic'
15365         lt_prog_compiler_static='-Bstatic'
15366         ;;
15367       ccc*)
15368         lt_prog_compiler_wl='-Wl,'
15369         # All Alpha code is PIC.
15370         lt_prog_compiler_static='-non_shared'
15371         ;;
15372       *)
15373         case `$CC -V 2>&1 | sed 5q` in
15374         *Sun\ C*)
15375           # Sun C 5.9
15376           lt_prog_compiler_pic='-KPIC'
15377           lt_prog_compiler_static='-Bstatic'
15378           lt_prog_compiler_wl='-Wl,'
15379           ;;
15380         *Sun\ F*)
15381           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15382           lt_prog_compiler_pic='-KPIC'
15383           lt_prog_compiler_static='-Bstatic'
15384           lt_prog_compiler_wl=''
15385           ;;
15386         esac
15387         ;;
15388       esac
15389       ;;
15390
15391     osf3* | osf4* | osf5*)
15392       lt_prog_compiler_wl='-Wl,'
15393       # All OSF/1 code is PIC.
15394       lt_prog_compiler_static='-non_shared'
15395       ;;
15396
15397     rdos*)
15398       lt_prog_compiler_static='-non_shared'
15399       ;;
15400
15401     solaris*)
15402       lt_prog_compiler_pic='-KPIC'
15403       lt_prog_compiler_static='-Bstatic'
15404       case $cc_basename in
15405       f77* | f90* | f95*)
15406         lt_prog_compiler_wl='-Qoption ld ';;
15407       *)
15408         lt_prog_compiler_wl='-Wl,';;
15409       esac
15410       ;;
15411
15412     sunos4*)
15413       lt_prog_compiler_wl='-Qoption ld '
15414       lt_prog_compiler_pic='-PIC'
15415       lt_prog_compiler_static='-Bstatic'
15416       ;;
15417
15418     sysv4 | sysv4.2uw2* | sysv4.3*)
15419       lt_prog_compiler_wl='-Wl,'
15420       lt_prog_compiler_pic='-KPIC'
15421       lt_prog_compiler_static='-Bstatic'
15422       ;;
15423
15424     sysv4*MP*)
15425       if test -d /usr/nec ;then
15426         lt_prog_compiler_pic='-Kconform_pic'
15427         lt_prog_compiler_static='-Bstatic'
15428       fi
15429       ;;
15430
15431     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15432       lt_prog_compiler_wl='-Wl,'
15433       lt_prog_compiler_pic='-KPIC'
15434       lt_prog_compiler_static='-Bstatic'
15435       ;;
15436
15437     unicos*)
15438       lt_prog_compiler_wl='-Wl,'
15439       lt_prog_compiler_can_build_shared=no
15440       ;;
15441
15442     uts4*)
15443       lt_prog_compiler_pic='-pic'
15444       lt_prog_compiler_static='-Bstatic'
15445       ;;
15446
15447     *)
15448       lt_prog_compiler_can_build_shared=no
15449       ;;
15450     esac
15451   fi
15452
15453 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15454 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15455
15456 #
15457 # Check to make sure the PIC flag actually works.
15458 #
15459 if test -n "$lt_prog_compiler_pic"; then
15460
15461 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15462 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15463 if test "${lt_prog_compiler_pic_works+set}" = set; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466   lt_prog_compiler_pic_works=no
15467   ac_outfile=conftest.$ac_objext
15468    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15469    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15470    # Insert the option either (1) after the last *FLAGS variable, or
15471    # (2) before a word containing "conftest.", or (3) at the end.
15472    # Note that $ac_compile itself does not contain backslashes and begins
15473    # with a dollar sign (not a hyphen), so the echo should work correctly.
15474    # The option is referenced via a variable to avoid confusing sed.
15475    lt_compile=`echo "$ac_compile" | $SED \
15476    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15478    -e 's:$: $lt_compiler_flag:'`
15479    (eval echo "\"\$as_me:15479: $lt_compile\"" >&5)
15480    (eval "$lt_compile" 2>conftest.err)
15481    ac_status=$?
15482    cat conftest.err >&5
15483    echo "$as_me:15483: \$? = $ac_status" >&5
15484    if (exit $ac_status) && test -s "$ac_outfile"; then
15485      # The compiler can only warn and ignore the option if not recognized
15486      # So say no if there are warnings other than the usual output.
15487      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15488      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15489      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15490        lt_prog_compiler_pic_works=yes
15491      fi
15492    fi
15493    $rm conftest*
15494
15495 fi
15496 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15497 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15498
15499 if test x"$lt_prog_compiler_pic_works" = xyes; then
15500     case $lt_prog_compiler_pic in
15501      "" | " "*) ;;
15502      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15503      esac
15504 else
15505     lt_prog_compiler_pic=
15506      lt_prog_compiler_can_build_shared=no
15507 fi
15508
15509 fi
15510 case $host_os in
15511   # For platforms which do not support PIC, -DPIC is meaningless:
15512   *djgpp*)
15513     lt_prog_compiler_pic=
15514     ;;
15515   *)
15516     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15517     ;;
15518 esac
15519
15520 #
15521 # Check to make sure the static flag actually works.
15522 #
15523 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15524 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15525 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15526 if test "${lt_prog_compiler_static_works+set}" = set; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529   lt_prog_compiler_static_works=no
15530    save_LDFLAGS="$LDFLAGS"
15531    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15532    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15533    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15534      # The linker can only warn and ignore the option if not recognized
15535      # So say no if there are warnings
15536      if test -s conftest.err; then
15537        # Append any errors to the config.log.
15538        cat conftest.err 1>&5
15539        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15540        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15541        if diff conftest.exp conftest.er2 >/dev/null; then
15542          lt_prog_compiler_static_works=yes
15543        fi
15544      else
15545        lt_prog_compiler_static_works=yes
15546      fi
15547    fi
15548    $rm conftest*
15549    LDFLAGS="$save_LDFLAGS"
15550
15551 fi
15552 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15553 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15554
15555 if test x"$lt_prog_compiler_static_works" = xyes; then
15556     :
15557 else
15558     lt_prog_compiler_static=
15559 fi
15560
15561
15562 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15563 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15564 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15565   echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567   lt_cv_prog_compiler_c_o=no
15568    $rm -r conftest 2>/dev/null
15569    mkdir conftest
15570    cd conftest
15571    mkdir out
15572    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15573
15574    lt_compiler_flag="-o out/conftest2.$ac_objext"
15575    # Insert the option either (1) after the last *FLAGS variable, or
15576    # (2) before a word containing "conftest.", or (3) at the end.
15577    # Note that $ac_compile itself does not contain backslashes and begins
15578    # with a dollar sign (not a hyphen), so the echo should work correctly.
15579    lt_compile=`echo "$ac_compile" | $SED \
15580    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15581    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15582    -e 's:$: $lt_compiler_flag:'`
15583    (eval echo "\"\$as_me:15583: $lt_compile\"" >&5)
15584    (eval "$lt_compile" 2>out/conftest.err)
15585    ac_status=$?
15586    cat out/conftest.err >&5
15587    echo "$as_me:15587: \$? = $ac_status" >&5
15588    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15589    then
15590      # The compiler can only warn and ignore the option if not recognized
15591      # So say no if there are warnings
15592      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15593      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15594      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15595        lt_cv_prog_compiler_c_o=yes
15596      fi
15597    fi
15598    chmod u+w . 2>&5
15599    $rm conftest*
15600    # SGI C++ compiler will create directory out/ii_files/ for
15601    # template instantiation
15602    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15603    $rm out/* && rmdir out
15604    cd ..
15605    rmdir conftest
15606    $rm conftest*
15607
15608 fi
15609 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15610 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15611
15612
15613 hard_links="nottested"
15614 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15615   # do not overwrite the value of need_locks provided by the user
15616   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15617 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15618   hard_links=yes
15619   $rm conftest*
15620   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15621   touch conftest.a
15622   ln conftest.a conftest.b 2>&5 || hard_links=no
15623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15624   { echo "$as_me:$LINENO: result: $hard_links" >&5
15625 echo "${ECHO_T}$hard_links" >&6; }
15626   if test "$hard_links" = no; then
15627     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15628 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15629     need_locks=warn
15630   fi
15631 else
15632   need_locks=no
15633 fi
15634
15635 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15636 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15637
15638   runpath_var=
15639   allow_undefined_flag=
15640   enable_shared_with_static_runtimes=no
15641   archive_cmds=
15642   archive_expsym_cmds=
15643   old_archive_From_new_cmds=
15644   old_archive_from_expsyms_cmds=
15645   export_dynamic_flag_spec=
15646   whole_archive_flag_spec=
15647   thread_safe_flag_spec=
15648   hardcode_libdir_flag_spec=
15649   hardcode_libdir_flag_spec_ld=
15650   hardcode_libdir_separator=
15651   hardcode_direct=no
15652   hardcode_minus_L=no
15653   hardcode_shlibpath_var=unsupported
15654   link_all_deplibs=unknown
15655   hardcode_automatic=no
15656   module_cmds=
15657   module_expsym_cmds=
15658   always_export_symbols=no
15659   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15660   # include_expsyms should be a list of space-separated symbols to be *always*
15661   # included in the symbol list
15662   include_expsyms=
15663   # exclude_expsyms can be an extended regexp of symbols to exclude
15664   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15665   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15666   # as well as any symbol that contains `d'.
15667   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15668   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15669   # platforms (ab)use it in PIC code, but their linkers get confused if
15670   # the symbol is explicitly referenced.  Since portable code cannot
15671   # rely on this symbol name, it's probably fine to never include it in
15672   # preloaded symbol tables.
15673   extract_expsyms_cmds=
15674   # Just being paranoid about ensuring that cc_basename is set.
15675   for cc_temp in $compiler""; do
15676   case $cc_temp in
15677     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15678     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15679     \-*) ;;
15680     *) break;;
15681   esac
15682 done
15683 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15684
15685   case $host_os in
15686   cygwin* | mingw* | pw32*)
15687     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15688     # When not using gcc, we currently assume that we are using
15689     # Microsoft Visual C++.
15690     if test "$GCC" != yes; then
15691       with_gnu_ld=no
15692     fi
15693     ;;
15694   interix*)
15695     # we just hope/assume this is gcc and not c89 (= MSVC++)
15696     with_gnu_ld=yes
15697     ;;
15698   openbsd*)
15699     with_gnu_ld=no
15700     ;;
15701   esac
15702
15703   ld_shlibs=yes
15704   if test "$with_gnu_ld" = yes; then
15705     # If archive_cmds runs LD, not CC, wlarc should be empty
15706     wlarc='${wl}'
15707
15708     # Set some defaults for GNU ld with shared library support. These
15709     # are reset later if shared libraries are not supported. Putting them
15710     # here allows them to be overridden if necessary.
15711     runpath_var=LD_RUN_PATH
15712     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15713     export_dynamic_flag_spec='${wl}--export-dynamic'
15714     # ancient GNU ld didn't support --whole-archive et. al.
15715     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15716         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15717       else
15718         whole_archive_flag_spec=
15719     fi
15720     supports_anon_versioning=no
15721     case `$LD -v 2>/dev/null` in
15722       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15723       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15724       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15725       *\ 2.11.*) ;; # other 2.11 versions
15726       *) supports_anon_versioning=yes ;;
15727     esac
15728
15729     # See if GNU ld supports shared libraries.
15730     case $host_os in
15731     aix3* | aix4* | aix5*)
15732       # On AIX/PPC, the GNU linker is very broken
15733       if test "$host_cpu" != ia64; then
15734         ld_shlibs=no
15735         cat <<EOF 1>&2
15736
15737 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15738 *** to be unable to reliably create shared libraries on AIX.
15739 *** Therefore, libtool is disabling shared libraries support.  If you
15740 *** really care for shared libraries, you may want to modify your PATH
15741 *** so that a non-GNU linker is found, and then restart.
15742
15743 EOF
15744       fi
15745       ;;
15746
15747     amigaos*)
15748       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)'
15749       hardcode_libdir_flag_spec='-L$libdir'
15750       hardcode_minus_L=yes
15751
15752       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15753       # that the semantics of dynamic libraries on AmigaOS, at least up
15754       # to version 4, is to share data among multiple programs linked
15755       # with the same dynamic library.  Since this doesn't match the
15756       # behavior of shared libraries on other platforms, we can't use
15757       # them.
15758       ld_shlibs=no
15759       ;;
15760
15761     beos*)
15762       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15763         allow_undefined_flag=unsupported
15764         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15765         # support --undefined.  This deserves some investigation.  FIXME
15766         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15767       else
15768         ld_shlibs=no
15769       fi
15770       ;;
15771
15772     cygwin* | mingw* | pw32*)
15773       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15774       # as there is no search path for DLLs.
15775       hardcode_libdir_flag_spec='-L$libdir'
15776       allow_undefined_flag=unsupported
15777       always_export_symbols=no
15778       enable_shared_with_static_runtimes=yes
15779       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15780
15781       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15782         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15783         # If the export-symbols file already is a .def file (1st line
15784         # is EXPORTS), use it as is; otherwise, prepend...
15785         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15786           cp $export_symbols $output_objdir/$soname.def;
15787         else
15788           echo EXPORTS > $output_objdir/$soname.def;
15789           cat $export_symbols >> $output_objdir/$soname.def;
15790         fi~
15791         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15792       else
15793         ld_shlibs=no
15794       fi
15795       ;;
15796
15797     interix[3-9]*)
15798       hardcode_direct=no
15799       hardcode_shlibpath_var=no
15800       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15801       export_dynamic_flag_spec='${wl}-E'
15802       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15803       # Instead, shared libraries are loaded at an image base (0x10000000 by
15804       # default) and relocated if they conflict, which is a slow very memory
15805       # consuming and fragmenting process.  To avoid this, we pick a random,
15806       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15807       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15808       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15809       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'
15810       ;;
15811
15812     gnu* | linux* | k*bsd*-gnu)
15813       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15814         tmp_addflag=
15815         case $cc_basename,$host_cpu in
15816         pgcc*)                          # Portland Group C compiler
15817           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'
15818           tmp_addflag=' $pic_flag'
15819           ;;
15820         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15821           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'
15822           tmp_addflag=' $pic_flag -Mnomain' ;;
15823         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15824           tmp_addflag=' -i_dynamic' ;;
15825         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15826           tmp_addflag=' -i_dynamic -nofor_main' ;;
15827         ifc* | ifort*)                  # Intel Fortran compiler
15828           tmp_addflag=' -nofor_main' ;;
15829         esac
15830         case `$CC -V 2>&1 | sed 5q` in
15831         *Sun\ C*)                       # Sun C 5.9
15832           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15833           tmp_sharedflag='-G' ;;
15834         *Sun\ F*)                       # Sun Fortran 8.3
15835           tmp_sharedflag='-G' ;;
15836         *)
15837           tmp_sharedflag='-shared' ;;
15838         esac
15839         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15840
15841         if test $supports_anon_versioning = yes; then
15842           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15843   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15844   $echo "local: *; };" >> $output_objdir/$libname.ver~
15845           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15846         fi
15847         link_all_deplibs=no
15848       else
15849         ld_shlibs=no
15850       fi
15851       ;;
15852
15853     netbsd* | netbsdelf*-gnu)
15854       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15855         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15856         wlarc=
15857       else
15858         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15859         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15860       fi
15861       ;;
15862
15863     solaris*)
15864       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15865         ld_shlibs=no
15866         cat <<EOF 1>&2
15867
15868 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15869 *** create shared libraries on Solaris systems.  Therefore, libtool
15870 *** is disabling shared libraries support.  We urge you to upgrade GNU
15871 *** binutils to release 2.9.1 or newer.  Another option is to modify
15872 *** your PATH or compiler configuration so that the native linker is
15873 *** used, and then restart.
15874
15875 EOF
15876       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15877         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15879       else
15880         ld_shlibs=no
15881       fi
15882       ;;
15883
15884     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15885       case `$LD -v 2>&1` in
15886         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15887         ld_shlibs=no
15888         cat <<_LT_EOF 1>&2
15889
15890 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15891 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15892 *** is disabling shared libraries support.  We urge you to upgrade GNU
15893 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15894 *** your PATH or compiler configuration so that the native linker is
15895 *** used, and then restart.
15896
15897 _LT_EOF
15898         ;;
15899         *)
15900           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15901             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15902             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15903             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15904           else
15905             ld_shlibs=no
15906           fi
15907         ;;
15908       esac
15909       ;;
15910
15911     sunos4*)
15912       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15913       wlarc=
15914       hardcode_direct=yes
15915       hardcode_shlibpath_var=no
15916       ;;
15917
15918     *)
15919       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15920         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15921         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15922       else
15923         ld_shlibs=no
15924       fi
15925       ;;
15926     esac
15927
15928     if test "$ld_shlibs" = no; then
15929       runpath_var=
15930       hardcode_libdir_flag_spec=
15931       export_dynamic_flag_spec=
15932       whole_archive_flag_spec=
15933     fi
15934   else
15935     # PORTME fill in a description of your system's linker (not GNU ld)
15936     case $host_os in
15937     aix3*)
15938       allow_undefined_flag=unsupported
15939       always_export_symbols=yes
15940       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'
15941       # Note: this linker hardcodes the directories in LIBPATH if there
15942       # are no directories specified by -L.
15943       hardcode_minus_L=yes
15944       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15945         # Neither direct hardcoding nor static linking is supported with a
15946         # broken collect2.
15947         hardcode_direct=unsupported
15948       fi
15949       ;;
15950
15951     aix4* | aix5*)
15952       if test "$host_cpu" = ia64; then
15953         # On IA64, the linker does run time linking by default, so we don't
15954         # have to do anything special.
15955         aix_use_runtimelinking=no
15956         exp_sym_flag='-Bexport'
15957         no_entry_flag=""
15958       else
15959         # If we're using GNU nm, then we don't want the "-C" option.
15960         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15961         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15962           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'
15963         else
15964           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'
15965         fi
15966         aix_use_runtimelinking=no
15967
15968         # Test if we are trying to use run time linking or normal
15969         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15970         # need to do runtime linking.
15971         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15972           for ld_flag in $LDFLAGS; do
15973           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15974             aix_use_runtimelinking=yes
15975             break
15976           fi
15977           done
15978           ;;
15979         esac
15980
15981         exp_sym_flag='-bexport'
15982         no_entry_flag='-bnoentry'
15983       fi
15984
15985       # When large executables or shared objects are built, AIX ld can
15986       # have problems creating the table of contents.  If linking a library
15987       # or program results in "error TOC overflow" add -mminimal-toc to
15988       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15989       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15990
15991       archive_cmds=''
15992       hardcode_direct=yes
15993       hardcode_libdir_separator=':'
15994       link_all_deplibs=yes
15995
15996       if test "$GCC" = yes; then
15997         case $host_os in aix4.[012]|aix4.[012].*)
15998         # We only want to do this on AIX 4.2 and lower, the check
15999         # below for broken collect2 doesn't work under 4.3+
16000           collect2name=`${CC} -print-prog-name=collect2`
16001           if test -f "$collect2name" && \
16002            strings "$collect2name" | grep resolve_lib_name >/dev/null
16003           then
16004           # We have reworked collect2
16005           :
16006           else
16007           # We have old collect2
16008           hardcode_direct=unsupported
16009           # It fails to find uninstalled libraries when the uninstalled
16010           # path is not listed in the libpath.  Setting hardcode_minus_L
16011           # to unsupported forces relinking
16012           hardcode_minus_L=yes
16013           hardcode_libdir_flag_spec='-L$libdir'
16014           hardcode_libdir_separator=
16015           fi
16016           ;;
16017         esac
16018         shared_flag='-shared'
16019         if test "$aix_use_runtimelinking" = yes; then
16020           shared_flag="$shared_flag "'${wl}-G'
16021         fi
16022       else
16023         # not using gcc
16024         if test "$host_cpu" = ia64; then
16025         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16026         # chokes on -Wl,-G. The following line is correct:
16027           shared_flag='-G'
16028         else
16029           if test "$aix_use_runtimelinking" = yes; then
16030             shared_flag='${wl}-G'
16031           else
16032             shared_flag='${wl}-bM:SRE'
16033           fi
16034         fi
16035       fi
16036
16037       # It seems that -bexpall does not export symbols beginning with
16038       # underscore (_), so it is better to generate a list of symbols to export.
16039       always_export_symbols=yes
16040       if test "$aix_use_runtimelinking" = yes; then
16041         # Warning - without using the other runtime loading flags (-brtl),
16042         # -berok will link without error, but may produce a broken library.
16043         allow_undefined_flag='-berok'
16044        # Determine the default libpath from the value encoded in an empty executable.
16045        cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051
16052 int
16053 main ()
16054 {
16055
16056   ;
16057   return 0;
16058 }
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_link") 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } && {
16074          test -z "$ac_c_werror_flag" ||
16075          test ! -s conftest.err
16076        } && test -s conftest$ac_exeext &&
16077        $as_test_x conftest$ac_exeext; then
16078
16079 lt_aix_libpath_sed='
16080     /Import File Strings/,/^$/ {
16081         /^0/ {
16082             s/^0  *\(.*\)$/\1/
16083             p
16084         }
16085     }'
16086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16087 # Check for a 64-bit object if we didn't find anything.
16088 if test -z "$aix_libpath"; then
16089   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16090 fi
16091 else
16092   echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095
16096 fi
16097
16098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16099       conftest$ac_exeext conftest.$ac_ext
16100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16101
16102        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16103         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"
16104        else
16105         if test "$host_cpu" = ia64; then
16106           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16107           allow_undefined_flag="-z nodefs"
16108           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"
16109         else
16110          # Determine the default libpath from the value encoded in an empty executable.
16111          cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117
16118 int
16119 main ()
16120 {
16121
16122   ;
16123   return 0;
16124 }
16125 _ACEOF
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130   *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133   (eval "$ac_link") 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } && {
16140          test -z "$ac_c_werror_flag" ||
16141          test ! -s conftest.err
16142        } && test -s conftest$ac_exeext &&
16143        $as_test_x conftest$ac_exeext; then
16144
16145 lt_aix_libpath_sed='
16146     /Import File Strings/,/^$/ {
16147         /^0/ {
16148             s/^0  *\(.*\)$/\1/
16149             p
16150         }
16151     }'
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16153 # Check for a 64-bit object if we didn't find anything.
16154 if test -z "$aix_libpath"; then
16155   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16156 fi
16157 else
16158   echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161
16162 fi
16163
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165       conftest$ac_exeext conftest.$ac_ext
16166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16167
16168          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16169           # Warning - without using the other run time loading flags,
16170           # -berok will link without error, but may produce a broken library.
16171           no_undefined_flag=' ${wl}-bernotok'
16172           allow_undefined_flag=' ${wl}-berok'
16173           # Exported symbols can be pulled into shared objects from archives
16174           whole_archive_flag_spec='$convenience'
16175           archive_cmds_need_lc=yes
16176           # This is similar to how AIX traditionally builds its shared libraries.
16177           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'
16178         fi
16179       fi
16180       ;;
16181
16182     amigaos*)
16183       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)'
16184       hardcode_libdir_flag_spec='-L$libdir'
16185       hardcode_minus_L=yes
16186       # see comment about different semantics on the GNU ld section
16187       ld_shlibs=no
16188       ;;
16189
16190     bsdi[45]*)
16191       export_dynamic_flag_spec=-rdynamic
16192       ;;
16193
16194     cygwin* | mingw* | pw32*)
16195       # When not using gcc, we currently assume that we are using
16196       # Microsoft Visual C++.
16197       # hardcode_libdir_flag_spec is actually meaningless, as there is
16198       # no search path for DLLs.
16199       hardcode_libdir_flag_spec=' '
16200       allow_undefined_flag=unsupported
16201       # Tell ltmain to make .lib files, not .a files.
16202       libext=lib
16203       # Tell ltmain to make .dll files, not .so files.
16204       shrext_cmds=".dll"
16205       # FIXME: Setting linknames here is a bad hack.
16206       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16207       # The linker will automatically build a .lib file if we build a DLL.
16208       old_archive_From_new_cmds='true'
16209       # FIXME: Should let the user specify the lib program.
16210       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16211       fix_srcfile_path='`cygpath -w "$srcfile"`'
16212       enable_shared_with_static_runtimes=yes
16213       ;;
16214
16215     darwin* | rhapsody*)
16216       case $host_os in
16217         rhapsody* | darwin1.[012])
16218          allow_undefined_flag='${wl}-undefined ${wl}suppress'
16219          ;;
16220        *) # Darwin 1.3 on
16221          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16222            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16223          else
16224            case ${MACOSX_DEPLOYMENT_TARGET} in
16225              10.[012])
16226                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16227                ;;
16228              10.*)
16229                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16230                ;;
16231            esac
16232          fi
16233          ;;
16234       esac
16235       archive_cmds_need_lc=no
16236       hardcode_direct=no
16237       hardcode_automatic=yes
16238       hardcode_shlibpath_var=unsupported
16239       whole_archive_flag_spec=''
16240       link_all_deplibs=yes
16241     if test "$GCC" = yes ; then
16242         output_verbose_link_cmd='echo'
16243         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16244       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16245       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16246       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}'
16247       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}'
16248     else
16249       case $cc_basename in
16250         xlc*)
16251          output_verbose_link_cmd='echo'
16252          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16253          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16254           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16255          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16256           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}'
16257           ;;
16258        *)
16259          ld_shlibs=no
16260           ;;
16261       esac
16262     fi
16263       ;;
16264
16265     dgux*)
16266       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267       hardcode_libdir_flag_spec='-L$libdir'
16268       hardcode_shlibpath_var=no
16269       ;;
16270
16271     freebsd1*)
16272       ld_shlibs=no
16273       ;;
16274
16275     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16276     # support.  Future versions do this automatically, but an explicit c++rt0.o
16277     # does not break anything, and helps significantly (at the cost of a little
16278     # extra space).
16279     freebsd2.2*)
16280       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16281       hardcode_libdir_flag_spec='-R$libdir'
16282       hardcode_direct=yes
16283       hardcode_shlibpath_var=no
16284       ;;
16285
16286     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16287     freebsd2*)
16288       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16289       hardcode_direct=yes
16290       hardcode_minus_L=yes
16291       hardcode_shlibpath_var=no
16292       ;;
16293
16294     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16295     freebsd* | dragonfly*)
16296       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16297       hardcode_libdir_flag_spec='-R$libdir'
16298       hardcode_direct=yes
16299       hardcode_shlibpath_var=no
16300       ;;
16301
16302     hpux9*)
16303       if test "$GCC" = yes; then
16304         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'
16305       else
16306         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'
16307       fi
16308       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16309       hardcode_libdir_separator=:
16310       hardcode_direct=yes
16311
16312       # hardcode_minus_L: Not really in the search PATH,
16313       # but as the default location of the library.
16314       hardcode_minus_L=yes
16315       export_dynamic_flag_spec='${wl}-E'
16316       ;;
16317
16318     hpux10*)
16319       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16320         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16321       else
16322         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16323       fi
16324       if test "$with_gnu_ld" = no; then
16325         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16326         hardcode_libdir_separator=:
16327
16328         hardcode_direct=yes
16329         export_dynamic_flag_spec='${wl}-E'
16330
16331         # hardcode_minus_L: Not really in the search PATH,
16332         # but as the default location of the library.
16333         hardcode_minus_L=yes
16334       fi
16335       ;;
16336
16337     hpux11*)
16338       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16339         case $host_cpu in
16340         hppa*64*)
16341           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16342           ;;
16343         ia64*)
16344           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16345           ;;
16346         *)
16347           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16348           ;;
16349         esac
16350       else
16351         case $host_cpu in
16352         hppa*64*)
16353           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16354           ;;
16355         ia64*)
16356           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16357           ;;
16358         *)
16359           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16360           ;;
16361         esac
16362       fi
16363       if test "$with_gnu_ld" = no; then
16364         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16365         hardcode_libdir_separator=:
16366
16367         case $host_cpu in
16368         hppa*64*|ia64*)
16369           hardcode_libdir_flag_spec_ld='+b $libdir'
16370           hardcode_direct=no
16371           hardcode_shlibpath_var=no
16372           ;;
16373         *)
16374           hardcode_direct=yes
16375           export_dynamic_flag_spec='${wl}-E'
16376
16377           # hardcode_minus_L: Not really in the search PATH,
16378           # but as the default location of the library.
16379           hardcode_minus_L=yes
16380           ;;
16381         esac
16382       fi
16383       ;;
16384
16385     irix5* | irix6* | nonstopux*)
16386       if test "$GCC" = yes; then
16387         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'
16388       else
16389         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'
16390         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16391       fi
16392       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16393       hardcode_libdir_separator=:
16394       link_all_deplibs=yes
16395       ;;
16396
16397     netbsd* | netbsdelf*-gnu)
16398       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16399         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16400       else
16401         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16402       fi
16403       hardcode_libdir_flag_spec='-R$libdir'
16404       hardcode_direct=yes
16405       hardcode_shlibpath_var=no
16406       ;;
16407
16408     newsos6)
16409       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410       hardcode_direct=yes
16411       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16412       hardcode_libdir_separator=:
16413       hardcode_shlibpath_var=no
16414       ;;
16415
16416     openbsd*)
16417       if test -f /usr/libexec/ld.so; then
16418         hardcode_direct=yes
16419         hardcode_shlibpath_var=no
16420         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16421           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16422           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16423           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16424           export_dynamic_flag_spec='${wl}-E'
16425         else
16426           case $host_os in
16427            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16428              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16429              hardcode_libdir_flag_spec='-R$libdir'
16430              ;;
16431            *)
16432              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16433              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16434              ;;
16435           esac
16436         fi
16437       else
16438         ld_shlibs=no
16439       fi
16440       ;;
16441
16442     os2*)
16443       hardcode_libdir_flag_spec='-L$libdir'
16444       hardcode_minus_L=yes
16445       allow_undefined_flag=unsupported
16446       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'
16447       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16448       ;;
16449
16450     osf3*)
16451       if test "$GCC" = yes; then
16452         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16453         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'
16454       else
16455         allow_undefined_flag=' -expect_unresolved \*'
16456         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'
16457       fi
16458       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16459       hardcode_libdir_separator=:
16460       ;;
16461
16462     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16463       if test "$GCC" = yes; then
16464         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16465         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'
16466         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16467       else
16468         allow_undefined_flag=' -expect_unresolved \*'
16469         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'
16470         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16471         $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'
16472
16473         # Both c and cxx compiler support -rpath directly
16474         hardcode_libdir_flag_spec='-rpath $libdir'
16475       fi
16476       hardcode_libdir_separator=:
16477       ;;
16478
16479     solaris*)
16480       no_undefined_flag=' -z text'
16481       if test "$GCC" = yes; then
16482         wlarc='${wl}'
16483         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16484         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16485           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16486       else
16487         wlarc=''
16488         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16490         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16491       fi
16492       hardcode_libdir_flag_spec='-R$libdir'
16493       hardcode_shlibpath_var=no
16494       case $host_os in
16495       solaris2.[0-5] | solaris2.[0-5].*) ;;
16496       *)
16497         # The compiler driver will combine and reorder linker options,
16498         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16499         # but is careful enough not to reorder.
16500         # Supported since Solaris 2.6 (maybe 2.5.1?)
16501         if test "$GCC" = yes; then
16502           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16503         else
16504           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16505         fi
16506         ;;
16507       esac
16508       link_all_deplibs=yes
16509       ;;
16510
16511     sunos4*)
16512       if test "x$host_vendor" = xsequent; then
16513         # Use $CC to link under sequent, because it throws in some extra .o
16514         # files that make .init and .fini sections work.
16515         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16516       else
16517         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16518       fi
16519       hardcode_libdir_flag_spec='-L$libdir'
16520       hardcode_direct=yes
16521       hardcode_minus_L=yes
16522       hardcode_shlibpath_var=no
16523       ;;
16524
16525     sysv4)
16526       case $host_vendor in
16527         sni)
16528           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16529           hardcode_direct=yes # is this really true???
16530         ;;
16531         siemens)
16532           ## LD is ld it makes a PLAMLIB
16533           ## CC just makes a GrossModule.
16534           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16535           reload_cmds='$CC -r -o $output$reload_objs'
16536           hardcode_direct=no
16537         ;;
16538         motorola)
16539           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16541         ;;
16542       esac
16543       runpath_var='LD_RUN_PATH'
16544       hardcode_shlibpath_var=no
16545       ;;
16546
16547     sysv4.3*)
16548       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549       hardcode_shlibpath_var=no
16550       export_dynamic_flag_spec='-Bexport'
16551       ;;
16552
16553     sysv4*MP*)
16554       if test -d /usr/nec; then
16555         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16556         hardcode_shlibpath_var=no
16557         runpath_var=LD_RUN_PATH
16558         hardcode_runpath_var=yes
16559         ld_shlibs=yes
16560       fi
16561       ;;
16562
16563     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16564       no_undefined_flag='${wl}-z,text'
16565       archive_cmds_need_lc=no
16566       hardcode_shlibpath_var=no
16567       runpath_var='LD_RUN_PATH'
16568
16569       if test "$GCC" = yes; then
16570         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572       else
16573         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16574         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16575       fi
16576       ;;
16577
16578     sysv5* | sco3.2v5* | sco5v6*)
16579       # Note: We can NOT use -z defs as we might desire, because we do not
16580       # link with -lc, and that would cause any symbols used from libc to
16581       # always be unresolved, which means just about no library would
16582       # ever link correctly.  If we're not using GNU ld we use -z text
16583       # though, which does catch some bad symbols but isn't as heavy-handed
16584       # as -z defs.
16585       no_undefined_flag='${wl}-z,text'
16586       allow_undefined_flag='${wl}-z,nodefs'
16587       archive_cmds_need_lc=no
16588       hardcode_shlibpath_var=no
16589       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16590       hardcode_libdir_separator=':'
16591       link_all_deplibs=yes
16592       export_dynamic_flag_spec='${wl}-Bexport'
16593       runpath_var='LD_RUN_PATH'
16594
16595       if test "$GCC" = yes; then
16596         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16598       else
16599         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16600         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16601       fi
16602       ;;
16603
16604     uts4*)
16605       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606       hardcode_libdir_flag_spec='-L$libdir'
16607       hardcode_shlibpath_var=no
16608       ;;
16609
16610     *)
16611       ld_shlibs=no
16612       ;;
16613     esac
16614   fi
16615
16616 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16617 echo "${ECHO_T}$ld_shlibs" >&6; }
16618 test "$ld_shlibs" = no && can_build_shared=no
16619
16620 #
16621 # Do we need to explicitly link libc?
16622 #
16623 case "x$archive_cmds_need_lc" in
16624 x|xyes)
16625   # Assume -lc should be added
16626   archive_cmds_need_lc=yes
16627
16628   if test "$enable_shared" = yes && test "$GCC" = yes; then
16629     case $archive_cmds in
16630     *'~'*)
16631       # FIXME: we may have to deal with multi-command sequences.
16632       ;;
16633     '$CC '*)
16634       # Test whether the compiler implicitly links with -lc since on some
16635       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16636       # to ld, don't add -lc before -lgcc.
16637       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16639       $rm conftest*
16640       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16641
16642       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16643   (eval $ac_compile) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } 2>conftest.err; then
16647         soname=conftest
16648         lib=conftest
16649         libobjs=conftest.$ac_objext
16650         deplibs=
16651         wl=$lt_prog_compiler_wl
16652         pic_flag=$lt_prog_compiler_pic
16653         compiler_flags=-v
16654         linker_flags=-v
16655         verstring=
16656         output_objdir=.
16657         libname=conftest
16658         lt_save_allow_undefined_flag=$allow_undefined_flag
16659         allow_undefined_flag=
16660         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16661   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); }
16665         then
16666           archive_cmds_need_lc=no
16667         else
16668           archive_cmds_need_lc=yes
16669         fi
16670         allow_undefined_flag=$lt_save_allow_undefined_flag
16671       else
16672         cat conftest.err 1>&5
16673       fi
16674       $rm conftest*
16675       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16676 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16677       ;;
16678     esac
16679   fi
16680   ;;
16681 esac
16682
16683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16685 library_names_spec=
16686 libname_spec='lib$name'
16687 soname_spec=
16688 shrext_cmds=".so"
16689 postinstall_cmds=
16690 postuninstall_cmds=
16691 finish_cmds=
16692 finish_eval=
16693 shlibpath_var=
16694 shlibpath_overrides_runpath=unknown
16695 version_type=none
16696 dynamic_linker="$host_os ld.so"
16697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16698
16699 if test "$GCC" = yes; then
16700   case $host_os in
16701     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16702     *) lt_awk_arg="/^libraries:/" ;;
16703   esac
16704   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16705   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
16706     # if the path contains ";" then we assume it to be the separator
16707     # otherwise default to the standard path separator (i.e. ":") - it is
16708     # assumed that no part of a normal pathname contains ";" but that should
16709     # okay in the real world where ";" in dirpaths is itself problematic.
16710     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16711   else
16712     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16713   fi
16714   # Ok, now we have the path, separated by spaces, we can step through it
16715   # and add multilib dir if necessary.
16716   lt_tmp_lt_search_path_spec=
16717   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16718   for lt_sys_path in $lt_search_path_spec; do
16719     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16720       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16721     else
16722       test -d "$lt_sys_path" && \
16723         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16724     fi
16725   done
16726   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
16727 BEGIN {RS=" "; FS="/|\n";} {
16728   lt_foo="";
16729   lt_count=0;
16730   for (lt_i = NF; lt_i > 0; lt_i--) {
16731     if ($lt_i != "" && $lt_i != ".") {
16732       if ($lt_i == "..") {
16733         lt_count++;
16734       } else {
16735         if (lt_count == 0) {
16736           lt_foo="/" $lt_i lt_foo;
16737         } else {
16738           lt_count--;
16739         }
16740       }
16741     }
16742   }
16743   if (lt_foo != "") { lt_freq[lt_foo]++; }
16744   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16745 }'`
16746   sys_lib_search_path_spec=`echo $lt_search_path_spec`
16747 else
16748   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16749 fi
16750 need_lib_prefix=unknown
16751 hardcode_into_libs=no
16752
16753 # when you set need_version to no, make sure it does not cause -set_version
16754 # flags to be left without arguments
16755 need_version=unknown
16756
16757 case $host_os in
16758 aix3*)
16759   version_type=linux
16760   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16761   shlibpath_var=LIBPATH
16762
16763   # AIX 3 has no versioning support, so we append a major version to the name.
16764   soname_spec='${libname}${release}${shared_ext}$major'
16765   ;;
16766
16767 aix4* | aix5*)
16768   version_type=linux
16769   need_lib_prefix=no
16770   need_version=no
16771   hardcode_into_libs=yes
16772   if test "$host_cpu" = ia64; then
16773     # AIX 5 supports IA64
16774     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16775     shlibpath_var=LD_LIBRARY_PATH
16776   else
16777     # With GCC up to 2.95.x, collect2 would create an import file
16778     # for dependence libraries.  The import file would start with
16779     # the line `#! .'.  This would cause the generated library to
16780     # depend on `.', always an invalid library.  This was fixed in
16781     # development snapshots of GCC prior to 3.0.
16782     case $host_os in
16783       aix4 | aix4.[01] | aix4.[01].*)
16784       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16785            echo ' yes '
16786            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16787         :
16788       else
16789         can_build_shared=no
16790       fi
16791       ;;
16792     esac
16793     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16794     # soname into executable. Probably we can add versioning support to
16795     # collect2, so additional links can be useful in future.
16796     if test "$aix_use_runtimelinking" = yes; then
16797       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16798       # instead of lib<name>.a to let people know that these are not
16799       # typical AIX shared libraries.
16800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16801     else
16802       # We preserve .a as extension for shared libraries through AIX4.2
16803       # and later when we are not doing run time linking.
16804       library_names_spec='${libname}${release}.a $libname.a'
16805       soname_spec='${libname}${release}${shared_ext}$major'
16806     fi
16807     shlibpath_var=LIBPATH
16808   fi
16809   ;;
16810
16811 amigaos*)
16812   library_names_spec='$libname.ixlibrary $libname.a'
16813   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16814   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'
16815   ;;
16816
16817 beos*)
16818   library_names_spec='${libname}${shared_ext}'
16819   dynamic_linker="$host_os ld.so"
16820   shlibpath_var=LIBRARY_PATH
16821   ;;
16822
16823 bsdi[45]*)
16824   version_type=linux
16825   need_version=no
16826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827   soname_spec='${libname}${release}${shared_ext}$major'
16828   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16829   shlibpath_var=LD_LIBRARY_PATH
16830   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16831   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16832   # the default ld.so.conf also contains /usr/contrib/lib and
16833   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16834   # libtool to hard-code these into programs
16835   ;;
16836
16837 cygwin* | mingw* | pw32*)
16838   version_type=windows
16839   shrext_cmds=".dll"
16840   need_version=no
16841   need_lib_prefix=no
16842
16843   case $GCC,$host_os in
16844   yes,cygwin* | yes,mingw* | yes,pw32*)
16845     library_names_spec='$libname.dll.a'
16846     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16847     postinstall_cmds='base_file=`basename \${file}`~
16848       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16849       dldir=$destdir/`dirname \$dlpath`~
16850       test -d \$dldir || mkdir -p \$dldir~
16851       $install_prog $dir/$dlname \$dldir/$dlname~
16852       chmod a+x \$dldir/$dlname'
16853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16854       dlpath=$dir/\$dldll~
16855        $rm \$dlpath'
16856     shlibpath_overrides_runpath=yes
16857
16858     case $host_os in
16859     cygwin*)
16860       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16861       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16862       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16863       ;;
16864     mingw*)
16865       # MinGW DLLs use traditional 'lib' prefix
16866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16867       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16868       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16869         # It is most probably a Windows format PATH printed by
16870         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16871         # path with ; separators, and with drive letters. We can handle the
16872         # drive letters (cygwin fileutils understands them), so leave them,
16873         # especially as we might pass files found there to a mingw objdump,
16874         # which wouldn't understand a cygwinified path. Ahh.
16875         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16876       else
16877         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16878       fi
16879       ;;
16880     pw32*)
16881       # pw32 DLLs use 'pw' prefix rather than 'lib'
16882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16883       ;;
16884     esac
16885     ;;
16886
16887   *)
16888     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16889     ;;
16890   esac
16891   dynamic_linker='Win32 ld.exe'
16892   # FIXME: first we should search . and the directory the executable is in
16893   shlibpath_var=PATH
16894   ;;
16895
16896 darwin* | rhapsody*)
16897   dynamic_linker="$host_os dyld"
16898   version_type=darwin
16899   need_lib_prefix=no
16900   need_version=no
16901   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16902   soname_spec='${libname}${release}${major}$shared_ext'
16903   shlibpath_overrides_runpath=yes
16904   shlibpath_var=DYLD_LIBRARY_PATH
16905   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16906
16907   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16908   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16909   ;;
16910
16911 dgux*)
16912   version_type=linux
16913   need_lib_prefix=no
16914   need_version=no
16915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16916   soname_spec='${libname}${release}${shared_ext}$major'
16917   shlibpath_var=LD_LIBRARY_PATH
16918   ;;
16919
16920 freebsd1*)
16921   dynamic_linker=no
16922   ;;
16923
16924 freebsd* | dragonfly*)
16925   # DragonFly does not have aout.  When/if they implement a new
16926   # versioning mechanism, adjust this.
16927   if test -x /usr/bin/objformat; then
16928     objformat=`/usr/bin/objformat`
16929   else
16930     case $host_os in
16931     freebsd[123]*) objformat=aout ;;
16932     *) objformat=elf ;;
16933     esac
16934   fi
16935   version_type=freebsd-$objformat
16936   case $version_type in
16937     freebsd-elf*)
16938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16939       need_version=no
16940       need_lib_prefix=no
16941       ;;
16942     freebsd-*)
16943       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16944       need_version=yes
16945       ;;
16946   esac
16947   shlibpath_var=LD_LIBRARY_PATH
16948   case $host_os in
16949   freebsd2*)
16950     shlibpath_overrides_runpath=yes
16951     ;;
16952   freebsd3.[01]* | freebsdelf3.[01]*)
16953     shlibpath_overrides_runpath=yes
16954     hardcode_into_libs=yes
16955     ;;
16956   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16957   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16958     shlibpath_overrides_runpath=no
16959     hardcode_into_libs=yes
16960     ;;
16961   *) # from 4.6 on, and DragonFly
16962     shlibpath_overrides_runpath=yes
16963     hardcode_into_libs=yes
16964     ;;
16965   esac
16966   ;;
16967
16968 gnu*)
16969   version_type=linux
16970   need_lib_prefix=no
16971   need_version=no
16972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16973   soname_spec='${libname}${release}${shared_ext}$major'
16974   shlibpath_var=LD_LIBRARY_PATH
16975   hardcode_into_libs=yes
16976   ;;
16977
16978 hpux9* | hpux10* | hpux11*)
16979   # Give a soname corresponding to the major version so that dld.sl refuses to
16980   # link against other versions.
16981   version_type=sunos
16982   need_lib_prefix=no
16983   need_version=no
16984   case $host_cpu in
16985   ia64*)
16986     shrext_cmds='.so'
16987     hardcode_into_libs=yes
16988     dynamic_linker="$host_os dld.so"
16989     shlibpath_var=LD_LIBRARY_PATH
16990     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16992     soname_spec='${libname}${release}${shared_ext}$major'
16993     if test "X$HPUX_IA64_MODE" = X32; then
16994       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16995     else
16996       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16997     fi
16998     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16999     ;;
17000    hppa*64*)
17001      shrext_cmds='.sl'
17002      hardcode_into_libs=yes
17003      dynamic_linker="$host_os dld.sl"
17004      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17005      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17006      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007      soname_spec='${libname}${release}${shared_ext}$major'
17008      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17009      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17010      ;;
17011    *)
17012     shrext_cmds='.sl'
17013     dynamic_linker="$host_os dld.sl"
17014     shlibpath_var=SHLIB_PATH
17015     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017     soname_spec='${libname}${release}${shared_ext}$major'
17018     ;;
17019   esac
17020   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17021   postinstall_cmds='chmod 555 $lib'
17022   ;;
17023
17024 interix[3-9]*)
17025   version_type=linux
17026   need_lib_prefix=no
17027   need_version=no
17028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17029   soname_spec='${libname}${release}${shared_ext}$major'
17030   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17031   shlibpath_var=LD_LIBRARY_PATH
17032   shlibpath_overrides_runpath=no
17033   hardcode_into_libs=yes
17034   ;;
17035
17036 irix5* | irix6* | nonstopux*)
17037   case $host_os in
17038     nonstopux*) version_type=nonstopux ;;
17039     *)
17040         if test "$lt_cv_prog_gnu_ld" = yes; then
17041                 version_type=linux
17042         else
17043                 version_type=irix
17044         fi ;;
17045   esac
17046   need_lib_prefix=no
17047   need_version=no
17048   soname_spec='${libname}${release}${shared_ext}$major'
17049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17050   case $host_os in
17051   irix5* | nonstopux*)
17052     libsuff= shlibsuff=
17053     ;;
17054   *)
17055     case $LD in # libtool.m4 will add one of these switches to LD
17056     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17057       libsuff= shlibsuff= libmagic=32-bit;;
17058     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17059       libsuff=32 shlibsuff=N32 libmagic=N32;;
17060     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17061       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17062     *) libsuff= shlibsuff= libmagic=never-match;;
17063     esac
17064     ;;
17065   esac
17066   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17067   shlibpath_overrides_runpath=no
17068   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17069   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17070   hardcode_into_libs=yes
17071   ;;
17072
17073 # No shared lib support for Linux oldld, aout, or coff.
17074 linux*oldld* | linux*aout* | linux*coff*)
17075   dynamic_linker=no
17076   ;;
17077
17078 # This must be Linux ELF.
17079 linux* | k*bsd*-gnu)
17080   version_type=linux
17081   need_lib_prefix=no
17082   need_version=no
17083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084   soname_spec='${libname}${release}${shared_ext}$major'
17085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17086   shlibpath_var=LD_LIBRARY_PATH
17087   shlibpath_overrides_runpath=no
17088   # This implies no fast_install, which is unacceptable.
17089   # Some rework will be needed to allow for fast_install
17090   # before this can be enabled.
17091   hardcode_into_libs=yes
17092
17093   # Append ld.so.conf contents to the search path
17094   if test -f /etc/ld.so.conf; then
17095     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17096     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17097   fi
17098
17099   # We used to test for /lib/ld.so.1 and disable shared libraries on
17100   # powerpc, because MkLinux only supported shared libraries with the
17101   # GNU dynamic linker.  Since this was broken with cross compilers,
17102   # most powerpc-linux boxes support dynamic linking these days and
17103   # people can always --disable-shared, the test was removed, and we
17104   # assume the GNU/Linux dynamic linker is in use.
17105   dynamic_linker='GNU/Linux ld.so'
17106   ;;
17107
17108 netbsdelf*-gnu)
17109   version_type=linux
17110   need_lib_prefix=no
17111   need_version=no
17112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17113   soname_spec='${libname}${release}${shared_ext}$major'
17114   shlibpath_var=LD_LIBRARY_PATH
17115   shlibpath_overrides_runpath=no
17116   hardcode_into_libs=yes
17117   dynamic_linker='NetBSD ld.elf_so'
17118   ;;
17119
17120 netbsd*)
17121   version_type=sunos
17122   need_lib_prefix=no
17123   need_version=no
17124   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17126     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17127     dynamic_linker='NetBSD (a.out) ld.so'
17128   else
17129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17130     soname_spec='${libname}${release}${shared_ext}$major'
17131     dynamic_linker='NetBSD ld.elf_so'
17132   fi
17133   shlibpath_var=LD_LIBRARY_PATH
17134   shlibpath_overrides_runpath=yes
17135   hardcode_into_libs=yes
17136   ;;
17137
17138 newsos6)
17139   version_type=linux
17140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141   shlibpath_var=LD_LIBRARY_PATH
17142   shlibpath_overrides_runpath=yes
17143   ;;
17144
17145 nto-qnx*)
17146   version_type=linux
17147   need_lib_prefix=no
17148   need_version=no
17149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150   soname_spec='${libname}${release}${shared_ext}$major'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   shlibpath_overrides_runpath=yes
17153   ;;
17154
17155 openbsd*)
17156   version_type=sunos
17157   sys_lib_dlsearch_path_spec="/usr/lib"
17158   need_lib_prefix=no
17159   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17160   case $host_os in
17161     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17162     *)                         need_version=no  ;;
17163   esac
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17166   shlibpath_var=LD_LIBRARY_PATH
17167   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17168     case $host_os in
17169       openbsd2.[89] | openbsd2.[89].*)
17170         shlibpath_overrides_runpath=no
17171         ;;
17172       *)
17173         shlibpath_overrides_runpath=yes
17174         ;;
17175       esac
17176   else
17177     shlibpath_overrides_runpath=yes
17178   fi
17179   ;;
17180
17181 os2*)
17182   libname_spec='$name'
17183   shrext_cmds=".dll"
17184   need_lib_prefix=no
17185   library_names_spec='$libname${shared_ext} $libname.a'
17186   dynamic_linker='OS/2 ld.exe'
17187   shlibpath_var=LIBPATH
17188   ;;
17189
17190 osf3* | osf4* | osf5*)
17191   version_type=osf
17192   need_lib_prefix=no
17193   need_version=no
17194   soname_spec='${libname}${release}${shared_ext}$major'
17195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196   shlibpath_var=LD_LIBRARY_PATH
17197   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17198   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17199   ;;
17200
17201 rdos*)
17202   dynamic_linker=no
17203   ;;
17204
17205 solaris*)
17206   version_type=linux
17207   need_lib_prefix=no
17208   need_version=no
17209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210   soname_spec='${libname}${release}${shared_ext}$major'
17211   shlibpath_var=LD_LIBRARY_PATH
17212   shlibpath_overrides_runpath=yes
17213   hardcode_into_libs=yes
17214   # ldd complains unless libraries are executable
17215   postinstall_cmds='chmod +x $lib'
17216   ;;
17217
17218 sunos4*)
17219   version_type=sunos
17220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   shlibpath_overrides_runpath=yes
17224   if test "$with_gnu_ld" = yes; then
17225     need_lib_prefix=no
17226   fi
17227   need_version=yes
17228   ;;
17229
17230 sysv4 | sysv4.3*)
17231   version_type=linux
17232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233   soname_spec='${libname}${release}${shared_ext}$major'
17234   shlibpath_var=LD_LIBRARY_PATH
17235   case $host_vendor in
17236     sni)
17237       shlibpath_overrides_runpath=no
17238       need_lib_prefix=no
17239       export_dynamic_flag_spec='${wl}-Blargedynsym'
17240       runpath_var=LD_RUN_PATH
17241       ;;
17242     siemens)
17243       need_lib_prefix=no
17244       ;;
17245     motorola)
17246       need_lib_prefix=no
17247       need_version=no
17248       shlibpath_overrides_runpath=no
17249       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17250       ;;
17251   esac
17252   ;;
17253
17254 sysv4*MP*)
17255   if test -d /usr/nec ;then
17256     version_type=linux
17257     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17258     soname_spec='$libname${shared_ext}.$major'
17259     shlibpath_var=LD_LIBRARY_PATH
17260   fi
17261   ;;
17262
17263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17264   version_type=freebsd-elf
17265   need_lib_prefix=no
17266   need_version=no
17267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17268   soname_spec='${libname}${release}${shared_ext}$major'
17269   shlibpath_var=LD_LIBRARY_PATH
17270   hardcode_into_libs=yes
17271   if test "$with_gnu_ld" = yes; then
17272     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17273     shlibpath_overrides_runpath=no
17274   else
17275     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17276     shlibpath_overrides_runpath=yes
17277     case $host_os in
17278       sco3.2v5*)
17279         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17280         ;;
17281     esac
17282   fi
17283   sys_lib_dlsearch_path_spec='/usr/lib'
17284   ;;
17285
17286 uts4*)
17287   version_type=linux
17288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289   soname_spec='${libname}${release}${shared_ext}$major'
17290   shlibpath_var=LD_LIBRARY_PATH
17291   ;;
17292
17293 *)
17294   dynamic_linker=no
17295   ;;
17296 esac
17297 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17298 echo "${ECHO_T}$dynamic_linker" >&6; }
17299 test "$dynamic_linker" = no && can_build_shared=no
17300
17301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17302 if test "$GCC" = yes; then
17303   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17304 fi
17305
17306 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17307 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17308 hardcode_action=
17309 if test -n "$hardcode_libdir_flag_spec" || \
17310    test -n "$runpath_var" || \
17311    test "X$hardcode_automatic" = "Xyes" ; then
17312
17313   # We can hardcode non-existant directories.
17314   if test "$hardcode_direct" != no &&
17315      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17316      # have to relink, otherwise we might link with an installed library
17317      # when we should be linking with a yet-to-be-installed one
17318      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17319      test "$hardcode_minus_L" != no; then
17320     # Linking always hardcodes the temporary library directory.
17321     hardcode_action=relink
17322   else
17323     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17324     hardcode_action=immediate
17325   fi
17326 else
17327   # We cannot hardcode anything, or else we can only hardcode existing
17328   # directories.
17329   hardcode_action=unsupported
17330 fi
17331 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17332 echo "${ECHO_T}$hardcode_action" >&6; }
17333
17334 if test "$hardcode_action" = relink; then
17335   # Fast installation is not supported
17336   enable_fast_install=no
17337 elif test "$shlibpath_overrides_runpath" = yes ||
17338      test "$enable_shared" = no; then
17339   # Fast installation is not necessary
17340   enable_fast_install=needless
17341 fi
17342
17343 striplib=
17344 old_striplib=
17345 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17346 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17347 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17348   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17349   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17350   { echo "$as_me:$LINENO: result: yes" >&5
17351 echo "${ECHO_T}yes" >&6; }
17352 else
17353 # FIXME - insert some real tests, host_os isn't really good enough
17354   case $host_os in
17355    darwin*)
17356        if test -n "$STRIP" ; then
17357          striplib="$STRIP -x"
17358          old_striplib="$STRIP -S"
17359          { echo "$as_me:$LINENO: result: yes" >&5
17360 echo "${ECHO_T}yes" >&6; }
17361        else
17362   { echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6; }
17364 fi
17365        ;;
17366    *)
17367   { echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6; }
17369     ;;
17370   esac
17371 fi
17372
17373 if test "x$enable_dlopen" != xyes; then
17374   enable_dlopen=unknown
17375   enable_dlopen_self=unknown
17376   enable_dlopen_self_static=unknown
17377 else
17378   lt_cv_dlopen=no
17379   lt_cv_dlopen_libs=
17380
17381   case $host_os in
17382   beos*)
17383     lt_cv_dlopen="load_add_on"
17384     lt_cv_dlopen_libs=
17385     lt_cv_dlopen_self=yes
17386     ;;
17387
17388   mingw* | pw32*)
17389     lt_cv_dlopen="LoadLibrary"
17390     lt_cv_dlopen_libs=
17391    ;;
17392
17393   cygwin*)
17394     lt_cv_dlopen="dlopen"
17395     lt_cv_dlopen_libs=
17396    ;;
17397
17398   darwin*)
17399   # if libdl is installed we need to link against it
17400     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   ac_check_lib_save_LIBS=$LIBS
17406 LIBS="-ldl  $LIBS"
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413
17414 /* Override any GCC internal prototype to avoid an error.
17415    Use char because int might match the return type of a GCC
17416    builtin and then its argument prototype would still apply.  */
17417 #ifdef __cplusplus
17418 extern "C"
17419 #endif
17420 char dlopen ();
17421 int
17422 main ()
17423 {
17424 return dlopen ();
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (ac_try="$ac_link"
17431 case "(($ac_try" in
17432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433   *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436   (eval "$ac_link") 2>conftest.er1
17437   ac_status=$?
17438   grep -v '^ *+' conftest.er1 >conftest.err
17439   rm -f conftest.er1
17440   cat conftest.err >&5
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); } && {
17443          test -z "$ac_c_werror_flag" ||
17444          test ! -s conftest.err
17445        } && test -s conftest$ac_exeext &&
17446        $as_test_x conftest$ac_exeext; then
17447   ac_cv_lib_dl_dlopen=yes
17448 else
17449   echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452         ac_cv_lib_dl_dlopen=no
17453 fi
17454
17455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17456       conftest$ac_exeext conftest.$ac_ext
17457 LIBS=$ac_check_lib_save_LIBS
17458 fi
17459 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17461 if test $ac_cv_lib_dl_dlopen = yes; then
17462   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17463 else
17464
17465     lt_cv_dlopen="dyld"
17466     lt_cv_dlopen_libs=
17467     lt_cv_dlopen_self=yes
17468
17469 fi
17470
17471    ;;
17472
17473   *)
17474     { echo "$as_me:$LINENO: checking for shl_load" >&5
17475 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17476 if test "${ac_cv_func_shl_load+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17487 #define shl_load innocuous_shl_load
17488
17489 /* System header to define __stub macros and hopefully few prototypes,
17490     which can conflict with char shl_load (); below.
17491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17492     <limits.h> exists even on freestanding compilers.  */
17493
17494 #ifdef __STDC__
17495 # include <limits.h>
17496 #else
17497 # include <assert.h>
17498 #endif
17499
17500 #undef shl_load
17501
17502 /* Override any GCC internal prototype to avoid an error.
17503    Use char because int might match the return type of a GCC
17504    builtin and then its argument prototype would still apply.  */
17505 #ifdef __cplusplus
17506 extern "C"
17507 #endif
17508 char shl_load ();
17509 /* The GNU C library defines this for functions which it implements
17510     to always fail with ENOSYS.  Some functions are actually named
17511     something starting with __ and the normal name is an alias.  */
17512 #if defined __stub_shl_load || defined __stub___shl_load
17513 choke me
17514 #endif
17515
17516 int
17517 main ()
17518 {
17519 return shl_load ();
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (ac_try="$ac_link"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_link") 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } && {
17538          test -z "$ac_c_werror_flag" ||
17539          test ! -s conftest.err
17540        } && test -s conftest$ac_exeext &&
17541        $as_test_x conftest$ac_exeext; then
17542   ac_cv_func_shl_load=yes
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         ac_cv_func_shl_load=no
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17551       conftest$ac_exeext conftest.$ac_ext
17552 fi
17553 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17554 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17555 if test $ac_cv_func_shl_load = yes; then
17556   lt_cv_dlopen="shl_load"
17557 else
17558   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17561   echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563   ac_check_lib_save_LIBS=$LIBS
17564 LIBS="-ldld  $LIBS"
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571
17572 /* Override any GCC internal prototype to avoid an error.
17573    Use char because int might match the return type of a GCC
17574    builtin and then its argument prototype would still apply.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 char shl_load ();
17579 int
17580 main ()
17581 {
17582 return shl_load ();
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (ac_try="$ac_link"
17589 case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594   (eval "$ac_link") 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } && {
17601          test -z "$ac_c_werror_flag" ||
17602          test ! -s conftest.err
17603        } && test -s conftest$ac_exeext &&
17604        $as_test_x conftest$ac_exeext; then
17605   ac_cv_lib_dld_shl_load=yes
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610         ac_cv_lib_dld_shl_load=no
17611 fi
17612
17613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17614       conftest$ac_exeext conftest.$ac_ext
17615 LIBS=$ac_check_lib_save_LIBS
17616 fi
17617 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17618 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17619 if test $ac_cv_lib_dld_shl_load = yes; then
17620   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17621 else
17622   { echo "$as_me:$LINENO: checking for dlopen" >&5
17623 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17624 if test "${ac_cv_func_dlopen+set}" = set; then
17625   echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627   cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17635 #define dlopen innocuous_dlopen
17636
17637 /* System header to define __stub macros and hopefully few prototypes,
17638     which can conflict with char dlopen (); below.
17639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640     <limits.h> exists even on freestanding compilers.  */
17641
17642 #ifdef __STDC__
17643 # include <limits.h>
17644 #else
17645 # include <assert.h>
17646 #endif
17647
17648 #undef dlopen
17649
17650 /* Override any GCC internal prototype to avoid an error.
17651    Use char because int might match the return type of a GCC
17652    builtin and then its argument prototype would still apply.  */
17653 #ifdef __cplusplus
17654 extern "C"
17655 #endif
17656 char dlopen ();
17657 /* The GNU C library defines this for functions which it implements
17658     to always fail with ENOSYS.  Some functions are actually named
17659     something starting with __ and the normal name is an alias.  */
17660 #if defined __stub_dlopen || defined __stub___dlopen
17661 choke me
17662 #endif
17663
17664 int
17665 main ()
17666 {
17667 return dlopen ();
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_link") 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } && {
17686          test -z "$ac_c_werror_flag" ||
17687          test ! -s conftest.err
17688        } && test -s conftest$ac_exeext &&
17689        $as_test_x conftest$ac_exeext; then
17690   ac_cv_func_dlopen=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695         ac_cv_func_dlopen=no
17696 fi
17697
17698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17699       conftest$ac_exeext conftest.$ac_ext
17700 fi
17701 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17702 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17703 if test $ac_cv_func_dlopen = yes; then
17704   lt_cv_dlopen="dlopen"
17705 else
17706   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17709   echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711   ac_check_lib_save_LIBS=$LIBS
17712 LIBS="-ldl  $LIBS"
17713 cat >conftest.$ac_ext <<_ACEOF
17714 /* confdefs.h.  */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h.  */
17719
17720 /* Override any GCC internal prototype to avoid an error.
17721    Use char because int might match the return type of a GCC
17722    builtin and then its argument prototype would still apply.  */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 char dlopen ();
17727 int
17728 main ()
17729 {
17730 return dlopen ();
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (ac_try="$ac_link"
17737 case "(($ac_try" in
17738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739   *) ac_try_echo=$ac_try;;
17740 esac
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742   (eval "$ac_link") 2>conftest.er1
17743   ac_status=$?
17744   grep -v '^ *+' conftest.er1 >conftest.err
17745   rm -f conftest.er1
17746   cat conftest.err >&5
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); } && {
17749          test -z "$ac_c_werror_flag" ||
17750          test ! -s conftest.err
17751        } && test -s conftest$ac_exeext &&
17752        $as_test_x conftest$ac_exeext; then
17753   ac_cv_lib_dl_dlopen=yes
17754 else
17755   echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758         ac_cv_lib_dl_dlopen=no
17759 fi
17760
17761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17762       conftest$ac_exeext conftest.$ac_ext
17763 LIBS=$ac_check_lib_save_LIBS
17764 fi
17765 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17767 if test $ac_cv_lib_dl_dlopen = yes; then
17768   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17769 else
17770   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17771 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17772 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   ac_check_lib_save_LIBS=$LIBS
17776 LIBS="-lsvld  $LIBS"
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783
17784 /* Override any GCC internal prototype to avoid an error.
17785    Use char because int might match the return type of a GCC
17786    builtin and then its argument prototype would still apply.  */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 char dlopen ();
17791 int
17792 main ()
17793 {
17794 return dlopen ();
17795   ;
17796   return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803   *) ac_try_echo=$ac_try;;
17804 esac
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806   (eval "$ac_link") 2>conftest.er1
17807   ac_status=$?
17808   grep -v '^ *+' conftest.er1 >conftest.err
17809   rm -f conftest.er1
17810   cat conftest.err >&5
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); } && {
17813          test -z "$ac_c_werror_flag" ||
17814          test ! -s conftest.err
17815        } && test -s conftest$ac_exeext &&
17816        $as_test_x conftest$ac_exeext; then
17817   ac_cv_lib_svld_dlopen=yes
17818 else
17819   echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17821
17822         ac_cv_lib_svld_dlopen=no
17823 fi
17824
17825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17826       conftest$ac_exeext conftest.$ac_ext
17827 LIBS=$ac_check_lib_save_LIBS
17828 fi
17829 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17830 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17831 if test $ac_cv_lib_svld_dlopen = yes; then
17832   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17833 else
17834   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17835 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17836 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17837   echo $ECHO_N "(cached) $ECHO_C" >&6
17838 else
17839   ac_check_lib_save_LIBS=$LIBS
17840 LIBS="-ldld  $LIBS"
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h.  */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h.  */
17847
17848 /* Override any GCC internal prototype to avoid an error.
17849    Use char because int might match the return type of a GCC
17850    builtin and then its argument prototype would still apply.  */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 char dld_link ();
17855 int
17856 main ()
17857 {
17858 return dld_link ();
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_link") 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } && {
17877          test -z "$ac_c_werror_flag" ||
17878          test ! -s conftest.err
17879        } && test -s conftest$ac_exeext &&
17880        $as_test_x conftest$ac_exeext; then
17881   ac_cv_lib_dld_dld_link=yes
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886         ac_cv_lib_dld_dld_link=no
17887 fi
17888
17889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17890       conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17892 fi
17893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17894 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17895 if test $ac_cv_lib_dld_dld_link = yes; then
17896   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17897 fi
17898
17899
17900 fi
17901
17902
17903 fi
17904
17905
17906 fi
17907
17908
17909 fi
17910
17911
17912 fi
17913
17914     ;;
17915   esac
17916
17917   if test "x$lt_cv_dlopen" != xno; then
17918     enable_dlopen=yes
17919   else
17920     enable_dlopen=no
17921   fi
17922
17923   case $lt_cv_dlopen in
17924   dlopen)
17925     save_CPPFLAGS="$CPPFLAGS"
17926     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17927
17928     save_LDFLAGS="$LDFLAGS"
17929     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17930
17931     save_LIBS="$LIBS"
17932     LIBS="$lt_cv_dlopen_libs $LIBS"
17933
17934     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17935 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17936 if test "${lt_cv_dlopen_self+set}" = set; then
17937   echo $ECHO_N "(cached) $ECHO_C" >&6
17938 else
17939           if test "$cross_compiling" = yes; then :
17940   lt_cv_dlopen_self=cross
17941 else
17942   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17943   lt_status=$lt_dlunknown
17944   cat > conftest.$ac_ext <<EOF
17945 #line 17945 "configure"
17946 #include "confdefs.h"
17947
17948 #if HAVE_DLFCN_H
17949 #include <dlfcn.h>
17950 #endif
17951
17952 #include <stdio.h>
17953
17954 #ifdef RTLD_GLOBAL
17955 #  define LT_DLGLOBAL           RTLD_GLOBAL
17956 #else
17957 #  ifdef DL_GLOBAL
17958 #    define LT_DLGLOBAL         DL_GLOBAL
17959 #  else
17960 #    define LT_DLGLOBAL         0
17961 #  endif
17962 #endif
17963
17964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17965    find out it does not work in some platform. */
17966 #ifndef LT_DLLAZY_OR_NOW
17967 #  ifdef RTLD_LAZY
17968 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17969 #  else
17970 #    ifdef DL_LAZY
17971 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17972 #    else
17973 #      ifdef RTLD_NOW
17974 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17975 #      else
17976 #        ifdef DL_NOW
17977 #          define LT_DLLAZY_OR_NOW      DL_NOW
17978 #        else
17979 #          define LT_DLLAZY_OR_NOW      0
17980 #        endif
17981 #      endif
17982 #    endif
17983 #  endif
17984 #endif
17985
17986 #ifdef __cplusplus
17987 extern "C" void exit (int);
17988 #endif
17989
17990 void fnord() { int i=42;}
17991 int main ()
17992 {
17993   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17994   int status = $lt_dlunknown;
17995
17996   if (self)
17997     {
17998       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17999       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18000       /* dlclose (self); */
18001     }
18002   else
18003     puts (dlerror ());
18004
18005     exit (status);
18006 }
18007 EOF
18008   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009   (eval $ac_link) 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18013     (./conftest; exit; ) >&5 2>/dev/null
18014     lt_status=$?
18015     case x$lt_status in
18016       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18017       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18018       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18019     esac
18020   else :
18021     # compilation failed
18022     lt_cv_dlopen_self=no
18023   fi
18024 fi
18025 rm -fr conftest*
18026
18027
18028 fi
18029 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18030 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18031
18032     if test "x$lt_cv_dlopen_self" = xyes; then
18033       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18034       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18035 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18036 if test "${lt_cv_dlopen_self_static+set}" = set; then
18037   echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039           if test "$cross_compiling" = yes; then :
18040   lt_cv_dlopen_self_static=cross
18041 else
18042   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18043   lt_status=$lt_dlunknown
18044   cat > conftest.$ac_ext <<EOF
18045 #line 18045 "configure"
18046 #include "confdefs.h"
18047
18048 #if HAVE_DLFCN_H
18049 #include <dlfcn.h>
18050 #endif
18051
18052 #include <stdio.h>
18053
18054 #ifdef RTLD_GLOBAL
18055 #  define LT_DLGLOBAL           RTLD_GLOBAL
18056 #else
18057 #  ifdef DL_GLOBAL
18058 #    define LT_DLGLOBAL         DL_GLOBAL
18059 #  else
18060 #    define LT_DLGLOBAL         0
18061 #  endif
18062 #endif
18063
18064 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18065    find out it does not work in some platform. */
18066 #ifndef LT_DLLAZY_OR_NOW
18067 #  ifdef RTLD_LAZY
18068 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18069 #  else
18070 #    ifdef DL_LAZY
18071 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18072 #    else
18073 #      ifdef RTLD_NOW
18074 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18075 #      else
18076 #        ifdef DL_NOW
18077 #          define LT_DLLAZY_OR_NOW      DL_NOW
18078 #        else
18079 #          define LT_DLLAZY_OR_NOW      0
18080 #        endif
18081 #      endif
18082 #    endif
18083 #  endif
18084 #endif
18085
18086 #ifdef __cplusplus
18087 extern "C" void exit (int);
18088 #endif
18089
18090 void fnord() { int i=42;}
18091 int main ()
18092 {
18093   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18094   int status = $lt_dlunknown;
18095
18096   if (self)
18097     {
18098       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18099       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18100       /* dlclose (self); */
18101     }
18102   else
18103     puts (dlerror ());
18104
18105     exit (status);
18106 }
18107 EOF
18108   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109   (eval $ac_link) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18113     (./conftest; exit; ) >&5 2>/dev/null
18114     lt_status=$?
18115     case x$lt_status in
18116       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18117       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18118       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18119     esac
18120   else :
18121     # compilation failed
18122     lt_cv_dlopen_self_static=no
18123   fi
18124 fi
18125 rm -fr conftest*
18126
18127
18128 fi
18129 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18130 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18131     fi
18132
18133     CPPFLAGS="$save_CPPFLAGS"
18134     LDFLAGS="$save_LDFLAGS"
18135     LIBS="$save_LIBS"
18136     ;;
18137   esac
18138
18139   case $lt_cv_dlopen_self in
18140   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18141   *) enable_dlopen_self=unknown ;;
18142   esac
18143
18144   case $lt_cv_dlopen_self_static in
18145   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18146   *) enable_dlopen_self_static=unknown ;;
18147   esac
18148 fi
18149
18150
18151 # Report which library types will actually be built
18152 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18153 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18154 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
18155 echo "${ECHO_T}$can_build_shared" >&6; }
18156
18157 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18158 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18159 test "$can_build_shared" = "no" && enable_shared=no
18160
18161 # On AIX, shared libraries and static libraries use the same namespace, and
18162 # are all built from PIC.
18163 case $host_os in
18164 aix3*)
18165   test "$enable_shared" = yes && enable_static=no
18166   if test -n "$RANLIB"; then
18167     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18168     postinstall_cmds='$RANLIB $lib'
18169   fi
18170   ;;
18171
18172 aix4* | aix5*)
18173   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18174     test "$enable_shared" = yes && enable_static=no
18175   fi
18176     ;;
18177 esac
18178 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18179 echo "${ECHO_T}$enable_shared" >&6; }
18180
18181 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18182 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18183 # Make sure either enable_shared or enable_static is yes.
18184 test "$enable_shared" = yes || enable_static=yes
18185 { echo "$as_me:$LINENO: result: $enable_static" >&5
18186 echo "${ECHO_T}$enable_static" >&6; }
18187
18188 # The else clause should only fire when bootstrapping the
18189 # libtool distribution, otherwise you forgot to ship ltmain.sh
18190 # with your package, and you will get complaints that there are
18191 # no rules to generate ltmain.sh.
18192 if test -f "$ltmain"; then
18193   # See if we are running on zsh, and set the options which allow our commands through
18194   # without removal of \ escapes.
18195   if test -n "${ZSH_VERSION+set}" ; then
18196     setopt NO_GLOB_SUBST
18197   fi
18198   # Now quote all the things that may contain metacharacters while being
18199   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18200   # variables and quote the copies for generation of the libtool script.
18201   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18202     SED SHELL STRIP \
18203     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18204     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18205     deplibs_check_method reload_flag reload_cmds need_locks \
18206     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18207     lt_cv_sys_global_symbol_to_c_name_address \
18208     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18209     old_postinstall_cmds old_postuninstall_cmds \
18210     compiler \
18211     CC \
18212     LD \
18213     lt_prog_compiler_wl \
18214     lt_prog_compiler_pic \
18215     lt_prog_compiler_static \
18216     lt_prog_compiler_no_builtin_flag \
18217     export_dynamic_flag_spec \
18218     thread_safe_flag_spec \
18219     whole_archive_flag_spec \
18220     enable_shared_with_static_runtimes \
18221     old_archive_cmds \
18222     old_archive_from_new_cmds \
18223     predep_objects \
18224     postdep_objects \
18225     predeps \
18226     postdeps \
18227     compiler_lib_search_path \
18228     archive_cmds \
18229     archive_expsym_cmds \
18230     postinstall_cmds \
18231     postuninstall_cmds \
18232     old_archive_from_expsyms_cmds \
18233     allow_undefined_flag \
18234     no_undefined_flag \
18235     export_symbols_cmds \
18236     hardcode_libdir_flag_spec \
18237     hardcode_libdir_flag_spec_ld \
18238     hardcode_libdir_separator \
18239     hardcode_automatic \
18240     module_cmds \
18241     module_expsym_cmds \
18242     lt_cv_prog_compiler_c_o \
18243     fix_srcfile_path \
18244     exclude_expsyms \
18245     include_expsyms; do
18246
18247     case $var in
18248     old_archive_cmds | \
18249     old_archive_from_new_cmds | \
18250     archive_cmds | \
18251     archive_expsym_cmds | \
18252     module_cmds | \
18253     module_expsym_cmds | \
18254     old_archive_from_expsyms_cmds | \
18255     export_symbols_cmds | \
18256     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18257     postinstall_cmds | postuninstall_cmds | \
18258     old_postinstall_cmds | old_postuninstall_cmds | \
18259     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18260       # Double-quote double-evaled strings.
18261       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18262       ;;
18263     *)
18264       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18265       ;;
18266     esac
18267   done
18268
18269   case $lt_echo in
18270   *'\$0 --fallback-echo"')
18271     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18272     ;;
18273   esac
18274
18275 cfgfile="${ofile}T"
18276   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18277   $rm -f "$cfgfile"
18278   { echo "$as_me:$LINENO: creating $ofile" >&5
18279 echo "$as_me: creating $ofile" >&6;}
18280
18281   cat <<__EOF__ >> "$cfgfile"
18282 #! $SHELL
18283
18284 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18285 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18286 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18287 #
18288 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
18289 # Free Software Foundation, Inc.
18290 #
18291 # This file is part of GNU Libtool:
18292 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18293 #
18294 # This program is free software; you can redistribute it and/or modify
18295 # it under the terms of the GNU General Public License as published by
18296 # the Free Software Foundation; either version 2 of the License, or
18297 # (at your option) any later version.
18298 #
18299 # This program is distributed in the hope that it will be useful, but
18300 # WITHOUT ANY WARRANTY; without even the implied warranty of
18301 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18302 # General Public License for more details.
18303 #
18304 # You should have received a copy of the GNU General Public License
18305 # along with this program; if not, write to the Free Software
18306 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18307 #
18308 # As a special exception to the GNU General Public License, if you
18309 # distribute this file as part of a program that contains a
18310 # configuration script generated by Autoconf, you may include it under
18311 # the same distribution terms that you use for the rest of that program.
18312
18313 # A sed program that does not truncate output.
18314 SED=$lt_SED
18315
18316 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18317 Xsed="$SED -e 1s/^X//"
18318
18319 # The HP-UX ksh and POSIX shell print the target directory to stdout
18320 # if CDPATH is set.
18321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18322
18323 # The names of the tagged configurations supported by this script.
18324 available_tags=
18325
18326 # ### BEGIN LIBTOOL CONFIG
18327
18328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18329
18330 # Shell to use when invoking shell scripts.
18331 SHELL=$lt_SHELL
18332
18333 # Whether or not to build shared libraries.
18334 build_libtool_libs=$enable_shared
18335
18336 # Whether or not to build static libraries.
18337 build_old_libs=$enable_static
18338
18339 # Whether or not to add -lc for building shared libraries.
18340 build_libtool_need_lc=$archive_cmds_need_lc
18341
18342 # Whether or not to disallow shared libs when runtime libs are static
18343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18344
18345 # Whether or not to optimize for fast installation.
18346 fast_install=$enable_fast_install
18347
18348 # The host system.
18349 host_alias=$host_alias
18350 host=$host
18351 host_os=$host_os
18352
18353 # The build system.
18354 build_alias=$build_alias
18355 build=$build
18356 build_os=$build_os
18357
18358 # An echo program that does not interpret backslashes.
18359 echo=$lt_echo
18360
18361 # The archiver.
18362 AR=$lt_AR
18363 AR_FLAGS=$lt_AR_FLAGS
18364
18365 # A C compiler.
18366 LTCC=$lt_LTCC
18367
18368 # LTCC compiler flags.
18369 LTCFLAGS=$lt_LTCFLAGS
18370
18371 # A language-specific compiler.
18372 CC=$lt_compiler
18373
18374 # Is the compiler the GNU C compiler?
18375 with_gcc=$GCC
18376
18377 # An ERE matcher.
18378 EGREP=$lt_EGREP
18379
18380 # The linker used to build libraries.
18381 LD=$lt_LD
18382
18383 # Whether we need hard or soft links.
18384 LN_S=$lt_LN_S
18385
18386 # A BSD-compatible nm program.
18387 NM=$lt_NM
18388
18389 # A symbol stripping program
18390 STRIP=$lt_STRIP
18391
18392 # Used to examine libraries when file_magic_cmd begins "file"
18393 MAGIC_CMD=$MAGIC_CMD
18394
18395 # Used on cygwin: DLL creation program.
18396 DLLTOOL="$DLLTOOL"
18397
18398 # Used on cygwin: object dumper.
18399 OBJDUMP="$OBJDUMP"
18400
18401 # Used on cygwin: assembler.
18402 AS="$AS"
18403
18404 # The name of the directory that contains temporary libtool files.
18405 objdir=$objdir
18406
18407 # How to create reloadable object files.
18408 reload_flag=$lt_reload_flag
18409 reload_cmds=$lt_reload_cmds
18410
18411 # How to pass a linker flag through the compiler.
18412 wl=$lt_lt_prog_compiler_wl
18413
18414 # Object file suffix (normally "o").
18415 objext="$ac_objext"
18416
18417 # Old archive suffix (normally "a").
18418 libext="$libext"
18419
18420 # Shared library suffix (normally ".so").
18421 shrext_cmds='$shrext_cmds'
18422
18423 # Executable file suffix (normally "").
18424 exeext="$exeext"
18425
18426 # Additional compiler flags for building library objects.
18427 pic_flag=$lt_lt_prog_compiler_pic
18428 pic_mode=$pic_mode
18429
18430 # What is the maximum length of a command?
18431 max_cmd_len=$lt_cv_sys_max_cmd_len
18432
18433 # Does compiler simultaneously support -c and -o options?
18434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18435
18436 # Must we lock files when doing compilation?
18437 need_locks=$lt_need_locks
18438
18439 # Do we need the lib prefix for modules?
18440 need_lib_prefix=$need_lib_prefix
18441
18442 # Do we need a version for libraries?
18443 need_version=$need_version
18444
18445 # Whether dlopen is supported.
18446 dlopen_support=$enable_dlopen
18447
18448 # Whether dlopen of programs is supported.
18449 dlopen_self=$enable_dlopen_self
18450
18451 # Whether dlopen of statically linked programs is supported.
18452 dlopen_self_static=$enable_dlopen_self_static
18453
18454 # Compiler flag to prevent dynamic linking.
18455 link_static_flag=$lt_lt_prog_compiler_static
18456
18457 # Compiler flag to turn off builtin functions.
18458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18459
18460 # Compiler flag to allow reflexive dlopens.
18461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18462
18463 # Compiler flag to generate shared objects directly from archives.
18464 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18465
18466 # Compiler flag to generate thread-safe objects.
18467 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18468
18469 # Library versioning type.
18470 version_type=$version_type
18471
18472 # Format of library name prefix.
18473 libname_spec=$lt_libname_spec
18474
18475 # List of archive names.  First name is the real one, the rest are links.
18476 # The last name is the one that the linker finds with -lNAME.
18477 library_names_spec=$lt_library_names_spec
18478
18479 # The coded name of the library, if different from the real name.
18480 soname_spec=$lt_soname_spec
18481
18482 # Commands used to build and install an old-style archive.
18483 RANLIB=$lt_RANLIB
18484 old_archive_cmds=$lt_old_archive_cmds
18485 old_postinstall_cmds=$lt_old_postinstall_cmds
18486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18487
18488 # Create an old-style archive from a shared archive.
18489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18490
18491 # Create a temporary old-style archive to link instead of a shared archive.
18492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18493
18494 # Commands used to build and install a shared archive.
18495 archive_cmds=$lt_archive_cmds
18496 archive_expsym_cmds=$lt_archive_expsym_cmds
18497 postinstall_cmds=$lt_postinstall_cmds
18498 postuninstall_cmds=$lt_postuninstall_cmds
18499
18500 # Commands used to build a loadable module (assumed same as above if empty)
18501 module_cmds=$lt_module_cmds
18502 module_expsym_cmds=$lt_module_expsym_cmds
18503
18504 # Commands to strip libraries.
18505 old_striplib=$lt_old_striplib
18506 striplib=$lt_striplib
18507
18508 # Dependencies to place before the objects being linked to create a
18509 # shared library.
18510 predep_objects=$lt_predep_objects
18511
18512 # Dependencies to place after the objects being linked to create a
18513 # shared library.
18514 postdep_objects=$lt_postdep_objects
18515
18516 # Dependencies to place before the objects being linked to create a
18517 # shared library.
18518 predeps=$lt_predeps
18519
18520 # Dependencies to place after the objects being linked to create a
18521 # shared library.
18522 postdeps=$lt_postdeps
18523
18524 # The library search path used internally by the compiler when linking
18525 # a shared library.
18526 compiler_lib_search_path=$lt_compiler_lib_search_path
18527
18528 # Method to check whether dependent libraries are shared objects.
18529 deplibs_check_method=$lt_deplibs_check_method
18530
18531 # Command to use when deplibs_check_method == file_magic.
18532 file_magic_cmd=$lt_file_magic_cmd
18533
18534 # Flag that allows shared libraries with undefined symbols to be built.
18535 allow_undefined_flag=$lt_allow_undefined_flag
18536
18537 # Flag that forces no undefined symbols.
18538 no_undefined_flag=$lt_no_undefined_flag
18539
18540 # Commands used to finish a libtool library installation in a directory.
18541 finish_cmds=$lt_finish_cmds
18542
18543 # Same as above, but a single script fragment to be evaled but not shown.
18544 finish_eval=$lt_finish_eval
18545
18546 # Take the output of nm and produce a listing of raw symbols and C names.
18547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18548
18549 # Transform the output of nm in a proper C declaration
18550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18551
18552 # Transform the output of nm in a C name address pair
18553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18554
18555 # This is the shared library runtime path variable.
18556 runpath_var=$runpath_var
18557
18558 # This is the shared library path variable.
18559 shlibpath_var=$shlibpath_var
18560
18561 # Is shlibpath searched before the hard-coded library search path?
18562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18563
18564 # How to hardcode a shared library path into an executable.
18565 hardcode_action=$hardcode_action
18566
18567 # Whether we should hardcode library paths into libraries.
18568 hardcode_into_libs=$hardcode_into_libs
18569
18570 # Flag to hardcode \$libdir into a binary during linking.
18571 # This must work even if \$libdir does not exist.
18572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18573
18574 # If ld is used when linking, flag to hardcode \$libdir into
18575 # a binary during linking. This must work even if \$libdir does
18576 # not exist.
18577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18578
18579 # Whether we need a single -rpath flag with a separated argument.
18580 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18581
18582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18583 # resulting binary.
18584 hardcode_direct=$hardcode_direct
18585
18586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18587 # resulting binary.
18588 hardcode_minus_L=$hardcode_minus_L
18589
18590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18591 # the resulting binary.
18592 hardcode_shlibpath_var=$hardcode_shlibpath_var
18593
18594 # Set to yes if building a shared library automatically hardcodes DIR into the library
18595 # and all subsequent libraries and executables linked against it.
18596 hardcode_automatic=$hardcode_automatic
18597
18598 # Variables whose values should be saved in libtool wrapper scripts and
18599 # restored at relink time.
18600 variables_saved_for_relink="$variables_saved_for_relink"
18601
18602 # Whether libtool must link a program against all its dependency libraries.
18603 link_all_deplibs=$link_all_deplibs
18604
18605 # Compile-time system search path for libraries
18606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18607
18608 # Run-time system search path for libraries
18609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18610
18611 # Fix the shell variable \$srcfile for the compiler.
18612 fix_srcfile_path=$lt_fix_srcfile_path
18613
18614 # Set to yes if exported symbols are required.
18615 always_export_symbols=$always_export_symbols
18616
18617 # The commands to list exported symbols.
18618 export_symbols_cmds=$lt_export_symbols_cmds
18619
18620 # The commands to extract the exported symbol list from a shared archive.
18621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18622
18623 # Symbols that should not be listed in the preloaded symbols.
18624 exclude_expsyms=$lt_exclude_expsyms
18625
18626 # Symbols that must always be exported.
18627 include_expsyms=$lt_include_expsyms
18628
18629 # ### END LIBTOOL CONFIG
18630
18631 __EOF__
18632
18633
18634   case $host_os in
18635   aix3*)
18636     cat <<\EOF >> "$cfgfile"
18637
18638 # AIX sometimes has problems with the GCC collect2 program.  For some
18639 # reason, if we set the COLLECT_NAMES environment variable, the problems
18640 # vanish in a puff of smoke.
18641 if test "X${COLLECT_NAMES+set}" != Xset; then
18642   COLLECT_NAMES=
18643   export COLLECT_NAMES
18644 fi
18645 EOF
18646     ;;
18647   esac
18648
18649   # We use sed instead of cat because bash on DJGPP gets confused if
18650   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18651   # text mode, it properly converts lines to CR/LF.  This bash problem
18652   # is reportedly fixed, but why not run on old versions too?
18653   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18654
18655   mv -f "$cfgfile" "$ofile" || \
18656     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18657   chmod +x "$ofile"
18658
18659 else
18660   # If there is no Makefile yet, we rely on a make rule to execute
18661   # `config.status --recheck' to rerun these tests and create the
18662   # libtool script then.
18663   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18664   if test -f "$ltmain_in"; then
18665     test -f Makefile && make "$ltmain"
18666   fi
18667 fi
18668
18669
18670 ac_ext=c
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
18676 CC="$lt_save_CC"
18677
18678
18679 # Check whether --with-tags was given.
18680 if test "${with_tags+set}" = set; then
18681   withval=$with_tags; tagnames="$withval"
18682 fi
18683
18684
18685 if test -f "$ltmain" && test -n "$tagnames"; then
18686   if test ! -f "${ofile}"; then
18687     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18688 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18689   fi
18690
18691   if test -z "$LTCC"; then
18692     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18693     if test -z "$LTCC"; then
18694       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18695 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18696     else
18697       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18698 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18699     fi
18700   fi
18701   if test -z "$LTCFLAGS"; then
18702     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18703   fi
18704
18705   # Extract list of available tagged configurations in $ofile.
18706   # Note that this assumes the entire list is on one line.
18707   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18708
18709   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18710   for tagname in $tagnames; do
18711     IFS="$lt_save_ifs"
18712     # Check whether tagname contains only valid characters
18713     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18714     "") ;;
18715     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18716 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18717    { (exit 1); exit 1; }; }
18718         ;;
18719     esac
18720
18721     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18722     then
18723       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18724 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18725    { (exit 1); exit 1; }; }
18726     fi
18727
18728     # Update the list of available tags.
18729     if test -n "$tagname"; then
18730       echo appending configuration tag \"$tagname\" to $ofile
18731
18732       case $tagname in
18733       CXX)
18734         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18735             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18736             (test "X$CXX" != "Xg++"))) ; then
18737           ac_ext=cpp
18738 ac_cpp='$CXXCPP $CPPFLAGS'
18739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18742
18743
18744
18745
18746 archive_cmds_need_lc_CXX=no
18747 allow_undefined_flag_CXX=
18748 always_export_symbols_CXX=no
18749 archive_expsym_cmds_CXX=
18750 export_dynamic_flag_spec_CXX=
18751 hardcode_direct_CXX=no
18752 hardcode_libdir_flag_spec_CXX=
18753 hardcode_libdir_flag_spec_ld_CXX=
18754 hardcode_libdir_separator_CXX=
18755 hardcode_minus_L_CXX=no
18756 hardcode_shlibpath_var_CXX=unsupported
18757 hardcode_automatic_CXX=no
18758 module_cmds_CXX=
18759 module_expsym_cmds_CXX=
18760 link_all_deplibs_CXX=unknown
18761 old_archive_cmds_CXX=$old_archive_cmds
18762 no_undefined_flag_CXX=
18763 whole_archive_flag_spec_CXX=
18764 enable_shared_with_static_runtimes_CXX=no
18765
18766 # Dependencies to place before and after the object being linked:
18767 predep_objects_CXX=
18768 postdep_objects_CXX=
18769 predeps_CXX=
18770 postdeps_CXX=
18771 compiler_lib_search_path_CXX=
18772
18773 # Source file extension for C++ test sources.
18774 ac_ext=cpp
18775
18776 # Object file extension for compiled C++ test sources.
18777 objext=o
18778 objext_CXX=$objext
18779
18780 # Code to be used in simple compile tests
18781 lt_simple_compile_test_code="int some_variable = 0;"
18782
18783 # Code to be used in simple link tests
18784 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18785
18786 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18787
18788 # If no C compiler was specified, use CC.
18789 LTCC=${LTCC-"$CC"}
18790
18791 # If no C compiler flags were specified, use CFLAGS.
18792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18793
18794 # Allow CC to be a program name with arguments.
18795 compiler=$CC
18796
18797
18798 # save warnings/boilerplate of simple test code
18799 ac_outfile=conftest.$ac_objext
18800 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18801 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18802 _lt_compiler_boilerplate=`cat conftest.err`
18803 $rm conftest*
18804
18805 ac_outfile=conftest.$ac_objext
18806 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18807 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18808 _lt_linker_boilerplate=`cat conftest.err`
18809 $rm conftest*
18810
18811
18812 # Allow CC to be a program name with arguments.
18813 lt_save_CC=$CC
18814 lt_save_LD=$LD
18815 lt_save_GCC=$GCC
18816 GCC=$GXX
18817 lt_save_with_gnu_ld=$with_gnu_ld
18818 lt_save_path_LD=$lt_cv_path_LD
18819 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18820   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18821 else
18822   $as_unset lt_cv_prog_gnu_ld
18823 fi
18824 if test -n "${lt_cv_path_LDCXX+set}"; then
18825   lt_cv_path_LD=$lt_cv_path_LDCXX
18826 else
18827   $as_unset lt_cv_path_LD
18828 fi
18829 test -z "${LDCXX+set}" || LD=$LDCXX
18830 CC=${CXX-"c++"}
18831 compiler=$CC
18832 compiler_CXX=$CC
18833 for cc_temp in $compiler""; do
18834   case $cc_temp in
18835     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18836     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18837     \-*) ;;
18838     *) break;;
18839   esac
18840 done
18841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18842
18843
18844 # We don't want -fno-exception wen compiling C++ code, so set the
18845 # no_builtin_flag separately
18846 if test "$GXX" = yes; then
18847   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18848 else
18849   lt_prog_compiler_no_builtin_flag_CXX=
18850 fi
18851
18852 if test "$GXX" = yes; then
18853   # Set up default GNU C++ configuration
18854
18855
18856 # Check whether --with-gnu-ld was given.
18857 if test "${with_gnu_ld+set}" = set; then
18858   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18859 else
18860   with_gnu_ld=no
18861 fi
18862
18863 ac_prog=ld
18864 if test "$GCC" = yes; then
18865   # Check if gcc -print-prog-name=ld gives a path.
18866   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18867 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18868   case $host in
18869   *-*-mingw*)
18870     # gcc leaves a trailing carriage return which upsets mingw
18871     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18872   *)
18873     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18874   esac
18875   case $ac_prog in
18876     # Accept absolute paths.
18877     [\\/]* | ?:[\\/]*)
18878       re_direlt='/[^/][^/]*/\.\./'
18879       # Canonicalize the pathname of ld
18880       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18881       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18882         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18883       done
18884       test -z "$LD" && LD="$ac_prog"
18885       ;;
18886   "")
18887     # If it fails, then pretend we aren't using GCC.
18888     ac_prog=ld
18889     ;;
18890   *)
18891     # If it is relative, then search for the first ld in PATH.
18892     with_gnu_ld=unknown
18893     ;;
18894   esac
18895 elif test "$with_gnu_ld" = yes; then
18896   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18897 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18898 else
18899   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18900 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18901 fi
18902 if test "${lt_cv_path_LD+set}" = set; then
18903   echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905   if test -z "$LD"; then
18906   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18907   for ac_dir in $PATH; do
18908     IFS="$lt_save_ifs"
18909     test -z "$ac_dir" && ac_dir=.
18910     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18911       lt_cv_path_LD="$ac_dir/$ac_prog"
18912       # Check to see if the program is GNU ld.  I'd rather use --version,
18913       # but apparently some variants of GNU ld only accept -v.
18914       # Break only if it was the GNU/non-GNU ld that we prefer.
18915       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18916       *GNU* | *'with BFD'*)
18917         test "$with_gnu_ld" != no && break
18918         ;;
18919       *)
18920         test "$with_gnu_ld" != yes && break
18921         ;;
18922       esac
18923     fi
18924   done
18925   IFS="$lt_save_ifs"
18926 else
18927   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18928 fi
18929 fi
18930
18931 LD="$lt_cv_path_LD"
18932 if test -n "$LD"; then
18933   { echo "$as_me:$LINENO: result: $LD" >&5
18934 echo "${ECHO_T}$LD" >&6; }
18935 else
18936   { echo "$as_me:$LINENO: result: no" >&5
18937 echo "${ECHO_T}no" >&6; }
18938 fi
18939 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18940 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18941    { (exit 1); exit 1; }; }
18942 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18943 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18944 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18948 case `$LD -v 2>&1 </dev/null` in
18949 *GNU* | *'with BFD'*)
18950   lt_cv_prog_gnu_ld=yes
18951   ;;
18952 *)
18953   lt_cv_prog_gnu_ld=no
18954   ;;
18955 esac
18956 fi
18957 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18958 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18959 with_gnu_ld=$lt_cv_prog_gnu_ld
18960
18961
18962
18963   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18964   # archiving commands below assume that GNU ld is being used.
18965   if test "$with_gnu_ld" = yes; then
18966     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18967     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'
18968
18969     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18970     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18971
18972     # If archive_cmds runs LD, not CC, wlarc should be empty
18973     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18974     #     investigate it a little bit more. (MM)
18975     wlarc='${wl}'
18976
18977     # ancient GNU ld didn't support --whole-archive et. al.
18978     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18979         grep 'no-whole-archive' > /dev/null; then
18980       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18981     else
18982       whole_archive_flag_spec_CXX=
18983     fi
18984   else
18985     with_gnu_ld=no
18986     wlarc=
18987
18988     # A generic and very simple default shared library creation
18989     # command for GNU C++ for the case where it uses the native
18990     # linker, instead of GNU ld.  If possible, this setting should
18991     # overridden to take advantage of the native linker features on
18992     # the platform it is being used on.
18993     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18994   fi
18995
18996   # Commands to make compiler produce verbose output that lists
18997   # what "hidden" libraries, object files and flags are used when
18998   # linking a shared library.
18999   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19000
19001 else
19002   GXX=no
19003   with_gnu_ld=no
19004   wlarc=
19005 fi
19006
19007 # PORTME: fill in a description of your system's C++ link characteristics
19008 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19009 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19010 ld_shlibs_CXX=yes
19011 case $host_os in
19012   aix3*)
19013     # FIXME: insert proper C++ library support
19014     ld_shlibs_CXX=no
19015     ;;
19016   aix4* | aix5*)
19017     if test "$host_cpu" = ia64; then
19018       # On IA64, the linker does run time linking by default, so we don't
19019       # have to do anything special.
19020       aix_use_runtimelinking=no
19021       exp_sym_flag='-Bexport'
19022       no_entry_flag=""
19023     else
19024       aix_use_runtimelinking=no
19025
19026       # Test if we are trying to use run time linking or normal
19027       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19028       # need to do runtime linking.
19029       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19030         for ld_flag in $LDFLAGS; do
19031           case $ld_flag in
19032           *-brtl*)
19033             aix_use_runtimelinking=yes
19034             break
19035             ;;
19036           esac
19037         done
19038         ;;
19039       esac
19040
19041       exp_sym_flag='-bexport'
19042       no_entry_flag='-bnoentry'
19043     fi
19044
19045     # When large executables or shared objects are built, AIX ld can
19046     # have problems creating the table of contents.  If linking a library
19047     # or program results in "error TOC overflow" add -mminimal-toc to
19048     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19049     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19050
19051     archive_cmds_CXX=''
19052     hardcode_direct_CXX=yes
19053     hardcode_libdir_separator_CXX=':'
19054     link_all_deplibs_CXX=yes
19055
19056     if test "$GXX" = yes; then
19057       case $host_os in aix4.[012]|aix4.[012].*)
19058       # We only want to do this on AIX 4.2 and lower, the check
19059       # below for broken collect2 doesn't work under 4.3+
19060         collect2name=`${CC} -print-prog-name=collect2`
19061         if test -f "$collect2name" && \
19062            strings "$collect2name" | grep resolve_lib_name >/dev/null
19063         then
19064           # We have reworked collect2
19065           :
19066         else
19067           # We have old collect2
19068           hardcode_direct_CXX=unsupported
19069           # It fails to find uninstalled libraries when the uninstalled
19070           # path is not listed in the libpath.  Setting hardcode_minus_L
19071           # to unsupported forces relinking
19072           hardcode_minus_L_CXX=yes
19073           hardcode_libdir_flag_spec_CXX='-L$libdir'
19074           hardcode_libdir_separator_CXX=
19075         fi
19076         ;;
19077       esac
19078       shared_flag='-shared'
19079       if test "$aix_use_runtimelinking" = yes; then
19080         shared_flag="$shared_flag "'${wl}-G'
19081       fi
19082     else
19083       # not using gcc
19084       if test "$host_cpu" = ia64; then
19085         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19086         # chokes on -Wl,-G. The following line is correct:
19087         shared_flag='-G'
19088       else
19089         if test "$aix_use_runtimelinking" = yes; then
19090           shared_flag='${wl}-G'
19091         else
19092           shared_flag='${wl}-bM:SRE'
19093         fi
19094       fi
19095     fi
19096
19097     # It seems that -bexpall does not export symbols beginning with
19098     # underscore (_), so it is better to generate a list of symbols to export.
19099     always_export_symbols_CXX=yes
19100     if test "$aix_use_runtimelinking" = yes; then
19101       # Warning - without using the other runtime loading flags (-brtl),
19102       # -berok will link without error, but may produce a broken library.
19103       allow_undefined_flag_CXX='-berok'
19104       # Determine the default libpath from the value encoded in an empty executable.
19105       cat >conftest.$ac_ext <<_ACEOF
19106 /* confdefs.h.  */
19107 _ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h.  */
19111
19112 int
19113 main ()
19114 {
19115
19116   ;
19117   return 0;
19118 }
19119 _ACEOF
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127   (eval "$ac_link") 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } && {
19134          test -z "$ac_cxx_werror_flag" ||
19135          test ! -s conftest.err
19136        } && test -s conftest$ac_exeext &&
19137        $as_test_x conftest$ac_exeext; then
19138
19139 lt_aix_libpath_sed='
19140     /Import File Strings/,/^$/ {
19141         /^0/ {
19142             s/^0  *\(.*\)$/\1/
19143             p
19144         }
19145     }'
19146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19147 # Check for a 64-bit object if we didn't find anything.
19148 if test -z "$aix_libpath"; then
19149   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19150 fi
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19159       conftest$ac_exeext conftest.$ac_ext
19160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19161
19162       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19163
19164       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"
19165      else
19166       if test "$host_cpu" = ia64; then
19167         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19168         allow_undefined_flag_CXX="-z nodefs"
19169         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"
19170       else
19171         # Determine the default libpath from the value encoded in an empty executable.
19172         cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178
19179 int
19180 main ()
19181 {
19182
19183   ;
19184   return 0;
19185 }
19186 _ACEOF
19187 rm -f conftest.$ac_objext conftest$ac_exeext
19188 if { (ac_try="$ac_link"
19189 case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_link") 2>conftest.er1
19195   ac_status=$?
19196   grep -v '^ *+' conftest.er1 >conftest.err
19197   rm -f conftest.er1
19198   cat conftest.err >&5
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } && {
19201          test -z "$ac_cxx_werror_flag" ||
19202          test ! -s conftest.err
19203        } && test -s conftest$ac_exeext &&
19204        $as_test_x conftest$ac_exeext; then
19205
19206 lt_aix_libpath_sed='
19207     /Import File Strings/,/^$/ {
19208         /^0/ {
19209             s/^0  *\(.*\)$/\1/
19210             p
19211         }
19212     }'
19213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19214 # Check for a 64-bit object if we didn't find anything.
19215 if test -z "$aix_libpath"; then
19216   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19217 fi
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222
19223 fi
19224
19225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19226       conftest$ac_exeext conftest.$ac_ext
19227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19228
19229         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19230         # Warning - without using the other run time loading flags,
19231         # -berok will link without error, but may produce a broken library.
19232         no_undefined_flag_CXX=' ${wl}-bernotok'
19233         allow_undefined_flag_CXX=' ${wl}-berok'
19234         # Exported symbols can be pulled into shared objects from archives
19235         whole_archive_flag_spec_CXX='$convenience'
19236         archive_cmds_need_lc_CXX=yes
19237         # This is similar to how AIX traditionally builds its shared libraries.
19238         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'
19239       fi
19240     fi
19241     ;;
19242
19243   beos*)
19244     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19245       allow_undefined_flag_CXX=unsupported
19246       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19247       # support --undefined.  This deserves some investigation.  FIXME
19248       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19249     else
19250       ld_shlibs_CXX=no
19251     fi
19252     ;;
19253
19254   chorus*)
19255     case $cc_basename in
19256       *)
19257         # FIXME: insert proper C++ library support
19258         ld_shlibs_CXX=no
19259         ;;
19260     esac
19261     ;;
19262
19263   cygwin* | mingw* | pw32*)
19264     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19265     # as there is no search path for DLLs.
19266     hardcode_libdir_flag_spec_CXX='-L$libdir'
19267     allow_undefined_flag_CXX=unsupported
19268     always_export_symbols_CXX=no
19269     enable_shared_with_static_runtimes_CXX=yes
19270
19271     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19272       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'
19273       # If the export-symbols file already is a .def file (1st line
19274       # is EXPORTS), use it as is; otherwise, prepend...
19275       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19276         cp $export_symbols $output_objdir/$soname.def;
19277       else
19278         echo EXPORTS > $output_objdir/$soname.def;
19279         cat $export_symbols >> $output_objdir/$soname.def;
19280       fi~
19281       $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'
19282     else
19283       ld_shlibs_CXX=no
19284     fi
19285   ;;
19286       darwin* | rhapsody*)
19287         case $host_os in
19288         rhapsody* | darwin1.[012])
19289          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19290          ;;
19291        *) # Darwin 1.3 on
19292          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19293            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19294          else
19295            case ${MACOSX_DEPLOYMENT_TARGET} in
19296              10.[012])
19297                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19298                ;;
19299              10.*)
19300                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19301                ;;
19302            esac
19303          fi
19304          ;;
19305         esac
19306       archive_cmds_need_lc_CXX=no
19307       hardcode_direct_CXX=no
19308       hardcode_automatic_CXX=yes
19309       hardcode_shlibpath_var_CXX=unsupported
19310       whole_archive_flag_spec_CXX=''
19311       link_all_deplibs_CXX=yes
19312
19313     if test "$GXX" = yes ; then
19314       lt_int_apple_cc_single_mod=no
19315       output_verbose_link_cmd='echo'
19316       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19317        lt_int_apple_cc_single_mod=yes
19318       fi
19319       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19320        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19321       else
19322           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'
19323         fi
19324         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19325         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19326           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19327             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}'
19328           else
19329             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}'
19330           fi
19331             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}'
19332       else
19333       case $cc_basename in
19334         xlc*)
19335          output_verbose_link_cmd='echo'
19336           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19337           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19338           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19339           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19340           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}'
19341           ;;
19342        *)
19343          ld_shlibs_CXX=no
19344           ;;
19345       esac
19346       fi
19347         ;;
19348
19349   dgux*)
19350     case $cc_basename in
19351       ec++*)
19352         # FIXME: insert proper C++ library support
19353         ld_shlibs_CXX=no
19354         ;;
19355       ghcx*)
19356         # Green Hills C++ Compiler
19357         # FIXME: insert proper C++ library support
19358         ld_shlibs_CXX=no
19359         ;;
19360       *)
19361         # FIXME: insert proper C++ library support
19362         ld_shlibs_CXX=no
19363         ;;
19364     esac
19365     ;;
19366   freebsd[12]*)
19367     # C++ shared libraries reported to be fairly broken before switch to ELF
19368     ld_shlibs_CXX=no
19369     ;;
19370   freebsd-elf*)
19371     archive_cmds_need_lc_CXX=no
19372     ;;
19373   freebsd* | dragonfly*)
19374     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19375     # conventions
19376     ld_shlibs_CXX=yes
19377     ;;
19378   gnu*)
19379     ;;
19380   hpux9*)
19381     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19382     hardcode_libdir_separator_CXX=:
19383     export_dynamic_flag_spec_CXX='${wl}-E'
19384     hardcode_direct_CXX=yes
19385     hardcode_minus_L_CXX=yes # Not in the search PATH,
19386                                 # but as the default
19387                                 # location of the library.
19388
19389     case $cc_basename in
19390     CC*)
19391       # FIXME: insert proper C++ library support
19392       ld_shlibs_CXX=no
19393       ;;
19394     aCC*)
19395       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'
19396       # Commands to make compiler produce verbose output that lists
19397       # what "hidden" libraries, object files and flags are used when
19398       # linking a shared library.
19399       #
19400       # There doesn't appear to be a way to prevent this compiler from
19401       # explicitly linking system object files so we need to strip them
19402       # from the output so that they don't get included in the library
19403       # dependencies.
19404       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'
19405       ;;
19406     *)
19407       if test "$GXX" = yes; then
19408         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'
19409       else
19410         # FIXME: insert proper C++ library support
19411         ld_shlibs_CXX=no
19412       fi
19413       ;;
19414     esac
19415     ;;
19416   hpux10*|hpux11*)
19417     if test $with_gnu_ld = no; then
19418       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19419       hardcode_libdir_separator_CXX=:
19420
19421       case $host_cpu in
19422       hppa*64*|ia64*) ;;
19423       *)
19424         export_dynamic_flag_spec_CXX='${wl}-E'
19425         ;;
19426       esac
19427     fi
19428     case $host_cpu in
19429     hppa*64*|ia64*)
19430       hardcode_direct_CXX=no
19431       hardcode_shlibpath_var_CXX=no
19432       ;;
19433     *)
19434       hardcode_direct_CXX=yes
19435       hardcode_minus_L_CXX=yes # Not in the search PATH,
19436                                               # but as the default
19437                                               # location of the library.
19438       ;;
19439     esac
19440
19441     case $cc_basename in
19442       CC*)
19443         # FIXME: insert proper C++ library support
19444         ld_shlibs_CXX=no
19445         ;;
19446       aCC*)
19447         case $host_cpu in
19448         hppa*64*)
19449           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19450           ;;
19451         ia64*)
19452           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19453           ;;
19454         *)
19455           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19456           ;;
19457         esac
19458         # Commands to make compiler produce verbose output that lists
19459         # what "hidden" libraries, object files and flags are used when
19460         # linking a shared library.
19461         #
19462         # There doesn't appear to be a way to prevent this compiler from
19463         # explicitly linking system object files so we need to strip them
19464         # from the output so that they don't get included in the library
19465         # dependencies.
19466         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'
19467         ;;
19468       *)
19469         if test "$GXX" = yes; then
19470           if test $with_gnu_ld = no; then
19471             case $host_cpu in
19472             hppa*64*)
19473               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19474               ;;
19475             ia64*)
19476               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19477               ;;
19478             *)
19479               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'
19480               ;;
19481             esac
19482           fi
19483         else
19484           # FIXME: insert proper C++ library support
19485           ld_shlibs_CXX=no
19486         fi
19487         ;;
19488     esac
19489     ;;
19490   interix[3-9]*)
19491     hardcode_direct_CXX=no
19492     hardcode_shlibpath_var_CXX=no
19493     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19494     export_dynamic_flag_spec_CXX='${wl}-E'
19495     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19496     # Instead, shared libraries are loaded at an image base (0x10000000 by
19497     # default) and relocated if they conflict, which is a slow very memory
19498     # consuming and fragmenting process.  To avoid this, we pick a random,
19499     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19500     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19501     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'
19502     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'
19503     ;;
19504   irix5* | irix6*)
19505     case $cc_basename in
19506       CC*)
19507         # SGI C++
19508         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'
19509
19510         # Archives containing C++ object files must be created using
19511         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19512         # necessary to make sure instantiated templates are included
19513         # in the archive.
19514         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19515         ;;
19516       *)
19517         if test "$GXX" = yes; then
19518           if test "$with_gnu_ld" = no; then
19519             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'
19520           else
19521             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'
19522           fi
19523         fi
19524         link_all_deplibs_CXX=yes
19525         ;;
19526     esac
19527     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19528     hardcode_libdir_separator_CXX=:
19529     ;;
19530   linux* | k*bsd*-gnu)
19531     case $cc_basename in
19532       KCC*)
19533         # Kuck and Associates, Inc. (KAI) C++ Compiler
19534
19535         # KCC will only create a shared library if the output file
19536         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19537         # to its proper name (with version) after linking.
19538         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'
19539         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'
19540         # Commands to make compiler produce verbose output that lists
19541         # what "hidden" libraries, object files and flags are used when
19542         # linking a shared library.
19543         #
19544         # There doesn't appear to be a way to prevent this compiler from
19545         # explicitly linking system object files so we need to strip them
19546         # from the output so that they don't get included in the library
19547         # dependencies.
19548         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'
19549
19550         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19551         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19552
19553         # Archives containing C++ object files must be created using
19554         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19555         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19556         ;;
19557       icpc*)
19558         # Intel C++
19559         with_gnu_ld=yes
19560         # version 8.0 and above of icpc choke on multiply defined symbols
19561         # if we add $predep_objects and $postdep_objects, however 7.1 and
19562         # earlier do not add the objects themselves.
19563         case `$CC -V 2>&1` in
19564         *"Version 7."*)
19565           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19566           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'
19567           ;;
19568         *)  # Version 8.0 or newer
19569           tmp_idyn=
19570           case $host_cpu in
19571             ia64*) tmp_idyn=' -i_dynamic';;
19572           esac
19573           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19574           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'
19575           ;;
19576         esac
19577         archive_cmds_need_lc_CXX=no
19578         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19579         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19580         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19581         ;;
19582       pgCC*)
19583         # Portland Group C++ compiler
19584         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19585         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'
19586
19587         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19588         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19589         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'
19590         ;;
19591       cxx*)
19592         # Compaq C++
19593         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19594         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'
19595
19596         runpath_var=LD_RUN_PATH
19597         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19598         hardcode_libdir_separator_CXX=:
19599
19600         # Commands to make compiler produce verbose output that lists
19601         # what "hidden" libraries, object files and flags are used when
19602         # linking a shared library.
19603         #
19604         # There doesn't appear to be a way to prevent this compiler from
19605         # explicitly linking system object files so we need to strip them
19606         # from the output so that they don't get included in the library
19607         # dependencies.
19608         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'
19609         ;;
19610       *)
19611         case `$CC -V 2>&1 | sed 5q` in
19612         *Sun\ C*)
19613           # Sun C++ 5.9
19614           no_undefined_flag_CXX=' -zdefs'
19615           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19616           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19617           hardcode_libdir_flag_spec_CXX='-R$libdir'
19618           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19619
19620           # Not sure whether something based on
19621           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19622           # would be better.
19623           output_verbose_link_cmd='echo'
19624
19625           # Archives containing C++ object files must be created using
19626           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19627           # necessary to make sure instantiated templates are included
19628           # in the archive.
19629           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19630           ;;
19631         esac
19632         ;;
19633     esac
19634     ;;
19635   lynxos*)
19636     # FIXME: insert proper C++ library support
19637     ld_shlibs_CXX=no
19638     ;;
19639   m88k*)
19640     # FIXME: insert proper C++ library support
19641     ld_shlibs_CXX=no
19642     ;;
19643   mvs*)
19644     case $cc_basename in
19645       cxx*)
19646         # FIXME: insert proper C++ library support
19647         ld_shlibs_CXX=no
19648         ;;
19649       *)
19650         # FIXME: insert proper C++ library support
19651         ld_shlibs_CXX=no
19652         ;;
19653     esac
19654     ;;
19655   netbsd* | netbsdelf*-gnu)
19656     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19657       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19658       wlarc=
19659       hardcode_libdir_flag_spec_CXX='-R$libdir'
19660       hardcode_direct_CXX=yes
19661       hardcode_shlibpath_var_CXX=no
19662     fi
19663     # Workaround some broken pre-1.5 toolchains
19664     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19665     ;;
19666   openbsd2*)
19667     # C++ shared libraries are fairly broken
19668     ld_shlibs_CXX=no
19669     ;;
19670   openbsd*)
19671     if test -f /usr/libexec/ld.so; then
19672       hardcode_direct_CXX=yes
19673       hardcode_shlibpath_var_CXX=no
19674       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19675       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19676       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19677         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19678         export_dynamic_flag_spec_CXX='${wl}-E'
19679         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19680       fi
19681       output_verbose_link_cmd='echo'
19682     else
19683       ld_shlibs_CXX=no
19684     fi
19685     ;;
19686   osf3*)
19687     case $cc_basename in
19688       KCC*)
19689         # Kuck and Associates, Inc. (KAI) C++ Compiler
19690
19691         # KCC will only create a shared library if the output file
19692         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19693         # to its proper name (with version) after linking.
19694         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'
19695
19696         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19697         hardcode_libdir_separator_CXX=:
19698
19699         # Archives containing C++ object files must be created using
19700         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19701         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19702
19703         ;;
19704       RCC*)
19705         # Rational C++ 2.4.1
19706         # FIXME: insert proper C++ library support
19707         ld_shlibs_CXX=no
19708         ;;
19709       cxx*)
19710         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19711         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'
19712
19713         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19714         hardcode_libdir_separator_CXX=:
19715
19716         # Commands to make compiler produce verbose output that lists
19717         # what "hidden" libraries, object files and flags are used when
19718         # linking a shared library.
19719         #
19720         # There doesn't appear to be a way to prevent this compiler from
19721         # explicitly linking system object files so we need to strip them
19722         # from the output so that they don't get included in the library
19723         # dependencies.
19724         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'
19725         ;;
19726       *)
19727         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19728           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19729           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'
19730
19731           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19732           hardcode_libdir_separator_CXX=:
19733
19734           # Commands to make compiler produce verbose output that lists
19735           # what "hidden" libraries, object files and flags are used when
19736           # linking a shared library.
19737           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19738
19739         else
19740           # FIXME: insert proper C++ library support
19741           ld_shlibs_CXX=no
19742         fi
19743         ;;
19744     esac
19745     ;;
19746   osf4* | osf5*)
19747     case $cc_basename in
19748       KCC*)
19749         # Kuck and Associates, Inc. (KAI) C++ Compiler
19750
19751         # KCC will only create a shared library if the output file
19752         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19753         # to its proper name (with version) after linking.
19754         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'
19755
19756         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19757         hardcode_libdir_separator_CXX=:
19758
19759         # Archives containing C++ object files must be created using
19760         # the KAI C++ compiler.
19761         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19762         ;;
19763       RCC*)
19764         # Rational C++ 2.4.1
19765         # FIXME: insert proper C++ library support
19766         ld_shlibs_CXX=no
19767         ;;
19768       cxx*)
19769         allow_undefined_flag_CXX=' -expect_unresolved \*'
19770         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'
19771         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19772           echo "-hidden">> $lib.exp~
19773           $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~
19774           $rm $lib.exp'
19775
19776         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19777         hardcode_libdir_separator_CXX=:
19778
19779         # Commands to make compiler produce verbose output that lists
19780         # what "hidden" libraries, object files and flags are used when
19781         # linking a shared library.
19782         #
19783         # There doesn't appear to be a way to prevent this compiler from
19784         # explicitly linking system object files so we need to strip them
19785         # from the output so that they don't get included in the library
19786         # dependencies.
19787         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'
19788         ;;
19789       *)
19790         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19791           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19792          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'
19793
19794           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19795           hardcode_libdir_separator_CXX=:
19796
19797           # Commands to make compiler produce verbose output that lists
19798           # what "hidden" libraries, object files and flags are used when
19799           # linking a shared library.
19800           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19801
19802         else
19803           # FIXME: insert proper C++ library support
19804           ld_shlibs_CXX=no
19805         fi
19806         ;;
19807     esac
19808     ;;
19809   psos*)
19810     # FIXME: insert proper C++ library support
19811     ld_shlibs_CXX=no
19812     ;;
19813   sunos4*)
19814     case $cc_basename in
19815       CC*)
19816         # Sun C++ 4.x
19817         # FIXME: insert proper C++ library support
19818         ld_shlibs_CXX=no
19819         ;;
19820       lcc*)
19821         # Lucid
19822         # FIXME: insert proper C++ library support
19823         ld_shlibs_CXX=no
19824         ;;
19825       *)
19826         # FIXME: insert proper C++ library support
19827         ld_shlibs_CXX=no
19828         ;;
19829     esac
19830     ;;
19831   solaris*)
19832     case $cc_basename in
19833       CC*)
19834         # Sun C++ 4.2, 5.x and Centerline C++
19835         archive_cmds_need_lc_CXX=yes
19836         no_undefined_flag_CXX=' -zdefs'
19837         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19838         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19839         $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'
19840
19841         hardcode_libdir_flag_spec_CXX='-R$libdir'
19842         hardcode_shlibpath_var_CXX=no
19843         case $host_os in
19844           solaris2.[0-5] | solaris2.[0-5].*) ;;
19845           *)
19846             # The compiler driver will combine and reorder linker options,
19847             # but understands `-z linker_flag'.
19848             # Supported since Solaris 2.6 (maybe 2.5.1?)
19849             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19850             ;;
19851         esac
19852         link_all_deplibs_CXX=yes
19853
19854         output_verbose_link_cmd='echo'
19855
19856         # Archives containing C++ object files must be created using
19857         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19858         # necessary to make sure instantiated templates are included
19859         # in the archive.
19860         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19861         ;;
19862       gcx*)
19863         # Green Hills C++ Compiler
19864         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19865
19866         # The C++ compiler must be used to create the archive.
19867         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19868         ;;
19869       *)
19870         # GNU C++ compiler with Solaris linker
19871         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19872           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19873           if $CC --version | grep -v '^2\.7' > /dev/null; then
19874             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19875             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19876                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19877
19878             # Commands to make compiler produce verbose output that lists
19879             # what "hidden" libraries, object files and flags are used when
19880             # linking a shared library.
19881             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19882           else
19883             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19884             # platform.
19885             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19886             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19887                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19888
19889             # Commands to make compiler produce verbose output that lists
19890             # what "hidden" libraries, object files and flags are used when
19891             # linking a shared library.
19892             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19893           fi
19894
19895           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19896           case $host_os in
19897           solaris2.[0-5] | solaris2.[0-5].*) ;;
19898           *)
19899             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19900             ;;
19901           esac
19902         fi
19903         ;;
19904     esac
19905     ;;
19906   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19907     no_undefined_flag_CXX='${wl}-z,text'
19908     archive_cmds_need_lc_CXX=no
19909     hardcode_shlibpath_var_CXX=no
19910     runpath_var='LD_RUN_PATH'
19911
19912     case $cc_basename in
19913       CC*)
19914         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19915         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19916         ;;
19917       *)
19918         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19919         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19920         ;;
19921     esac
19922     ;;
19923   sysv5* | sco3.2v5* | sco5v6*)
19924     # Note: We can NOT use -z defs as we might desire, because we do not
19925     # link with -lc, and that would cause any symbols used from libc to
19926     # always be unresolved, which means just about no library would
19927     # ever link correctly.  If we're not using GNU ld we use -z text
19928     # though, which does catch some bad symbols but isn't as heavy-handed
19929     # as -z defs.
19930     # For security reasons, it is highly recommended that you always
19931     # use absolute paths for naming shared libraries, and exclude the
19932     # DT_RUNPATH tag from executables and libraries.  But doing so
19933     # requires that you compile everything twice, which is a pain.
19934     # So that behaviour is only enabled if SCOABSPATH is set to a
19935     # non-empty value in the environment.  Most likely only useful for
19936     # creating official distributions of packages.
19937     # This is a hack until libtool officially supports absolute path
19938     # names for shared libraries.
19939     no_undefined_flag_CXX='${wl}-z,text'
19940     allow_undefined_flag_CXX='${wl}-z,nodefs'
19941     archive_cmds_need_lc_CXX=no
19942     hardcode_shlibpath_var_CXX=no
19943     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19944     hardcode_libdir_separator_CXX=':'
19945     link_all_deplibs_CXX=yes
19946     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19947     runpath_var='LD_RUN_PATH'
19948
19949     case $cc_basename in
19950       CC*)
19951         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19952         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19953         ;;
19954       *)
19955         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19956         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19957         ;;
19958     esac
19959     ;;
19960   tandem*)
19961     case $cc_basename in
19962       NCC*)
19963         # NonStop-UX NCC 3.20
19964         # FIXME: insert proper C++ library support
19965         ld_shlibs_CXX=no
19966         ;;
19967       *)
19968         # FIXME: insert proper C++ library support
19969         ld_shlibs_CXX=no
19970         ;;
19971     esac
19972     ;;
19973   vxworks*)
19974     # FIXME: insert proper C++ library support
19975     ld_shlibs_CXX=no
19976     ;;
19977   *)
19978     # FIXME: insert proper C++ library support
19979     ld_shlibs_CXX=no
19980     ;;
19981 esac
19982 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19983 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19984 test "$ld_shlibs_CXX" = no && can_build_shared=no
19985
19986 GCC_CXX="$GXX"
19987 LD_CXX="$LD"
19988
19989
19990 cat > conftest.$ac_ext <<EOF
19991 class Foo
19992 {
19993 public:
19994   Foo (void) { a = 0; }
19995 private:
19996   int a;
19997 };
19998 EOF
19999
20000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20001   (eval $ac_compile) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; then
20005   # Parse the compiler output and extract the necessary
20006   # objects, libraries and library flags.
20007
20008   # Sentinel used to keep track of whether or not we are before
20009   # the conftest object file.
20010   pre_test_object_deps_done=no
20011
20012   # The `*' in the case matches for architectures that use `case' in
20013   # $output_verbose_cmd can trigger glob expansion during the loop
20014   # eval without this substitution.
20015   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
20016
20017   for p in `eval $output_verbose_link_cmd`; do
20018     case $p in
20019
20020     -L* | -R* | -l*)
20021        # Some compilers place space between "-{L,R}" and the path.
20022        # Remove the space.
20023        if test $p = "-L" \
20024           || test $p = "-R"; then
20025          prev=$p
20026          continue
20027        else
20028          prev=
20029        fi
20030
20031        if test "$pre_test_object_deps_done" = no; then
20032          case $p in
20033          -L* | -R*)
20034            # Internal compiler library paths should come after those
20035            # provided the user.  The postdeps already come after the
20036            # user supplied libs so there is no need to process them.
20037            if test -z "$compiler_lib_search_path_CXX"; then
20038              compiler_lib_search_path_CXX="${prev}${p}"
20039            else
20040              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20041            fi
20042            ;;
20043          # The "-l" case would never come before the object being
20044          # linked, so don't bother handling this case.
20045          esac
20046        else
20047          if test -z "$postdeps_CXX"; then
20048            postdeps_CXX="${prev}${p}"
20049          else
20050            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20051          fi
20052        fi
20053        ;;
20054
20055     *.$objext)
20056        # This assumes that the test object file only shows up
20057        # once in the compiler output.
20058        if test "$p" = "conftest.$objext"; then
20059          pre_test_object_deps_done=yes
20060          continue
20061        fi
20062
20063        if test "$pre_test_object_deps_done" = no; then
20064          if test -z "$predep_objects_CXX"; then
20065            predep_objects_CXX="$p"
20066          else
20067            predep_objects_CXX="$predep_objects_CXX $p"
20068          fi
20069        else
20070          if test -z "$postdep_objects_CXX"; then
20071            postdep_objects_CXX="$p"
20072          else
20073            postdep_objects_CXX="$postdep_objects_CXX $p"
20074          fi
20075        fi
20076        ;;
20077
20078     *) ;; # Ignore the rest.
20079
20080     esac
20081   done
20082
20083   # Clean up.
20084   rm -f a.out a.exe
20085 else
20086   echo "libtool.m4: error: problem compiling CXX test program"
20087 fi
20088
20089 $rm -f confest.$objext
20090
20091 # PORTME: override above test on systems where it is broken
20092 case $host_os in
20093 interix[3-9]*)
20094   # Interix 3.5 installs completely hosed .la files for C++, so rather than
20095   # hack all around it, let's just trust "g++" to DTRT.
20096   predep_objects_CXX=
20097   postdep_objects_CXX=
20098   postdeps_CXX=
20099   ;;
20100
20101 linux*)
20102   case `$CC -V 2>&1 | sed 5q` in
20103   *Sun\ C*)
20104     # Sun C++ 5.9
20105     #
20106     # The more standards-conforming stlport4 library is
20107     # incompatible with the Cstd library. Avoid specifying
20108     # it if it's in CXXFLAGS. Ignore libCrun as
20109     # -library=stlport4 depends on it.
20110     case " $CXX $CXXFLAGS " in
20111     *" -library=stlport4 "*)
20112       solaris_use_stlport4=yes
20113       ;;
20114     esac
20115     if test "$solaris_use_stlport4" != yes; then
20116       postdeps_CXX='-library=Cstd -library=Crun'
20117     fi
20118     ;;
20119   esac
20120   ;;
20121
20122 solaris*)
20123   case $cc_basename in
20124   CC*)
20125     # The more standards-conforming stlport4 library is
20126     # incompatible with the Cstd library. Avoid specifying
20127     # it if it's in CXXFLAGS. Ignore libCrun as
20128     # -library=stlport4 depends on it.
20129     case " $CXX $CXXFLAGS " in
20130     *" -library=stlport4 "*)
20131       solaris_use_stlport4=yes
20132       ;;
20133     esac
20134
20135     # Adding this requires a known-good setup of shared libraries for
20136     # Sun compiler versions before 5.6, else PIC objects from an old
20137     # archive will be linked into the output, leading to subtle bugs.
20138     if test "$solaris_use_stlport4" != yes; then
20139       postdeps_CXX='-library=Cstd -library=Crun'
20140     fi
20141     ;;
20142   esac
20143   ;;
20144 esac
20145
20146
20147 case " $postdeps_CXX " in
20148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20149 esac
20150
20151 lt_prog_compiler_wl_CXX=
20152 lt_prog_compiler_pic_CXX=
20153 lt_prog_compiler_static_CXX=
20154
20155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20157
20158   # C++ specific cases for pic, static, wl, etc.
20159   if test "$GXX" = yes; then
20160     lt_prog_compiler_wl_CXX='-Wl,'
20161     lt_prog_compiler_static_CXX='-static'
20162
20163     case $host_os in
20164     aix*)
20165       # All AIX code is PIC.
20166       if test "$host_cpu" = ia64; then
20167         # AIX 5 now supports IA64 processor
20168         lt_prog_compiler_static_CXX='-Bstatic'
20169       fi
20170       ;;
20171     amigaos*)
20172       # FIXME: we need at least 68020 code to build shared libraries, but
20173       # adding the `-m68020' flag to GCC prevents building anything better,
20174       # like `-m68040'.
20175       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20176       ;;
20177     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20178       # PIC is the default for these OSes.
20179       ;;
20180     mingw* | cygwin* | os2* | pw32*)
20181       # This hack is so that the source file can tell whether it is being
20182       # built for inclusion in a dll (and should export symbols for example).
20183       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20184       # (--disable-auto-import) libraries
20185       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20186       ;;
20187     darwin* | rhapsody*)
20188       # PIC is the default on this platform
20189       # Common symbols not allowed in MH_DYLIB files
20190       lt_prog_compiler_pic_CXX='-fno-common'
20191       ;;
20192     *djgpp*)
20193       # DJGPP does not support shared libraries at all
20194       lt_prog_compiler_pic_CXX=
20195       ;;
20196     interix[3-9]*)
20197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20198       # Instead, we relocate shared libraries at runtime.
20199       ;;
20200     sysv4*MP*)
20201       if test -d /usr/nec; then
20202         lt_prog_compiler_pic_CXX=-Kconform_pic
20203       fi
20204       ;;
20205     hpux*)
20206       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20207       # not for PA HP-UX.
20208       case $host_cpu in
20209       hppa*64*|ia64*)
20210         ;;
20211       *)
20212         lt_prog_compiler_pic_CXX='-fPIC'
20213         ;;
20214       esac
20215       ;;
20216     *)
20217       lt_prog_compiler_pic_CXX='-fPIC'
20218       ;;
20219     esac
20220   else
20221     case $host_os in
20222       aix4* | aix5*)
20223         # All AIX code is PIC.
20224         if test "$host_cpu" = ia64; then
20225           # AIX 5 now supports IA64 processor
20226           lt_prog_compiler_static_CXX='-Bstatic'
20227         else
20228           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20229         fi
20230         ;;
20231       chorus*)
20232         case $cc_basename in
20233         cxch68*)
20234           # Green Hills C++ Compiler
20235           # _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"
20236           ;;
20237         esac
20238         ;;
20239        darwin*)
20240          # PIC is the default on this platform
20241          # Common symbols not allowed in MH_DYLIB files
20242          case $cc_basename in
20243            xlc*)
20244            lt_prog_compiler_pic_CXX='-qnocommon'
20245            lt_prog_compiler_wl_CXX='-Wl,'
20246            ;;
20247          esac
20248        ;;
20249       dgux*)
20250         case $cc_basename in
20251           ec++*)
20252             lt_prog_compiler_pic_CXX='-KPIC'
20253             ;;
20254           ghcx*)
20255             # Green Hills C++ Compiler
20256             lt_prog_compiler_pic_CXX='-pic'
20257             ;;
20258           *)
20259             ;;
20260         esac
20261         ;;
20262       freebsd* | dragonfly*)
20263         # FreeBSD uses GNU C++
20264         ;;
20265       hpux9* | hpux10* | hpux11*)
20266         case $cc_basename in
20267           CC*)
20268             lt_prog_compiler_wl_CXX='-Wl,'
20269             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20270             if test "$host_cpu" != ia64; then
20271               lt_prog_compiler_pic_CXX='+Z'
20272             fi
20273             ;;
20274           aCC*)
20275             lt_prog_compiler_wl_CXX='-Wl,'
20276             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20277             case $host_cpu in
20278             hppa*64*|ia64*)
20279               # +Z the default
20280               ;;
20281             *)
20282               lt_prog_compiler_pic_CXX='+Z'
20283               ;;
20284             esac
20285             ;;
20286           *)
20287             ;;
20288         esac
20289         ;;
20290       interix*)
20291         # This is c89, which is MS Visual C++ (no shared libs)
20292         # Anyone wants to do a port?
20293         ;;
20294       irix5* | irix6* | nonstopux*)
20295         case $cc_basename in
20296           CC*)
20297             lt_prog_compiler_wl_CXX='-Wl,'
20298             lt_prog_compiler_static_CXX='-non_shared'
20299             # CC pic flag -KPIC is the default.
20300             ;;
20301           *)
20302             ;;
20303         esac
20304         ;;
20305       linux* | k*bsd*-gnu)
20306         case $cc_basename in
20307           KCC*)
20308             # KAI C++ Compiler
20309             lt_prog_compiler_wl_CXX='--backend -Wl,'
20310             lt_prog_compiler_pic_CXX='-fPIC'
20311             ;;
20312           icpc* | ecpc*)
20313             # Intel C++
20314             lt_prog_compiler_wl_CXX='-Wl,'
20315             lt_prog_compiler_pic_CXX='-KPIC'
20316             lt_prog_compiler_static_CXX='-static'
20317             ;;
20318           pgCC*)
20319             # Portland Group C++ compiler.
20320             lt_prog_compiler_wl_CXX='-Wl,'
20321             lt_prog_compiler_pic_CXX='-fpic'
20322             lt_prog_compiler_static_CXX='-Bstatic'
20323             ;;
20324           cxx*)
20325             # Compaq C++
20326             # Make sure the PIC flag is empty.  It appears that all Alpha
20327             # Linux and Compaq Tru64 Unix objects are PIC.
20328             lt_prog_compiler_pic_CXX=
20329             lt_prog_compiler_static_CXX='-non_shared'
20330             ;;
20331           *)
20332             case `$CC -V 2>&1 | sed 5q` in
20333             *Sun\ C*)
20334               # Sun C++ 5.9
20335               lt_prog_compiler_pic_CXX='-KPIC'
20336               lt_prog_compiler_static_CXX='-Bstatic'
20337               lt_prog_compiler_wl_CXX='-Qoption ld '
20338               ;;
20339             esac
20340             ;;
20341         esac
20342         ;;
20343       lynxos*)
20344         ;;
20345       m88k*)
20346         ;;
20347       mvs*)
20348         case $cc_basename in
20349           cxx*)
20350             lt_prog_compiler_pic_CXX='-W c,exportall'
20351             ;;
20352           *)
20353             ;;
20354         esac
20355         ;;
20356       netbsd* | netbsdelf*-gnu)
20357         ;;
20358       osf3* | osf4* | osf5*)
20359         case $cc_basename in
20360           KCC*)
20361             lt_prog_compiler_wl_CXX='--backend -Wl,'
20362             ;;
20363           RCC*)
20364             # Rational C++ 2.4.1
20365             lt_prog_compiler_pic_CXX='-pic'
20366             ;;
20367           cxx*)
20368             # Digital/Compaq C++
20369             lt_prog_compiler_wl_CXX='-Wl,'
20370             # Make sure the PIC flag is empty.  It appears that all Alpha
20371             # Linux and Compaq Tru64 Unix objects are PIC.
20372             lt_prog_compiler_pic_CXX=
20373             lt_prog_compiler_static_CXX='-non_shared'
20374             ;;
20375           *)
20376             ;;
20377         esac
20378         ;;
20379       psos*)
20380         ;;
20381       solaris*)
20382         case $cc_basename in
20383           CC*)
20384             # Sun C++ 4.2, 5.x and Centerline C++
20385             lt_prog_compiler_pic_CXX='-KPIC'
20386             lt_prog_compiler_static_CXX='-Bstatic'
20387             lt_prog_compiler_wl_CXX='-Qoption ld '
20388             ;;
20389           gcx*)
20390             # Green Hills C++ Compiler
20391             lt_prog_compiler_pic_CXX='-PIC'
20392             ;;
20393           *)
20394             ;;
20395         esac
20396         ;;
20397       sunos4*)
20398         case $cc_basename in
20399           CC*)
20400             # Sun C++ 4.x
20401             lt_prog_compiler_pic_CXX='-pic'
20402             lt_prog_compiler_static_CXX='-Bstatic'
20403             ;;
20404           lcc*)
20405             # Lucid
20406             lt_prog_compiler_pic_CXX='-pic'
20407             ;;
20408           *)
20409             ;;
20410         esac
20411         ;;
20412       tandem*)
20413         case $cc_basename in
20414           NCC*)
20415             # NonStop-UX NCC 3.20
20416             lt_prog_compiler_pic_CXX='-KPIC'
20417             ;;
20418           *)
20419             ;;
20420         esac
20421         ;;
20422       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20423         case $cc_basename in
20424           CC*)
20425             lt_prog_compiler_wl_CXX='-Wl,'
20426             lt_prog_compiler_pic_CXX='-KPIC'
20427             lt_prog_compiler_static_CXX='-Bstatic'
20428             ;;
20429         esac
20430         ;;
20431       vxworks*)
20432         ;;
20433       *)
20434         lt_prog_compiler_can_build_shared_CXX=no
20435         ;;
20436     esac
20437   fi
20438
20439 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20440 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20441
20442 #
20443 # Check to make sure the PIC flag actually works.
20444 #
20445 if test -n "$lt_prog_compiler_pic_CXX"; then
20446
20447 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20448 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20449 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20450   echo $ECHO_N "(cached) $ECHO_C" >&6
20451 else
20452   lt_prog_compiler_pic_works_CXX=no
20453   ac_outfile=conftest.$ac_objext
20454    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20455    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20456    # Insert the option either (1) after the last *FLAGS variable, or
20457    # (2) before a word containing "conftest.", or (3) at the end.
20458    # Note that $ac_compile itself does not contain backslashes and begins
20459    # with a dollar sign (not a hyphen), so the echo should work correctly.
20460    # The option is referenced via a variable to avoid confusing sed.
20461    lt_compile=`echo "$ac_compile" | $SED \
20462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20464    -e 's:$: $lt_compiler_flag:'`
20465    (eval echo "\"\$as_me:20465: $lt_compile\"" >&5)
20466    (eval "$lt_compile" 2>conftest.err)
20467    ac_status=$?
20468    cat conftest.err >&5
20469    echo "$as_me:20469: \$? = $ac_status" >&5
20470    if (exit $ac_status) && test -s "$ac_outfile"; then
20471      # The compiler can only warn and ignore the option if not recognized
20472      # So say no if there are warnings other than the usual output.
20473      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20474      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20475      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20476        lt_prog_compiler_pic_works_CXX=yes
20477      fi
20478    fi
20479    $rm conftest*
20480
20481 fi
20482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20483 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20484
20485 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20486     case $lt_prog_compiler_pic_CXX in
20487      "" | " "*) ;;
20488      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20489      esac
20490 else
20491     lt_prog_compiler_pic_CXX=
20492      lt_prog_compiler_can_build_shared_CXX=no
20493 fi
20494
20495 fi
20496 case $host_os in
20497   # For platforms which do not support PIC, -DPIC is meaningless:
20498   *djgpp*)
20499     lt_prog_compiler_pic_CXX=
20500     ;;
20501   *)
20502     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20503     ;;
20504 esac
20505
20506 #
20507 # Check to make sure the static flag actually works.
20508 #
20509 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20510 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20511 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20512 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515   lt_prog_compiler_static_works_CXX=no
20516    save_LDFLAGS="$LDFLAGS"
20517    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20518    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20519    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20520      # The linker can only warn and ignore the option if not recognized
20521      # So say no if there are warnings
20522      if test -s conftest.err; then
20523        # Append any errors to the config.log.
20524        cat conftest.err 1>&5
20525        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20526        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20527        if diff conftest.exp conftest.er2 >/dev/null; then
20528          lt_prog_compiler_static_works_CXX=yes
20529        fi
20530      else
20531        lt_prog_compiler_static_works_CXX=yes
20532      fi
20533    fi
20534    $rm conftest*
20535    LDFLAGS="$save_LDFLAGS"
20536
20537 fi
20538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20539 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20540
20541 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20542     :
20543 else
20544     lt_prog_compiler_static_CXX=
20545 fi
20546
20547
20548 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20550 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20551   echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553   lt_cv_prog_compiler_c_o_CXX=no
20554    $rm -r conftest 2>/dev/null
20555    mkdir conftest
20556    cd conftest
20557    mkdir out
20558    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20559
20560    lt_compiler_flag="-o out/conftest2.$ac_objext"
20561    # Insert the option either (1) after the last *FLAGS variable, or
20562    # (2) before a word containing "conftest.", or (3) at the end.
20563    # Note that $ac_compile itself does not contain backslashes and begins
20564    # with a dollar sign (not a hyphen), so the echo should work correctly.
20565    lt_compile=`echo "$ac_compile" | $SED \
20566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20568    -e 's:$: $lt_compiler_flag:'`
20569    (eval echo "\"\$as_me:20569: $lt_compile\"" >&5)
20570    (eval "$lt_compile" 2>out/conftest.err)
20571    ac_status=$?
20572    cat out/conftest.err >&5
20573    echo "$as_me:20573: \$? = $ac_status" >&5
20574    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20575    then
20576      # The compiler can only warn and ignore the option if not recognized
20577      # So say no if there are warnings
20578      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20579      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20580      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20581        lt_cv_prog_compiler_c_o_CXX=yes
20582      fi
20583    fi
20584    chmod u+w . 2>&5
20585    $rm conftest*
20586    # SGI C++ compiler will create directory out/ii_files/ for
20587    # template instantiation
20588    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20589    $rm out/* && rmdir out
20590    cd ..
20591    rmdir conftest
20592    $rm conftest*
20593
20594 fi
20595 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20597
20598
20599 hard_links="nottested"
20600 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20601   # do not overwrite the value of need_locks provided by the user
20602   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20604   hard_links=yes
20605   $rm conftest*
20606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20607   touch conftest.a
20608   ln conftest.a conftest.b 2>&5 || hard_links=no
20609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20610   { echo "$as_me:$LINENO: result: $hard_links" >&5
20611 echo "${ECHO_T}$hard_links" >&6; }
20612   if test "$hard_links" = no; then
20613     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20615     need_locks=warn
20616   fi
20617 else
20618   need_locks=no
20619 fi
20620
20621 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20623
20624   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20625   case $host_os in
20626   aix4* | aix5*)
20627     # If we're using GNU nm, then we don't want the "-C" option.
20628     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20629     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20630       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'
20631     else
20632       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'
20633     fi
20634     ;;
20635   pw32*)
20636     export_symbols_cmds_CXX="$ltdll_cmds"
20637   ;;
20638   cygwin* | mingw*)
20639     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'
20640   ;;
20641   linux* | k*bsd*-gnu)
20642     link_all_deplibs_CXX=no
20643   ;;
20644   *)
20645     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20646   ;;
20647   esac
20648
20649 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20650 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20651 test "$ld_shlibs_CXX" = no && can_build_shared=no
20652
20653 #
20654 # Do we need to explicitly link libc?
20655 #
20656 case "x$archive_cmds_need_lc_CXX" in
20657 x|xyes)
20658   # Assume -lc should be added
20659   archive_cmds_need_lc_CXX=yes
20660
20661   if test "$enable_shared" = yes && test "$GCC" = yes; then
20662     case $archive_cmds_CXX in
20663     *'~'*)
20664       # FIXME: we may have to deal with multi-command sequences.
20665       ;;
20666     '$CC '*)
20667       # Test whether the compiler implicitly links with -lc since on some
20668       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20669       # to ld, don't add -lc before -lgcc.
20670       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20671 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20672       $rm conftest*
20673       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20674
20675       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20676   (eval $ac_compile) 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); } 2>conftest.err; then
20680         soname=conftest
20681         lib=conftest
20682         libobjs=conftest.$ac_objext
20683         deplibs=
20684         wl=$lt_prog_compiler_wl_CXX
20685         pic_flag=$lt_prog_compiler_pic_CXX
20686         compiler_flags=-v
20687         linker_flags=-v
20688         verstring=
20689         output_objdir=.
20690         libname=conftest
20691         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20692         allow_undefined_flag_CXX=
20693         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20694   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); }
20698         then
20699           archive_cmds_need_lc_CXX=no
20700         else
20701           archive_cmds_need_lc_CXX=yes
20702         fi
20703         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20704       else
20705         cat conftest.err 1>&5
20706       fi
20707       $rm conftest*
20708       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20709 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20710       ;;
20711     esac
20712   fi
20713   ;;
20714 esac
20715
20716 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20718 library_names_spec=
20719 libname_spec='lib$name'
20720 soname_spec=
20721 shrext_cmds=".so"
20722 postinstall_cmds=
20723 postuninstall_cmds=
20724 finish_cmds=
20725 finish_eval=
20726 shlibpath_var=
20727 shlibpath_overrides_runpath=unknown
20728 version_type=none
20729 dynamic_linker="$host_os ld.so"
20730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20731
20732 need_lib_prefix=unknown
20733 hardcode_into_libs=no
20734
20735 # when you set need_version to no, make sure it does not cause -set_version
20736 # flags to be left without arguments
20737 need_version=unknown
20738
20739 case $host_os in
20740 aix3*)
20741   version_type=linux
20742   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20743   shlibpath_var=LIBPATH
20744
20745   # AIX 3 has no versioning support, so we append a major version to the name.
20746   soname_spec='${libname}${release}${shared_ext}$major'
20747   ;;
20748
20749 aix4* | aix5*)
20750   version_type=linux
20751   need_lib_prefix=no
20752   need_version=no
20753   hardcode_into_libs=yes
20754   if test "$host_cpu" = ia64; then
20755     # AIX 5 supports IA64
20756     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20757     shlibpath_var=LD_LIBRARY_PATH
20758   else
20759     # With GCC up to 2.95.x, collect2 would create an import file
20760     # for dependence libraries.  The import file would start with
20761     # the line `#! .'.  This would cause the generated library to
20762     # depend on `.', always an invalid library.  This was fixed in
20763     # development snapshots of GCC prior to 3.0.
20764     case $host_os in
20765       aix4 | aix4.[01] | aix4.[01].*)
20766       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20767            echo ' yes '
20768            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20769         :
20770       else
20771         can_build_shared=no
20772       fi
20773       ;;
20774     esac
20775     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20776     # soname into executable. Probably we can add versioning support to
20777     # collect2, so additional links can be useful in future.
20778     if test "$aix_use_runtimelinking" = yes; then
20779       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20780       # instead of lib<name>.a to let people know that these are not
20781       # typical AIX shared libraries.
20782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20783     else
20784       # We preserve .a as extension for shared libraries through AIX4.2
20785       # and later when we are not doing run time linking.
20786       library_names_spec='${libname}${release}.a $libname.a'
20787       soname_spec='${libname}${release}${shared_ext}$major'
20788     fi
20789     shlibpath_var=LIBPATH
20790   fi
20791   ;;
20792
20793 amigaos*)
20794   library_names_spec='$libname.ixlibrary $libname.a'
20795   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20796   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'
20797   ;;
20798
20799 beos*)
20800   library_names_spec='${libname}${shared_ext}'
20801   dynamic_linker="$host_os ld.so"
20802   shlibpath_var=LIBRARY_PATH
20803   ;;
20804
20805 bsdi[45]*)
20806   version_type=linux
20807   need_version=no
20808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809   soname_spec='${libname}${release}${shared_ext}$major'
20810   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20811   shlibpath_var=LD_LIBRARY_PATH
20812   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20813   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20814   # the default ld.so.conf also contains /usr/contrib/lib and
20815   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20816   # libtool to hard-code these into programs
20817   ;;
20818
20819 cygwin* | mingw* | pw32*)
20820   version_type=windows
20821   shrext_cmds=".dll"
20822   need_version=no
20823   need_lib_prefix=no
20824
20825   case $GCC,$host_os in
20826   yes,cygwin* | yes,mingw* | yes,pw32*)
20827     library_names_spec='$libname.dll.a'
20828     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20829     postinstall_cmds='base_file=`basename \${file}`~
20830       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20831       dldir=$destdir/`dirname \$dlpath`~
20832       test -d \$dldir || mkdir -p \$dldir~
20833       $install_prog $dir/$dlname \$dldir/$dlname~
20834       chmod a+x \$dldir/$dlname'
20835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20836       dlpath=$dir/\$dldll~
20837        $rm \$dlpath'
20838     shlibpath_overrides_runpath=yes
20839
20840     case $host_os in
20841     cygwin*)
20842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20845       ;;
20846     mingw*)
20847       # MinGW DLLs use traditional 'lib' prefix
20848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20849       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20850       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20851         # It is most probably a Windows format PATH printed by
20852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20853         # path with ; separators, and with drive letters. We can handle the
20854         # drive letters (cygwin fileutils understands them), so leave them,
20855         # especially as we might pass files found there to a mingw objdump,
20856         # which wouldn't understand a cygwinified path. Ahh.
20857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20858       else
20859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20860       fi
20861       ;;
20862     pw32*)
20863       # pw32 DLLs use 'pw' prefix rather than 'lib'
20864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20865       ;;
20866     esac
20867     ;;
20868
20869   *)
20870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20871     ;;
20872   esac
20873   dynamic_linker='Win32 ld.exe'
20874   # FIXME: first we should search . and the directory the executable is in
20875   shlibpath_var=PATH
20876   ;;
20877
20878 darwin* | rhapsody*)
20879   dynamic_linker="$host_os dyld"
20880   version_type=darwin
20881   need_lib_prefix=no
20882   need_version=no
20883   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20884   soname_spec='${libname}${release}${major}$shared_ext'
20885   shlibpath_overrides_runpath=yes
20886   shlibpath_var=DYLD_LIBRARY_PATH
20887   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20888
20889   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20890   ;;
20891
20892 dgux*)
20893   version_type=linux
20894   need_lib_prefix=no
20895   need_version=no
20896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20897   soname_spec='${libname}${release}${shared_ext}$major'
20898   shlibpath_var=LD_LIBRARY_PATH
20899   ;;
20900
20901 freebsd1*)
20902   dynamic_linker=no
20903   ;;
20904
20905 freebsd* | dragonfly*)
20906   # DragonFly does not have aout.  When/if they implement a new
20907   # versioning mechanism, adjust this.
20908   if test -x /usr/bin/objformat; then
20909     objformat=`/usr/bin/objformat`
20910   else
20911     case $host_os in
20912     freebsd[123]*) objformat=aout ;;
20913     *) objformat=elf ;;
20914     esac
20915   fi
20916   version_type=freebsd-$objformat
20917   case $version_type in
20918     freebsd-elf*)
20919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20920       need_version=no
20921       need_lib_prefix=no
20922       ;;
20923     freebsd-*)
20924       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20925       need_version=yes
20926       ;;
20927   esac
20928   shlibpath_var=LD_LIBRARY_PATH
20929   case $host_os in
20930   freebsd2*)
20931     shlibpath_overrides_runpath=yes
20932     ;;
20933   freebsd3.[01]* | freebsdelf3.[01]*)
20934     shlibpath_overrides_runpath=yes
20935     hardcode_into_libs=yes
20936     ;;
20937   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20938   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20939     shlibpath_overrides_runpath=no
20940     hardcode_into_libs=yes
20941     ;;
20942   *) # from 4.6 on, and DragonFly
20943     shlibpath_overrides_runpath=yes
20944     hardcode_into_libs=yes
20945     ;;
20946   esac
20947   ;;
20948
20949 gnu*)
20950   version_type=linux
20951   need_lib_prefix=no
20952   need_version=no
20953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20954   soname_spec='${libname}${release}${shared_ext}$major'
20955   shlibpath_var=LD_LIBRARY_PATH
20956   hardcode_into_libs=yes
20957   ;;
20958
20959 hpux9* | hpux10* | hpux11*)
20960   # Give a soname corresponding to the major version so that dld.sl refuses to
20961   # link against other versions.
20962   version_type=sunos
20963   need_lib_prefix=no
20964   need_version=no
20965   case $host_cpu in
20966   ia64*)
20967     shrext_cmds='.so'
20968     hardcode_into_libs=yes
20969     dynamic_linker="$host_os dld.so"
20970     shlibpath_var=LD_LIBRARY_PATH
20971     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973     soname_spec='${libname}${release}${shared_ext}$major'
20974     if test "X$HPUX_IA64_MODE" = X32; then
20975       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20976     else
20977       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20978     fi
20979     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20980     ;;
20981    hppa*64*)
20982      shrext_cmds='.sl'
20983      hardcode_into_libs=yes
20984      dynamic_linker="$host_os dld.sl"
20985      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20986      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20987      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988      soname_spec='${libname}${release}${shared_ext}$major'
20989      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20990      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20991      ;;
20992    *)
20993     shrext_cmds='.sl'
20994     dynamic_linker="$host_os dld.sl"
20995     shlibpath_var=SHLIB_PATH
20996     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20998     soname_spec='${libname}${release}${shared_ext}$major'
20999     ;;
21000   esac
21001   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21002   postinstall_cmds='chmod 555 $lib'
21003   ;;
21004
21005 interix[3-9]*)
21006   version_type=linux
21007   need_lib_prefix=no
21008   need_version=no
21009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21010   soname_spec='${libname}${release}${shared_ext}$major'
21011   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21012   shlibpath_var=LD_LIBRARY_PATH
21013   shlibpath_overrides_runpath=no
21014   hardcode_into_libs=yes
21015   ;;
21016
21017 irix5* | irix6* | nonstopux*)
21018   case $host_os in
21019     nonstopux*) version_type=nonstopux ;;
21020     *)
21021         if test "$lt_cv_prog_gnu_ld" = yes; then
21022                 version_type=linux
21023         else
21024                 version_type=irix
21025         fi ;;
21026   esac
21027   need_lib_prefix=no
21028   need_version=no
21029   soname_spec='${libname}${release}${shared_ext}$major'
21030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21031   case $host_os in
21032   irix5* | nonstopux*)
21033     libsuff= shlibsuff=
21034     ;;
21035   *)
21036     case $LD in # libtool.m4 will add one of these switches to LD
21037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21038       libsuff= shlibsuff= libmagic=32-bit;;
21039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21040       libsuff=32 shlibsuff=N32 libmagic=N32;;
21041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21043     *) libsuff= shlibsuff= libmagic=never-match;;
21044     esac
21045     ;;
21046   esac
21047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21048   shlibpath_overrides_runpath=no
21049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21051   hardcode_into_libs=yes
21052   ;;
21053
21054 # No shared lib support for Linux oldld, aout, or coff.
21055 linux*oldld* | linux*aout* | linux*coff*)
21056   dynamic_linker=no
21057   ;;
21058
21059 # This must be Linux ELF.
21060 linux* | k*bsd*-gnu)
21061   version_type=linux
21062   need_lib_prefix=no
21063   need_version=no
21064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065   soname_spec='${libname}${release}${shared_ext}$major'
21066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21067   shlibpath_var=LD_LIBRARY_PATH
21068   shlibpath_overrides_runpath=no
21069   # This implies no fast_install, which is unacceptable.
21070   # Some rework will be needed to allow for fast_install
21071   # before this can be enabled.
21072   hardcode_into_libs=yes
21073
21074   # Append ld.so.conf contents to the search path
21075   if test -f /etc/ld.so.conf; then
21076     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21077     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21078   fi
21079
21080   # We used to test for /lib/ld.so.1 and disable shared libraries on
21081   # powerpc, because MkLinux only supported shared libraries with the
21082   # GNU dynamic linker.  Since this was broken with cross compilers,
21083   # most powerpc-linux boxes support dynamic linking these days and
21084   # people can always --disable-shared, the test was removed, and we
21085   # assume the GNU/Linux dynamic linker is in use.
21086   dynamic_linker='GNU/Linux ld.so'
21087   ;;
21088
21089 netbsdelf*-gnu)
21090   version_type=linux
21091   need_lib_prefix=no
21092   need_version=no
21093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21094   soname_spec='${libname}${release}${shared_ext}$major'
21095   shlibpath_var=LD_LIBRARY_PATH
21096   shlibpath_overrides_runpath=no
21097   hardcode_into_libs=yes
21098   dynamic_linker='NetBSD ld.elf_so'
21099   ;;
21100
21101 netbsd*)
21102   version_type=sunos
21103   need_lib_prefix=no
21104   need_version=no
21105   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21107     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21108     dynamic_linker='NetBSD (a.out) ld.so'
21109   else
21110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21111     soname_spec='${libname}${release}${shared_ext}$major'
21112     dynamic_linker='NetBSD ld.elf_so'
21113   fi
21114   shlibpath_var=LD_LIBRARY_PATH
21115   shlibpath_overrides_runpath=yes
21116   hardcode_into_libs=yes
21117   ;;
21118
21119 newsos6)
21120   version_type=linux
21121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21122   shlibpath_var=LD_LIBRARY_PATH
21123   shlibpath_overrides_runpath=yes
21124   ;;
21125
21126 nto-qnx*)
21127   version_type=linux
21128   need_lib_prefix=no
21129   need_version=no
21130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21131   soname_spec='${libname}${release}${shared_ext}$major'
21132   shlibpath_var=LD_LIBRARY_PATH
21133   shlibpath_overrides_runpath=yes
21134   ;;
21135
21136 openbsd*)
21137   version_type=sunos
21138   sys_lib_dlsearch_path_spec="/usr/lib"
21139   need_lib_prefix=no
21140   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21141   case $host_os in
21142     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21143     *)                         need_version=no  ;;
21144   esac
21145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21146   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21147   shlibpath_var=LD_LIBRARY_PATH
21148   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21149     case $host_os in
21150       openbsd2.[89] | openbsd2.[89].*)
21151         shlibpath_overrides_runpath=no
21152         ;;
21153       *)
21154         shlibpath_overrides_runpath=yes
21155         ;;
21156       esac
21157   else
21158     shlibpath_overrides_runpath=yes
21159   fi
21160   ;;
21161
21162 os2*)
21163   libname_spec='$name'
21164   shrext_cmds=".dll"
21165   need_lib_prefix=no
21166   library_names_spec='$libname${shared_ext} $libname.a'
21167   dynamic_linker='OS/2 ld.exe'
21168   shlibpath_var=LIBPATH
21169   ;;
21170
21171 osf3* | osf4* | osf5*)
21172   version_type=osf
21173   need_lib_prefix=no
21174   need_version=no
21175   soname_spec='${libname}${release}${shared_ext}$major'
21176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21177   shlibpath_var=LD_LIBRARY_PATH
21178   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21179   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21180   ;;
21181
21182 rdos*)
21183   dynamic_linker=no
21184   ;;
21185
21186 solaris*)
21187   version_type=linux
21188   need_lib_prefix=no
21189   need_version=no
21190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21191   soname_spec='${libname}${release}${shared_ext}$major'
21192   shlibpath_var=LD_LIBRARY_PATH
21193   shlibpath_overrides_runpath=yes
21194   hardcode_into_libs=yes
21195   # ldd complains unless libraries are executable
21196   postinstall_cmds='chmod +x $lib'
21197   ;;
21198
21199 sunos4*)
21200   version_type=sunos
21201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21202   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21203   shlibpath_var=LD_LIBRARY_PATH
21204   shlibpath_overrides_runpath=yes
21205   if test "$with_gnu_ld" = yes; then
21206     need_lib_prefix=no
21207   fi
21208   need_version=yes
21209   ;;
21210
21211 sysv4 | sysv4.3*)
21212   version_type=linux
21213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214   soname_spec='${libname}${release}${shared_ext}$major'
21215   shlibpath_var=LD_LIBRARY_PATH
21216   case $host_vendor in
21217     sni)
21218       shlibpath_overrides_runpath=no
21219       need_lib_prefix=no
21220       export_dynamic_flag_spec='${wl}-Blargedynsym'
21221       runpath_var=LD_RUN_PATH
21222       ;;
21223     siemens)
21224       need_lib_prefix=no
21225       ;;
21226     motorola)
21227       need_lib_prefix=no
21228       need_version=no
21229       shlibpath_overrides_runpath=no
21230       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21231       ;;
21232   esac
21233   ;;
21234
21235 sysv4*MP*)
21236   if test -d /usr/nec ;then
21237     version_type=linux
21238     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21239     soname_spec='$libname${shared_ext}.$major'
21240     shlibpath_var=LD_LIBRARY_PATH
21241   fi
21242   ;;
21243
21244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21245   version_type=freebsd-elf
21246   need_lib_prefix=no
21247   need_version=no
21248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21249   soname_spec='${libname}${release}${shared_ext}$major'
21250   shlibpath_var=LD_LIBRARY_PATH
21251   hardcode_into_libs=yes
21252   if test "$with_gnu_ld" = yes; then
21253     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21254     shlibpath_overrides_runpath=no
21255   else
21256     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21257     shlibpath_overrides_runpath=yes
21258     case $host_os in
21259       sco3.2v5*)
21260         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21261         ;;
21262     esac
21263   fi
21264   sys_lib_dlsearch_path_spec='/usr/lib'
21265   ;;
21266
21267 uts4*)
21268   version_type=linux
21269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21270   soname_spec='${libname}${release}${shared_ext}$major'
21271   shlibpath_var=LD_LIBRARY_PATH
21272   ;;
21273
21274 *)
21275   dynamic_linker=no
21276   ;;
21277 esac
21278 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21279 echo "${ECHO_T}$dynamic_linker" >&6; }
21280 test "$dynamic_linker" = no && can_build_shared=no
21281
21282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21283 if test "$GCC" = yes; then
21284   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21285 fi
21286
21287 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21288 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21289 hardcode_action_CXX=
21290 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21291    test -n "$runpath_var_CXX" || \
21292    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21293
21294   # We can hardcode non-existant directories.
21295   if test "$hardcode_direct_CXX" != no &&
21296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21297      # have to relink, otherwise we might link with an installed library
21298      # when we should be linking with a yet-to-be-installed one
21299      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21300      test "$hardcode_minus_L_CXX" != no; then
21301     # Linking always hardcodes the temporary library directory.
21302     hardcode_action_CXX=relink
21303   else
21304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21305     hardcode_action_CXX=immediate
21306   fi
21307 else
21308   # We cannot hardcode anything, or else we can only hardcode existing
21309   # directories.
21310   hardcode_action_CXX=unsupported
21311 fi
21312 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21313 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21314
21315 if test "$hardcode_action_CXX" = relink; then
21316   # Fast installation is not supported
21317   enable_fast_install=no
21318 elif test "$shlibpath_overrides_runpath" = yes ||
21319      test "$enable_shared" = no; then
21320   # Fast installation is not necessary
21321   enable_fast_install=needless
21322 fi
21323
21324
21325 # The else clause should only fire when bootstrapping the
21326 # libtool distribution, otherwise you forgot to ship ltmain.sh
21327 # with your package, and you will get complaints that there are
21328 # no rules to generate ltmain.sh.
21329 if test -f "$ltmain"; then
21330   # See if we are running on zsh, and set the options which allow our commands through
21331   # without removal of \ escapes.
21332   if test -n "${ZSH_VERSION+set}" ; then
21333     setopt NO_GLOB_SUBST
21334   fi
21335   # Now quote all the things that may contain metacharacters while being
21336   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21337   # variables and quote the copies for generation of the libtool script.
21338   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21339     SED SHELL STRIP \
21340     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21341     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21342     deplibs_check_method reload_flag reload_cmds need_locks \
21343     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21344     lt_cv_sys_global_symbol_to_c_name_address \
21345     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21346     old_postinstall_cmds old_postuninstall_cmds \
21347     compiler_CXX \
21348     CC_CXX \
21349     LD_CXX \
21350     lt_prog_compiler_wl_CXX \
21351     lt_prog_compiler_pic_CXX \
21352     lt_prog_compiler_static_CXX \
21353     lt_prog_compiler_no_builtin_flag_CXX \
21354     export_dynamic_flag_spec_CXX \
21355     thread_safe_flag_spec_CXX \
21356     whole_archive_flag_spec_CXX \
21357     enable_shared_with_static_runtimes_CXX \
21358     old_archive_cmds_CXX \
21359     old_archive_from_new_cmds_CXX \
21360     predep_objects_CXX \
21361     postdep_objects_CXX \
21362     predeps_CXX \
21363     postdeps_CXX \
21364     compiler_lib_search_path_CXX \
21365     archive_cmds_CXX \
21366     archive_expsym_cmds_CXX \
21367     postinstall_cmds_CXX \
21368     postuninstall_cmds_CXX \
21369     old_archive_from_expsyms_cmds_CXX \
21370     allow_undefined_flag_CXX \
21371     no_undefined_flag_CXX \
21372     export_symbols_cmds_CXX \
21373     hardcode_libdir_flag_spec_CXX \
21374     hardcode_libdir_flag_spec_ld_CXX \
21375     hardcode_libdir_separator_CXX \
21376     hardcode_automatic_CXX \
21377     module_cmds_CXX \
21378     module_expsym_cmds_CXX \
21379     lt_cv_prog_compiler_c_o_CXX \
21380     fix_srcfile_path_CXX \
21381     exclude_expsyms_CXX \
21382     include_expsyms_CXX; do
21383
21384     case $var in
21385     old_archive_cmds_CXX | \
21386     old_archive_from_new_cmds_CXX | \
21387     archive_cmds_CXX | \
21388     archive_expsym_cmds_CXX | \
21389     module_cmds_CXX | \
21390     module_expsym_cmds_CXX | \
21391     old_archive_from_expsyms_cmds_CXX | \
21392     export_symbols_cmds_CXX | \
21393     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21394     postinstall_cmds | postuninstall_cmds | \
21395     old_postinstall_cmds | old_postuninstall_cmds | \
21396     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21397       # Double-quote double-evaled strings.
21398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21399       ;;
21400     *)
21401       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21402       ;;
21403     esac
21404   done
21405
21406   case $lt_echo in
21407   *'\$0 --fallback-echo"')
21408     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21409     ;;
21410   esac
21411
21412 cfgfile="$ofile"
21413
21414   cat <<__EOF__ >> "$cfgfile"
21415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21416
21417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21418
21419 # Shell to use when invoking shell scripts.
21420 SHELL=$lt_SHELL
21421
21422 # Whether or not to build shared libraries.
21423 build_libtool_libs=$enable_shared
21424
21425 # Whether or not to build static libraries.
21426 build_old_libs=$enable_static
21427
21428 # Whether or not to add -lc for building shared libraries.
21429 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21430
21431 # Whether or not to disallow shared libs when runtime libs are static
21432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21433
21434 # Whether or not to optimize for fast installation.
21435 fast_install=$enable_fast_install
21436
21437 # The host system.
21438 host_alias=$host_alias
21439 host=$host
21440 host_os=$host_os
21441
21442 # The build system.
21443 build_alias=$build_alias
21444 build=$build
21445 build_os=$build_os
21446
21447 # An echo program that does not interpret backslashes.
21448 echo=$lt_echo
21449
21450 # The archiver.
21451 AR=$lt_AR
21452 AR_FLAGS=$lt_AR_FLAGS
21453
21454 # A C compiler.
21455 LTCC=$lt_LTCC
21456
21457 # LTCC compiler flags.
21458 LTCFLAGS=$lt_LTCFLAGS
21459
21460 # A language-specific compiler.
21461 CC=$lt_compiler_CXX
21462
21463 # Is the compiler the GNU C compiler?
21464 with_gcc=$GCC_CXX
21465
21466 # An ERE matcher.
21467 EGREP=$lt_EGREP
21468
21469 # The linker used to build libraries.
21470 LD=$lt_LD_CXX
21471
21472 # Whether we need hard or soft links.
21473 LN_S=$lt_LN_S
21474
21475 # A BSD-compatible nm program.
21476 NM=$lt_NM
21477
21478 # A symbol stripping program
21479 STRIP=$lt_STRIP
21480
21481 # Used to examine libraries when file_magic_cmd begins "file"
21482 MAGIC_CMD=$MAGIC_CMD
21483
21484 # Used on cygwin: DLL creation program.
21485 DLLTOOL="$DLLTOOL"
21486
21487 # Used on cygwin: object dumper.
21488 OBJDUMP="$OBJDUMP"
21489
21490 # Used on cygwin: assembler.
21491 AS="$AS"
21492
21493 # The name of the directory that contains temporary libtool files.
21494 objdir=$objdir
21495
21496 # How to create reloadable object files.
21497 reload_flag=$lt_reload_flag
21498 reload_cmds=$lt_reload_cmds
21499
21500 # How to pass a linker flag through the compiler.
21501 wl=$lt_lt_prog_compiler_wl_CXX
21502
21503 # Object file suffix (normally "o").
21504 objext="$ac_objext"
21505
21506 # Old archive suffix (normally "a").
21507 libext="$libext"
21508
21509 # Shared library suffix (normally ".so").
21510 shrext_cmds='$shrext_cmds'
21511
21512 # Executable file suffix (normally "").
21513 exeext="$exeext"
21514
21515 # Additional compiler flags for building library objects.
21516 pic_flag=$lt_lt_prog_compiler_pic_CXX
21517 pic_mode=$pic_mode
21518
21519 # What is the maximum length of a command?
21520 max_cmd_len=$lt_cv_sys_max_cmd_len
21521
21522 # Does compiler simultaneously support -c and -o options?
21523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21524
21525 # Must we lock files when doing compilation?
21526 need_locks=$lt_need_locks
21527
21528 # Do we need the lib prefix for modules?
21529 need_lib_prefix=$need_lib_prefix
21530
21531 # Do we need a version for libraries?
21532 need_version=$need_version
21533
21534 # Whether dlopen is supported.
21535 dlopen_support=$enable_dlopen
21536
21537 # Whether dlopen of programs is supported.
21538 dlopen_self=$enable_dlopen_self
21539
21540 # Whether dlopen of statically linked programs is supported.
21541 dlopen_self_static=$enable_dlopen_self_static
21542
21543 # Compiler flag to prevent dynamic linking.
21544 link_static_flag=$lt_lt_prog_compiler_static_CXX
21545
21546 # Compiler flag to turn off builtin functions.
21547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21548
21549 # Compiler flag to allow reflexive dlopens.
21550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21551
21552 # Compiler flag to generate shared objects directly from archives.
21553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21554
21555 # Compiler flag to generate thread-safe objects.
21556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21557
21558 # Library versioning type.
21559 version_type=$version_type
21560
21561 # Format of library name prefix.
21562 libname_spec=$lt_libname_spec
21563
21564 # List of archive names.  First name is the real one, the rest are links.
21565 # The last name is the one that the linker finds with -lNAME.
21566 library_names_spec=$lt_library_names_spec
21567
21568 # The coded name of the library, if different from the real name.
21569 soname_spec=$lt_soname_spec
21570
21571 # Commands used to build and install an old-style archive.
21572 RANLIB=$lt_RANLIB
21573 old_archive_cmds=$lt_old_archive_cmds_CXX
21574 old_postinstall_cmds=$lt_old_postinstall_cmds
21575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21576
21577 # Create an old-style archive from a shared archive.
21578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21579
21580 # Create a temporary old-style archive to link instead of a shared archive.
21581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21582
21583 # Commands used to build and install a shared archive.
21584 archive_cmds=$lt_archive_cmds_CXX
21585 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21586 postinstall_cmds=$lt_postinstall_cmds
21587 postuninstall_cmds=$lt_postuninstall_cmds
21588
21589 # Commands used to build a loadable module (assumed same as above if empty)
21590 module_cmds=$lt_module_cmds_CXX
21591 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21592
21593 # Commands to strip libraries.
21594 old_striplib=$lt_old_striplib
21595 striplib=$lt_striplib
21596
21597 # Dependencies to place before the objects being linked to create a
21598 # shared library.
21599 predep_objects=$lt_predep_objects_CXX
21600
21601 # Dependencies to place after the objects being linked to create a
21602 # shared library.
21603 postdep_objects=$lt_postdep_objects_CXX
21604
21605 # Dependencies to place before the objects being linked to create a
21606 # shared library.
21607 predeps=$lt_predeps_CXX
21608
21609 # Dependencies to place after the objects being linked to create a
21610 # shared library.
21611 postdeps=$lt_postdeps_CXX
21612
21613 # The library search path used internally by the compiler when linking
21614 # a shared library.
21615 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21616
21617 # Method to check whether dependent libraries are shared objects.
21618 deplibs_check_method=$lt_deplibs_check_method
21619
21620 # Command to use when deplibs_check_method == file_magic.
21621 file_magic_cmd=$lt_file_magic_cmd
21622
21623 # Flag that allows shared libraries with undefined symbols to be built.
21624 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21625
21626 # Flag that forces no undefined symbols.
21627 no_undefined_flag=$lt_no_undefined_flag_CXX
21628
21629 # Commands used to finish a libtool library installation in a directory.
21630 finish_cmds=$lt_finish_cmds
21631
21632 # Same as above, but a single script fragment to be evaled but not shown.
21633 finish_eval=$lt_finish_eval
21634
21635 # Take the output of nm and produce a listing of raw symbols and C names.
21636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21637
21638 # Transform the output of nm in a proper C declaration
21639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21640
21641 # Transform the output of nm in a C name address pair
21642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21643
21644 # This is the shared library runtime path variable.
21645 runpath_var=$runpath_var
21646
21647 # This is the shared library path variable.
21648 shlibpath_var=$shlibpath_var
21649
21650 # Is shlibpath searched before the hard-coded library search path?
21651 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21652
21653 # How to hardcode a shared library path into an executable.
21654 hardcode_action=$hardcode_action_CXX
21655
21656 # Whether we should hardcode library paths into libraries.
21657 hardcode_into_libs=$hardcode_into_libs
21658
21659 # Flag to hardcode \$libdir into a binary during linking.
21660 # This must work even if \$libdir does not exist.
21661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21662
21663 # If ld is used when linking, flag to hardcode \$libdir into
21664 # a binary during linking. This must work even if \$libdir does
21665 # not exist.
21666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21667
21668 # Whether we need a single -rpath flag with a separated argument.
21669 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21670
21671 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21672 # resulting binary.
21673 hardcode_direct=$hardcode_direct_CXX
21674
21675 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21676 # resulting binary.
21677 hardcode_minus_L=$hardcode_minus_L_CXX
21678
21679 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21680 # the resulting binary.
21681 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21682
21683 # Set to yes if building a shared library automatically hardcodes DIR into the library
21684 # and all subsequent libraries and executables linked against it.
21685 hardcode_automatic=$hardcode_automatic_CXX
21686
21687 # Variables whose values should be saved in libtool wrapper scripts and
21688 # restored at relink time.
21689 variables_saved_for_relink="$variables_saved_for_relink"
21690
21691 # Whether libtool must link a program against all its dependency libraries.
21692 link_all_deplibs=$link_all_deplibs_CXX
21693
21694 # Compile-time system search path for libraries
21695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21696
21697 # Run-time system search path for libraries
21698 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21699
21700 # Fix the shell variable \$srcfile for the compiler.
21701 fix_srcfile_path=$lt_fix_srcfile_path
21702
21703 # Set to yes if exported symbols are required.
21704 always_export_symbols=$always_export_symbols_CXX
21705
21706 # The commands to list exported symbols.
21707 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21708
21709 # The commands to extract the exported symbol list from a shared archive.
21710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21711
21712 # Symbols that should not be listed in the preloaded symbols.
21713 exclude_expsyms=$lt_exclude_expsyms_CXX
21714
21715 # Symbols that must always be exported.
21716 include_expsyms=$lt_include_expsyms_CXX
21717
21718 # ### END LIBTOOL TAG CONFIG: $tagname
21719
21720 __EOF__
21721
21722
21723 else
21724   # If there is no Makefile yet, we rely on a make rule to execute
21725   # `config.status --recheck' to rerun these tests and create the
21726   # libtool script then.
21727   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21728   if test -f "$ltmain_in"; then
21729     test -f Makefile && make "$ltmain"
21730   fi
21731 fi
21732
21733
21734 ac_ext=c
21735 ac_cpp='$CPP $CPPFLAGS'
21736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21739
21740 CC=$lt_save_CC
21741 LDCXX=$LD
21742 LD=$lt_save_LD
21743 GCC=$lt_save_GCC
21744 with_gnu_ldcxx=$with_gnu_ld
21745 with_gnu_ld=$lt_save_with_gnu_ld
21746 lt_cv_path_LDCXX=$lt_cv_path_LD
21747 lt_cv_path_LD=$lt_save_path_LD
21748 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21749 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21750
21751         else
21752           tagname=""
21753         fi
21754         ;;
21755
21756       F77)
21757         if test -n "$F77" && test "X$F77" != "Xno"; then
21758
21759 ac_ext=f
21760 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21761 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21763
21764
21765 archive_cmds_need_lc_F77=no
21766 allow_undefined_flag_F77=
21767 always_export_symbols_F77=no
21768 archive_expsym_cmds_F77=
21769 export_dynamic_flag_spec_F77=
21770 hardcode_direct_F77=no
21771 hardcode_libdir_flag_spec_F77=
21772 hardcode_libdir_flag_spec_ld_F77=
21773 hardcode_libdir_separator_F77=
21774 hardcode_minus_L_F77=no
21775 hardcode_automatic_F77=no
21776 module_cmds_F77=
21777 module_expsym_cmds_F77=
21778 link_all_deplibs_F77=unknown
21779 old_archive_cmds_F77=$old_archive_cmds
21780 no_undefined_flag_F77=
21781 whole_archive_flag_spec_F77=
21782 enable_shared_with_static_runtimes_F77=no
21783
21784 # Source file extension for f77 test sources.
21785 ac_ext=f
21786
21787 # Object file extension for compiled f77 test sources.
21788 objext=o
21789 objext_F77=$objext
21790
21791 # Code to be used in simple compile tests
21792 lt_simple_compile_test_code="\
21793       subroutine t
21794       return
21795       end
21796 "
21797
21798 # Code to be used in simple link tests
21799 lt_simple_link_test_code="\
21800       program t
21801       end
21802 "
21803
21804 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21805
21806 # If no C compiler was specified, use CC.
21807 LTCC=${LTCC-"$CC"}
21808
21809 # If no C compiler flags were specified, use CFLAGS.
21810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21811
21812 # Allow CC to be a program name with arguments.
21813 compiler=$CC
21814
21815
21816 # save warnings/boilerplate of simple test code
21817 ac_outfile=conftest.$ac_objext
21818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21820 _lt_compiler_boilerplate=`cat conftest.err`
21821 $rm conftest*
21822
21823 ac_outfile=conftest.$ac_objext
21824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21826 _lt_linker_boilerplate=`cat conftest.err`
21827 $rm conftest*
21828
21829
21830 # Allow CC to be a program name with arguments.
21831 lt_save_CC="$CC"
21832 CC=${F77-"f77"}
21833 compiler=$CC
21834 compiler_F77=$CC
21835 for cc_temp in $compiler""; do
21836   case $cc_temp in
21837     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21838     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21839     \-*) ;;
21840     *) break;;
21841   esac
21842 done
21843 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21844
21845
21846 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21847 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21848 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21849 echo "${ECHO_T}$can_build_shared" >&6; }
21850
21851 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21852 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21853 test "$can_build_shared" = "no" && enable_shared=no
21854
21855 # On AIX, shared libraries and static libraries use the same namespace, and
21856 # are all built from PIC.
21857 case $host_os in
21858 aix3*)
21859   test "$enable_shared" = yes && enable_static=no
21860   if test -n "$RANLIB"; then
21861     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21862     postinstall_cmds='$RANLIB $lib'
21863   fi
21864   ;;
21865 aix4* | aix5*)
21866   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21867     test "$enable_shared" = yes && enable_static=no
21868   fi
21869   ;;
21870 esac
21871 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21872 echo "${ECHO_T}$enable_shared" >&6; }
21873
21874 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21875 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21876 # Make sure either enable_shared or enable_static is yes.
21877 test "$enable_shared" = yes || enable_static=yes
21878 { echo "$as_me:$LINENO: result: $enable_static" >&5
21879 echo "${ECHO_T}$enable_static" >&6; }
21880
21881 GCC_F77="$G77"
21882 LD_F77="$LD"
21883
21884 lt_prog_compiler_wl_F77=
21885 lt_prog_compiler_pic_F77=
21886 lt_prog_compiler_static_F77=
21887
21888 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21889 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21890
21891   if test "$GCC" = yes; then
21892     lt_prog_compiler_wl_F77='-Wl,'
21893     lt_prog_compiler_static_F77='-static'
21894
21895     case $host_os in
21896       aix*)
21897       # All AIX code is PIC.
21898       if test "$host_cpu" = ia64; then
21899         # AIX 5 now supports IA64 processor
21900         lt_prog_compiler_static_F77='-Bstatic'
21901       fi
21902       ;;
21903
21904     amigaos*)
21905       # FIXME: we need at least 68020 code to build shared libraries, but
21906       # adding the `-m68020' flag to GCC prevents building anything better,
21907       # like `-m68040'.
21908       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21909       ;;
21910
21911     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21912       # PIC is the default for these OSes.
21913       ;;
21914
21915     mingw* | cygwin* | pw32* | os2*)
21916       # This hack is so that the source file can tell whether it is being
21917       # built for inclusion in a dll (and should export symbols for example).
21918       # Although the cygwin gcc ignores -fPIC, still need this for old-style
21919       # (--disable-auto-import) libraries
21920       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21921       ;;
21922
21923     darwin* | rhapsody*)
21924       # PIC is the default on this platform
21925       # Common symbols not allowed in MH_DYLIB files
21926       lt_prog_compiler_pic_F77='-fno-common'
21927       ;;
21928
21929     interix[3-9]*)
21930       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21931       # Instead, we relocate shared libraries at runtime.
21932       ;;
21933
21934     msdosdjgpp*)
21935       # Just because we use GCC doesn't mean we suddenly get shared libraries
21936       # on systems that don't support them.
21937       lt_prog_compiler_can_build_shared_F77=no
21938       enable_shared=no
21939       ;;
21940
21941     sysv4*MP*)
21942       if test -d /usr/nec; then
21943         lt_prog_compiler_pic_F77=-Kconform_pic
21944       fi
21945       ;;
21946
21947     hpux*)
21948       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21949       # not for PA HP-UX.
21950       case $host_cpu in
21951       hppa*64*|ia64*)
21952         # +Z the default
21953         ;;
21954       *)
21955         lt_prog_compiler_pic_F77='-fPIC'
21956         ;;
21957       esac
21958       ;;
21959
21960     *)
21961       lt_prog_compiler_pic_F77='-fPIC'
21962       ;;
21963     esac
21964   else
21965     # PORTME Check for flag to pass linker flags through the system compiler.
21966     case $host_os in
21967     aix*)
21968       lt_prog_compiler_wl_F77='-Wl,'
21969       if test "$host_cpu" = ia64; then
21970         # AIX 5 now supports IA64 processor
21971         lt_prog_compiler_static_F77='-Bstatic'
21972       else
21973         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21974       fi
21975       ;;
21976       darwin*)
21977         # PIC is the default on this platform
21978         # Common symbols not allowed in MH_DYLIB files
21979        case $cc_basename in
21980          xlc*)
21981          lt_prog_compiler_pic_F77='-qnocommon'
21982          lt_prog_compiler_wl_F77='-Wl,'
21983          ;;
21984        esac
21985        ;;
21986
21987     mingw* | cygwin* | pw32* | os2*)
21988       # This hack is so that the source file can tell whether it is being
21989       # built for inclusion in a dll (and should export symbols for example).
21990       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21991       ;;
21992
21993     hpux9* | hpux10* | hpux11*)
21994       lt_prog_compiler_wl_F77='-Wl,'
21995       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21996       # not for PA HP-UX.
21997       case $host_cpu in
21998       hppa*64*|ia64*)
21999         # +Z the default
22000         ;;
22001       *)
22002         lt_prog_compiler_pic_F77='+Z'
22003         ;;
22004       esac
22005       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22006       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22007       ;;
22008
22009     irix5* | irix6* | nonstopux*)
22010       lt_prog_compiler_wl_F77='-Wl,'
22011       # PIC (with -KPIC) is the default.
22012       lt_prog_compiler_static_F77='-non_shared'
22013       ;;
22014
22015     newsos6)
22016       lt_prog_compiler_pic_F77='-KPIC'
22017       lt_prog_compiler_static_F77='-Bstatic'
22018       ;;
22019
22020     linux* | k*bsd*-gnu)
22021       case $cc_basename in
22022       icc* | ecc*)
22023         lt_prog_compiler_wl_F77='-Wl,'
22024         lt_prog_compiler_pic_F77='-KPIC'
22025         lt_prog_compiler_static_F77='-static'
22026         ;;
22027       pgcc* | pgf77* | pgf90* | pgf95*)
22028         # Portland Group compilers (*not* the Pentium gcc compiler,
22029         # which looks to be a dead project)
22030         lt_prog_compiler_wl_F77='-Wl,'
22031         lt_prog_compiler_pic_F77='-fpic'
22032         lt_prog_compiler_static_F77='-Bstatic'
22033         ;;
22034       ccc*)
22035         lt_prog_compiler_wl_F77='-Wl,'
22036         # All Alpha code is PIC.
22037         lt_prog_compiler_static_F77='-non_shared'
22038         ;;
22039       *)
22040         case `$CC -V 2>&1 | sed 5q` in
22041         *Sun\ C*)
22042           # Sun C 5.9
22043           lt_prog_compiler_pic_F77='-KPIC'
22044           lt_prog_compiler_static_F77='-Bstatic'
22045           lt_prog_compiler_wl_F77='-Wl,'
22046           ;;
22047         *Sun\ F*)
22048           # Sun Fortran 8.3 passes all unrecognized flags to the linker
22049           lt_prog_compiler_pic_F77='-KPIC'
22050           lt_prog_compiler_static_F77='-Bstatic'
22051           lt_prog_compiler_wl_F77=''
22052           ;;
22053         esac
22054         ;;
22055       esac
22056       ;;
22057
22058     osf3* | osf4* | osf5*)
22059       lt_prog_compiler_wl_F77='-Wl,'
22060       # All OSF/1 code is PIC.
22061       lt_prog_compiler_static_F77='-non_shared'
22062       ;;
22063
22064     rdos*)
22065       lt_prog_compiler_static_F77='-non_shared'
22066       ;;
22067
22068     solaris*)
22069       lt_prog_compiler_pic_F77='-KPIC'
22070       lt_prog_compiler_static_F77='-Bstatic'
22071       case $cc_basename in
22072       f77* | f90* | f95*)
22073         lt_prog_compiler_wl_F77='-Qoption ld ';;
22074       *)
22075         lt_prog_compiler_wl_F77='-Wl,';;
22076       esac
22077       ;;
22078
22079     sunos4*)
22080       lt_prog_compiler_wl_F77='-Qoption ld '
22081       lt_prog_compiler_pic_F77='-PIC'
22082       lt_prog_compiler_static_F77='-Bstatic'
22083       ;;
22084
22085     sysv4 | sysv4.2uw2* | sysv4.3*)
22086       lt_prog_compiler_wl_F77='-Wl,'
22087       lt_prog_compiler_pic_F77='-KPIC'
22088       lt_prog_compiler_static_F77='-Bstatic'
22089       ;;
22090
22091     sysv4*MP*)
22092       if test -d /usr/nec ;then
22093         lt_prog_compiler_pic_F77='-Kconform_pic'
22094         lt_prog_compiler_static_F77='-Bstatic'
22095       fi
22096       ;;
22097
22098     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22099       lt_prog_compiler_wl_F77='-Wl,'
22100       lt_prog_compiler_pic_F77='-KPIC'
22101       lt_prog_compiler_static_F77='-Bstatic'
22102       ;;
22103
22104     unicos*)
22105       lt_prog_compiler_wl_F77='-Wl,'
22106       lt_prog_compiler_can_build_shared_F77=no
22107       ;;
22108
22109     uts4*)
22110       lt_prog_compiler_pic_F77='-pic'
22111       lt_prog_compiler_static_F77='-Bstatic'
22112       ;;
22113
22114     *)
22115       lt_prog_compiler_can_build_shared_F77=no
22116       ;;
22117     esac
22118   fi
22119
22120 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22121 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
22122
22123 #
22124 # Check to make sure the PIC flag actually works.
22125 #
22126 if test -n "$lt_prog_compiler_pic_F77"; then
22127
22128 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22129 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
22130 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
22131   echo $ECHO_N "(cached) $ECHO_C" >&6
22132 else
22133   lt_prog_compiler_pic_works_F77=no
22134   ac_outfile=conftest.$ac_objext
22135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22136    lt_compiler_flag="$lt_prog_compiler_pic_F77"
22137    # Insert the option either (1) after the last *FLAGS variable, or
22138    # (2) before a word containing "conftest.", or (3) at the end.
22139    # Note that $ac_compile itself does not contain backslashes and begins
22140    # with a dollar sign (not a hyphen), so the echo should work correctly.
22141    # The option is referenced via a variable to avoid confusing sed.
22142    lt_compile=`echo "$ac_compile" | $SED \
22143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22145    -e 's:$: $lt_compiler_flag:'`
22146    (eval echo "\"\$as_me:22146: $lt_compile\"" >&5)
22147    (eval "$lt_compile" 2>conftest.err)
22148    ac_status=$?
22149    cat conftest.err >&5
22150    echo "$as_me:22150: \$? = $ac_status" >&5
22151    if (exit $ac_status) && test -s "$ac_outfile"; then
22152      # The compiler can only warn and ignore the option if not recognized
22153      # So say no if there are warnings other than the usual output.
22154      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22155      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22156      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22157        lt_prog_compiler_pic_works_F77=yes
22158      fi
22159    fi
22160    $rm conftest*
22161
22162 fi
22163 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
22164 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
22165
22166 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
22167     case $lt_prog_compiler_pic_F77 in
22168      "" | " "*) ;;
22169      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22170      esac
22171 else
22172     lt_prog_compiler_pic_F77=
22173      lt_prog_compiler_can_build_shared_F77=no
22174 fi
22175
22176 fi
22177 case $host_os in
22178   # For platforms which do not support PIC, -DPIC is meaningless:
22179   *djgpp*)
22180     lt_prog_compiler_pic_F77=
22181     ;;
22182   *)
22183     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22184     ;;
22185 esac
22186
22187 #
22188 # Check to make sure the static flag actually works.
22189 #
22190 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22191 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22192 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22193 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
22194   echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196   lt_prog_compiler_static_works_F77=no
22197    save_LDFLAGS="$LDFLAGS"
22198    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22199    echo "$lt_simple_link_test_code" > conftest.$ac_ext
22200    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22201      # The linker can only warn and ignore the option if not recognized
22202      # So say no if there are warnings
22203      if test -s conftest.err; then
22204        # Append any errors to the config.log.
22205        cat conftest.err 1>&5
22206        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22207        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22208        if diff conftest.exp conftest.er2 >/dev/null; then
22209          lt_prog_compiler_static_works_F77=yes
22210        fi
22211      else
22212        lt_prog_compiler_static_works_F77=yes
22213      fi
22214    fi
22215    $rm conftest*
22216    LDFLAGS="$save_LDFLAGS"
22217
22218 fi
22219 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22220 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22221
22222 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22223     :
22224 else
22225     lt_prog_compiler_static_F77=
22226 fi
22227
22228
22229 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22230 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22231 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22232   echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234   lt_cv_prog_compiler_c_o_F77=no
22235    $rm -r conftest 2>/dev/null
22236    mkdir conftest
22237    cd conftest
22238    mkdir out
22239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22240
22241    lt_compiler_flag="-o out/conftest2.$ac_objext"
22242    # Insert the option either (1) after the last *FLAGS variable, or
22243    # (2) before a word containing "conftest.", or (3) at the end.
22244    # Note that $ac_compile itself does not contain backslashes and begins
22245    # with a dollar sign (not a hyphen), so the echo should work correctly.
22246    lt_compile=`echo "$ac_compile" | $SED \
22247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22249    -e 's:$: $lt_compiler_flag:'`
22250    (eval echo "\"\$as_me:22250: $lt_compile\"" >&5)
22251    (eval "$lt_compile" 2>out/conftest.err)
22252    ac_status=$?
22253    cat out/conftest.err >&5
22254    echo "$as_me:22254: \$? = $ac_status" >&5
22255    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22256    then
22257      # The compiler can only warn and ignore the option if not recognized
22258      # So say no if there are warnings
22259      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22260      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22261      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22262        lt_cv_prog_compiler_c_o_F77=yes
22263      fi
22264    fi
22265    chmod u+w . 2>&5
22266    $rm conftest*
22267    # SGI C++ compiler will create directory out/ii_files/ for
22268    # template instantiation
22269    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22270    $rm out/* && rmdir out
22271    cd ..
22272    rmdir conftest
22273    $rm conftest*
22274
22275 fi
22276 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22277 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22278
22279
22280 hard_links="nottested"
22281 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22282   # do not overwrite the value of need_locks provided by the user
22283   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22284 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22285   hard_links=yes
22286   $rm conftest*
22287   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22288   touch conftest.a
22289   ln conftest.a conftest.b 2>&5 || hard_links=no
22290   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22291   { echo "$as_me:$LINENO: result: $hard_links" >&5
22292 echo "${ECHO_T}$hard_links" >&6; }
22293   if test "$hard_links" = no; then
22294     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22295 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22296     need_locks=warn
22297   fi
22298 else
22299   need_locks=no
22300 fi
22301
22302 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22303 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22304
22305   runpath_var=
22306   allow_undefined_flag_F77=
22307   enable_shared_with_static_runtimes_F77=no
22308   archive_cmds_F77=
22309   archive_expsym_cmds_F77=
22310   old_archive_From_new_cmds_F77=
22311   old_archive_from_expsyms_cmds_F77=
22312   export_dynamic_flag_spec_F77=
22313   whole_archive_flag_spec_F77=
22314   thread_safe_flag_spec_F77=
22315   hardcode_libdir_flag_spec_F77=
22316   hardcode_libdir_flag_spec_ld_F77=
22317   hardcode_libdir_separator_F77=
22318   hardcode_direct_F77=no
22319   hardcode_minus_L_F77=no
22320   hardcode_shlibpath_var_F77=unsupported
22321   link_all_deplibs_F77=unknown
22322   hardcode_automatic_F77=no
22323   module_cmds_F77=
22324   module_expsym_cmds_F77=
22325   always_export_symbols_F77=no
22326   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22327   # include_expsyms should be a list of space-separated symbols to be *always*
22328   # included in the symbol list
22329   include_expsyms_F77=
22330   # exclude_expsyms can be an extended regexp of symbols to exclude
22331   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22332   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22333   # as well as any symbol that contains `d'.
22334   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22335   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22336   # platforms (ab)use it in PIC code, but their linkers get confused if
22337   # the symbol is explicitly referenced.  Since portable code cannot
22338   # rely on this symbol name, it's probably fine to never include it in
22339   # preloaded symbol tables.
22340   extract_expsyms_cmds=
22341   # Just being paranoid about ensuring that cc_basename is set.
22342   for cc_temp in $compiler""; do
22343   case $cc_temp in
22344     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22345     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22346     \-*) ;;
22347     *) break;;
22348   esac
22349 done
22350 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22351
22352   case $host_os in
22353   cygwin* | mingw* | pw32*)
22354     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22355     # When not using gcc, we currently assume that we are using
22356     # Microsoft Visual C++.
22357     if test "$GCC" != yes; then
22358       with_gnu_ld=no
22359     fi
22360     ;;
22361   interix*)
22362     # we just hope/assume this is gcc and not c89 (= MSVC++)
22363     with_gnu_ld=yes
22364     ;;
22365   openbsd*)
22366     with_gnu_ld=no
22367     ;;
22368   esac
22369
22370   ld_shlibs_F77=yes
22371   if test "$with_gnu_ld" = yes; then
22372     # If archive_cmds runs LD, not CC, wlarc should be empty
22373     wlarc='${wl}'
22374
22375     # Set some defaults for GNU ld with shared library support. These
22376     # are reset later if shared libraries are not supported. Putting them
22377     # here allows them to be overridden if necessary.
22378     runpath_var=LD_RUN_PATH
22379     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22380     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22381     # ancient GNU ld didn't support --whole-archive et. al.
22382     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22383         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22384       else
22385         whole_archive_flag_spec_F77=
22386     fi
22387     supports_anon_versioning=no
22388     case `$LD -v 2>/dev/null` in
22389       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22390       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22391       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22392       *\ 2.11.*) ;; # other 2.11 versions
22393       *) supports_anon_versioning=yes ;;
22394     esac
22395
22396     # See if GNU ld supports shared libraries.
22397     case $host_os in
22398     aix3* | aix4* | aix5*)
22399       # On AIX/PPC, the GNU linker is very broken
22400       if test "$host_cpu" != ia64; then
22401         ld_shlibs_F77=no
22402         cat <<EOF 1>&2
22403
22404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22405 *** to be unable to reliably create shared libraries on AIX.
22406 *** Therefore, libtool is disabling shared libraries support.  If you
22407 *** really care for shared libraries, you may want to modify your PATH
22408 *** so that a non-GNU linker is found, and then restart.
22409
22410 EOF
22411       fi
22412       ;;
22413
22414     amigaos*)
22415       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)'
22416       hardcode_libdir_flag_spec_F77='-L$libdir'
22417       hardcode_minus_L_F77=yes
22418
22419       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22420       # that the semantics of dynamic libraries on AmigaOS, at least up
22421       # to version 4, is to share data among multiple programs linked
22422       # with the same dynamic library.  Since this doesn't match the
22423       # behavior of shared libraries on other platforms, we can't use
22424       # them.
22425       ld_shlibs_F77=no
22426       ;;
22427
22428     beos*)
22429       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22430         allow_undefined_flag_F77=unsupported
22431         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22432         # support --undefined.  This deserves some investigation.  FIXME
22433         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22434       else
22435         ld_shlibs_F77=no
22436       fi
22437       ;;
22438
22439     cygwin* | mingw* | pw32*)
22440       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22441       # as there is no search path for DLLs.
22442       hardcode_libdir_flag_spec_F77='-L$libdir'
22443       allow_undefined_flag_F77=unsupported
22444       always_export_symbols_F77=no
22445       enable_shared_with_static_runtimes_F77=yes
22446       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22447
22448       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22449         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22450         # If the export-symbols file already is a .def file (1st line
22451         # is EXPORTS), use it as is; otherwise, prepend...
22452         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22453           cp $export_symbols $output_objdir/$soname.def;
22454         else
22455           echo EXPORTS > $output_objdir/$soname.def;
22456           cat $export_symbols >> $output_objdir/$soname.def;
22457         fi~
22458         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22459       else
22460         ld_shlibs_F77=no
22461       fi
22462       ;;
22463
22464     interix[3-9]*)
22465       hardcode_direct_F77=no
22466       hardcode_shlibpath_var_F77=no
22467       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22468       export_dynamic_flag_spec_F77='${wl}-E'
22469       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22470       # Instead, shared libraries are loaded at an image base (0x10000000 by
22471       # default) and relocated if they conflict, which is a slow very memory
22472       # consuming and fragmenting process.  To avoid this, we pick a random,
22473       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22474       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22475       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'
22476       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'
22477       ;;
22478
22479     gnu* | linux* | k*bsd*-gnu)
22480       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22481         tmp_addflag=
22482         case $cc_basename,$host_cpu in
22483         pgcc*)                          # Portland Group C compiler
22484           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'
22485           tmp_addflag=' $pic_flag'
22486           ;;
22487         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22488           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'
22489           tmp_addflag=' $pic_flag -Mnomain' ;;
22490         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22491           tmp_addflag=' -i_dynamic' ;;
22492         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22493           tmp_addflag=' -i_dynamic -nofor_main' ;;
22494         ifc* | ifort*)                  # Intel Fortran compiler
22495           tmp_addflag=' -nofor_main' ;;
22496         esac
22497         case `$CC -V 2>&1 | sed 5q` in
22498         *Sun\ C*)                       # Sun C 5.9
22499           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22500           tmp_sharedflag='-G' ;;
22501         *Sun\ F*)                       # Sun Fortran 8.3
22502           tmp_sharedflag='-G' ;;
22503         *)
22504           tmp_sharedflag='-shared' ;;
22505         esac
22506         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22507
22508         if test $supports_anon_versioning = yes; then
22509           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22510   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22511   $echo "local: *; };" >> $output_objdir/$libname.ver~
22512           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22513         fi
22514         link_all_deplibs_F77=no
22515       else
22516         ld_shlibs_F77=no
22517       fi
22518       ;;
22519
22520     netbsd* | netbsdelf*-gnu)
22521       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22522         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22523         wlarc=
22524       else
22525         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22526         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22527       fi
22528       ;;
22529
22530     solaris*)
22531       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22532         ld_shlibs_F77=no
22533         cat <<EOF 1>&2
22534
22535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22536 *** create shared libraries on Solaris systems.  Therefore, libtool
22537 *** is disabling shared libraries support.  We urge you to upgrade GNU
22538 *** binutils to release 2.9.1 or newer.  Another option is to modify
22539 *** your PATH or compiler configuration so that the native linker is
22540 *** used, and then restart.
22541
22542 EOF
22543       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22544         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22545         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22546       else
22547         ld_shlibs_F77=no
22548       fi
22549       ;;
22550
22551     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22552       case `$LD -v 2>&1` in
22553         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22554         ld_shlibs_F77=no
22555         cat <<_LT_EOF 1>&2
22556
22557 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22558 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22559 *** is disabling shared libraries support.  We urge you to upgrade GNU
22560 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22561 *** your PATH or compiler configuration so that the native linker is
22562 *** used, and then restart.
22563
22564 _LT_EOF
22565         ;;
22566         *)
22567           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22568             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22569             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22570             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22571           else
22572             ld_shlibs_F77=no
22573           fi
22574         ;;
22575       esac
22576       ;;
22577
22578     sunos4*)
22579       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22580       wlarc=
22581       hardcode_direct_F77=yes
22582       hardcode_shlibpath_var_F77=no
22583       ;;
22584
22585     *)
22586       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22587         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22588         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22589       else
22590         ld_shlibs_F77=no
22591       fi
22592       ;;
22593     esac
22594
22595     if test "$ld_shlibs_F77" = no; then
22596       runpath_var=
22597       hardcode_libdir_flag_spec_F77=
22598       export_dynamic_flag_spec_F77=
22599       whole_archive_flag_spec_F77=
22600     fi
22601   else
22602     # PORTME fill in a description of your system's linker (not GNU ld)
22603     case $host_os in
22604     aix3*)
22605       allow_undefined_flag_F77=unsupported
22606       always_export_symbols_F77=yes
22607       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'
22608       # Note: this linker hardcodes the directories in LIBPATH if there
22609       # are no directories specified by -L.
22610       hardcode_minus_L_F77=yes
22611       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22612         # Neither direct hardcoding nor static linking is supported with a
22613         # broken collect2.
22614         hardcode_direct_F77=unsupported
22615       fi
22616       ;;
22617
22618     aix4* | aix5*)
22619       if test "$host_cpu" = ia64; then
22620         # On IA64, the linker does run time linking by default, so we don't
22621         # have to do anything special.
22622         aix_use_runtimelinking=no
22623         exp_sym_flag='-Bexport'
22624         no_entry_flag=""
22625       else
22626         # If we're using GNU nm, then we don't want the "-C" option.
22627         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22628         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22629           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'
22630         else
22631           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'
22632         fi
22633         aix_use_runtimelinking=no
22634
22635         # Test if we are trying to use run time linking or normal
22636         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22637         # need to do runtime linking.
22638         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22639           for ld_flag in $LDFLAGS; do
22640           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22641             aix_use_runtimelinking=yes
22642             break
22643           fi
22644           done
22645           ;;
22646         esac
22647
22648         exp_sym_flag='-bexport'
22649         no_entry_flag='-bnoentry'
22650       fi
22651
22652       # When large executables or shared objects are built, AIX ld can
22653       # have problems creating the table of contents.  If linking a library
22654       # or program results in "error TOC overflow" add -mminimal-toc to
22655       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22656       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22657
22658       archive_cmds_F77=''
22659       hardcode_direct_F77=yes
22660       hardcode_libdir_separator_F77=':'
22661       link_all_deplibs_F77=yes
22662
22663       if test "$GCC" = yes; then
22664         case $host_os in aix4.[012]|aix4.[012].*)
22665         # We only want to do this on AIX 4.2 and lower, the check
22666         # below for broken collect2 doesn't work under 4.3+
22667           collect2name=`${CC} -print-prog-name=collect2`
22668           if test -f "$collect2name" && \
22669            strings "$collect2name" | grep resolve_lib_name >/dev/null
22670           then
22671           # We have reworked collect2
22672           :
22673           else
22674           # We have old collect2
22675           hardcode_direct_F77=unsupported
22676           # It fails to find uninstalled libraries when the uninstalled
22677           # path is not listed in the libpath.  Setting hardcode_minus_L
22678           # to unsupported forces relinking
22679           hardcode_minus_L_F77=yes
22680           hardcode_libdir_flag_spec_F77='-L$libdir'
22681           hardcode_libdir_separator_F77=
22682           fi
22683           ;;
22684         esac
22685         shared_flag='-shared'
22686         if test "$aix_use_runtimelinking" = yes; then
22687           shared_flag="$shared_flag "'${wl}-G'
22688         fi
22689       else
22690         # not using gcc
22691         if test "$host_cpu" = ia64; then
22692         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22693         # chokes on -Wl,-G. The following line is correct:
22694           shared_flag='-G'
22695         else
22696           if test "$aix_use_runtimelinking" = yes; then
22697             shared_flag='${wl}-G'
22698           else
22699             shared_flag='${wl}-bM:SRE'
22700           fi
22701         fi
22702       fi
22703
22704       # It seems that -bexpall does not export symbols beginning with
22705       # underscore (_), so it is better to generate a list of symbols to export.
22706       always_export_symbols_F77=yes
22707       if test "$aix_use_runtimelinking" = yes; then
22708         # Warning - without using the other runtime loading flags (-brtl),
22709         # -berok will link without error, but may produce a broken library.
22710         allow_undefined_flag_F77='-berok'
22711        # Determine the default libpath from the value encoded in an empty executable.
22712        cat >conftest.$ac_ext <<_ACEOF
22713       program main
22714
22715       end
22716 _ACEOF
22717 rm -f conftest.$ac_objext conftest$ac_exeext
22718 if { (ac_try="$ac_link"
22719 case "(($ac_try" in
22720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721   *) ac_try_echo=$ac_try;;
22722 esac
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724   (eval "$ac_link") 2>conftest.er1
22725   ac_status=$?
22726   grep -v '^ *+' conftest.er1 >conftest.err
22727   rm -f conftest.er1
22728   cat conftest.err >&5
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } && {
22731          test -z "$ac_f77_werror_flag" ||
22732          test ! -s conftest.err
22733        } && test -s conftest$ac_exeext &&
22734        $as_test_x conftest$ac_exeext; then
22735
22736 lt_aix_libpath_sed='
22737     /Import File Strings/,/^$/ {
22738         /^0/ {
22739             s/^0  *\(.*\)$/\1/
22740             p
22741         }
22742     }'
22743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22744 # Check for a 64-bit object if we didn't find anything.
22745 if test -z "$aix_libpath"; then
22746   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22747 fi
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22756       conftest$ac_exeext conftest.$ac_ext
22757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22758
22759        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22760         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"
22761        else
22762         if test "$host_cpu" = ia64; then
22763           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22764           allow_undefined_flag_F77="-z nodefs"
22765           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"
22766         else
22767          # Determine the default libpath from the value encoded in an empty executable.
22768          cat >conftest.$ac_ext <<_ACEOF
22769       program main
22770
22771       end
22772 _ACEOF
22773 rm -f conftest.$ac_objext conftest$ac_exeext
22774 if { (ac_try="$ac_link"
22775 case "(($ac_try" in
22776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777   *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780   (eval "$ac_link") 2>conftest.er1
22781   ac_status=$?
22782   grep -v '^ *+' conftest.er1 >conftest.err
22783   rm -f conftest.er1
22784   cat conftest.err >&5
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); } && {
22787          test -z "$ac_f77_werror_flag" ||
22788          test ! -s conftest.err
22789        } && test -s conftest$ac_exeext &&
22790        $as_test_x conftest$ac_exeext; then
22791
22792 lt_aix_libpath_sed='
22793     /Import File Strings/,/^$/ {
22794         /^0/ {
22795             s/^0  *\(.*\)$/\1/
22796             p
22797         }
22798     }'
22799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22800 # Check for a 64-bit object if we didn't find anything.
22801 if test -z "$aix_libpath"; then
22802   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22803 fi
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808
22809 fi
22810
22811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22812       conftest$ac_exeext conftest.$ac_ext
22813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22814
22815          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22816           # Warning - without using the other run time loading flags,
22817           # -berok will link without error, but may produce a broken library.
22818           no_undefined_flag_F77=' ${wl}-bernotok'
22819           allow_undefined_flag_F77=' ${wl}-berok'
22820           # Exported symbols can be pulled into shared objects from archives
22821           whole_archive_flag_spec_F77='$convenience'
22822           archive_cmds_need_lc_F77=yes
22823           # This is similar to how AIX traditionally builds its shared libraries.
22824           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'
22825         fi
22826       fi
22827       ;;
22828
22829     amigaos*)
22830       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)'
22831       hardcode_libdir_flag_spec_F77='-L$libdir'
22832       hardcode_minus_L_F77=yes
22833       # see comment about different semantics on the GNU ld section
22834       ld_shlibs_F77=no
22835       ;;
22836
22837     bsdi[45]*)
22838       export_dynamic_flag_spec_F77=-rdynamic
22839       ;;
22840
22841     cygwin* | mingw* | pw32*)
22842       # When not using gcc, we currently assume that we are using
22843       # Microsoft Visual C++.
22844       # hardcode_libdir_flag_spec is actually meaningless, as there is
22845       # no search path for DLLs.
22846       hardcode_libdir_flag_spec_F77=' '
22847       allow_undefined_flag_F77=unsupported
22848       # Tell ltmain to make .lib files, not .a files.
22849       libext=lib
22850       # Tell ltmain to make .dll files, not .so files.
22851       shrext_cmds=".dll"
22852       # FIXME: Setting linknames here is a bad hack.
22853       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22854       # The linker will automatically build a .lib file if we build a DLL.
22855       old_archive_From_new_cmds_F77='true'
22856       # FIXME: Should let the user specify the lib program.
22857       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22858       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22859       enable_shared_with_static_runtimes_F77=yes
22860       ;;
22861
22862     darwin* | rhapsody*)
22863       case $host_os in
22864         rhapsody* | darwin1.[012])
22865          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22866          ;;
22867        *) # Darwin 1.3 on
22868          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22869            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22870          else
22871            case ${MACOSX_DEPLOYMENT_TARGET} in
22872              10.[012])
22873                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22874                ;;
22875              10.*)
22876                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22877                ;;
22878            esac
22879          fi
22880          ;;
22881       esac
22882       archive_cmds_need_lc_F77=no
22883       hardcode_direct_F77=no
22884       hardcode_automatic_F77=yes
22885       hardcode_shlibpath_var_F77=unsupported
22886       whole_archive_flag_spec_F77=''
22887       link_all_deplibs_F77=yes
22888     if test "$GCC" = yes ; then
22889         output_verbose_link_cmd='echo'
22890         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22891       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22892       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22893       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}'
22894       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}'
22895     else
22896       case $cc_basename in
22897         xlc*)
22898          output_verbose_link_cmd='echo'
22899          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22900          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22901           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22902          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22903           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}'
22904           ;;
22905        *)
22906          ld_shlibs_F77=no
22907           ;;
22908       esac
22909     fi
22910       ;;
22911
22912     dgux*)
22913       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22914       hardcode_libdir_flag_spec_F77='-L$libdir'
22915       hardcode_shlibpath_var_F77=no
22916       ;;
22917
22918     freebsd1*)
22919       ld_shlibs_F77=no
22920       ;;
22921
22922     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22923     # support.  Future versions do this automatically, but an explicit c++rt0.o
22924     # does not break anything, and helps significantly (at the cost of a little
22925     # extra space).
22926     freebsd2.2*)
22927       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22928       hardcode_libdir_flag_spec_F77='-R$libdir'
22929       hardcode_direct_F77=yes
22930       hardcode_shlibpath_var_F77=no
22931       ;;
22932
22933     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22934     freebsd2*)
22935       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22936       hardcode_direct_F77=yes
22937       hardcode_minus_L_F77=yes
22938       hardcode_shlibpath_var_F77=no
22939       ;;
22940
22941     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22942     freebsd* | dragonfly*)
22943       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22944       hardcode_libdir_flag_spec_F77='-R$libdir'
22945       hardcode_direct_F77=yes
22946       hardcode_shlibpath_var_F77=no
22947       ;;
22948
22949     hpux9*)
22950       if test "$GCC" = yes; then
22951         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'
22952       else
22953         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'
22954       fi
22955       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22956       hardcode_libdir_separator_F77=:
22957       hardcode_direct_F77=yes
22958
22959       # hardcode_minus_L: Not really in the search PATH,
22960       # but as the default location of the library.
22961       hardcode_minus_L_F77=yes
22962       export_dynamic_flag_spec_F77='${wl}-E'
22963       ;;
22964
22965     hpux10*)
22966       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22967         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22968       else
22969         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22970       fi
22971       if test "$with_gnu_ld" = no; then
22972         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22973         hardcode_libdir_separator_F77=:
22974
22975         hardcode_direct_F77=yes
22976         export_dynamic_flag_spec_F77='${wl}-E'
22977
22978         # hardcode_minus_L: Not really in the search PATH,
22979         # but as the default location of the library.
22980         hardcode_minus_L_F77=yes
22981       fi
22982       ;;
22983
22984     hpux11*)
22985       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22986         case $host_cpu in
22987         hppa*64*)
22988           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22989           ;;
22990         ia64*)
22991           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22992           ;;
22993         *)
22994           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22995           ;;
22996         esac
22997       else
22998         case $host_cpu in
22999         hppa*64*)
23000           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23001           ;;
23002         ia64*)
23003           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23004           ;;
23005         *)
23006           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23007           ;;
23008         esac
23009       fi
23010       if test "$with_gnu_ld" = no; then
23011         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23012         hardcode_libdir_separator_F77=:
23013
23014         case $host_cpu in
23015         hppa*64*|ia64*)
23016           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23017           hardcode_direct_F77=no
23018           hardcode_shlibpath_var_F77=no
23019           ;;
23020         *)
23021           hardcode_direct_F77=yes
23022           export_dynamic_flag_spec_F77='${wl}-E'
23023
23024           # hardcode_minus_L: Not really in the search PATH,
23025           # but as the default location of the library.
23026           hardcode_minus_L_F77=yes
23027           ;;
23028         esac
23029       fi
23030       ;;
23031
23032     irix5* | irix6* | nonstopux*)
23033       if test "$GCC" = yes; then
23034         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'
23035       else
23036         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'
23037         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23038       fi
23039       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23040       hardcode_libdir_separator_F77=:
23041       link_all_deplibs_F77=yes
23042       ;;
23043
23044     netbsd* | netbsdelf*-gnu)
23045       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23046         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23047       else
23048         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23049       fi
23050       hardcode_libdir_flag_spec_F77='-R$libdir'
23051       hardcode_direct_F77=yes
23052       hardcode_shlibpath_var_F77=no
23053       ;;
23054
23055     newsos6)
23056       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23057       hardcode_direct_F77=yes
23058       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23059       hardcode_libdir_separator_F77=:
23060       hardcode_shlibpath_var_F77=no
23061       ;;
23062
23063     openbsd*)
23064       if test -f /usr/libexec/ld.so; then
23065         hardcode_direct_F77=yes
23066         hardcode_shlibpath_var_F77=no
23067         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23068           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23069           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23070           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23071           export_dynamic_flag_spec_F77='${wl}-E'
23072         else
23073           case $host_os in
23074            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23075              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23076              hardcode_libdir_flag_spec_F77='-R$libdir'
23077              ;;
23078            *)
23079              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23080              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23081              ;;
23082           esac
23083         fi
23084       else
23085         ld_shlibs_F77=no
23086       fi
23087       ;;
23088
23089     os2*)
23090       hardcode_libdir_flag_spec_F77='-L$libdir'
23091       hardcode_minus_L_F77=yes
23092       allow_undefined_flag_F77=unsupported
23093       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'
23094       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23095       ;;
23096
23097     osf3*)
23098       if test "$GCC" = yes; then
23099         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23100         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'
23101       else
23102         allow_undefined_flag_F77=' -expect_unresolved \*'
23103         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'
23104       fi
23105       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23106       hardcode_libdir_separator_F77=:
23107       ;;
23108
23109     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23110       if test "$GCC" = yes; then
23111         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23112         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'
23113         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23114       else
23115         allow_undefined_flag_F77=' -expect_unresolved \*'
23116         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'
23117         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~
23118         $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'
23119
23120         # Both c and cxx compiler support -rpath directly
23121         hardcode_libdir_flag_spec_F77='-rpath $libdir'
23122       fi
23123       hardcode_libdir_separator_F77=:
23124       ;;
23125
23126     solaris*)
23127       no_undefined_flag_F77=' -z text'
23128       if test "$GCC" = yes; then
23129         wlarc='${wl}'
23130         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23131         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23132           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23133       else
23134         wlarc=''
23135         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23136         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23137         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23138       fi
23139       hardcode_libdir_flag_spec_F77='-R$libdir'
23140       hardcode_shlibpath_var_F77=no
23141       case $host_os in
23142       solaris2.[0-5] | solaris2.[0-5].*) ;;
23143       *)
23144         # The compiler driver will combine and reorder linker options,
23145         # but understands `-z linker_flag'.  GCC discards it without `$wl',
23146         # but is careful enough not to reorder.
23147         # Supported since Solaris 2.6 (maybe 2.5.1?)
23148         if test "$GCC" = yes; then
23149           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23150         else
23151           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23152         fi
23153         ;;
23154       esac
23155       link_all_deplibs_F77=yes
23156       ;;
23157
23158     sunos4*)
23159       if test "x$host_vendor" = xsequent; then
23160         # Use $CC to link under sequent, because it throws in some extra .o
23161         # files that make .init and .fini sections work.
23162         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23163       else
23164         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23165       fi
23166       hardcode_libdir_flag_spec_F77='-L$libdir'
23167       hardcode_direct_F77=yes
23168       hardcode_minus_L_F77=yes
23169       hardcode_shlibpath_var_F77=no
23170       ;;
23171
23172     sysv4)
23173       case $host_vendor in
23174         sni)
23175           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23176           hardcode_direct_F77=yes # is this really true???
23177         ;;
23178         siemens)
23179           ## LD is ld it makes a PLAMLIB
23180           ## CC just makes a GrossModule.
23181           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23182           reload_cmds_F77='$CC -r -o $output$reload_objs'
23183           hardcode_direct_F77=no
23184         ;;
23185         motorola)
23186           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23187           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23188         ;;
23189       esac
23190       runpath_var='LD_RUN_PATH'
23191       hardcode_shlibpath_var_F77=no
23192       ;;
23193
23194     sysv4.3*)
23195       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23196       hardcode_shlibpath_var_F77=no
23197       export_dynamic_flag_spec_F77='-Bexport'
23198       ;;
23199
23200     sysv4*MP*)
23201       if test -d /usr/nec; then
23202         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23203         hardcode_shlibpath_var_F77=no
23204         runpath_var=LD_RUN_PATH
23205         hardcode_runpath_var=yes
23206         ld_shlibs_F77=yes
23207       fi
23208       ;;
23209
23210     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23211       no_undefined_flag_F77='${wl}-z,text'
23212       archive_cmds_need_lc_F77=no
23213       hardcode_shlibpath_var_F77=no
23214       runpath_var='LD_RUN_PATH'
23215
23216       if test "$GCC" = yes; then
23217         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23218         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23219       else
23220         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23221         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23222       fi
23223       ;;
23224
23225     sysv5* | sco3.2v5* | sco5v6*)
23226       # Note: We can NOT use -z defs as we might desire, because we do not
23227       # link with -lc, and that would cause any symbols used from libc to
23228       # always be unresolved, which means just about no library would
23229       # ever link correctly.  If we're not using GNU ld we use -z text
23230       # though, which does catch some bad symbols but isn't as heavy-handed
23231       # as -z defs.
23232       no_undefined_flag_F77='${wl}-z,text'
23233       allow_undefined_flag_F77='${wl}-z,nodefs'
23234       archive_cmds_need_lc_F77=no
23235       hardcode_shlibpath_var_F77=no
23236       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23237       hardcode_libdir_separator_F77=':'
23238       link_all_deplibs_F77=yes
23239       export_dynamic_flag_spec_F77='${wl}-Bexport'
23240       runpath_var='LD_RUN_PATH'
23241
23242       if test "$GCC" = yes; then
23243         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23244         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23245       else
23246         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23247         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23248       fi
23249       ;;
23250
23251     uts4*)
23252       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23253       hardcode_libdir_flag_spec_F77='-L$libdir'
23254       hardcode_shlibpath_var_F77=no
23255       ;;
23256
23257     *)
23258       ld_shlibs_F77=no
23259       ;;
23260     esac
23261   fi
23262
23263 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23264 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23265 test "$ld_shlibs_F77" = no && can_build_shared=no
23266
23267 #
23268 # Do we need to explicitly link libc?
23269 #
23270 case "x$archive_cmds_need_lc_F77" in
23271 x|xyes)
23272   # Assume -lc should be added
23273   archive_cmds_need_lc_F77=yes
23274
23275   if test "$enable_shared" = yes && test "$GCC" = yes; then
23276     case $archive_cmds_F77 in
23277     *'~'*)
23278       # FIXME: we may have to deal with multi-command sequences.
23279       ;;
23280     '$CC '*)
23281       # Test whether the compiler implicitly links with -lc since on some
23282       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23283       # to ld, don't add -lc before -lgcc.
23284       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23285 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23286       $rm conftest*
23287       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23288
23289       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23290   (eval $ac_compile) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); } 2>conftest.err; then
23294         soname=conftest
23295         lib=conftest
23296         libobjs=conftest.$ac_objext
23297         deplibs=
23298         wl=$lt_prog_compiler_wl_F77
23299         pic_flag=$lt_prog_compiler_pic_F77
23300         compiler_flags=-v
23301         linker_flags=-v
23302         verstring=
23303         output_objdir=.
23304         libname=conftest
23305         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23306         allow_undefined_flag_F77=
23307         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23308   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23309   ac_status=$?
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); }
23312         then
23313           archive_cmds_need_lc_F77=no
23314         else
23315           archive_cmds_need_lc_F77=yes
23316         fi
23317         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23318       else
23319         cat conftest.err 1>&5
23320       fi
23321       $rm conftest*
23322       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23323 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23324       ;;
23325     esac
23326   fi
23327   ;;
23328 esac
23329
23330 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23332 library_names_spec=
23333 libname_spec='lib$name'
23334 soname_spec=
23335 shrext_cmds=".so"
23336 postinstall_cmds=
23337 postuninstall_cmds=
23338 finish_cmds=
23339 finish_eval=
23340 shlibpath_var=
23341 shlibpath_overrides_runpath=unknown
23342 version_type=none
23343 dynamic_linker="$host_os ld.so"
23344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23345
23346 need_lib_prefix=unknown
23347 hardcode_into_libs=no
23348
23349 # when you set need_version to no, make sure it does not cause -set_version
23350 # flags to be left without arguments
23351 need_version=unknown
23352
23353 case $host_os in
23354 aix3*)
23355   version_type=linux
23356   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23357   shlibpath_var=LIBPATH
23358
23359   # AIX 3 has no versioning support, so we append a major version to the name.
23360   soname_spec='${libname}${release}${shared_ext}$major'
23361   ;;
23362
23363 aix4* | aix5*)
23364   version_type=linux
23365   need_lib_prefix=no
23366   need_version=no
23367   hardcode_into_libs=yes
23368   if test "$host_cpu" = ia64; then
23369     # AIX 5 supports IA64
23370     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23371     shlibpath_var=LD_LIBRARY_PATH
23372   else
23373     # With GCC up to 2.95.x, collect2 would create an import file
23374     # for dependence libraries.  The import file would start with
23375     # the line `#! .'.  This would cause the generated library to
23376     # depend on `.', always an invalid library.  This was fixed in
23377     # development snapshots of GCC prior to 3.0.
23378     case $host_os in
23379       aix4 | aix4.[01] | aix4.[01].*)
23380       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23381            echo ' yes '
23382            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23383         :
23384       else
23385         can_build_shared=no
23386       fi
23387       ;;
23388     esac
23389     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23390     # soname into executable. Probably we can add versioning support to
23391     # collect2, so additional links can be useful in future.
23392     if test "$aix_use_runtimelinking" = yes; then
23393       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23394       # instead of lib<name>.a to let people know that these are not
23395       # typical AIX shared libraries.
23396       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23397     else
23398       # We preserve .a as extension for shared libraries through AIX4.2
23399       # and later when we are not doing run time linking.
23400       library_names_spec='${libname}${release}.a $libname.a'
23401       soname_spec='${libname}${release}${shared_ext}$major'
23402     fi
23403     shlibpath_var=LIBPATH
23404   fi
23405   ;;
23406
23407 amigaos*)
23408   library_names_spec='$libname.ixlibrary $libname.a'
23409   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23410   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'
23411   ;;
23412
23413 beos*)
23414   library_names_spec='${libname}${shared_ext}'
23415   dynamic_linker="$host_os ld.so"
23416   shlibpath_var=LIBRARY_PATH
23417   ;;
23418
23419 bsdi[45]*)
23420   version_type=linux
23421   need_version=no
23422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423   soname_spec='${libname}${release}${shared_ext}$major'
23424   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23425   shlibpath_var=LD_LIBRARY_PATH
23426   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23427   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23428   # the default ld.so.conf also contains /usr/contrib/lib and
23429   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23430   # libtool to hard-code these into programs
23431   ;;
23432
23433 cygwin* | mingw* | pw32*)
23434   version_type=windows
23435   shrext_cmds=".dll"
23436   need_version=no
23437   need_lib_prefix=no
23438
23439   case $GCC,$host_os in
23440   yes,cygwin* | yes,mingw* | yes,pw32*)
23441     library_names_spec='$libname.dll.a'
23442     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23443     postinstall_cmds='base_file=`basename \${file}`~
23444       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23445       dldir=$destdir/`dirname \$dlpath`~
23446       test -d \$dldir || mkdir -p \$dldir~
23447       $install_prog $dir/$dlname \$dldir/$dlname~
23448       chmod a+x \$dldir/$dlname'
23449     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23450       dlpath=$dir/\$dldll~
23451        $rm \$dlpath'
23452     shlibpath_overrides_runpath=yes
23453
23454     case $host_os in
23455     cygwin*)
23456       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23457       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23458       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23459       ;;
23460     mingw*)
23461       # MinGW DLLs use traditional 'lib' prefix
23462       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23463       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23464       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23465         # It is most probably a Windows format PATH printed by
23466         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23467         # path with ; separators, and with drive letters. We can handle the
23468         # drive letters (cygwin fileutils understands them), so leave them,
23469         # especially as we might pass files found there to a mingw objdump,
23470         # which wouldn't understand a cygwinified path. Ahh.
23471         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23472       else
23473         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23474       fi
23475       ;;
23476     pw32*)
23477       # pw32 DLLs use 'pw' prefix rather than 'lib'
23478       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23479       ;;
23480     esac
23481     ;;
23482
23483   *)
23484     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23485     ;;
23486   esac
23487   dynamic_linker='Win32 ld.exe'
23488   # FIXME: first we should search . and the directory the executable is in
23489   shlibpath_var=PATH
23490   ;;
23491
23492 darwin* | rhapsody*)
23493   dynamic_linker="$host_os dyld"
23494   version_type=darwin
23495   need_lib_prefix=no
23496   need_version=no
23497   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23498   soname_spec='${libname}${release}${major}$shared_ext'
23499   shlibpath_overrides_runpath=yes
23500   shlibpath_var=DYLD_LIBRARY_PATH
23501   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23502
23503   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23504   ;;
23505
23506 dgux*)
23507   version_type=linux
23508   need_lib_prefix=no
23509   need_version=no
23510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23511   soname_spec='${libname}${release}${shared_ext}$major'
23512   shlibpath_var=LD_LIBRARY_PATH
23513   ;;
23514
23515 freebsd1*)
23516   dynamic_linker=no
23517   ;;
23518
23519 freebsd* | dragonfly*)
23520   # DragonFly does not have aout.  When/if they implement a new
23521   # versioning mechanism, adjust this.
23522   if test -x /usr/bin/objformat; then
23523     objformat=`/usr/bin/objformat`
23524   else
23525     case $host_os in
23526     freebsd[123]*) objformat=aout ;;
23527     *) objformat=elf ;;
23528     esac
23529   fi
23530   version_type=freebsd-$objformat
23531   case $version_type in
23532     freebsd-elf*)
23533       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23534       need_version=no
23535       need_lib_prefix=no
23536       ;;
23537     freebsd-*)
23538       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23539       need_version=yes
23540       ;;
23541   esac
23542   shlibpath_var=LD_LIBRARY_PATH
23543   case $host_os in
23544   freebsd2*)
23545     shlibpath_overrides_runpath=yes
23546     ;;
23547   freebsd3.[01]* | freebsdelf3.[01]*)
23548     shlibpath_overrides_runpath=yes
23549     hardcode_into_libs=yes
23550     ;;
23551   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23552   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23553     shlibpath_overrides_runpath=no
23554     hardcode_into_libs=yes
23555     ;;
23556   *) # from 4.6 on, and DragonFly
23557     shlibpath_overrides_runpath=yes
23558     hardcode_into_libs=yes
23559     ;;
23560   esac
23561   ;;
23562
23563 gnu*)
23564   version_type=linux
23565   need_lib_prefix=no
23566   need_version=no
23567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23568   soname_spec='${libname}${release}${shared_ext}$major'
23569   shlibpath_var=LD_LIBRARY_PATH
23570   hardcode_into_libs=yes
23571   ;;
23572
23573 hpux9* | hpux10* | hpux11*)
23574   # Give a soname corresponding to the major version so that dld.sl refuses to
23575   # link against other versions.
23576   version_type=sunos
23577   need_lib_prefix=no
23578   need_version=no
23579   case $host_cpu in
23580   ia64*)
23581     shrext_cmds='.so'
23582     hardcode_into_libs=yes
23583     dynamic_linker="$host_os dld.so"
23584     shlibpath_var=LD_LIBRARY_PATH
23585     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23587     soname_spec='${libname}${release}${shared_ext}$major'
23588     if test "X$HPUX_IA64_MODE" = X32; then
23589       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23590     else
23591       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23592     fi
23593     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23594     ;;
23595    hppa*64*)
23596      shrext_cmds='.sl'
23597      hardcode_into_libs=yes
23598      dynamic_linker="$host_os dld.sl"
23599      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23600      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23601      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23602      soname_spec='${libname}${release}${shared_ext}$major'
23603      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23604      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23605      ;;
23606    *)
23607     shrext_cmds='.sl'
23608     dynamic_linker="$host_os dld.sl"
23609     shlibpath_var=SHLIB_PATH
23610     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23612     soname_spec='${libname}${release}${shared_ext}$major'
23613     ;;
23614   esac
23615   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23616   postinstall_cmds='chmod 555 $lib'
23617   ;;
23618
23619 interix[3-9]*)
23620   version_type=linux
23621   need_lib_prefix=no
23622   need_version=no
23623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23624   soname_spec='${libname}${release}${shared_ext}$major'
23625   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23626   shlibpath_var=LD_LIBRARY_PATH
23627   shlibpath_overrides_runpath=no
23628   hardcode_into_libs=yes
23629   ;;
23630
23631 irix5* | irix6* | nonstopux*)
23632   case $host_os in
23633     nonstopux*) version_type=nonstopux ;;
23634     *)
23635         if test "$lt_cv_prog_gnu_ld" = yes; then
23636                 version_type=linux
23637         else
23638                 version_type=irix
23639         fi ;;
23640   esac
23641   need_lib_prefix=no
23642   need_version=no
23643   soname_spec='${libname}${release}${shared_ext}$major'
23644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23645   case $host_os in
23646   irix5* | nonstopux*)
23647     libsuff= shlibsuff=
23648     ;;
23649   *)
23650     case $LD in # libtool.m4 will add one of these switches to LD
23651     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23652       libsuff= shlibsuff= libmagic=32-bit;;
23653     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23654       libsuff=32 shlibsuff=N32 libmagic=N32;;
23655     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23656       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23657     *) libsuff= shlibsuff= libmagic=never-match;;
23658     esac
23659     ;;
23660   esac
23661   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23662   shlibpath_overrides_runpath=no
23663   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23664   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23665   hardcode_into_libs=yes
23666   ;;
23667
23668 # No shared lib support for Linux oldld, aout, or coff.
23669 linux*oldld* | linux*aout* | linux*coff*)
23670   dynamic_linker=no
23671   ;;
23672
23673 # This must be Linux ELF.
23674 linux* | k*bsd*-gnu)
23675   version_type=linux
23676   need_lib_prefix=no
23677   need_version=no
23678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23679   soname_spec='${libname}${release}${shared_ext}$major'
23680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23681   shlibpath_var=LD_LIBRARY_PATH
23682   shlibpath_overrides_runpath=no
23683   # This implies no fast_install, which is unacceptable.
23684   # Some rework will be needed to allow for fast_install
23685   # before this can be enabled.
23686   hardcode_into_libs=yes
23687
23688   # Append ld.so.conf contents to the search path
23689   if test -f /etc/ld.so.conf; then
23690     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23691     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23692   fi
23693
23694   # We used to test for /lib/ld.so.1 and disable shared libraries on
23695   # powerpc, because MkLinux only supported shared libraries with the
23696   # GNU dynamic linker.  Since this was broken with cross compilers,
23697   # most powerpc-linux boxes support dynamic linking these days and
23698   # people can always --disable-shared, the test was removed, and we
23699   # assume the GNU/Linux dynamic linker is in use.
23700   dynamic_linker='GNU/Linux ld.so'
23701   ;;
23702
23703 netbsdelf*-gnu)
23704   version_type=linux
23705   need_lib_prefix=no
23706   need_version=no
23707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23708   soname_spec='${libname}${release}${shared_ext}$major'
23709   shlibpath_var=LD_LIBRARY_PATH
23710   shlibpath_overrides_runpath=no
23711   hardcode_into_libs=yes
23712   dynamic_linker='NetBSD ld.elf_so'
23713   ;;
23714
23715 netbsd*)
23716   version_type=sunos
23717   need_lib_prefix=no
23718   need_version=no
23719   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23721     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23722     dynamic_linker='NetBSD (a.out) ld.so'
23723   else
23724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23725     soname_spec='${libname}${release}${shared_ext}$major'
23726     dynamic_linker='NetBSD ld.elf_so'
23727   fi
23728   shlibpath_var=LD_LIBRARY_PATH
23729   shlibpath_overrides_runpath=yes
23730   hardcode_into_libs=yes
23731   ;;
23732
23733 newsos6)
23734   version_type=linux
23735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23736   shlibpath_var=LD_LIBRARY_PATH
23737   shlibpath_overrides_runpath=yes
23738   ;;
23739
23740 nto-qnx*)
23741   version_type=linux
23742   need_lib_prefix=no
23743   need_version=no
23744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23745   soname_spec='${libname}${release}${shared_ext}$major'
23746   shlibpath_var=LD_LIBRARY_PATH
23747   shlibpath_overrides_runpath=yes
23748   ;;
23749
23750 openbsd*)
23751   version_type=sunos
23752   sys_lib_dlsearch_path_spec="/usr/lib"
23753   need_lib_prefix=no
23754   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23755   case $host_os in
23756     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23757     *)                         need_version=no  ;;
23758   esac
23759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23760   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23761   shlibpath_var=LD_LIBRARY_PATH
23762   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23763     case $host_os in
23764       openbsd2.[89] | openbsd2.[89].*)
23765         shlibpath_overrides_runpath=no
23766         ;;
23767       *)
23768         shlibpath_overrides_runpath=yes
23769         ;;
23770       esac
23771   else
23772     shlibpath_overrides_runpath=yes
23773   fi
23774   ;;
23775
23776 os2*)
23777   libname_spec='$name'
23778   shrext_cmds=".dll"
23779   need_lib_prefix=no
23780   library_names_spec='$libname${shared_ext} $libname.a'
23781   dynamic_linker='OS/2 ld.exe'
23782   shlibpath_var=LIBPATH
23783   ;;
23784
23785 osf3* | osf4* | osf5*)
23786   version_type=osf
23787   need_lib_prefix=no
23788   need_version=no
23789   soname_spec='${libname}${release}${shared_ext}$major'
23790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23791   shlibpath_var=LD_LIBRARY_PATH
23792   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23793   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23794   ;;
23795
23796 rdos*)
23797   dynamic_linker=no
23798   ;;
23799
23800 solaris*)
23801   version_type=linux
23802   need_lib_prefix=no
23803   need_version=no
23804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23805   soname_spec='${libname}${release}${shared_ext}$major'
23806   shlibpath_var=LD_LIBRARY_PATH
23807   shlibpath_overrides_runpath=yes
23808   hardcode_into_libs=yes
23809   # ldd complains unless libraries are executable
23810   postinstall_cmds='chmod +x $lib'
23811   ;;
23812
23813 sunos4*)
23814   version_type=sunos
23815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23816   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23817   shlibpath_var=LD_LIBRARY_PATH
23818   shlibpath_overrides_runpath=yes
23819   if test "$with_gnu_ld" = yes; then
23820     need_lib_prefix=no
23821   fi
23822   need_version=yes
23823   ;;
23824
23825 sysv4 | sysv4.3*)
23826   version_type=linux
23827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23828   soname_spec='${libname}${release}${shared_ext}$major'
23829   shlibpath_var=LD_LIBRARY_PATH
23830   case $host_vendor in
23831     sni)
23832       shlibpath_overrides_runpath=no
23833       need_lib_prefix=no
23834       export_dynamic_flag_spec='${wl}-Blargedynsym'
23835       runpath_var=LD_RUN_PATH
23836       ;;
23837     siemens)
23838       need_lib_prefix=no
23839       ;;
23840     motorola)
23841       need_lib_prefix=no
23842       need_version=no
23843       shlibpath_overrides_runpath=no
23844       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23845       ;;
23846   esac
23847   ;;
23848
23849 sysv4*MP*)
23850   if test -d /usr/nec ;then
23851     version_type=linux
23852     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23853     soname_spec='$libname${shared_ext}.$major'
23854     shlibpath_var=LD_LIBRARY_PATH
23855   fi
23856   ;;
23857
23858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23859   version_type=freebsd-elf
23860   need_lib_prefix=no
23861   need_version=no
23862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23863   soname_spec='${libname}${release}${shared_ext}$major'
23864   shlibpath_var=LD_LIBRARY_PATH
23865   hardcode_into_libs=yes
23866   if test "$with_gnu_ld" = yes; then
23867     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23868     shlibpath_overrides_runpath=no
23869   else
23870     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23871     shlibpath_overrides_runpath=yes
23872     case $host_os in
23873       sco3.2v5*)
23874         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23875         ;;
23876     esac
23877   fi
23878   sys_lib_dlsearch_path_spec='/usr/lib'
23879   ;;
23880
23881 uts4*)
23882   version_type=linux
23883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23884   soname_spec='${libname}${release}${shared_ext}$major'
23885   shlibpath_var=LD_LIBRARY_PATH
23886   ;;
23887
23888 *)
23889   dynamic_linker=no
23890   ;;
23891 esac
23892 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23893 echo "${ECHO_T}$dynamic_linker" >&6; }
23894 test "$dynamic_linker" = no && can_build_shared=no
23895
23896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23897 if test "$GCC" = yes; then
23898   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23899 fi
23900
23901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23903 hardcode_action_F77=
23904 if test -n "$hardcode_libdir_flag_spec_F77" || \
23905    test -n "$runpath_var_F77" || \
23906    test "X$hardcode_automatic_F77" = "Xyes" ; then
23907
23908   # We can hardcode non-existant directories.
23909   if test "$hardcode_direct_F77" != no &&
23910      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23911      # have to relink, otherwise we might link with an installed library
23912      # when we should be linking with a yet-to-be-installed one
23913      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23914      test "$hardcode_minus_L_F77" != no; then
23915     # Linking always hardcodes the temporary library directory.
23916     hardcode_action_F77=relink
23917   else
23918     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23919     hardcode_action_F77=immediate
23920   fi
23921 else
23922   # We cannot hardcode anything, or else we can only hardcode existing
23923   # directories.
23924   hardcode_action_F77=unsupported
23925 fi
23926 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23927 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23928
23929 if test "$hardcode_action_F77" = relink; then
23930   # Fast installation is not supported
23931   enable_fast_install=no
23932 elif test "$shlibpath_overrides_runpath" = yes ||
23933      test "$enable_shared" = no; then
23934   # Fast installation is not necessary
23935   enable_fast_install=needless
23936 fi
23937
23938
23939 # The else clause should only fire when bootstrapping the
23940 # libtool distribution, otherwise you forgot to ship ltmain.sh
23941 # with your package, and you will get complaints that there are
23942 # no rules to generate ltmain.sh.
23943 if test -f "$ltmain"; then
23944   # See if we are running on zsh, and set the options which allow our commands through
23945   # without removal of \ escapes.
23946   if test -n "${ZSH_VERSION+set}" ; then
23947     setopt NO_GLOB_SUBST
23948   fi
23949   # Now quote all the things that may contain metacharacters while being
23950   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23951   # variables and quote the copies for generation of the libtool script.
23952   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23953     SED SHELL STRIP \
23954     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23955     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23956     deplibs_check_method reload_flag reload_cmds need_locks \
23957     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23958     lt_cv_sys_global_symbol_to_c_name_address \
23959     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23960     old_postinstall_cmds old_postuninstall_cmds \
23961     compiler_F77 \
23962     CC_F77 \
23963     LD_F77 \
23964     lt_prog_compiler_wl_F77 \
23965     lt_prog_compiler_pic_F77 \
23966     lt_prog_compiler_static_F77 \
23967     lt_prog_compiler_no_builtin_flag_F77 \
23968     export_dynamic_flag_spec_F77 \
23969     thread_safe_flag_spec_F77 \
23970     whole_archive_flag_spec_F77 \
23971     enable_shared_with_static_runtimes_F77 \
23972     old_archive_cmds_F77 \
23973     old_archive_from_new_cmds_F77 \
23974     predep_objects_F77 \
23975     postdep_objects_F77 \
23976     predeps_F77 \
23977     postdeps_F77 \
23978     compiler_lib_search_path_F77 \
23979     archive_cmds_F77 \
23980     archive_expsym_cmds_F77 \
23981     postinstall_cmds_F77 \
23982     postuninstall_cmds_F77 \
23983     old_archive_from_expsyms_cmds_F77 \
23984     allow_undefined_flag_F77 \
23985     no_undefined_flag_F77 \
23986     export_symbols_cmds_F77 \
23987     hardcode_libdir_flag_spec_F77 \
23988     hardcode_libdir_flag_spec_ld_F77 \
23989     hardcode_libdir_separator_F77 \
23990     hardcode_automatic_F77 \
23991     module_cmds_F77 \
23992     module_expsym_cmds_F77 \
23993     lt_cv_prog_compiler_c_o_F77 \
23994     fix_srcfile_path_F77 \
23995     exclude_expsyms_F77 \
23996     include_expsyms_F77; do
23997
23998     case $var in
23999     old_archive_cmds_F77 | \
24000     old_archive_from_new_cmds_F77 | \
24001     archive_cmds_F77 | \
24002     archive_expsym_cmds_F77 | \
24003     module_cmds_F77 | \
24004     module_expsym_cmds_F77 | \
24005     old_archive_from_expsyms_cmds_F77 | \
24006     export_symbols_cmds_F77 | \
24007     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24008     postinstall_cmds | postuninstall_cmds | \
24009     old_postinstall_cmds | old_postuninstall_cmds | \
24010     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24011       # Double-quote double-evaled strings.
24012       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24013       ;;
24014     *)
24015       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24016       ;;
24017     esac
24018   done
24019
24020   case $lt_echo in
24021   *'\$0 --fallback-echo"')
24022     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24023     ;;
24024   esac
24025
24026 cfgfile="$ofile"
24027
24028   cat <<__EOF__ >> "$cfgfile"
24029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24030
24031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24032
24033 # Shell to use when invoking shell scripts.
24034 SHELL=$lt_SHELL
24035
24036 # Whether or not to build shared libraries.
24037 build_libtool_libs=$enable_shared
24038
24039 # Whether or not to build static libraries.
24040 build_old_libs=$enable_static
24041
24042 # Whether or not to add -lc for building shared libraries.
24043 build_libtool_need_lc=$archive_cmds_need_lc_F77
24044
24045 # Whether or not to disallow shared libs when runtime libs are static
24046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24047
24048 # Whether or not to optimize for fast installation.
24049 fast_install=$enable_fast_install
24050
24051 # The host system.
24052 host_alias=$host_alias
24053 host=$host
24054 host_os=$host_os
24055
24056 # The build system.
24057 build_alias=$build_alias
24058 build=$build
24059 build_os=$build_os
24060
24061 # An echo program that does not interpret backslashes.
24062 echo=$lt_echo
24063
24064 # The archiver.
24065 AR=$lt_AR
24066 AR_FLAGS=$lt_AR_FLAGS
24067
24068 # A C compiler.
24069 LTCC=$lt_LTCC
24070
24071 # LTCC compiler flags.
24072 LTCFLAGS=$lt_LTCFLAGS
24073
24074 # A language-specific compiler.
24075 CC=$lt_compiler_F77
24076
24077 # Is the compiler the GNU C compiler?
24078 with_gcc=$GCC_F77
24079
24080 # An ERE matcher.
24081 EGREP=$lt_EGREP
24082
24083 # The linker used to build libraries.
24084 LD=$lt_LD_F77
24085
24086 # Whether we need hard or soft links.
24087 LN_S=$lt_LN_S
24088
24089 # A BSD-compatible nm program.
24090 NM=$lt_NM
24091
24092 # A symbol stripping program
24093 STRIP=$lt_STRIP
24094
24095 # Used to examine libraries when file_magic_cmd begins "file"
24096 MAGIC_CMD=$MAGIC_CMD
24097
24098 # Used on cygwin: DLL creation program.
24099 DLLTOOL="$DLLTOOL"
24100
24101 # Used on cygwin: object dumper.
24102 OBJDUMP="$OBJDUMP"
24103
24104 # Used on cygwin: assembler.
24105 AS="$AS"
24106
24107 # The name of the directory that contains temporary libtool files.
24108 objdir=$objdir
24109
24110 # How to create reloadable object files.
24111 reload_flag=$lt_reload_flag
24112 reload_cmds=$lt_reload_cmds
24113
24114 # How to pass a linker flag through the compiler.
24115 wl=$lt_lt_prog_compiler_wl_F77
24116
24117 # Object file suffix (normally "o").
24118 objext="$ac_objext"
24119
24120 # Old archive suffix (normally "a").
24121 libext="$libext"
24122
24123 # Shared library suffix (normally ".so").
24124 shrext_cmds='$shrext_cmds'
24125
24126 # Executable file suffix (normally "").
24127 exeext="$exeext"
24128
24129 # Additional compiler flags for building library objects.
24130 pic_flag=$lt_lt_prog_compiler_pic_F77
24131 pic_mode=$pic_mode
24132
24133 # What is the maximum length of a command?
24134 max_cmd_len=$lt_cv_sys_max_cmd_len
24135
24136 # Does compiler simultaneously support -c and -o options?
24137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24138
24139 # Must we lock files when doing compilation?
24140 need_locks=$lt_need_locks
24141
24142 # Do we need the lib prefix for modules?
24143 need_lib_prefix=$need_lib_prefix
24144
24145 # Do we need a version for libraries?
24146 need_version=$need_version
24147
24148 # Whether dlopen is supported.
24149 dlopen_support=$enable_dlopen
24150
24151 # Whether dlopen of programs is supported.
24152 dlopen_self=$enable_dlopen_self
24153
24154 # Whether dlopen of statically linked programs is supported.
24155 dlopen_self_static=$enable_dlopen_self_static
24156
24157 # Compiler flag to prevent dynamic linking.
24158 link_static_flag=$lt_lt_prog_compiler_static_F77
24159
24160 # Compiler flag to turn off builtin functions.
24161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24162
24163 # Compiler flag to allow reflexive dlopens.
24164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24165
24166 # Compiler flag to generate shared objects directly from archives.
24167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24168
24169 # Compiler flag to generate thread-safe objects.
24170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24171
24172 # Library versioning type.
24173 version_type=$version_type
24174
24175 # Format of library name prefix.
24176 libname_spec=$lt_libname_spec
24177
24178 # List of archive names.  First name is the real one, the rest are links.
24179 # The last name is the one that the linker finds with -lNAME.
24180 library_names_spec=$lt_library_names_spec
24181
24182 # The coded name of the library, if different from the real name.
24183 soname_spec=$lt_soname_spec
24184
24185 # Commands used to build and install an old-style archive.
24186 RANLIB=$lt_RANLIB
24187 old_archive_cmds=$lt_old_archive_cmds_F77
24188 old_postinstall_cmds=$lt_old_postinstall_cmds
24189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24190
24191 # Create an old-style archive from a shared archive.
24192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24193
24194 # Create a temporary old-style archive to link instead of a shared archive.
24195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24196
24197 # Commands used to build and install a shared archive.
24198 archive_cmds=$lt_archive_cmds_F77
24199 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24200 postinstall_cmds=$lt_postinstall_cmds
24201 postuninstall_cmds=$lt_postuninstall_cmds
24202
24203 # Commands used to build a loadable module (assumed same as above if empty)
24204 module_cmds=$lt_module_cmds_F77
24205 module_expsym_cmds=$lt_module_expsym_cmds_F77
24206
24207 # Commands to strip libraries.
24208 old_striplib=$lt_old_striplib
24209 striplib=$lt_striplib
24210
24211 # Dependencies to place before the objects being linked to create a
24212 # shared library.
24213 predep_objects=$lt_predep_objects_F77
24214
24215 # Dependencies to place after the objects being linked to create a
24216 # shared library.
24217 postdep_objects=$lt_postdep_objects_F77
24218
24219 # Dependencies to place before the objects being linked to create a
24220 # shared library.
24221 predeps=$lt_predeps_F77
24222
24223 # Dependencies to place after the objects being linked to create a
24224 # shared library.
24225 postdeps=$lt_postdeps_F77
24226
24227 # The library search path used internally by the compiler when linking
24228 # a shared library.
24229 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24230
24231 # Method to check whether dependent libraries are shared objects.
24232 deplibs_check_method=$lt_deplibs_check_method
24233
24234 # Command to use when deplibs_check_method == file_magic.
24235 file_magic_cmd=$lt_file_magic_cmd
24236
24237 # Flag that allows shared libraries with undefined symbols to be built.
24238 allow_undefined_flag=$lt_allow_undefined_flag_F77
24239
24240 # Flag that forces no undefined symbols.
24241 no_undefined_flag=$lt_no_undefined_flag_F77
24242
24243 # Commands used to finish a libtool library installation in a directory.
24244 finish_cmds=$lt_finish_cmds
24245
24246 # Same as above, but a single script fragment to be evaled but not shown.
24247 finish_eval=$lt_finish_eval
24248
24249 # Take the output of nm and produce a listing of raw symbols and C names.
24250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24251
24252 # Transform the output of nm in a proper C declaration
24253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24254
24255 # Transform the output of nm in a C name address pair
24256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24257
24258 # This is the shared library runtime path variable.
24259 runpath_var=$runpath_var
24260
24261 # This is the shared library path variable.
24262 shlibpath_var=$shlibpath_var
24263
24264 # Is shlibpath searched before the hard-coded library search path?
24265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24266
24267 # How to hardcode a shared library path into an executable.
24268 hardcode_action=$hardcode_action_F77
24269
24270 # Whether we should hardcode library paths into libraries.
24271 hardcode_into_libs=$hardcode_into_libs
24272
24273 # Flag to hardcode \$libdir into a binary during linking.
24274 # This must work even if \$libdir does not exist.
24275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24276
24277 # If ld is used when linking, flag to hardcode \$libdir into
24278 # a binary during linking. This must work even if \$libdir does
24279 # not exist.
24280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24281
24282 # Whether we need a single -rpath flag with a separated argument.
24283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24284
24285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24286 # resulting binary.
24287 hardcode_direct=$hardcode_direct_F77
24288
24289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24290 # resulting binary.
24291 hardcode_minus_L=$hardcode_minus_L_F77
24292
24293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24294 # the resulting binary.
24295 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24296
24297 # Set to yes if building a shared library automatically hardcodes DIR into the library
24298 # and all subsequent libraries and executables linked against it.
24299 hardcode_automatic=$hardcode_automatic_F77
24300
24301 # Variables whose values should be saved in libtool wrapper scripts and
24302 # restored at relink time.
24303 variables_saved_for_relink="$variables_saved_for_relink"
24304
24305 # Whether libtool must link a program against all its dependency libraries.
24306 link_all_deplibs=$link_all_deplibs_F77
24307
24308 # Compile-time system search path for libraries
24309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24310
24311 # Run-time system search path for libraries
24312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24313
24314 # Fix the shell variable \$srcfile for the compiler.
24315 fix_srcfile_path=$lt_fix_srcfile_path
24316
24317 # Set to yes if exported symbols are required.
24318 always_export_symbols=$always_export_symbols_F77
24319
24320 # The commands to list exported symbols.
24321 export_symbols_cmds=$lt_export_symbols_cmds_F77
24322
24323 # The commands to extract the exported symbol list from a shared archive.
24324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24325
24326 # Symbols that should not be listed in the preloaded symbols.
24327 exclude_expsyms=$lt_exclude_expsyms_F77
24328
24329 # Symbols that must always be exported.
24330 include_expsyms=$lt_include_expsyms_F77
24331
24332 # ### END LIBTOOL TAG CONFIG: $tagname
24333
24334 __EOF__
24335
24336
24337 else
24338   # If there is no Makefile yet, we rely on a make rule to execute
24339   # `config.status --recheck' to rerun these tests and create the
24340   # libtool script then.
24341   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24342   if test -f "$ltmain_in"; then
24343     test -f Makefile && make "$ltmain"
24344   fi
24345 fi
24346
24347
24348 ac_ext=c
24349 ac_cpp='$CPP $CPPFLAGS'
24350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24353
24354 CC="$lt_save_CC"
24355
24356         else
24357           tagname=""
24358         fi
24359         ;;
24360
24361       GCJ)
24362         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24363
24364
24365 # Source file extension for Java test sources.
24366 ac_ext=java
24367
24368 # Object file extension for compiled Java test sources.
24369 objext=o
24370 objext_GCJ=$objext
24371
24372 # Code to be used in simple compile tests
24373 lt_simple_compile_test_code="class foo {}"
24374
24375 # Code to be used in simple link tests
24376 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
24377
24378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24379
24380 # If no C compiler was specified, use CC.
24381 LTCC=${LTCC-"$CC"}
24382
24383 # If no C compiler flags were specified, use CFLAGS.
24384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24385
24386 # Allow CC to be a program name with arguments.
24387 compiler=$CC
24388
24389
24390 # save warnings/boilerplate of simple test code
24391 ac_outfile=conftest.$ac_objext
24392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24394 _lt_compiler_boilerplate=`cat conftest.err`
24395 $rm conftest*
24396
24397 ac_outfile=conftest.$ac_objext
24398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24400 _lt_linker_boilerplate=`cat conftest.err`
24401 $rm conftest*
24402
24403
24404 # Allow CC to be a program name with arguments.
24405 lt_save_CC="$CC"
24406 CC=${GCJ-"gcj"}
24407 compiler=$CC
24408 compiler_GCJ=$CC
24409 for cc_temp in $compiler""; do
24410   case $cc_temp in
24411     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24412     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24413     \-*) ;;
24414     *) break;;
24415   esac
24416 done
24417 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24418
24419
24420 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24421 archive_cmds_need_lc_GCJ=no
24422
24423 old_archive_cmds_GCJ=$old_archive_cmds
24424
24425
24426 lt_prog_compiler_no_builtin_flag_GCJ=
24427
24428 if test "$GCC" = yes; then
24429   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24430
24431
24432 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24434 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24435   echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437   lt_cv_prog_compiler_rtti_exceptions=no
24438   ac_outfile=conftest.$ac_objext
24439    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24440    lt_compiler_flag="-fno-rtti -fno-exceptions"
24441    # Insert the option either (1) after the last *FLAGS variable, or
24442    # (2) before a word containing "conftest.", or (3) at the end.
24443    # Note that $ac_compile itself does not contain backslashes and begins
24444    # with a dollar sign (not a hyphen), so the echo should work correctly.
24445    # The option is referenced via a variable to avoid confusing sed.
24446    lt_compile=`echo "$ac_compile" | $SED \
24447    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24449    -e 's:$: $lt_compiler_flag:'`
24450    (eval echo "\"\$as_me:24450: $lt_compile\"" >&5)
24451    (eval "$lt_compile" 2>conftest.err)
24452    ac_status=$?
24453    cat conftest.err >&5
24454    echo "$as_me:24454: \$? = $ac_status" >&5
24455    if (exit $ac_status) && test -s "$ac_outfile"; then
24456      # The compiler can only warn and ignore the option if not recognized
24457      # So say no if there are warnings other than the usual output.
24458      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24459      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24460      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24461        lt_cv_prog_compiler_rtti_exceptions=yes
24462      fi
24463    fi
24464    $rm conftest*
24465
24466 fi
24467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24468 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24469
24470 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24471     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24472 else
24473     :
24474 fi
24475
24476 fi
24477
24478 lt_prog_compiler_wl_GCJ=
24479 lt_prog_compiler_pic_GCJ=
24480 lt_prog_compiler_static_GCJ=
24481
24482 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24484
24485   if test "$GCC" = yes; then
24486     lt_prog_compiler_wl_GCJ='-Wl,'
24487     lt_prog_compiler_static_GCJ='-static'
24488
24489     case $host_os in
24490       aix*)
24491       # All AIX code is PIC.
24492       if test "$host_cpu" = ia64; then
24493         # AIX 5 now supports IA64 processor
24494         lt_prog_compiler_static_GCJ='-Bstatic'
24495       fi
24496       ;;
24497
24498     amigaos*)
24499       # FIXME: we need at least 68020 code to build shared libraries, but
24500       # adding the `-m68020' flag to GCC prevents building anything better,
24501       # like `-m68040'.
24502       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24503       ;;
24504
24505     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24506       # PIC is the default for these OSes.
24507       ;;
24508
24509     mingw* | cygwin* | pw32* | os2*)
24510       # This hack is so that the source file can tell whether it is being
24511       # built for inclusion in a dll (and should export symbols for example).
24512       # Although the cygwin gcc ignores -fPIC, still need this for old-style
24513       # (--disable-auto-import) libraries
24514       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24515       ;;
24516
24517     darwin* | rhapsody*)
24518       # PIC is the default on this platform
24519       # Common symbols not allowed in MH_DYLIB files
24520       lt_prog_compiler_pic_GCJ='-fno-common'
24521       ;;
24522
24523     interix[3-9]*)
24524       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24525       # Instead, we relocate shared libraries at runtime.
24526       ;;
24527
24528     msdosdjgpp*)
24529       # Just because we use GCC doesn't mean we suddenly get shared libraries
24530       # on systems that don't support them.
24531       lt_prog_compiler_can_build_shared_GCJ=no
24532       enable_shared=no
24533       ;;
24534
24535     sysv4*MP*)
24536       if test -d /usr/nec; then
24537         lt_prog_compiler_pic_GCJ=-Kconform_pic
24538       fi
24539       ;;
24540
24541     hpux*)
24542       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24543       # not for PA HP-UX.
24544       case $host_cpu in
24545       hppa*64*|ia64*)
24546         # +Z the default
24547         ;;
24548       *)
24549         lt_prog_compiler_pic_GCJ='-fPIC'
24550         ;;
24551       esac
24552       ;;
24553
24554     *)
24555       lt_prog_compiler_pic_GCJ='-fPIC'
24556       ;;
24557     esac
24558   else
24559     # PORTME Check for flag to pass linker flags through the system compiler.
24560     case $host_os in
24561     aix*)
24562       lt_prog_compiler_wl_GCJ='-Wl,'
24563       if test "$host_cpu" = ia64; then
24564         # AIX 5 now supports IA64 processor
24565         lt_prog_compiler_static_GCJ='-Bstatic'
24566       else
24567         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24568       fi
24569       ;;
24570       darwin*)
24571         # PIC is the default on this platform
24572         # Common symbols not allowed in MH_DYLIB files
24573        case $cc_basename in
24574          xlc*)
24575          lt_prog_compiler_pic_GCJ='-qnocommon'
24576          lt_prog_compiler_wl_GCJ='-Wl,'
24577          ;;
24578        esac
24579        ;;
24580
24581     mingw* | cygwin* | pw32* | os2*)
24582       # This hack is so that the source file can tell whether it is being
24583       # built for inclusion in a dll (and should export symbols for example).
24584       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24585       ;;
24586
24587     hpux9* | hpux10* | hpux11*)
24588       lt_prog_compiler_wl_GCJ='-Wl,'
24589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24590       # not for PA HP-UX.
24591       case $host_cpu in
24592       hppa*64*|ia64*)
24593         # +Z the default
24594         ;;
24595       *)
24596         lt_prog_compiler_pic_GCJ='+Z'
24597         ;;
24598       esac
24599       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24600       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24601       ;;
24602
24603     irix5* | irix6* | nonstopux*)
24604       lt_prog_compiler_wl_GCJ='-Wl,'
24605       # PIC (with -KPIC) is the default.
24606       lt_prog_compiler_static_GCJ='-non_shared'
24607       ;;
24608
24609     newsos6)
24610       lt_prog_compiler_pic_GCJ='-KPIC'
24611       lt_prog_compiler_static_GCJ='-Bstatic'
24612       ;;
24613
24614     linux* | k*bsd*-gnu)
24615       case $cc_basename in
24616       icc* | ecc*)
24617         lt_prog_compiler_wl_GCJ='-Wl,'
24618         lt_prog_compiler_pic_GCJ='-KPIC'
24619         lt_prog_compiler_static_GCJ='-static'
24620         ;;
24621       pgcc* | pgf77* | pgf90* | pgf95*)
24622         # Portland Group compilers (*not* the Pentium gcc compiler,
24623         # which looks to be a dead project)
24624         lt_prog_compiler_wl_GCJ='-Wl,'
24625         lt_prog_compiler_pic_GCJ='-fpic'
24626         lt_prog_compiler_static_GCJ='-Bstatic'
24627         ;;
24628       ccc*)
24629         lt_prog_compiler_wl_GCJ='-Wl,'
24630         # All Alpha code is PIC.
24631         lt_prog_compiler_static_GCJ='-non_shared'
24632         ;;
24633       *)
24634         case `$CC -V 2>&1 | sed 5q` in
24635         *Sun\ C*)
24636           # Sun C 5.9
24637           lt_prog_compiler_pic_GCJ='-KPIC'
24638           lt_prog_compiler_static_GCJ='-Bstatic'
24639           lt_prog_compiler_wl_GCJ='-Wl,'
24640           ;;
24641         *Sun\ F*)
24642           # Sun Fortran 8.3 passes all unrecognized flags to the linker
24643           lt_prog_compiler_pic_GCJ='-KPIC'
24644           lt_prog_compiler_static_GCJ='-Bstatic'
24645           lt_prog_compiler_wl_GCJ=''
24646           ;;
24647         esac
24648         ;;
24649       esac
24650       ;;
24651
24652     osf3* | osf4* | osf5*)
24653       lt_prog_compiler_wl_GCJ='-Wl,'
24654       # All OSF/1 code is PIC.
24655       lt_prog_compiler_static_GCJ='-non_shared'
24656       ;;
24657
24658     rdos*)
24659       lt_prog_compiler_static_GCJ='-non_shared'
24660       ;;
24661
24662     solaris*)
24663       lt_prog_compiler_pic_GCJ='-KPIC'
24664       lt_prog_compiler_static_GCJ='-Bstatic'
24665       case $cc_basename in
24666       f77* | f90* | f95*)
24667         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24668       *)
24669         lt_prog_compiler_wl_GCJ='-Wl,';;
24670       esac
24671       ;;
24672
24673     sunos4*)
24674       lt_prog_compiler_wl_GCJ='-Qoption ld '
24675       lt_prog_compiler_pic_GCJ='-PIC'
24676       lt_prog_compiler_static_GCJ='-Bstatic'
24677       ;;
24678
24679     sysv4 | sysv4.2uw2* | sysv4.3*)
24680       lt_prog_compiler_wl_GCJ='-Wl,'
24681       lt_prog_compiler_pic_GCJ='-KPIC'
24682       lt_prog_compiler_static_GCJ='-Bstatic'
24683       ;;
24684
24685     sysv4*MP*)
24686       if test -d /usr/nec ;then
24687         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24688         lt_prog_compiler_static_GCJ='-Bstatic'
24689       fi
24690       ;;
24691
24692     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24693       lt_prog_compiler_wl_GCJ='-Wl,'
24694       lt_prog_compiler_pic_GCJ='-KPIC'
24695       lt_prog_compiler_static_GCJ='-Bstatic'
24696       ;;
24697
24698     unicos*)
24699       lt_prog_compiler_wl_GCJ='-Wl,'
24700       lt_prog_compiler_can_build_shared_GCJ=no
24701       ;;
24702
24703     uts4*)
24704       lt_prog_compiler_pic_GCJ='-pic'
24705       lt_prog_compiler_static_GCJ='-Bstatic'
24706       ;;
24707
24708     *)
24709       lt_prog_compiler_can_build_shared_GCJ=no
24710       ;;
24711     esac
24712   fi
24713
24714 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24715 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24716
24717 #
24718 # Check to make sure the PIC flag actually works.
24719 #
24720 if test -n "$lt_prog_compiler_pic_GCJ"; then
24721
24722 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24723 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24724 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24725   echo $ECHO_N "(cached) $ECHO_C" >&6
24726 else
24727   lt_prog_compiler_pic_works_GCJ=no
24728   ac_outfile=conftest.$ac_objext
24729    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24730    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24731    # Insert the option either (1) after the last *FLAGS variable, or
24732    # (2) before a word containing "conftest.", or (3) at the end.
24733    # Note that $ac_compile itself does not contain backslashes and begins
24734    # with a dollar sign (not a hyphen), so the echo should work correctly.
24735    # The option is referenced via a variable to avoid confusing sed.
24736    lt_compile=`echo "$ac_compile" | $SED \
24737    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24739    -e 's:$: $lt_compiler_flag:'`
24740    (eval echo "\"\$as_me:24740: $lt_compile\"" >&5)
24741    (eval "$lt_compile" 2>conftest.err)
24742    ac_status=$?
24743    cat conftest.err >&5
24744    echo "$as_me:24744: \$? = $ac_status" >&5
24745    if (exit $ac_status) && test -s "$ac_outfile"; then
24746      # The compiler can only warn and ignore the option if not recognized
24747      # So say no if there are warnings other than the usual output.
24748      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24749      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24750      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24751        lt_prog_compiler_pic_works_GCJ=yes
24752      fi
24753    fi
24754    $rm conftest*
24755
24756 fi
24757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24758 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24759
24760 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24761     case $lt_prog_compiler_pic_GCJ in
24762      "" | " "*) ;;
24763      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24764      esac
24765 else
24766     lt_prog_compiler_pic_GCJ=
24767      lt_prog_compiler_can_build_shared_GCJ=no
24768 fi
24769
24770 fi
24771 case $host_os in
24772   # For platforms which do not support PIC, -DPIC is meaningless:
24773   *djgpp*)
24774     lt_prog_compiler_pic_GCJ=
24775     ;;
24776   *)
24777     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24778     ;;
24779 esac
24780
24781 #
24782 # Check to make sure the static flag actually works.
24783 #
24784 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24785 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24786 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24787 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24788   echo $ECHO_N "(cached) $ECHO_C" >&6
24789 else
24790   lt_prog_compiler_static_works_GCJ=no
24791    save_LDFLAGS="$LDFLAGS"
24792    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24793    echo "$lt_simple_link_test_code" > conftest.$ac_ext
24794    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24795      # The linker can only warn and ignore the option if not recognized
24796      # So say no if there are warnings
24797      if test -s conftest.err; then
24798        # Append any errors to the config.log.
24799        cat conftest.err 1>&5
24800        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24801        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24802        if diff conftest.exp conftest.er2 >/dev/null; then
24803          lt_prog_compiler_static_works_GCJ=yes
24804        fi
24805      else
24806        lt_prog_compiler_static_works_GCJ=yes
24807      fi
24808    fi
24809    $rm conftest*
24810    LDFLAGS="$save_LDFLAGS"
24811
24812 fi
24813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24814 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24815
24816 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24817     :
24818 else
24819     lt_prog_compiler_static_GCJ=
24820 fi
24821
24822
24823 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24824 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24825 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 else
24828   lt_cv_prog_compiler_c_o_GCJ=no
24829    $rm -r conftest 2>/dev/null
24830    mkdir conftest
24831    cd conftest
24832    mkdir out
24833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24834
24835    lt_compiler_flag="-o out/conftest2.$ac_objext"
24836    # Insert the option either (1) after the last *FLAGS variable, or
24837    # (2) before a word containing "conftest.", or (3) at the end.
24838    # Note that $ac_compile itself does not contain backslashes and begins
24839    # with a dollar sign (not a hyphen), so the echo should work correctly.
24840    lt_compile=`echo "$ac_compile" | $SED \
24841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24843    -e 's:$: $lt_compiler_flag:'`
24844    (eval echo "\"\$as_me:24844: $lt_compile\"" >&5)
24845    (eval "$lt_compile" 2>out/conftest.err)
24846    ac_status=$?
24847    cat out/conftest.err >&5
24848    echo "$as_me:24848: \$? = $ac_status" >&5
24849    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24850    then
24851      # The compiler can only warn and ignore the option if not recognized
24852      # So say no if there are warnings
24853      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24854      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24855      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24856        lt_cv_prog_compiler_c_o_GCJ=yes
24857      fi
24858    fi
24859    chmod u+w . 2>&5
24860    $rm conftest*
24861    # SGI C++ compiler will create directory out/ii_files/ for
24862    # template instantiation
24863    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24864    $rm out/* && rmdir out
24865    cd ..
24866    rmdir conftest
24867    $rm conftest*
24868
24869 fi
24870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24872
24873
24874 hard_links="nottested"
24875 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24876   # do not overwrite the value of need_locks provided by the user
24877   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24878 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24879   hard_links=yes
24880   $rm conftest*
24881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24882   touch conftest.a
24883   ln conftest.a conftest.b 2>&5 || hard_links=no
24884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24885   { echo "$as_me:$LINENO: result: $hard_links" >&5
24886 echo "${ECHO_T}$hard_links" >&6; }
24887   if test "$hard_links" = no; then
24888     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24889 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24890     need_locks=warn
24891   fi
24892 else
24893   need_locks=no
24894 fi
24895
24896 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24898
24899   runpath_var=
24900   allow_undefined_flag_GCJ=
24901   enable_shared_with_static_runtimes_GCJ=no
24902   archive_cmds_GCJ=
24903   archive_expsym_cmds_GCJ=
24904   old_archive_From_new_cmds_GCJ=
24905   old_archive_from_expsyms_cmds_GCJ=
24906   export_dynamic_flag_spec_GCJ=
24907   whole_archive_flag_spec_GCJ=
24908   thread_safe_flag_spec_GCJ=
24909   hardcode_libdir_flag_spec_GCJ=
24910   hardcode_libdir_flag_spec_ld_GCJ=
24911   hardcode_libdir_separator_GCJ=
24912   hardcode_direct_GCJ=no
24913   hardcode_minus_L_GCJ=no
24914   hardcode_shlibpath_var_GCJ=unsupported
24915   link_all_deplibs_GCJ=unknown
24916   hardcode_automatic_GCJ=no
24917   module_cmds_GCJ=
24918   module_expsym_cmds_GCJ=
24919   always_export_symbols_GCJ=no
24920   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24921   # include_expsyms should be a list of space-separated symbols to be *always*
24922   # included in the symbol list
24923   include_expsyms_GCJ=
24924   # exclude_expsyms can be an extended regexp of symbols to exclude
24925   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24926   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24927   # as well as any symbol that contains `d'.
24928   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24929   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24930   # platforms (ab)use it in PIC code, but their linkers get confused if
24931   # the symbol is explicitly referenced.  Since portable code cannot
24932   # rely on this symbol name, it's probably fine to never include it in
24933   # preloaded symbol tables.
24934   extract_expsyms_cmds=
24935   # Just being paranoid about ensuring that cc_basename is set.
24936   for cc_temp in $compiler""; do
24937   case $cc_temp in
24938     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24939     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24940     \-*) ;;
24941     *) break;;
24942   esac
24943 done
24944 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24945
24946   case $host_os in
24947   cygwin* | mingw* | pw32*)
24948     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24949     # When not using gcc, we currently assume that we are using
24950     # Microsoft Visual C++.
24951     if test "$GCC" != yes; then
24952       with_gnu_ld=no
24953     fi
24954     ;;
24955   interix*)
24956     # we just hope/assume this is gcc and not c89 (= MSVC++)
24957     with_gnu_ld=yes
24958     ;;
24959   openbsd*)
24960     with_gnu_ld=no
24961     ;;
24962   esac
24963
24964   ld_shlibs_GCJ=yes
24965   if test "$with_gnu_ld" = yes; then
24966     # If archive_cmds runs LD, not CC, wlarc should be empty
24967     wlarc='${wl}'
24968
24969     # Set some defaults for GNU ld with shared library support. These
24970     # are reset later if shared libraries are not supported. Putting them
24971     # here allows them to be overridden if necessary.
24972     runpath_var=LD_RUN_PATH
24973     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24974     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24975     # ancient GNU ld didn't support --whole-archive et. al.
24976     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24977         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24978       else
24979         whole_archive_flag_spec_GCJ=
24980     fi
24981     supports_anon_versioning=no
24982     case `$LD -v 2>/dev/null` in
24983       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24984       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24985       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24986       *\ 2.11.*) ;; # other 2.11 versions
24987       *) supports_anon_versioning=yes ;;
24988     esac
24989
24990     # See if GNU ld supports shared libraries.
24991     case $host_os in
24992     aix3* | aix4* | aix5*)
24993       # On AIX/PPC, the GNU linker is very broken
24994       if test "$host_cpu" != ia64; then
24995         ld_shlibs_GCJ=no
24996         cat <<EOF 1>&2
24997
24998 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24999 *** to be unable to reliably create shared libraries on AIX.
25000 *** Therefore, libtool is disabling shared libraries support.  If you
25001 *** really care for shared libraries, you may want to modify your PATH
25002 *** so that a non-GNU linker is found, and then restart.
25003
25004 EOF
25005       fi
25006       ;;
25007
25008     amigaos*)
25009       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)'
25010       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25011       hardcode_minus_L_GCJ=yes
25012
25013       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25014       # that the semantics of dynamic libraries on AmigaOS, at least up
25015       # to version 4, is to share data among multiple programs linked
25016       # with the same dynamic library.  Since this doesn't match the
25017       # behavior of shared libraries on other platforms, we can't use
25018       # them.
25019       ld_shlibs_GCJ=no
25020       ;;
25021
25022     beos*)
25023       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25024         allow_undefined_flag_GCJ=unsupported
25025         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25026         # support --undefined.  This deserves some investigation.  FIXME
25027         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25028       else
25029         ld_shlibs_GCJ=no
25030       fi
25031       ;;
25032
25033     cygwin* | mingw* | pw32*)
25034       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25035       # as there is no search path for DLLs.
25036       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25037       allow_undefined_flag_GCJ=unsupported
25038       always_export_symbols_GCJ=no
25039       enable_shared_with_static_runtimes_GCJ=yes
25040       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25041
25042       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25043         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25044         # If the export-symbols file already is a .def file (1st line
25045         # is EXPORTS), use it as is; otherwise, prepend...
25046         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25047           cp $export_symbols $output_objdir/$soname.def;
25048         else
25049           echo EXPORTS > $output_objdir/$soname.def;
25050           cat $export_symbols >> $output_objdir/$soname.def;
25051         fi~
25052         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25053       else
25054         ld_shlibs_GCJ=no
25055       fi
25056       ;;
25057
25058     interix[3-9]*)
25059       hardcode_direct_GCJ=no
25060       hardcode_shlibpath_var_GCJ=no
25061       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25062       export_dynamic_flag_spec_GCJ='${wl}-E'
25063       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25064       # Instead, shared libraries are loaded at an image base (0x10000000 by
25065       # default) and relocated if they conflict, which is a slow very memory
25066       # consuming and fragmenting process.  To avoid this, we pick a random,
25067       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25068       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25069       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'
25070       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'
25071       ;;
25072
25073     gnu* | linux* | k*bsd*-gnu)
25074       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25075         tmp_addflag=
25076         case $cc_basename,$host_cpu in
25077         pgcc*)                          # Portland Group C compiler
25078           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'
25079           tmp_addflag=' $pic_flag'
25080           ;;
25081         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25082           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'
25083           tmp_addflag=' $pic_flag -Mnomain' ;;
25084         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25085           tmp_addflag=' -i_dynamic' ;;
25086         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25087           tmp_addflag=' -i_dynamic -nofor_main' ;;
25088         ifc* | ifort*)                  # Intel Fortran compiler
25089           tmp_addflag=' -nofor_main' ;;
25090         esac
25091         case `$CC -V 2>&1 | sed 5q` in
25092         *Sun\ C*)                       # Sun C 5.9
25093           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25094           tmp_sharedflag='-G' ;;
25095         *Sun\ F*)                       # Sun Fortran 8.3
25096           tmp_sharedflag='-G' ;;
25097         *)
25098           tmp_sharedflag='-shared' ;;
25099         esac
25100         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25101
25102         if test $supports_anon_versioning = yes; then
25103           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25104   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25105   $echo "local: *; };" >> $output_objdir/$libname.ver~
25106           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25107         fi
25108         link_all_deplibs_GCJ=no
25109       else
25110         ld_shlibs_GCJ=no
25111       fi
25112       ;;
25113
25114     netbsd* | netbsdelf*-gnu)
25115       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25116         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25117         wlarc=
25118       else
25119         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25120         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25121       fi
25122       ;;
25123
25124     solaris*)
25125       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25126         ld_shlibs_GCJ=no
25127         cat <<EOF 1>&2
25128
25129 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25130 *** create shared libraries on Solaris systems.  Therefore, libtool
25131 *** is disabling shared libraries support.  We urge you to upgrade GNU
25132 *** binutils to release 2.9.1 or newer.  Another option is to modify
25133 *** your PATH or compiler configuration so that the native linker is
25134 *** used, and then restart.
25135
25136 EOF
25137       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25138         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25139         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25140       else
25141         ld_shlibs_GCJ=no
25142       fi
25143       ;;
25144
25145     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25146       case `$LD -v 2>&1` in
25147         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25148         ld_shlibs_GCJ=no
25149         cat <<_LT_EOF 1>&2
25150
25151 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25152 *** reliably create shared libraries on SCO systems.  Therefore, libtool
25153 *** is disabling shared libraries support.  We urge you to upgrade GNU
25154 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25155 *** your PATH or compiler configuration so that the native linker is
25156 *** used, and then restart.
25157
25158 _LT_EOF
25159         ;;
25160         *)
25161           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25162             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25163             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25164             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25165           else
25166             ld_shlibs_GCJ=no
25167           fi
25168         ;;
25169       esac
25170       ;;
25171
25172     sunos4*)
25173       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25174       wlarc=
25175       hardcode_direct_GCJ=yes
25176       hardcode_shlibpath_var_GCJ=no
25177       ;;
25178
25179     *)
25180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25181         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25182         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25183       else
25184         ld_shlibs_GCJ=no
25185       fi
25186       ;;
25187     esac
25188
25189     if test "$ld_shlibs_GCJ" = no; then
25190       runpath_var=
25191       hardcode_libdir_flag_spec_GCJ=
25192       export_dynamic_flag_spec_GCJ=
25193       whole_archive_flag_spec_GCJ=
25194     fi
25195   else
25196     # PORTME fill in a description of your system's linker (not GNU ld)
25197     case $host_os in
25198     aix3*)
25199       allow_undefined_flag_GCJ=unsupported
25200       always_export_symbols_GCJ=yes
25201       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'
25202       # Note: this linker hardcodes the directories in LIBPATH if there
25203       # are no directories specified by -L.
25204       hardcode_minus_L_GCJ=yes
25205       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25206         # Neither direct hardcoding nor static linking is supported with a
25207         # broken collect2.
25208         hardcode_direct_GCJ=unsupported
25209       fi
25210       ;;
25211
25212     aix4* | aix5*)
25213       if test "$host_cpu" = ia64; then
25214         # On IA64, the linker does run time linking by default, so we don't
25215         # have to do anything special.
25216         aix_use_runtimelinking=no
25217         exp_sym_flag='-Bexport'
25218         no_entry_flag=""
25219       else
25220         # If we're using GNU nm, then we don't want the "-C" option.
25221         # -C means demangle to AIX nm, but means don't demangle with GNU nm
25222         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25223           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'
25224         else
25225           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'
25226         fi
25227         aix_use_runtimelinking=no
25228
25229         # Test if we are trying to use run time linking or normal
25230         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25231         # need to do runtime linking.
25232         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25233           for ld_flag in $LDFLAGS; do
25234           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25235             aix_use_runtimelinking=yes
25236             break
25237           fi
25238           done
25239           ;;
25240         esac
25241
25242         exp_sym_flag='-bexport'
25243         no_entry_flag='-bnoentry'
25244       fi
25245
25246       # When large executables or shared objects are built, AIX ld can
25247       # have problems creating the table of contents.  If linking a library
25248       # or program results in "error TOC overflow" add -mminimal-toc to
25249       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25250       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25251
25252       archive_cmds_GCJ=''
25253       hardcode_direct_GCJ=yes
25254       hardcode_libdir_separator_GCJ=':'
25255       link_all_deplibs_GCJ=yes
25256
25257       if test "$GCC" = yes; then
25258         case $host_os in aix4.[012]|aix4.[012].*)
25259         # We only want to do this on AIX 4.2 and lower, the check
25260         # below for broken collect2 doesn't work under 4.3+
25261           collect2name=`${CC} -print-prog-name=collect2`
25262           if test -f "$collect2name" && \
25263            strings "$collect2name" | grep resolve_lib_name >/dev/null
25264           then
25265           # We have reworked collect2
25266           :
25267           else
25268           # We have old collect2
25269           hardcode_direct_GCJ=unsupported
25270           # It fails to find uninstalled libraries when the uninstalled
25271           # path is not listed in the libpath.  Setting hardcode_minus_L
25272           # to unsupported forces relinking
25273           hardcode_minus_L_GCJ=yes
25274           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25275           hardcode_libdir_separator_GCJ=
25276           fi
25277           ;;
25278         esac
25279         shared_flag='-shared'
25280         if test "$aix_use_runtimelinking" = yes; then
25281           shared_flag="$shared_flag "'${wl}-G'
25282         fi
25283       else
25284         # not using gcc
25285         if test "$host_cpu" = ia64; then
25286         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25287         # chokes on -Wl,-G. The following line is correct:
25288           shared_flag='-G'
25289         else
25290           if test "$aix_use_runtimelinking" = yes; then
25291             shared_flag='${wl}-G'
25292           else
25293             shared_flag='${wl}-bM:SRE'
25294           fi
25295         fi
25296       fi
25297
25298       # It seems that -bexpall does not export symbols beginning with
25299       # underscore (_), so it is better to generate a list of symbols to export.
25300       always_export_symbols_GCJ=yes
25301       if test "$aix_use_runtimelinking" = yes; then
25302         # Warning - without using the other runtime loading flags (-brtl),
25303         # -berok will link without error, but may produce a broken library.
25304         allow_undefined_flag_GCJ='-berok'
25305        # Determine the default libpath from the value encoded in an empty executable.
25306        cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312
25313 int
25314 main ()
25315 {
25316
25317   ;
25318   return 0;
25319 }
25320 _ACEOF
25321 rm -f conftest.$ac_objext conftest$ac_exeext
25322 if { (ac_try="$ac_link"
25323 case "(($ac_try" in
25324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325   *) ac_try_echo=$ac_try;;
25326 esac
25327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25328   (eval "$ac_link") 2>conftest.er1
25329   ac_status=$?
25330   grep -v '^ *+' conftest.er1 >conftest.err
25331   rm -f conftest.er1
25332   cat conftest.err >&5
25333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334   (exit $ac_status); } && {
25335          test -z "$ac_c_werror_flag" ||
25336          test ! -s conftest.err
25337        } && test -s conftest$ac_exeext &&
25338        $as_test_x conftest$ac_exeext; then
25339
25340 lt_aix_libpath_sed='
25341     /Import File Strings/,/^$/ {
25342         /^0/ {
25343             s/^0  *\(.*\)$/\1/
25344             p
25345         }
25346     }'
25347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25348 # Check for a 64-bit object if we didn't find anything.
25349 if test -z "$aix_libpath"; then
25350   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25351 fi
25352 else
25353   echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25355
25356
25357 fi
25358
25359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25360       conftest$ac_exeext conftest.$ac_ext
25361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25362
25363        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25364         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"
25365        else
25366         if test "$host_cpu" = ia64; then
25367           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25368           allow_undefined_flag_GCJ="-z nodefs"
25369           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"
25370         else
25371          # Determine the default libpath from the value encoded in an empty executable.
25372          cat >conftest.$ac_ext <<_ACEOF
25373 /* confdefs.h.  */
25374 _ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h.  */
25378
25379 int
25380 main ()
25381 {
25382
25383   ;
25384   return 0;
25385 }
25386 _ACEOF
25387 rm -f conftest.$ac_objext conftest$ac_exeext
25388 if { (ac_try="$ac_link"
25389 case "(($ac_try" in
25390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391   *) ac_try_echo=$ac_try;;
25392 esac
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394   (eval "$ac_link") 2>conftest.er1
25395   ac_status=$?
25396   grep -v '^ *+' conftest.er1 >conftest.err
25397   rm -f conftest.er1
25398   cat conftest.err >&5
25399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400   (exit $ac_status); } && {
25401          test -z "$ac_c_werror_flag" ||
25402          test ! -s conftest.err
25403        } && test -s conftest$ac_exeext &&
25404        $as_test_x conftest$ac_exeext; then
25405
25406 lt_aix_libpath_sed='
25407     /Import File Strings/,/^$/ {
25408         /^0/ {
25409             s/^0  *\(.*\)$/\1/
25410             p
25411         }
25412     }'
25413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25414 # Check for a 64-bit object if we didn't find anything.
25415 if test -z "$aix_libpath"; then
25416   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25417 fi
25418 else
25419   echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25421
25422
25423 fi
25424
25425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25426       conftest$ac_exeext conftest.$ac_ext
25427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25428
25429          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25430           # Warning - without using the other run time loading flags,
25431           # -berok will link without error, but may produce a broken library.
25432           no_undefined_flag_GCJ=' ${wl}-bernotok'
25433           allow_undefined_flag_GCJ=' ${wl}-berok'
25434           # Exported symbols can be pulled into shared objects from archives
25435           whole_archive_flag_spec_GCJ='$convenience'
25436           archive_cmds_need_lc_GCJ=yes
25437           # This is similar to how AIX traditionally builds its shared libraries.
25438           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'
25439         fi
25440       fi
25441       ;;
25442
25443     amigaos*)
25444       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)'
25445       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25446       hardcode_minus_L_GCJ=yes
25447       # see comment about different semantics on the GNU ld section
25448       ld_shlibs_GCJ=no
25449       ;;
25450
25451     bsdi[45]*)
25452       export_dynamic_flag_spec_GCJ=-rdynamic
25453       ;;
25454
25455     cygwin* | mingw* | pw32*)
25456       # When not using gcc, we currently assume that we are using
25457       # Microsoft Visual C++.
25458       # hardcode_libdir_flag_spec is actually meaningless, as there is
25459       # no search path for DLLs.
25460       hardcode_libdir_flag_spec_GCJ=' '
25461       allow_undefined_flag_GCJ=unsupported
25462       # Tell ltmain to make .lib files, not .a files.
25463       libext=lib
25464       # Tell ltmain to make .dll files, not .so files.
25465       shrext_cmds=".dll"
25466       # FIXME: Setting linknames here is a bad hack.
25467       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25468       # The linker will automatically build a .lib file if we build a DLL.
25469       old_archive_From_new_cmds_GCJ='true'
25470       # FIXME: Should let the user specify the lib program.
25471       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
25472       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25473       enable_shared_with_static_runtimes_GCJ=yes
25474       ;;
25475
25476     darwin* | rhapsody*)
25477       case $host_os in
25478         rhapsody* | darwin1.[012])
25479          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25480          ;;
25481        *) # Darwin 1.3 on
25482          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25483            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25484          else
25485            case ${MACOSX_DEPLOYMENT_TARGET} in
25486              10.[012])
25487                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25488                ;;
25489              10.*)
25490                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25491                ;;
25492            esac
25493          fi
25494          ;;
25495       esac
25496       archive_cmds_need_lc_GCJ=no
25497       hardcode_direct_GCJ=no
25498       hardcode_automatic_GCJ=yes
25499       hardcode_shlibpath_var_GCJ=unsupported
25500       whole_archive_flag_spec_GCJ=''
25501       link_all_deplibs_GCJ=yes
25502     if test "$GCC" = yes ; then
25503         output_verbose_link_cmd='echo'
25504         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25505       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25506       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25507       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}'
25508       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}'
25509     else
25510       case $cc_basename in
25511         xlc*)
25512          output_verbose_link_cmd='echo'
25513          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
25514          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25515           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25516          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25517           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}'
25518           ;;
25519        *)
25520          ld_shlibs_GCJ=no
25521           ;;
25522       esac
25523     fi
25524       ;;
25525
25526     dgux*)
25527       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25528       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25529       hardcode_shlibpath_var_GCJ=no
25530       ;;
25531
25532     freebsd1*)
25533       ld_shlibs_GCJ=no
25534       ;;
25535
25536     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25537     # support.  Future versions do this automatically, but an explicit c++rt0.o
25538     # does not break anything, and helps significantly (at the cost of a little
25539     # extra space).
25540     freebsd2.2*)
25541       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25542       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25543       hardcode_direct_GCJ=yes
25544       hardcode_shlibpath_var_GCJ=no
25545       ;;
25546
25547     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25548     freebsd2*)
25549       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25550       hardcode_direct_GCJ=yes
25551       hardcode_minus_L_GCJ=yes
25552       hardcode_shlibpath_var_GCJ=no
25553       ;;
25554
25555     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25556     freebsd* | dragonfly*)
25557       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25558       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25559       hardcode_direct_GCJ=yes
25560       hardcode_shlibpath_var_GCJ=no
25561       ;;
25562
25563     hpux9*)
25564       if test "$GCC" = yes; then
25565         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'
25566       else
25567         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'
25568       fi
25569       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25570       hardcode_libdir_separator_GCJ=:
25571       hardcode_direct_GCJ=yes
25572
25573       # hardcode_minus_L: Not really in the search PATH,
25574       # but as the default location of the library.
25575       hardcode_minus_L_GCJ=yes
25576       export_dynamic_flag_spec_GCJ='${wl}-E'
25577       ;;
25578
25579     hpux10*)
25580       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25581         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25582       else
25583         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25584       fi
25585       if test "$with_gnu_ld" = no; then
25586         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25587         hardcode_libdir_separator_GCJ=:
25588
25589         hardcode_direct_GCJ=yes
25590         export_dynamic_flag_spec_GCJ='${wl}-E'
25591
25592         # hardcode_minus_L: Not really in the search PATH,
25593         # but as the default location of the library.
25594         hardcode_minus_L_GCJ=yes
25595       fi
25596       ;;
25597
25598     hpux11*)
25599       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25600         case $host_cpu in
25601         hppa*64*)
25602           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25603           ;;
25604         ia64*)
25605           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25606           ;;
25607         *)
25608           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25609           ;;
25610         esac
25611       else
25612         case $host_cpu in
25613         hppa*64*)
25614           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25615           ;;
25616         ia64*)
25617           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25618           ;;
25619         *)
25620           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25621           ;;
25622         esac
25623       fi
25624       if test "$with_gnu_ld" = no; then
25625         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25626         hardcode_libdir_separator_GCJ=:
25627
25628         case $host_cpu in
25629         hppa*64*|ia64*)
25630           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25631           hardcode_direct_GCJ=no
25632           hardcode_shlibpath_var_GCJ=no
25633           ;;
25634         *)
25635           hardcode_direct_GCJ=yes
25636           export_dynamic_flag_spec_GCJ='${wl}-E'
25637
25638           # hardcode_minus_L: Not really in the search PATH,
25639           # but as the default location of the library.
25640           hardcode_minus_L_GCJ=yes
25641           ;;
25642         esac
25643       fi
25644       ;;
25645
25646     irix5* | irix6* | nonstopux*)
25647       if test "$GCC" = yes; then
25648         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'
25649       else
25650         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'
25651         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25652       fi
25653       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25654       hardcode_libdir_separator_GCJ=:
25655       link_all_deplibs_GCJ=yes
25656       ;;
25657
25658     netbsd* | netbsdelf*-gnu)
25659       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25660         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25661       else
25662         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25663       fi
25664       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25665       hardcode_direct_GCJ=yes
25666       hardcode_shlibpath_var_GCJ=no
25667       ;;
25668
25669     newsos6)
25670       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25671       hardcode_direct_GCJ=yes
25672       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25673       hardcode_libdir_separator_GCJ=:
25674       hardcode_shlibpath_var_GCJ=no
25675       ;;
25676
25677     openbsd*)
25678       if test -f /usr/libexec/ld.so; then
25679         hardcode_direct_GCJ=yes
25680         hardcode_shlibpath_var_GCJ=no
25681         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25682           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25683           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25684           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25685           export_dynamic_flag_spec_GCJ='${wl}-E'
25686         else
25687           case $host_os in
25688            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25689              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25690              hardcode_libdir_flag_spec_GCJ='-R$libdir'
25691              ;;
25692            *)
25693              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25694              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25695              ;;
25696           esac
25697         fi
25698       else
25699         ld_shlibs_GCJ=no
25700       fi
25701       ;;
25702
25703     os2*)
25704       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25705       hardcode_minus_L_GCJ=yes
25706       allow_undefined_flag_GCJ=unsupported
25707       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'
25708       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25709       ;;
25710
25711     osf3*)
25712       if test "$GCC" = yes; then
25713         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25714         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'
25715       else
25716         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25717         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'
25718       fi
25719       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25720       hardcode_libdir_separator_GCJ=:
25721       ;;
25722
25723     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25724       if test "$GCC" = yes; then
25725         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25726         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'
25727         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25728       else
25729         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25730         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'
25731         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~
25732         $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'
25733
25734         # Both c and cxx compiler support -rpath directly
25735         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25736       fi
25737       hardcode_libdir_separator_GCJ=:
25738       ;;
25739
25740     solaris*)
25741       no_undefined_flag_GCJ=' -z text'
25742       if test "$GCC" = yes; then
25743         wlarc='${wl}'
25744         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25745         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25746           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25747       else
25748         wlarc=''
25749         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25750         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25751         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25752       fi
25753       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25754       hardcode_shlibpath_var_GCJ=no
25755       case $host_os in
25756       solaris2.[0-5] | solaris2.[0-5].*) ;;
25757       *)
25758         # The compiler driver will combine and reorder linker options,
25759         # but understands `-z linker_flag'.  GCC discards it without `$wl',
25760         # but is careful enough not to reorder.
25761         # Supported since Solaris 2.6 (maybe 2.5.1?)
25762         if test "$GCC" = yes; then
25763           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25764         else
25765           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25766         fi
25767         ;;
25768       esac
25769       link_all_deplibs_GCJ=yes
25770       ;;
25771
25772     sunos4*)
25773       if test "x$host_vendor" = xsequent; then
25774         # Use $CC to link under sequent, because it throws in some extra .o
25775         # files that make .init and .fini sections work.
25776         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25777       else
25778         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25779       fi
25780       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25781       hardcode_direct_GCJ=yes
25782       hardcode_minus_L_GCJ=yes
25783       hardcode_shlibpath_var_GCJ=no
25784       ;;
25785
25786     sysv4)
25787       case $host_vendor in
25788         sni)
25789           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25790           hardcode_direct_GCJ=yes # is this really true???
25791         ;;
25792         siemens)
25793           ## LD is ld it makes a PLAMLIB
25794           ## CC just makes a GrossModule.
25795           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25796           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25797           hardcode_direct_GCJ=no
25798         ;;
25799         motorola)
25800           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25801           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25802         ;;
25803       esac
25804       runpath_var='LD_RUN_PATH'
25805       hardcode_shlibpath_var_GCJ=no
25806       ;;
25807
25808     sysv4.3*)
25809       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25810       hardcode_shlibpath_var_GCJ=no
25811       export_dynamic_flag_spec_GCJ='-Bexport'
25812       ;;
25813
25814     sysv4*MP*)
25815       if test -d /usr/nec; then
25816         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25817         hardcode_shlibpath_var_GCJ=no
25818         runpath_var=LD_RUN_PATH
25819         hardcode_runpath_var=yes
25820         ld_shlibs_GCJ=yes
25821       fi
25822       ;;
25823
25824     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25825       no_undefined_flag_GCJ='${wl}-z,text'
25826       archive_cmds_need_lc_GCJ=no
25827       hardcode_shlibpath_var_GCJ=no
25828       runpath_var='LD_RUN_PATH'
25829
25830       if test "$GCC" = yes; then
25831         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25832         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25833       else
25834         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25835         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25836       fi
25837       ;;
25838
25839     sysv5* | sco3.2v5* | sco5v6*)
25840       # Note: We can NOT use -z defs as we might desire, because we do not
25841       # link with -lc, and that would cause any symbols used from libc to
25842       # always be unresolved, which means just about no library would
25843       # ever link correctly.  If we're not using GNU ld we use -z text
25844       # though, which does catch some bad symbols but isn't as heavy-handed
25845       # as -z defs.
25846       no_undefined_flag_GCJ='${wl}-z,text'
25847       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25848       archive_cmds_need_lc_GCJ=no
25849       hardcode_shlibpath_var_GCJ=no
25850       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25851       hardcode_libdir_separator_GCJ=':'
25852       link_all_deplibs_GCJ=yes
25853       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25854       runpath_var='LD_RUN_PATH'
25855
25856       if test "$GCC" = yes; then
25857         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25858         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25859       else
25860         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25861         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25862       fi
25863       ;;
25864
25865     uts4*)
25866       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25867       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25868       hardcode_shlibpath_var_GCJ=no
25869       ;;
25870
25871     *)
25872       ld_shlibs_GCJ=no
25873       ;;
25874     esac
25875   fi
25876
25877 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25878 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25879 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25880
25881 #
25882 # Do we need to explicitly link libc?
25883 #
25884 case "x$archive_cmds_need_lc_GCJ" in
25885 x|xyes)
25886   # Assume -lc should be added
25887   archive_cmds_need_lc_GCJ=yes
25888
25889   if test "$enable_shared" = yes && test "$GCC" = yes; then
25890     case $archive_cmds_GCJ in
25891     *'~'*)
25892       # FIXME: we may have to deal with multi-command sequences.
25893       ;;
25894     '$CC '*)
25895       # Test whether the compiler implicitly links with -lc since on some
25896       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25897       # to ld, don't add -lc before -lgcc.
25898       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25900       $rm conftest*
25901       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25902
25903       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25904   (eval $ac_compile) 2>&5
25905   ac_status=$?
25906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907   (exit $ac_status); } 2>conftest.err; then
25908         soname=conftest
25909         lib=conftest
25910         libobjs=conftest.$ac_objext
25911         deplibs=
25912         wl=$lt_prog_compiler_wl_GCJ
25913         pic_flag=$lt_prog_compiler_pic_GCJ
25914         compiler_flags=-v
25915         linker_flags=-v
25916         verstring=
25917         output_objdir=.
25918         libname=conftest
25919         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25920         allow_undefined_flag_GCJ=
25921         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25922   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25923   ac_status=$?
25924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925   (exit $ac_status); }
25926         then
25927           archive_cmds_need_lc_GCJ=no
25928         else
25929           archive_cmds_need_lc_GCJ=yes
25930         fi
25931         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25932       else
25933         cat conftest.err 1>&5
25934       fi
25935       $rm conftest*
25936       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25937 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25938       ;;
25939     esac
25940   fi
25941   ;;
25942 esac
25943
25944 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25946 library_names_spec=
25947 libname_spec='lib$name'
25948 soname_spec=
25949 shrext_cmds=".so"
25950 postinstall_cmds=
25951 postuninstall_cmds=
25952 finish_cmds=
25953 finish_eval=
25954 shlibpath_var=
25955 shlibpath_overrides_runpath=unknown
25956 version_type=none
25957 dynamic_linker="$host_os ld.so"
25958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25959
25960 need_lib_prefix=unknown
25961 hardcode_into_libs=no
25962
25963 # when you set need_version to no, make sure it does not cause -set_version
25964 # flags to be left without arguments
25965 need_version=unknown
25966
25967 case $host_os in
25968 aix3*)
25969   version_type=linux
25970   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25971   shlibpath_var=LIBPATH
25972
25973   # AIX 3 has no versioning support, so we append a major version to the name.
25974   soname_spec='${libname}${release}${shared_ext}$major'
25975   ;;
25976
25977 aix4* | aix5*)
25978   version_type=linux
25979   need_lib_prefix=no
25980   need_version=no
25981   hardcode_into_libs=yes
25982   if test "$host_cpu" = ia64; then
25983     # AIX 5 supports IA64
25984     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25985     shlibpath_var=LD_LIBRARY_PATH
25986   else
25987     # With GCC up to 2.95.x, collect2 would create an import file
25988     # for dependence libraries.  The import file would start with
25989     # the line `#! .'.  This would cause the generated library to
25990     # depend on `.', always an invalid library.  This was fixed in
25991     # development snapshots of GCC prior to 3.0.
25992     case $host_os in
25993       aix4 | aix4.[01] | aix4.[01].*)
25994       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25995            echo ' yes '
25996            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25997         :
25998       else
25999         can_build_shared=no
26000       fi
26001       ;;
26002     esac
26003     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26004     # soname into executable. Probably we can add versioning support to
26005     # collect2, so additional links can be useful in future.
26006     if test "$aix_use_runtimelinking" = yes; then
26007       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26008       # instead of lib<name>.a to let people know that these are not
26009       # typical AIX shared libraries.
26010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26011     else
26012       # We preserve .a as extension for shared libraries through AIX4.2
26013       # and later when we are not doing run time linking.
26014       library_names_spec='${libname}${release}.a $libname.a'
26015       soname_spec='${libname}${release}${shared_ext}$major'
26016     fi
26017     shlibpath_var=LIBPATH
26018   fi
26019   ;;
26020
26021 amigaos*)
26022   library_names_spec='$libname.ixlibrary $libname.a'
26023   # Create ${libname}_ixlibrary.a entries in /sys/libs.
26024   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'
26025   ;;
26026
26027 beos*)
26028   library_names_spec='${libname}${shared_ext}'
26029   dynamic_linker="$host_os ld.so"
26030   shlibpath_var=LIBRARY_PATH
26031   ;;
26032
26033 bsdi[45]*)
26034   version_type=linux
26035   need_version=no
26036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26037   soname_spec='${libname}${release}${shared_ext}$major'
26038   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26039   shlibpath_var=LD_LIBRARY_PATH
26040   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26041   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26042   # the default ld.so.conf also contains /usr/contrib/lib and
26043   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26044   # libtool to hard-code these into programs
26045   ;;
26046
26047 cygwin* | mingw* | pw32*)
26048   version_type=windows
26049   shrext_cmds=".dll"
26050   need_version=no
26051   need_lib_prefix=no
26052
26053   case $GCC,$host_os in
26054   yes,cygwin* | yes,mingw* | yes,pw32*)
26055     library_names_spec='$libname.dll.a'
26056     # DLL is installed to $(libdir)/../bin by postinstall_cmds
26057     postinstall_cmds='base_file=`basename \${file}`~
26058       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26059       dldir=$destdir/`dirname \$dlpath`~
26060       test -d \$dldir || mkdir -p \$dldir~
26061       $install_prog $dir/$dlname \$dldir/$dlname~
26062       chmod a+x \$dldir/$dlname'
26063     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26064       dlpath=$dir/\$dldll~
26065        $rm \$dlpath'
26066     shlibpath_overrides_runpath=yes
26067
26068     case $host_os in
26069     cygwin*)
26070       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26071       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26072       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26073       ;;
26074     mingw*)
26075       # MinGW DLLs use traditional 'lib' prefix
26076       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26077       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26078       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26079         # It is most probably a Windows format PATH printed by
26080         # mingw gcc, but we are running on Cygwin. Gcc prints its search
26081         # path with ; separators, and with drive letters. We can handle the
26082         # drive letters (cygwin fileutils understands them), so leave them,
26083         # especially as we might pass files found there to a mingw objdump,
26084         # which wouldn't understand a cygwinified path. Ahh.
26085         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26086       else
26087         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26088       fi
26089       ;;
26090     pw32*)
26091       # pw32 DLLs use 'pw' prefix rather than 'lib'
26092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26093       ;;
26094     esac
26095     ;;
26096
26097   *)
26098     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26099     ;;
26100   esac
26101   dynamic_linker='Win32 ld.exe'
26102   # FIXME: first we should search . and the directory the executable is in
26103   shlibpath_var=PATH
26104   ;;
26105
26106 darwin* | rhapsody*)
26107   dynamic_linker="$host_os dyld"
26108   version_type=darwin
26109   need_lib_prefix=no
26110   need_version=no
26111   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26112   soname_spec='${libname}${release}${major}$shared_ext'
26113   shlibpath_overrides_runpath=yes
26114   shlibpath_var=DYLD_LIBRARY_PATH
26115   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26116
26117   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26118   ;;
26119
26120 dgux*)
26121   version_type=linux
26122   need_lib_prefix=no
26123   need_version=no
26124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26125   soname_spec='${libname}${release}${shared_ext}$major'
26126   shlibpath_var=LD_LIBRARY_PATH
26127   ;;
26128
26129 freebsd1*)
26130   dynamic_linker=no
26131   ;;
26132
26133 freebsd* | dragonfly*)
26134   # DragonFly does not have aout.  When/if they implement a new
26135   # versioning mechanism, adjust this.
26136   if test -x /usr/bin/objformat; then
26137     objformat=`/usr/bin/objformat`
26138   else
26139     case $host_os in
26140     freebsd[123]*) objformat=aout ;;
26141     *) objformat=elf ;;
26142     esac
26143   fi
26144   version_type=freebsd-$objformat
26145   case $version_type in
26146     freebsd-elf*)
26147       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26148       need_version=no
26149       need_lib_prefix=no
26150       ;;
26151     freebsd-*)
26152       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26153       need_version=yes
26154       ;;
26155   esac
26156   shlibpath_var=LD_LIBRARY_PATH
26157   case $host_os in
26158   freebsd2*)
26159     shlibpath_overrides_runpath=yes
26160     ;;
26161   freebsd3.[01]* | freebsdelf3.[01]*)
26162     shlibpath_overrides_runpath=yes
26163     hardcode_into_libs=yes
26164     ;;
26165   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26166   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26167     shlibpath_overrides_runpath=no
26168     hardcode_into_libs=yes
26169     ;;
26170   *) # from 4.6 on, and DragonFly
26171     shlibpath_overrides_runpath=yes
26172     hardcode_into_libs=yes
26173     ;;
26174   esac
26175   ;;
26176
26177 gnu*)
26178   version_type=linux
26179   need_lib_prefix=no
26180   need_version=no
26181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26182   soname_spec='${libname}${release}${shared_ext}$major'
26183   shlibpath_var=LD_LIBRARY_PATH
26184   hardcode_into_libs=yes
26185   ;;
26186
26187 hpux9* | hpux10* | hpux11*)
26188   # Give a soname corresponding to the major version so that dld.sl refuses to
26189   # link against other versions.
26190   version_type=sunos
26191   need_lib_prefix=no
26192   need_version=no
26193   case $host_cpu in
26194   ia64*)
26195     shrext_cmds='.so'
26196     hardcode_into_libs=yes
26197     dynamic_linker="$host_os dld.so"
26198     shlibpath_var=LD_LIBRARY_PATH
26199     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26201     soname_spec='${libname}${release}${shared_ext}$major'
26202     if test "X$HPUX_IA64_MODE" = X32; then
26203       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26204     else
26205       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26206     fi
26207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26208     ;;
26209    hppa*64*)
26210      shrext_cmds='.sl'
26211      hardcode_into_libs=yes
26212      dynamic_linker="$host_os dld.sl"
26213      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26214      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26216      soname_spec='${libname}${release}${shared_ext}$major'
26217      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26218      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26219      ;;
26220    *)
26221     shrext_cmds='.sl'
26222     dynamic_linker="$host_os dld.sl"
26223     shlibpath_var=SHLIB_PATH
26224     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26226     soname_spec='${libname}${release}${shared_ext}$major'
26227     ;;
26228   esac
26229   # HP-UX runs *really* slowly unless shared libraries are mode 555.
26230   postinstall_cmds='chmod 555 $lib'
26231   ;;
26232
26233 interix[3-9]*)
26234   version_type=linux
26235   need_lib_prefix=no
26236   need_version=no
26237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26238   soname_spec='${libname}${release}${shared_ext}$major'
26239   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26240   shlibpath_var=LD_LIBRARY_PATH
26241   shlibpath_overrides_runpath=no
26242   hardcode_into_libs=yes
26243   ;;
26244
26245 irix5* | irix6* | nonstopux*)
26246   case $host_os in
26247     nonstopux*) version_type=nonstopux ;;
26248     *)
26249         if test "$lt_cv_prog_gnu_ld" = yes; then
26250                 version_type=linux
26251         else
26252                 version_type=irix
26253         fi ;;
26254   esac
26255   need_lib_prefix=no
26256   need_version=no
26257   soname_spec='${libname}${release}${shared_ext}$major'
26258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26259   case $host_os in
26260   irix5* | nonstopux*)
26261     libsuff= shlibsuff=
26262     ;;
26263   *)
26264     case $LD in # libtool.m4 will add one of these switches to LD
26265     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26266       libsuff= shlibsuff= libmagic=32-bit;;
26267     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26268       libsuff=32 shlibsuff=N32 libmagic=N32;;
26269     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26270       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26271     *) libsuff= shlibsuff= libmagic=never-match;;
26272     esac
26273     ;;
26274   esac
26275   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26276   shlibpath_overrides_runpath=no
26277   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26278   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26279   hardcode_into_libs=yes
26280   ;;
26281
26282 # No shared lib support for Linux oldld, aout, or coff.
26283 linux*oldld* | linux*aout* | linux*coff*)
26284   dynamic_linker=no
26285   ;;
26286
26287 # This must be Linux ELF.
26288 linux* | k*bsd*-gnu)
26289   version_type=linux
26290   need_lib_prefix=no
26291   need_version=no
26292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26293   soname_spec='${libname}${release}${shared_ext}$major'
26294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26295   shlibpath_var=LD_LIBRARY_PATH
26296   shlibpath_overrides_runpath=no
26297   # This implies no fast_install, which is unacceptable.
26298   # Some rework will be needed to allow for fast_install
26299   # before this can be enabled.
26300   hardcode_into_libs=yes
26301
26302   # Append ld.so.conf contents to the search path
26303   if test -f /etc/ld.so.conf; then
26304     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
26305     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26306   fi
26307
26308   # We used to test for /lib/ld.so.1 and disable shared libraries on
26309   # powerpc, because MkLinux only supported shared libraries with the
26310   # GNU dynamic linker.  Since this was broken with cross compilers,
26311   # most powerpc-linux boxes support dynamic linking these days and
26312   # people can always --disable-shared, the test was removed, and we
26313   # assume the GNU/Linux dynamic linker is in use.
26314   dynamic_linker='GNU/Linux ld.so'
26315   ;;
26316
26317 netbsdelf*-gnu)
26318   version_type=linux
26319   need_lib_prefix=no
26320   need_version=no
26321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26322   soname_spec='${libname}${release}${shared_ext}$major'
26323   shlibpath_var=LD_LIBRARY_PATH
26324   shlibpath_overrides_runpath=no
26325   hardcode_into_libs=yes
26326   dynamic_linker='NetBSD ld.elf_so'
26327   ;;
26328
26329 netbsd*)
26330   version_type=sunos
26331   need_lib_prefix=no
26332   need_version=no
26333   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26335     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26336     dynamic_linker='NetBSD (a.out) ld.so'
26337   else
26338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26339     soname_spec='${libname}${release}${shared_ext}$major'
26340     dynamic_linker='NetBSD ld.elf_so'
26341   fi
26342   shlibpath_var=LD_LIBRARY_PATH
26343   shlibpath_overrides_runpath=yes
26344   hardcode_into_libs=yes
26345   ;;
26346
26347 newsos6)
26348   version_type=linux
26349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26350   shlibpath_var=LD_LIBRARY_PATH
26351   shlibpath_overrides_runpath=yes
26352   ;;
26353
26354 nto-qnx*)
26355   version_type=linux
26356   need_lib_prefix=no
26357   need_version=no
26358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26359   soname_spec='${libname}${release}${shared_ext}$major'
26360   shlibpath_var=LD_LIBRARY_PATH
26361   shlibpath_overrides_runpath=yes
26362   ;;
26363
26364 openbsd*)
26365   version_type=sunos
26366   sys_lib_dlsearch_path_spec="/usr/lib"
26367   need_lib_prefix=no
26368   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26369   case $host_os in
26370     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26371     *)                         need_version=no  ;;
26372   esac
26373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26374   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26375   shlibpath_var=LD_LIBRARY_PATH
26376   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26377     case $host_os in
26378       openbsd2.[89] | openbsd2.[89].*)
26379         shlibpath_overrides_runpath=no
26380         ;;
26381       *)
26382         shlibpath_overrides_runpath=yes
26383         ;;
26384       esac
26385   else
26386     shlibpath_overrides_runpath=yes
26387   fi
26388   ;;
26389
26390 os2*)
26391   libname_spec='$name'
26392   shrext_cmds=".dll"
26393   need_lib_prefix=no
26394   library_names_spec='$libname${shared_ext} $libname.a'
26395   dynamic_linker='OS/2 ld.exe'
26396   shlibpath_var=LIBPATH
26397   ;;
26398
26399 osf3* | osf4* | osf5*)
26400   version_type=osf
26401   need_lib_prefix=no
26402   need_version=no
26403   soname_spec='${libname}${release}${shared_ext}$major'
26404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26405   shlibpath_var=LD_LIBRARY_PATH
26406   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26407   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26408   ;;
26409
26410 rdos*)
26411   dynamic_linker=no
26412   ;;
26413
26414 solaris*)
26415   version_type=linux
26416   need_lib_prefix=no
26417   need_version=no
26418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26419   soname_spec='${libname}${release}${shared_ext}$major'
26420   shlibpath_var=LD_LIBRARY_PATH
26421   shlibpath_overrides_runpath=yes
26422   hardcode_into_libs=yes
26423   # ldd complains unless libraries are executable
26424   postinstall_cmds='chmod +x $lib'
26425   ;;
26426
26427 sunos4*)
26428   version_type=sunos
26429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26430   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26431   shlibpath_var=LD_LIBRARY_PATH
26432   shlibpath_overrides_runpath=yes
26433   if test "$with_gnu_ld" = yes; then
26434     need_lib_prefix=no
26435   fi
26436   need_version=yes
26437   ;;
26438
26439 sysv4 | sysv4.3*)
26440   version_type=linux
26441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26442   soname_spec='${libname}${release}${shared_ext}$major'
26443   shlibpath_var=LD_LIBRARY_PATH
26444   case $host_vendor in
26445     sni)
26446       shlibpath_overrides_runpath=no
26447       need_lib_prefix=no
26448       export_dynamic_flag_spec='${wl}-Blargedynsym'
26449       runpath_var=LD_RUN_PATH
26450       ;;
26451     siemens)
26452       need_lib_prefix=no
26453       ;;
26454     motorola)
26455       need_lib_prefix=no
26456       need_version=no
26457       shlibpath_overrides_runpath=no
26458       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26459       ;;
26460   esac
26461   ;;
26462
26463 sysv4*MP*)
26464   if test -d /usr/nec ;then
26465     version_type=linux
26466     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26467     soname_spec='$libname${shared_ext}.$major'
26468     shlibpath_var=LD_LIBRARY_PATH
26469   fi
26470   ;;
26471
26472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26473   version_type=freebsd-elf
26474   need_lib_prefix=no
26475   need_version=no
26476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26477   soname_spec='${libname}${release}${shared_ext}$major'
26478   shlibpath_var=LD_LIBRARY_PATH
26479   hardcode_into_libs=yes
26480   if test "$with_gnu_ld" = yes; then
26481     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26482     shlibpath_overrides_runpath=no
26483   else
26484     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26485     shlibpath_overrides_runpath=yes
26486     case $host_os in
26487       sco3.2v5*)
26488         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26489         ;;
26490     esac
26491   fi
26492   sys_lib_dlsearch_path_spec='/usr/lib'
26493   ;;
26494
26495 uts4*)
26496   version_type=linux
26497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26498   soname_spec='${libname}${release}${shared_ext}$major'
26499   shlibpath_var=LD_LIBRARY_PATH
26500   ;;
26501
26502 *)
26503   dynamic_linker=no
26504   ;;
26505 esac
26506 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26507 echo "${ECHO_T}$dynamic_linker" >&6; }
26508 test "$dynamic_linker" = no && can_build_shared=no
26509
26510 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26511 if test "$GCC" = yes; then
26512   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26513 fi
26514
26515 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26516 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26517 hardcode_action_GCJ=
26518 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26519    test -n "$runpath_var_GCJ" || \
26520    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26521
26522   # We can hardcode non-existant directories.
26523   if test "$hardcode_direct_GCJ" != no &&
26524      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26525      # have to relink, otherwise we might link with an installed library
26526      # when we should be linking with a yet-to-be-installed one
26527      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26528      test "$hardcode_minus_L_GCJ" != no; then
26529     # Linking always hardcodes the temporary library directory.
26530     hardcode_action_GCJ=relink
26531   else
26532     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26533     hardcode_action_GCJ=immediate
26534   fi
26535 else
26536   # We cannot hardcode anything, or else we can only hardcode existing
26537   # directories.
26538   hardcode_action_GCJ=unsupported
26539 fi
26540 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26541 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26542
26543 if test "$hardcode_action_GCJ" = relink; then
26544   # Fast installation is not supported
26545   enable_fast_install=no
26546 elif test "$shlibpath_overrides_runpath" = yes ||
26547      test "$enable_shared" = no; then
26548   # Fast installation is not necessary
26549   enable_fast_install=needless
26550 fi
26551
26552
26553 # The else clause should only fire when bootstrapping the
26554 # libtool distribution, otherwise you forgot to ship ltmain.sh
26555 # with your package, and you will get complaints that there are
26556 # no rules to generate ltmain.sh.
26557 if test -f "$ltmain"; then
26558   # See if we are running on zsh, and set the options which allow our commands through
26559   # without removal of \ escapes.
26560   if test -n "${ZSH_VERSION+set}" ; then
26561     setopt NO_GLOB_SUBST
26562   fi
26563   # Now quote all the things that may contain metacharacters while being
26564   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26565   # variables and quote the copies for generation of the libtool script.
26566   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26567     SED SHELL STRIP \
26568     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26569     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26570     deplibs_check_method reload_flag reload_cmds need_locks \
26571     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26572     lt_cv_sys_global_symbol_to_c_name_address \
26573     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26574     old_postinstall_cmds old_postuninstall_cmds \
26575     compiler_GCJ \
26576     CC_GCJ \
26577     LD_GCJ \
26578     lt_prog_compiler_wl_GCJ \
26579     lt_prog_compiler_pic_GCJ \
26580     lt_prog_compiler_static_GCJ \
26581     lt_prog_compiler_no_builtin_flag_GCJ \
26582     export_dynamic_flag_spec_GCJ \
26583     thread_safe_flag_spec_GCJ \
26584     whole_archive_flag_spec_GCJ \
26585     enable_shared_with_static_runtimes_GCJ \
26586     old_archive_cmds_GCJ \
26587     old_archive_from_new_cmds_GCJ \
26588     predep_objects_GCJ \
26589     postdep_objects_GCJ \
26590     predeps_GCJ \
26591     postdeps_GCJ \
26592     compiler_lib_search_path_GCJ \
26593     archive_cmds_GCJ \
26594     archive_expsym_cmds_GCJ \
26595     postinstall_cmds_GCJ \
26596     postuninstall_cmds_GCJ \
26597     old_archive_from_expsyms_cmds_GCJ \
26598     allow_undefined_flag_GCJ \
26599     no_undefined_flag_GCJ \
26600     export_symbols_cmds_GCJ \
26601     hardcode_libdir_flag_spec_GCJ \
26602     hardcode_libdir_flag_spec_ld_GCJ \
26603     hardcode_libdir_separator_GCJ \
26604     hardcode_automatic_GCJ \
26605     module_cmds_GCJ \
26606     module_expsym_cmds_GCJ \
26607     lt_cv_prog_compiler_c_o_GCJ \
26608     fix_srcfile_path_GCJ \
26609     exclude_expsyms_GCJ \
26610     include_expsyms_GCJ; do
26611
26612     case $var in
26613     old_archive_cmds_GCJ | \
26614     old_archive_from_new_cmds_GCJ | \
26615     archive_cmds_GCJ | \
26616     archive_expsym_cmds_GCJ | \
26617     module_cmds_GCJ | \
26618     module_expsym_cmds_GCJ | \
26619     old_archive_from_expsyms_cmds_GCJ | \
26620     export_symbols_cmds_GCJ | \
26621     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26622     postinstall_cmds | postuninstall_cmds | \
26623     old_postinstall_cmds | old_postuninstall_cmds | \
26624     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26625       # Double-quote double-evaled strings.
26626       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26627       ;;
26628     *)
26629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26630       ;;
26631     esac
26632   done
26633
26634   case $lt_echo in
26635   *'\$0 --fallback-echo"')
26636     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26637     ;;
26638   esac
26639
26640 cfgfile="$ofile"
26641
26642   cat <<__EOF__ >> "$cfgfile"
26643 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26644
26645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26646
26647 # Shell to use when invoking shell scripts.
26648 SHELL=$lt_SHELL
26649
26650 # Whether or not to build shared libraries.
26651 build_libtool_libs=$enable_shared
26652
26653 # Whether or not to build static libraries.
26654 build_old_libs=$enable_static
26655
26656 # Whether or not to add -lc for building shared libraries.
26657 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26658
26659 # Whether or not to disallow shared libs when runtime libs are static
26660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26661
26662 # Whether or not to optimize for fast installation.
26663 fast_install=$enable_fast_install
26664
26665 # The host system.
26666 host_alias=$host_alias
26667 host=$host
26668 host_os=$host_os
26669
26670 # The build system.
26671 build_alias=$build_alias
26672 build=$build
26673 build_os=$build_os
26674
26675 # An echo program that does not interpret backslashes.
26676 echo=$lt_echo
26677
26678 # The archiver.
26679 AR=$lt_AR
26680 AR_FLAGS=$lt_AR_FLAGS
26681
26682 # A C compiler.
26683 LTCC=$lt_LTCC
26684
26685 # LTCC compiler flags.
26686 LTCFLAGS=$lt_LTCFLAGS
26687
26688 # A language-specific compiler.
26689 CC=$lt_compiler_GCJ
26690
26691 # Is the compiler the GNU C compiler?
26692 with_gcc=$GCC_GCJ
26693
26694 # An ERE matcher.
26695 EGREP=$lt_EGREP
26696
26697 # The linker used to build libraries.
26698 LD=$lt_LD_GCJ
26699
26700 # Whether we need hard or soft links.
26701 LN_S=$lt_LN_S
26702
26703 # A BSD-compatible nm program.
26704 NM=$lt_NM
26705
26706 # A symbol stripping program
26707 STRIP=$lt_STRIP
26708
26709 # Used to examine libraries when file_magic_cmd begins "file"
26710 MAGIC_CMD=$MAGIC_CMD
26711
26712 # Used on cygwin: DLL creation program.
26713 DLLTOOL="$DLLTOOL"
26714
26715 # Used on cygwin: object dumper.
26716 OBJDUMP="$OBJDUMP"
26717
26718 # Used on cygwin: assembler.
26719 AS="$AS"
26720
26721 # The name of the directory that contains temporary libtool files.
26722 objdir=$objdir
26723
26724 # How to create reloadable object files.
26725 reload_flag=$lt_reload_flag
26726 reload_cmds=$lt_reload_cmds
26727
26728 # How to pass a linker flag through the compiler.
26729 wl=$lt_lt_prog_compiler_wl_GCJ
26730
26731 # Object file suffix (normally "o").
26732 objext="$ac_objext"
26733
26734 # Old archive suffix (normally "a").
26735 libext="$libext"
26736
26737 # Shared library suffix (normally ".so").
26738 shrext_cmds='$shrext_cmds'
26739
26740 # Executable file suffix (normally "").
26741 exeext="$exeext"
26742
26743 # Additional compiler flags for building library objects.
26744 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26745 pic_mode=$pic_mode
26746
26747 # What is the maximum length of a command?
26748 max_cmd_len=$lt_cv_sys_max_cmd_len
26749
26750 # Does compiler simultaneously support -c and -o options?
26751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26752
26753 # Must we lock files when doing compilation?
26754 need_locks=$lt_need_locks
26755
26756 # Do we need the lib prefix for modules?
26757 need_lib_prefix=$need_lib_prefix
26758
26759 # Do we need a version for libraries?
26760 need_version=$need_version
26761
26762 # Whether dlopen is supported.
26763 dlopen_support=$enable_dlopen
26764
26765 # Whether dlopen of programs is supported.
26766 dlopen_self=$enable_dlopen_self
26767
26768 # Whether dlopen of statically linked programs is supported.
26769 dlopen_self_static=$enable_dlopen_self_static
26770
26771 # Compiler flag to prevent dynamic linking.
26772 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26773
26774 # Compiler flag to turn off builtin functions.
26775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26776
26777 # Compiler flag to allow reflexive dlopens.
26778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26779
26780 # Compiler flag to generate shared objects directly from archives.
26781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26782
26783 # Compiler flag to generate thread-safe objects.
26784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26785
26786 # Library versioning type.
26787 version_type=$version_type
26788
26789 # Format of library name prefix.
26790 libname_spec=$lt_libname_spec
26791
26792 # List of archive names.  First name is the real one, the rest are links.
26793 # The last name is the one that the linker finds with -lNAME.
26794 library_names_spec=$lt_library_names_spec
26795
26796 # The coded name of the library, if different from the real name.
26797 soname_spec=$lt_soname_spec
26798
26799 # Commands used to build and install an old-style archive.
26800 RANLIB=$lt_RANLIB
26801 old_archive_cmds=$lt_old_archive_cmds_GCJ
26802 old_postinstall_cmds=$lt_old_postinstall_cmds
26803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26804
26805 # Create an old-style archive from a shared archive.
26806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26807
26808 # Create a temporary old-style archive to link instead of a shared archive.
26809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26810
26811 # Commands used to build and install a shared archive.
26812 archive_cmds=$lt_archive_cmds_GCJ
26813 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26814 postinstall_cmds=$lt_postinstall_cmds
26815 postuninstall_cmds=$lt_postuninstall_cmds
26816
26817 # Commands used to build a loadable module (assumed same as above if empty)
26818 module_cmds=$lt_module_cmds_GCJ
26819 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26820
26821 # Commands to strip libraries.
26822 old_striplib=$lt_old_striplib
26823 striplib=$lt_striplib
26824
26825 # Dependencies to place before the objects being linked to create a
26826 # shared library.
26827 predep_objects=$lt_predep_objects_GCJ
26828
26829 # Dependencies to place after the objects being linked to create a
26830 # shared library.
26831 postdep_objects=$lt_postdep_objects_GCJ
26832
26833 # Dependencies to place before the objects being linked to create a
26834 # shared library.
26835 predeps=$lt_predeps_GCJ
26836
26837 # Dependencies to place after the objects being linked to create a
26838 # shared library.
26839 postdeps=$lt_postdeps_GCJ
26840
26841 # The library search path used internally by the compiler when linking
26842 # a shared library.
26843 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26844
26845 # Method to check whether dependent libraries are shared objects.
26846 deplibs_check_method=$lt_deplibs_check_method
26847
26848 # Command to use when deplibs_check_method == file_magic.
26849 file_magic_cmd=$lt_file_magic_cmd
26850
26851 # Flag that allows shared libraries with undefined symbols to be built.
26852 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26853
26854 # Flag that forces no undefined symbols.
26855 no_undefined_flag=$lt_no_undefined_flag_GCJ
26856
26857 # Commands used to finish a libtool library installation in a directory.
26858 finish_cmds=$lt_finish_cmds
26859
26860 # Same as above, but a single script fragment to be evaled but not shown.
26861 finish_eval=$lt_finish_eval
26862
26863 # Take the output of nm and produce a listing of raw symbols and C names.
26864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26865
26866 # Transform the output of nm in a proper C declaration
26867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26868
26869 # Transform the output of nm in a C name address pair
26870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26871
26872 # This is the shared library runtime path variable.
26873 runpath_var=$runpath_var
26874
26875 # This is the shared library path variable.
26876 shlibpath_var=$shlibpath_var
26877
26878 # Is shlibpath searched before the hard-coded library search path?
26879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26880
26881 # How to hardcode a shared library path into an executable.
26882 hardcode_action=$hardcode_action_GCJ
26883
26884 # Whether we should hardcode library paths into libraries.
26885 hardcode_into_libs=$hardcode_into_libs
26886
26887 # Flag to hardcode \$libdir into a binary during linking.
26888 # This must work even if \$libdir does not exist.
26889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26890
26891 # If ld is used when linking, flag to hardcode \$libdir into
26892 # a binary during linking. This must work even if \$libdir does
26893 # not exist.
26894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26895
26896 # Whether we need a single -rpath flag with a separated argument.
26897 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26898
26899 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26900 # resulting binary.
26901 hardcode_direct=$hardcode_direct_GCJ
26902
26903 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26904 # resulting binary.
26905 hardcode_minus_L=$hardcode_minus_L_GCJ
26906
26907 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26908 # the resulting binary.
26909 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26910
26911 # Set to yes if building a shared library automatically hardcodes DIR into the library
26912 # and all subsequent libraries and executables linked against it.
26913 hardcode_automatic=$hardcode_automatic_GCJ
26914
26915 # Variables whose values should be saved in libtool wrapper scripts and
26916 # restored at relink time.
26917 variables_saved_for_relink="$variables_saved_for_relink"
26918
26919 # Whether libtool must link a program against all its dependency libraries.
26920 link_all_deplibs=$link_all_deplibs_GCJ
26921
26922 # Compile-time system search path for libraries
26923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26924
26925 # Run-time system search path for libraries
26926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26927
26928 # Fix the shell variable \$srcfile for the compiler.
26929 fix_srcfile_path=$lt_fix_srcfile_path
26930
26931 # Set to yes if exported symbols are required.
26932 always_export_symbols=$always_export_symbols_GCJ
26933
26934 # The commands to list exported symbols.
26935 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26936
26937 # The commands to extract the exported symbol list from a shared archive.
26938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26939
26940 # Symbols that should not be listed in the preloaded symbols.
26941 exclude_expsyms=$lt_exclude_expsyms_GCJ
26942
26943 # Symbols that must always be exported.
26944 include_expsyms=$lt_include_expsyms_GCJ
26945
26946 # ### END LIBTOOL TAG CONFIG: $tagname
26947
26948 __EOF__
26949
26950
26951 else
26952   # If there is no Makefile yet, we rely on a make rule to execute
26953   # `config.status --recheck' to rerun these tests and create the
26954   # libtool script then.
26955   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26956   if test -f "$ltmain_in"; then
26957     test -f Makefile && make "$ltmain"
26958   fi
26959 fi
26960
26961
26962 ac_ext=c
26963 ac_cpp='$CPP $CPPFLAGS'
26964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26967
26968 CC="$lt_save_CC"
26969
26970         else
26971           tagname=""
26972         fi
26973         ;;
26974
26975       RC)
26976
26977
26978 # Source file extension for RC test sources.
26979 ac_ext=rc
26980
26981 # Object file extension for compiled RC test sources.
26982 objext=o
26983 objext_RC=$objext
26984
26985 # Code to be used in simple compile tests
26986 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
26987
26988 # Code to be used in simple link tests
26989 lt_simple_link_test_code="$lt_simple_compile_test_code"
26990
26991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26992
26993 # If no C compiler was specified, use CC.
26994 LTCC=${LTCC-"$CC"}
26995
26996 # If no C compiler flags were specified, use CFLAGS.
26997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26998
26999 # Allow CC to be a program name with arguments.
27000 compiler=$CC
27001
27002
27003 # save warnings/boilerplate of simple test code
27004 ac_outfile=conftest.$ac_objext
27005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27007 _lt_compiler_boilerplate=`cat conftest.err`
27008 $rm conftest*
27009
27010 ac_outfile=conftest.$ac_objext
27011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27013 _lt_linker_boilerplate=`cat conftest.err`
27014 $rm conftest*
27015
27016
27017 # Allow CC to be a program name with arguments.
27018 lt_save_CC="$CC"
27019 CC=${RC-"windres"}
27020 compiler=$CC
27021 compiler_RC=$CC
27022 for cc_temp in $compiler""; do
27023   case $cc_temp in
27024     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27025     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27026     \-*) ;;
27027     *) break;;
27028   esac
27029 done
27030 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27031
27032 lt_cv_prog_compiler_c_o_RC=yes
27033
27034 # The else clause should only fire when bootstrapping the
27035 # libtool distribution, otherwise you forgot to ship ltmain.sh
27036 # with your package, and you will get complaints that there are
27037 # no rules to generate ltmain.sh.
27038 if test -f "$ltmain"; then
27039   # See if we are running on zsh, and set the options which allow our commands through
27040   # without removal of \ escapes.
27041   if test -n "${ZSH_VERSION+set}" ; then
27042     setopt NO_GLOB_SUBST
27043   fi
27044   # Now quote all the things that may contain metacharacters while being
27045   # careful not to overquote the AC_SUBSTed values.  We take copies of the
27046   # variables and quote the copies for generation of the libtool script.
27047   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27048     SED SHELL STRIP \
27049     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27050     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27051     deplibs_check_method reload_flag reload_cmds need_locks \
27052     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27053     lt_cv_sys_global_symbol_to_c_name_address \
27054     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27055     old_postinstall_cmds old_postuninstall_cmds \
27056     compiler_RC \
27057     CC_RC \
27058     LD_RC \
27059     lt_prog_compiler_wl_RC \
27060     lt_prog_compiler_pic_RC \
27061     lt_prog_compiler_static_RC \
27062     lt_prog_compiler_no_builtin_flag_RC \
27063     export_dynamic_flag_spec_RC \
27064     thread_safe_flag_spec_RC \
27065     whole_archive_flag_spec_RC \
27066     enable_shared_with_static_runtimes_RC \
27067     old_archive_cmds_RC \
27068     old_archive_from_new_cmds_RC \
27069     predep_objects_RC \
27070     postdep_objects_RC \
27071     predeps_RC \
27072     postdeps_RC \
27073     compiler_lib_search_path_RC \
27074     archive_cmds_RC \
27075     archive_expsym_cmds_RC \
27076     postinstall_cmds_RC \
27077     postuninstall_cmds_RC \
27078     old_archive_from_expsyms_cmds_RC \
27079     allow_undefined_flag_RC \
27080     no_undefined_flag_RC \
27081     export_symbols_cmds_RC \
27082     hardcode_libdir_flag_spec_RC \
27083     hardcode_libdir_flag_spec_ld_RC \
27084     hardcode_libdir_separator_RC \
27085     hardcode_automatic_RC \
27086     module_cmds_RC \
27087     module_expsym_cmds_RC \
27088     lt_cv_prog_compiler_c_o_RC \
27089     fix_srcfile_path_RC \
27090     exclude_expsyms_RC \
27091     include_expsyms_RC; do
27092
27093     case $var in
27094     old_archive_cmds_RC | \
27095     old_archive_from_new_cmds_RC | \
27096     archive_cmds_RC | \
27097     archive_expsym_cmds_RC | \
27098     module_cmds_RC | \
27099     module_expsym_cmds_RC | \
27100     old_archive_from_expsyms_cmds_RC | \
27101     export_symbols_cmds_RC | \
27102     extract_expsyms_cmds | reload_cmds | finish_cmds | \
27103     postinstall_cmds | postuninstall_cmds | \
27104     old_postinstall_cmds | old_postuninstall_cmds | \
27105     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27106       # Double-quote double-evaled strings.
27107       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27108       ;;
27109     *)
27110       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27111       ;;
27112     esac
27113   done
27114
27115   case $lt_echo in
27116   *'\$0 --fallback-echo"')
27117     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27118     ;;
27119   esac
27120
27121 cfgfile="$ofile"
27122
27123   cat <<__EOF__ >> "$cfgfile"
27124 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27125
27126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27127
27128 # Shell to use when invoking shell scripts.
27129 SHELL=$lt_SHELL
27130
27131 # Whether or not to build shared libraries.
27132 build_libtool_libs=$enable_shared
27133
27134 # Whether or not to build static libraries.
27135 build_old_libs=$enable_static
27136
27137 # Whether or not to add -lc for building shared libraries.
27138 build_libtool_need_lc=$archive_cmds_need_lc_RC
27139
27140 # Whether or not to disallow shared libs when runtime libs are static
27141 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27142
27143 # Whether or not to optimize for fast installation.
27144 fast_install=$enable_fast_install
27145
27146 # The host system.
27147 host_alias=$host_alias
27148 host=$host
27149 host_os=$host_os
27150
27151 # The build system.
27152 build_alias=$build_alias
27153 build=$build
27154 build_os=$build_os
27155
27156 # An echo program that does not interpret backslashes.
27157 echo=$lt_echo
27158
27159 # The archiver.
27160 AR=$lt_AR
27161 AR_FLAGS=$lt_AR_FLAGS
27162
27163 # A C compiler.
27164 LTCC=$lt_LTCC
27165
27166 # LTCC compiler flags.
27167 LTCFLAGS=$lt_LTCFLAGS
27168
27169 # A language-specific compiler.
27170 CC=$lt_compiler_RC
27171
27172 # Is the compiler the GNU C compiler?
27173 with_gcc=$GCC_RC
27174
27175 # An ERE matcher.
27176 EGREP=$lt_EGREP
27177
27178 # The linker used to build libraries.
27179 LD=$lt_LD_RC
27180
27181 # Whether we need hard or soft links.
27182 LN_S=$lt_LN_S
27183
27184 # A BSD-compatible nm program.
27185 NM=$lt_NM
27186
27187 # A symbol stripping program
27188 STRIP=$lt_STRIP
27189
27190 # Used to examine libraries when file_magic_cmd begins "file"
27191 MAGIC_CMD=$MAGIC_CMD
27192
27193 # Used on cygwin: DLL creation program.
27194 DLLTOOL="$DLLTOOL"
27195
27196 # Used on cygwin: object dumper.
27197 OBJDUMP="$OBJDUMP"
27198
27199 # Used on cygwin: assembler.
27200 AS="$AS"
27201
27202 # The name of the directory that contains temporary libtool files.
27203 objdir=$objdir
27204
27205 # How to create reloadable object files.
27206 reload_flag=$lt_reload_flag
27207 reload_cmds=$lt_reload_cmds
27208
27209 # How to pass a linker flag through the compiler.
27210 wl=$lt_lt_prog_compiler_wl_RC
27211
27212 # Object file suffix (normally "o").
27213 objext="$ac_objext"
27214
27215 # Old archive suffix (normally "a").
27216 libext="$libext"
27217
27218 # Shared library suffix (normally ".so").
27219 shrext_cmds='$shrext_cmds'
27220
27221 # Executable file suffix (normally "").
27222 exeext="$exeext"
27223
27224 # Additional compiler flags for building library objects.
27225 pic_flag=$lt_lt_prog_compiler_pic_RC
27226 pic_mode=$pic_mode
27227
27228 # What is the maximum length of a command?
27229 max_cmd_len=$lt_cv_sys_max_cmd_len
27230
27231 # Does compiler simultaneously support -c and -o options?
27232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27233
27234 # Must we lock files when doing compilation?
27235 need_locks=$lt_need_locks
27236
27237 # Do we need the lib prefix for modules?
27238 need_lib_prefix=$need_lib_prefix
27239
27240 # Do we need a version for libraries?
27241 need_version=$need_version
27242
27243 # Whether dlopen is supported.
27244 dlopen_support=$enable_dlopen
27245
27246 # Whether dlopen of programs is supported.
27247 dlopen_self=$enable_dlopen_self
27248
27249 # Whether dlopen of statically linked programs is supported.
27250 dlopen_self_static=$enable_dlopen_self_static
27251
27252 # Compiler flag to prevent dynamic linking.
27253 link_static_flag=$lt_lt_prog_compiler_static_RC
27254
27255 # Compiler flag to turn off builtin functions.
27256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27257
27258 # Compiler flag to allow reflexive dlopens.
27259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27260
27261 # Compiler flag to generate shared objects directly from archives.
27262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27263
27264 # Compiler flag to generate thread-safe objects.
27265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27266
27267 # Library versioning type.
27268 version_type=$version_type
27269
27270 # Format of library name prefix.
27271 libname_spec=$lt_libname_spec
27272
27273 # List of archive names.  First name is the real one, the rest are links.
27274 # The last name is the one that the linker finds with -lNAME.
27275 library_names_spec=$lt_library_names_spec
27276
27277 # The coded name of the library, if different from the real name.
27278 soname_spec=$lt_soname_spec
27279
27280 # Commands used to build and install an old-style archive.
27281 RANLIB=$lt_RANLIB
27282 old_archive_cmds=$lt_old_archive_cmds_RC
27283 old_postinstall_cmds=$lt_old_postinstall_cmds
27284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27285
27286 # Create an old-style archive from a shared archive.
27287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27288
27289 # Create a temporary old-style archive to link instead of a shared archive.
27290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27291
27292 # Commands used to build and install a shared archive.
27293 archive_cmds=$lt_archive_cmds_RC
27294 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27295 postinstall_cmds=$lt_postinstall_cmds
27296 postuninstall_cmds=$lt_postuninstall_cmds
27297
27298 # Commands used to build a loadable module (assumed same as above if empty)
27299 module_cmds=$lt_module_cmds_RC
27300 module_expsym_cmds=$lt_module_expsym_cmds_RC
27301
27302 # Commands to strip libraries.
27303 old_striplib=$lt_old_striplib
27304 striplib=$lt_striplib
27305
27306 # Dependencies to place before the objects being linked to create a
27307 # shared library.
27308 predep_objects=$lt_predep_objects_RC
27309
27310 # Dependencies to place after the objects being linked to create a
27311 # shared library.
27312 postdep_objects=$lt_postdep_objects_RC
27313
27314 # Dependencies to place before the objects being linked to create a
27315 # shared library.
27316 predeps=$lt_predeps_RC
27317
27318 # Dependencies to place after the objects being linked to create a
27319 # shared library.
27320 postdeps=$lt_postdeps_RC
27321
27322 # The library search path used internally by the compiler when linking
27323 # a shared library.
27324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27325
27326 # Method to check whether dependent libraries are shared objects.
27327 deplibs_check_method=$lt_deplibs_check_method
27328
27329 # Command to use when deplibs_check_method == file_magic.
27330 file_magic_cmd=$lt_file_magic_cmd
27331
27332 # Flag that allows shared libraries with undefined symbols to be built.
27333 allow_undefined_flag=$lt_allow_undefined_flag_RC
27334
27335 # Flag that forces no undefined symbols.
27336 no_undefined_flag=$lt_no_undefined_flag_RC
27337
27338 # Commands used to finish a libtool library installation in a directory.
27339 finish_cmds=$lt_finish_cmds
27340
27341 # Same as above, but a single script fragment to be evaled but not shown.
27342 finish_eval=$lt_finish_eval
27343
27344 # Take the output of nm and produce a listing of raw symbols and C names.
27345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27346
27347 # Transform the output of nm in a proper C declaration
27348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27349
27350 # Transform the output of nm in a C name address pair
27351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27352
27353 # This is the shared library runtime path variable.
27354 runpath_var=$runpath_var
27355
27356 # This is the shared library path variable.
27357 shlibpath_var=$shlibpath_var
27358
27359 # Is shlibpath searched before the hard-coded library search path?
27360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27361
27362 # How to hardcode a shared library path into an executable.
27363 hardcode_action=$hardcode_action_RC
27364
27365 # Whether we should hardcode library paths into libraries.
27366 hardcode_into_libs=$hardcode_into_libs
27367
27368 # Flag to hardcode \$libdir into a binary during linking.
27369 # This must work even if \$libdir does not exist.
27370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27371
27372 # If ld is used when linking, flag to hardcode \$libdir into
27373 # a binary during linking. This must work even if \$libdir does
27374 # not exist.
27375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27376
27377 # Whether we need a single -rpath flag with a separated argument.
27378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27379
27380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27381 # resulting binary.
27382 hardcode_direct=$hardcode_direct_RC
27383
27384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27385 # resulting binary.
27386 hardcode_minus_L=$hardcode_minus_L_RC
27387
27388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27389 # the resulting binary.
27390 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27391
27392 # Set to yes if building a shared library automatically hardcodes DIR into the library
27393 # and all subsequent libraries and executables linked against it.
27394 hardcode_automatic=$hardcode_automatic_RC
27395
27396 # Variables whose values should be saved in libtool wrapper scripts and
27397 # restored at relink time.
27398 variables_saved_for_relink="$variables_saved_for_relink"
27399
27400 # Whether libtool must link a program against all its dependency libraries.
27401 link_all_deplibs=$link_all_deplibs_RC
27402
27403 # Compile-time system search path for libraries
27404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27405
27406 # Run-time system search path for libraries
27407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27408
27409 # Fix the shell variable \$srcfile for the compiler.
27410 fix_srcfile_path=$lt_fix_srcfile_path
27411
27412 # Set to yes if exported symbols are required.
27413 always_export_symbols=$always_export_symbols_RC
27414
27415 # The commands to list exported symbols.
27416 export_symbols_cmds=$lt_export_symbols_cmds_RC
27417
27418 # The commands to extract the exported symbol list from a shared archive.
27419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27420
27421 # Symbols that should not be listed in the preloaded symbols.
27422 exclude_expsyms=$lt_exclude_expsyms_RC
27423
27424 # Symbols that must always be exported.
27425 include_expsyms=$lt_include_expsyms_RC
27426
27427 # ### END LIBTOOL TAG CONFIG: $tagname
27428
27429 __EOF__
27430
27431
27432 else
27433   # If there is no Makefile yet, we rely on a make rule to execute
27434   # `config.status --recheck' to rerun these tests and create the
27435   # libtool script then.
27436   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27437   if test -f "$ltmain_in"; then
27438     test -f Makefile && make "$ltmain"
27439   fi
27440 fi
27441
27442
27443 ac_ext=c
27444 ac_cpp='$CPP $CPPFLAGS'
27445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27448
27449 CC="$lt_save_CC"
27450
27451         ;;
27452
27453       *)
27454         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27455 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27456    { (exit 1); exit 1; }; }
27457         ;;
27458       esac
27459
27460       # Append the new tag name to the list of available tags.
27461       if test -n "$tagname" ; then
27462       available_tags="$available_tags $tagname"
27463     fi
27464     fi
27465   done
27466   IFS="$lt_save_ifs"
27467
27468   # Now substitute the updated list of available tags.
27469   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27470     mv "${ofile}T" "$ofile"
27471     chmod +x "$ofile"
27472   else
27473     rm -f "${ofile}T"
27474     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27475 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27476    { (exit 1); exit 1; }; }
27477   fi
27478 fi
27479
27480
27481
27482 # This can be used to rebuild libtool when needed
27483 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27484
27485 # Always use our own libtool.
27486 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27487
27488 # Prevent multiple expansion
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27510 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27511 if test "${ac_cv_c_const+set}" = set; then
27512   echo $ECHO_N "(cached) $ECHO_C" >&6
27513 else
27514   cat >conftest.$ac_ext <<_ACEOF
27515 /* confdefs.h.  */
27516 _ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h.  */
27520
27521 int
27522 main ()
27523 {
27524 /* FIXME: Include the comments suggested by Paul. */
27525 #ifndef __cplusplus
27526   /* Ultrix mips cc rejects this.  */
27527   typedef int charset[2];
27528   const charset cs;
27529   /* SunOS 4.1.1 cc rejects this.  */
27530   char const *const *pcpcc;
27531   char **ppc;
27532   /* NEC SVR4.0.2 mips cc rejects this.  */
27533   struct point {int x, y;};
27534   static struct point const zero = {0,0};
27535   /* AIX XL C 1.02.0.0 rejects this.
27536      It does not let you subtract one const X* pointer from another in
27537      an arm of an if-expression whose if-part is not a constant
27538      expression */
27539   const char *g = "string";
27540   pcpcc = &g + (g ? g-g : 0);
27541   /* HPUX 7.0 cc rejects these. */
27542   ++pcpcc;
27543   ppc = (char**) pcpcc;
27544   pcpcc = (char const *const *) ppc;
27545   { /* SCO 3.2v4 cc rejects this.  */
27546     char *t;
27547     char const *s = 0 ? (char *) 0 : (char const *) 0;
27548
27549     *t++ = 0;
27550     if (s) return 0;
27551   }
27552   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27553     int x[] = {25, 17};
27554     const int *foo = &x[0];
27555     ++foo;
27556   }
27557   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27558     typedef const int *iptr;
27559     iptr p = 0;
27560     ++p;
27561   }
27562   { /* AIX XL C 1.02.0.0 rejects this saying
27563        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27564     struct s { int j; const int *ap[3]; };
27565     struct s *b; b->j = 5;
27566   }
27567   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27568     const int foo = 10;
27569     if (!foo) return 0;
27570   }
27571   return !cs[0] && !zero.x;
27572 #endif
27573
27574   ;
27575   return 0;
27576 }
27577 _ACEOF
27578 rm -f conftest.$ac_objext
27579 if { (ac_try="$ac_compile"
27580 case "(($ac_try" in
27581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582   *) ac_try_echo=$ac_try;;
27583 esac
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585   (eval "$ac_compile") 2>conftest.er1
27586   ac_status=$?
27587   grep -v '^ *+' conftest.er1 >conftest.err
27588   rm -f conftest.er1
27589   cat conftest.err >&5
27590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591   (exit $ac_status); } && {
27592          test -z "$ac_c_werror_flag" ||
27593          test ! -s conftest.err
27594        } && test -s conftest.$ac_objext; then
27595   ac_cv_c_const=yes
27596 else
27597   echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27599
27600         ac_cv_c_const=no
27601 fi
27602
27603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604 fi
27605 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27606 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27607 if test $ac_cv_c_const = no; then
27608
27609 cat >>confdefs.h <<\_ACEOF
27610 #define const
27611 _ACEOF
27612
27613 fi
27614
27615
27616
27617
27618
27619
27620 ac_header_dirent=no
27621 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27622   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27623 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27624 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27626   echo $ECHO_N "(cached) $ECHO_C" >&6
27627 else
27628   cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h.  */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h.  */
27634 #include <sys/types.h>
27635 #include <$ac_hdr>
27636
27637 int
27638 main ()
27639 {
27640 if ((DIR *) 0)
27641 return 0;
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest.$ac_objext
27647 if { (ac_try="$ac_compile"
27648 case "(($ac_try" in
27649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650   *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653   (eval "$ac_compile") 2>conftest.er1
27654   ac_status=$?
27655   grep -v '^ *+' conftest.er1 >conftest.err
27656   rm -f conftest.er1
27657   cat conftest.err >&5
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); } && {
27660          test -z "$ac_c_werror_flag" ||
27661          test ! -s conftest.err
27662        } && test -s conftest.$ac_objext; then
27663   eval "$as_ac_Header=yes"
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668         eval "$as_ac_Header=no"
27669 fi
27670
27671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27672 fi
27673 ac_res=`eval echo '${'$as_ac_Header'}'`
27674                { echo "$as_me:$LINENO: result: $ac_res" >&5
27675 echo "${ECHO_T}$ac_res" >&6; }
27676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27677   cat >>confdefs.h <<_ACEOF
27678 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27679 _ACEOF
27680
27681 ac_header_dirent=$ac_hdr; break
27682 fi
27683
27684 done
27685 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27686 if test $ac_header_dirent = dirent.h; then
27687   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27688 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27689 if test "${ac_cv_search_opendir+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   ac_func_search_save_LIBS=$LIBS
27693 cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699
27700 /* Override any GCC internal prototype to avoid an error.
27701    Use char because int might match the return type of a GCC
27702    builtin and then its argument prototype would still apply.  */
27703 #ifdef __cplusplus
27704 extern "C"
27705 #endif
27706 char opendir ();
27707 int
27708 main ()
27709 {
27710 return opendir ();
27711   ;
27712   return 0;
27713 }
27714 _ACEOF
27715 for ac_lib in '' dir; do
27716   if test -z "$ac_lib"; then
27717     ac_res="none required"
27718   else
27719     ac_res=-l$ac_lib
27720     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27721   fi
27722   rm -f conftest.$ac_objext conftest$ac_exeext
27723 if { (ac_try="$ac_link"
27724 case "(($ac_try" in
27725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726   *) ac_try_echo=$ac_try;;
27727 esac
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729   (eval "$ac_link") 2>conftest.er1
27730   ac_status=$?
27731   grep -v '^ *+' conftest.er1 >conftest.err
27732   rm -f conftest.er1
27733   cat conftest.err >&5
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); } && {
27736          test -z "$ac_c_werror_flag" ||
27737          test ! -s conftest.err
27738        } && test -s conftest$ac_exeext &&
27739        $as_test_x conftest$ac_exeext; then
27740   ac_cv_search_opendir=$ac_res
27741 else
27742   echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27744
27745
27746 fi
27747
27748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27749       conftest$ac_exeext
27750   if test "${ac_cv_search_opendir+set}" = set; then
27751   break
27752 fi
27753 done
27754 if test "${ac_cv_search_opendir+set}" = set; then
27755   :
27756 else
27757   ac_cv_search_opendir=no
27758 fi
27759 rm conftest.$ac_ext
27760 LIBS=$ac_func_search_save_LIBS
27761 fi
27762 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27763 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27764 ac_res=$ac_cv_search_opendir
27765 if test "$ac_res" != no; then
27766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27767
27768 fi
27769
27770 else
27771   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27772 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27773 if test "${ac_cv_search_opendir+set}" = set; then
27774   echo $ECHO_N "(cached) $ECHO_C" >&6
27775 else
27776   ac_func_search_save_LIBS=$LIBS
27777 cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783
27784 /* Override any GCC internal prototype to avoid an error.
27785    Use char because int might match the return type of a GCC
27786    builtin and then its argument prototype would still apply.  */
27787 #ifdef __cplusplus
27788 extern "C"
27789 #endif
27790 char opendir ();
27791 int
27792 main ()
27793 {
27794 return opendir ();
27795   ;
27796   return 0;
27797 }
27798 _ACEOF
27799 for ac_lib in '' x; do
27800   if test -z "$ac_lib"; then
27801     ac_res="none required"
27802   else
27803     ac_res=-l$ac_lib
27804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27805   fi
27806   rm -f conftest.$ac_objext conftest$ac_exeext
27807 if { (ac_try="$ac_link"
27808 case "(($ac_try" in
27809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810   *) ac_try_echo=$ac_try;;
27811 esac
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813   (eval "$ac_link") 2>conftest.er1
27814   ac_status=$?
27815   grep -v '^ *+' conftest.er1 >conftest.err
27816   rm -f conftest.er1
27817   cat conftest.err >&5
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); } && {
27820          test -z "$ac_c_werror_flag" ||
27821          test ! -s conftest.err
27822        } && test -s conftest$ac_exeext &&
27823        $as_test_x conftest$ac_exeext; then
27824   ac_cv_search_opendir=$ac_res
27825 else
27826   echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27828
27829
27830 fi
27831
27832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27833       conftest$ac_exeext
27834   if test "${ac_cv_search_opendir+set}" = set; then
27835   break
27836 fi
27837 done
27838 if test "${ac_cv_search_opendir+set}" = set; then
27839   :
27840 else
27841   ac_cv_search_opendir=no
27842 fi
27843 rm conftest.$ac_ext
27844 LIBS=$ac_func_search_save_LIBS
27845 fi
27846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27848 ac_res=$ac_cv_search_opendir
27849 if test "$ac_res" != no; then
27850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27851
27852 fi
27853
27854 fi
27855
27856 # Check whether --enable-ltdl-install was given.
27857 if test "${enable_ltdl_install+set}" = set; then
27858   enableval=$enable_ltdl_install;
27859 fi
27860
27861
27862
27863
27864 if test x"${enable_ltdl_install-no}" != xno; then
27865   INSTALL_LTDL_TRUE=
27866   INSTALL_LTDL_FALSE='#'
27867 else
27868   INSTALL_LTDL_TRUE='#'
27869   INSTALL_LTDL_FALSE=
27870 fi
27871
27872
27873
27874 if test x"${enable_ltdl_convenience-no}" != xno; then
27875   CONVENIENCE_LTDL_TRUE=
27876   CONVENIENCE_LTDL_FALSE='#'
27877 else
27878   CONVENIENCE_LTDL_TRUE='#'
27879   CONVENIENCE_LTDL_FALSE=
27880 fi
27881
27882
27883
27884 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
27885 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
27886 if test "${libltdl_cv_shlibext+set}" = set; then
27887   echo $ECHO_N "(cached) $ECHO_C" >&6
27888 else
27889
27890 module=yes
27891 eval libltdl_cv_shlibext=$shrext_cmds
27892
27893 fi
27894 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
27895 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
27896 if test -n "$libltdl_cv_shlibext"; then
27897
27898 cat >>confdefs.h <<_ACEOF
27899 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
27900 _ACEOF
27901
27902 fi
27903
27904
27905 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
27906 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
27907 if test "${libltdl_cv_shlibpath_var+set}" = set; then
27908   echo $ECHO_N "(cached) $ECHO_C" >&6
27909 else
27910   libltdl_cv_shlibpath_var="$shlibpath_var"
27911 fi
27912 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
27913 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
27914 if test -n "$libltdl_cv_shlibpath_var"; then
27915
27916 cat >>confdefs.h <<_ACEOF
27917 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
27918 _ACEOF
27919
27920 fi
27921
27922
27923 { echo "$as_me:$LINENO: checking for the default library search path" >&5
27924 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
27925 if test "${libltdl_cv_sys_search_path+set}" = set; then
27926   echo $ECHO_N "(cached) $ECHO_C" >&6
27927 else
27928   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
27929 fi
27930 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
27931 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
27932 if test -n "$libltdl_cv_sys_search_path"; then
27933   sys_search_path=
27934   for dir in $libltdl_cv_sys_search_path; do
27935     if test -z "$sys_search_path"; then
27936       sys_search_path="$dir"
27937     else
27938       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
27939     fi
27940   done
27941
27942 cat >>confdefs.h <<_ACEOF
27943 #define LTDL_SYSSEARCHPATH "$sys_search_path"
27944 _ACEOF
27945
27946 fi
27947
27948 { echo "$as_me:$LINENO: checking for objdir" >&5
27949 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
27950 if test "${libltdl_cv_objdir+set}" = set; then
27951   echo $ECHO_N "(cached) $ECHO_C" >&6
27952 else
27953   libltdl_cv_objdir="$objdir"
27954   if test -n "$objdir"; then
27955     :
27956   else
27957     rm -f .libs 2>/dev/null
27958     mkdir .libs 2>/dev/null
27959     if test -d .libs; then
27960       libltdl_cv_objdir=.libs
27961     else
27962       # MS-DOS does not allow filenames that begin with a dot.
27963       libltdl_cv_objdir=_libs
27964     fi
27965   rmdir .libs 2>/dev/null
27966   fi
27967
27968 fi
27969 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
27970 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
27971
27972 cat >>confdefs.h <<_ACEOF
27973 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
27974 _ACEOF
27975
27976
27977
27978 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
27979 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
27980 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
27981   echo $ECHO_N "(cached) $ECHO_C" >&6
27982 else
27983   if test -n "$lt_cv_sys_global_symbol_pipe"; then
27984     libltdl_cv_preloaded_symbols=yes
27985   else
27986     libltdl_cv_preloaded_symbols=no
27987   fi
27988
27989 fi
27990 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
27991 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
27992 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
27993
27994 cat >>confdefs.h <<\_ACEOF
27995 #define HAVE_PRELOADED_SYMBOLS 1
27996 _ACEOF
27997
27998 fi
27999
28000 LIBADD_DL=
28001
28002 ac_ext=c
28003 ac_cpp='$CPP $CPPFLAGS'
28004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28007
28008
28009 { echo "$as_me:$LINENO: checking for shl_load" >&5
28010 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
28011 if test "${ac_cv_func_shl_load+set}" = set; then
28012   echo $ECHO_N "(cached) $ECHO_C" >&6
28013 else
28014   cat >conftest.$ac_ext <<_ACEOF
28015 /* confdefs.h.  */
28016 _ACEOF
28017 cat confdefs.h >>conftest.$ac_ext
28018 cat >>conftest.$ac_ext <<_ACEOF
28019 /* end confdefs.h.  */
28020 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28022 #define shl_load innocuous_shl_load
28023
28024 /* System header to define __stub macros and hopefully few prototypes,
28025     which can conflict with char shl_load (); below.
28026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28027     <limits.h> exists even on freestanding compilers.  */
28028
28029 #ifdef __STDC__
28030 # include <limits.h>
28031 #else
28032 # include <assert.h>
28033 #endif
28034
28035 #undef shl_load
28036
28037 /* Override any GCC internal prototype to avoid an error.
28038    Use char because int might match the return type of a GCC
28039    builtin and then its argument prototype would still apply.  */
28040 #ifdef __cplusplus
28041 extern "C"
28042 #endif
28043 char shl_load ();
28044 /* The GNU C library defines this for functions which it implements
28045     to always fail with ENOSYS.  Some functions are actually named
28046     something starting with __ and the normal name is an alias.  */
28047 #if defined __stub_shl_load || defined __stub___shl_load
28048 choke me
28049 #endif
28050
28051 int
28052 main ()
28053 {
28054 return shl_load ();
28055   ;
28056   return 0;
28057 }
28058 _ACEOF
28059 rm -f conftest.$ac_objext conftest$ac_exeext
28060 if { (ac_try="$ac_link"
28061 case "(($ac_try" in
28062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063   *) ac_try_echo=$ac_try;;
28064 esac
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066   (eval "$ac_link") 2>conftest.er1
28067   ac_status=$?
28068   grep -v '^ *+' conftest.er1 >conftest.err
28069   rm -f conftest.er1
28070   cat conftest.err >&5
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); } && {
28073          test -z "$ac_c_werror_flag" ||
28074          test ! -s conftest.err
28075        } && test -s conftest$ac_exeext &&
28076        $as_test_x conftest$ac_exeext; then
28077   ac_cv_func_shl_load=yes
28078 else
28079   echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28081
28082         ac_cv_func_shl_load=no
28083 fi
28084
28085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28086       conftest$ac_exeext conftest.$ac_ext
28087 fi
28088 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
28090 if test $ac_cv_func_shl_load = yes; then
28091
28092 cat >>confdefs.h <<\_ACEOF
28093 #define HAVE_SHL_LOAD 1
28094 _ACEOF
28095
28096 else
28097   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28098 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
28099 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28100   echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28102   ac_check_lib_save_LIBS=$LIBS
28103 LIBS="-ldld  $LIBS"
28104 cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h.  */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h.  */
28110
28111 /* Override any GCC internal prototype to avoid an error.
28112    Use char because int might match the return type of a GCC
28113    builtin and then its argument prototype would still apply.  */
28114 #ifdef __cplusplus
28115 extern "C"
28116 #endif
28117 char shl_load ();
28118 int
28119 main ()
28120 {
28121 return shl_load ();
28122   ;
28123   return 0;
28124 }
28125 _ACEOF
28126 rm -f conftest.$ac_objext conftest$ac_exeext
28127 if { (ac_try="$ac_link"
28128 case "(($ac_try" in
28129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130   *) ac_try_echo=$ac_try;;
28131 esac
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133   (eval "$ac_link") 2>conftest.er1
28134   ac_status=$?
28135   grep -v '^ *+' conftest.er1 >conftest.err
28136   rm -f conftest.er1
28137   cat conftest.err >&5
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } && {
28140          test -z "$ac_c_werror_flag" ||
28141          test ! -s conftest.err
28142        } && test -s conftest$ac_exeext &&
28143        $as_test_x conftest$ac_exeext; then
28144   ac_cv_lib_dld_shl_load=yes
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149         ac_cv_lib_dld_shl_load=no
28150 fi
28151
28152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28153       conftest$ac_exeext conftest.$ac_ext
28154 LIBS=$ac_check_lib_save_LIBS
28155 fi
28156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
28157 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
28158 if test $ac_cv_lib_dld_shl_load = yes; then
28159
28160 cat >>confdefs.h <<\_ACEOF
28161 #define HAVE_SHL_LOAD 1
28162 _ACEOF
28163
28164         LIBADD_DL="$LIBADD_DL -ldld"
28165 else
28166   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
28168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28169   echo $ECHO_N "(cached) $ECHO_C" >&6
28170 else
28171   ac_check_lib_save_LIBS=$LIBS
28172 LIBS="-ldl  $LIBS"
28173 cat >conftest.$ac_ext <<_ACEOF
28174 /* confdefs.h.  */
28175 _ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h.  */
28179
28180 /* Override any GCC internal prototype to avoid an error.
28181    Use char because int might match the return type of a GCC
28182    builtin and then its argument prototype would still apply.  */
28183 #ifdef __cplusplus
28184 extern "C"
28185 #endif
28186 char dlopen ();
28187 int
28188 main ()
28189 {
28190 return dlopen ();
28191   ;
28192   return 0;
28193 }
28194 _ACEOF
28195 rm -f conftest.$ac_objext conftest$ac_exeext
28196 if { (ac_try="$ac_link"
28197 case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202   (eval "$ac_link") 2>conftest.er1
28203   ac_status=$?
28204   grep -v '^ *+' conftest.er1 >conftest.err
28205   rm -f conftest.er1
28206   cat conftest.err >&5
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); } && {
28209          test -z "$ac_c_werror_flag" ||
28210          test ! -s conftest.err
28211        } && test -s conftest$ac_exeext &&
28212        $as_test_x conftest$ac_exeext; then
28213   ac_cv_lib_dl_dlopen=yes
28214 else
28215   echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28217
28218         ac_cv_lib_dl_dlopen=no
28219 fi
28220
28221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28222       conftest$ac_exeext conftest.$ac_ext
28223 LIBS=$ac_check_lib_save_LIBS
28224 fi
28225 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28226 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
28227 if test $ac_cv_lib_dl_dlopen = yes; then
28228
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_LIBDL 1
28231 _ACEOF
28232
28233                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
28234 else
28235   cat >conftest.$ac_ext <<_ACEOF
28236 /* confdefs.h.  */
28237 _ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h.  */
28241 #if HAVE_DLFCN_H
28242 #  include <dlfcn.h>
28243 #endif
28244
28245 int
28246 main ()
28247 {
28248 dlopen(0, 0);
28249   ;
28250   return 0;
28251 }
28252 _ACEOF
28253 rm -f conftest.$ac_objext conftest$ac_exeext
28254 if { (ac_try="$ac_link"
28255 case "(($ac_try" in
28256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257   *) ac_try_echo=$ac_try;;
28258 esac
28259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260   (eval "$ac_link") 2>conftest.er1
28261   ac_status=$?
28262   grep -v '^ *+' conftest.er1 >conftest.err
28263   rm -f conftest.er1
28264   cat conftest.err >&5
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); } && {
28267          test -z "$ac_c_werror_flag" ||
28268          test ! -s conftest.err
28269        } && test -s conftest$ac_exeext &&
28270        $as_test_x conftest$ac_exeext; then
28271
28272 cat >>confdefs.h <<\_ACEOF
28273 #define HAVE_LIBDL 1
28274 _ACEOF
28275  libltdl_cv_func_dlopen="yes"
28276 else
28277   echo "$as_me: failed program was:" >&5
28278 sed 's/^/| /' conftest.$ac_ext >&5
28279
28280         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
28281 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
28282 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
28283   echo $ECHO_N "(cached) $ECHO_C" >&6
28284 else
28285   ac_check_lib_save_LIBS=$LIBS
28286 LIBS="-lsvld  $LIBS"
28287 cat >conftest.$ac_ext <<_ACEOF
28288 /* confdefs.h.  */
28289 _ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h.  */
28293
28294 /* Override any GCC internal prototype to avoid an error.
28295    Use char because int might match the return type of a GCC
28296    builtin and then its argument prototype would still apply.  */
28297 #ifdef __cplusplus
28298 extern "C"
28299 #endif
28300 char dlopen ();
28301 int
28302 main ()
28303 {
28304 return dlopen ();
28305   ;
28306   return 0;
28307 }
28308 _ACEOF
28309 rm -f conftest.$ac_objext conftest$ac_exeext
28310 if { (ac_try="$ac_link"
28311 case "(($ac_try" in
28312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28313   *) ac_try_echo=$ac_try;;
28314 esac
28315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28316   (eval "$ac_link") 2>conftest.er1
28317   ac_status=$?
28318   grep -v '^ *+' conftest.er1 >conftest.err
28319   rm -f conftest.er1
28320   cat conftest.err >&5
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); } && {
28323          test -z "$ac_c_werror_flag" ||
28324          test ! -s conftest.err
28325        } && test -s conftest$ac_exeext &&
28326        $as_test_x conftest$ac_exeext; then
28327   ac_cv_lib_svld_dlopen=yes
28328 else
28329   echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28331
28332         ac_cv_lib_svld_dlopen=no
28333 fi
28334
28335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28336       conftest$ac_exeext conftest.$ac_ext
28337 LIBS=$ac_check_lib_save_LIBS
28338 fi
28339 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
28340 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
28341 if test $ac_cv_lib_svld_dlopen = yes; then
28342
28343 cat >>confdefs.h <<\_ACEOF
28344 #define HAVE_LIBDL 1
28345 _ACEOF
28346
28347                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
28348 else
28349   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
28350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
28351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
28352   echo $ECHO_N "(cached) $ECHO_C" >&6
28353 else
28354   ac_check_lib_save_LIBS=$LIBS
28355 LIBS="-ldld  $LIBS"
28356 cat >conftest.$ac_ext <<_ACEOF
28357 /* confdefs.h.  */
28358 _ACEOF
28359 cat confdefs.h >>conftest.$ac_ext
28360 cat >>conftest.$ac_ext <<_ACEOF
28361 /* end confdefs.h.  */
28362
28363 /* Override any GCC internal prototype to avoid an error.
28364    Use char because int might match the return type of a GCC
28365    builtin and then its argument prototype would still apply.  */
28366 #ifdef __cplusplus
28367 extern "C"
28368 #endif
28369 char dld_link ();
28370 int
28371 main ()
28372 {
28373 return dld_link ();
28374   ;
28375   return 0;
28376 }
28377 _ACEOF
28378 rm -f conftest.$ac_objext conftest$ac_exeext
28379 if { (ac_try="$ac_link"
28380 case "(($ac_try" in
28381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382   *) ac_try_echo=$ac_try;;
28383 esac
28384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385   (eval "$ac_link") 2>conftest.er1
28386   ac_status=$?
28387   grep -v '^ *+' conftest.er1 >conftest.err
28388   rm -f conftest.er1
28389   cat conftest.err >&5
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); } && {
28392          test -z "$ac_c_werror_flag" ||
28393          test ! -s conftest.err
28394        } && test -s conftest$ac_exeext &&
28395        $as_test_x conftest$ac_exeext; then
28396   ac_cv_lib_dld_dld_link=yes
28397 else
28398   echo "$as_me: failed program was:" >&5
28399 sed 's/^/| /' conftest.$ac_ext >&5
28400
28401         ac_cv_lib_dld_dld_link=no
28402 fi
28403
28404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28405       conftest$ac_exeext conftest.$ac_ext
28406 LIBS=$ac_check_lib_save_LIBS
28407 fi
28408 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
28409 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
28410 if test $ac_cv_lib_dld_dld_link = yes; then
28411
28412 cat >>confdefs.h <<\_ACEOF
28413 #define HAVE_DLD 1
28414 _ACEOF
28415
28416                 LIBADD_DL="$LIBADD_DL -ldld"
28417 else
28418   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
28419 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
28420 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
28421   echo $ECHO_N "(cached) $ECHO_C" >&6
28422 else
28423   cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h.  */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h.  */
28429 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
28430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28431 #define _dyld_func_lookup innocuous__dyld_func_lookup
28432
28433 /* System header to define __stub macros and hopefully few prototypes,
28434     which can conflict with char _dyld_func_lookup (); below.
28435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28436     <limits.h> exists even on freestanding compilers.  */
28437
28438 #ifdef __STDC__
28439 # include <limits.h>
28440 #else
28441 # include <assert.h>
28442 #endif
28443
28444 #undef _dyld_func_lookup
28445
28446 /* Override any GCC internal prototype to avoid an error.
28447    Use char because int might match the return type of a GCC
28448    builtin and then its argument prototype would still apply.  */
28449 #ifdef __cplusplus
28450 extern "C"
28451 #endif
28452 char _dyld_func_lookup ();
28453 /* The GNU C library defines this for functions which it implements
28454     to always fail with ENOSYS.  Some functions are actually named
28455     something starting with __ and the normal name is an alias.  */
28456 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
28457 choke me
28458 #endif
28459
28460 int
28461 main ()
28462 {
28463 return _dyld_func_lookup ();
28464   ;
28465   return 0;
28466 }
28467 _ACEOF
28468 rm -f conftest.$ac_objext conftest$ac_exeext
28469 if { (ac_try="$ac_link"
28470 case "(($ac_try" in
28471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472   *) ac_try_echo=$ac_try;;
28473 esac
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475   (eval "$ac_link") 2>conftest.er1
28476   ac_status=$?
28477   grep -v '^ *+' conftest.er1 >conftest.err
28478   rm -f conftest.er1
28479   cat conftest.err >&5
28480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481   (exit $ac_status); } && {
28482          test -z "$ac_c_werror_flag" ||
28483          test ! -s conftest.err
28484        } && test -s conftest$ac_exeext &&
28485        $as_test_x conftest$ac_exeext; then
28486   ac_cv_func__dyld_func_lookup=yes
28487 else
28488   echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491         ac_cv_func__dyld_func_lookup=no
28492 fi
28493
28494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28495       conftest$ac_exeext conftest.$ac_ext
28496 fi
28497 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
28498 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
28499 if test $ac_cv_func__dyld_func_lookup = yes; then
28500
28501 cat >>confdefs.h <<\_ACEOF
28502 #define HAVE_DYLD 1
28503 _ACEOF
28504
28505 fi
28506
28507
28508 fi
28509
28510
28511 fi
28512
28513
28514 fi
28515
28516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28517       conftest$ac_exeext conftest.$ac_ext
28518
28519 fi
28520
28521
28522 fi
28523
28524
28525 fi
28526
28527
28528 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
28529 then
28530   lt_save_LIBS="$LIBS"
28531   LIBS="$LIBS $LIBADD_DL"
28532
28533 for ac_func in dlerror
28534 do
28535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28539   echo $ECHO_N "(cached) $ECHO_C" >&6
28540 else
28541   cat >conftest.$ac_ext <<_ACEOF
28542 /* confdefs.h.  */
28543 _ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h.  */
28547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28549 #define $ac_func innocuous_$ac_func
28550
28551 /* System header to define __stub macros and hopefully few prototypes,
28552     which can conflict with char $ac_func (); below.
28553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28554     <limits.h> exists even on freestanding compilers.  */
28555
28556 #ifdef __STDC__
28557 # include <limits.h>
28558 #else
28559 # include <assert.h>
28560 #endif
28561
28562 #undef $ac_func
28563
28564 /* Override any GCC internal prototype to avoid an error.
28565    Use char because int might match the return type of a GCC
28566    builtin and then its argument prototype would still apply.  */
28567 #ifdef __cplusplus
28568 extern "C"
28569 #endif
28570 char $ac_func ();
28571 /* The GNU C library defines this for functions which it implements
28572     to always fail with ENOSYS.  Some functions are actually named
28573     something starting with __ and the normal name is an alias.  */
28574 #if defined __stub_$ac_func || defined __stub___$ac_func
28575 choke me
28576 #endif
28577
28578 int
28579 main ()
28580 {
28581 return $ac_func ();
28582   ;
28583   return 0;
28584 }
28585 _ACEOF
28586 rm -f conftest.$ac_objext conftest$ac_exeext
28587 if { (ac_try="$ac_link"
28588 case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_link") 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } && {
28600          test -z "$ac_c_werror_flag" ||
28601          test ! -s conftest.err
28602        } && test -s conftest$ac_exeext &&
28603        $as_test_x conftest$ac_exeext; then
28604   eval "$as_ac_var=yes"
28605 else
28606   echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609         eval "$as_ac_var=no"
28610 fi
28611
28612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28613       conftest$ac_exeext conftest.$ac_ext
28614 fi
28615 ac_res=`eval echo '${'$as_ac_var'}'`
28616                { echo "$as_me:$LINENO: result: $ac_res" >&5
28617 echo "${ECHO_T}$ac_res" >&6; }
28618 if test `eval echo '${'$as_ac_var'}'` = yes; then
28619   cat >>confdefs.h <<_ACEOF
28620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28621 _ACEOF
28622
28623 fi
28624 done
28625
28626   LIBS="$lt_save_LIBS"
28627 fi
28628 ac_ext=c
28629 ac_cpp='$CPP $CPPFLAGS'
28630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28633
28634
28635
28636 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
28637 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
28638 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
28639   echo $ECHO_N "(cached) $ECHO_C" >&6
28640 else
28641   ac_cv_sys_symbol_underscore=no
28642   cat > conftest.$ac_ext <<EOF
28643 void nm_test_func(){}
28644 int main(){nm_test_func;return 0;}
28645 EOF
28646   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28647   (eval $ac_compile) 2>&5
28648   ac_status=$?
28649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650   (exit $ac_status); }; then
28651     # Now try to grab the symbols.
28652     ac_nlist=conftest.nm
28653     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
28654   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
28655   ac_status=$?
28656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657   (exit $ac_status); } && test -s "$ac_nlist"; then
28658       # See whether the symbols have a leading underscore.
28659       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
28660         ac_cv_sys_symbol_underscore=yes
28661       else
28662         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
28663           :
28664         else
28665           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
28666         fi
28667       fi
28668     else
28669       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
28670     fi
28671   else
28672     echo "configure: failed program was:" >&5
28673     cat conftest.c >&5
28674   fi
28675   rm -rf conftest*
28676
28677 fi
28678 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
28679 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
28680
28681
28682 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
28683   if test x"$libltdl_cv_func_dlopen" = xyes ||
28684      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
28685         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
28686 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
28687 if test "${libltdl_cv_need_uscore+set}" = set; then
28688   echo $ECHO_N "(cached) $ECHO_C" >&6
28689 else
28690   libltdl_cv_need_uscore=unknown
28691           save_LIBS="$LIBS"
28692           LIBS="$LIBS $LIBADD_DL"
28693           if test "$cross_compiling" = yes; then :
28694   libltdl_cv_need_uscore=cross
28695 else
28696   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
28697   lt_status=$lt_dlunknown
28698   cat > conftest.$ac_ext <<EOF
28699 #line 28699 "configure"
28700 #include "confdefs.h"
28701
28702 #if HAVE_DLFCN_H
28703 #include <dlfcn.h>
28704 #endif
28705
28706 #include <stdio.h>
28707
28708 #ifdef RTLD_GLOBAL
28709 #  define LT_DLGLOBAL           RTLD_GLOBAL
28710 #else
28711 #  ifdef DL_GLOBAL
28712 #    define LT_DLGLOBAL         DL_GLOBAL
28713 #  else
28714 #    define LT_DLGLOBAL         0
28715 #  endif
28716 #endif
28717
28718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
28719    find out it does not work in some platform. */
28720 #ifndef LT_DLLAZY_OR_NOW
28721 #  ifdef RTLD_LAZY
28722 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
28723 #  else
28724 #    ifdef DL_LAZY
28725 #      define LT_DLLAZY_OR_NOW          DL_LAZY
28726 #    else
28727 #      ifdef RTLD_NOW
28728 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
28729 #      else
28730 #        ifdef DL_NOW
28731 #          define LT_DLLAZY_OR_NOW      DL_NOW
28732 #        else
28733 #          define LT_DLLAZY_OR_NOW      0
28734 #        endif
28735 #      endif
28736 #    endif
28737 #  endif
28738 #endif
28739
28740 #ifdef __cplusplus
28741 extern "C" void exit (int);
28742 #endif
28743
28744 void fnord() { int i=42;}
28745 int main ()
28746 {
28747   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
28748   int status = $lt_dlunknown;
28749
28750   if (self)
28751     {
28752       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
28753       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
28754       /* dlclose (self); */
28755     }
28756   else
28757     puts (dlerror ());
28758
28759     exit (status);
28760 }
28761 EOF
28762   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28763   (eval $ac_link) 2>&5
28764   ac_status=$?
28765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
28767     (./conftest; exit; ) >&5 2>/dev/null
28768     lt_status=$?
28769     case x$lt_status in
28770       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
28771       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
28772       x$lt_dlunknown|x*)  ;;
28773     esac
28774   else :
28775     # compilation failed
28776
28777   fi
28778 fi
28779 rm -fr conftest*
28780
28781           LIBS="$save_LIBS"
28782
28783 fi
28784 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
28785 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
28786   fi
28787 fi
28788
28789 if test x"$libltdl_cv_need_uscore" = xyes; then
28790
28791 cat >>confdefs.h <<\_ACEOF
28792 #define NEED_USCORE 1
28793 _ACEOF
28794
28795 fi
28796
28797
28798 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
28799 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
28800 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
28801   echo $ECHO_N "(cached) $ECHO_C" >&6
28802 else
28803   # PORTME does your system automatically load deplibs for dlopen?
28804   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
28805   # For now, we just catch OSes we know something about -- in the
28806   # future, we'll try test this programmatically.
28807   libltdl_cv_sys_dlopen_deplibs=unknown
28808   case "$host_os" in
28809   aix3*|aix4.1.*|aix4.2.*)
28810     # Unknown whether this is true for these versions of AIX, but
28811     # we want this `case' here to explicitly catch those versions.
28812     libltdl_cv_sys_dlopen_deplibs=unknown
28813     ;;
28814   aix[45]*)
28815     libltdl_cv_sys_dlopen_deplibs=yes
28816     ;;
28817   darwin*)
28818     # Assuming the user has installed a libdl from somewhere, this is true
28819     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
28820     libltdl_cv_sys_dlopen_deplibs=yes
28821     ;;
28822   gnu* | linux* | k*bsd*-gnu)
28823     # GNU and its variants, using gnu ld.so (Glibc)
28824     libltdl_cv_sys_dlopen_deplibs=yes
28825     ;;
28826   hpux10*|hpux11*)
28827     libltdl_cv_sys_dlopen_deplibs=yes
28828     ;;
28829   interix*)
28830     libltdl_cv_sys_dlopen_deplibs=yes
28831     ;;
28832   irix[12345]*|irix6.[01]*)
28833     # Catch all versions of IRIX before 6.2, and indicate that we don't
28834     # know how it worked for any of those versions.
28835     libltdl_cv_sys_dlopen_deplibs=unknown
28836     ;;
28837   irix*)
28838     # The case above catches anything before 6.2, and it's known that
28839     # at 6.2 and later dlopen does load deplibs.
28840     libltdl_cv_sys_dlopen_deplibs=yes
28841     ;;
28842   netbsd* | netbsdelf*-gnu)
28843     libltdl_cv_sys_dlopen_deplibs=yes
28844     ;;
28845   openbsd*)
28846     libltdl_cv_sys_dlopen_deplibs=yes
28847     ;;
28848   osf[1234]*)
28849     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
28850     # it did *not* use an RPATH in a shared library to find objects the
28851     # library depends on, so we explictly say `no'.
28852     libltdl_cv_sys_dlopen_deplibs=no
28853     ;;
28854   osf5.0|osf5.0a|osf5.1)
28855     # dlopen *does* load deplibs and with the right loader patch applied
28856     # it even uses RPATH in a shared library to search for shared objects
28857     # that the library depends on, but there's no easy way to know if that
28858     # patch is installed.  Since this is the case, all we can really
28859     # say is unknown -- it depends on the patch being installed.  If
28860     # it is, this changes to `yes'.  Without it, it would be `no'.
28861     libltdl_cv_sys_dlopen_deplibs=unknown
28862     ;;
28863   osf*)
28864     # the two cases above should catch all versions of osf <= 5.1.  Read
28865     # the comments above for what we know about them.
28866     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
28867     # is used to find them so we can finally say `yes'.
28868     libltdl_cv_sys_dlopen_deplibs=yes
28869     ;;
28870   solaris*)
28871     libltdl_cv_sys_dlopen_deplibs=yes
28872     ;;
28873   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28874     libltdl_cv_sys_dlopen_deplibs=yes
28875     ;;
28876   esac
28877
28878 fi
28879 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
28880 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
28881 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
28882
28883 cat >>confdefs.h <<\_ACEOF
28884 #define LTDL_DLOPEN_DEPLIBS 1
28885 _ACEOF
28886
28887 fi
28888
28889
28890 for ac_header in argz.h
28891 do
28892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28894   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28897   echo $ECHO_N "(cached) $ECHO_C" >&6
28898 fi
28899 ac_res=`eval echo '${'$as_ac_Header'}'`
28900                { echo "$as_me:$LINENO: result: $ac_res" >&5
28901 echo "${ECHO_T}$ac_res" >&6; }
28902 else
28903   # Is the header compilable?
28904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28906 cat >conftest.$ac_ext <<_ACEOF
28907 /* confdefs.h.  */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h.  */
28912 $ac_includes_default
28913 #include <$ac_header>
28914 _ACEOF
28915 rm -f conftest.$ac_objext
28916 if { (ac_try="$ac_compile"
28917 case "(($ac_try" in
28918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919   *) ac_try_echo=$ac_try;;
28920 esac
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922   (eval "$ac_compile") 2>conftest.er1
28923   ac_status=$?
28924   grep -v '^ *+' conftest.er1 >conftest.err
28925   rm -f conftest.er1
28926   cat conftest.err >&5
28927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928   (exit $ac_status); } && {
28929          test -z "$ac_c_werror_flag" ||
28930          test ! -s conftest.err
28931        } && test -s conftest.$ac_objext; then
28932   ac_header_compiler=yes
28933 else
28934   echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28936
28937         ac_header_compiler=no
28938 fi
28939
28940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28942 echo "${ECHO_T}$ac_header_compiler" >&6; }
28943
28944 # Is the header present?
28945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28947 cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953 #include <$ac_header>
28954 _ACEOF
28955 if { (ac_try="$ac_cpp conftest.$ac_ext"
28956 case "(($ac_try" in
28957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958   *) ac_try_echo=$ac_try;;
28959 esac
28960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28962   ac_status=$?
28963   grep -v '^ *+' conftest.er1 >conftest.err
28964   rm -f conftest.er1
28965   cat conftest.err >&5
28966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); } >/dev/null && {
28968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28969          test ! -s conftest.err
28970        }; then
28971   ac_header_preproc=yes
28972 else
28973   echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28975
28976   ac_header_preproc=no
28977 fi
28978
28979 rm -f conftest.err conftest.$ac_ext
28980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28981 echo "${ECHO_T}$ac_header_preproc" >&6; }
28982
28983 # So?  What about this header?
28984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28985   yes:no: )
28986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28990     ac_header_preproc=yes
28991     ;;
28992   no:yes:* )
28993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29005     ( cat <<\_ASBOX
29006 ## -------------------------------------- ##
29007 ## Report this to choe.hwanjing@gmail.com ##
29008 ## -------------------------------------- ##
29009 _ASBOX
29010      ) | sed "s/^/$as_me: WARNING:     /" >&2
29011     ;;
29012 esac
29013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29016   echo $ECHO_N "(cached) $ECHO_C" >&6
29017 else
29018   eval "$as_ac_Header=\$ac_header_preproc"
29019 fi
29020 ac_res=`eval echo '${'$as_ac_Header'}'`
29021                { echo "$as_me:$LINENO: result: $ac_res" >&5
29022 echo "${ECHO_T}$ac_res" >&6; }
29023
29024 fi
29025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29026   cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29028 _ACEOF
29029
29030 fi
29031
29032 done
29033
29034
29035 { echo "$as_me:$LINENO: checking for error_t" >&5
29036 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
29037 if test "${ac_cv_type_error_t+set}" = set; then
29038   echo $ECHO_N "(cached) $ECHO_C" >&6
29039 else
29040   cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h.  */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h.  */
29046 #if HAVE_ARGZ_H
29047 #  include <argz.h>
29048 #endif
29049
29050 typedef error_t ac__type_new_;
29051 int
29052 main ()
29053 {
29054 if ((ac__type_new_ *) 0)
29055   return 0;
29056 if (sizeof (ac__type_new_))
29057   return 0;
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069   (eval "$ac_compile") 2>conftest.er1
29070   ac_status=$?
29071   grep -v '^ *+' conftest.er1 >conftest.err
29072   rm -f conftest.er1
29073   cat conftest.err >&5
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } && {
29076          test -z "$ac_c_werror_flag" ||
29077          test ! -s conftest.err
29078        } && test -s conftest.$ac_objext; then
29079   ac_cv_type_error_t=yes
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084         ac_cv_type_error_t=no
29085 fi
29086
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088 fi
29089 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
29090 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
29091 if test $ac_cv_type_error_t = yes; then
29092
29093 cat >>confdefs.h <<_ACEOF
29094 #define HAVE_ERROR_T 1
29095 _ACEOF
29096
29097
29098 else
29099
29100 cat >>confdefs.h <<\_ACEOF
29101 #define error_t int
29102 _ACEOF
29103
29104 fi
29105
29106
29107
29108
29109
29110
29111
29112 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
29113 do
29114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29118   echo $ECHO_N "(cached) $ECHO_C" >&6
29119 else
29120   cat >conftest.$ac_ext <<_ACEOF
29121 /* confdefs.h.  */
29122 _ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h.  */
29126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29128 #define $ac_func innocuous_$ac_func
29129
29130 /* System header to define __stub macros and hopefully few prototypes,
29131     which can conflict with char $ac_func (); below.
29132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29133     <limits.h> exists even on freestanding compilers.  */
29134
29135 #ifdef __STDC__
29136 # include <limits.h>
29137 #else
29138 # include <assert.h>
29139 #endif
29140
29141 #undef $ac_func
29142
29143 /* Override any GCC internal prototype to avoid an error.
29144    Use char because int might match the return type of a GCC
29145    builtin and then its argument prototype would still apply.  */
29146 #ifdef __cplusplus
29147 extern "C"
29148 #endif
29149 char $ac_func ();
29150 /* The GNU C library defines this for functions which it implements
29151     to always fail with ENOSYS.  Some functions are actually named
29152     something starting with __ and the normal name is an alias.  */
29153 #if defined __stub_$ac_func || defined __stub___$ac_func
29154 choke me
29155 #endif
29156
29157 int
29158 main ()
29159 {
29160 return $ac_func ();
29161   ;
29162   return 0;
29163 }
29164 _ACEOF
29165 rm -f conftest.$ac_objext conftest$ac_exeext
29166 if { (ac_try="$ac_link"
29167 case "(($ac_try" in
29168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29169   *) ac_try_echo=$ac_try;;
29170 esac
29171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29172   (eval "$ac_link") 2>conftest.er1
29173   ac_status=$?
29174   grep -v '^ *+' conftest.er1 >conftest.err
29175   rm -f conftest.er1
29176   cat conftest.err >&5
29177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178   (exit $ac_status); } && {
29179          test -z "$ac_c_werror_flag" ||
29180          test ! -s conftest.err
29181        } && test -s conftest$ac_exeext &&
29182        $as_test_x conftest$ac_exeext; then
29183   eval "$as_ac_var=yes"
29184 else
29185   echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29187
29188         eval "$as_ac_var=no"
29189 fi
29190
29191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29192       conftest$ac_exeext conftest.$ac_ext
29193 fi
29194 ac_res=`eval echo '${'$as_ac_var'}'`
29195                { echo "$as_me:$LINENO: result: $ac_res" >&5
29196 echo "${ECHO_T}$ac_res" >&6; }
29197 if test `eval echo '${'$as_ac_var'}'` = yes; then
29198   cat >>confdefs.h <<_ACEOF
29199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29200 _ACEOF
29201
29202 fi
29203 done
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
29233                   stdio.h unistd.h
29234 do
29235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29240   echo $ECHO_N "(cached) $ECHO_C" >&6
29241 fi
29242 ac_res=`eval echo '${'$as_ac_Header'}'`
29243                { echo "$as_me:$LINENO: result: $ac_res" >&5
29244 echo "${ECHO_T}$ac_res" >&6; }
29245 else
29246   # Is the header compilable?
29247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29249 cat >conftest.$ac_ext <<_ACEOF
29250 /* confdefs.h.  */
29251 _ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h.  */
29255 $ac_includes_default
29256 #include <$ac_header>
29257 _ACEOF
29258 rm -f conftest.$ac_objext
29259 if { (ac_try="$ac_compile"
29260 case "(($ac_try" in
29261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262   *) ac_try_echo=$ac_try;;
29263 esac
29264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265   (eval "$ac_compile") 2>conftest.er1
29266   ac_status=$?
29267   grep -v '^ *+' conftest.er1 >conftest.err
29268   rm -f conftest.er1
29269   cat conftest.err >&5
29270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271   (exit $ac_status); } && {
29272          test -z "$ac_c_werror_flag" ||
29273          test ! -s conftest.err
29274        } && test -s conftest.$ac_objext; then
29275   ac_header_compiler=yes
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280         ac_header_compiler=no
29281 fi
29282
29283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285 echo "${ECHO_T}$ac_header_compiler" >&6; }
29286
29287 # Is the header present?
29288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29290 cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296 #include <$ac_header>
29297 _ACEOF
29298 if { (ac_try="$ac_cpp conftest.$ac_ext"
29299 case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29305   ac_status=$?
29306   grep -v '^ *+' conftest.er1 >conftest.err
29307   rm -f conftest.er1
29308   cat conftest.err >&5
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } >/dev/null && {
29311          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29312          test ! -s conftest.err
29313        }; then
29314   ac_header_preproc=yes
29315 else
29316   echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.$ac_ext >&5
29318
29319   ac_header_preproc=no
29320 fi
29321
29322 rm -f conftest.err conftest.$ac_ext
29323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29324 echo "${ECHO_T}$ac_header_preproc" >&6; }
29325
29326 # So?  What about this header?
29327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29328   yes:no: )
29329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29333     ac_header_preproc=yes
29334     ;;
29335   no:yes:* )
29336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29348     ( cat <<\_ASBOX
29349 ## -------------------------------------- ##
29350 ## Report this to choe.hwanjing@gmail.com ##
29351 ## -------------------------------------- ##
29352 _ASBOX
29353      ) | sed "s/^/$as_me: WARNING:     /" >&2
29354     ;;
29355 esac
29356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29359   echo $ECHO_N "(cached) $ECHO_C" >&6
29360 else
29361   eval "$as_ac_Header=\$ac_header_preproc"
29362 fi
29363 ac_res=`eval echo '${'$as_ac_Header'}'`
29364                { echo "$as_me:$LINENO: result: $ac_res" >&5
29365 echo "${ECHO_T}$ac_res" >&6; }
29366
29367 fi
29368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29369   cat >>confdefs.h <<_ACEOF
29370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29371 _ACEOF
29372
29373 fi
29374
29375 done
29376
29377
29378
29379
29380
29381 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
29382 do
29383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29385   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388   echo $ECHO_N "(cached) $ECHO_C" >&6
29389 fi
29390 ac_res=`eval echo '${'$as_ac_Header'}'`
29391                { echo "$as_me:$LINENO: result: $ac_res" >&5
29392 echo "${ECHO_T}$ac_res" >&6; }
29393 else
29394   # Is the header compilable?
29395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29397 cat >conftest.$ac_ext <<_ACEOF
29398 /* confdefs.h.  */
29399 _ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h.  */
29403 $ac_includes_default
29404 #include <$ac_header>
29405 _ACEOF
29406 rm -f conftest.$ac_objext
29407 if { (ac_try="$ac_compile"
29408 case "(($ac_try" in
29409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410   *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413   (eval "$ac_compile") 2>conftest.er1
29414   ac_status=$?
29415   grep -v '^ *+' conftest.er1 >conftest.err
29416   rm -f conftest.er1
29417   cat conftest.err >&5
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); } && {
29420          test -z "$ac_c_werror_flag" ||
29421          test ! -s conftest.err
29422        } && test -s conftest.$ac_objext; then
29423   ac_header_compiler=yes
29424 else
29425   echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29427
29428         ac_header_compiler=no
29429 fi
29430
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29433 echo "${ECHO_T}$ac_header_compiler" >&6; }
29434
29435 # Is the header present?
29436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29438 cat >conftest.$ac_ext <<_ACEOF
29439 /* confdefs.h.  */
29440 _ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h.  */
29444 #include <$ac_header>
29445 _ACEOF
29446 if { (ac_try="$ac_cpp conftest.$ac_ext"
29447 case "(($ac_try" in
29448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449   *) ac_try_echo=$ac_try;;
29450 esac
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29453   ac_status=$?
29454   grep -v '^ *+' conftest.er1 >conftest.err
29455   rm -f conftest.er1
29456   cat conftest.err >&5
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); } >/dev/null && {
29459          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29460          test ! -s conftest.err
29461        }; then
29462   ac_header_preproc=yes
29463 else
29464   echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29466
29467   ac_header_preproc=no
29468 fi
29469
29470 rm -f conftest.err conftest.$ac_ext
29471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29472 echo "${ECHO_T}$ac_header_preproc" >&6; }
29473
29474 # So?  What about this header?
29475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29476   yes:no: )
29477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29481     ac_header_preproc=yes
29482     ;;
29483   no:yes:* )
29484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29496     ( cat <<\_ASBOX
29497 ## -------------------------------------- ##
29498 ## Report this to choe.hwanjing@gmail.com ##
29499 ## -------------------------------------- ##
29500 _ASBOX
29501      ) | sed "s/^/$as_me: WARNING:     /" >&2
29502     ;;
29503 esac
29504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29507   echo $ECHO_N "(cached) $ECHO_C" >&6
29508 else
29509   eval "$as_ac_Header=\$ac_header_preproc"
29510 fi
29511 ac_res=`eval echo '${'$as_ac_Header'}'`
29512                { echo "$as_me:$LINENO: result: $ac_res" >&5
29513 echo "${ECHO_T}$ac_res" >&6; }
29514
29515 fi
29516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29517   cat >>confdefs.h <<_ACEOF
29518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29519 _ACEOF
29520
29521 fi
29522
29523 done
29524
29525
29526
29527 for ac_header in string.h strings.h
29528 do
29529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29531   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29534   echo $ECHO_N "(cached) $ECHO_C" >&6
29535 fi
29536 ac_res=`eval echo '${'$as_ac_Header'}'`
29537                { echo "$as_me:$LINENO: result: $ac_res" >&5
29538 echo "${ECHO_T}$ac_res" >&6; }
29539 else
29540   # Is the header compilable?
29541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29543 cat >conftest.$ac_ext <<_ACEOF
29544 /* confdefs.h.  */
29545 _ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h.  */
29549 $ac_includes_default
29550 #include <$ac_header>
29551 _ACEOF
29552 rm -f conftest.$ac_objext
29553 if { (ac_try="$ac_compile"
29554 case "(($ac_try" in
29555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556   *) ac_try_echo=$ac_try;;
29557 esac
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559   (eval "$ac_compile") 2>conftest.er1
29560   ac_status=$?
29561   grep -v '^ *+' conftest.er1 >conftest.err
29562   rm -f conftest.er1
29563   cat conftest.err >&5
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); } && {
29566          test -z "$ac_c_werror_flag" ||
29567          test ! -s conftest.err
29568        } && test -s conftest.$ac_objext; then
29569   ac_header_compiler=yes
29570 else
29571   echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29573
29574         ac_header_compiler=no
29575 fi
29576
29577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29579 echo "${ECHO_T}$ac_header_compiler" >&6; }
29580
29581 # Is the header present?
29582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29584 cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590 #include <$ac_header>
29591 _ACEOF
29592 if { (ac_try="$ac_cpp conftest.$ac_ext"
29593 case "(($ac_try" in
29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595   *) ac_try_echo=$ac_try;;
29596 esac
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29599   ac_status=$?
29600   grep -v '^ *+' conftest.er1 >conftest.err
29601   rm -f conftest.er1
29602   cat conftest.err >&5
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); } >/dev/null && {
29605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29606          test ! -s conftest.err
29607        }; then
29608   ac_header_preproc=yes
29609 else
29610   echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613   ac_header_preproc=no
29614 fi
29615
29616 rm -f conftest.err conftest.$ac_ext
29617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29618 echo "${ECHO_T}$ac_header_preproc" >&6; }
29619
29620 # So?  What about this header?
29621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29622   yes:no: )
29623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29627     ac_header_preproc=yes
29628     ;;
29629   no:yes:* )
29630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29642     ( cat <<\_ASBOX
29643 ## -------------------------------------- ##
29644 ## Report this to choe.hwanjing@gmail.com ##
29645 ## -------------------------------------- ##
29646 _ASBOX
29647      ) | sed "s/^/$as_me: WARNING:     /" >&2
29648     ;;
29649 esac
29650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29653   echo $ECHO_N "(cached) $ECHO_C" >&6
29654 else
29655   eval "$as_ac_Header=\$ac_header_preproc"
29656 fi
29657 ac_res=`eval echo '${'$as_ac_Header'}'`
29658                { echo "$as_me:$LINENO: result: $ac_res" >&5
29659 echo "${ECHO_T}$ac_res" >&6; }
29660
29661 fi
29662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29663   cat >>confdefs.h <<_ACEOF
29664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29665 _ACEOF
29666  break
29667 fi
29668
29669 done
29670
29671
29672
29673
29674 for ac_func in strchr index
29675 do
29676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29680   echo $ECHO_N "(cached) $ECHO_C" >&6
29681 else
29682   cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29690 #define $ac_func innocuous_$ac_func
29691
29692 /* System header to define __stub macros and hopefully few prototypes,
29693     which can conflict with char $ac_func (); below.
29694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29695     <limits.h> exists even on freestanding compilers.  */
29696
29697 #ifdef __STDC__
29698 # include <limits.h>
29699 #else
29700 # include <assert.h>
29701 #endif
29702
29703 #undef $ac_func
29704
29705 /* Override any GCC internal prototype to avoid an error.
29706    Use char because int might match the return type of a GCC
29707    builtin and then its argument prototype would still apply.  */
29708 #ifdef __cplusplus
29709 extern "C"
29710 #endif
29711 char $ac_func ();
29712 /* The GNU C library defines this for functions which it implements
29713     to always fail with ENOSYS.  Some functions are actually named
29714     something starting with __ and the normal name is an alias.  */
29715 #if defined __stub_$ac_func || defined __stub___$ac_func
29716 choke me
29717 #endif
29718
29719 int
29720 main ()
29721 {
29722 return $ac_func ();
29723   ;
29724   return 0;
29725 }
29726 _ACEOF
29727 rm -f conftest.$ac_objext conftest$ac_exeext
29728 if { (ac_try="$ac_link"
29729 case "(($ac_try" in
29730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29731   *) ac_try_echo=$ac_try;;
29732 esac
29733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29734   (eval "$ac_link") 2>conftest.er1
29735   ac_status=$?
29736   grep -v '^ *+' conftest.er1 >conftest.err
29737   rm -f conftest.er1
29738   cat conftest.err >&5
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); } && {
29741          test -z "$ac_c_werror_flag" ||
29742          test ! -s conftest.err
29743        } && test -s conftest$ac_exeext &&
29744        $as_test_x conftest$ac_exeext; then
29745   eval "$as_ac_var=yes"
29746 else
29747   echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29749
29750         eval "$as_ac_var=no"
29751 fi
29752
29753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29754       conftest$ac_exeext conftest.$ac_ext
29755 fi
29756 ac_res=`eval echo '${'$as_ac_var'}'`
29757                { echo "$as_me:$LINENO: result: $ac_res" >&5
29758 echo "${ECHO_T}$ac_res" >&6; }
29759 if test `eval echo '${'$as_ac_var'}'` = yes; then
29760   cat >>confdefs.h <<_ACEOF
29761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29762 _ACEOF
29763  break
29764 fi
29765 done
29766
29767
29768
29769 for ac_func in strrchr rindex
29770 do
29771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29775   echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777   cat >conftest.$ac_ext <<_ACEOF
29778 /* confdefs.h.  */
29779 _ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h.  */
29783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29785 #define $ac_func innocuous_$ac_func
29786
29787 /* System header to define __stub macros and hopefully few prototypes,
29788     which can conflict with char $ac_func (); below.
29789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29790     <limits.h> exists even on freestanding compilers.  */
29791
29792 #ifdef __STDC__
29793 # include <limits.h>
29794 #else
29795 # include <assert.h>
29796 #endif
29797
29798 #undef $ac_func
29799
29800 /* Override any GCC internal prototype to avoid an error.
29801    Use char because int might match the return type of a GCC
29802    builtin and then its argument prototype would still apply.  */
29803 #ifdef __cplusplus
29804 extern "C"
29805 #endif
29806 char $ac_func ();
29807 /* The GNU C library defines this for functions which it implements
29808     to always fail with ENOSYS.  Some functions are actually named
29809     something starting with __ and the normal name is an alias.  */
29810 #if defined __stub_$ac_func || defined __stub___$ac_func
29811 choke me
29812 #endif
29813
29814 int
29815 main ()
29816 {
29817 return $ac_func ();
29818   ;
29819   return 0;
29820 }
29821 _ACEOF
29822 rm -f conftest.$ac_objext conftest$ac_exeext
29823 if { (ac_try="$ac_link"
29824 case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_link") 2>conftest.er1
29830   ac_status=$?
29831   grep -v '^ *+' conftest.er1 >conftest.err
29832   rm -f conftest.er1
29833   cat conftest.err >&5
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); } && {
29836          test -z "$ac_c_werror_flag" ||
29837          test ! -s conftest.err
29838        } && test -s conftest$ac_exeext &&
29839        $as_test_x conftest$ac_exeext; then
29840   eval "$as_ac_var=yes"
29841 else
29842   echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29844
29845         eval "$as_ac_var=no"
29846 fi
29847
29848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29849       conftest$ac_exeext conftest.$ac_ext
29850 fi
29851 ac_res=`eval echo '${'$as_ac_var'}'`
29852                { echo "$as_me:$LINENO: result: $ac_res" >&5
29853 echo "${ECHO_T}$ac_res" >&6; }
29854 if test `eval echo '${'$as_ac_var'}'` = yes; then
29855   cat >>confdefs.h <<_ACEOF
29856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29857 _ACEOF
29858  break
29859 fi
29860 done
29861
29862
29863
29864 for ac_func in memcpy bcopy
29865 do
29866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29870   echo $ECHO_N "(cached) $ECHO_C" >&6
29871 else
29872   cat >conftest.$ac_ext <<_ACEOF
29873 /* confdefs.h.  */
29874 _ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h.  */
29878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29880 #define $ac_func innocuous_$ac_func
29881
29882 /* System header to define __stub macros and hopefully few prototypes,
29883     which can conflict with char $ac_func (); below.
29884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29885     <limits.h> exists even on freestanding compilers.  */
29886
29887 #ifdef __STDC__
29888 # include <limits.h>
29889 #else
29890 # include <assert.h>
29891 #endif
29892
29893 #undef $ac_func
29894
29895 /* Override any GCC internal prototype to avoid an error.
29896    Use char because int might match the return type of a GCC
29897    builtin and then its argument prototype would still apply.  */
29898 #ifdef __cplusplus
29899 extern "C"
29900 #endif
29901 char $ac_func ();
29902 /* The GNU C library defines this for functions which it implements
29903     to always fail with ENOSYS.  Some functions are actually named
29904     something starting with __ and the normal name is an alias.  */
29905 #if defined __stub_$ac_func || defined __stub___$ac_func
29906 choke me
29907 #endif
29908
29909 int
29910 main ()
29911 {
29912 return $ac_func ();
29913   ;
29914   return 0;
29915 }
29916 _ACEOF
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (ac_try="$ac_link"
29919 case "(($ac_try" in
29920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921   *) ac_try_echo=$ac_try;;
29922 esac
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924   (eval "$ac_link") 2>conftest.er1
29925   ac_status=$?
29926   grep -v '^ *+' conftest.er1 >conftest.err
29927   rm -f conftest.er1
29928   cat conftest.err >&5
29929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930   (exit $ac_status); } && {
29931          test -z "$ac_c_werror_flag" ||
29932          test ! -s conftest.err
29933        } && test -s conftest$ac_exeext &&
29934        $as_test_x conftest$ac_exeext; then
29935   eval "$as_ac_var=yes"
29936 else
29937   echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29939
29940         eval "$as_ac_var=no"
29941 fi
29942
29943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29944       conftest$ac_exeext conftest.$ac_ext
29945 fi
29946 ac_res=`eval echo '${'$as_ac_var'}'`
29947                { echo "$as_me:$LINENO: result: $ac_res" >&5
29948 echo "${ECHO_T}$ac_res" >&6; }
29949 if test `eval echo '${'$as_ac_var'}'` = yes; then
29950   cat >>confdefs.h <<_ACEOF
29951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29952 _ACEOF
29953  break
29954 fi
29955 done
29956
29957
29958
29959 for ac_func in memmove strcmp
29960 do
29961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29965   echo $ECHO_N "(cached) $ECHO_C" >&6
29966 else
29967   cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29975 #define $ac_func innocuous_$ac_func
29976
29977 /* System header to define __stub macros and hopefully few prototypes,
29978     which can conflict with char $ac_func (); below.
29979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29980     <limits.h> exists even on freestanding compilers.  */
29981
29982 #ifdef __STDC__
29983 # include <limits.h>
29984 #else
29985 # include <assert.h>
29986 #endif
29987
29988 #undef $ac_func
29989
29990 /* Override any GCC internal prototype to avoid an error.
29991    Use char because int might match the return type of a GCC
29992    builtin and then its argument prototype would still apply.  */
29993 #ifdef __cplusplus
29994 extern "C"
29995 #endif
29996 char $ac_func ();
29997 /* The GNU C library defines this for functions which it implements
29998     to always fail with ENOSYS.  Some functions are actually named
29999     something starting with __ and the normal name is an alias.  */
30000 #if defined __stub_$ac_func || defined __stub___$ac_func
30001 choke me
30002 #endif
30003
30004 int
30005 main ()
30006 {
30007 return $ac_func ();
30008   ;
30009   return 0;
30010 }
30011 _ACEOF
30012 rm -f conftest.$ac_objext conftest$ac_exeext
30013 if { (ac_try="$ac_link"
30014 case "(($ac_try" in
30015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016   *) ac_try_echo=$ac_try;;
30017 esac
30018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019   (eval "$ac_link") 2>conftest.er1
30020   ac_status=$?
30021   grep -v '^ *+' conftest.er1 >conftest.err
30022   rm -f conftest.er1
30023   cat conftest.err >&5
30024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025   (exit $ac_status); } && {
30026          test -z "$ac_c_werror_flag" ||
30027          test ! -s conftest.err
30028        } && test -s conftest$ac_exeext &&
30029        $as_test_x conftest$ac_exeext; then
30030   eval "$as_ac_var=yes"
30031 else
30032   echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30034
30035         eval "$as_ac_var=no"
30036 fi
30037
30038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30039       conftest$ac_exeext conftest.$ac_ext
30040 fi
30041 ac_res=`eval echo '${'$as_ac_var'}'`
30042                { echo "$as_me:$LINENO: result: $ac_res" >&5
30043 echo "${ECHO_T}$ac_res" >&6; }
30044 if test `eval echo '${'$as_ac_var'}'` = yes; then
30045   cat >>confdefs.h <<_ACEOF
30046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30047 _ACEOF
30048
30049 fi
30050 done
30051
30052
30053
30054
30055 for ac_func in closedir opendir readdir
30056 do
30057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30061   echo $ECHO_N "(cached) $ECHO_C" >&6
30062 else
30063   cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h.  */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h.  */
30069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30071 #define $ac_func innocuous_$ac_func
30072
30073 /* System header to define __stub macros and hopefully few prototypes,
30074     which can conflict with char $ac_func (); below.
30075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30076     <limits.h> exists even on freestanding compilers.  */
30077
30078 #ifdef __STDC__
30079 # include <limits.h>
30080 #else
30081 # include <assert.h>
30082 #endif
30083
30084 #undef $ac_func
30085
30086 /* Override any GCC internal prototype to avoid an error.
30087    Use char because int might match the return type of a GCC
30088    builtin and then its argument prototype would still apply.  */
30089 #ifdef __cplusplus
30090 extern "C"
30091 #endif
30092 char $ac_func ();
30093 /* The GNU C library defines this for functions which it implements
30094     to always fail with ENOSYS.  Some functions are actually named
30095     something starting with __ and the normal name is an alias.  */
30096 #if defined __stub_$ac_func || defined __stub___$ac_func
30097 choke me
30098 #endif
30099
30100 int
30101 main ()
30102 {
30103 return $ac_func ();
30104   ;
30105   return 0;
30106 }
30107 _ACEOF
30108 rm -f conftest.$ac_objext conftest$ac_exeext
30109 if { (ac_try="$ac_link"
30110 case "(($ac_try" in
30111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112   *) ac_try_echo=$ac_try;;
30113 esac
30114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30115   (eval "$ac_link") 2>conftest.er1
30116   ac_status=$?
30117   grep -v '^ *+' conftest.er1 >conftest.err
30118   rm -f conftest.er1
30119   cat conftest.err >&5
30120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121   (exit $ac_status); } && {
30122          test -z "$ac_c_werror_flag" ||
30123          test ! -s conftest.err
30124        } && test -s conftest$ac_exeext &&
30125        $as_test_x conftest$ac_exeext; then
30126   eval "$as_ac_var=yes"
30127 else
30128   echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131         eval "$as_ac_var=no"
30132 fi
30133
30134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30135       conftest$ac_exeext conftest.$ac_ext
30136 fi
30137 ac_res=`eval echo '${'$as_ac_var'}'`
30138                { echo "$as_me:$LINENO: result: $ac_res" >&5
30139 echo "${ECHO_T}$ac_res" >&6; }
30140 if test `eval echo '${'$as_ac_var'}'` = yes; then
30141   cat >>confdefs.h <<_ACEOF
30142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30143 _ACEOF
30144
30145 fi
30146 done
30147
30148
30149
30150
30151 # Checks for programs.
30152 ac_ext=cpp
30153 ac_cpp='$CXXCPP $CPPFLAGS'
30154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30157 if test -z "$CXX"; then
30158   if test -n "$CCC"; then
30159     CXX=$CCC
30160   else
30161     if test -n "$ac_tool_prefix"; then
30162   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
30163   do
30164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30168 if test "${ac_cv_prog_CXX+set}" = set; then
30169   echo $ECHO_N "(cached) $ECHO_C" >&6
30170 else
30171   if test -n "$CXX"; then
30172   ac_cv_prog_CXX="$CXX" # Let the user override the test.
30173 else
30174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175 for as_dir in $PATH
30176 do
30177   IFS=$as_save_IFS
30178   test -z "$as_dir" && as_dir=.
30179   for ac_exec_ext in '' $ac_executable_extensions; do
30180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30181     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30183     break 2
30184   fi
30185 done
30186 done
30187 IFS=$as_save_IFS
30188
30189 fi
30190 fi
30191 CXX=$ac_cv_prog_CXX
30192 if test -n "$CXX"; then
30193   { echo "$as_me:$LINENO: result: $CXX" >&5
30194 echo "${ECHO_T}$CXX" >&6; }
30195 else
30196   { echo "$as_me:$LINENO: result: no" >&5
30197 echo "${ECHO_T}no" >&6; }
30198 fi
30199
30200
30201     test -n "$CXX" && break
30202   done
30203 fi
30204 if test -z "$CXX"; then
30205   ac_ct_CXX=$CXX
30206   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
30207 do
30208   # Extract the first word of "$ac_prog", so it can be a program name with args.
30209 set dummy $ac_prog; ac_word=$2
30210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30212 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
30213   echo $ECHO_N "(cached) $ECHO_C" >&6
30214 else
30215   if test -n "$ac_ct_CXX"; then
30216   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
30217 else
30218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30219 for as_dir in $PATH
30220 do
30221   IFS=$as_save_IFS
30222   test -z "$as_dir" && as_dir=.
30223   for ac_exec_ext in '' $ac_executable_extensions; do
30224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30225     ac_cv_prog_ac_ct_CXX="$ac_prog"
30226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30227     break 2
30228   fi
30229 done
30230 done
30231 IFS=$as_save_IFS
30232
30233 fi
30234 fi
30235 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
30236 if test -n "$ac_ct_CXX"; then
30237   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
30238 echo "${ECHO_T}$ac_ct_CXX" >&6; }
30239 else
30240   { echo "$as_me:$LINENO: result: no" >&5
30241 echo "${ECHO_T}no" >&6; }
30242 fi
30243
30244
30245   test -n "$ac_ct_CXX" && break
30246 done
30247
30248   if test "x$ac_ct_CXX" = x; then
30249     CXX="g++"
30250   else
30251     case $cross_compiling:$ac_tool_warned in
30252 yes:)
30253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30254 whose name does not start with the host triplet.  If you think this
30255 configuration is useful to you, please write to autoconf@gnu.org." >&5
30256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30257 whose name does not start with the host triplet.  If you think this
30258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30259 ac_tool_warned=yes ;;
30260 esac
30261     CXX=$ac_ct_CXX
30262   fi
30263 fi
30264
30265   fi
30266 fi
30267 # Provide some information about the compiler.
30268 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
30269 ac_compiler=`set X $ac_compile; echo $2`
30270 { (ac_try="$ac_compiler --version >&5"
30271 case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_compiler --version >&5") 2>&5
30277   ac_status=$?
30278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); }
30280 { (ac_try="$ac_compiler -v >&5"
30281 case "(($ac_try" in
30282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283   *) ac_try_echo=$ac_try;;
30284 esac
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286   (eval "$ac_compiler -v >&5") 2>&5
30287   ac_status=$?
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); }
30290 { (ac_try="$ac_compiler -V >&5"
30291 case "(($ac_try" in
30292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293   *) ac_try_echo=$ac_try;;
30294 esac
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296   (eval "$ac_compiler -V >&5") 2>&5
30297   ac_status=$?
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); }
30300
30301 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
30302 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
30303 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
30304   echo $ECHO_N "(cached) $ECHO_C" >&6
30305 else
30306   cat >conftest.$ac_ext <<_ACEOF
30307 /* confdefs.h.  */
30308 _ACEOF
30309 cat confdefs.h >>conftest.$ac_ext
30310 cat >>conftest.$ac_ext <<_ACEOF
30311 /* end confdefs.h.  */
30312
30313 int
30314 main ()
30315 {
30316 #ifndef __GNUC__
30317        choke me
30318 #endif
30319
30320   ;
30321   return 0;
30322 }
30323 _ACEOF
30324 rm -f conftest.$ac_objext
30325 if { (ac_try="$ac_compile"
30326 case "(($ac_try" in
30327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328   *) ac_try_echo=$ac_try;;
30329 esac
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331   (eval "$ac_compile") 2>conftest.er1
30332   ac_status=$?
30333   grep -v '^ *+' conftest.er1 >conftest.err
30334   rm -f conftest.er1
30335   cat conftest.err >&5
30336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337   (exit $ac_status); } && {
30338          test -z "$ac_cxx_werror_flag" ||
30339          test ! -s conftest.err
30340        } && test -s conftest.$ac_objext; then
30341   ac_compiler_gnu=yes
30342 else
30343   echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30345
30346         ac_compiler_gnu=no
30347 fi
30348
30349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30350 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
30351
30352 fi
30353 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
30354 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
30355 GXX=`test $ac_compiler_gnu = yes && echo yes`
30356 ac_test_CXXFLAGS=${CXXFLAGS+set}
30357 ac_save_CXXFLAGS=$CXXFLAGS
30358 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
30359 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
30360 if test "${ac_cv_prog_cxx_g+set}" = set; then
30361   echo $ECHO_N "(cached) $ECHO_C" >&6
30362 else
30363   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
30364    ac_cxx_werror_flag=yes
30365    ac_cv_prog_cxx_g=no
30366    CXXFLAGS="-g"
30367    cat >conftest.$ac_ext <<_ACEOF
30368 /* confdefs.h.  */
30369 _ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h.  */
30373
30374 int
30375 main ()
30376 {
30377
30378   ;
30379   return 0;
30380 }
30381 _ACEOF
30382 rm -f conftest.$ac_objext
30383 if { (ac_try="$ac_compile"
30384 case "(($ac_try" in
30385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386   *) ac_try_echo=$ac_try;;
30387 esac
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389   (eval "$ac_compile") 2>conftest.er1
30390   ac_status=$?
30391   grep -v '^ *+' conftest.er1 >conftest.err
30392   rm -f conftest.er1
30393   cat conftest.err >&5
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); } && {
30396          test -z "$ac_cxx_werror_flag" ||
30397          test ! -s conftest.err
30398        } && test -s conftest.$ac_objext; then
30399   ac_cv_prog_cxx_g=yes
30400 else
30401   echo "$as_me: failed program was:" >&5
30402 sed 's/^/| /' conftest.$ac_ext >&5
30403
30404         CXXFLAGS=""
30405       cat >conftest.$ac_ext <<_ACEOF
30406 /* confdefs.h.  */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h.  */
30411
30412 int
30413 main ()
30414 {
30415
30416   ;
30417   return 0;
30418 }
30419 _ACEOF
30420 rm -f conftest.$ac_objext
30421 if { (ac_try="$ac_compile"
30422 case "(($ac_try" in
30423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424   *) ac_try_echo=$ac_try;;
30425 esac
30426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427   (eval "$ac_compile") 2>conftest.er1
30428   ac_status=$?
30429   grep -v '^ *+' conftest.er1 >conftest.err
30430   rm -f conftest.er1
30431   cat conftest.err >&5
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); } && {
30434          test -z "$ac_cxx_werror_flag" ||
30435          test ! -s conftest.err
30436        } && test -s conftest.$ac_objext; then
30437   :
30438 else
30439   echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30441
30442         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30443          CXXFLAGS="-g"
30444          cat >conftest.$ac_ext <<_ACEOF
30445 /* confdefs.h.  */
30446 _ACEOF
30447 cat confdefs.h >>conftest.$ac_ext
30448 cat >>conftest.$ac_ext <<_ACEOF
30449 /* end confdefs.h.  */
30450
30451 int
30452 main ()
30453 {
30454
30455   ;
30456   return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest.$ac_objext
30460 if { (ac_try="$ac_compile"
30461 case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466   (eval "$ac_compile") 2>conftest.er1
30467   ac_status=$?
30468   grep -v '^ *+' conftest.er1 >conftest.err
30469   rm -f conftest.er1
30470   cat conftest.err >&5
30471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472   (exit $ac_status); } && {
30473          test -z "$ac_cxx_werror_flag" ||
30474          test ! -s conftest.err
30475        } && test -s conftest.$ac_objext; then
30476   ac_cv_prog_cxx_g=yes
30477 else
30478   echo "$as_me: failed program was:" >&5
30479 sed 's/^/| /' conftest.$ac_ext >&5
30480
30481
30482 fi
30483
30484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30485 fi
30486
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30488 fi
30489
30490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30491    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30492 fi
30493 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
30494 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
30495 if test "$ac_test_CXXFLAGS" = set; then
30496   CXXFLAGS=$ac_save_CXXFLAGS
30497 elif test $ac_cv_prog_cxx_g = yes; then
30498   if test "$GXX" = yes; then
30499     CXXFLAGS="-g -O2"
30500   else
30501     CXXFLAGS="-g"
30502   fi
30503 else
30504   if test "$GXX" = yes; then
30505     CXXFLAGS="-O2"
30506   else
30507     CXXFLAGS=
30508   fi
30509 fi
30510 ac_ext=c
30511 ac_cpp='$CPP $CPPFLAGS'
30512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30515
30516 depcc="$CXX"  am_compiler_list=
30517
30518 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
30519 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
30520 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
30521   echo $ECHO_N "(cached) $ECHO_C" >&6
30522 else
30523   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30524   # We make a subdir and do the tests there.  Otherwise we can end up
30525   # making bogus files that we don't know about and never remove.  For
30526   # instance it was reported that on HP-UX the gcc test will end up
30527   # making a dummy file named `D' -- because `-MD' means `put the output
30528   # in D'.
30529   mkdir conftest.dir
30530   # Copy depcomp to subdir because otherwise we won't find it if we're
30531   # using a relative directory.
30532   cp "$am_depcomp" conftest.dir
30533   cd conftest.dir
30534   # We will build objects and dependencies in a subdirectory because
30535   # it helps to detect inapplicable dependency modes.  For instance
30536   # both Tru64's cc and ICC support -MD to output dependencies as a
30537   # side effect of compilation, but ICC will put the dependencies in
30538   # the current directory while Tru64 will put them in the object
30539   # directory.
30540   mkdir sub
30541
30542   am_cv_CXX_dependencies_compiler_type=none
30543   if test "$am_compiler_list" = ""; then
30544      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30545   fi
30546   for depmode in $am_compiler_list; do
30547     # Setup a source with many dependencies, because some compilers
30548     # like to wrap large dependency lists on column 80 (with \), and
30549     # we should not choose a depcomp mode which is confused by this.
30550     #
30551     # We need to recreate these files for each test, as the compiler may
30552     # overwrite some of them when testing with obscure command lines.
30553     # This happens at least with the AIX C compiler.
30554     : > sub/conftest.c
30555     for i in 1 2 3 4 5 6; do
30556       echo '#include "conftst'$i'.h"' >> sub/conftest.c
30557       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
30558       # Solaris 8's {/usr,}/bin/sh.
30559       touch sub/conftst$i.h
30560     done
30561     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30562
30563     case $depmode in
30564     nosideeffect)
30565       # after this tag, mechanisms are not by side-effect, so they'll
30566       # only be used when explicitly requested
30567       if test "x$enable_dependency_tracking" = xyes; then
30568         continue
30569       else
30570         break
30571       fi
30572       ;;
30573     none) break ;;
30574     esac
30575     # We check with `-c' and `-o' for the sake of the "dashmstdout"
30576     # mode.  It turns out that the SunPro C++ compiler does not properly
30577     # handle `-M -o', and we need to detect this.
30578     if depmode=$depmode \
30579        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
30580        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
30581        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
30582          >/dev/null 2>conftest.err &&
30583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
30584        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
30585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
30586       # icc doesn't choke on unknown options, it will just issue warnings
30587       # or remarks (even with -Werror).  So we grep stderr for any message
30588       # that says an option was ignored or not supported.
30589       # When given -MP, icc 7.0 and 7.1 complain thusly:
30590       #   icc: Command line warning: ignoring option '-M'; no argument required
30591       # The diagnosis changed in icc 8.0:
30592       #   icc: Command line remark: option '-MP' not supported
30593       if (grep 'ignoring option' conftest.err ||
30594           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
30595         am_cv_CXX_dependencies_compiler_type=$depmode
30596         break
30597       fi
30598     fi
30599   done
30600
30601   cd ..
30602   rm -rf conftest.dir
30603 else
30604   am_cv_CXX_dependencies_compiler_type=none
30605 fi
30606
30607 fi
30608 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
30609 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
30610 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
30611
30612
30613
30614 if
30615   test "x$enable_dependency_tracking" != xno \
30616   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
30617   am__fastdepCXX_TRUE=
30618   am__fastdepCXX_FALSE='#'
30619 else
30620   am__fastdepCXX_TRUE='#'
30621   am__fastdepCXX_FALSE=
30622 fi
30623
30624
30625 ac_ext=c
30626 ac_cpp='$CPP $CPPFLAGS'
30627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30630 if test -n "$ac_tool_prefix"; then
30631   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30635 if test "${ac_cv_prog_CC+set}" = set; then
30636   echo $ECHO_N "(cached) $ECHO_C" >&6
30637 else
30638   if test -n "$CC"; then
30639   ac_cv_prog_CC="$CC" # Let the user override the test.
30640 else
30641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30642 for as_dir in $PATH
30643 do
30644   IFS=$as_save_IFS
30645   test -z "$as_dir" && as_dir=.
30646   for ac_exec_ext in '' $ac_executable_extensions; do
30647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30648     ac_cv_prog_CC="${ac_tool_prefix}gcc"
30649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30650     break 2
30651   fi
30652 done
30653 done
30654 IFS=$as_save_IFS
30655
30656 fi
30657 fi
30658 CC=$ac_cv_prog_CC
30659 if test -n "$CC"; then
30660   { echo "$as_me:$LINENO: result: $CC" >&5
30661 echo "${ECHO_T}$CC" >&6; }
30662 else
30663   { echo "$as_me:$LINENO: result: no" >&5
30664 echo "${ECHO_T}no" >&6; }
30665 fi
30666
30667
30668 fi
30669 if test -z "$ac_cv_prog_CC"; then
30670   ac_ct_CC=$CC
30671   # Extract the first word of "gcc", so it can be a program name with args.
30672 set dummy gcc; ac_word=$2
30673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30676   echo $ECHO_N "(cached) $ECHO_C" >&6
30677 else
30678   if test -n "$ac_ct_CC"; then
30679   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30680 else
30681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30682 for as_dir in $PATH
30683 do
30684   IFS=$as_save_IFS
30685   test -z "$as_dir" && as_dir=.
30686   for ac_exec_ext in '' $ac_executable_extensions; do
30687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30688     ac_cv_prog_ac_ct_CC="gcc"
30689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30690     break 2
30691   fi
30692 done
30693 done
30694 IFS=$as_save_IFS
30695
30696 fi
30697 fi
30698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30699 if test -n "$ac_ct_CC"; then
30700   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30701 echo "${ECHO_T}$ac_ct_CC" >&6; }
30702 else
30703   { echo "$as_me:$LINENO: result: no" >&5
30704 echo "${ECHO_T}no" >&6; }
30705 fi
30706
30707   if test "x$ac_ct_CC" = x; then
30708     CC=""
30709   else
30710     case $cross_compiling:$ac_tool_warned in
30711 yes:)
30712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30713 whose name does not start with the host triplet.  If you think this
30714 configuration is useful to you, please write to autoconf@gnu.org." >&5
30715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30716 whose name does not start with the host triplet.  If you think this
30717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30718 ac_tool_warned=yes ;;
30719 esac
30720     CC=$ac_ct_CC
30721   fi
30722 else
30723   CC="$ac_cv_prog_CC"
30724 fi
30725
30726 if test -z "$CC"; then
30727           if test -n "$ac_tool_prefix"; then
30728     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30729 set dummy ${ac_tool_prefix}cc; ac_word=$2
30730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30732 if test "${ac_cv_prog_CC+set}" = set; then
30733   echo $ECHO_N "(cached) $ECHO_C" >&6
30734 else
30735   if test -n "$CC"; then
30736   ac_cv_prog_CC="$CC" # Let the user override the test.
30737 else
30738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30739 for as_dir in $PATH
30740 do
30741   IFS=$as_save_IFS
30742   test -z "$as_dir" && as_dir=.
30743   for ac_exec_ext in '' $ac_executable_extensions; do
30744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30745     ac_cv_prog_CC="${ac_tool_prefix}cc"
30746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30747     break 2
30748   fi
30749 done
30750 done
30751 IFS=$as_save_IFS
30752
30753 fi
30754 fi
30755 CC=$ac_cv_prog_CC
30756 if test -n "$CC"; then
30757   { echo "$as_me:$LINENO: result: $CC" >&5
30758 echo "${ECHO_T}$CC" >&6; }
30759 else
30760   { echo "$as_me:$LINENO: result: no" >&5
30761 echo "${ECHO_T}no" >&6; }
30762 fi
30763
30764
30765   fi
30766 fi
30767 if test -z "$CC"; then
30768   # Extract the first word of "cc", so it can be a program name with args.
30769 set dummy cc; ac_word=$2
30770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30772 if test "${ac_cv_prog_CC+set}" = set; then
30773   echo $ECHO_N "(cached) $ECHO_C" >&6
30774 else
30775   if test -n "$CC"; then
30776   ac_cv_prog_CC="$CC" # Let the user override the test.
30777 else
30778   ac_prog_rejected=no
30779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30780 for as_dir in $PATH
30781 do
30782   IFS=$as_save_IFS
30783   test -z "$as_dir" && as_dir=.
30784   for ac_exec_ext in '' $ac_executable_extensions; do
30785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30786     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
30787        ac_prog_rejected=yes
30788        continue
30789      fi
30790     ac_cv_prog_CC="cc"
30791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30792     break 2
30793   fi
30794 done
30795 done
30796 IFS=$as_save_IFS
30797
30798 if test $ac_prog_rejected = yes; then
30799   # We found a bogon in the path, so make sure we never use it.
30800   set dummy $ac_cv_prog_CC
30801   shift
30802   if test $# != 0; then
30803     # We chose a different compiler from the bogus one.
30804     # However, it has the same basename, so the bogon will be chosen
30805     # first if we set CC to just the basename; use the full file name.
30806     shift
30807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
30808   fi
30809 fi
30810 fi
30811 fi
30812 CC=$ac_cv_prog_CC
30813 if test -n "$CC"; then
30814   { echo "$as_me:$LINENO: result: $CC" >&5
30815 echo "${ECHO_T}$CC" >&6; }
30816 else
30817   { echo "$as_me:$LINENO: result: no" >&5
30818 echo "${ECHO_T}no" >&6; }
30819 fi
30820
30821
30822 fi
30823 if test -z "$CC"; then
30824   if test -n "$ac_tool_prefix"; then
30825   for ac_prog in cl.exe
30826   do
30827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30831 if test "${ac_cv_prog_CC+set}" = set; then
30832   echo $ECHO_N "(cached) $ECHO_C" >&6
30833 else
30834   if test -n "$CC"; then
30835   ac_cv_prog_CC="$CC" # Let the user override the test.
30836 else
30837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30838 for as_dir in $PATH
30839 do
30840   IFS=$as_save_IFS
30841   test -z "$as_dir" && as_dir=.
30842   for ac_exec_ext in '' $ac_executable_extensions; do
30843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30844     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30846     break 2
30847   fi
30848 done
30849 done
30850 IFS=$as_save_IFS
30851
30852 fi
30853 fi
30854 CC=$ac_cv_prog_CC
30855 if test -n "$CC"; then
30856   { echo "$as_me:$LINENO: result: $CC" >&5
30857 echo "${ECHO_T}$CC" >&6; }
30858 else
30859   { echo "$as_me:$LINENO: result: no" >&5
30860 echo "${ECHO_T}no" >&6; }
30861 fi
30862
30863
30864     test -n "$CC" && break
30865   done
30866 fi
30867 if test -z "$CC"; then
30868   ac_ct_CC=$CC
30869   for ac_prog in cl.exe
30870 do
30871   # Extract the first word of "$ac_prog", so it can be a program name with args.
30872 set dummy $ac_prog; ac_word=$2
30873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30876   echo $ECHO_N "(cached) $ECHO_C" >&6
30877 else
30878   if test -n "$ac_ct_CC"; then
30879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30880 else
30881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30882 for as_dir in $PATH
30883 do
30884   IFS=$as_save_IFS
30885   test -z "$as_dir" && as_dir=.
30886   for ac_exec_ext in '' $ac_executable_extensions; do
30887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30888     ac_cv_prog_ac_ct_CC="$ac_prog"
30889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30890     break 2
30891   fi
30892 done
30893 done
30894 IFS=$as_save_IFS
30895
30896 fi
30897 fi
30898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30899 if test -n "$ac_ct_CC"; then
30900   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30901 echo "${ECHO_T}$ac_ct_CC" >&6; }
30902 else
30903   { echo "$as_me:$LINENO: result: no" >&5
30904 echo "${ECHO_T}no" >&6; }
30905 fi
30906
30907
30908   test -n "$ac_ct_CC" && break
30909 done
30910
30911   if test "x$ac_ct_CC" = x; then
30912     CC=""
30913   else
30914     case $cross_compiling:$ac_tool_warned in
30915 yes:)
30916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30917 whose name does not start with the host triplet.  If you think this
30918 configuration is useful to you, please write to autoconf@gnu.org." >&5
30919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30920 whose name does not start with the host triplet.  If you think this
30921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30922 ac_tool_warned=yes ;;
30923 esac
30924     CC=$ac_ct_CC
30925   fi
30926 fi
30927
30928 fi
30929
30930
30931 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
30932 See \`config.log' for more details." >&5
30933 echo "$as_me: error: no acceptable C compiler found in \$PATH
30934 See \`config.log' for more details." >&2;}
30935    { (exit 1); exit 1; }; }
30936
30937 # Provide some information about the compiler.
30938 echo "$as_me:$LINENO: checking for C compiler version" >&5
30939 ac_compiler=`set X $ac_compile; echo $2`
30940 { (ac_try="$ac_compiler --version >&5"
30941 case "(($ac_try" in
30942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943   *) ac_try_echo=$ac_try;;
30944 esac
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946   (eval "$ac_compiler --version >&5") 2>&5
30947   ac_status=$?
30948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949   (exit $ac_status); }
30950 { (ac_try="$ac_compiler -v >&5"
30951 case "(($ac_try" in
30952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953   *) ac_try_echo=$ac_try;;
30954 esac
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956   (eval "$ac_compiler -v >&5") 2>&5
30957   ac_status=$?
30958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959   (exit $ac_status); }
30960 { (ac_try="$ac_compiler -V >&5"
30961 case "(($ac_try" in
30962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963   *) ac_try_echo=$ac_try;;
30964 esac
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966   (eval "$ac_compiler -V >&5") 2>&5
30967   ac_status=$?
30968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969   (exit $ac_status); }
30970
30971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
30973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
30974   echo $ECHO_N "(cached) $ECHO_C" >&6
30975 else
30976   cat >conftest.$ac_ext <<_ACEOF
30977 /* confdefs.h.  */
30978 _ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h.  */
30982
30983 int
30984 main ()
30985 {
30986 #ifndef __GNUC__
30987        choke me
30988 #endif
30989
30990   ;
30991   return 0;
30992 }
30993 _ACEOF
30994 rm -f conftest.$ac_objext
30995 if { (ac_try="$ac_compile"
30996 case "(($ac_try" in
30997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998   *) ac_try_echo=$ac_try;;
30999 esac
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001   (eval "$ac_compile") 2>conftest.er1
31002   ac_status=$?
31003   grep -v '^ *+' conftest.er1 >conftest.err
31004   rm -f conftest.er1
31005   cat conftest.err >&5
31006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007   (exit $ac_status); } && {
31008          test -z "$ac_c_werror_flag" ||
31009          test ! -s conftest.err
31010        } && test -s conftest.$ac_objext; then
31011   ac_compiler_gnu=yes
31012 else
31013   echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31015
31016         ac_compiler_gnu=no
31017 fi
31018
31019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
31021
31022 fi
31023 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
31024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
31025 GCC=`test $ac_compiler_gnu = yes && echo yes`
31026 ac_test_CFLAGS=${CFLAGS+set}
31027 ac_save_CFLAGS=$CFLAGS
31028 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
31029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
31030 if test "${ac_cv_prog_cc_g+set}" = set; then
31031   echo $ECHO_N "(cached) $ECHO_C" >&6
31032 else
31033   ac_save_c_werror_flag=$ac_c_werror_flag
31034    ac_c_werror_flag=yes
31035    ac_cv_prog_cc_g=no
31036    CFLAGS="-g"
31037    cat >conftest.$ac_ext <<_ACEOF
31038 /* confdefs.h.  */
31039 _ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h.  */
31043
31044 int
31045 main ()
31046 {
31047
31048   ;
31049   return 0;
31050 }
31051 _ACEOF
31052 rm -f conftest.$ac_objext
31053 if { (ac_try="$ac_compile"
31054 case "(($ac_try" in
31055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056   *) ac_try_echo=$ac_try;;
31057 esac
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059   (eval "$ac_compile") 2>conftest.er1
31060   ac_status=$?
31061   grep -v '^ *+' conftest.er1 >conftest.err
31062   rm -f conftest.er1
31063   cat conftest.err >&5
31064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065   (exit $ac_status); } && {
31066          test -z "$ac_c_werror_flag" ||
31067          test ! -s conftest.err
31068        } && test -s conftest.$ac_objext; then
31069   ac_cv_prog_cc_g=yes
31070 else
31071   echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31073
31074         CFLAGS=""
31075       cat >conftest.$ac_ext <<_ACEOF
31076 /* confdefs.h.  */
31077 _ACEOF
31078 cat confdefs.h >>conftest.$ac_ext
31079 cat >>conftest.$ac_ext <<_ACEOF
31080 /* end confdefs.h.  */
31081
31082 int
31083 main ()
31084 {
31085
31086   ;
31087   return 0;
31088 }
31089 _ACEOF
31090 rm -f conftest.$ac_objext
31091 if { (ac_try="$ac_compile"
31092 case "(($ac_try" in
31093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31094   *) ac_try_echo=$ac_try;;
31095 esac
31096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097   (eval "$ac_compile") 2>conftest.er1
31098   ac_status=$?
31099   grep -v '^ *+' conftest.er1 >conftest.err
31100   rm -f conftest.er1
31101   cat conftest.err >&5
31102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103   (exit $ac_status); } && {
31104          test -z "$ac_c_werror_flag" ||
31105          test ! -s conftest.err
31106        } && test -s conftest.$ac_objext; then
31107   :
31108 else
31109   echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31111
31112         ac_c_werror_flag=$ac_save_c_werror_flag
31113          CFLAGS="-g"
31114          cat >conftest.$ac_ext <<_ACEOF
31115 /* confdefs.h.  */
31116 _ACEOF
31117 cat confdefs.h >>conftest.$ac_ext
31118 cat >>conftest.$ac_ext <<_ACEOF
31119 /* end confdefs.h.  */
31120
31121 int
31122 main ()
31123 {
31124
31125   ;
31126   return 0;
31127 }
31128 _ACEOF
31129 rm -f conftest.$ac_objext
31130 if { (ac_try="$ac_compile"
31131 case "(($ac_try" in
31132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31133   *) ac_try_echo=$ac_try;;
31134 esac
31135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31136   (eval "$ac_compile") 2>conftest.er1
31137   ac_status=$?
31138   grep -v '^ *+' conftest.er1 >conftest.err
31139   rm -f conftest.er1
31140   cat conftest.err >&5
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); } && {
31143          test -z "$ac_c_werror_flag" ||
31144          test ! -s conftest.err
31145        } && test -s conftest.$ac_objext; then
31146   ac_cv_prog_cc_g=yes
31147 else
31148   echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31150
31151
31152 fi
31153
31154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31155 fi
31156
31157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31158 fi
31159
31160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31161    ac_c_werror_flag=$ac_save_c_werror_flag
31162 fi
31163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
31164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
31165 if test "$ac_test_CFLAGS" = set; then
31166   CFLAGS=$ac_save_CFLAGS
31167 elif test $ac_cv_prog_cc_g = yes; then
31168   if test "$GCC" = yes; then
31169     CFLAGS="-g -O2"
31170   else
31171     CFLAGS="-g"
31172   fi
31173 else
31174   if test "$GCC" = yes; then
31175     CFLAGS="-O2"
31176   else
31177     CFLAGS=
31178   fi
31179 fi
31180 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
31181 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
31182 if test "${ac_cv_prog_cc_c89+set}" = set; then
31183   echo $ECHO_N "(cached) $ECHO_C" >&6
31184 else
31185   ac_cv_prog_cc_c89=no
31186 ac_save_CC=$CC
31187 cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193 #include <stdarg.h>
31194 #include <stdio.h>
31195 #include <sys/types.h>
31196 #include <sys/stat.h>
31197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
31198 struct buf { int x; };
31199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
31200 static char *e (p, i)
31201      char **p;
31202      int i;
31203 {
31204   return p[i];
31205 }
31206 static char *f (char * (*g) (char **, int), char **p, ...)
31207 {
31208   char *s;
31209   va_list v;
31210   va_start (v,p);
31211   s = g (p, va_arg (v,int));
31212   va_end (v);
31213   return s;
31214 }
31215
31216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
31217    function prototypes and stuff, but not '\xHH' hex character constants.
31218    These don't provoke an error unfortunately, instead are silently treated
31219    as 'x'.  The following induces an error, until -std is added to get
31220    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
31221    array size at least.  It's necessary to write '\x00'==0 to get something
31222    that's true only with -std.  */
31223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
31224
31225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
31226    inside strings and character constants.  */
31227 #define FOO(x) 'x'
31228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
31229
31230 int test (int i, double x);
31231 struct s1 {int (*f) (int a);};
31232 struct s2 {int (*f) (double a);};
31233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
31234 int argc;
31235 char **argv;
31236 int
31237 main ()
31238 {
31239 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
31240   ;
31241   return 0;
31242 }
31243 _ACEOF
31244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
31245         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
31246 do
31247   CC="$ac_save_CC $ac_arg"
31248   rm -f conftest.$ac_objext
31249 if { (ac_try="$ac_compile"
31250 case "(($ac_try" in
31251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252   *) ac_try_echo=$ac_try;;
31253 esac
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255   (eval "$ac_compile") 2>conftest.er1
31256   ac_status=$?
31257   grep -v '^ *+' conftest.er1 >conftest.err
31258   rm -f conftest.er1
31259   cat conftest.err >&5
31260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261   (exit $ac_status); } && {
31262          test -z "$ac_c_werror_flag" ||
31263          test ! -s conftest.err
31264        } && test -s conftest.$ac_objext; then
31265   ac_cv_prog_cc_c89=$ac_arg
31266 else
31267   echo "$as_me: failed program was:" >&5
31268 sed 's/^/| /' conftest.$ac_ext >&5
31269
31270
31271 fi
31272
31273 rm -f core conftest.err conftest.$ac_objext
31274   test "x$ac_cv_prog_cc_c89" != "xno" && break
31275 done
31276 rm -f conftest.$ac_ext
31277 CC=$ac_save_CC
31278
31279 fi
31280 # AC_CACHE_VAL
31281 case "x$ac_cv_prog_cc_c89" in
31282   x)
31283     { echo "$as_me:$LINENO: result: none needed" >&5
31284 echo "${ECHO_T}none needed" >&6; } ;;
31285   xno)
31286     { echo "$as_me:$LINENO: result: unsupported" >&5
31287 echo "${ECHO_T}unsupported" >&6; } ;;
31288   *)
31289     CC="$CC $ac_cv_prog_cc_c89"
31290     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
31291 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
31292 esac
31293
31294
31295 ac_ext=c
31296 ac_cpp='$CPP $CPPFLAGS'
31297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31300
31301 depcc="$CC"   am_compiler_list=
31302
31303 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
31304 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
31305 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
31306   echo $ECHO_N "(cached) $ECHO_C" >&6
31307 else
31308   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
31309   # We make a subdir and do the tests there.  Otherwise we can end up
31310   # making bogus files that we don't know about and never remove.  For
31311   # instance it was reported that on HP-UX the gcc test will end up
31312   # making a dummy file named `D' -- because `-MD' means `put the output
31313   # in D'.
31314   mkdir conftest.dir
31315   # Copy depcomp to subdir because otherwise we won't find it if we're
31316   # using a relative directory.
31317   cp "$am_depcomp" conftest.dir
31318   cd conftest.dir
31319   # We will build objects and dependencies in a subdirectory because
31320   # it helps to detect inapplicable dependency modes.  For instance
31321   # both Tru64's cc and ICC support -MD to output dependencies as a
31322   # side effect of compilation, but ICC will put the dependencies in
31323   # the current directory while Tru64 will put them in the object
31324   # directory.
31325   mkdir sub
31326
31327   am_cv_CC_dependencies_compiler_type=none
31328   if test "$am_compiler_list" = ""; then
31329      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31330   fi
31331   for depmode in $am_compiler_list; do
31332     # Setup a source with many dependencies, because some compilers
31333     # like to wrap large dependency lists on column 80 (with \), and
31334     # we should not choose a depcomp mode which is confused by this.
31335     #
31336     # We need to recreate these files for each test, as the compiler may
31337     # overwrite some of them when testing with obscure command lines.
31338     # This happens at least with the AIX C compiler.
31339     : > sub/conftest.c
31340     for i in 1 2 3 4 5 6; do
31341       echo '#include "conftst'$i'.h"' >> sub/conftest.c
31342       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
31343       # Solaris 8's {/usr,}/bin/sh.
31344       touch sub/conftst$i.h
31345     done
31346     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31347
31348     case $depmode in
31349     nosideeffect)
31350       # after this tag, mechanisms are not by side-effect, so they'll
31351       # only be used when explicitly requested
31352       if test "x$enable_dependency_tracking" = xyes; then
31353         continue
31354       else
31355         break
31356       fi
31357       ;;
31358     none) break ;;
31359     esac
31360     # We check with `-c' and `-o' for the sake of the "dashmstdout"
31361     # mode.  It turns out that the SunPro C++ compiler does not properly
31362     # handle `-M -o', and we need to detect this.
31363     if depmode=$depmode \
31364        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
31365        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
31366        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
31367          >/dev/null 2>conftest.err &&
31368        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
31369        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
31370        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
31371       # icc doesn't choke on unknown options, it will just issue warnings
31372       # or remarks (even with -Werror).  So we grep stderr for any message
31373       # that says an option was ignored or not supported.
31374       # When given -MP, icc 7.0 and 7.1 complain thusly:
31375       #   icc: Command line warning: ignoring option '-M'; no argument required
31376       # The diagnosis changed in icc 8.0:
31377       #   icc: Command line remark: option '-MP' not supported
31378       if (grep 'ignoring option' conftest.err ||
31379           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
31380         am_cv_CC_dependencies_compiler_type=$depmode
31381         break
31382       fi
31383     fi
31384   done
31385
31386   cd ..
31387   rm -rf conftest.dir
31388 else
31389   am_cv_CC_dependencies_compiler_type=none
31390 fi
31391
31392 fi
31393 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
31394 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
31395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
31396
31397
31398
31399 if
31400   test "x$enable_dependency_tracking" != xno \
31401   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
31402   am__fastdepCC_TRUE=
31403   am__fastdepCC_FALSE='#'
31404 else
31405   am__fastdepCC_TRUE='#'
31406   am__fastdepCC_FALSE=
31407 fi
31408
31409
31410 ac_ext=cpp
31411 ac_cpp='$CXXCPP $CPPFLAGS'
31412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31415
31416
31417 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
31419 if test "${ac_cv_c_const+set}" = set; then
31420   echo $ECHO_N "(cached) $ECHO_C" >&6
31421 else
31422   cat >conftest.$ac_ext <<_ACEOF
31423 /* confdefs.h.  */
31424 _ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h.  */
31428
31429 int
31430 main ()
31431 {
31432 /* FIXME: Include the comments suggested by Paul. */
31433 #ifndef __cplusplus
31434   /* Ultrix mips cc rejects this.  */
31435   typedef int charset[2];
31436   const charset cs;
31437   /* SunOS 4.1.1 cc rejects this.  */
31438   char const *const *pcpcc;
31439   char **ppc;
31440   /* NEC SVR4.0.2 mips cc rejects this.  */
31441   struct point {int x, y;};
31442   static struct point const zero = {0,0};
31443   /* AIX XL C 1.02.0.0 rejects this.
31444      It does not let you subtract one const X* pointer from another in
31445      an arm of an if-expression whose if-part is not a constant
31446      expression */
31447   const char *g = "string";
31448   pcpcc = &g + (g ? g-g : 0);
31449   /* HPUX 7.0 cc rejects these. */
31450   ++pcpcc;
31451   ppc = (char**) pcpcc;
31452   pcpcc = (char const *const *) ppc;
31453   { /* SCO 3.2v4 cc rejects this.  */
31454     char *t;
31455     char const *s = 0 ? (char *) 0 : (char const *) 0;
31456
31457     *t++ = 0;
31458     if (s) return 0;
31459   }
31460   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31461     int x[] = {25, 17};
31462     const int *foo = &x[0];
31463     ++foo;
31464   }
31465   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31466     typedef const int *iptr;
31467     iptr p = 0;
31468     ++p;
31469   }
31470   { /* AIX XL C 1.02.0.0 rejects this saying
31471        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31472     struct s { int j; const int *ap[3]; };
31473     struct s *b; b->j = 5;
31474   }
31475   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31476     const int foo = 10;
31477     if (!foo) return 0;
31478   }
31479   return !cs[0] && !zero.x;
31480 #endif
31481
31482   ;
31483   return 0;
31484 }
31485 _ACEOF
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490   *) ac_try_echo=$ac_try;;
31491 esac
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493   (eval "$ac_compile") 2>conftest.er1
31494   ac_status=$?
31495   grep -v '^ *+' conftest.er1 >conftest.err
31496   rm -f conftest.er1
31497   cat conftest.err >&5
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); } && {
31500          test -z "$ac_cxx_werror_flag" ||
31501          test ! -s conftest.err
31502        } && test -s conftest.$ac_objext; then
31503   ac_cv_c_const=yes
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508         ac_cv_c_const=no
31509 fi
31510
31511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31512 fi
31513 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31514 echo "${ECHO_T}$ac_cv_c_const" >&6; }
31515 if test $ac_cv_c_const = no; then
31516
31517 cat >>confdefs.h <<\_ACEOF
31518 #define const
31519 _ACEOF
31520
31521 fi
31522
31523 { echo "$as_me:$LINENO: checking for size_t" >&5
31524 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31525 if test "${ac_cv_type_size_t+set}" = set; then
31526   echo $ECHO_N "(cached) $ECHO_C" >&6
31527 else
31528   cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h.  */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h.  */
31534 $ac_includes_default
31535 typedef size_t ac__type_new_;
31536 int
31537 main ()
31538 {
31539 if ((ac__type_new_ *) 0)
31540   return 0;
31541 if (sizeof (ac__type_new_))
31542   return 0;
31543   ;
31544   return 0;
31545 }
31546 _ACEOF
31547 rm -f conftest.$ac_objext
31548 if { (ac_try="$ac_compile"
31549 case "(($ac_try" in
31550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551   *) ac_try_echo=$ac_try;;
31552 esac
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554   (eval "$ac_compile") 2>conftest.er1
31555   ac_status=$?
31556   grep -v '^ *+' conftest.er1 >conftest.err
31557   rm -f conftest.er1
31558   cat conftest.err >&5
31559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560   (exit $ac_status); } && {
31561          test -z "$ac_cxx_werror_flag" ||
31562          test ! -s conftest.err
31563        } && test -s conftest.$ac_objext; then
31564   ac_cv_type_size_t=yes
31565 else
31566   echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31568
31569         ac_cv_type_size_t=no
31570 fi
31571
31572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31573 fi
31574 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31575 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31576 if test $ac_cv_type_size_t = yes; then
31577   :
31578 else
31579
31580 cat >>confdefs.h <<_ACEOF
31581 #define size_t unsigned int
31582 _ACEOF
31583
31584 fi
31585
31586
31587 # Checks for libraries.
31588
31589
31590 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31591         if test -n "$ac_tool_prefix"; then
31592   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31593 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31596 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31597   echo $ECHO_N "(cached) $ECHO_C" >&6
31598 else
31599   case $PKG_CONFIG in
31600   [\\/]* | ?:[\\/]*)
31601   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31602   ;;
31603   *)
31604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31605 for as_dir in $PATH
31606 do
31607   IFS=$as_save_IFS
31608   test -z "$as_dir" && as_dir=.
31609   for ac_exec_ext in '' $ac_executable_extensions; do
31610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31611     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31613     break 2
31614   fi
31615 done
31616 done
31617 IFS=$as_save_IFS
31618
31619   ;;
31620 esac
31621 fi
31622 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31623 if test -n "$PKG_CONFIG"; then
31624   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31625 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31626 else
31627   { echo "$as_me:$LINENO: result: no" >&5
31628 echo "${ECHO_T}no" >&6; }
31629 fi
31630
31631
31632 fi
31633 if test -z "$ac_cv_path_PKG_CONFIG"; then
31634   ac_pt_PKG_CONFIG=$PKG_CONFIG
31635   # Extract the first word of "pkg-config", so it can be a program name with args.
31636 set dummy pkg-config; ac_word=$2
31637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31639 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31640   echo $ECHO_N "(cached) $ECHO_C" >&6
31641 else
31642   case $ac_pt_PKG_CONFIG in
31643   [\\/]* | ?:[\\/]*)
31644   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31645   ;;
31646   *)
31647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31648 for as_dir in $PATH
31649 do
31650   IFS=$as_save_IFS
31651   test -z "$as_dir" && as_dir=.
31652   for ac_exec_ext in '' $ac_executable_extensions; do
31653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31654     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31656     break 2
31657   fi
31658 done
31659 done
31660 IFS=$as_save_IFS
31661
31662   ;;
31663 esac
31664 fi
31665 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31666 if test -n "$ac_pt_PKG_CONFIG"; then
31667   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31668 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31669 else
31670   { echo "$as_me:$LINENO: result: no" >&5
31671 echo "${ECHO_T}no" >&6; }
31672 fi
31673
31674   if test "x$ac_pt_PKG_CONFIG" = x; then
31675     PKG_CONFIG=""
31676   else
31677     case $cross_compiling:$ac_tool_warned in
31678 yes:)
31679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31680 whose name does not start with the host triplet.  If you think this
31681 configuration is useful to you, please write to autoconf@gnu.org." >&5
31682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31683 whose name does not start with the host triplet.  If you think this
31684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31685 ac_tool_warned=yes ;;
31686 esac
31687     PKG_CONFIG=$ac_pt_PKG_CONFIG
31688   fi
31689 else
31690   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31691 fi
31692
31693 fi
31694 if test -n "$PKG_CONFIG"; then
31695         _pkg_min_version=0.9.0
31696         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31697 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31698         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31699                 { echo "$as_me:$LINENO: result: yes" >&5
31700 echo "${ECHO_T}yes" >&6; }
31701         else
31702                 { echo "$as_me:$LINENO: result: no" >&5
31703 echo "${ECHO_T}no" >&6; }
31704                 PKG_CONFIG=""
31705         fi
31706
31707 fi
31708
31709 pkg_failed=no
31710 { echo "$as_me:$LINENO: checking for LIBHANGUL" >&5
31711 echo $ECHO_N "checking for LIBHANGUL... $ECHO_C" >&6; }
31712
31713 if test -n "$PKG_CONFIG"; then
31714     if test -n "$LIBHANGUL_CFLAGS"; then
31715         pkg_cv_LIBHANGUL_CFLAGS="$LIBHANGUL_CFLAGS"
31716     else
31717         if test -n "$PKG_CONFIG" && \
31718     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhangul >= 0.0.4\"") >&5
31719   ($PKG_CONFIG --exists --print-errors "libhangul >= 0.0.4") 2>&5
31720   ac_status=$?
31721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722   (exit $ac_status); }; then
31723   pkg_cv_LIBHANGUL_CFLAGS=`$PKG_CONFIG --cflags "libhangul >= 0.0.4" 2>/dev/null`
31724 else
31725   pkg_failed=yes
31726 fi
31727     fi
31728 else
31729         pkg_failed=untried
31730 fi
31731 if test -n "$PKG_CONFIG"; then
31732     if test -n "$LIBHANGUL_LIBS"; then
31733         pkg_cv_LIBHANGUL_LIBS="$LIBHANGUL_LIBS"
31734     else
31735         if test -n "$PKG_CONFIG" && \
31736     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhangul >= 0.0.4\"") >&5
31737   ($PKG_CONFIG --exists --print-errors "libhangul >= 0.0.4") 2>&5
31738   ac_status=$?
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); }; then
31741   pkg_cv_LIBHANGUL_LIBS=`$PKG_CONFIG --libs "libhangul >= 0.0.4" 2>/dev/null`
31742 else
31743   pkg_failed=yes
31744 fi
31745     fi
31746 else
31747         pkg_failed=untried
31748 fi
31749
31750
31751
31752 if test $pkg_failed = yes; then
31753
31754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31755         _pkg_short_errors_supported=yes
31756 else
31757         _pkg_short_errors_supported=no
31758 fi
31759         if test $_pkg_short_errors_supported = yes; then
31760                 LIBHANGUL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libhangul >= 0.0.4"`
31761         else
31762                 LIBHANGUL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libhangul >= 0.0.4"`
31763         fi
31764         # Put the nasty error message in config.log where it belongs
31765         echo "$LIBHANGUL_PKG_ERRORS" >&5
31766
31767         { { echo "$as_me:$LINENO: error: Package requirements (libhangul >= 0.0.4) were not met:
31768
31769 $LIBHANGUL_PKG_ERRORS
31770
31771 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31772 installed software in a non-standard prefix.
31773
31774 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31775 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31776 See the pkg-config man page for more details.
31777 " >&5
31778 echo "$as_me: error: Package requirements (libhangul >= 0.0.4) were not met:
31779
31780 $LIBHANGUL_PKG_ERRORS
31781
31782 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31783 installed software in a non-standard prefix.
31784
31785 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31786 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31787 See the pkg-config man page for more details.
31788 " >&2;}
31789    { (exit 1); exit 1; }; }
31790 elif test $pkg_failed = untried; then
31791         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31792 is in your PATH or set the PKG_CONFIG environment variable to the full
31793 path to pkg-config.
31794
31795 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31796 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31797 See the pkg-config man page for more details.
31798
31799 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31800 See \`config.log' for more details." >&5
31801 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31802 is in your PATH or set the PKG_CONFIG environment variable to the full
31803 path to pkg-config.
31804
31805 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31806 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31807 See the pkg-config man page for more details.
31808
31809 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31810 See \`config.log' for more details." >&2;}
31811    { (exit 1); exit 1; }; }
31812 else
31813         LIBHANGUL_CFLAGS=$pkg_cv_LIBHANGUL_CFLAGS
31814         LIBHANGUL_LIBS=$pkg_cv_LIBHANGUL_LIBS
31815         { echo "$as_me:$LINENO: result: yes" >&5
31816 echo "${ECHO_T}yes" >&6; }
31817         :
31818 fi
31819
31820 SCIM_VERSION=0.99.8
31821
31822
31823 pkg_failed=no
31824 { echo "$as_me:$LINENO: checking for SCIM" >&5
31825 echo $ECHO_N "checking for SCIM... $ECHO_C" >&6; }
31826
31827 if test -n "$PKG_CONFIG"; then
31828     if test -n "$SCIM_CFLAGS"; then
31829         pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
31830     else
31831         if test -n "$PKG_CONFIG" && \
31832     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
31833   ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
31834   ac_status=$?
31835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836   (exit $ac_status); }; then
31837   pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
31838 else
31839   pkg_failed=yes
31840 fi
31841     fi
31842 else
31843         pkg_failed=untried
31844 fi
31845 if test -n "$PKG_CONFIG"; then
31846     if test -n "$SCIM_LIBS"; then
31847         pkg_cv_SCIM_LIBS="$SCIM_LIBS"
31848     else
31849         if test -n "$PKG_CONFIG" && \
31850     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
31851   ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
31852   ac_status=$?
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); }; then
31855   pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
31856 else
31857   pkg_failed=yes
31858 fi
31859     fi
31860 else
31861         pkg_failed=untried
31862 fi
31863
31864
31865
31866 if test $pkg_failed = yes; then
31867
31868 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31869         _pkg_short_errors_supported=yes
31870 else
31871         _pkg_short_errors_supported=no
31872 fi
31873         if test $_pkg_short_errors_supported = yes; then
31874                 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
31875         else
31876                 SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
31877         fi
31878         # Put the nasty error message in config.log where it belongs
31879         echo "$SCIM_PKG_ERRORS" >&5
31880
31881         { { echo "$as_me:$LINENO: error: Package requirements (scim >= $SCIM_VERSION) were not met:
31882
31883 $SCIM_PKG_ERRORS
31884
31885 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31886 installed software in a non-standard prefix.
31887
31888 Alternatively, you may set the environment variables SCIM_CFLAGS
31889 and SCIM_LIBS to avoid the need to call pkg-config.
31890 See the pkg-config man page for more details.
31891 " >&5
31892 echo "$as_me: error: Package requirements (scim >= $SCIM_VERSION) were not met:
31893
31894 $SCIM_PKG_ERRORS
31895
31896 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31897 installed software in a non-standard prefix.
31898
31899 Alternatively, you may set the environment variables SCIM_CFLAGS
31900 and SCIM_LIBS to avoid the need to call pkg-config.
31901 See the pkg-config man page for more details.
31902 " >&2;}
31903    { (exit 1); exit 1; }; }
31904 elif test $pkg_failed = untried; then
31905         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31906 is in your PATH or set the PKG_CONFIG environment variable to the full
31907 path to pkg-config.
31908
31909 Alternatively, you may set the environment variables SCIM_CFLAGS
31910 and SCIM_LIBS to avoid the need to call pkg-config.
31911 See the pkg-config man page for more details.
31912
31913 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31914 See \`config.log' for more details." >&5
31915 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31916 is in your PATH or set the PKG_CONFIG environment variable to the full
31917 path to pkg-config.
31918
31919 Alternatively, you may set the environment variables SCIM_CFLAGS
31920 and SCIM_LIBS to avoid the need to call pkg-config.
31921 See the pkg-config man page for more details.
31922
31923 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31924 See \`config.log' for more details." >&2;}
31925    { (exit 1); exit 1; }; }
31926 else
31927         SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
31928         SCIM_LIBS=$pkg_cv_SCIM_LIBS
31929         { echo "$as_me:$LINENO: result: yes" >&5
31930 echo "${ECHO_T}yes" >&6; }
31931         :
31932 fi
31933
31934 # Check if we should build setup module
31935
31936 pkg_failed=no
31937 { echo "$as_me:$LINENO: checking for SCIM_GTKUTILS" >&5
31938 echo $ECHO_N "checking for SCIM_GTKUTILS... $ECHO_C" >&6; }
31939
31940 if test -n "$PKG_CONFIG"; then
31941     if test -n "$SCIM_GTKUTILS_CFLAGS"; then
31942         pkg_cv_SCIM_GTKUTILS_CFLAGS="$SCIM_GTKUTILS_CFLAGS"
31943     else
31944         if test -n "$PKG_CONFIG" && \
31945     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
31946   ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
31947   ac_status=$?
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); }; then
31950   pkg_cv_SCIM_GTKUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
31951 else
31952   pkg_failed=yes
31953 fi
31954     fi
31955 else
31956         pkg_failed=untried
31957 fi
31958 if test -n "$PKG_CONFIG"; then
31959     if test -n "$SCIM_GTKUTILS_LIBS"; then
31960         pkg_cv_SCIM_GTKUTILS_LIBS="$SCIM_GTKUTILS_LIBS"
31961     else
31962         if test -n "$PKG_CONFIG" && \
31963     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
31964   ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
31965   ac_status=$?
31966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967   (exit $ac_status); }; then
31968   pkg_cv_SCIM_GTKUTILS_LIBS=`$PKG_CONFIG --libs "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
31969 else
31970   pkg_failed=yes
31971 fi
31972     fi
31973 else
31974         pkg_failed=untried
31975 fi
31976
31977
31978
31979 if test $pkg_failed = yes; then
31980
31981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31982         _pkg_short_errors_supported=yes
31983 else
31984         _pkg_short_errors_supported=no
31985 fi
31986         if test $_pkg_short_errors_supported = yes; then
31987                 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
31988         else
31989                 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
31990         fi
31991         # Put the nasty error message in config.log where it belongs
31992         echo "$SCIM_GTKUTILS_PKG_ERRORS" >&5
31993
31994         { echo "$as_me:$LINENO: result: no" >&5
31995 echo "${ECHO_T}no" >&6; }
31996                 SCIM_HAS_GTKUTILS=no
31997 elif test $pkg_failed = untried; then
31998         SCIM_HAS_GTKUTILS=no
31999 else
32000         SCIM_GTKUTILS_CFLAGS=$pkg_cv_SCIM_GTKUTILS_CFLAGS
32001         SCIM_GTKUTILS_LIBS=$pkg_cv_SCIM_GTKUTILS_LIBS
32002         { echo "$as_me:$LINENO: result: yes" >&5
32003 echo "${ECHO_T}yes" >&6; }
32004         SCIM_HAS_GTKUTILS=yes
32005 fi
32006
32007
32008
32009
32010
32011
32012 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
32013   SCIM_BUILD_SETUP_TRUE=
32014   SCIM_BUILD_SETUP_FALSE='#'
32015 else
32016   SCIM_BUILD_SETUP_TRUE='#'
32017   SCIM_BUILD_SETUP_FALSE=
32018 fi
32019
32020
32021 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
32022   SCIM_BUILD_SETUP=1
32023 else
32024   SCIM_BUILD_SETUP=0
32025 fi
32026
32027
32028
32029 # Checks for header files.
32030
32031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
32033 if test "${ac_cv_header_stdc+set}" = set; then
32034   echo $ECHO_N "(cached) $ECHO_C" >&6
32035 else
32036   cat >conftest.$ac_ext <<_ACEOF
32037 /* confdefs.h.  */
32038 _ACEOF
32039 cat confdefs.h >>conftest.$ac_ext
32040 cat >>conftest.$ac_ext <<_ACEOF
32041 /* end confdefs.h.  */
32042 #include <stdlib.h>
32043 #include <stdarg.h>
32044 #include <string.h>
32045 #include <float.h>
32046
32047 int
32048 main ()
32049 {
32050
32051   ;
32052   return 0;
32053 }
32054 _ACEOF
32055 rm -f conftest.$ac_objext
32056 if { (ac_try="$ac_compile"
32057 case "(($ac_try" in
32058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32059   *) ac_try_echo=$ac_try;;
32060 esac
32061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32062   (eval "$ac_compile") 2>conftest.er1
32063   ac_status=$?
32064   grep -v '^ *+' conftest.er1 >conftest.err
32065   rm -f conftest.er1
32066   cat conftest.err >&5
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); } && {
32069          test -z "$ac_cxx_werror_flag" ||
32070          test ! -s conftest.err
32071        } && test -s conftest.$ac_objext; then
32072   ac_cv_header_stdc=yes
32073 else
32074   echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32076
32077         ac_cv_header_stdc=no
32078 fi
32079
32080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32081
32082 if test $ac_cv_header_stdc = yes; then
32083   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32084   cat >conftest.$ac_ext <<_ACEOF
32085 /* confdefs.h.  */
32086 _ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h.  */
32090 #include <string.h>
32091
32092 _ACEOF
32093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32094   $EGREP "memchr" >/dev/null 2>&1; then
32095   :
32096 else
32097   ac_cv_header_stdc=no
32098 fi
32099 rm -f conftest*
32100
32101 fi
32102
32103 if test $ac_cv_header_stdc = yes; then
32104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32105   cat >conftest.$ac_ext <<_ACEOF
32106 /* confdefs.h.  */
32107 _ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h.  */
32111 #include <stdlib.h>
32112
32113 _ACEOF
32114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32115   $EGREP "free" >/dev/null 2>&1; then
32116   :
32117 else
32118   ac_cv_header_stdc=no
32119 fi
32120 rm -f conftest*
32121
32122 fi
32123
32124 if test $ac_cv_header_stdc = yes; then
32125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32126   if test "$cross_compiling" = yes; then
32127   :
32128 else
32129   cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h.  */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h.  */
32135 #include <ctype.h>
32136 #include <stdlib.h>
32137 #if ((' ' & 0x0FF) == 0x020)
32138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32140 #else
32141 # define ISLOWER(c) \
32142                    (('a' <= (c) && (c) <= 'i') \
32143                      || ('j' <= (c) && (c) <= 'r') \
32144                      || ('s' <= (c) && (c) <= 'z'))
32145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32146 #endif
32147
32148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32149 int
32150 main ()
32151 {
32152   int i;
32153   for (i = 0; i < 256; i++)
32154     if (XOR (islower (i), ISLOWER (i))
32155         || toupper (i) != TOUPPER (i))
32156       return 2;
32157   return 0;
32158 }
32159 _ACEOF
32160 rm -f conftest$ac_exeext
32161 if { (ac_try="$ac_link"
32162 case "(($ac_try" in
32163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164   *) ac_try_echo=$ac_try;;
32165 esac
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167   (eval "$ac_link") 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32171   { (case "(($ac_try" in
32172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173   *) ac_try_echo=$ac_try;;
32174 esac
32175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32176   (eval "$ac_try") 2>&5
32177   ac_status=$?
32178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179   (exit $ac_status); }; }; then
32180   :
32181 else
32182   echo "$as_me: program exited with status $ac_status" >&5
32183 echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32185
32186 ( exit $ac_status )
32187 ac_cv_header_stdc=no
32188 fi
32189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32190 fi
32191
32192
32193 fi
32194 fi
32195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
32197 if test $ac_cv_header_stdc = yes; then
32198
32199 cat >>confdefs.h <<\_ACEOF
32200 #define STDC_HEADERS 1
32201 _ACEOF
32202
32203 fi
32204
32205
32206 # Checks for library functions.
32207
32208
32209 # libtool option to control which symbols are exported
32210 # right now, symbols starting with _ are not exported
32211 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
32212
32213
32214 # Extra args.
32215 # Check whether --enable-debug was given.
32216 if test "${enable_debug+set}" = set; then
32217   enableval=$enable_debug; enable_debug=yes
32218 else
32219   enable_debug=no
32220 fi
32221
32222 if test "$enable_debug" = "yes"; then
32223
32224 cat >>confdefs.h <<\_ACEOF
32225 #define ENABLE_DEBUG 1
32226 _ACEOF
32227
32228     CFLAGS="$CFLAGS -g"
32229     CXXFLAGS="$CXXFLAGS -g"
32230 fi
32231
32232 # Check whether --enable-skim-support was given.
32233 if test "${enable_skim_support+set}" = set; then
32234   enableval=$enable_skim_support; skim_support=no
32235 else
32236   skim_support=yes
32237 fi
32238
32239
32240
32241
32242 if test "$skim_support" = "yes"; then
32243   SCIM_BUILD_SKIM_SETUP_TRUE=
32244   SCIM_BUILD_SKIM_SETUP_FALSE='#'
32245 else
32246   SCIM_BUILD_SKIM_SETUP_TRUE='#'
32247   SCIM_BUILD_SKIM_SETUP_FALSE=
32248 fi
32249
32250
32251 SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
32252 SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
32253 SCIM_DATADIR=`$PKG_CONFIG --variable=scimdatadir scim`
32254
32255 if test "x$SCIM_ICONDIR" = "x"; then
32256   SCIM_ICONDIR=${datadir}/scim/icons
32257 fi
32258
32259 if test "x$SCIM_MODULEDIR" = "x"; then
32260   SCIM_MODULEDIR=${libdir}/scim-1.0
32261 fi
32262
32263 if test "x$SCIM_DATADIR" = "x"; then
32264   SCIM_DATADIR=${datadir}/scim
32265 fi
32266
32267
32268
32269
32270
32271 SCIM_HANGUL_DATADIR=${SCIM_DATADIR}/hangul
32272
32273
32274 ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile src/Makefile data/Makefile scim-hangul.spec"
32275
32276
32277 if test "$skim_support" = "yes"; then
32278     REQUIRED_SKIM_VERSION=1.2.1
32279             kde_libsuffix=`kde-config --libsuffix`
32280     test -z "$KDEDIR" && KDEDIR=`kde-config --prefix`
32281
32282     export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDEDIR/lib${kde_libsuffix}/pkgconfig
32283
32284 pkg_failed=no
32285 { echo "$as_me:$LINENO: checking for SKIM" >&5
32286 echo $ECHO_N "checking for SKIM... $ECHO_C" >&6; }
32287
32288 if test -n "$PKG_CONFIG"; then
32289     if test -n "$SKIM_CFLAGS"; then
32290         pkg_cv_SKIM_CFLAGS="$SKIM_CFLAGS"
32291     else
32292         if test -n "$PKG_CONFIG" && \
32293     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
32294   ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
32295   ac_status=$?
32296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297   (exit $ac_status); }; then
32298   pkg_cv_SKIM_CFLAGS=`$PKG_CONFIG --cflags "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32299 else
32300   pkg_failed=yes
32301 fi
32302     fi
32303 else
32304         pkg_failed=untried
32305 fi
32306 if test -n "$PKG_CONFIG"; then
32307     if test -n "$SKIM_LIBS"; then
32308         pkg_cv_SKIM_LIBS="$SKIM_LIBS"
32309     else
32310         if test -n "$PKG_CONFIG" && \
32311     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
32312   ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
32313   ac_status=$?
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); }; then
32316   pkg_cv_SKIM_LIBS=`$PKG_CONFIG --libs "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32317 else
32318   pkg_failed=yes
32319 fi
32320     fi
32321 else
32322         pkg_failed=untried
32323 fi
32324
32325
32326
32327 if test $pkg_failed = yes; then
32328
32329 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32330         _pkg_short_errors_supported=yes
32331 else
32332         _pkg_short_errors_supported=no
32333 fi
32334         if test $_pkg_short_errors_supported = yes; then
32335                 SKIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
32336         else
32337                 SKIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
32338         fi
32339         # Put the nasty error message in config.log where it belongs
32340         echo "$SKIM_PKG_ERRORS" >&5
32341
32342         { echo "$as_me:$LINENO: result: no" >&5
32343 echo "${ECHO_T}no" >&6; }
32344                 HAS_SKIM=no
32345 elif test $pkg_failed = untried; then
32346         HAS_SKIM=no
32347 else
32348         SKIM_CFLAGS=$pkg_cv_SKIM_CFLAGS
32349         SKIM_LIBS=$pkg_cv_SKIM_LIBS
32350         { echo "$as_me:$LINENO: result: yes" >&5
32351 echo "${ECHO_T}yes" >&6; }
32352         HAS_SKIM=yes
32353 fi
32354 else
32355     HAS_SKIM=no
32356 fi
32357
32358 if test "x$HAS_SKIM" = "xyes"; then
32359
32360
32361 pkg_failed=no
32362 { echo "$as_me:$LINENO: checking for SCIM_KDEUTILS" >&5
32363 echo $ECHO_N "checking for SCIM_KDEUTILS... $ECHO_C" >&6; }
32364
32365 if test -n "$PKG_CONFIG"; then
32366     if test -n "$SCIM_KDEUTILS_CFLAGS"; then
32367         pkg_cv_SCIM_KDEUTILS_CFLAGS="$SCIM_KDEUTILS_CFLAGS"
32368     else
32369         if test -n "$PKG_CONFIG" && \
32370     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
32371   ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
32372   ac_status=$?
32373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374   (exit $ac_status); }; then
32375   pkg_cv_SCIM_KDEUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32376 else
32377   pkg_failed=yes
32378 fi
32379     fi
32380 else
32381         pkg_failed=untried
32382 fi
32383 if test -n "$PKG_CONFIG"; then
32384     if test -n "$SCIM_KDEUTILS_LIBS"; then
32385         pkg_cv_SCIM_KDEUTILS_LIBS="$SCIM_KDEUTILS_LIBS"
32386     else
32387         if test -n "$PKG_CONFIG" && \
32388     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
32389   ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
32390   ac_status=$?
32391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392   (exit $ac_status); }; then
32393   pkg_cv_SCIM_KDEUTILS_LIBS=`$PKG_CONFIG --libs "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32394 else
32395   pkg_failed=yes
32396 fi
32397     fi
32398 else
32399         pkg_failed=untried
32400 fi
32401
32402
32403
32404 if test $pkg_failed = yes; then
32405
32406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32407         _pkg_short_errors_supported=yes
32408 else
32409         _pkg_short_errors_supported=no
32410 fi
32411         if test $_pkg_short_errors_supported = yes; then
32412                 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
32413         else
32414                 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
32415         fi
32416         # Put the nasty error message in config.log where it belongs
32417         echo "$SCIM_KDEUTILS_PKG_ERRORS" >&5
32418
32419         { echo "$as_me:$LINENO: result: no" >&5
32420 echo "${ECHO_T}no" >&6; }
32421                 HAS_KDEUTILS=no
32422 elif test $pkg_failed = untried; then
32423         HAS_KDEUTILS=no
32424 else
32425         SCIM_KDEUTILS_CFLAGS=$pkg_cv_SCIM_KDEUTILS_CFLAGS
32426         SCIM_KDEUTILS_LIBS=$pkg_cv_SCIM_KDEUTILS_LIBS
32427         { echo "$as_me:$LINENO: result: yes" >&5
32428 echo "${ECHO_T}yes" >&6; }
32429         HAS_KDEUTILS=yes
32430 fi
32431
32432   if test "x$HAS_KDEUTILS" = "xyes"; then
32433       SCIM_HANGUL_ENABLE_SKIM_SUPPORT=1
32434       subdirs="$subdirs skim"
32435
32436   else
32437       SCIM_HANGUL_ENABLE_SKIM_SUPPORT=0
32438   fi
32439 fi
32440
32441
32442
32443 if test "$HAS_KDEUTILS" = "yes"; then
32444   SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE=
32445   SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE='#'
32446 else
32447   SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE='#'
32448   SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE=
32449 fi
32450
32451
32452
32453 cat >confcache <<\_ACEOF
32454 # This file is a shell script that caches the results of configure
32455 # tests run on this system so they can be shared between configure
32456 # scripts and configure runs, see configure's option --config-cache.
32457 # It is not useful on other systems.  If it contains results you don't
32458 # want to keep, you may remove or edit it.
32459 #
32460 # config.status only pays attention to the cache file if you give it
32461 # the --recheck option to rerun configure.
32462 #
32463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32465 # following values.
32466
32467 _ACEOF
32468
32469 # The following way of writing the cache mishandles newlines in values,
32470 # but we know of no workaround that is simple, portable, and efficient.
32471 # So, we kill variables containing newlines.
32472 # Ultrix sh set writes to stderr and can't be redirected directly,
32473 # and sets the high bit in the cache file unless we assign to the vars.
32474 (
32475   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32476     eval ac_val=\$$ac_var
32477     case $ac_val in #(
32478     *${as_nl}*)
32479       case $ac_var in #(
32480       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32482       esac
32483       case $ac_var in #(
32484       _ | IFS | as_nl) ;; #(
32485       *) $as_unset $ac_var ;;
32486       esac ;;
32487     esac
32488   done
32489
32490   (set) 2>&1 |
32491     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32492     *${as_nl}ac_space=\ *)
32493       # `set' does not quote correctly, so add quotes (double-quote
32494       # substitution turns \\\\ into \\, and sed turns \\ into \).
32495       sed -n \
32496         "s/'/'\\\\''/g;
32497           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32498       ;; #(
32499     *)
32500       # `set' quotes correctly as required by POSIX, so do not add quotes.
32501       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32502       ;;
32503     esac |
32504     sort
32505 ) |
32506   sed '
32507      /^ac_cv_env_/b end
32508      t clear
32509      :clear
32510      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32511      t end
32512      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32513      :end' >>confcache
32514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32515   if test -w "$cache_file"; then
32516     test "x$cache_file" != "x/dev/null" &&
32517       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32518 echo "$as_me: updating cache $cache_file" >&6;}
32519     cat confcache >$cache_file
32520   else
32521     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32523   fi
32524 fi
32525 rm -f confcache
32526
32527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32528 # Let make expand exec_prefix.
32529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32530
32531 DEFS=-DHAVE_CONFIG_H
32532
32533 ac_libobjs=
32534 ac_ltlibobjs=
32535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32536   # 1. Remove the extension, and $U if already installed.
32537   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32538   ac_i=`echo "$ac_i" | sed "$ac_script"`
32539   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32540   #    will be set to the directory where LIBOBJS objects are built.
32541   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32542   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32543 done
32544 LIBOBJS=$ac_libobjs
32545
32546 LTLIBOBJS=$ac_ltlibobjs
32547
32548
32549 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32550   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32551 Usually this means the macro was only invoked conditionally." >&5
32552 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32553 Usually this means the macro was only invoked conditionally." >&2;}
32554    { (exit 1); exit 1; }; }
32555 fi
32556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32557   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32558 Usually this means the macro was only invoked conditionally." >&5
32559 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32560 Usually this means the macro was only invoked conditionally." >&2;}
32561    { (exit 1); exit 1; }; }
32562 fi
32563 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32564   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32565 Usually this means the macro was only invoked conditionally." >&5
32566 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32567 Usually this means the macro was only invoked conditionally." >&2;}
32568    { (exit 1); exit 1; }; }
32569 fi
32570 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32571   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32572 Usually this means the macro was only invoked conditionally." >&5
32573 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32574 Usually this means the macro was only invoked conditionally." >&2;}
32575    { (exit 1); exit 1; }; }
32576 fi
32577 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32578   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32579 Usually this means the macro was only invoked conditionally." >&5
32580 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32581 Usually this means the macro was only invoked conditionally." >&2;}
32582    { (exit 1); exit 1; }; }
32583 fi
32584 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32585   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32586 Usually this means the macro was only invoked conditionally." >&5
32587 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32588 Usually this means the macro was only invoked conditionally." >&2;}
32589    { (exit 1); exit 1; }; }
32590 fi
32591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32592   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32593 Usually this means the macro was only invoked conditionally." >&5
32594 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32595 Usually this means the macro was only invoked conditionally." >&2;}
32596    { (exit 1); exit 1; }; }
32597 fi
32598 if test -z "${SCIM_BUILD_SETUP_TRUE}" && test -z "${SCIM_BUILD_SETUP_FALSE}"; then
32599   { { echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
32600 Usually this means the macro was only invoked conditionally." >&5
32601 echo "$as_me: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
32602 Usually this means the macro was only invoked conditionally." >&2;}
32603    { (exit 1); exit 1; }; }
32604 fi
32605 if test -z "${SCIM_BUILD_SKIM_SETUP_TRUE}" && test -z "${SCIM_BUILD_SKIM_SETUP_FALSE}"; then
32606   { { echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_SKIM_SETUP\" was never defined.
32607 Usually this means the macro was only invoked conditionally." >&5
32608 echo "$as_me: error: conditional \"SCIM_BUILD_SKIM_SETUP\" was never defined.
32609 Usually this means the macro was only invoked conditionally." >&2;}
32610    { (exit 1); exit 1; }; }
32611 fi
32612 if test -z "${SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE}" && test -z "${SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE}"; then
32613   { { echo "$as_me:$LINENO: error: conditional \"SCIM_HANGUL_ENABLE_SKIM_SUPPORT\" was never defined.
32614 Usually this means the macro was only invoked conditionally." >&5
32615 echo "$as_me: error: conditional \"SCIM_HANGUL_ENABLE_SKIM_SUPPORT\" was never defined.
32616 Usually this means the macro was only invoked conditionally." >&2;}
32617    { (exit 1); exit 1; }; }
32618 fi
32619
32620 : ${CONFIG_STATUS=./config.status}
32621 ac_clean_files_save=$ac_clean_files
32622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32623 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32624 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32625 cat >$CONFIG_STATUS <<_ACEOF
32626 #! $SHELL
32627 # Generated by $as_me.
32628 # Run this file to recreate the current configuration.
32629 # Compiler output produced by configure, useful for debugging
32630 # configure, is in config.log if it exists.
32631
32632 debug=false
32633 ac_cs_recheck=false
32634 ac_cs_silent=false
32635 SHELL=\${CONFIG_SHELL-$SHELL}
32636 _ACEOF
32637
32638 cat >>$CONFIG_STATUS <<\_ACEOF
32639 ## --------------------- ##
32640 ## M4sh Initialization.  ##
32641 ## --------------------- ##
32642
32643 # Be more Bourne compatible
32644 DUALCASE=1; export DUALCASE # for MKS sh
32645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32646   emulate sh
32647   NULLCMD=:
32648   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32649   # is contrary to our usage.  Disable this feature.
32650   alias -g '${1+"$@"}'='"$@"'
32651   setopt NO_GLOB_SUBST
32652 else
32653   case `(set -o) 2>/dev/null` in
32654   *posix*) set -o posix ;;
32655 esac
32656
32657 fi
32658
32659
32660
32661
32662 # PATH needs CR
32663 # Avoid depending upon Character Ranges.
32664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32667 as_cr_digits='0123456789'
32668 as_cr_alnum=$as_cr_Letters$as_cr_digits
32669
32670 # The user is always right.
32671 if test "${PATH_SEPARATOR+set}" != set; then
32672   echo "#! /bin/sh" >conf$$.sh
32673   echo  "exit 0"   >>conf$$.sh
32674   chmod +x conf$$.sh
32675   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32676     PATH_SEPARATOR=';'
32677   else
32678     PATH_SEPARATOR=:
32679   fi
32680   rm -f conf$$.sh
32681 fi
32682
32683 # Support unset when possible.
32684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32685   as_unset=unset
32686 else
32687   as_unset=false
32688 fi
32689
32690
32691 # IFS
32692 # We need space, tab and new line, in precisely that order.  Quoting is
32693 # there to prevent editors from complaining about space-tab.
32694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32695 # splitting by setting IFS to empty value.)
32696 as_nl='
32697 '
32698 IFS=" ""        $as_nl"
32699
32700 # Find who we are.  Look in the path if we contain no directory separator.
32701 case $0 in
32702   *[\\/]* ) as_myself=$0 ;;
32703   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32704 for as_dir in $PATH
32705 do
32706   IFS=$as_save_IFS
32707   test -z "$as_dir" && as_dir=.
32708   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32709 done
32710 IFS=$as_save_IFS
32711
32712      ;;
32713 esac
32714 # We did not find ourselves, most probably we were run as `sh COMMAND'
32715 # in which case we are not to be found in the path.
32716 if test "x$as_myself" = x; then
32717   as_myself=$0
32718 fi
32719 if test ! -f "$as_myself"; then
32720   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32721   { (exit 1); exit 1; }
32722 fi
32723
32724 # Work around bugs in pre-3.0 UWIN ksh.
32725 for as_var in ENV MAIL MAILPATH
32726 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32727 done
32728 PS1='$ '
32729 PS2='> '
32730 PS4='+ '
32731
32732 # NLS nuisances.
32733 for as_var in \
32734   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32735   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32736   LC_TELEPHONE LC_TIME
32737 do
32738   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32739     eval $as_var=C; export $as_var
32740   else
32741     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32742   fi
32743 done
32744
32745 # Required to use basename.
32746 if expr a : '\(a\)' >/dev/null 2>&1 &&
32747    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32748   as_expr=expr
32749 else
32750   as_expr=false
32751 fi
32752
32753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32754   as_basename=basename
32755 else
32756   as_basename=false
32757 fi
32758
32759
32760 # Name of the executable.
32761 as_me=`$as_basename -- "$0" ||
32762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32763          X"$0" : 'X\(//\)$' \| \
32764          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32765 echo X/"$0" |
32766     sed '/^.*\/\([^/][^/]*\)\/*$/{
32767             s//\1/
32768             q
32769           }
32770           /^X\/\(\/\/\)$/{
32771             s//\1/
32772             q
32773           }
32774           /^X\/\(\/\).*/{
32775             s//\1/
32776             q
32777           }
32778           s/.*/./; q'`
32779
32780 # CDPATH.
32781 $as_unset CDPATH
32782
32783
32784
32785   as_lineno_1=$LINENO
32786   as_lineno_2=$LINENO
32787   test "x$as_lineno_1" != "x$as_lineno_2" &&
32788   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32789
32790   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32791   # uniformly replaced by the line number.  The first 'sed' inserts a
32792   # line-number line after each line using $LINENO; the second 'sed'
32793   # does the real work.  The second script uses 'N' to pair each
32794   # line-number line with the line containing $LINENO, and appends
32795   # trailing '-' during substitution so that $LINENO is not a special
32796   # case at line end.
32797   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32798   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32799   # E. McMahon (1931-1989) for sed's syntax.  :-)
32800   sed -n '
32801     p
32802     /[$]LINENO/=
32803   ' <$as_myself |
32804     sed '
32805       s/[$]LINENO.*/&-/
32806       t lineno
32807       b
32808       :lineno
32809       N
32810       :loop
32811       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32812       t loop
32813       s/-\n.*//
32814     ' >$as_me.lineno &&
32815   chmod +x "$as_me.lineno" ||
32816     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32817    { (exit 1); exit 1; }; }
32818
32819   # Don't try to exec as it changes $[0], causing all sort of problems
32820   # (the dirname of $[0] is not the place where we might find the
32821   # original and so on.  Autoconf is especially sensitive to this).
32822   . "./$as_me.lineno"
32823   # Exit status is that of the last command.
32824   exit
32825 }
32826
32827
32828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32829   as_dirname=dirname
32830 else
32831   as_dirname=false
32832 fi
32833
32834 ECHO_C= ECHO_N= ECHO_T=
32835 case `echo -n x` in
32836 -n*)
32837   case `echo 'x\c'` in
32838   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32839   *)   ECHO_C='\c';;
32840   esac;;
32841 *)
32842   ECHO_N='-n';;
32843 esac
32844
32845 if expr a : '\(a\)' >/dev/null 2>&1 &&
32846    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32847   as_expr=expr
32848 else
32849   as_expr=false
32850 fi
32851
32852 rm -f conf$$ conf$$.exe conf$$.file
32853 if test -d conf$$.dir; then
32854   rm -f conf$$.dir/conf$$.file
32855 else
32856   rm -f conf$$.dir
32857   mkdir conf$$.dir
32858 fi
32859 echo >conf$$.file
32860 if ln -s conf$$.file conf$$ 2>/dev/null; then
32861   as_ln_s='ln -s'
32862   # ... but there are two gotchas:
32863   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32864   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32865   # In both cases, we have to default to `cp -p'.
32866   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32867     as_ln_s='cp -p'
32868 elif ln conf$$.file conf$$ 2>/dev/null; then
32869   as_ln_s=ln
32870 else
32871   as_ln_s='cp -p'
32872 fi
32873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32874 rmdir conf$$.dir 2>/dev/null
32875
32876 if mkdir -p . 2>/dev/null; then
32877   as_mkdir_p=:
32878 else
32879   test -d ./-p && rmdir ./-p
32880   as_mkdir_p=false
32881 fi
32882
32883 if test -x / >/dev/null 2>&1; then
32884   as_test_x='test -x'
32885 else
32886   if ls -dL / >/dev/null 2>&1; then
32887     as_ls_L_option=L
32888   else
32889     as_ls_L_option=
32890   fi
32891   as_test_x='
32892     eval sh -c '\''
32893       if test -d "$1"; then
32894         test -d "$1/.";
32895       else
32896         case $1 in
32897         -*)set "./$1";;
32898         esac;
32899         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32900         ???[sx]*):;;*)false;;esac;fi
32901     '\'' sh
32902   '
32903 fi
32904 as_executable_p=$as_test_x
32905
32906 # Sed expression to map a string onto a valid CPP name.
32907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32908
32909 # Sed expression to map a string onto a valid variable name.
32910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32911
32912
32913 exec 6>&1
32914
32915 # Save the log message, to keep $[0] and so on meaningful, and to
32916 # report actual input values of CONFIG_FILES etc. instead of their
32917 # values after options handling.
32918 ac_log="
32919 This file was extended by scim-hangul $as_me 0.3.2, which was
32920 generated by GNU Autoconf 2.61.  Invocation command line was
32921
32922   CONFIG_FILES    = $CONFIG_FILES
32923   CONFIG_HEADERS  = $CONFIG_HEADERS
32924   CONFIG_LINKS    = $CONFIG_LINKS
32925   CONFIG_COMMANDS = $CONFIG_COMMANDS
32926   $ $0 $@
32927
32928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32929 "
32930
32931 _ACEOF
32932
32933 cat >>$CONFIG_STATUS <<_ACEOF
32934 # Files that config.status was made for.
32935 config_files="$ac_config_files"
32936 config_headers="$ac_config_headers"
32937 config_commands="$ac_config_commands"
32938
32939 _ACEOF
32940
32941 cat >>$CONFIG_STATUS <<\_ACEOF
32942 ac_cs_usage="\
32943 \`$as_me' instantiates files from templates according to the
32944 current configuration.
32945
32946 Usage: $0 [OPTIONS] [FILE]...
32947
32948   -h, --help       print this help, then exit
32949   -V, --version    print version number and configuration settings, then exit
32950   -q, --quiet      do not print progress messages
32951   -d, --debug      don't remove temporary files
32952       --recheck    update $as_me by reconfiguring in the same conditions
32953   --file=FILE[:TEMPLATE]
32954                    instantiate the configuration file FILE
32955   --header=FILE[:TEMPLATE]
32956                    instantiate the configuration header FILE
32957
32958 Configuration files:
32959 $config_files
32960
32961 Configuration headers:
32962 $config_headers
32963
32964 Configuration commands:
32965 $config_commands
32966
32967 Report bugs to <bug-autoconf@gnu.org>."
32968
32969 _ACEOF
32970 cat >>$CONFIG_STATUS <<_ACEOF
32971 ac_cs_version="\\
32972 scim-hangul config.status 0.3.2
32973 configured by $0, generated by GNU Autoconf 2.61,
32974   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32975
32976 Copyright (C) 2006 Free Software Foundation, Inc.
32977 This config.status script is free software; the Free Software Foundation
32978 gives unlimited permission to copy, distribute and modify it."
32979
32980 ac_pwd='$ac_pwd'
32981 srcdir='$srcdir'
32982 INSTALL='$INSTALL'
32983 _ACEOF
32984
32985 cat >>$CONFIG_STATUS <<\_ACEOF
32986 # If no file are specified by the user, then we need to provide default
32987 # value.  By we need to know if files were specified by the user.
32988 ac_need_defaults=:
32989 while test $# != 0
32990 do
32991   case $1 in
32992   --*=*)
32993     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32994     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32995     ac_shift=:
32996     ;;
32997   *)
32998     ac_option=$1
32999     ac_optarg=$2
33000     ac_shift=shift
33001     ;;
33002   esac
33003
33004   case $ac_option in
33005   # Handling of the options.
33006   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33007     ac_cs_recheck=: ;;
33008   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33009     echo "$ac_cs_version"; exit ;;
33010   --debug | --debu | --deb | --de | --d | -d )
33011     debug=: ;;
33012   --file | --fil | --fi | --f )
33013     $ac_shift
33014     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33015     ac_need_defaults=false;;
33016   --header | --heade | --head | --hea )
33017     $ac_shift
33018     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33019     ac_need_defaults=false;;
33020   --he | --h)
33021     # Conflict between --help and --header
33022     { echo "$as_me: error: ambiguous option: $1
33023 Try \`$0 --help' for more information." >&2
33024    { (exit 1); exit 1; }; };;
33025   --help | --hel | -h )
33026     echo "$ac_cs_usage"; exit ;;
33027   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33028   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33029     ac_cs_silent=: ;;
33030
33031   # This is an error.
33032   -*) { echo "$as_me: error: unrecognized option: $1
33033 Try \`$0 --help' for more information." >&2
33034    { (exit 1); exit 1; }; } ;;
33035
33036   *) ac_config_targets="$ac_config_targets $1"
33037      ac_need_defaults=false ;;
33038
33039   esac
33040   shift
33041 done
33042
33043 ac_configure_extra_args=
33044
33045 if $ac_cs_silent; then
33046   exec 6>/dev/null
33047   ac_configure_extra_args="$ac_configure_extra_args --silent"
33048 fi
33049
33050 _ACEOF
33051 cat >>$CONFIG_STATUS <<_ACEOF
33052 if \$ac_cs_recheck; then
33053   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33054   CONFIG_SHELL=$SHELL
33055   export CONFIG_SHELL
33056   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33057 fi
33058
33059 _ACEOF
33060 cat >>$CONFIG_STATUS <<\_ACEOF
33061 exec 5>>config.log
33062 {
33063   echo
33064   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33065 ## Running $as_me. ##
33066 _ASBOX
33067   echo "$ac_log"
33068 } >&5
33069
33070 _ACEOF
33071 cat >>$CONFIG_STATUS <<_ACEOF
33072 #
33073 # INIT-COMMANDS
33074 #
33075 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33076     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33077     # from automake.
33078     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33079     # Capture the value of LINGUAS because we need it to compute CATALOGS.
33080     LINGUAS="${LINGUAS-%UNSET%}"
33081
33082 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33083
33084 _ACEOF
33085
33086 cat >>$CONFIG_STATUS <<\_ACEOF
33087
33088 # Handling of arguments.
33089 for ac_config_target in $ac_config_targets
33090 do
33091   case $ac_config_target in
33092     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33093     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33094     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33095     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33096     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33097     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33098     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33099     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33100     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
33101     "scim-hangul.spec") CONFIG_FILES="$CONFIG_FILES scim-hangul.spec" ;;
33102
33103   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33104 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33105    { (exit 1); exit 1; }; };;
33106   esac
33107 done
33108
33109
33110 # If the user did not use the arguments to specify the items to instantiate,
33111 # then the envvar interface is used.  Set only those that are not.
33112 # We use the long form for the default assignment because of an extremely
33113 # bizarre bug on SunOS 4.1.3.
33114 if $ac_need_defaults; then
33115   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33116   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33117   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33118 fi
33119
33120 # Have a temporary directory for convenience.  Make it in the build tree
33121 # simply because there is no reason against having it here, and in addition,
33122 # creating and moving files from /tmp can sometimes cause problems.
33123 # Hook for its removal unless debugging.
33124 # Note that there is a small window in which the directory will not be cleaned:
33125 # after its creation but before its name has been assigned to `$tmp'.
33126 $debug ||
33127 {
33128   tmp=
33129   trap 'exit_status=$?
33130   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33131 ' 0
33132   trap '{ (exit 1); exit 1; }' 1 2 13 15
33133 }
33134 # Create a (secure) tmp directory for tmp files.
33135
33136 {
33137   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33138   test -n "$tmp" && test -d "$tmp"
33139 }  ||
33140 {
33141   tmp=./conf$$-$RANDOM
33142   (umask 077 && mkdir "$tmp")
33143 } ||
33144 {
33145    echo "$me: cannot create a temporary directory in ." >&2
33146    { (exit 1); exit 1; }
33147 }
33148
33149 #
33150 # Set up the sed scripts for CONFIG_FILES section.
33151 #
33152
33153 # No need to generate the scripts if there are no CONFIG_FILES.
33154 # This happens for instance when ./config.status config.h
33155 if test -n "$CONFIG_FILES"; then
33156
33157 _ACEOF
33158
33159
33160
33161 ac_delim='%!_!# '
33162 for ac_last_try in false false false false false :; do
33163   cat >conf$$subs.sed <<_ACEOF
33164 SHELL!$SHELL$ac_delim
33165 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33166 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33167 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33168 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33169 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33170 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33171 exec_prefix!$exec_prefix$ac_delim
33172 prefix!$prefix$ac_delim
33173 program_transform_name!$program_transform_name$ac_delim
33174 bindir!$bindir$ac_delim
33175 sbindir!$sbindir$ac_delim
33176 libexecdir!$libexecdir$ac_delim
33177 datarootdir!$datarootdir$ac_delim
33178 datadir!$datadir$ac_delim
33179 sysconfdir!$sysconfdir$ac_delim
33180 sharedstatedir!$sharedstatedir$ac_delim
33181 localstatedir!$localstatedir$ac_delim
33182 includedir!$includedir$ac_delim
33183 oldincludedir!$oldincludedir$ac_delim
33184 docdir!$docdir$ac_delim
33185 infodir!$infodir$ac_delim
33186 htmldir!$htmldir$ac_delim
33187 dvidir!$dvidir$ac_delim
33188 pdfdir!$pdfdir$ac_delim
33189 psdir!$psdir$ac_delim
33190 libdir!$libdir$ac_delim
33191 localedir!$localedir$ac_delim
33192 mandir!$mandir$ac_delim
33193 DEFS!$DEFS$ac_delim
33194 ECHO_C!$ECHO_C$ac_delim
33195 ECHO_N!$ECHO_N$ac_delim
33196 ECHO_T!$ECHO_T$ac_delim
33197 LIBS!$LIBS$ac_delim
33198 build_alias!$build_alias$ac_delim
33199 host_alias!$host_alias$ac_delim
33200 target_alias!$target_alias$ac_delim
33201 SCIM_HANGUL_MAJOR_VERSION!$SCIM_HANGUL_MAJOR_VERSION$ac_delim
33202 SCIM_HANGUL_MINOR_VERSION!$SCIM_HANGUL_MINOR_VERSION$ac_delim
33203 SCIM_HANGUL_MICRO_VERSION!$SCIM_HANGUL_MICRO_VERSION$ac_delim
33204 SCIM_HANGUL_VERSION!$SCIM_HANGUL_VERSION$ac_delim
33205 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33206 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33207 INSTALL_DATA!$INSTALL_DATA$ac_delim
33208 CYGPATH_W!$CYGPATH_W$ac_delim
33209 PACKAGE!$PACKAGE$ac_delim
33210 VERSION!$VERSION$ac_delim
33211 ACLOCAL!$ACLOCAL$ac_delim
33212 AUTOCONF!$AUTOCONF$ac_delim
33213 AUTOMAKE!$AUTOMAKE$ac_delim
33214 AUTOHEADER!$AUTOHEADER$ac_delim
33215 MAKEINFO!$MAKEINFO$ac_delim
33216 install_sh!$install_sh$ac_delim
33217 STRIP!$STRIP$ac_delim
33218 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
33219 mkdir_p!$mkdir_p$ac_delim
33220 AWK!$AWK$ac_delim
33221 SET_MAKE!$SET_MAKE$ac_delim
33222 am__leading_dot!$am__leading_dot$ac_delim
33223 AMTAR!$AMTAR$ac_delim
33224 am__tar!$am__tar$ac_delim
33225 am__untar!$am__untar$ac_delim
33226 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
33227 USE_NLS!$USE_NLS$ac_delim
33228 MSGFMT!$MSGFMT$ac_delim
33229 GMSGFMT!$GMSGFMT$ac_delim
33230 XGETTEXT!$XGETTEXT$ac_delim
33231 MSGMERGE!$MSGMERGE$ac_delim
33232 CC!$CC$ac_delim
33233 CFLAGS!$CFLAGS$ac_delim
33234 LDFLAGS!$LDFLAGS$ac_delim
33235 CPPFLAGS!$CPPFLAGS$ac_delim
33236 ac_ct_CC!$ac_ct_CC$ac_delim
33237 EXEEXT!$EXEEXT$ac_delim
33238 OBJEXT!$OBJEXT$ac_delim
33239 DEPDIR!$DEPDIR$ac_delim
33240 am__include!$am__include$ac_delim
33241 am__quote!$am__quote$ac_delim
33242 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
33243 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
33244 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
33245 CCDEPMODE!$CCDEPMODE$ac_delim
33246 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
33247 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
33248 build!$build$ac_delim
33249 build_cpu!$build_cpu$ac_delim
33250 build_vendor!$build_vendor$ac_delim
33251 build_os!$build_os$ac_delim
33252 host!$host$ac_delim
33253 host_cpu!$host_cpu$ac_delim
33254 host_vendor!$host_vendor$ac_delim
33255 host_os!$host_os$ac_delim
33256 CPP!$CPP$ac_delim
33257 GREP!$GREP$ac_delim
33258 EGREP!$EGREP$ac_delim
33259 GLIBC2!$GLIBC2$ac_delim
33260 RANLIB!$RANLIB$ac_delim
33261 _ACEOF
33262
33263   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33264     break
33265   elif $ac_last_try; then
33266     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33267 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33268    { (exit 1); exit 1; }; }
33269   else
33270     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33271   fi
33272 done
33273
33274 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33275 if test -n "$ac_eof"; then
33276   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33277   ac_eof=`expr $ac_eof + 1`
33278 fi
33279
33280 cat >>$CONFIG_STATUS <<_ACEOF
33281 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33283 _ACEOF
33284 sed '
33285 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33286 s/^/s,@/; s/!/@,|#_!!_#|/
33287 :n
33288 t n
33289 s/'"$ac_delim"'$/,g/; t
33290 s/$/\\/; p
33291 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33292 ' >>$CONFIG_STATUS <conf$$subs.sed
33293 rm -f conf$$subs.sed
33294 cat >>$CONFIG_STATUS <<_ACEOF
33295 CEOF$ac_eof
33296 _ACEOF
33297
33298
33299 ac_delim='%!_!# '
33300 for ac_last_try in false false false false false :; do
33301   cat >conf$$subs.sed <<_ACEOF
33302 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
33303 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
33304 ALLOCA!$ALLOCA$ac_delim
33305 LIBPTH!$LIBPTH$ac_delim
33306 LTLIBPTH!$LTLIBPTH$ac_delim
33307 LIBTHREAD!$LIBTHREAD$ac_delim
33308 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
33309 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
33310 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
33311 LIBICONV!$LIBICONV$ac_delim
33312 LTLIBICONV!$LTLIBICONV$ac_delim
33313 INTLBISON!$INTLBISON$ac_delim
33314 GLIBC21!$GLIBC21$ac_delim
33315 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
33316 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
33317 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
33318 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
33319 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
33320 WOE32DLL!$WOE32DLL$ac_delim
33321 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
33322 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
33323 CATOBJEXT!$CATOBJEXT$ac_delim
33324 DATADIRNAME!$DATADIRNAME$ac_delim
33325 INSTOBJEXT!$INSTOBJEXT$ac_delim
33326 GENCAT!$GENCAT$ac_delim
33327 INTLOBJS!$INTLOBJS$ac_delim
33328 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
33329 INTLLIBS!$INTLLIBS$ac_delim
33330 LIBINTL!$LIBINTL$ac_delim
33331 LTLIBINTL!$LTLIBINTL$ac_delim
33332 POSUB!$POSUB$ac_delim
33333 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
33334 SED!$SED$ac_delim
33335 LN_S!$LN_S$ac_delim
33336 ECHO!$ECHO$ac_delim
33337 AR!$AR$ac_delim
33338 CXX!$CXX$ac_delim
33339 CXXFLAGS!$CXXFLAGS$ac_delim
33340 ac_ct_CXX!$ac_ct_CXX$ac_delim
33341 CXXDEPMODE!$CXXDEPMODE$ac_delim
33342 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
33343 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
33344 CXXCPP!$CXXCPP$ac_delim
33345 F77!$F77$ac_delim
33346 FFLAGS!$FFLAGS$ac_delim
33347 ac_ct_F77!$ac_ct_F77$ac_delim
33348 LIBTOOL!$LIBTOOL$ac_delim
33349 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33350 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33351 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33352 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33353 LIBADD_DL!$LIBADD_DL$ac_delim
33354 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
33355 PKG_CONFIG!$PKG_CONFIG$ac_delim
33356 LIBHANGUL_CFLAGS!$LIBHANGUL_CFLAGS$ac_delim
33357 LIBHANGUL_LIBS!$LIBHANGUL_LIBS$ac_delim
33358 SCIM_CFLAGS!$SCIM_CFLAGS$ac_delim
33359 SCIM_LIBS!$SCIM_LIBS$ac_delim
33360 SCIM_GTKUTILS_CFLAGS!$SCIM_GTKUTILS_CFLAGS$ac_delim
33361 SCIM_GTKUTILS_LIBS!$SCIM_GTKUTILS_LIBS$ac_delim
33362 SCIM_VERSION!$SCIM_VERSION$ac_delim
33363 SCIM_BUILD_SETUP_TRUE!$SCIM_BUILD_SETUP_TRUE$ac_delim
33364 SCIM_BUILD_SETUP_FALSE!$SCIM_BUILD_SETUP_FALSE$ac_delim
33365 SCIM_BUILD_SETUP!$SCIM_BUILD_SETUP$ac_delim
33366 ac_aux_dir!$ac_aux_dir$ac_delim
33367 LIBTOOL_EXPORT_OPTIONS!$LIBTOOL_EXPORT_OPTIONS$ac_delim
33368 SCIM_BUILD_SKIM_SETUP_TRUE!$SCIM_BUILD_SKIM_SETUP_TRUE$ac_delim
33369 SCIM_BUILD_SKIM_SETUP_FALSE!$SCIM_BUILD_SKIM_SETUP_FALSE$ac_delim
33370 SCIM_ICONDIR!$SCIM_ICONDIR$ac_delim
33371 SCIM_MODULEDIR!$SCIM_MODULEDIR$ac_delim
33372 SCIM_DATADIR!$SCIM_DATADIR$ac_delim
33373 SCIM_HANGUL_DATADIR!$SCIM_HANGUL_DATADIR$ac_delim
33374 KDEDIR!$KDEDIR$ac_delim
33375 SKIM_CFLAGS!$SKIM_CFLAGS$ac_delim
33376 SKIM_LIBS!$SKIM_LIBS$ac_delim
33377 SCIM_KDEUTILS_CFLAGS!$SCIM_KDEUTILS_CFLAGS$ac_delim
33378 SCIM_KDEUTILS_LIBS!$SCIM_KDEUTILS_LIBS$ac_delim
33379 subdirs!$subdirs$ac_delim
33380 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE!$SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE$ac_delim
33381 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE!$SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE$ac_delim
33382 SCIM_HANGUL_ENABLE_SKIM_SUPPORT!$SCIM_HANGUL_ENABLE_SKIM_SUPPORT$ac_delim
33383 LIBOBJS!$LIBOBJS$ac_delim
33384 LTLIBOBJS!$LTLIBOBJS$ac_delim
33385 _ACEOF
33386
33387   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
33388     break
33389   elif $ac_last_try; then
33390     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33392    { (exit 1); exit 1; }; }
33393   else
33394     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33395   fi
33396 done
33397
33398 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33399 if test -n "$ac_eof"; then
33400   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33401   ac_eof=`expr $ac_eof + 1`
33402 fi
33403
33404 cat >>$CONFIG_STATUS <<_ACEOF
33405 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33407 _ACEOF
33408 sed '
33409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33410 s/^/s,@/; s/!/@,|#_!!_#|/
33411 :n
33412 t n
33413 s/'"$ac_delim"'$/,g/; t
33414 s/$/\\/; p
33415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33416 ' >>$CONFIG_STATUS <conf$$subs.sed
33417 rm -f conf$$subs.sed
33418 cat >>$CONFIG_STATUS <<_ACEOF
33419 :end
33420 s/|#_!!_#|//g
33421 CEOF$ac_eof
33422 _ACEOF
33423
33424
33425 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33426 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33427 # trailing colons and then remove the whole line if VPATH becomes empty
33428 # (actually we leave an empty line to preserve line numbers).
33429 if test "x$srcdir" = x.; then
33430   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33431 s/:*\$(srcdir):*/:/
33432 s/:*\${srcdir}:*/:/
33433 s/:*@srcdir@:*/:/
33434 s/^\([^=]*=[     ]*\):*/\1/
33435 s/:*$//
33436 s/^[^=]*=[       ]*$//
33437 }'
33438 fi
33439
33440 cat >>$CONFIG_STATUS <<\_ACEOF
33441 fi # test -n "$CONFIG_FILES"
33442
33443
33444 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
33445 do
33446   case $ac_tag in
33447   :[FHLC]) ac_mode=$ac_tag; continue;;
33448   esac
33449   case $ac_mode$ac_tag in
33450   :[FHL]*:*);;
33451   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33452 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33453    { (exit 1); exit 1; }; };;
33454   :[FH]-) ac_tag=-:-;;
33455   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33456   esac
33457   ac_save_IFS=$IFS
33458   IFS=:
33459   set x $ac_tag
33460   IFS=$ac_save_IFS
33461   shift
33462   ac_file=$1
33463   shift
33464
33465   case $ac_mode in
33466   :L) ac_source=$1;;
33467   :[FH])
33468     ac_file_inputs=
33469     for ac_f
33470     do
33471       case $ac_f in
33472       -) ac_f="$tmp/stdin";;
33473       *) # Look for the file first in the build tree, then in the source tree
33474          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33475          # because $ac_f cannot contain `:'.
33476          test -f "$ac_f" ||
33477            case $ac_f in
33478            [\\/$]*) false;;
33479            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33480            esac ||
33481            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33482 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33483    { (exit 1); exit 1; }; };;
33484       esac
33485       ac_file_inputs="$ac_file_inputs $ac_f"
33486     done
33487
33488     # Let's still pretend it is `configure' which instantiates (i.e., don't
33489     # use $as_me), people would be surprised to read:
33490     #    /* config.h.  Generated by config.status.  */
33491     configure_input="Generated from "`IFS=:
33492           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33493     if test x"$ac_file" != x-; then
33494       configure_input="$ac_file.  $configure_input"
33495       { echo "$as_me:$LINENO: creating $ac_file" >&5
33496 echo "$as_me: creating $ac_file" >&6;}
33497     fi
33498
33499     case $ac_tag in
33500     *:-:* | *:-) cat >"$tmp/stdin";;
33501     esac
33502     ;;
33503   esac
33504
33505   ac_dir=`$as_dirname -- "$ac_file" ||
33506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33507          X"$ac_file" : 'X\(//\)[^/]' \| \
33508          X"$ac_file" : 'X\(//\)$' \| \
33509          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33510 echo X"$ac_file" |
33511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33512             s//\1/
33513             q
33514           }
33515           /^X\(\/\/\)[^/].*/{
33516             s//\1/
33517             q
33518           }
33519           /^X\(\/\/\)$/{
33520             s//\1/
33521             q
33522           }
33523           /^X\(\/\).*/{
33524             s//\1/
33525             q
33526           }
33527           s/.*/./; q'`
33528   { as_dir="$ac_dir"
33529   case $as_dir in #(
33530   -*) as_dir=./$as_dir;;
33531   esac
33532   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33533     as_dirs=
33534     while :; do
33535       case $as_dir in #(
33536       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33537       *) as_qdir=$as_dir;;
33538       esac
33539       as_dirs="'$as_qdir' $as_dirs"
33540       as_dir=`$as_dirname -- "$as_dir" ||
33541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33542          X"$as_dir" : 'X\(//\)[^/]' \| \
33543          X"$as_dir" : 'X\(//\)$' \| \
33544          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33545 echo X"$as_dir" |
33546     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33547             s//\1/
33548             q
33549           }
33550           /^X\(\/\/\)[^/].*/{
33551             s//\1/
33552             q
33553           }
33554           /^X\(\/\/\)$/{
33555             s//\1/
33556             q
33557           }
33558           /^X\(\/\).*/{
33559             s//\1/
33560             q
33561           }
33562           s/.*/./; q'`
33563       test -d "$as_dir" && break
33564     done
33565     test -z "$as_dirs" || eval "mkdir $as_dirs"
33566   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33567 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33568    { (exit 1); exit 1; }; }; }
33569   ac_builddir=.
33570
33571 case "$ac_dir" in
33572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33573 *)
33574   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33575   # A ".." for each directory in $ac_dir_suffix.
33576   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33577   case $ac_top_builddir_sub in
33578   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33579   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33580   esac ;;
33581 esac
33582 ac_abs_top_builddir=$ac_pwd
33583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33584 # for backward compatibility:
33585 ac_top_builddir=$ac_top_build_prefix
33586
33587 case $srcdir in
33588   .)  # We are building in place.
33589     ac_srcdir=.
33590     ac_top_srcdir=$ac_top_builddir_sub
33591     ac_abs_top_srcdir=$ac_pwd ;;
33592   [\\/]* | ?:[\\/]* )  # Absolute name.
33593     ac_srcdir=$srcdir$ac_dir_suffix;
33594     ac_top_srcdir=$srcdir
33595     ac_abs_top_srcdir=$srcdir ;;
33596   *) # Relative name.
33597     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33598     ac_top_srcdir=$ac_top_build_prefix$srcdir
33599     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33600 esac
33601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33602
33603
33604   case $ac_mode in
33605   :F)
33606   #
33607   # CONFIG_FILE
33608   #
33609
33610   case $INSTALL in
33611   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33612   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33613   esac
33614 _ACEOF
33615
33616 cat >>$CONFIG_STATUS <<\_ACEOF
33617 # If the template does not know about datarootdir, expand it.
33618 # FIXME: This hack should be removed a few years after 2.60.
33619 ac_datarootdir_hack=; ac_datarootdir_seen=
33620
33621 case `sed -n '/datarootdir/ {
33622   p
33623   q
33624 }
33625 /@datadir@/p
33626 /@docdir@/p
33627 /@infodir@/p
33628 /@localedir@/p
33629 /@mandir@/p
33630 ' $ac_file_inputs` in
33631 *datarootdir*) ac_datarootdir_seen=yes;;
33632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33633   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33634 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33635 _ACEOF
33636 cat >>$CONFIG_STATUS <<_ACEOF
33637   ac_datarootdir_hack='
33638   s&@datadir@&$datadir&g
33639   s&@docdir@&$docdir&g
33640   s&@infodir@&$infodir&g
33641   s&@localedir@&$localedir&g
33642   s&@mandir@&$mandir&g
33643     s&\\\${datarootdir}&$datarootdir&g' ;;
33644 esac
33645 _ACEOF
33646
33647 # Neutralize VPATH when `$srcdir' = `.'.
33648 # Shell code in configure.ac might set extrasub.
33649 # FIXME: do we really want to maintain this feature?
33650 cat >>$CONFIG_STATUS <<_ACEOF
33651   sed "$ac_vpsub
33652 $extrasub
33653 _ACEOF
33654 cat >>$CONFIG_STATUS <<\_ACEOF
33655 :t
33656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33657 s&@configure_input@&$configure_input&;t t
33658 s&@top_builddir@&$ac_top_builddir_sub&;t t
33659 s&@srcdir@&$ac_srcdir&;t t
33660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33661 s&@top_srcdir@&$ac_top_srcdir&;t t
33662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33663 s&@builddir@&$ac_builddir&;t t
33664 s&@abs_builddir@&$ac_abs_builddir&;t t
33665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33666 s&@INSTALL@&$ac_INSTALL&;t t
33667 $ac_datarootdir_hack
33668 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33669
33670 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33671   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33672   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33673   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33674 which seems to be undefined.  Please make sure it is defined." >&5
33675 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33676 which seems to be undefined.  Please make sure it is defined." >&2;}
33677
33678   rm -f "$tmp/stdin"
33679   case $ac_file in
33680   -) cat "$tmp/out"; rm -f "$tmp/out";;
33681   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33682   esac
33683  ;;
33684   :H)
33685   #
33686   # CONFIG_HEADER
33687   #
33688 _ACEOF
33689
33690 # Transform confdefs.h into a sed script `conftest.defines', that
33691 # substitutes the proper values into config.h.in to produce config.h.
33692 rm -f conftest.defines conftest.tail
33693 # First, append a space to every undef/define line, to ease matching.
33694 echo 's/$/ /' >conftest.defines
33695 # Then, protect against being on the right side of a sed subst, or in
33696 # an unquoted here document, in config.status.  If some macros were
33697 # called several times there might be several #defines for the same
33698 # symbol, which is useless.  But do not sort them, since the last
33699 # AC_DEFINE must be honored.
33700 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33701 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33702 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33703 # PARAMS is the parameter list in the macro definition--in most cases, it's
33704 # just an empty string.
33705 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33706 ac_dB='\\)[      (].*,\\1define\\2'
33707 ac_dC=' '
33708 ac_dD=' ,'
33709
33710 uniq confdefs.h |
33711   sed -n '
33712         t rset
33713         :rset
33714         s/^[     ]*#[    ]*define[       ][      ]*//
33715         t ok
33716         d
33717         :ok
33718         s/[\\&,]/\\&/g
33719         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33720         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33721   ' >>conftest.defines
33722
33723 # Remove the space that was appended to ease matching.
33724 # Then replace #undef with comments.  This is necessary, for
33725 # example, in the case of _POSIX_SOURCE, which is predefined and required
33726 # on some systems where configure will not decide to define it.
33727 # (The regexp can be short, since the line contains either #define or #undef.)
33728 echo 's/ $//
33729 s,^[     #]*u.*,/* & */,' >>conftest.defines
33730
33731 # Break up conftest.defines:
33732 ac_max_sed_lines=50
33733
33734 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33735 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33736 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33737 # et cetera.
33738 ac_in='$ac_file_inputs'
33739 ac_out='"$tmp/out1"'
33740 ac_nxt='"$tmp/out2"'
33741
33742 while :
33743 do
33744   # Write a here document:
33745     cat >>$CONFIG_STATUS <<_ACEOF
33746     # First, check the format of the line:
33747     cat >"\$tmp/defines.sed" <<\\CEOF
33748 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33749 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33750 b
33751 :def
33752 _ACEOF
33753   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33754   echo 'CEOF
33755     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33756   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33757   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33758   grep . conftest.tail >/dev/null || break
33759   rm -f conftest.defines
33760   mv conftest.tail conftest.defines
33761 done
33762 rm -f conftest.defines conftest.tail
33763
33764 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33765 cat >>$CONFIG_STATUS <<\_ACEOF
33766   if test x"$ac_file" != x-; then
33767     echo "/* $configure_input  */" >"$tmp/config.h"
33768     cat "$ac_result" >>"$tmp/config.h"
33769     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33770       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33771 echo "$as_me: $ac_file is unchanged" >&6;}
33772     else
33773       rm -f $ac_file
33774       mv "$tmp/config.h" $ac_file
33775     fi
33776   else
33777     echo "/* $configure_input  */"
33778     cat "$ac_result"
33779   fi
33780   rm -f "$tmp/out12"
33781 # Compute $ac_file's index in $config_headers.
33782 _am_stamp_count=1
33783 for _am_header in $config_headers :; do
33784   case $_am_header in
33785     $ac_file | $ac_file:* )
33786       break ;;
33787     * )
33788       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33789   esac
33790 done
33791 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33792 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33793          X$ac_file : 'X\(//\)[^/]' \| \
33794          X$ac_file : 'X\(//\)$' \| \
33795          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33796 echo X$ac_file |
33797     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33798             s//\1/
33799             q
33800           }
33801           /^X\(\/\/\)[^/].*/{
33802             s//\1/
33803             q
33804           }
33805           /^X\(\/\/\)$/{
33806             s//\1/
33807             q
33808           }
33809           /^X\(\/\).*/{
33810             s//\1/
33811             q
33812           }
33813           s/.*/./; q'`/stamp-h$_am_stamp_count
33814  ;;
33815
33816   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33817 echo "$as_me: executing $ac_file commands" >&6;}
33818  ;;
33819   esac
33820
33821
33822   case $ac_file$ac_mode in
33823     "default-1":C)
33824     for ac_file in $CONFIG_FILES; do
33825       # Support "outfile[:infile[:infile...]]"
33826       case "$ac_file" in
33827         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33828       esac
33829       # PO directories have a Makefile.in generated from Makefile.in.in.
33830       case "$ac_file" in */Makefile.in)
33831         # Adjust a relative srcdir.
33832         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33833         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33834         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33835         # In autoconf-2.13 it is called $ac_given_srcdir.
33836         # In autoconf-2.50 it is called $srcdir.
33837         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33838         case "$ac_given_srcdir" in
33839           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33840           /*) top_srcdir="$ac_given_srcdir" ;;
33841           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33842         esac
33843         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33844           rm -f "$ac_dir/POTFILES"
33845           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33846           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33847           POMAKEFILEDEPS="POTFILES.in"
33848           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33849           # on $ac_dir but don't depend on user-specified configuration
33850           # parameters.
33851           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33852             # The LINGUAS file contains the set of available languages.
33853             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33854               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33855             fi
33856             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33857             # Hide the ALL_LINGUAS assigment from automake.
33858             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33859             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33860           else
33861             # The set of available languages was given in configure.in.
33862             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33863           fi
33864           # Compute POFILES
33865           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33866           # Compute UPDATEPOFILES
33867           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33868           # Compute DUMMYPOFILES
33869           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33870           # Compute GMOFILES
33871           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33872           case "$ac_given_srcdir" in
33873             .) srcdirpre= ;;
33874             *) srcdirpre='$(srcdir)/' ;;
33875           esac
33876           POFILES=
33877           UPDATEPOFILES=
33878           DUMMYPOFILES=
33879           GMOFILES=
33880           for lang in $ALL_LINGUAS; do
33881             POFILES="$POFILES $srcdirpre$lang.po"
33882             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33883             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33884             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33885           done
33886           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33887           # environment variable.
33888           INST_LINGUAS=
33889           if test -n "$ALL_LINGUAS"; then
33890             for presentlang in $ALL_LINGUAS; do
33891               useit=no
33892               if test "%UNSET%" != "$LINGUAS"; then
33893                 desiredlanguages="$LINGUAS"
33894               else
33895                 desiredlanguages="$ALL_LINGUAS"
33896               fi
33897               for desiredlang in $desiredlanguages; do
33898                 # Use the presentlang catalog if desiredlang is
33899                 #   a. equal to presentlang, or
33900                 #   b. a variant of presentlang (because in this case,
33901                 #      presentlang can be used as a fallback for messages
33902                 #      which are not translated in the desiredlang catalog).
33903                 case "$desiredlang" in
33904                   "$presentlang"*) useit=yes;;
33905                 esac
33906               done
33907               if test $useit = yes; then
33908                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33909               fi
33910             done
33911           fi
33912           CATALOGS=
33913           if test -n "$INST_LINGUAS"; then
33914             for lang in $INST_LINGUAS; do
33915               CATALOGS="$CATALOGS $lang.gmo"
33916             done
33917           fi
33918           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33919           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33920           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33921             if test -f "$f"; then
33922               case "$f" in
33923                 *.orig | *.bak | *~) ;;
33924                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33925               esac
33926             fi
33927           done
33928         fi
33929         ;;
33930       esac
33931     done ;;
33932     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33933   # Strip MF so we end up with the name of the file.
33934   mf=`echo "$mf" | sed -e 's/:.*$//'`
33935   # Check whether this is an Automake generated Makefile or not.
33936   # We used to match only the files named `Makefile.in', but
33937   # some people rename them; so instead we look at the file content.
33938   # Grep'ing the first line is not enough: some people post-process
33939   # each Makefile.in and add a new line on top of each file to say so.
33940   # So let's grep whole file.
33941   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33942     dirpart=`$as_dirname -- "$mf" ||
33943 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33944          X"$mf" : 'X\(//\)[^/]' \| \
33945          X"$mf" : 'X\(//\)$' \| \
33946          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33947 echo X"$mf" |
33948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33949             s//\1/
33950             q
33951           }
33952           /^X\(\/\/\)[^/].*/{
33953             s//\1/
33954             q
33955           }
33956           /^X\(\/\/\)$/{
33957             s//\1/
33958             q
33959           }
33960           /^X\(\/\).*/{
33961             s//\1/
33962             q
33963           }
33964           s/.*/./; q'`
33965   else
33966     continue
33967   fi
33968   # Extract the definition of DEPDIR, am__include, and am__quote
33969   # from the Makefile without running `make'.
33970   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33971   test -z "$DEPDIR" && continue
33972   am__include=`sed -n 's/^am__include = //p' < "$mf"`
33973   test -z "am__include" && continue
33974   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33975   # When using ansi2knr, U may be empty or an underscore; expand it
33976   U=`sed -n 's/^U = //p' < "$mf"`
33977   # Find all dependency output files, they are included files with
33978   # $(DEPDIR) in their names.  We invoke sed twice because it is the
33979   # simplest approach to changing $(DEPDIR) to its actual value in the
33980   # expansion.
33981   for file in `sed -n "
33982     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33983        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33984     # Make sure the directory exists.
33985     test -f "$dirpart/$file" && continue
33986     fdir=`$as_dirname -- "$file" ||
33987 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33988          X"$file" : 'X\(//\)[^/]' \| \
33989          X"$file" : 'X\(//\)$' \| \
33990          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33991 echo X"$file" |
33992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33993             s//\1/
33994             q
33995           }
33996           /^X\(\/\/\)[^/].*/{
33997             s//\1/
33998             q
33999           }
34000           /^X\(\/\/\)$/{
34001             s//\1/
34002             q
34003           }
34004           /^X\(\/\).*/{
34005             s//\1/
34006             q
34007           }
34008           s/.*/./; q'`
34009     { as_dir=$dirpart/$fdir
34010   case $as_dir in #(
34011   -*) as_dir=./$as_dir;;
34012   esac
34013   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34014     as_dirs=
34015     while :; do
34016       case $as_dir in #(
34017       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34018       *) as_qdir=$as_dir;;
34019       esac
34020       as_dirs="'$as_qdir' $as_dirs"
34021       as_dir=`$as_dirname -- "$as_dir" ||
34022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34023          X"$as_dir" : 'X\(//\)[^/]' \| \
34024          X"$as_dir" : 'X\(//\)$' \| \
34025          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34026 echo X"$as_dir" |
34027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34028             s//\1/
34029             q
34030           }
34031           /^X\(\/\/\)[^/].*/{
34032             s//\1/
34033             q
34034           }
34035           /^X\(\/\/\)$/{
34036             s//\1/
34037             q
34038           }
34039           /^X\(\/\).*/{
34040             s//\1/
34041             q
34042           }
34043           s/.*/./; q'`
34044       test -d "$as_dir" && break
34045     done
34046     test -z "$as_dirs" || eval "mkdir $as_dirs"
34047   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34048 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34049    { (exit 1); exit 1; }; }; }
34050     # echo "creating $dirpart/$file"
34051     echo '# dummy' > "$dirpart/$file"
34052   done
34053 done
34054  ;;
34055
34056   esac
34057 done # for ac_tag
34058
34059
34060 { (exit 0); exit 0; }
34061 _ACEOF
34062 chmod +x $CONFIG_STATUS
34063 ac_clean_files=$ac_clean_files_save
34064
34065
34066 # configure is writing to config.log, and then calls config.status.
34067 # config.status does its own redirection, appending to config.log.
34068 # Unfortunately, on DOS this fails, as config.log is still kept open
34069 # by configure, so config.status won't be able to write to it; its
34070 # output is simply discarded.  So we exec the FD to /dev/null,
34071 # effectively closing config.log, so it can be properly (re)opened and
34072 # appended to by config.status.  When coming back to configure, we
34073 # need to make the FD available again.
34074 if test "$no_create" != yes; then
34075   ac_cs_success=:
34076   ac_config_status_args=
34077   test "$silent" = yes &&
34078     ac_config_status_args="$ac_config_status_args --quiet"
34079   exec 5>/dev/null
34080   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34081   exec 5>>config.log
34082   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34083   # would make configure fail if this is the last instruction.
34084   $ac_cs_success || { (exit 1); exit 1; }
34085 fi
34086
34087 #
34088 # CONFIG_SUBDIRS section.
34089 #
34090 if test "$no_recursion" != yes; then
34091
34092   # Remove --cache-file and --srcdir arguments so they do not pile up.
34093   ac_sub_configure_args=
34094   ac_prev=
34095   eval "set x $ac_configure_args"
34096   shift
34097   for ac_arg
34098   do
34099     if test -n "$ac_prev"; then
34100       ac_prev=
34101       continue
34102     fi
34103     case $ac_arg in
34104     -cache-file | --cache-file | --cache-fil | --cache-fi \
34105     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34106       ac_prev=cache_file ;;
34107     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34108     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34109     | --c=*)
34110       ;;
34111     --config-cache | -C)
34112       ;;
34113     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34114       ac_prev=srcdir ;;
34115     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34116       ;;
34117     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34118       ac_prev=prefix ;;
34119     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34120       ;;
34121     *)
34122       case $ac_arg in
34123       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34124       esac
34125       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34126     esac
34127   done
34128
34129   # Always prepend --prefix to ensure using the same prefix
34130   # in subdir configurations.
34131   ac_arg="--prefix=$prefix"
34132   case $ac_arg in
34133   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34134   esac
34135   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34136
34137   # Pass --silent
34138   if test "$silent" = yes; then
34139     ac_sub_configure_args="--silent $ac_sub_configure_args"
34140   fi
34141
34142   ac_popdir=`pwd`
34143   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34144
34145     # Do not complain, so a configure script can configure whichever
34146     # parts of a large source tree are present.
34147     test -d "$srcdir/$ac_dir" || continue
34148
34149     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34150     echo "$as_me:$LINENO: $ac_msg" >&5
34151     echo "$ac_msg" >&6
34152     { as_dir="$ac_dir"
34153   case $as_dir in #(
34154   -*) as_dir=./$as_dir;;
34155   esac
34156   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34157     as_dirs=
34158     while :; do
34159       case $as_dir in #(
34160       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34161       *) as_qdir=$as_dir;;
34162       esac
34163       as_dirs="'$as_qdir' $as_dirs"
34164       as_dir=`$as_dirname -- "$as_dir" ||
34165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34166          X"$as_dir" : 'X\(//\)[^/]' \| \
34167          X"$as_dir" : 'X\(//\)$' \| \
34168          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34169 echo X"$as_dir" |
34170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34171             s//\1/
34172             q
34173           }
34174           /^X\(\/\/\)[^/].*/{
34175             s//\1/
34176             q
34177           }
34178           /^X\(\/\/\)$/{
34179             s//\1/
34180             q
34181           }
34182           /^X\(\/\).*/{
34183             s//\1/
34184             q
34185           }
34186           s/.*/./; q'`
34187       test -d "$as_dir" && break
34188     done
34189     test -z "$as_dirs" || eval "mkdir $as_dirs"
34190   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34191 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34192    { (exit 1); exit 1; }; }; }
34193     ac_builddir=.
34194
34195 case "$ac_dir" in
34196 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34197 *)
34198   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34199   # A ".." for each directory in $ac_dir_suffix.
34200   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34201   case $ac_top_builddir_sub in
34202   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34203   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34204   esac ;;
34205 esac
34206 ac_abs_top_builddir=$ac_pwd
34207 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34208 # for backward compatibility:
34209 ac_top_builddir=$ac_top_build_prefix
34210
34211 case $srcdir in
34212   .)  # We are building in place.
34213     ac_srcdir=.
34214     ac_top_srcdir=$ac_top_builddir_sub
34215     ac_abs_top_srcdir=$ac_pwd ;;
34216   [\\/]* | ?:[\\/]* )  # Absolute name.
34217     ac_srcdir=$srcdir$ac_dir_suffix;
34218     ac_top_srcdir=$srcdir
34219     ac_abs_top_srcdir=$srcdir ;;
34220   *) # Relative name.
34221     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34222     ac_top_srcdir=$ac_top_build_prefix$srcdir
34223     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34224 esac
34225 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34226
34227
34228     cd "$ac_dir"
34229
34230     # Check for guested configure; otherwise get Cygnus style configure.
34231     if test -f "$ac_srcdir/configure.gnu"; then
34232       ac_sub_configure=$ac_srcdir/configure.gnu
34233     elif test -f "$ac_srcdir/configure"; then
34234       ac_sub_configure=$ac_srcdir/configure
34235     elif test -f "$ac_srcdir/configure.in"; then
34236       # This should be Cygnus configure.
34237       ac_sub_configure=$ac_aux_dir/configure
34238     else
34239       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34240 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34241       ac_sub_configure=
34242     fi
34243
34244     # The recursion is here.
34245     if test -n "$ac_sub_configure"; then
34246       # Make the cache file name correct relative to the subdirectory.
34247       case $cache_file in
34248       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34249       *) # Relative name.
34250         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34251       esac
34252
34253       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34254 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34255       # The eval makes quoting arguments work.
34256       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34257            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34258         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34259 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34260    { (exit 1); exit 1; }; }
34261     fi
34262
34263     cd "$ac_popdir"
34264   done
34265 fi
34266